~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-12-04 11:43:54 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091204114354-0lik4mbb1bv1a8nw
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add 100_latin_locale_alias.diff (LP 379785)

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 libX11 1.2.2.
 
3
# Generated by GNU Autoconf 2.63 for libX11 1.3.2.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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$lt_ECHO in
 
580
case X$ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
ECHO=${lt_ECHO-echo}
 
587
echo=${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 <<_LT_EOF
 
605
  cat <<EOF
606
606
$*
607
 
_LT_EOF
 
607
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 "$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
 
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
650
642
    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"
651
652
 
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+"$@"}
 
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"
667
690
      else
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
 
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
708
698
          fi
709
 
        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
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
 
714
fi
714
715
 
715
716
# Copy echo and quote the copy suitably for passing to libtool from
716
717
# the Makefile, instead of quoting the original, which is used later.
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"
 
718
ECHO=$echo
 
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
720
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720
721
fi
721
722
 
722
723
 
723
724
 
724
725
 
 
726
tagnames=${tagnames+${tagnames},}CXX
 
727
 
 
728
tagnames=${tagnames+${tagnames},}F77
 
729
 
725
730
exec 7<&0 </dev/null 6>&1
726
731
 
727
732
# Name of the host.
745
750
# Identity of this package.
746
751
PACKAGE_NAME='libX11'
747
752
PACKAGE_TARNAME='libX11'
748
 
PACKAGE_VERSION='1.2.2'
749
 
PACKAGE_STRING='libX11 1.2.2'
 
753
PACKAGE_VERSION='1.3.2'
 
754
PACKAGE_STRING='libX11 1.3.2'
750
755
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
756
 
752
757
ac_unique_file="Makefile.am"
790
795
am__EXEEXT_TRUE
791
796
LTLIBOBJS
792
797
LIBOBJS
793
 
distcleancheck_listfiles
794
 
CHANGELOG_CMD
 
798
HAVE_PS2PDF_FALSE
 
799
HAVE_PS2PDF_TRUE
 
800
BUILD_SPECS_FALSE
 
801
BUILD_SPECS_TRUE
 
802
PS2PDF
 
803
GROFF
795
804
XTMALLOC_ZERO_CFLAGS
796
805
XMALLOC_ZERO_CFLAGS
797
806
MALLOC_ZERO_CFLAGS
819
828
XKB_TRUE
820
829
MANPAGES_FALSE
821
830
MANPAGES_TRUE
822
 
ADMIN_MAN_DIR
823
 
DRIVER_MAN_DIR
824
 
MISC_MAN_DIR
825
 
FILE_MAN_DIR
826
 
LIB_MAN_DIR
827
 
APP_MAN_DIR
828
 
ADMIN_MAN_SUFFIX
829
 
DRIVER_MAN_SUFFIX
830
 
MISC_MAN_SUFFIX
831
 
FILE_MAN_SUFFIX
832
 
LIB_MAN_SUFFIX
833
 
APP_MAN_SUFFIX
834
831
BIGFONT_LIBS
835
832
BIGFONT_CFLAGS
836
833
XLOCALE_FALSE
861
858
PKG_CONFIG
862
859
XCB_FALSE
863
860
XCB_TRUE
 
861
HAVE_PERL_FALSE
 
862
HAVE_PERL_TRUE
 
863
PERL
864
864
RAWCPPFLAGS
865
865
RAWCPP
866
866
CC_FOR_BUILD
 
867
ADMIN_MAN_DIR
 
868
DRIVER_MAN_DIR
 
869
MISC_MAN_DIR
 
870
FILE_MAN_DIR
 
871
LIB_MAN_DIR
 
872
APP_MAN_DIR
 
873
ADMIN_MAN_SUFFIX
 
874
DRIVER_MAN_SUFFIX
 
875
MISC_MAN_SUFFIX
 
876
FILE_MAN_SUFFIX
 
877
LIB_MAN_SUFFIX
 
878
APP_MAN_SUFFIX
 
879
distcleancheck_listfiles
 
880
CHANGELOG_CMD
 
881
AM_BACKSLASH
 
882
AM_DEFAULT_VERBOSITY
867
883
CWARNFLAGS
868
884
LTCXXCOMPILE
869
885
LTCOMPILE
870
886
DOLT_BASH
871
 
OTOOL64
872
 
OTOOL
873
 
LIPO
 
887
LIBTOOL
 
888
ac_ct_F77
 
889
FFLAGS
 
890
F77
 
891
CXXCPP
 
892
am__fastdepCXX_FALSE
 
893
am__fastdepCXX_TRUE
 
894
CXXDEPMODE
 
895
ac_ct_CXX
 
896
CXXFLAGS
 
897
CXX
874
898
NMEDIT
875
899
DSYMUTIL
876
 
lt_ECHO
877
900
RANLIB
878
901
AR
879
 
OBJDUMP
 
902
ECHO
880
903
LN_S
881
 
NM
882
 
ac_ct_DUMPBIN
883
 
DUMPBIN
884
 
LD
885
 
FGREP
886
904
SED
887
905
host_os
888
906
host_vendor
892
910
build_vendor
893
911
build_cpu
894
912
build
895
 
LIBTOOL
896
913
EGREP
897
914
GREP
898
915
CPP
982
999
enable_dependency_tracking
983
1000
enable_shared
984
1001
enable_static
985
 
with_pic
986
1002
enable_fast_install
987
1003
with_gnu_ld
988
1004
enable_libtool_lock
 
1005
with_pic
 
1006
with_tags
 
1007
enable_silent_rules
 
1008
enable_strict_compilation
 
1009
with_release_version
 
1010
with_perl
989
1011
with_xcb
990
1012
enable_unix_transport
991
1013
enable_tcp_transport
1008
1030
enable_lint_library
1009
1031
with_locale_lib_dir
1010
1032
enable_malloc0returnsnull
1011
 
with_release_version
 
1033
enable_specs
1012
1034
'
1013
1035
      ac_precious_vars='build_alias
1014
1036
host_alias
1019
1041
LIBS
1020
1042
CPPFLAGS
1021
1043
CPP
 
1044
CXX
 
1045
CXXFLAGS
 
1046
CCC
 
1047
CXXCPP
 
1048
F77
 
1049
FFLAGS
1022
1050
PKG_CONFIG
1023
1051
XPROTO_CFLAGS
1024
1052
XPROTO_LIBS
1029
1057
BIGFONT_CFLAGS
1030
1058
BIGFONT_LIBS
1031
1059
XKBPROTO_CFLAGS
1032
 
XKBPROTO_LIBS'
 
1060
XKBPROTO_LIBS
 
1061
GROFF
 
1062
PS2PDF'
1033
1063
 
1034
1064
 
1035
1065
# Initialize some variables set by options.
1582
1612
  # Omit some internal or obsolete options to make the list less imposing.
1583
1613
  # This message is too long to be a string in the A/UX 3.1 sh.
1584
1614
  cat <<_ACEOF
1585
 
\`configure' configures libX11 1.2.2 to adapt to many kinds of systems.
 
1615
\`configure' configures libX11 1.3.2 to adapt to many kinds of systems.
1586
1616
 
1587
1617
Usage: $0 [OPTION]... [VAR=VALUE]...
1588
1618
 
1652
1682
 
1653
1683
if test -n "$ac_init_help"; then
1654
1684
  case $ac_init_help in
1655
 
     short | recursive ) echo "Configuration of libX11 1.2.2:";;
 
1685
     short | recursive ) echo "Configuration of libX11 1.3.2:";;
1656
1686
   esac
1657
1687
  cat <<\_ACEOF
1658
1688
 
1669
1699
  --enable-fast-install[=PKGS]
1670
1700
                          optimize for fast installation [default=yes]
1671
1701
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1702
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1703
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1704
  --enable-strict-compilation
 
1705
                          Enable all warnings from compiler and make them
 
1706
                          errors (default: disabled)
 
1707
  --enable-unix-transport Enable UNIX domain socket transport
 
1708
  --enable-tcp-transport  Enable TCP socket transport
 
1709
  --enable-ipv6           Enable IPv6 support
 
1710
  --enable-local-transport
 
1711
                          Enable os-specific local transport
1672
1712
  --enable-secure-rpc     Enable Secure RPC
1673
1713
  --enable-loadable-i18n  Controls loadable i18n module support
1674
1714
  --disable-loadable-xcursor
1685
1725
  --enable-lint-library   Create lint library (default: disabled)
1686
1726
  --enable-malloc0returnsnull
1687
1727
                          malloc(0) returns NULL (default: auto)
 
1728
  --enable-specs          Enable building of specification docs
1688
1729
 
1689
1730
Optional Packages:
1690
1731
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691
1732
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1733
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1692
1734
  --with-pic              try to use only PIC/non-PIC objects [default=use
1693
1735
                          both]
1694
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1736
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1737
  --with-release-version=STRING
 
1738
                          Use release version string in package name
 
1739
  --with-perl=<path>      path to perl interpreter for build-time tests
1695
1740
  --with-xcb              use XCB for low-level protocol implementation
1696
1741
  --with-local-transport-order=LIST
1697
1742
                          preference sorted list of transport types to try for
1703
1748
  --with-locale-lib-dir=DIR
1704
1749
                          Directory where locale libraries files are installed
1705
1750
                          (default: $libdir/X11/locale)
1706
 
  --with-release-version=STRING
1707
 
                          Use release version string in package name
1708
1751
 
1709
1752
Some influential environment variables:
1710
1753
  CC          C compiler command
1715
1758
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1716
1759
              you have headers in a nonstandard directory <include dir>
1717
1760
  CPP         C preprocessor
 
1761
  CXX         C++ compiler command
 
1762
  CXXFLAGS    C++ compiler flags
 
1763
  CXXCPP      C++ preprocessor
 
1764
  F77         Fortran 77 compiler command
 
1765
  FFLAGS      Fortran 77 compiler flags
1718
1766
  PKG_CONFIG  path to pkg-config utility
1719
1767
  XPROTO_CFLAGS
1720
1768
              C compiler flags for XPROTO, overriding pkg-config
1732
1780
              C compiler flags for XKBPROTO, overriding pkg-config
1733
1781
  XKBPROTO_LIBS
1734
1782
              linker flags for XKBPROTO, overriding pkg-config
 
1783
  GROFF       Path to a groff executable that supports -ms
 
1784
  PS2PDF      Path to a ps2pdf executable
1735
1785
 
1736
1786
Use these variables to override the choices made by `configure' or to help
1737
1787
it to find libraries and programs with nonstandard names/locations.
1799
1849
test -n "$ac_init_help" && exit $ac_status
1800
1850
if $ac_init_version; then
1801
1851
  cat <<\_ACEOF
1802
 
libX11 configure 1.2.2
 
1852
libX11 configure 1.3.2
1803
1853
generated by GNU Autoconf 2.63
1804
1854
 
1805
1855
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1813
1863
This file contains any messages produced by compilers while
1814
1864
running configure, to aid debugging if configure makes a mistake.
1815
1865
 
1816
 
It was created by libX11 $as_me 1.2.2, which was
 
1866
It was created by libX11 $as_me 1.3.2, which was
1817
1867
generated by GNU Autoconf 2.63.  Invocation command line was
1818
1868
 
1819
1869
  $ $0 $@
2663
2713
 
2664
2714
# Define the identity of the package.
2665
2715
 PACKAGE='libX11'
2666
 
 VERSION='1.2.2'
 
2716
 VERSION='1.3.2'
2667
2717
 
2668
2718
 
2669
2719
cat >>confdefs.h <<_ACEOF
2733
2783
ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
2734
2784
 
2735
2785
 
2736
 
# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
2737
 
 
2738
 
 
2739
 
        XORG_MACROS_needed_version=1.2
2740
 
        XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2741
 
        XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2742
 
        { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2743
 
$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2744
 
        XORG_MACROS_version=1.2.1
2745
 
        XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2746
 
        XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2747
 
        if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2748
 
                { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2749
 
$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2750
 
   { (exit 1); exit 1; }; }
2751
 
        fi
2752
 
        if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2753
 
                { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2754
 
$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2755
 
   { (exit 1); exit 1; }; }
2756
 
        fi
2757
 
        { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2758
 
$as_echo "yes, $XORG_MACROS_version" >&6; }
 
2786
# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_CHANGELOG, XORG_WITH_LINT
 
2787
 
 
2788
 
 
2789
 
 
2790
 
 
2791
 
 
2792
 
 
2793
 
 
2794
 
 
2795
 
 
2796
 
2759
2797
 
2760
2798
 
2761
2799
# Set common system defines for POSIX extensions, such as _GNU_SOURCE
4742
4780
 
4743
4781
 
4744
4782
# Checks for programs.
4745
 
case `pwd` in
4746
 
  *\ * | *\     *)
4747
 
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4748
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4749
 
esac
4750
 
 
4751
 
 
4752
 
 
4753
 
macro_version='2.2.6'
4754
 
macro_revision='1.3012'
4755
 
 
4756
 
 
4757
 
 
4758
 
 
4759
 
 
4760
 
 
4761
 
 
4762
 
 
4763
 
 
4764
 
 
4765
 
 
4766
 
 
4767
 
 
4768
 
ltmain="$ac_aux_dir/ltmain.sh"
 
4783
# Check whether --enable-shared was given.
 
4784
if test "${enable_shared+set}" = set; then
 
4785
  enableval=$enable_shared; p=${PACKAGE-default}
 
4786
    case $enableval in
 
4787
    yes) enable_shared=yes ;;
 
4788
    no) enable_shared=no ;;
 
4789
    *)
 
4790
      enable_shared=no
 
4791
      # Look at the argument we got.  We use all the common list separators.
 
4792
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4793
      for pkg in $enableval; do
 
4794
        IFS="$lt_save_ifs"
 
4795
        if test "X$pkg" = "X$p"; then
 
4796
          enable_shared=yes
 
4797
        fi
 
4798
      done
 
4799
      IFS="$lt_save_ifs"
 
4800
      ;;
 
4801
    esac
 
4802
else
 
4803
  enable_shared=yes
 
4804
fi
 
4805
 
 
4806
 
 
4807
# Check whether --enable-static was given.
 
4808
if test "${enable_static+set}" = set; then
 
4809
  enableval=$enable_static; p=${PACKAGE-default}
 
4810
    case $enableval in
 
4811
    yes) enable_static=yes ;;
 
4812
    no) enable_static=no ;;
 
4813
    *)
 
4814
     enable_static=no
 
4815
      # Look at the argument we got.  We use all the common list separators.
 
4816
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4817
      for pkg in $enableval; do
 
4818
        IFS="$lt_save_ifs"
 
4819
        if test "X$pkg" = "X$p"; then
 
4820
          enable_static=yes
 
4821
        fi
 
4822
      done
 
4823
      IFS="$lt_save_ifs"
 
4824
      ;;
 
4825
    esac
 
4826
else
 
4827
  enable_static=yes
 
4828
fi
 
4829
 
 
4830
 
 
4831
# Check whether --enable-fast-install was given.
 
4832
if test "${enable_fast_install+set}" = set; then
 
4833
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4834
    case $enableval in
 
4835
    yes) enable_fast_install=yes ;;
 
4836
    no) enable_fast_install=no ;;
 
4837
    *)
 
4838
      enable_fast_install=no
 
4839
      # Look at the argument we got.  We use all the common list separators.
 
4840
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4841
      for pkg in $enableval; do
 
4842
        IFS="$lt_save_ifs"
 
4843
        if test "X$pkg" = "X$p"; then
 
4844
          enable_fast_install=yes
 
4845
        fi
 
4846
      done
 
4847
      IFS="$lt_save_ifs"
 
4848
      ;;
 
4849
    esac
 
4850
else
 
4851
  enable_fast_install=yes
 
4852
fi
 
4853
 
4769
4854
 
4770
4855
# Make sure we can run config.sub.
4771
4856
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4852
4937
 
4853
4938
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4854
4939
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4855
 
if test "${ac_cv_path_SED+set}" = set; then
 
4940
if test "${lt_cv_path_SED+set}" = set; then
4856
4941
  $as_echo_n "(cached) " >&6
4857
4942
else
4858
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4859
 
     for ac_i in 1 2 3 4 5 6 7; do
4860
 
       ac_script="$ac_script$as_nl$ac_script"
4861
 
     done
4862
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4863
 
     $as_unset ac_script || ac_script=
4864
 
     if test -z "$SED"; then
4865
 
  ac_path_SED_found=false
4866
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4867
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4943
  # Loop through the user's path and test for sed and gsed.
 
4944
# Then use that list of sed's as ones to test for truncation.
 
4945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868
4946
for as_dir in $PATH
4869
4947
do
4870
4948
  IFS=$as_save_IFS
4871
4949
  test -z "$as_dir" && as_dir=.
4872
 
  for ac_prog in sed gsed; do
4873
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4874
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4875
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4876
 
# Check for GNU ac_path_SED and select it if it is found.
4877
 
  # Check for GNU $ac_path_SED
4878
 
case `"$ac_path_SED" --version 2>&1` in
4879
 
*GNU*)
4880
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4881
 
*)
4882
 
  ac_count=0
4883
 
  $as_echo_n 0123456789 >"conftest.in"
4884
 
  while :
4885
 
  do
4886
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4887
 
    mv "conftest.tmp" "conftest.in"
4888
 
    cp "conftest.in" "conftest.nl"
4889
 
    $as_echo '' >> "conftest.nl"
4890
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892
 
    ac_count=`expr $ac_count + 1`
4893
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4894
 
      # Best one so far, save it but keep looking for a better one
4895
 
      ac_cv_path_SED="$ac_path_SED"
4896
 
      ac_path_SED_max=$ac_count
4897
 
    fi
4898
 
    # 10*(2^10) chars as input seems more than enough
4899
 
    test $ac_count -gt 10 && break
4900
 
  done
4901
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902
 
esac
4903
 
 
4904
 
      $ac_path_SED_found && break 3
4905
 
    done
4906
 
  done
4907
 
done
4908
 
IFS=$as_save_IFS
4909
 
  if test -z "$ac_cv_path_SED"; then
4910
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4911
 
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4912
 
   { (exit 1); exit 1; }; }
4913
 
  fi
4914
 
else
4915
 
  ac_cv_path_SED=$SED
4916
 
fi
4917
 
 
4918
 
fi
4919
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4920
 
$as_echo "$ac_cv_path_SED" >&6; }
4921
 
 SED="$ac_cv_path_SED"
4922
 
  rm -f conftest.sed
4923
 
 
4924
 
test -z "$SED" && SED=sed
4925
 
Xsed="$SED -e 1s/^X//"
4926
 
 
4927
 
 
4928
 
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4938
 
$as_echo_n "checking for fgrep... " >&6; }
4939
 
if test "${ac_cv_path_FGREP+set}" = set; then
4940
 
  $as_echo_n "(cached) " >&6
4941
 
else
4942
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4943
 
   then ac_cv_path_FGREP="$GREP -F"
4944
 
   else
4945
 
     if test -z "$FGREP"; then
4946
 
  ac_path_FGREP_found=false
4947
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4948
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950
 
do
4951
 
  IFS=$as_save_IFS
4952
 
  test -z "$as_dir" && as_dir=.
4953
 
  for ac_prog in fgrep; do
4954
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4955
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4956
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4957
 
# Check for GNU ac_path_FGREP and select it if it is found.
4958
 
  # Check for GNU $ac_path_FGREP
4959
 
case `"$ac_path_FGREP" --version 2>&1` in
4960
 
*GNU*)
4961
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4962
 
*)
4963
 
  ac_count=0
4964
 
  $as_echo_n 0123456789 >"conftest.in"
4965
 
  while :
4966
 
  do
4967
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4968
 
    mv "conftest.tmp" "conftest.in"
4969
 
    cp "conftest.in" "conftest.nl"
4970
 
    $as_echo 'FGREP' >> "conftest.nl"
4971
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973
 
    ac_count=`expr $ac_count + 1`
4974
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4975
 
      # Best one so far, save it but keep looking for a better one
4976
 
      ac_cv_path_FGREP="$ac_path_FGREP"
4977
 
      ac_path_FGREP_max=$ac_count
4978
 
    fi
4979
 
    # 10*(2^10) chars as input seems more than enough
4980
 
    test $ac_count -gt 10 && break
4981
 
  done
4982
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983
 
esac
4984
 
 
4985
 
      $ac_path_FGREP_found && break 3
4986
 
    done
4987
 
  done
4988
 
done
4989
 
IFS=$as_save_IFS
4990
 
  if test -z "$ac_cv_path_FGREP"; then
4991
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4992
 
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4993
 
   { (exit 1); exit 1; }; }
4994
 
  fi
4995
 
else
4996
 
  ac_cv_path_FGREP=$FGREP
4997
 
fi
4998
 
 
4999
 
   fi
5000
 
fi
5001
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5002
 
$as_echo "$ac_cv_path_FGREP" >&6; }
5003
 
 FGREP="$ac_cv_path_FGREP"
5004
 
 
5005
 
 
5006
 
test -z "$GREP" && GREP=grep
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
 
4950
  for lt_ac_prog in sed gsed; do
 
4951
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4952
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4953
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4954
      fi
 
4955
    done
 
4956
  done
 
4957
done
 
4958
IFS=$as_save_IFS
 
4959
lt_ac_max=0
 
4960
lt_ac_count=0
 
4961
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4962
# along with /bin/sed that truncates output.
 
4963
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4964
  test ! -f $lt_ac_sed && continue
 
4965
  cat /dev/null > conftest.in
 
4966
  lt_ac_count=0
 
4967
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4968
  # Check for GNU sed and select it if it is found.
 
4969
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4970
    lt_cv_path_SED=$lt_ac_sed
 
4971
    break
 
4972
  fi
 
4973
  while true; do
 
4974
    cat conftest.in conftest.in >conftest.tmp
 
4975
    mv conftest.tmp conftest.in
 
4976
    cp conftest.in conftest.nl
 
4977
    echo >>conftest.nl
 
4978
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4979
    cmp -s conftest.out conftest.nl || break
 
4980
    # 10000 chars as input seems more than enough
 
4981
    test $lt_ac_count -gt 10 && break
 
4982
    lt_ac_count=`expr $lt_ac_count + 1`
 
4983
    if test $lt_ac_count -gt $lt_ac_max; then
 
4984
      lt_ac_max=$lt_ac_count
 
4985
      lt_cv_path_SED=$lt_ac_sed
 
4986
    fi
 
4987
  done
 
4988
done
 
4989
 
 
4990
fi
 
4991
 
 
4992
SED=$lt_cv_path_SED
 
4993
 
 
4994
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4995
$as_echo "$SED" >&6; }
5024
4996
 
5025
4997
 
5026
4998
# Check whether --with-gnu-ld was given.
5047
5019
    [\\/]* | ?:[\\/]*)
5048
5020
      re_direlt='/[^/][^/]*/\.\./'
5049
5021
      # Canonicalize the pathname of ld
5050
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5051
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5052
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5022
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5023
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5024
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5053
5025
      done
5054
5026
      test -z "$LD" && LD="$ac_prog"
5055
5027
      ;;
5129
5101
with_gnu_ld=$lt_cv_prog_gnu_ld
5130
5102
 
5131
5103
 
5132
 
 
5133
 
 
5134
 
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
 
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5140
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5104
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5105
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5106
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5107
  $as_echo_n "(cached) " >&6
 
5108
else
 
5109
  lt_cv_ld_reload_flag='-r'
 
5110
fi
 
5111
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5112
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5113
reload_flag=$lt_cv_ld_reload_flag
 
5114
case $reload_flag in
 
5115
"" | " "*) ;;
 
5116
*) reload_flag=" $reload_flag" ;;
 
5117
esac
 
5118
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5119
case $host_os in
 
5120
  darwin*)
 
5121
    if test "$GCC" = yes; then
 
5122
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5123
    else
 
5124
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5125
    fi
 
5126
    ;;
 
5127
esac
 
5128
 
 
5129
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5130
$as_echo_n "checking for BSD-compatible nm... " >&6; }
5141
5131
if test "${lt_cv_path_NM+set}" = set; then
5142
5132
  $as_echo_n "(cached) " >&6
5143
5133
else
5182
5172
    done
5183
5173
    IFS="$lt_save_ifs"
5184
5174
  done
5185
 
  : ${lt_cv_path_NM=no}
 
5175
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5186
5176
fi
5187
5177
fi
5188
5178
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5189
5179
$as_echo "$lt_cv_path_NM" >&6; }
5190
 
if test "$lt_cv_path_NM" != "no"; then
5191
 
  NM="$lt_cv_path_NM"
5192
 
else
5193
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
5194
 
  if test -n "$ac_tool_prefix"; then
5195
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5196
 
  do
5197
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5200
 
$as_echo_n "checking for $ac_word... " >&6; }
5201
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5202
 
  $as_echo_n "(cached) " >&6
5203
 
else
5204
 
  if test -n "$DUMPBIN"; then
5205
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5206
 
else
5207
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208
 
for as_dir in $PATH
5209
 
do
5210
 
  IFS=$as_save_IFS
5211
 
  test -z "$as_dir" && as_dir=.
5212
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5213
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5215
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216
 
    break 2
5217
 
  fi
5218
 
done
5219
 
done
5220
 
IFS=$as_save_IFS
5221
 
 
5222
 
fi
5223
 
fi
5224
 
DUMPBIN=$ac_cv_prog_DUMPBIN
5225
 
if test -n "$DUMPBIN"; then
5226
 
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5227
 
$as_echo "$DUMPBIN" >&6; }
5228
 
else
5229
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5230
 
$as_echo "no" >&6; }
5231
 
fi
5232
 
 
5233
 
 
5234
 
    test -n "$DUMPBIN" && break
5235
 
  done
5236
 
fi
5237
 
if test -z "$DUMPBIN"; then
5238
 
  ac_ct_DUMPBIN=$DUMPBIN
5239
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5240
 
do
5241
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5242
 
set dummy $ac_prog; ac_word=$2
5243
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244
 
$as_echo_n "checking for $ac_word... " >&6; }
5245
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5246
 
  $as_echo_n "(cached) " >&6
5247
 
else
5248
 
  if test -n "$ac_ct_DUMPBIN"; then
5249
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5250
 
else
5251
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252
 
for as_dir in $PATH
5253
 
do
5254
 
  IFS=$as_save_IFS
5255
 
  test -z "$as_dir" && as_dir=.
5256
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5257
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5259
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260
 
    break 2
5261
 
  fi
5262
 
done
5263
 
done
5264
 
IFS=$as_save_IFS
5265
 
 
5266
 
fi
5267
 
fi
5268
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5269
 
if test -n "$ac_ct_DUMPBIN"; then
5270
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5271
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
5272
 
else
5273
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5274
 
$as_echo "no" >&6; }
5275
 
fi
5276
 
 
5277
 
 
5278
 
  test -n "$ac_ct_DUMPBIN" && break
5279
 
done
5280
 
 
5281
 
  if test "x$ac_ct_DUMPBIN" = x; then
5282
 
    DUMPBIN=":"
5283
 
  else
5284
 
    case $cross_compiling:$ac_tool_warned in
5285
 
yes:)
5286
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5287
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288
 
ac_tool_warned=yes ;;
5289
 
esac
5290
 
    DUMPBIN=$ac_ct_DUMPBIN
5291
 
  fi
5292
 
fi
5293
 
 
5294
 
 
5295
 
  if test "$DUMPBIN" != ":"; then
5296
 
    NM="$DUMPBIN"
5297
 
  fi
5298
 
fi
5299
 
test -z "$NM" && NM=nm
5300
 
 
5301
 
 
5302
 
 
5303
 
 
5304
 
 
5305
 
 
5306
 
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5307
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5308
 
if test "${lt_cv_nm_interface+set}" = set; then
5309
 
  $as_echo_n "(cached) " >&6
5310
 
else
5311
 
  lt_cv_nm_interface="BSD nm"
5312
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5313
 
  (eval echo "\"\$as_me:5313: $ac_compile\"" >&5)
5314
 
  (eval "$ac_compile" 2>conftest.err)
5315
 
  cat conftest.err >&5
5316
 
  (eval echo "\"\$as_me:5316: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5317
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5318
 
  cat conftest.err >&5
5319
 
  (eval echo "\"\$as_me:5319: output\"" >&5)
5320
 
  cat conftest.out >&5
5321
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5322
 
    lt_cv_nm_interface="MS dumpbin"
5323
 
  fi
5324
 
  rm -f conftest*
5325
 
fi
5326
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5327
 
$as_echo "$lt_cv_nm_interface" >&6; }
 
5180
NM="$lt_cv_path_NM"
5328
5181
 
5329
5182
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5330
5183
$as_echo_n "checking whether ln -s works... " >&6; }
5337
5190
$as_echo "no, using $LN_S" >&6; }
5338
5191
fi
5339
5192
 
5340
 
# find the maximum length of command line arguments
5341
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5342
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5343
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5344
 
  $as_echo_n "(cached) " >&6
5345
 
else
5346
 
    i=0
5347
 
  teststring="ABCD"
5348
 
 
5349
 
  case $build_os in
5350
 
  msdosdjgpp*)
5351
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5352
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5353
 
    # during glob expansion).  Even if it were fixed, the result of this
5354
 
    # check would be larger than it should be.
5355
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5356
 
    ;;
5357
 
 
5358
 
  gnu*)
5359
 
    # Under GNU Hurd, this test is not required because there is
5360
 
    # no limit to the length of command line arguments.
5361
 
    # Libtool will interpret -1 as no limit whatsoever
5362
 
    lt_cv_sys_max_cmd_len=-1;
5363
 
    ;;
5364
 
 
5365
 
  cygwin* | mingw* | cegcc*)
5366
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5367
 
    # about 5 minutes as the teststring grows exponentially.
5368
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5369
 
    # you end up with a "frozen" computer, even though with patience
5370
 
    # the test eventually succeeds (with a max line length of 256k).
5371
 
    # Instead, let's just punt: use the minimum linelength reported by
5372
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5373
 
    lt_cv_sys_max_cmd_len=8192;
5374
 
    ;;
5375
 
 
5376
 
  amigaos*)
5377
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5378
 
    # So we just punt and use a minimum line length of 8192.
5379
 
    lt_cv_sys_max_cmd_len=8192;
5380
 
    ;;
5381
 
 
5382
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383
 
    # This has been around since 386BSD, at least.  Likely further.
5384
 
    if test -x /sbin/sysctl; then
5385
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386
 
    elif test -x /usr/sbin/sysctl; then
5387
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388
 
    else
5389
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5390
 
    fi
5391
 
    # And add a safety zone
5392
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394
 
    ;;
5395
 
 
5396
 
  interix*)
5397
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398
 
    lt_cv_sys_max_cmd_len=196608
5399
 
    ;;
5400
 
 
5401
 
  osf*)
5402
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404
 
    # nice to cause kernel panics so lets avoid the loop below.
5405
 
    # First set a reasonable default.
5406
 
    lt_cv_sys_max_cmd_len=16384
5407
 
    #
5408
 
    if test -x /sbin/sysconfig; then
5409
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411
 
      esac
5412
 
    fi
5413
 
    ;;
5414
 
  sco3.2v5*)
5415
 
    lt_cv_sys_max_cmd_len=102400
5416
 
    ;;
5417
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5418
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419
 
    if test -n "$kargmax"; then
5420
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5421
 
    else
5422
 
      lt_cv_sys_max_cmd_len=32768
5423
 
    fi
5424
 
    ;;
5425
 
  *)
5426
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5427
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
5428
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430
 
    else
5431
 
      # Make teststring a little bigger before we do anything with it.
5432
 
      # a 1K string should be a reasonable start.
5433
 
      for i in 1 2 3 4 5 6 7 8 ; do
5434
 
        teststring=$teststring$teststring
5435
 
      done
5436
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437
 
      # If test is not a shell built-in, we'll probably end up computing a
5438
 
      # maximum length that is only half of the actual maximum length, but
5439
 
      # we can't tell.
5440
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5441
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5442
 
              test $i != 17 # 1/2 MB should be enough
5443
 
      do
5444
 
        i=`expr $i + 1`
5445
 
        teststring=$teststring$teststring
5446
 
      done
5447
 
      # Only check the string length outside the loop.
5448
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449
 
      teststring=
5450
 
      # Add a significant safety factor because C++ compilers can tack on
5451
 
      # massive amounts of additional arguments before passing them to the
5452
 
      # linker.  It appears as though 1/2 is a usable value.
5453
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454
 
    fi
5455
 
    ;;
5456
 
  esac
5457
 
 
5458
 
fi
5459
 
 
5460
 
if test -n $lt_cv_sys_max_cmd_len ; then
5461
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5462
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463
 
else
5464
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
5465
 
$as_echo "none" >&6; }
5466
 
fi
5467
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5468
 
 
5469
 
 
5470
 
 
5471
 
 
5472
 
 
5473
 
 
5474
 
: ${CP="cp -f"}
5475
 
: ${MV="mv -f"}
5476
 
: ${RM="rm -f"}
5477
 
 
5478
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5479
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5480
 
# Try some XSI features
5481
 
xsi_shell=no
5482
 
( _lt_dummy="a/b/c"
5483
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5484
 
      = c,a/b,, \
5485
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
5486
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5487
 
  && xsi_shell=yes
5488
 
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5489
 
$as_echo "$xsi_shell" >&6; }
5490
 
 
5491
 
 
5492
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5493
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5494
 
lt_shell_append=no
5495
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5496
 
    >/dev/null 2>&1 \
5497
 
  && lt_shell_append=yes
5498
 
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5499
 
$as_echo "$lt_shell_append" >&6; }
5500
 
 
5501
 
 
5502
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5503
 
  lt_unset=unset
5504
 
else
5505
 
  lt_unset=false
5506
 
fi
5507
 
 
5508
 
 
5509
 
 
5510
 
 
5511
 
 
5512
 
# test EBCDIC or ASCII
5513
 
case `echo X|tr X '\101'` in
5514
 
 A) # ASCII based system
5515
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5516
 
  lt_SP2NL='tr \040 \012'
5517
 
  lt_NL2SP='tr \015\012 \040\040'
5518
 
  ;;
5519
 
 *) # EBCDIC based system
5520
 
  lt_SP2NL='tr \100 \n'
5521
 
  lt_NL2SP='tr \r\n \100\100'
5522
 
  ;;
5523
 
esac
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
 
 
5532
 
 
5533
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5534
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5535
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5536
 
  $as_echo_n "(cached) " >&6
5537
 
else
5538
 
  lt_cv_ld_reload_flag='-r'
5539
 
fi
5540
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5541
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5542
 
reload_flag=$lt_cv_ld_reload_flag
5543
 
case $reload_flag in
5544
 
"" | " "*) ;;
5545
 
*) reload_flag=" $reload_flag" ;;
5546
 
esac
5547
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548
 
case $host_os in
5549
 
  darwin*)
5550
 
    if test "$GCC" = yes; then
5551
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552
 
    else
5553
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554
 
    fi
5555
 
    ;;
5556
 
esac
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
 
 
5565
 
 
5566
 
if test -n "$ac_tool_prefix"; then
5567
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5568
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5569
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5570
 
$as_echo_n "checking for $ac_word... " >&6; }
5571
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5572
 
  $as_echo_n "(cached) " >&6
5573
 
else
5574
 
  if test -n "$OBJDUMP"; then
5575
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5576
 
else
5577
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578
 
for as_dir in $PATH
5579
 
do
5580
 
  IFS=$as_save_IFS
5581
 
  test -z "$as_dir" && as_dir=.
5582
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5583
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5585
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586
 
    break 2
5587
 
  fi
5588
 
done
5589
 
done
5590
 
IFS=$as_save_IFS
5591
 
 
5592
 
fi
5593
 
fi
5594
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5595
 
if test -n "$OBJDUMP"; then
5596
 
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5597
 
$as_echo "$OBJDUMP" >&6; }
5598
 
else
5599
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5600
 
$as_echo "no" >&6; }
5601
 
fi
5602
 
 
5603
 
 
5604
 
fi
5605
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5606
 
  ac_ct_OBJDUMP=$OBJDUMP
5607
 
  # Extract the first word of "objdump", so it can be a program name with args.
5608
 
set dummy objdump; ac_word=$2
5609
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5610
 
$as_echo_n "checking for $ac_word... " >&6; }
5611
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5612
 
  $as_echo_n "(cached) " >&6
5613
 
else
5614
 
  if test -n "$ac_ct_OBJDUMP"; then
5615
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5616
 
else
5617
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618
 
for as_dir in $PATH
5619
 
do
5620
 
  IFS=$as_save_IFS
5621
 
  test -z "$as_dir" && as_dir=.
5622
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5623
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5625
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626
 
    break 2
5627
 
  fi
5628
 
done
5629
 
done
5630
 
IFS=$as_save_IFS
5631
 
 
5632
 
fi
5633
 
fi
5634
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5635
 
if test -n "$ac_ct_OBJDUMP"; then
5636
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5637
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
5638
 
else
5639
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5640
 
$as_echo "no" >&6; }
5641
 
fi
5642
 
 
5643
 
  if test "x$ac_ct_OBJDUMP" = x; then
5644
 
    OBJDUMP="false"
5645
 
  else
5646
 
    case $cross_compiling:$ac_tool_warned in
5647
 
yes:)
5648
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5649
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650
 
ac_tool_warned=yes ;;
5651
 
esac
5652
 
    OBJDUMP=$ac_ct_OBJDUMP
5653
 
  fi
5654
 
else
5655
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5656
 
fi
5657
 
 
5658
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
 
 
5664
 
 
5665
 
 
5666
 
 
5667
 
 
5668
5193
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5669
5194
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5670
5195
if test "${lt_cv_deplibs_check_method+set}" = set; then
5718
5243
  fi
5719
5244
  ;;
5720
5245
 
5721
 
cegcc)
5722
 
  # use the weaker test based on 'objdump'. See mingw*.
5723
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5724
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5725
 
  ;;
5726
 
 
5727
5246
darwin* | rhapsody*)
5728
5247
  lt_cv_deplibs_check_method=pass_all
5729
5248
  ;;
5730
5249
 
5731
5250
freebsd* | dragonfly*)
5732
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5251
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5733
5252
    case $host_cpu in
5734
5253
    i*86 )
5735
5254
      # Not sure whether the presence of OpenBSD here was a mistake.
5787
5306
  ;;
5788
5307
 
5789
5308
netbsd*)
5790
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5309
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5791
5310
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792
5311
  else
5793
5312
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5800
5319
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801
5320
  ;;
5802
5321
 
5803
 
*nto* | *qnx*)
5804
 
  lt_cv_deplibs_check_method=pass_all
 
5322
nto-qnx*)
 
5323
  lt_cv_deplibs_check_method=unknown
5805
5324
  ;;
5806
5325
 
5807
5326
openbsd*)
5808
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5327
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809
5328
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810
5329
  else
5811
5330
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5824
5343
  lt_cv_deplibs_check_method=pass_all
5825
5344
  ;;
5826
5345
 
5827
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5828
 
  lt_cv_deplibs_check_method=pass_all
5829
 
  ;;
5830
 
 
5831
5346
sysv4 | sysv4.3*)
5832
5347
  case $host_vendor in
5833
5348
  motorola)
5855
5370
  esac
5856
5371
  ;;
5857
5372
 
5858
 
tpf*)
 
5373
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5859
5374
  lt_cv_deplibs_check_method=pass_all
5860
5375
  ;;
5861
5376
esac
5870
5385
 
5871
5386
 
5872
5387
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
if test -n "$ac_tool_prefix"; then
5882
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5884
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5885
 
$as_echo_n "checking for $ac_word... " >&6; }
5886
 
if test "${ac_cv_prog_AR+set}" = set; then
5887
 
  $as_echo_n "(cached) " >&6
5888
 
else
5889
 
  if test -n "$AR"; then
5890
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5891
 
else
5892
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893
 
for as_dir in $PATH
5894
 
do
5895
 
  IFS=$as_save_IFS
5896
 
  test -z "$as_dir" && as_dir=.
5897
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5898
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5900
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901
 
    break 2
5902
 
  fi
5903
 
done
5904
 
done
5905
 
IFS=$as_save_IFS
5906
 
 
5907
 
fi
5908
 
fi
5909
 
AR=$ac_cv_prog_AR
5910
 
if test -n "$AR"; then
5911
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5912
 
$as_echo "$AR" >&6; }
5913
 
else
5914
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5915
 
$as_echo "no" >&6; }
5916
 
fi
5917
 
 
5918
 
 
5919
 
fi
5920
 
if test -z "$ac_cv_prog_AR"; then
5921
 
  ac_ct_AR=$AR
5922
 
  # Extract the first word of "ar", so it can be a program name with args.
5923
 
set dummy ar; ac_word=$2
5924
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5925
 
$as_echo_n "checking for $ac_word... " >&6; }
5926
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5927
 
  $as_echo_n "(cached) " >&6
5928
 
else
5929
 
  if test -n "$ac_ct_AR"; then
5930
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931
 
else
5932
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933
 
for as_dir in $PATH
5934
 
do
5935
 
  IFS=$as_save_IFS
5936
 
  test -z "$as_dir" && as_dir=.
5937
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5938
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939
 
    ac_cv_prog_ac_ct_AR="ar"
5940
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941
 
    break 2
5942
 
  fi
5943
 
done
5944
 
done
5945
 
IFS=$as_save_IFS
5946
 
 
5947
 
fi
5948
 
fi
5949
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950
 
if test -n "$ac_ct_AR"; then
5951
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5952
 
$as_echo "$ac_ct_AR" >&6; }
5953
 
else
5954
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5955
 
$as_echo "no" >&6; }
5956
 
fi
5957
 
 
5958
 
  if test "x$ac_ct_AR" = x; then
5959
 
    AR="false"
5960
 
  else
5961
 
    case $cross_compiling:$ac_tool_warned in
5962
 
yes:)
5963
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5964
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965
 
ac_tool_warned=yes ;;
5966
 
esac
5967
 
    AR=$ac_ct_AR
5968
 
  fi
5969
 
else
5970
 
  AR="$ac_cv_prog_AR"
5971
 
fi
5972
 
 
5973
 
test -z "$AR" && AR=ar
5974
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5975
 
 
5976
 
 
5977
 
 
5978
 
 
5979
 
 
5980
 
 
5981
 
 
5982
 
 
5983
 
 
5984
 
 
5985
 
 
5986
 
if test -n "$ac_tool_prefix"; then
5987
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5988
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5989
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5990
 
$as_echo_n "checking for $ac_word... " >&6; }
5991
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5992
 
  $as_echo_n "(cached) " >&6
5993
 
else
5994
 
  if test -n "$STRIP"; then
5995
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996
 
else
5997
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998
 
for as_dir in $PATH
5999
 
do
6000
 
  IFS=$as_save_IFS
6001
 
  test -z "$as_dir" && as_dir=.
6002
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6003
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6005
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006
 
    break 2
6007
 
  fi
6008
 
done
6009
 
done
6010
 
IFS=$as_save_IFS
6011
 
 
6012
 
fi
6013
 
fi
6014
 
STRIP=$ac_cv_prog_STRIP
6015
 
if test -n "$STRIP"; then
6016
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6017
 
$as_echo "$STRIP" >&6; }
6018
 
else
6019
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6020
 
$as_echo "no" >&6; }
6021
 
fi
6022
 
 
6023
 
 
6024
 
fi
6025
 
if test -z "$ac_cv_prog_STRIP"; then
6026
 
  ac_ct_STRIP=$STRIP
6027
 
  # Extract the first word of "strip", so it can be a program name with args.
6028
 
set dummy strip; ac_word=$2
6029
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6030
 
$as_echo_n "checking for $ac_word... " >&6; }
6031
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032
 
  $as_echo_n "(cached) " >&6
6033
 
else
6034
 
  if test -n "$ac_ct_STRIP"; then
6035
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036
 
else
6037
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038
 
for as_dir in $PATH
6039
 
do
6040
 
  IFS=$as_save_IFS
6041
 
  test -z "$as_dir" && as_dir=.
6042
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6043
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044
 
    ac_cv_prog_ac_ct_STRIP="strip"
6045
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046
 
    break 2
6047
 
  fi
6048
 
done
6049
 
done
6050
 
IFS=$as_save_IFS
6051
 
 
6052
 
fi
6053
 
fi
6054
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055
 
if test -n "$ac_ct_STRIP"; then
6056
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057
 
$as_echo "$ac_ct_STRIP" >&6; }
6058
 
else
6059
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6060
 
$as_echo "no" >&6; }
6061
 
fi
6062
 
 
6063
 
  if test "x$ac_ct_STRIP" = x; then
6064
 
    STRIP=":"
6065
 
  else
6066
 
    case $cross_compiling:$ac_tool_warned in
6067
 
yes:)
6068
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6069
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070
 
ac_tool_warned=yes ;;
6071
 
esac
6072
 
    STRIP=$ac_ct_STRIP
6073
 
  fi
6074
 
else
6075
 
  STRIP="$ac_cv_prog_STRIP"
6076
 
fi
6077
 
 
6078
 
test -z "$STRIP" && STRIP=:
6079
 
 
6080
 
 
6081
 
 
6082
 
 
6083
 
 
6084
 
 
6085
 
if test -n "$ac_tool_prefix"; then
6086
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6089
 
$as_echo_n "checking for $ac_word... " >&6; }
6090
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6091
 
  $as_echo_n "(cached) " >&6
6092
 
else
6093
 
  if test -n "$RANLIB"; then
6094
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095
 
else
6096
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097
 
for as_dir in $PATH
6098
 
do
6099
 
  IFS=$as_save_IFS
6100
 
  test -z "$as_dir" && as_dir=.
6101
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6102
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105
 
    break 2
6106
 
  fi
6107
 
done
6108
 
done
6109
 
IFS=$as_save_IFS
6110
 
 
6111
 
fi
6112
 
fi
6113
 
RANLIB=$ac_cv_prog_RANLIB
6114
 
if test -n "$RANLIB"; then
6115
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6116
 
$as_echo "$RANLIB" >&6; }
6117
 
else
6118
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6119
 
$as_echo "no" >&6; }
6120
 
fi
6121
 
 
6122
 
 
6123
 
fi
6124
 
if test -z "$ac_cv_prog_RANLIB"; then
6125
 
  ac_ct_RANLIB=$RANLIB
6126
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6127
 
set dummy ranlib; ac_word=$2
6128
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6129
 
$as_echo_n "checking for $ac_word... " >&6; }
6130
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6131
 
  $as_echo_n "(cached) " >&6
6132
 
else
6133
 
  if test -n "$ac_ct_RANLIB"; then
6134
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135
 
else
6136
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137
 
for as_dir in $PATH
6138
 
do
6139
 
  IFS=$as_save_IFS
6140
 
  test -z "$as_dir" && as_dir=.
6141
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6142
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6144
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145
 
    break 2
6146
 
  fi
6147
 
done
6148
 
done
6149
 
IFS=$as_save_IFS
6150
 
 
6151
 
fi
6152
 
fi
6153
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154
 
if test -n "$ac_ct_RANLIB"; then
6155
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6156
 
$as_echo "$ac_ct_RANLIB" >&6; }
6157
 
else
6158
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6159
 
$as_echo "no" >&6; }
6160
 
fi
6161
 
 
6162
 
  if test "x$ac_ct_RANLIB" = x; then
6163
 
    RANLIB=":"
6164
 
  else
6165
 
    case $cross_compiling:$ac_tool_warned in
6166
 
yes:)
6167
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6168
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169
 
ac_tool_warned=yes ;;
6170
 
esac
6171
 
    RANLIB=$ac_ct_RANLIB
6172
 
  fi
6173
 
else
6174
 
  RANLIB="$ac_cv_prog_RANLIB"
6175
 
fi
6176
 
 
6177
 
test -z "$RANLIB" && RANLIB=:
6178
 
 
6179
 
 
6180
 
 
6181
 
 
6182
 
 
6183
 
 
6184
 
# Determine commands to create old-style static archives.
6185
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6186
 
old_postinstall_cmds='chmod 644 $oldlib'
6187
 
old_postuninstall_cmds=
6188
 
 
6189
 
if test -n "$RANLIB"; then
6190
 
  case $host_os in
6191
 
  openbsd*)
6192
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6193
 
    ;;
6194
 
  *)
6195
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6196
 
    ;;
6197
 
  esac
6198
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6199
 
fi
6200
 
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
 
 
6207
 
 
6208
 
 
6209
 
 
6210
 
 
6211
 
 
6212
 
 
6213
 
 
6214
 
 
6215
 
 
6216
 
 
6217
 
 
6218
 
 
6219
 
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
5388
# If no C compiler was specified, use CC.
6235
5389
LTCC=${LTCC-"$CC"}
6236
5390
 
6240
5394
# Allow CC to be a program name with arguments.
6241
5395
compiler=$CC
6242
5396
 
 
5397
# Check whether --enable-libtool-lock was given.
 
5398
if test "${enable_libtool_lock+set}" = set; then
 
5399
  enableval=$enable_libtool_lock;
 
5400
fi
 
5401
 
 
5402
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5403
 
 
5404
# Some flags need to be propagated to the compiler or linker for good
 
5405
# libtool support.
 
5406
case $host in
 
5407
ia64-*-hpux*)
 
5408
  # Find out which ABI we are using.
 
5409
  echo 'int i;' > conftest.$ac_ext
 
5410
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5411
  (eval $ac_compile) 2>&5
 
5412
  ac_status=$?
 
5413
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5414
  (exit $ac_status); }; then
 
5415
    case `/usr/bin/file conftest.$ac_objext` in
 
5416
    *ELF-32*)
 
5417
      HPUX_IA64_MODE="32"
 
5418
      ;;
 
5419
    *ELF-64*)
 
5420
      HPUX_IA64_MODE="64"
 
5421
      ;;
 
5422
    esac
 
5423
  fi
 
5424
  rm -rf conftest*
 
5425
  ;;
 
5426
*-*-irix6*)
 
5427
  # Find out which ABI we are using.
 
5428
  echo '#line 5428 "configure"' > conftest.$ac_ext
 
5429
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5430
  (eval $ac_compile) 2>&5
 
5431
  ac_status=$?
 
5432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5433
  (exit $ac_status); }; then
 
5434
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5435
    case `/usr/bin/file conftest.$ac_objext` in
 
5436
    *32-bit*)
 
5437
      LD="${LD-ld} -melf32bsmip"
 
5438
      ;;
 
5439
    *N32*)
 
5440
      LD="${LD-ld} -melf32bmipn32"
 
5441
      ;;
 
5442
    *64-bit*)
 
5443
      LD="${LD-ld} -melf64bmip"
 
5444
      ;;
 
5445
    esac
 
5446
   else
 
5447
    case `/usr/bin/file conftest.$ac_objext` in
 
5448
    *32-bit*)
 
5449
      LD="${LD-ld} -32"
 
5450
      ;;
 
5451
    *N32*)
 
5452
      LD="${LD-ld} -n32"
 
5453
      ;;
 
5454
    *64-bit*)
 
5455
      LD="${LD-ld} -64"
 
5456
      ;;
 
5457
    esac
 
5458
   fi
 
5459
  fi
 
5460
  rm -rf conftest*
 
5461
  ;;
 
5462
 
 
5463
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5464
s390*-*linux*|sparc*-*linux*)
 
5465
  # Find out which ABI we are using.
 
5466
  echo 'int i;' > conftest.$ac_ext
 
5467
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5468
  (eval $ac_compile) 2>&5
 
5469
  ac_status=$?
 
5470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5471
  (exit $ac_status); }; then
 
5472
    case `/usr/bin/file conftest.o` in
 
5473
    *32-bit*)
 
5474
      case $host in
 
5475
        x86_64-*kfreebsd*-gnu)
 
5476
          LD="${LD-ld} -m elf_i386_fbsd"
 
5477
          ;;
 
5478
        x86_64-*linux*)
 
5479
          LD="${LD-ld} -m elf_i386"
 
5480
          ;;
 
5481
        ppc64-*linux*|powerpc64-*linux*)
 
5482
          LD="${LD-ld} -m elf32ppclinux"
 
5483
          ;;
 
5484
        s390x-*linux*)
 
5485
          LD="${LD-ld} -m elf_s390"
 
5486
          ;;
 
5487
        sparc64-*linux*)
 
5488
          LD="${LD-ld} -m elf32_sparc"
 
5489
          ;;
 
5490
      esac
 
5491
      ;;
 
5492
    *64-bit*)
 
5493
      case $host in
 
5494
        x86_64-*kfreebsd*-gnu)
 
5495
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5496
          ;;
 
5497
        x86_64-*linux*)
 
5498
          LD="${LD-ld} -m elf_x86_64"
 
5499
          ;;
 
5500
        ppc*-*linux*|powerpc*-*linux*)
 
5501
          LD="${LD-ld} -m elf64ppc"
 
5502
          ;;
 
5503
        s390*-*linux*)
 
5504
          LD="${LD-ld} -m elf64_s390"
 
5505
          ;;
 
5506
        sparc*-*linux*)
 
5507
          LD="${LD-ld} -m elf64_sparc"
 
5508
          ;;
 
5509
      esac
 
5510
      ;;
 
5511
    esac
 
5512
  fi
 
5513
  rm -rf conftest*
 
5514
  ;;
 
5515
 
 
5516
*-*-sco3.2v5*)
 
5517
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5518
  SAVE_CFLAGS="$CFLAGS"
 
5519
  CFLAGS="$CFLAGS -belf"
 
5520
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5521
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5522
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5523
  $as_echo_n "(cached) " >&6
 
5524
else
 
5525
  ac_ext=c
 
5526
ac_cpp='$CPP $CPPFLAGS'
 
5527
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5528
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5529
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5530
 
 
5531
     cat >conftest.$ac_ext <<_ACEOF
 
5532
/* confdefs.h.  */
 
5533
_ACEOF
 
5534
cat confdefs.h >>conftest.$ac_ext
 
5535
cat >>conftest.$ac_ext <<_ACEOF
 
5536
/* end confdefs.h.  */
 
5537
 
 
5538
int
 
5539
main ()
 
5540
{
 
5541
 
 
5542
  ;
 
5543
  return 0;
 
5544
}
 
5545
_ACEOF
 
5546
rm -f conftest.$ac_objext conftest$ac_exeext
 
5547
if { (ac_try="$ac_link"
 
5548
case "(($ac_try" in
 
5549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5550
  *) ac_try_echo=$ac_try;;
 
5551
esac
 
5552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5553
$as_echo "$ac_try_echo") >&5
 
5554
  (eval "$ac_link") 2>conftest.er1
 
5555
  ac_status=$?
 
5556
  grep -v '^ *+' conftest.er1 >conftest.err
 
5557
  rm -f conftest.er1
 
5558
  cat conftest.err >&5
 
5559
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5560
  (exit $ac_status); } && {
 
5561
         test -z "$ac_c_werror_flag" ||
 
5562
         test ! -s conftest.err
 
5563
       } && test -s conftest$ac_exeext && {
 
5564
         test "$cross_compiling" = yes ||
 
5565
         $as_test_x conftest$ac_exeext
 
5566
       }; then
 
5567
  lt_cv_cc_needs_belf=yes
 
5568
else
 
5569
  $as_echo "$as_me: failed program was:" >&5
 
5570
sed 's/^/| /' conftest.$ac_ext >&5
 
5571
 
 
5572
        lt_cv_cc_needs_belf=no
 
5573
fi
 
5574
 
 
5575
rm -rf conftest.dSYM
 
5576
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5577
      conftest$ac_exeext conftest.$ac_ext
 
5578
     ac_ext=c
 
5579
ac_cpp='$CPP $CPPFLAGS'
 
5580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5583
 
 
5584
fi
 
5585
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5586
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5587
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5588
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5589
    CFLAGS="$SAVE_CFLAGS"
 
5590
  fi
 
5591
  ;;
 
5592
sparc*-*solaris*)
 
5593
  # Find out which ABI we are using.
 
5594
  echo 'int i;' > conftest.$ac_ext
 
5595
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5596
  (eval $ac_compile) 2>&5
 
5597
  ac_status=$?
 
5598
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5599
  (exit $ac_status); }; then
 
5600
    case `/usr/bin/file conftest.o` in
 
5601
    *64-bit*)
 
5602
      case $lt_cv_prog_gnu_ld in
 
5603
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5604
      *)
 
5605
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5606
          LD="${LD-ld} -64"
 
5607
        fi
 
5608
        ;;
 
5609
      esac
 
5610
      ;;
 
5611
    esac
 
5612
  fi
 
5613
  rm -rf conftest*
 
5614
  ;;
 
5615
 
 
5616
 
 
5617
esac
 
5618
 
 
5619
need_locks="$enable_libtool_lock"
 
5620
 
 
5621
 
 
5622
 
 
5623
for ac_header in dlfcn.h
 
5624
do
 
5625
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5626
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5627
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5628
$as_echo_n "checking for $ac_header... " >&6; }
 
5629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5630
  $as_echo_n "(cached) " >&6
 
5631
fi
 
5632
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5633
                 $as_echo "$as_val"'`
 
5634
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5635
$as_echo "$ac_res" >&6; }
 
5636
else
 
5637
  # Is the header compilable?
 
5638
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5639
$as_echo_n "checking $ac_header usability... " >&6; }
 
5640
cat >conftest.$ac_ext <<_ACEOF
 
5641
/* confdefs.h.  */
 
5642
_ACEOF
 
5643
cat confdefs.h >>conftest.$ac_ext
 
5644
cat >>conftest.$ac_ext <<_ACEOF
 
5645
/* end confdefs.h.  */
 
5646
$ac_includes_default
 
5647
#include <$ac_header>
 
5648
_ACEOF
 
5649
rm -f conftest.$ac_objext
 
5650
if { (ac_try="$ac_compile"
 
5651
case "(($ac_try" in
 
5652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5653
  *) ac_try_echo=$ac_try;;
 
5654
esac
 
5655
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5656
$as_echo "$ac_try_echo") >&5
 
5657
  (eval "$ac_compile") 2>conftest.er1
 
5658
  ac_status=$?
 
5659
  grep -v '^ *+' conftest.er1 >conftest.err
 
5660
  rm -f conftest.er1
 
5661
  cat conftest.err >&5
 
5662
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5663
  (exit $ac_status); } && {
 
5664
         test -z "$ac_c_werror_flag" ||
 
5665
         test ! -s conftest.err
 
5666
       } && test -s conftest.$ac_objext; then
 
5667
  ac_header_compiler=yes
 
5668
else
 
5669
  $as_echo "$as_me: failed program was:" >&5
 
5670
sed 's/^/| /' conftest.$ac_ext >&5
 
5671
 
 
5672
        ac_header_compiler=no
 
5673
fi
 
5674
 
 
5675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5676
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5677
$as_echo "$ac_header_compiler" >&6; }
 
5678
 
 
5679
# Is the header present?
 
5680
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5681
$as_echo_n "checking $ac_header presence... " >&6; }
 
5682
cat >conftest.$ac_ext <<_ACEOF
 
5683
/* confdefs.h.  */
 
5684
_ACEOF
 
5685
cat confdefs.h >>conftest.$ac_ext
 
5686
cat >>conftest.$ac_ext <<_ACEOF
 
5687
/* end confdefs.h.  */
 
5688
#include <$ac_header>
 
5689
_ACEOF
 
5690
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5691
case "(($ac_try" in
 
5692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5693
  *) ac_try_echo=$ac_try;;
 
5694
esac
 
5695
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5696
$as_echo "$ac_try_echo") >&5
 
5697
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5698
  ac_status=$?
 
5699
  grep -v '^ *+' conftest.er1 >conftest.err
 
5700
  rm -f conftest.er1
 
5701
  cat conftest.err >&5
 
5702
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5703
  (exit $ac_status); } >/dev/null && {
 
5704
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5705
         test ! -s conftest.err
 
5706
       }; then
 
5707
  ac_header_preproc=yes
 
5708
else
 
5709
  $as_echo "$as_me: failed program was:" >&5
 
5710
sed 's/^/| /' conftest.$ac_ext >&5
 
5711
 
 
5712
  ac_header_preproc=no
 
5713
fi
 
5714
 
 
5715
rm -f conftest.err conftest.$ac_ext
 
5716
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5717
$as_echo "$ac_header_preproc" >&6; }
 
5718
 
 
5719
# So?  What about this header?
 
5720
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5721
  yes:no: )
 
5722
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5723
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5724
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5725
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5726
    ac_header_preproc=yes
 
5727
    ;;
 
5728
  no:yes:* )
 
5729
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5730
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5731
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5732
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5733
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5734
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5735
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5736
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5737
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5738
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5739
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5740
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5741
    ( cat <<\_ASBOX
 
5742
## ---------------------------------------------------------------------- ##
 
5743
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
5744
## ---------------------------------------------------------------------- ##
 
5745
_ASBOX
 
5746
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5747
    ;;
 
5748
esac
 
5749
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5750
$as_echo_n "checking for $ac_header... " >&6; }
 
5751
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5752
  $as_echo_n "(cached) " >&6
 
5753
else
 
5754
  eval "$as_ac_Header=\$ac_header_preproc"
 
5755
fi
 
5756
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5757
                 $as_echo "$as_val"'`
 
5758
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5759
$as_echo "$ac_res" >&6; }
 
5760
 
 
5761
fi
 
5762
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5763
                 $as_echo "$as_val"'`
 
5764
   if test "x$as_val" = x""yes; then
 
5765
  cat >>confdefs.h <<_ACEOF
 
5766
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5767
_ACEOF
 
5768
 
 
5769
fi
 
5770
 
 
5771
done
 
5772
 
 
5773
ac_ext=cpp
 
5774
ac_cpp='$CXXCPP $CPPFLAGS'
 
5775
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5776
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5777
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5778
if test -z "$CXX"; then
 
5779
  if test -n "$CCC"; then
 
5780
    CXX=$CCC
 
5781
  else
 
5782
    if test -n "$ac_tool_prefix"; then
 
5783
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5784
  do
 
5785
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5786
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5787
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5788
$as_echo_n "checking for $ac_word... " >&6; }
 
5789
if test "${ac_cv_prog_CXX+set}" = set; then
 
5790
  $as_echo_n "(cached) " >&6
 
5791
else
 
5792
  if test -n "$CXX"; then
 
5793
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5794
else
 
5795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5796
for as_dir in $PATH
 
5797
do
 
5798
  IFS=$as_save_IFS
 
5799
  test -z "$as_dir" && as_dir=.
 
5800
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5801
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5802
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5803
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5804
    break 2
 
5805
  fi
 
5806
done
 
5807
done
 
5808
IFS=$as_save_IFS
 
5809
 
 
5810
fi
 
5811
fi
 
5812
CXX=$ac_cv_prog_CXX
 
5813
if test -n "$CXX"; then
 
5814
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5815
$as_echo "$CXX" >&6; }
 
5816
else
 
5817
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5818
$as_echo "no" >&6; }
 
5819
fi
 
5820
 
 
5821
 
 
5822
    test -n "$CXX" && break
 
5823
  done
 
5824
fi
 
5825
if test -z "$CXX"; then
 
5826
  ac_ct_CXX=$CXX
 
5827
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5828
do
 
5829
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5830
set dummy $ac_prog; ac_word=$2
 
5831
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5832
$as_echo_n "checking for $ac_word... " >&6; }
 
5833
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5834
  $as_echo_n "(cached) " >&6
 
5835
else
 
5836
  if test -n "$ac_ct_CXX"; then
 
5837
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5838
else
 
5839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5840
for as_dir in $PATH
 
5841
do
 
5842
  IFS=$as_save_IFS
 
5843
  test -z "$as_dir" && as_dir=.
 
5844
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5846
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5847
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5848
    break 2
 
5849
  fi
 
5850
done
 
5851
done
 
5852
IFS=$as_save_IFS
 
5853
 
 
5854
fi
 
5855
fi
 
5856
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5857
if test -n "$ac_ct_CXX"; then
 
5858
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5859
$as_echo "$ac_ct_CXX" >&6; }
 
5860
else
 
5861
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5862
$as_echo "no" >&6; }
 
5863
fi
 
5864
 
 
5865
 
 
5866
  test -n "$ac_ct_CXX" && break
 
5867
done
 
5868
 
 
5869
  if test "x$ac_ct_CXX" = x; then
 
5870
    CXX="g++"
 
5871
  else
 
5872
    case $cross_compiling:$ac_tool_warned in
 
5873
yes:)
 
5874
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5875
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5876
ac_tool_warned=yes ;;
 
5877
esac
 
5878
    CXX=$ac_ct_CXX
 
5879
  fi
 
5880
fi
 
5881
 
 
5882
  fi
 
5883
fi
 
5884
# Provide some information about the compiler.
 
5885
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5886
set X $ac_compile
 
5887
ac_compiler=$2
 
5888
{ (ac_try="$ac_compiler --version >&5"
 
5889
case "(($ac_try" in
 
5890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5891
  *) ac_try_echo=$ac_try;;
 
5892
esac
 
5893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5894
$as_echo "$ac_try_echo") >&5
 
5895
  (eval "$ac_compiler --version >&5") 2>&5
 
5896
  ac_status=$?
 
5897
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5898
  (exit $ac_status); }
 
5899
{ (ac_try="$ac_compiler -v >&5"
 
5900
case "(($ac_try" in
 
5901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5902
  *) ac_try_echo=$ac_try;;
 
5903
esac
 
5904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5905
$as_echo "$ac_try_echo") >&5
 
5906
  (eval "$ac_compiler -v >&5") 2>&5
 
5907
  ac_status=$?
 
5908
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5909
  (exit $ac_status); }
 
5910
{ (ac_try="$ac_compiler -V >&5"
 
5911
case "(($ac_try" in
 
5912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5913
  *) ac_try_echo=$ac_try;;
 
5914
esac
 
5915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5916
$as_echo "$ac_try_echo") >&5
 
5917
  (eval "$ac_compiler -V >&5") 2>&5
 
5918
  ac_status=$?
 
5919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5920
  (exit $ac_status); }
 
5921
 
 
5922
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5923
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5924
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5925
  $as_echo_n "(cached) " >&6
 
5926
else
 
5927
  cat >conftest.$ac_ext <<_ACEOF
 
5928
/* confdefs.h.  */
 
5929
_ACEOF
 
5930
cat confdefs.h >>conftest.$ac_ext
 
5931
cat >>conftest.$ac_ext <<_ACEOF
 
5932
/* end confdefs.h.  */
 
5933
 
 
5934
int
 
5935
main ()
 
5936
{
 
5937
#ifndef __GNUC__
 
5938
       choke me
 
5939
#endif
 
5940
 
 
5941
  ;
 
5942
  return 0;
 
5943
}
 
5944
_ACEOF
 
5945
rm -f conftest.$ac_objext
 
5946
if { (ac_try="$ac_compile"
 
5947
case "(($ac_try" in
 
5948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5949
  *) ac_try_echo=$ac_try;;
 
5950
esac
 
5951
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5952
$as_echo "$ac_try_echo") >&5
 
5953
  (eval "$ac_compile") 2>conftest.er1
 
5954
  ac_status=$?
 
5955
  grep -v '^ *+' conftest.er1 >conftest.err
 
5956
  rm -f conftest.er1
 
5957
  cat conftest.err >&5
 
5958
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5959
  (exit $ac_status); } && {
 
5960
         test -z "$ac_cxx_werror_flag" ||
 
5961
         test ! -s conftest.err
 
5962
       } && test -s conftest.$ac_objext; then
 
5963
  ac_compiler_gnu=yes
 
5964
else
 
5965
  $as_echo "$as_me: failed program was:" >&5
 
5966
sed 's/^/| /' conftest.$ac_ext >&5
 
5967
 
 
5968
        ac_compiler_gnu=no
 
5969
fi
 
5970
 
 
5971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5972
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5973
 
 
5974
fi
 
5975
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5976
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5977
if test $ac_compiler_gnu = yes; then
 
5978
  GXX=yes
 
5979
else
 
5980
  GXX=
 
5981
fi
 
5982
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5983
ac_save_CXXFLAGS=$CXXFLAGS
 
5984
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5985
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5986
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5987
  $as_echo_n "(cached) " >&6
 
5988
else
 
5989
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5990
   ac_cxx_werror_flag=yes
 
5991
   ac_cv_prog_cxx_g=no
 
5992
   CXXFLAGS="-g"
 
5993
   cat >conftest.$ac_ext <<_ACEOF
 
5994
/* confdefs.h.  */
 
5995
_ACEOF
 
5996
cat confdefs.h >>conftest.$ac_ext
 
5997
cat >>conftest.$ac_ext <<_ACEOF
 
5998
/* end confdefs.h.  */
 
5999
 
 
6000
int
 
6001
main ()
 
6002
{
 
6003
 
 
6004
  ;
 
6005
  return 0;
 
6006
}
 
6007
_ACEOF
 
6008
rm -f conftest.$ac_objext
 
6009
if { (ac_try="$ac_compile"
 
6010
case "(($ac_try" in
 
6011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6012
  *) ac_try_echo=$ac_try;;
 
6013
esac
 
6014
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6015
$as_echo "$ac_try_echo") >&5
 
6016
  (eval "$ac_compile") 2>conftest.er1
 
6017
  ac_status=$?
 
6018
  grep -v '^ *+' conftest.er1 >conftest.err
 
6019
  rm -f conftest.er1
 
6020
  cat conftest.err >&5
 
6021
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6022
  (exit $ac_status); } && {
 
6023
         test -z "$ac_cxx_werror_flag" ||
 
6024
         test ! -s conftest.err
 
6025
       } && test -s conftest.$ac_objext; then
 
6026
  ac_cv_prog_cxx_g=yes
 
6027
else
 
6028
  $as_echo "$as_me: failed program was:" >&5
 
6029
sed 's/^/| /' conftest.$ac_ext >&5
 
6030
 
 
6031
        CXXFLAGS=""
 
6032
      cat >conftest.$ac_ext <<_ACEOF
 
6033
/* confdefs.h.  */
 
6034
_ACEOF
 
6035
cat confdefs.h >>conftest.$ac_ext
 
6036
cat >>conftest.$ac_ext <<_ACEOF
 
6037
/* end confdefs.h.  */
 
6038
 
 
6039
int
 
6040
main ()
 
6041
{
 
6042
 
 
6043
  ;
 
6044
  return 0;
 
6045
}
 
6046
_ACEOF
 
6047
rm -f conftest.$ac_objext
 
6048
if { (ac_try="$ac_compile"
 
6049
case "(($ac_try" in
 
6050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6051
  *) ac_try_echo=$ac_try;;
 
6052
esac
 
6053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6054
$as_echo "$ac_try_echo") >&5
 
6055
  (eval "$ac_compile") 2>conftest.er1
 
6056
  ac_status=$?
 
6057
  grep -v '^ *+' conftest.er1 >conftest.err
 
6058
  rm -f conftest.er1
 
6059
  cat conftest.err >&5
 
6060
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6061
  (exit $ac_status); } && {
 
6062
         test -z "$ac_cxx_werror_flag" ||
 
6063
         test ! -s conftest.err
 
6064
       } && test -s conftest.$ac_objext; then
 
6065
  :
 
6066
else
 
6067
  $as_echo "$as_me: failed program was:" >&5
 
6068
sed 's/^/| /' conftest.$ac_ext >&5
 
6069
 
 
6070
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6071
         CXXFLAGS="-g"
 
6072
         cat >conftest.$ac_ext <<_ACEOF
 
6073
/* confdefs.h.  */
 
6074
_ACEOF
 
6075
cat confdefs.h >>conftest.$ac_ext
 
6076
cat >>conftest.$ac_ext <<_ACEOF
 
6077
/* end confdefs.h.  */
 
6078
 
 
6079
int
 
6080
main ()
 
6081
{
 
6082
 
 
6083
  ;
 
6084
  return 0;
 
6085
}
 
6086
_ACEOF
 
6087
rm -f conftest.$ac_objext
 
6088
if { (ac_try="$ac_compile"
 
6089
case "(($ac_try" in
 
6090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6091
  *) ac_try_echo=$ac_try;;
 
6092
esac
 
6093
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6094
$as_echo "$ac_try_echo") >&5
 
6095
  (eval "$ac_compile") 2>conftest.er1
 
6096
  ac_status=$?
 
6097
  grep -v '^ *+' conftest.er1 >conftest.err
 
6098
  rm -f conftest.er1
 
6099
  cat conftest.err >&5
 
6100
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6101
  (exit $ac_status); } && {
 
6102
         test -z "$ac_cxx_werror_flag" ||
 
6103
         test ! -s conftest.err
 
6104
       } && test -s conftest.$ac_objext; then
 
6105
  ac_cv_prog_cxx_g=yes
 
6106
else
 
6107
  $as_echo "$as_me: failed program was:" >&5
 
6108
sed 's/^/| /' conftest.$ac_ext >&5
 
6109
 
 
6110
 
 
6111
fi
 
6112
 
 
6113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6114
fi
 
6115
 
 
6116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6117
fi
 
6118
 
 
6119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6120
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6121
fi
 
6122
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6123
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6124
if test "$ac_test_CXXFLAGS" = set; then
 
6125
  CXXFLAGS=$ac_save_CXXFLAGS
 
6126
elif test $ac_cv_prog_cxx_g = yes; then
 
6127
  if test "$GXX" = yes; then
 
6128
    CXXFLAGS="-g -O2"
 
6129
  else
 
6130
    CXXFLAGS="-g"
 
6131
  fi
 
6132
else
 
6133
  if test "$GXX" = yes; then
 
6134
    CXXFLAGS="-O2"
 
6135
  else
 
6136
    CXXFLAGS=
 
6137
  fi
 
6138
fi
 
6139
ac_ext=cpp
 
6140
ac_cpp='$CXXCPP $CPPFLAGS'
 
6141
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6142
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6143
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6144
 
 
6145
depcc="$CXX"  am_compiler_list=
 
6146
 
 
6147
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6148
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6149
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6150
  $as_echo_n "(cached) " >&6
 
6151
else
 
6152
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6153
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6154
  # making bogus files that we don't know about and never remove.  For
 
6155
  # instance it was reported that on HP-UX the gcc test will end up
 
6156
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6157
  # in D'.
 
6158
  mkdir conftest.dir
 
6159
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6160
  # using a relative directory.
 
6161
  cp "$am_depcomp" conftest.dir
 
6162
  cd conftest.dir
 
6163
  # We will build objects and dependencies in a subdirectory because
 
6164
  # it helps to detect inapplicable dependency modes.  For instance
 
6165
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6166
  # side effect of compilation, but ICC will put the dependencies in
 
6167
  # the current directory while Tru64 will put them in the object
 
6168
  # directory.
 
6169
  mkdir sub
 
6170
 
 
6171
  am_cv_CXX_dependencies_compiler_type=none
 
6172
  if test "$am_compiler_list" = ""; then
 
6173
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6174
  fi
 
6175
  am__universal=false
 
6176
  case " $depcc " in #(
 
6177
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6178
     esac
 
6179
 
 
6180
  for depmode in $am_compiler_list; do
 
6181
    # Setup a source with many dependencies, because some compilers
 
6182
    # like to wrap large dependency lists on column 80 (with \), and
 
6183
    # we should not choose a depcomp mode which is confused by this.
 
6184
    #
 
6185
    # We need to recreate these files for each test, as the compiler may
 
6186
    # overwrite some of them when testing with obscure command lines.
 
6187
    # This happens at least with the AIX C compiler.
 
6188
    : > sub/conftest.c
 
6189
    for i in 1 2 3 4 5 6; do
 
6190
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6191
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6192
      # Solaris 8's {/usr,}/bin/sh.
 
6193
      touch sub/conftst$i.h
 
6194
    done
 
6195
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6196
 
 
6197
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6198
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6199
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6200
    # versions had trouble with output in subdirs
 
6201
    am__obj=sub/conftest.${OBJEXT-o}
 
6202
    am__minus_obj="-o $am__obj"
 
6203
    case $depmode in
 
6204
    gcc)
 
6205
      # This depmode causes a compiler race in universal mode.
 
6206
      test "$am__universal" = false || continue
 
6207
      ;;
 
6208
    nosideeffect)
 
6209
      # after this tag, mechanisms are not by side-effect, so they'll
 
6210
      # only be used when explicitly requested
 
6211
      if test "x$enable_dependency_tracking" = xyes; then
 
6212
        continue
 
6213
      else
 
6214
        break
 
6215
      fi
 
6216
      ;;
 
6217
    msvisualcpp | msvcmsys)
 
6218
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6219
      # not run yet.  These depmodes are late enough in the game, and
 
6220
      # so weak that their functioning should not be impacted.
 
6221
      am__obj=conftest.${OBJEXT-o}
 
6222
      am__minus_obj=
 
6223
      ;;
 
6224
    none) break ;;
 
6225
    esac
 
6226
    if depmode=$depmode \
 
6227
       source=sub/conftest.c object=$am__obj \
 
6228
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6229
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6230
         >/dev/null 2>conftest.err &&
 
6231
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6232
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6233
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6234
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6235
      # icc doesn't choke on unknown options, it will just issue warnings
 
6236
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6237
      # that says an option was ignored or not supported.
 
6238
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6239
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6240
      # The diagnosis changed in icc 8.0:
 
6241
      #   icc: Command line remark: option '-MP' not supported
 
6242
      if (grep 'ignoring option' conftest.err ||
 
6243
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6244
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6245
        break
 
6246
      fi
 
6247
    fi
 
6248
  done
 
6249
 
 
6250
  cd ..
 
6251
  rm -rf conftest.dir
 
6252
else
 
6253
  am_cv_CXX_dependencies_compiler_type=none
 
6254
fi
 
6255
 
 
6256
fi
 
6257
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6258
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6259
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6260
 
 
6261
 if
 
6262
  test "x$enable_dependency_tracking" != xno \
 
6263
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6264
  am__fastdepCXX_TRUE=
 
6265
  am__fastdepCXX_FALSE='#'
 
6266
else
 
6267
  am__fastdepCXX_TRUE='#'
 
6268
  am__fastdepCXX_FALSE=
 
6269
fi
 
6270
 
 
6271
 
 
6272
 
 
6273
 
 
6274
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6275
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6276
    (test "X$CXX" != "Xg++"))) ; then
 
6277
  ac_ext=cpp
 
6278
ac_cpp='$CXXCPP $CPPFLAGS'
 
6279
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6280
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6281
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6282
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6283
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
6284
if test -z "$CXXCPP"; then
 
6285
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6286
  $as_echo_n "(cached) " >&6
 
6287
else
 
6288
      # Double quotes because CXXCPP needs to be expanded
 
6289
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6290
    do
 
6291
      ac_preproc_ok=false
 
6292
for ac_cxx_preproc_warn_flag in '' yes
 
6293
do
 
6294
  # Use a header file that comes with gcc, so configuring glibc
 
6295
  # with a fresh cross-compiler works.
 
6296
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6297
  # <limits.h> exists even on freestanding compilers.
 
6298
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6299
  # not just through cpp. "Syntax error" is here to catch this case.
 
6300
  cat >conftest.$ac_ext <<_ACEOF
 
6301
/* confdefs.h.  */
 
6302
_ACEOF
 
6303
cat confdefs.h >>conftest.$ac_ext
 
6304
cat >>conftest.$ac_ext <<_ACEOF
 
6305
/* end confdefs.h.  */
 
6306
#ifdef __STDC__
 
6307
# include <limits.h>
 
6308
#else
 
6309
# include <assert.h>
 
6310
#endif
 
6311
                     Syntax error
 
6312
_ACEOF
 
6313
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6314
case "(($ac_try" in
 
6315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6316
  *) ac_try_echo=$ac_try;;
 
6317
esac
 
6318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6319
$as_echo "$ac_try_echo") >&5
 
6320
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6321
  ac_status=$?
 
6322
  grep -v '^ *+' conftest.er1 >conftest.err
 
6323
  rm -f conftest.er1
 
6324
  cat conftest.err >&5
 
6325
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6326
  (exit $ac_status); } >/dev/null && {
 
6327
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6328
         test ! -s conftest.err
 
6329
       }; then
 
6330
  :
 
6331
else
 
6332
  $as_echo "$as_me: failed program was:" >&5
 
6333
sed 's/^/| /' conftest.$ac_ext >&5
 
6334
 
 
6335
  # Broken: fails on valid input.
 
6336
continue
 
6337
fi
 
6338
 
 
6339
rm -f conftest.err conftest.$ac_ext
 
6340
 
 
6341
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6342
  # can be detected and how.
 
6343
  cat >conftest.$ac_ext <<_ACEOF
 
6344
/* confdefs.h.  */
 
6345
_ACEOF
 
6346
cat confdefs.h >>conftest.$ac_ext
 
6347
cat >>conftest.$ac_ext <<_ACEOF
 
6348
/* end confdefs.h.  */
 
6349
#include <ac_nonexistent.h>
 
6350
_ACEOF
 
6351
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6352
case "(($ac_try" in
 
6353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6354
  *) ac_try_echo=$ac_try;;
 
6355
esac
 
6356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6357
$as_echo "$ac_try_echo") >&5
 
6358
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6359
  ac_status=$?
 
6360
  grep -v '^ *+' conftest.er1 >conftest.err
 
6361
  rm -f conftest.er1
 
6362
  cat conftest.err >&5
 
6363
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6364
  (exit $ac_status); } >/dev/null && {
 
6365
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6366
         test ! -s conftest.err
 
6367
       }; then
 
6368
  # Broken: success on invalid input.
 
6369
continue
 
6370
else
 
6371
  $as_echo "$as_me: failed program was:" >&5
 
6372
sed 's/^/| /' conftest.$ac_ext >&5
 
6373
 
 
6374
  # Passes both tests.
 
6375
ac_preproc_ok=:
 
6376
break
 
6377
fi
 
6378
 
 
6379
rm -f conftest.err conftest.$ac_ext
 
6380
 
 
6381
done
 
6382
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6383
rm -f conftest.err conftest.$ac_ext
 
6384
if $ac_preproc_ok; then
 
6385
  break
 
6386
fi
 
6387
 
 
6388
    done
 
6389
    ac_cv_prog_CXXCPP=$CXXCPP
 
6390
 
 
6391
fi
 
6392
  CXXCPP=$ac_cv_prog_CXXCPP
 
6393
else
 
6394
  ac_cv_prog_CXXCPP=$CXXCPP
 
6395
fi
 
6396
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6397
$as_echo "$CXXCPP" >&6; }
 
6398
ac_preproc_ok=false
 
6399
for ac_cxx_preproc_warn_flag in '' yes
 
6400
do
 
6401
  # Use a header file that comes with gcc, so configuring glibc
 
6402
  # with a fresh cross-compiler works.
 
6403
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6404
  # <limits.h> exists even on freestanding compilers.
 
6405
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6406
  # not just through cpp. "Syntax error" is here to catch this case.
 
6407
  cat >conftest.$ac_ext <<_ACEOF
 
6408
/* confdefs.h.  */
 
6409
_ACEOF
 
6410
cat confdefs.h >>conftest.$ac_ext
 
6411
cat >>conftest.$ac_ext <<_ACEOF
 
6412
/* end confdefs.h.  */
 
6413
#ifdef __STDC__
 
6414
# include <limits.h>
 
6415
#else
 
6416
# include <assert.h>
 
6417
#endif
 
6418
                     Syntax error
 
6419
_ACEOF
 
6420
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6421
case "(($ac_try" in
 
6422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6423
  *) ac_try_echo=$ac_try;;
 
6424
esac
 
6425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6426
$as_echo "$ac_try_echo") >&5
 
6427
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6428
  ac_status=$?
 
6429
  grep -v '^ *+' conftest.er1 >conftest.err
 
6430
  rm -f conftest.er1
 
6431
  cat conftest.err >&5
 
6432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6433
  (exit $ac_status); } >/dev/null && {
 
6434
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6435
         test ! -s conftest.err
 
6436
       }; then
 
6437
  :
 
6438
else
 
6439
  $as_echo "$as_me: failed program was:" >&5
 
6440
sed 's/^/| /' conftest.$ac_ext >&5
 
6441
 
 
6442
  # Broken: fails on valid input.
 
6443
continue
 
6444
fi
 
6445
 
 
6446
rm -f conftest.err conftest.$ac_ext
 
6447
 
 
6448
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6449
  # can be detected and how.
 
6450
  cat >conftest.$ac_ext <<_ACEOF
 
6451
/* confdefs.h.  */
 
6452
_ACEOF
 
6453
cat confdefs.h >>conftest.$ac_ext
 
6454
cat >>conftest.$ac_ext <<_ACEOF
 
6455
/* end confdefs.h.  */
 
6456
#include <ac_nonexistent.h>
 
6457
_ACEOF
 
6458
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6459
case "(($ac_try" in
 
6460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6461
  *) ac_try_echo=$ac_try;;
 
6462
esac
 
6463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6464
$as_echo "$ac_try_echo") >&5
 
6465
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6466
  ac_status=$?
 
6467
  grep -v '^ *+' conftest.er1 >conftest.err
 
6468
  rm -f conftest.er1
 
6469
  cat conftest.err >&5
 
6470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6471
  (exit $ac_status); } >/dev/null && {
 
6472
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6473
         test ! -s conftest.err
 
6474
       }; then
 
6475
  # Broken: success on invalid input.
 
6476
continue
 
6477
else
 
6478
  $as_echo "$as_me: failed program was:" >&5
 
6479
sed 's/^/| /' conftest.$ac_ext >&5
 
6480
 
 
6481
  # Passes both tests.
 
6482
ac_preproc_ok=:
 
6483
break
 
6484
fi
 
6485
 
 
6486
rm -f conftest.err conftest.$ac_ext
 
6487
 
 
6488
done
 
6489
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6490
rm -f conftest.err conftest.$ac_ext
 
6491
if $ac_preproc_ok; then
 
6492
  :
 
6493
else
 
6494
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6495
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6496
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6497
See \`config.log' for more details." >&5
 
6498
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6499
See \`config.log' for more details." >&2;}
 
6500
   { (exit 1); exit 1; }; }; }
 
6501
fi
 
6502
 
 
6503
ac_ext=cpp
 
6504
ac_cpp='$CXXCPP $CPPFLAGS'
 
6505
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6506
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6507
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6508
 
 
6509
fi
 
6510
 
 
6511
 
 
6512
ac_ext=f
 
6513
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6514
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6515
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6516
if test -n "$ac_tool_prefix"; then
 
6517
  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
 
6518
  do
 
6519
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6520
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6521
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6522
$as_echo_n "checking for $ac_word... " >&6; }
 
6523
if test "${ac_cv_prog_F77+set}" = set; then
 
6524
  $as_echo_n "(cached) " >&6
 
6525
else
 
6526
  if test -n "$F77"; then
 
6527
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6528
else
 
6529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6530
for as_dir in $PATH
 
6531
do
 
6532
  IFS=$as_save_IFS
 
6533
  test -z "$as_dir" && as_dir=.
 
6534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6536
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6537
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6538
    break 2
 
6539
  fi
 
6540
done
 
6541
done
 
6542
IFS=$as_save_IFS
 
6543
 
 
6544
fi
 
6545
fi
 
6546
F77=$ac_cv_prog_F77
 
6547
if test -n "$F77"; then
 
6548
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6549
$as_echo "$F77" >&6; }
 
6550
else
 
6551
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6552
$as_echo "no" >&6; }
 
6553
fi
 
6554
 
 
6555
 
 
6556
    test -n "$F77" && break
 
6557
  done
 
6558
fi
 
6559
if test -z "$F77"; then
 
6560
  ac_ct_F77=$F77
 
6561
  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
 
6562
do
 
6563
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6564
set dummy $ac_prog; ac_word=$2
 
6565
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6566
$as_echo_n "checking for $ac_word... " >&6; }
 
6567
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6568
  $as_echo_n "(cached) " >&6
 
6569
else
 
6570
  if test -n "$ac_ct_F77"; then
 
6571
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6572
else
 
6573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6574
for as_dir in $PATH
 
6575
do
 
6576
  IFS=$as_save_IFS
 
6577
  test -z "$as_dir" && as_dir=.
 
6578
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6579
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6580
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6581
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6582
    break 2
 
6583
  fi
 
6584
done
 
6585
done
 
6586
IFS=$as_save_IFS
 
6587
 
 
6588
fi
 
6589
fi
 
6590
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6591
if test -n "$ac_ct_F77"; then
 
6592
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6593
$as_echo "$ac_ct_F77" >&6; }
 
6594
else
 
6595
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6596
$as_echo "no" >&6; }
 
6597
fi
 
6598
 
 
6599
 
 
6600
  test -n "$ac_ct_F77" && break
 
6601
done
 
6602
 
 
6603
  if test "x$ac_ct_F77" = x; then
 
6604
    F77=""
 
6605
  else
 
6606
    case $cross_compiling:$ac_tool_warned in
 
6607
yes:)
 
6608
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6609
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6610
ac_tool_warned=yes ;;
 
6611
esac
 
6612
    F77=$ac_ct_F77
 
6613
  fi
 
6614
fi
 
6615
 
 
6616
 
 
6617
# Provide some information about the compiler.
 
6618
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6619
set X $ac_compile
 
6620
ac_compiler=$2
 
6621
{ (ac_try="$ac_compiler --version >&5"
 
6622
case "(($ac_try" in
 
6623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6624
  *) ac_try_echo=$ac_try;;
 
6625
esac
 
6626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6627
$as_echo "$ac_try_echo") >&5
 
6628
  (eval "$ac_compiler --version >&5") 2>&5
 
6629
  ac_status=$?
 
6630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6631
  (exit $ac_status); }
 
6632
{ (ac_try="$ac_compiler -v >&5"
 
6633
case "(($ac_try" in
 
6634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6635
  *) ac_try_echo=$ac_try;;
 
6636
esac
 
6637
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6638
$as_echo "$ac_try_echo") >&5
 
6639
  (eval "$ac_compiler -v >&5") 2>&5
 
6640
  ac_status=$?
 
6641
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6642
  (exit $ac_status); }
 
6643
{ (ac_try="$ac_compiler -V >&5"
 
6644
case "(($ac_try" in
 
6645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6646
  *) ac_try_echo=$ac_try;;
 
6647
esac
 
6648
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6649
$as_echo "$ac_try_echo") >&5
 
6650
  (eval "$ac_compiler -V >&5") 2>&5
 
6651
  ac_status=$?
 
6652
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6653
  (exit $ac_status); }
 
6654
rm -f a.out
 
6655
 
 
6656
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6657
# input file.  (Note that this only needs to work for GNU compilers.)
 
6658
ac_save_ext=$ac_ext
 
6659
ac_ext=F
 
6660
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6661
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6662
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6663
  $as_echo_n "(cached) " >&6
 
6664
else
 
6665
  cat >conftest.$ac_ext <<_ACEOF
 
6666
      program main
 
6667
#ifndef __GNUC__
 
6668
       choke me
 
6669
#endif
 
6670
 
 
6671
      end
 
6672
_ACEOF
 
6673
rm -f conftest.$ac_objext
 
6674
if { (ac_try="$ac_compile"
 
6675
case "(($ac_try" in
 
6676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6677
  *) ac_try_echo=$ac_try;;
 
6678
esac
 
6679
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6680
$as_echo "$ac_try_echo") >&5
 
6681
  (eval "$ac_compile") 2>conftest.er1
 
6682
  ac_status=$?
 
6683
  grep -v '^ *+' conftest.er1 >conftest.err
 
6684
  rm -f conftest.er1
 
6685
  cat conftest.err >&5
 
6686
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6687
  (exit $ac_status); } && {
 
6688
         test -z "$ac_f77_werror_flag" ||
 
6689
         test ! -s conftest.err
 
6690
       } && test -s conftest.$ac_objext; then
 
6691
  ac_compiler_gnu=yes
 
6692
else
 
6693
  $as_echo "$as_me: failed program was:" >&5
 
6694
sed 's/^/| /' conftest.$ac_ext >&5
 
6695
 
 
6696
        ac_compiler_gnu=no
 
6697
fi
 
6698
 
 
6699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6700
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6701
 
 
6702
fi
 
6703
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6704
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6705
ac_ext=$ac_save_ext
 
6706
ac_test_FFLAGS=${FFLAGS+set}
 
6707
ac_save_FFLAGS=$FFLAGS
 
6708
FFLAGS=
 
6709
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6710
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6711
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6712
  $as_echo_n "(cached) " >&6
 
6713
else
 
6714
  FFLAGS=-g
 
6715
cat >conftest.$ac_ext <<_ACEOF
 
6716
      program main
 
6717
 
 
6718
      end
 
6719
_ACEOF
 
6720
rm -f conftest.$ac_objext
 
6721
if { (ac_try="$ac_compile"
 
6722
case "(($ac_try" in
 
6723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6724
  *) ac_try_echo=$ac_try;;
 
6725
esac
 
6726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6727
$as_echo "$ac_try_echo") >&5
 
6728
  (eval "$ac_compile") 2>conftest.er1
 
6729
  ac_status=$?
 
6730
  grep -v '^ *+' conftest.er1 >conftest.err
 
6731
  rm -f conftest.er1
 
6732
  cat conftest.err >&5
 
6733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6734
  (exit $ac_status); } && {
 
6735
         test -z "$ac_f77_werror_flag" ||
 
6736
         test ! -s conftest.err
 
6737
       } && test -s conftest.$ac_objext; then
 
6738
  ac_cv_prog_f77_g=yes
 
6739
else
 
6740
  $as_echo "$as_me: failed program was:" >&5
 
6741
sed 's/^/| /' conftest.$ac_ext >&5
 
6742
 
 
6743
        ac_cv_prog_f77_g=no
 
6744
fi
 
6745
 
 
6746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6747
 
 
6748
fi
 
6749
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6750
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6751
if test "$ac_test_FFLAGS" = set; then
 
6752
  FFLAGS=$ac_save_FFLAGS
 
6753
elif test $ac_cv_prog_f77_g = yes; then
 
6754
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6755
    FFLAGS="-g -O2"
 
6756
  else
 
6757
    FFLAGS="-g"
 
6758
  fi
 
6759
else
 
6760
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6761
    FFLAGS="-O2"
 
6762
  else
 
6763
    FFLAGS=
 
6764
  fi
 
6765
fi
 
6766
 
 
6767
if test $ac_compiler_gnu = yes; then
 
6768
  G77=yes
 
6769
else
 
6770
  G77=
 
6771
fi
 
6772
ac_ext=c
 
6773
ac_cpp='$CPP $CPPFLAGS'
 
6774
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6775
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6776
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6777
 
 
6778
 
 
6779
 
 
6780
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6781
# find the maximum length of command line arguments
 
6782
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6783
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6784
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6785
  $as_echo_n "(cached) " >&6
 
6786
else
 
6787
    i=0
 
6788
  teststring="ABCD"
 
6789
 
 
6790
  case $build_os in
 
6791
  msdosdjgpp*)
 
6792
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6793
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6794
    # during glob expansion).  Even if it were fixed, the result of this
 
6795
    # check would be larger than it should be.
 
6796
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6797
    ;;
 
6798
 
 
6799
  gnu*)
 
6800
    # Under GNU Hurd, this test is not required because there is
 
6801
    # no limit to the length of command line arguments.
 
6802
    # Libtool will interpret -1 as no limit whatsoever
 
6803
    lt_cv_sys_max_cmd_len=-1;
 
6804
    ;;
 
6805
 
 
6806
  cygwin* | mingw*)
 
6807
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6808
    # about 5 minutes as the teststring grows exponentially.
 
6809
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6810
    # you end up with a "frozen" computer, even though with patience
 
6811
    # the test eventually succeeds (with a max line length of 256k).
 
6812
    # Instead, let's just punt: use the minimum linelength reported by
 
6813
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6814
    lt_cv_sys_max_cmd_len=8192;
 
6815
    ;;
 
6816
 
 
6817
  amigaos*)
 
6818
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6819
    # So we just punt and use a minimum line length of 8192.
 
6820
    lt_cv_sys_max_cmd_len=8192;
 
6821
    ;;
 
6822
 
 
6823
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6824
    # This has been around since 386BSD, at least.  Likely further.
 
6825
    if test -x /sbin/sysctl; then
 
6826
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6827
    elif test -x /usr/sbin/sysctl; then
 
6828
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6829
    else
 
6830
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6831
    fi
 
6832
    # And add a safety zone
 
6833
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6834
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6835
    ;;
 
6836
 
 
6837
  interix*)
 
6838
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6839
    lt_cv_sys_max_cmd_len=196608
 
6840
    ;;
 
6841
 
 
6842
  osf*)
 
6843
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6844
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6845
    # nice to cause kernel panics so lets avoid the loop below.
 
6846
    # First set a reasonable default.
 
6847
    lt_cv_sys_max_cmd_len=16384
 
6848
    #
 
6849
    if test -x /sbin/sysconfig; then
 
6850
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6851
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6852
      esac
 
6853
    fi
 
6854
    ;;
 
6855
  sco3.2v5*)
 
6856
    lt_cv_sys_max_cmd_len=102400
 
6857
    ;;
 
6858
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6859
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6860
    if test -n "$kargmax"; then
 
6861
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6862
    else
 
6863
      lt_cv_sys_max_cmd_len=32768
 
6864
    fi
 
6865
    ;;
 
6866
  *)
 
6867
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6868
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6869
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6870
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6871
    else
 
6872
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6873
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6874
               = "XX$teststring") >/dev/null 2>&1 &&
 
6875
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6876
              lt_cv_sys_max_cmd_len=$new_result &&
 
6877
              test $i != 17 # 1/2 MB should be enough
 
6878
      do
 
6879
        i=`expr $i + 1`
 
6880
        teststring=$teststring$teststring
 
6881
      done
 
6882
      teststring=
 
6883
      # Add a significant safety factor because C++ compilers can tack on massive
 
6884
      # amounts of additional arguments before passing them to the linker.
 
6885
      # It appears as though 1/2 is a usable value.
 
6886
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6887
    fi
 
6888
    ;;
 
6889
  esac
 
6890
 
 
6891
fi
 
6892
 
 
6893
if test -n $lt_cv_sys_max_cmd_len ; then
 
6894
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6895
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6896
else
 
6897
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6898
$as_echo "none" >&6; }
 
6899
fi
 
6900
 
 
6901
 
 
6902
 
 
6903
 
6243
6904
 
6244
6905
# Check for command to grab the raw symbol name followed by C symbol from nm.
6245
6906
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6257
6918
# Regexp to match symbols that can be accessed directly from C.
6258
6919
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6259
6920
 
 
6921
# Transform an extracted symbol line into a proper C declaration
 
6922
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6923
 
 
6924
# Transform an extracted symbol line into symbol name and symbol address
 
6925
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'"
 
6926
 
6260
6927
# Define system-specific variables.
6261
6928
case $host_os in
6262
6929
aix*)
6263
6930
  symcode='[BCDT]'
6264
6931
  ;;
6265
 
cygwin* | mingw* | pw32* | cegcc*)
 
6932
cygwin* | mingw* | pw32*)
6266
6933
  symcode='[ABCDGISTW]'
6267
6934
  ;;
6268
 
hpux*)
 
6935
hpux*) # Its linker distinguishes data from code symbols
6269
6936
  if test "$host_cpu" = ia64; then
6270
6937
    symcode='[ABCDEGRST]'
6271
6938
  fi
 
6939
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6940
  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'"
 
6941
  ;;
 
6942
linux* | k*bsd*-gnu)
 
6943
  if test "$host_cpu" = ia64; then
 
6944
    symcode='[ABCDGIRSTW]'
 
6945
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6946
    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'"
 
6947
  fi
6272
6948
  ;;
6273
6949
irix* | nonstopux*)
6274
6950
  symcode='[BCDEGRST]'
6293
6969
  ;;
6294
6970
esac
6295
6971
 
6296
 
# If we're using GNU nm, then use its standard symbol codes.
6297
 
case `$NM -V 2>&1` in
6298
 
*GNU* | *'with BFD'*)
6299
 
  symcode='[ABCDGIRSTW]' ;;
6300
 
esac
6301
 
 
6302
 
# Transform an extracted symbol line into a proper C declaration.
6303
 
# Some systems (esp. on ia64) link data and code symbols differently,
6304
 
# so use this general approach.
6305
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6306
 
 
6307
 
# Transform an extracted symbol line into symbol name and symbol address
6308
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6309
 
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'"
6310
 
 
6311
6972
# Handle CRLF in mingw tool chain
6312
6973
opt_cr=
6313
6974
case $build_os in
6314
6975
mingw*)
6315
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6976
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6316
6977
  ;;
6317
6978
esac
6318
6979
 
6319
 
# Try without a prefix underscore, then with it.
 
6980
# If we're using GNU nm, then use its standard symbol codes.
 
6981
case `$NM -V 2>&1` in
 
6982
*GNU* | *'with BFD'*)
 
6983
  symcode='[ABCDGIRSTW]' ;;
 
6984
esac
 
6985
 
 
6986
# Try without a prefix undercore, then with it.
6320
6987
for ac_symprfx in "" "_"; do
6321
6988
 
6322
6989
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6323
6990
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6324
6991
 
6325
6992
  # Write the raw and C identifiers.
6326
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6327
 
    # Fake it for dumpbin and say T for any non-static function
6328
 
    # and D for any global variable.
6329
 
    # Also find C++ and __fastcall symbols from MSVC++,
6330
 
    # which start with @ or ?.
6331
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6332
 
"     {last_section=section; section=\$ 3};"\
6333
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6334
 
"     \$ 0!~/External *\|/{next};"\
6335
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6336
 
"     {if(hide[section]) next};"\
6337
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6338
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6339
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6340
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6341
 
"     ' prfx=^$ac_symprfx"
6342
 
  else
6343
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6344
 
  fi
 
6993
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6345
6994
 
6346
6995
  # Check to see that the pipe works correctly.
6347
6996
  pipe_works=no
6348
6997
 
6349
6998
  rm -f conftest*
6350
 
  cat > conftest.$ac_ext <<_LT_EOF
 
6999
  cat > conftest.$ac_ext <<EOF
6351
7000
#ifdef __cplusplus
6352
7001
extern "C" {
6353
7002
#endif
6354
7003
char nm_test_var;
6355
 
void nm_test_func(void);
6356
 
void nm_test_func(void){}
 
7004
void nm_test_func(){}
6357
7005
#ifdef __cplusplus
6358
7006
}
6359
7007
#endif
6360
7008
int main(){nm_test_var='a';nm_test_func();return(0);}
6361
 
_LT_EOF
 
7009
EOF
6362
7010
 
6363
7011
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364
7012
  (eval $ac_compile) 2>&5
6380
7028
      fi
6381
7029
 
6382
7030
      # Make sure that we snagged all the symbols we need.
6383
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6384
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6385
 
          cat <<_LT_EOF > conftest.$ac_ext
 
7031
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7032
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7033
          cat <<EOF > conftest.$ac_ext
6386
7034
#ifdef __cplusplus
6387
7035
extern "C" {
6388
7036
#endif
6389
7037
 
6390
 
_LT_EOF
 
7038
EOF
6391
7039
          # Now generate the symbol file.
6392
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6393
 
 
6394
 
          cat <<_LT_EOF >> conftest.$ac_ext
6395
 
 
6396
 
/* The mapping between symbol names and symbols.  */
 
7040
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7041
 
 
7042
          cat <<EOF >> conftest.$ac_ext
 
7043
#if defined (__STDC__) && __STDC__
 
7044
# define lt_ptr_t void *
 
7045
#else
 
7046
# define lt_ptr_t char *
 
7047
# define const
 
7048
#endif
 
7049
 
 
7050
/* The mapping between symbol names and symbols. */
6397
7051
const struct {
6398
7052
  const char *name;
6399
 
  void       *address;
 
7053
  lt_ptr_t address;
6400
7054
}
6401
 
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7055
lt_preloaded_symbols[] =
6402
7056
{
6403
 
  { "@PROGRAM@", (void *) 0 },
6404
 
_LT_EOF
6405
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6406
 
          cat <<\_LT_EOF >> conftest.$ac_ext
6407
 
  {0, (void *) 0}
 
7057
EOF
 
7058
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7059
          cat <<\EOF >> conftest.$ac_ext
 
7060
  {0, (lt_ptr_t) 0}
6408
7061
};
6409
7062
 
6410
 
/* This works around a problem in FreeBSD linker */
6411
 
#ifdef FREEBSD_WORKAROUND
6412
 
static const void *lt_preloaded_setup() {
6413
 
  return lt__PROGRAM__LTX_preloaded_symbols;
6414
 
}
6415
 
#endif
6416
 
 
6417
7063
#ifdef __cplusplus
6418
7064
}
6419
7065
#endif
6420
 
_LT_EOF
 
7066
EOF
6421
7067
          # Now try linking the two files.
6422
7068
          mv conftest.$ac_objext conftstm.$ac_objext
6423
7069
          lt_save_LIBS="$LIBS"
6469
7115
$as_echo "ok" >&6; }
6470
7116
fi
6471
7117
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
 
 
6482
 
 
6483
 
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
# Check whether --enable-libtool-lock was given.
6494
 
if test "${enable_libtool_lock+set}" = set; then
6495
 
  enableval=$enable_libtool_lock;
6496
 
fi
6497
 
 
6498
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6499
 
 
6500
 
# Some flags need to be propagated to the compiler or linker for good
6501
 
# libtool support.
6502
 
case $host in
6503
 
ia64-*-hpux*)
6504
 
  # Find out which ABI we are using.
6505
 
  echo 'int i;' > conftest.$ac_ext
6506
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507
 
  (eval $ac_compile) 2>&5
6508
 
  ac_status=$?
6509
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510
 
  (exit $ac_status); }; then
6511
 
    case `/usr/bin/file conftest.$ac_objext` in
6512
 
      *ELF-32*)
6513
 
        HPUX_IA64_MODE="32"
6514
 
        ;;
6515
 
      *ELF-64*)
6516
 
        HPUX_IA64_MODE="64"
6517
 
        ;;
6518
 
    esac
6519
 
  fi
6520
 
  rm -rf conftest*
6521
 
  ;;
6522
 
*-*-irix6*)
6523
 
  # Find out which ABI we are using.
6524
 
  echo '#line 6524 "configure"' > conftest.$ac_ext
6525
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526
 
  (eval $ac_compile) 2>&5
6527
 
  ac_status=$?
6528
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
 
  (exit $ac_status); }; then
6530
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
6531
 
      case `/usr/bin/file conftest.$ac_objext` in
6532
 
        *32-bit*)
6533
 
          LD="${LD-ld} -melf32bsmip"
6534
 
          ;;
6535
 
        *N32*)
6536
 
          LD="${LD-ld} -melf32bmipn32"
6537
 
          ;;
6538
 
        *64-bit*)
6539
 
          LD="${LD-ld} -melf64bmip"
6540
 
        ;;
6541
 
      esac
6542
 
    else
6543
 
      case `/usr/bin/file conftest.$ac_objext` in
6544
 
        *32-bit*)
6545
 
          LD="${LD-ld} -32"
6546
 
          ;;
6547
 
        *N32*)
6548
 
          LD="${LD-ld} -n32"
6549
 
          ;;
6550
 
        *64-bit*)
6551
 
          LD="${LD-ld} -64"
6552
 
          ;;
6553
 
      esac
6554
 
    fi
6555
 
  fi
6556
 
  rm -rf conftest*
6557
 
  ;;
6558
 
 
6559
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6560
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6561
 
  # Find out which ABI we are using.
6562
 
  echo 'int i;' > conftest.$ac_ext
6563
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564
 
  (eval $ac_compile) 2>&5
6565
 
  ac_status=$?
6566
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567
 
  (exit $ac_status); }; then
6568
 
    case `/usr/bin/file conftest.o` in
6569
 
      *32-bit*)
6570
 
        case $host in
6571
 
          x86_64-*kfreebsd*-gnu)
6572
 
            LD="${LD-ld} -m elf_i386_fbsd"
6573
 
            ;;
6574
 
          x86_64-*linux*)
6575
 
            LD="${LD-ld} -m elf_i386"
6576
 
            ;;
6577
 
          ppc64-*linux*|powerpc64-*linux*)
6578
 
            LD="${LD-ld} -m elf32ppclinux"
6579
 
            ;;
6580
 
          s390x-*linux*)
6581
 
            LD="${LD-ld} -m elf_s390"
6582
 
            ;;
6583
 
          sparc64-*linux*)
6584
 
            LD="${LD-ld} -m elf32_sparc"
6585
 
            ;;
6586
 
        esac
6587
 
        ;;
6588
 
      *64-bit*)
6589
 
        case $host in
6590
 
          x86_64-*kfreebsd*-gnu)
6591
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
6592
 
            ;;
6593
 
          x86_64-*linux*)
6594
 
            LD="${LD-ld} -m elf_x86_64"
6595
 
            ;;
6596
 
          ppc*-*linux*|powerpc*-*linux*)
6597
 
            LD="${LD-ld} -m elf64ppc"
6598
 
            ;;
6599
 
          s390*-*linux*|s390*-*tpf*)
6600
 
            LD="${LD-ld} -m elf64_s390"
6601
 
            ;;
6602
 
          sparc*-*linux*)
6603
 
            LD="${LD-ld} -m elf64_sparc"
6604
 
            ;;
6605
 
        esac
6606
 
        ;;
6607
 
    esac
6608
 
  fi
6609
 
  rm -rf conftest*
6610
 
  ;;
6611
 
 
6612
 
*-*-sco3.2v5*)
6613
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6614
 
  SAVE_CFLAGS="$CFLAGS"
6615
 
  CFLAGS="$CFLAGS -belf"
6616
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6617
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6618
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6619
 
  $as_echo_n "(cached) " >&6
6620
 
else
6621
 
  ac_ext=c
6622
 
ac_cpp='$CPP $CPPFLAGS'
6623
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
 
 
6627
 
     cat >conftest.$ac_ext <<_ACEOF
6628
 
/* confdefs.h.  */
6629
 
_ACEOF
6630
 
cat confdefs.h >>conftest.$ac_ext
6631
 
cat >>conftest.$ac_ext <<_ACEOF
6632
 
/* end confdefs.h.  */
6633
 
 
6634
 
int
6635
 
main ()
6636
 
{
6637
 
 
6638
 
  ;
6639
 
  return 0;
6640
 
}
6641
 
_ACEOF
6642
 
rm -f conftest.$ac_objext conftest$ac_exeext
6643
 
if { (ac_try="$ac_link"
6644
 
case "(($ac_try" in
6645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646
 
  *) ac_try_echo=$ac_try;;
6647
 
esac
6648
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649
 
$as_echo "$ac_try_echo") >&5
6650
 
  (eval "$ac_link") 2>conftest.er1
6651
 
  ac_status=$?
6652
 
  grep -v '^ *+' conftest.er1 >conftest.err
6653
 
  rm -f conftest.er1
6654
 
  cat conftest.err >&5
6655
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656
 
  (exit $ac_status); } && {
6657
 
         test -z "$ac_c_werror_flag" ||
6658
 
         test ! -s conftest.err
6659
 
       } && test -s conftest$ac_exeext && {
6660
 
         test "$cross_compiling" = yes ||
6661
 
         $as_test_x conftest$ac_exeext
6662
 
       }; then
6663
 
  lt_cv_cc_needs_belf=yes
6664
 
else
6665
 
  $as_echo "$as_me: failed program was:" >&5
6666
 
sed 's/^/| /' conftest.$ac_ext >&5
6667
 
 
6668
 
        lt_cv_cc_needs_belf=no
6669
 
fi
6670
 
 
6671
 
rm -rf conftest.dSYM
6672
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6673
 
      conftest$ac_exeext conftest.$ac_ext
6674
 
     ac_ext=c
6675
 
ac_cpp='$CPP $CPPFLAGS'
6676
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
 
 
6680
 
fi
6681
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6682
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6683
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685
 
    CFLAGS="$SAVE_CFLAGS"
6686
 
  fi
6687
 
  ;;
6688
 
sparc*-*solaris*)
6689
 
  # Find out which ABI we are using.
6690
 
  echo 'int i;' > conftest.$ac_ext
6691
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692
 
  (eval $ac_compile) 2>&5
6693
 
  ac_status=$?
6694
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695
 
  (exit $ac_status); }; then
6696
 
    case `/usr/bin/file conftest.o` in
6697
 
    *64-bit*)
6698
 
      case $lt_cv_prog_gnu_ld in
6699
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6700
 
      *)
6701
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6702
 
          LD="${LD-ld} -64"
6703
 
        fi
6704
 
        ;;
6705
 
      esac
6706
 
      ;;
6707
 
    esac
6708
 
  fi
6709
 
  rm -rf conftest*
6710
 
  ;;
6711
 
esac
6712
 
 
6713
 
need_locks="$enable_libtool_lock"
 
7118
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7119
$as_echo_n "checking for objdir... " >&6; }
 
7120
if test "${lt_cv_objdir+set}" = set; then
 
7121
  $as_echo_n "(cached) " >&6
 
7122
else
 
7123
  rm -f .libs 2>/dev/null
 
7124
mkdir .libs 2>/dev/null
 
7125
if test -d .libs; then
 
7126
  lt_cv_objdir=.libs
 
7127
else
 
7128
  # MS-DOS does not allow filenames that begin with a dot.
 
7129
  lt_cv_objdir=_libs
 
7130
fi
 
7131
rmdir .libs 2>/dev/null
 
7132
fi
 
7133
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7134
$as_echo "$lt_cv_objdir" >&6; }
 
7135
objdir=$lt_cv_objdir
 
7136
 
 
7137
 
 
7138
 
 
7139
 
 
7140
 
 
7141
case $host_os in
 
7142
aix3*)
 
7143
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7144
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7145
  # vanish in a puff of smoke.
 
7146
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7147
    COLLECT_NAMES=
 
7148
    export COLLECT_NAMES
 
7149
  fi
 
7150
  ;;
 
7151
esac
 
7152
 
 
7153
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7154
# metacharacters that are still active within double-quoted strings.
 
7155
Xsed='sed -e 1s/^X//'
 
7156
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7157
 
 
7158
# Same as above, but do not quote variable references.
 
7159
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7160
 
 
7161
# Sed substitution to delay expansion of an escaped shell variable in a
 
7162
# double_quote_subst'ed string.
 
7163
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7164
 
 
7165
# Sed substitution to avoid accidental globbing in evaled expressions
 
7166
no_glob_subst='s/\*/\\\*/g'
 
7167
 
 
7168
# Constants:
 
7169
rm="rm -f"
 
7170
 
 
7171
# Global variables:
 
7172
default_ofile=libtool
 
7173
can_build_shared=yes
 
7174
 
 
7175
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7176
# which needs '.lib').
 
7177
libext=a
 
7178
ltmain="$ac_aux_dir/ltmain.sh"
 
7179
ofile="$default_ofile"
 
7180
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7181
 
 
7182
if test -n "$ac_tool_prefix"; then
 
7183
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7184
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7185
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7186
$as_echo_n "checking for $ac_word... " >&6; }
 
7187
if test "${ac_cv_prog_AR+set}" = set; then
 
7188
  $as_echo_n "(cached) " >&6
 
7189
else
 
7190
  if test -n "$AR"; then
 
7191
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7192
else
 
7193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7194
for as_dir in $PATH
 
7195
do
 
7196
  IFS=$as_save_IFS
 
7197
  test -z "$as_dir" && as_dir=.
 
7198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7200
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7201
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7202
    break 2
 
7203
  fi
 
7204
done
 
7205
done
 
7206
IFS=$as_save_IFS
 
7207
 
 
7208
fi
 
7209
fi
 
7210
AR=$ac_cv_prog_AR
 
7211
if test -n "$AR"; then
 
7212
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
7213
$as_echo "$AR" >&6; }
 
7214
else
 
7215
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7216
$as_echo "no" >&6; }
 
7217
fi
 
7218
 
 
7219
 
 
7220
fi
 
7221
if test -z "$ac_cv_prog_AR"; then
 
7222
  ac_ct_AR=$AR
 
7223
  # Extract the first word of "ar", so it can be a program name with args.
 
7224
set dummy ar; ac_word=$2
 
7225
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7226
$as_echo_n "checking for $ac_word... " >&6; }
 
7227
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7228
  $as_echo_n "(cached) " >&6
 
7229
else
 
7230
  if test -n "$ac_ct_AR"; then
 
7231
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7232
else
 
7233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7234
for as_dir in $PATH
 
7235
do
 
7236
  IFS=$as_save_IFS
 
7237
  test -z "$as_dir" && as_dir=.
 
7238
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7239
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7240
    ac_cv_prog_ac_ct_AR="ar"
 
7241
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7242
    break 2
 
7243
  fi
 
7244
done
 
7245
done
 
7246
IFS=$as_save_IFS
 
7247
 
 
7248
fi
 
7249
fi
 
7250
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7251
if test -n "$ac_ct_AR"; then
 
7252
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7253
$as_echo "$ac_ct_AR" >&6; }
 
7254
else
 
7255
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7256
$as_echo "no" >&6; }
 
7257
fi
 
7258
 
 
7259
  if test "x$ac_ct_AR" = x; then
 
7260
    AR="false"
 
7261
  else
 
7262
    case $cross_compiling:$ac_tool_warned in
 
7263
yes:)
 
7264
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7265
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7266
ac_tool_warned=yes ;;
 
7267
esac
 
7268
    AR=$ac_ct_AR
 
7269
  fi
 
7270
else
 
7271
  AR="$ac_cv_prog_AR"
 
7272
fi
 
7273
 
 
7274
if test -n "$ac_tool_prefix"; then
 
7275
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7276
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7277
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7278
$as_echo_n "checking for $ac_word... " >&6; }
 
7279
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7280
  $as_echo_n "(cached) " >&6
 
7281
else
 
7282
  if test -n "$RANLIB"; then
 
7283
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7284
else
 
7285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7286
for as_dir in $PATH
 
7287
do
 
7288
  IFS=$as_save_IFS
 
7289
  test -z "$as_dir" && as_dir=.
 
7290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7292
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7293
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7294
    break 2
 
7295
  fi
 
7296
done
 
7297
done
 
7298
IFS=$as_save_IFS
 
7299
 
 
7300
fi
 
7301
fi
 
7302
RANLIB=$ac_cv_prog_RANLIB
 
7303
if test -n "$RANLIB"; then
 
7304
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7305
$as_echo "$RANLIB" >&6; }
 
7306
else
 
7307
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7308
$as_echo "no" >&6; }
 
7309
fi
 
7310
 
 
7311
 
 
7312
fi
 
7313
if test -z "$ac_cv_prog_RANLIB"; then
 
7314
  ac_ct_RANLIB=$RANLIB
 
7315
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7316
set dummy ranlib; ac_word=$2
 
7317
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7318
$as_echo_n "checking for $ac_word... " >&6; }
 
7319
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7320
  $as_echo_n "(cached) " >&6
 
7321
else
 
7322
  if test -n "$ac_ct_RANLIB"; then
 
7323
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7324
else
 
7325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7326
for as_dir in $PATH
 
7327
do
 
7328
  IFS=$as_save_IFS
 
7329
  test -z "$as_dir" && as_dir=.
 
7330
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7332
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7333
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7334
    break 2
 
7335
  fi
 
7336
done
 
7337
done
 
7338
IFS=$as_save_IFS
 
7339
 
 
7340
fi
 
7341
fi
 
7342
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7343
if test -n "$ac_ct_RANLIB"; then
 
7344
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7345
$as_echo "$ac_ct_RANLIB" >&6; }
 
7346
else
 
7347
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7348
$as_echo "no" >&6; }
 
7349
fi
 
7350
 
 
7351
  if test "x$ac_ct_RANLIB" = x; then
 
7352
    RANLIB=":"
 
7353
  else
 
7354
    case $cross_compiling:$ac_tool_warned in
 
7355
yes:)
 
7356
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7358
ac_tool_warned=yes ;;
 
7359
esac
 
7360
    RANLIB=$ac_ct_RANLIB
 
7361
  fi
 
7362
else
 
7363
  RANLIB="$ac_cv_prog_RANLIB"
 
7364
fi
 
7365
 
 
7366
if test -n "$ac_tool_prefix"; then
 
7367
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7368
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7369
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7370
$as_echo_n "checking for $ac_word... " >&6; }
 
7371
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7372
  $as_echo_n "(cached) " >&6
 
7373
else
 
7374
  if test -n "$STRIP"; then
 
7375
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7376
else
 
7377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7378
for as_dir in $PATH
 
7379
do
 
7380
  IFS=$as_save_IFS
 
7381
  test -z "$as_dir" && as_dir=.
 
7382
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7383
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7384
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7385
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7386
    break 2
 
7387
  fi
 
7388
done
 
7389
done
 
7390
IFS=$as_save_IFS
 
7391
 
 
7392
fi
 
7393
fi
 
7394
STRIP=$ac_cv_prog_STRIP
 
7395
if test -n "$STRIP"; then
 
7396
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
7397
$as_echo "$STRIP" >&6; }
 
7398
else
 
7399
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7400
$as_echo "no" >&6; }
 
7401
fi
 
7402
 
 
7403
 
 
7404
fi
 
7405
if test -z "$ac_cv_prog_STRIP"; then
 
7406
  ac_ct_STRIP=$STRIP
 
7407
  # Extract the first word of "strip", so it can be a program name with args.
 
7408
set dummy strip; ac_word=$2
 
7409
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7410
$as_echo_n "checking for $ac_word... " >&6; }
 
7411
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7412
  $as_echo_n "(cached) " >&6
 
7413
else
 
7414
  if test -n "$ac_ct_STRIP"; then
 
7415
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7416
else
 
7417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7418
for as_dir in $PATH
 
7419
do
 
7420
  IFS=$as_save_IFS
 
7421
  test -z "$as_dir" && as_dir=.
 
7422
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7424
    ac_cv_prog_ac_ct_STRIP="strip"
 
7425
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7426
    break 2
 
7427
  fi
 
7428
done
 
7429
done
 
7430
IFS=$as_save_IFS
 
7431
 
 
7432
fi
 
7433
fi
 
7434
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7435
if test -n "$ac_ct_STRIP"; then
 
7436
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7437
$as_echo "$ac_ct_STRIP" >&6; }
 
7438
else
 
7439
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7440
$as_echo "no" >&6; }
 
7441
fi
 
7442
 
 
7443
  if test "x$ac_ct_STRIP" = x; then
 
7444
    STRIP=":"
 
7445
  else
 
7446
    case $cross_compiling:$ac_tool_warned in
 
7447
yes:)
 
7448
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7449
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7450
ac_tool_warned=yes ;;
 
7451
esac
 
7452
    STRIP=$ac_ct_STRIP
 
7453
  fi
 
7454
else
 
7455
  STRIP="$ac_cv_prog_STRIP"
 
7456
fi
 
7457
 
 
7458
 
 
7459
old_CC="$CC"
 
7460
old_CFLAGS="$CFLAGS"
 
7461
 
 
7462
# Set sane defaults for various variables
 
7463
test -z "$AR" && AR=ar
 
7464
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7465
test -z "$AS" && AS=as
 
7466
test -z "$CC" && CC=cc
 
7467
test -z "$LTCC" && LTCC=$CC
 
7468
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7469
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7470
test -z "$LD" && LD=ld
 
7471
test -z "$LN_S" && LN_S="ln -s"
 
7472
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7473
test -z "$NM" && NM=nm
 
7474
test -z "$SED" && SED=sed
 
7475
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7476
test -z "$RANLIB" && RANLIB=:
 
7477
test -z "$STRIP" && STRIP=:
 
7478
test -z "$ac_objext" && ac_objext=o
 
7479
 
 
7480
# Determine commands to create old-style static archives.
 
7481
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7482
old_postinstall_cmds='chmod 644 $oldlib'
 
7483
old_postuninstall_cmds=
 
7484
 
 
7485
if test -n "$RANLIB"; then
 
7486
  case $host_os in
 
7487
  openbsd*)
 
7488
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7489
    ;;
 
7490
  *)
 
7491
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7492
    ;;
 
7493
  esac
 
7494
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7495
fi
 
7496
 
 
7497
for cc_temp in $compiler""; do
 
7498
  case $cc_temp in
 
7499
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7500
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7501
    \-*) ;;
 
7502
    *) break;;
 
7503
  esac
 
7504
done
 
7505
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7506
 
 
7507
 
 
7508
# Only perform the check for file, if the check method requires it
 
7509
case $deplibs_check_method in
 
7510
file_magic*)
 
7511
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7512
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7513
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7514
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7515
  $as_echo_n "(cached) " >&6
 
7516
else
 
7517
  case $MAGIC_CMD in
 
7518
[\\/*] |  ?:[\\/]*)
 
7519
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7520
  ;;
 
7521
*)
 
7522
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7523
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7524
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7525
  for ac_dir in $ac_dummy; do
 
7526
    IFS="$lt_save_ifs"
 
7527
    test -z "$ac_dir" && ac_dir=.
 
7528
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7529
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7530
      if test -n "$file_magic_test_file"; then
 
7531
        case $deplibs_check_method in
 
7532
        "file_magic "*)
 
7533
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7534
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7535
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7536
            $EGREP "$file_magic_regex" > /dev/null; then
 
7537
            :
 
7538
          else
 
7539
            cat <<EOF 1>&2
 
7540
 
 
7541
*** Warning: the command libtool uses to detect shared libraries,
 
7542
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7543
*** The result is that libtool may fail to recognize shared libraries
 
7544
*** as such.  This will affect the creation of libtool libraries that
 
7545
*** depend on shared libraries, but programs linked with such libtool
 
7546
*** libraries will work regardless of this problem.  Nevertheless, you
 
7547
*** may want to report the problem to your system manager and/or to
 
7548
*** bug-libtool@gnu.org
 
7549
 
 
7550
EOF
 
7551
          fi ;;
 
7552
        esac
 
7553
      fi
 
7554
      break
 
7555
    fi
 
7556
  done
 
7557
  IFS="$lt_save_ifs"
 
7558
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7559
  ;;
 
7560
esac
 
7561
fi
 
7562
 
 
7563
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7564
if test -n "$MAGIC_CMD"; then
 
7565
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7566
$as_echo "$MAGIC_CMD" >&6; }
 
7567
else
 
7568
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7569
$as_echo "no" >&6; }
 
7570
fi
 
7571
 
 
7572
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7573
  if test -n "$ac_tool_prefix"; then
 
7574
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7575
$as_echo_n "checking for file... " >&6; }
 
7576
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7577
  $as_echo_n "(cached) " >&6
 
7578
else
 
7579
  case $MAGIC_CMD in
 
7580
[\\/*] |  ?:[\\/]*)
 
7581
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7582
  ;;
 
7583
*)
 
7584
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7585
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7586
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7587
  for ac_dir in $ac_dummy; do
 
7588
    IFS="$lt_save_ifs"
 
7589
    test -z "$ac_dir" && ac_dir=.
 
7590
    if test -f $ac_dir/file; then
 
7591
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7592
      if test -n "$file_magic_test_file"; then
 
7593
        case $deplibs_check_method in
 
7594
        "file_magic "*)
 
7595
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7596
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7597
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7598
            $EGREP "$file_magic_regex" > /dev/null; then
 
7599
            :
 
7600
          else
 
7601
            cat <<EOF 1>&2
 
7602
 
 
7603
*** Warning: the command libtool uses to detect shared libraries,
 
7604
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7605
*** The result is that libtool may fail to recognize shared libraries
 
7606
*** as such.  This will affect the creation of libtool libraries that
 
7607
*** depend on shared libraries, but programs linked with such libtool
 
7608
*** libraries will work regardless of this problem.  Nevertheless, you
 
7609
*** may want to report the problem to your system manager and/or to
 
7610
*** bug-libtool@gnu.org
 
7611
 
 
7612
EOF
 
7613
          fi ;;
 
7614
        esac
 
7615
      fi
 
7616
      break
 
7617
    fi
 
7618
  done
 
7619
  IFS="$lt_save_ifs"
 
7620
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7621
  ;;
 
7622
esac
 
7623
fi
 
7624
 
 
7625
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7626
if test -n "$MAGIC_CMD"; then
 
7627
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7628
$as_echo "$MAGIC_CMD" >&6; }
 
7629
else
 
7630
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7631
$as_echo "no" >&6; }
 
7632
fi
 
7633
 
 
7634
  else
 
7635
    MAGIC_CMD=:
 
7636
  fi
 
7637
fi
 
7638
 
 
7639
  fi
 
7640
  ;;
 
7641
esac
6714
7642
 
6715
7643
 
6716
7644
  case $host_os in
6899
7827
  NMEDIT="$ac_cv_prog_NMEDIT"
6900
7828
fi
6901
7829
 
6902
 
    if test -n "$ac_tool_prefix"; then
6903
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6904
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6905
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906
 
$as_echo_n "checking for $ac_word... " >&6; }
6907
 
if test "${ac_cv_prog_LIPO+set}" = set; then
6908
 
  $as_echo_n "(cached) " >&6
6909
 
else
6910
 
  if test -n "$LIPO"; then
6911
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6912
 
else
6913
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914
 
for as_dir in $PATH
6915
 
do
6916
 
  IFS=$as_save_IFS
6917
 
  test -z "$as_dir" && as_dir=.
6918
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6919
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6921
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922
 
    break 2
6923
 
  fi
6924
 
done
6925
 
done
6926
 
IFS=$as_save_IFS
6927
 
 
6928
 
fi
6929
 
fi
6930
 
LIPO=$ac_cv_prog_LIPO
6931
 
if test -n "$LIPO"; then
6932
 
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6933
 
$as_echo "$LIPO" >&6; }
6934
 
else
6935
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6936
 
$as_echo "no" >&6; }
6937
 
fi
6938
 
 
6939
 
 
6940
 
fi
6941
 
if test -z "$ac_cv_prog_LIPO"; then
6942
 
  ac_ct_LIPO=$LIPO
6943
 
  # Extract the first word of "lipo", so it can be a program name with args.
6944
 
set dummy lipo; ac_word=$2
6945
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946
 
$as_echo_n "checking for $ac_word... " >&6; }
6947
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6948
 
  $as_echo_n "(cached) " >&6
6949
 
else
6950
 
  if test -n "$ac_ct_LIPO"; then
6951
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6952
 
else
6953
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954
 
for as_dir in $PATH
6955
 
do
6956
 
  IFS=$as_save_IFS
6957
 
  test -z "$as_dir" && as_dir=.
6958
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6959
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960
 
    ac_cv_prog_ac_ct_LIPO="lipo"
6961
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962
 
    break 2
6963
 
  fi
6964
 
done
6965
 
done
6966
 
IFS=$as_save_IFS
6967
 
 
6968
 
fi
6969
 
fi
6970
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6971
 
if test -n "$ac_ct_LIPO"; then
6972
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6973
 
$as_echo "$ac_ct_LIPO" >&6; }
6974
 
else
6975
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6976
 
$as_echo "no" >&6; }
6977
 
fi
6978
 
 
6979
 
  if test "x$ac_ct_LIPO" = x; then
6980
 
    LIPO=":"
6981
 
  else
6982
 
    case $cross_compiling:$ac_tool_warned in
6983
 
yes:)
6984
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986
 
ac_tool_warned=yes ;;
6987
 
esac
6988
 
    LIPO=$ac_ct_LIPO
6989
 
  fi
6990
 
else
6991
 
  LIPO="$ac_cv_prog_LIPO"
6992
 
fi
6993
 
 
6994
 
    if test -n "$ac_tool_prefix"; then
6995
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6996
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
6997
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998
 
$as_echo_n "checking for $ac_word... " >&6; }
6999
 
if test "${ac_cv_prog_OTOOL+set}" = set; then
7000
 
  $as_echo_n "(cached) " >&6
7001
 
else
7002
 
  if test -n "$OTOOL"; then
7003
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7004
 
else
7005
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006
 
for as_dir in $PATH
7007
 
do
7008
 
  IFS=$as_save_IFS
7009
 
  test -z "$as_dir" && as_dir=.
7010
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7011
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7013
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014
 
    break 2
7015
 
  fi
7016
 
done
7017
 
done
7018
 
IFS=$as_save_IFS
7019
 
 
7020
 
fi
7021
 
fi
7022
 
OTOOL=$ac_cv_prog_OTOOL
7023
 
if test -n "$OTOOL"; then
7024
 
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7025
 
$as_echo "$OTOOL" >&6; }
7026
 
else
7027
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7028
 
$as_echo "no" >&6; }
7029
 
fi
7030
 
 
7031
 
 
7032
 
fi
7033
 
if test -z "$ac_cv_prog_OTOOL"; then
7034
 
  ac_ct_OTOOL=$OTOOL
7035
 
  # Extract the first word of "otool", so it can be a program name with args.
7036
 
set dummy otool; ac_word=$2
7037
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038
 
$as_echo_n "checking for $ac_word... " >&6; }
7039
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7040
 
  $as_echo_n "(cached) " >&6
7041
 
else
7042
 
  if test -n "$ac_ct_OTOOL"; then
7043
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7044
 
else
7045
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046
 
for as_dir in $PATH
7047
 
do
7048
 
  IFS=$as_save_IFS
7049
 
  test -z "$as_dir" && as_dir=.
7050
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7051
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7053
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054
 
    break 2
7055
 
  fi
7056
 
done
7057
 
done
7058
 
IFS=$as_save_IFS
7059
 
 
7060
 
fi
7061
 
fi
7062
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7063
 
if test -n "$ac_ct_OTOOL"; then
7064
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7065
 
$as_echo "$ac_ct_OTOOL" >&6; }
7066
 
else
7067
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7068
 
$as_echo "no" >&6; }
7069
 
fi
7070
 
 
7071
 
  if test "x$ac_ct_OTOOL" = x; then
7072
 
    OTOOL=":"
7073
 
  else
7074
 
    case $cross_compiling:$ac_tool_warned in
7075
 
yes:)
7076
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7077
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078
 
ac_tool_warned=yes ;;
7079
 
esac
7080
 
    OTOOL=$ac_ct_OTOOL
7081
 
  fi
7082
 
else
7083
 
  OTOOL="$ac_cv_prog_OTOOL"
7084
 
fi
7085
 
 
7086
 
    if test -n "$ac_tool_prefix"; then
7087
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7088
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7089
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7090
 
$as_echo_n "checking for $ac_word... " >&6; }
7091
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7092
 
  $as_echo_n "(cached) " >&6
7093
 
else
7094
 
  if test -n "$OTOOL64"; then
7095
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7096
 
else
7097
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098
 
for as_dir in $PATH
7099
 
do
7100
 
  IFS=$as_save_IFS
7101
 
  test -z "$as_dir" && as_dir=.
7102
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7103
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7105
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106
 
    break 2
7107
 
  fi
7108
 
done
7109
 
done
7110
 
IFS=$as_save_IFS
7111
 
 
7112
 
fi
7113
 
fi
7114
 
OTOOL64=$ac_cv_prog_OTOOL64
7115
 
if test -n "$OTOOL64"; then
7116
 
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7117
 
$as_echo "$OTOOL64" >&6; }
7118
 
else
7119
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7120
 
$as_echo "no" >&6; }
7121
 
fi
7122
 
 
7123
 
 
7124
 
fi
7125
 
if test -z "$ac_cv_prog_OTOOL64"; then
7126
 
  ac_ct_OTOOL64=$OTOOL64
7127
 
  # Extract the first word of "otool64", so it can be a program name with args.
7128
 
set dummy otool64; ac_word=$2
7129
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7130
 
$as_echo_n "checking for $ac_word... " >&6; }
7131
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7132
 
  $as_echo_n "(cached) " >&6
7133
 
else
7134
 
  if test -n "$ac_ct_OTOOL64"; then
7135
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7136
 
else
7137
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138
 
for as_dir in $PATH
7139
 
do
7140
 
  IFS=$as_save_IFS
7141
 
  test -z "$as_dir" && as_dir=.
7142
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7143
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7145
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146
 
    break 2
7147
 
  fi
7148
 
done
7149
 
done
7150
 
IFS=$as_save_IFS
7151
 
 
7152
 
fi
7153
 
fi
7154
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7155
 
if test -n "$ac_ct_OTOOL64"; then
7156
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7157
 
$as_echo "$ac_ct_OTOOL64" >&6; }
7158
 
else
7159
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7160
 
$as_echo "no" >&6; }
7161
 
fi
7162
 
 
7163
 
  if test "x$ac_ct_OTOOL64" = x; then
7164
 
    OTOOL64=":"
7165
 
  else
7166
 
    case $cross_compiling:$ac_tool_warned in
7167
 
yes:)
7168
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7169
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170
 
ac_tool_warned=yes ;;
7171
 
esac
7172
 
    OTOOL64=$ac_ct_OTOOL64
7173
 
  fi
7174
 
else
7175
 
  OTOOL64="$ac_cv_prog_OTOOL64"
7176
 
fi
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
7830
 
7204
7831
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7205
7832
$as_echo_n "checking for -single_module linker flag... " >&6; }
7208
7835
else
7209
7836
  lt_cv_apple_cc_single_mod=no
7210
7837
      if test -z "${LT_MULTI_MODULE}"; then
7211
 
        # By default we will add the -single_module flag. You can override
7212
 
        # by either setting the environment variable LT_MULTI_MODULE
7213
 
        # non-empty at configure time, or by adding -multi_module to the
7214
 
        # link flags.
7215
 
        rm -rf libconftest.dylib*
7216
 
        echo "int foo(void){return 1;}" > conftest.c
7217
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7219
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7220
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7221
 
        _lt_result=$?
7222
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7223
 
          lt_cv_apple_cc_single_mod=yes
7224
 
        else
7225
 
          cat conftest.err >&5
7226
 
        fi
7227
 
        rm -rf libconftest.dylib*
7228
 
        rm -f conftest.*
 
7838
   # By default we will add the -single_module flag. You can override
 
7839
   # by either setting the environment variable LT_MULTI_MODULE
 
7840
   # non-empty at configure time, or by adding -multi_module to the
 
7841
   # link flags.
 
7842
   echo "int foo(void){return 1;}" > conftest.c
 
7843
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7844
     -dynamiclib ${wl}-single_module conftest.c
 
7845
   if test -f libconftest.dylib; then
 
7846
     lt_cv_apple_cc_single_mod=yes
 
7847
     rm -rf libconftest.dylib*
 
7848
   fi
 
7849
   rm conftest.c
7229
7850
      fi
7230
7851
fi
7231
7852
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7286
7907
rm -rf conftest.dSYM
7287
7908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7288
7909
      conftest$ac_exeext conftest.$ac_ext
7289
 
        LDFLAGS="$save_LDFLAGS"
 
7910
   LDFLAGS="$save_LDFLAGS"
7290
7911
 
7291
7912
fi
7292
7913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7293
7914
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7294
7915
    case $host_os in
7295
 
    rhapsody* | darwin1.[012])
 
7916
    rhapsody* | darwin1.[0123])
7296
7917
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7297
7918
    darwin1.*)
7298
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7299
 
    darwin*) # darwin 5.x on
 
7919
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7920
    darwin*)
7300
7921
      # if running on 10.5 or later, the deployment target defaults
7301
7922
      # to the OS version, if on x86, and 10.4, the deployment
7302
7923
      # target defaults to 10.4. Don't you love it?
7303
7924
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7304
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7305
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306
 
        10.[012]*)
7307
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308
 
        10.*)
7309
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7925
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7926
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7927
   10.[012]*)
 
7928
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7929
   10.*)
 
7930
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7310
7931
      esac
7311
7932
    ;;
7312
7933
  esac
7316
7937
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7317
7938
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7318
7939
    else
7319
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7940
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7320
7941
    fi
7321
7942
    if test "$DSYMUTIL" != ":"; then
7322
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7943
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7323
7944
    else
7324
7945
      _lt_dsymutil=
7325
7946
    fi
7327
7948
  esac
7328
7949
 
7329
7950
 
7330
 
for ac_header in dlfcn.h
7331
 
do
7332
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7334
 
$as_echo_n "checking for $ac_header... " >&6; }
7335
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336
 
  $as_echo_n "(cached) " >&6
7337
 
else
7338
 
  cat >conftest.$ac_ext <<_ACEOF
7339
 
/* confdefs.h.  */
7340
 
_ACEOF
7341
 
cat confdefs.h >>conftest.$ac_ext
7342
 
cat >>conftest.$ac_ext <<_ACEOF
7343
 
/* end confdefs.h.  */
7344
 
$ac_includes_default
7345
 
 
7346
 
#include <$ac_header>
7347
 
_ACEOF
7348
 
rm -f conftest.$ac_objext
7349
 
if { (ac_try="$ac_compile"
7350
 
case "(($ac_try" in
7351
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352
 
  *) ac_try_echo=$ac_try;;
7353
 
esac
7354
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355
 
$as_echo "$ac_try_echo") >&5
7356
 
  (eval "$ac_compile") 2>conftest.er1
7357
 
  ac_status=$?
7358
 
  grep -v '^ *+' conftest.er1 >conftest.err
7359
 
  rm -f conftest.er1
7360
 
  cat conftest.err >&5
7361
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362
 
  (exit $ac_status); } && {
7363
 
         test -z "$ac_c_werror_flag" ||
7364
 
         test ! -s conftest.err
7365
 
       } && test -s conftest.$ac_objext; then
7366
 
  eval "$as_ac_Header=yes"
7367
 
else
7368
 
  $as_echo "$as_me: failed program was:" >&5
7369
 
sed 's/^/| /' conftest.$ac_ext >&5
7370
 
 
7371
 
        eval "$as_ac_Header=no"
7372
 
fi
7373
 
 
7374
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375
 
fi
7376
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
7377
 
                 $as_echo "$as_val"'`
7378
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7379
 
$as_echo "$ac_res" >&6; }
7380
 
as_val=`eval 'as_val=${'$as_ac_Header'}
7381
 
                 $as_echo "$as_val"'`
7382
 
   if test "x$as_val" = x""yes; then
7383
 
  cat >>confdefs.h <<_ACEOF
7384
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385
 
_ACEOF
7386
 
 
7387
 
fi
7388
 
 
7389
 
done
7390
 
 
7391
 
 
7392
 
 
7393
 
# Set options
7394
 
 
7395
 
 
7396
 
 
7397
 
        enable_dlopen=no
7398
 
 
7399
 
 
7400
 
  enable_win32_dll=no
7401
 
 
7402
 
 
7403
 
            # Check whether --enable-shared was given.
7404
 
if test "${enable_shared+set}" = set; then
7405
 
  enableval=$enable_shared; p=${PACKAGE-default}
7406
 
    case $enableval in
7407
 
    yes) enable_shared=yes ;;
7408
 
    no) enable_shared=no ;;
7409
 
    *)
7410
 
      enable_shared=no
7411
 
      # Look at the argument we got.  We use all the common list separators.
7412
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413
 
      for pkg in $enableval; do
7414
 
        IFS="$lt_save_ifs"
7415
 
        if test "X$pkg" = "X$p"; then
7416
 
          enable_shared=yes
7417
 
        fi
7418
 
      done
7419
 
      IFS="$lt_save_ifs"
7420
 
      ;;
7421
 
    esac
7422
 
else
7423
 
  enable_shared=yes
7424
 
fi
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
  # Check whether --enable-static was given.
7435
 
if test "${enable_static+set}" = set; then
7436
 
  enableval=$enable_static; p=${PACKAGE-default}
7437
 
    case $enableval in
7438
 
    yes) enable_static=yes ;;
7439
 
    no) enable_static=no ;;
7440
 
    *)
7441
 
     enable_static=no
7442
 
      # Look at the argument we got.  We use all the common list separators.
7443
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444
 
      for pkg in $enableval; do
7445
 
        IFS="$lt_save_ifs"
7446
 
        if test "X$pkg" = "X$p"; then
7447
 
          enable_static=yes
7448
 
        fi
7449
 
      done
7450
 
      IFS="$lt_save_ifs"
7451
 
      ;;
7452
 
    esac
7453
 
else
7454
 
  enable_static=yes
7455
 
fi
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
 
7951
enable_dlopen=no
 
7952
enable_win32_dll=no
 
7953
 
 
7954
# Check whether --enable-libtool-lock was given.
 
7955
if test "${enable_libtool_lock+set}" = set; then
 
7956
  enableval=$enable_libtool_lock;
 
7957
fi
 
7958
 
 
7959
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464
7960
 
7465
7961
 
7466
7962
# Check whether --with-pic was given.
7470
7966
  pic_mode=default
7471
7967
fi
7472
7968
 
7473
 
 
7474
7969
test -z "$pic_mode" && pic_mode=default
7475
7970
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
  # Check whether --enable-fast-install was given.
7483
 
if test "${enable_fast_install+set}" = set; then
7484
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
7485
 
    case $enableval in
7486
 
    yes) enable_fast_install=yes ;;
7487
 
    no) enable_fast_install=no ;;
7488
 
    *)
7489
 
      enable_fast_install=no
7490
 
      # Look at the argument we got.  We use all the common list separators.
7491
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492
 
      for pkg in $enableval; do
7493
 
        IFS="$lt_save_ifs"
7494
 
        if test "X$pkg" = "X$p"; then
7495
 
          enable_fast_install=yes
7496
 
        fi
7497
 
      done
7498
 
      IFS="$lt_save_ifs"
7499
 
      ;;
7500
 
    esac
7501
 
else
7502
 
  enable_fast_install=yes
7503
 
fi
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
# This can be used to rebuild libtool when needed
7516
 
LIBTOOL_DEPS="$ltmain"
7517
 
 
7518
 
# Always use our own libtool.
7519
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
 
test -z "$LN_S" && LN_S="ln -s"
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
if test -n "${ZSH_VERSION+set}" ; then
7561
 
   setopt NO_GLOB_SUBST
7562
 
fi
7563
 
 
7564
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7565
 
$as_echo_n "checking for objdir... " >&6; }
7566
 
if test "${lt_cv_objdir+set}" = set; then
7567
 
  $as_echo_n "(cached) " >&6
7568
 
else
7569
 
  rm -f .libs 2>/dev/null
7570
 
mkdir .libs 2>/dev/null
7571
 
if test -d .libs; then
7572
 
  lt_cv_objdir=.libs
7573
 
else
7574
 
  # MS-DOS does not allow filenames that begin with a dot.
7575
 
  lt_cv_objdir=_libs
7576
 
fi
7577
 
rmdir .libs 2>/dev/null
7578
 
fi
7579
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7580
 
$as_echo "$lt_cv_objdir" >&6; }
7581
 
objdir=$lt_cv_objdir
7582
 
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
 
cat >>confdefs.h <<_ACEOF
7588
 
#define LT_OBJDIR "$lt_cv_objdir/"
7589
 
_ACEOF
7590
 
 
7591
 
 
7592
 
 
7593
 
 
7594
 
 
7595
 
 
7596
 
 
7597
 
 
7598
 
 
7599
 
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
case $host_os in
7608
 
aix3*)
7609
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7610
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7611
 
  # vanish in a puff of smoke.
7612
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7613
 
    COLLECT_NAMES=
7614
 
    export COLLECT_NAMES
7615
 
  fi
7616
 
  ;;
7617
 
esac
7618
 
 
7619
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7620
 
# metacharacters that are still active within double-quoted strings.
7621
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7622
 
 
7623
 
# Same as above, but do not quote variable references.
7624
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7625
 
 
7626
 
# Sed substitution to delay expansion of an escaped shell variable in a
7627
 
# double_quote_subst'ed string.
7628
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7629
 
 
7630
 
# Sed substitution to delay expansion of an escaped single quote.
7631
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7632
 
 
7633
 
# Sed substitution to avoid accidental globbing in evaled expressions
7634
 
no_glob_subst='s/\*/\\\*/g'
7635
 
 
7636
 
# Global variables:
7637
 
ofile=libtool
7638
 
can_build_shared=yes
7639
 
 
7640
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7641
 
# which needs '.lib').
7642
 
libext=a
7643
 
 
7644
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7645
 
 
7646
 
old_CC="$CC"
7647
 
old_CFLAGS="$CFLAGS"
7648
 
 
7649
 
# Set sane defaults for various variables
7650
 
test -z "$CC" && CC=cc
7651
 
test -z "$LTCC" && LTCC=$CC
7652
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653
 
test -z "$LD" && LD=ld
7654
 
test -z "$ac_objext" && ac_objext=o
7655
 
 
7656
 
for cc_temp in $compiler""; do
7657
 
  case $cc_temp in
7658
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7660
 
    \-*) ;;
7661
 
    *) break;;
7662
 
  esac
7663
 
done
7664
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7665
 
 
7666
 
 
7667
 
# Only perform the check for file, if the check method requires it
7668
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669
 
case $deplibs_check_method in
7670
 
file_magic*)
7671
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7673
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7675
 
  $as_echo_n "(cached) " >&6
7676
 
else
7677
 
  case $MAGIC_CMD in
7678
 
[\\/*] |  ?:[\\/]*)
7679
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680
 
  ;;
7681
 
*)
7682
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7683
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685
 
  for ac_dir in $ac_dummy; do
7686
 
    IFS="$lt_save_ifs"
7687
 
    test -z "$ac_dir" && ac_dir=.
7688
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7689
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690
 
      if test -n "$file_magic_test_file"; then
7691
 
        case $deplibs_check_method in
7692
 
        "file_magic "*)
7693
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696
 
            $EGREP "$file_magic_regex" > /dev/null; then
7697
 
            :
7698
 
          else
7699
 
            cat <<_LT_EOF 1>&2
7700
 
 
7701
 
*** Warning: the command libtool uses to detect shared libraries,
7702
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7703
 
*** The result is that libtool may fail to recognize shared libraries
7704
 
*** as such.  This will affect the creation of libtool libraries that
7705
 
*** depend on shared libraries, but programs linked with such libtool
7706
 
*** libraries will work regardless of this problem.  Nevertheless, you
7707
 
*** may want to report the problem to your system manager and/or to
7708
 
*** bug-libtool@gnu.org
7709
 
 
7710
 
_LT_EOF
7711
 
          fi ;;
7712
 
        esac
7713
 
      fi
7714
 
      break
7715
 
    fi
7716
 
  done
7717
 
  IFS="$lt_save_ifs"
7718
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7719
 
  ;;
7720
 
esac
7721
 
fi
7722
 
 
7723
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724
 
if test -n "$MAGIC_CMD"; then
7725
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7726
 
$as_echo "$MAGIC_CMD" >&6; }
7727
 
else
7728
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7729
 
$as_echo "no" >&6; }
7730
 
fi
7731
 
 
7732
 
 
7733
 
 
7734
 
 
7735
 
 
7736
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7737
 
  if test -n "$ac_tool_prefix"; then
7738
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7739
 
$as_echo_n "checking for file... " >&6; }
7740
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7741
 
  $as_echo_n "(cached) " >&6
7742
 
else
7743
 
  case $MAGIC_CMD in
7744
 
[\\/*] |  ?:[\\/]*)
7745
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7746
 
  ;;
7747
 
*)
7748
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7749
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751
 
  for ac_dir in $ac_dummy; do
7752
 
    IFS="$lt_save_ifs"
7753
 
    test -z "$ac_dir" && ac_dir=.
7754
 
    if test -f $ac_dir/file; then
7755
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756
 
      if test -n "$file_magic_test_file"; then
7757
 
        case $deplibs_check_method in
7758
 
        "file_magic "*)
7759
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762
 
            $EGREP "$file_magic_regex" > /dev/null; then
7763
 
            :
7764
 
          else
7765
 
            cat <<_LT_EOF 1>&2
7766
 
 
7767
 
*** Warning: the command libtool uses to detect shared libraries,
7768
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7769
 
*** The result is that libtool may fail to recognize shared libraries
7770
 
*** as such.  This will affect the creation of libtool libraries that
7771
 
*** depend on shared libraries, but programs linked with such libtool
7772
 
*** libraries will work regardless of this problem.  Nevertheless, you
7773
 
*** may want to report the problem to your system manager and/or to
7774
 
*** bug-libtool@gnu.org
7775
 
 
7776
 
_LT_EOF
7777
 
          fi ;;
7778
 
        esac
7779
 
      fi
7780
 
      break
7781
 
    fi
7782
 
  done
7783
 
  IFS="$lt_save_ifs"
7784
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7785
 
  ;;
7786
 
esac
7787
 
fi
7788
 
 
7789
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790
 
if test -n "$MAGIC_CMD"; then
7791
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7792
 
$as_echo "$MAGIC_CMD" >&6; }
7793
 
else
7794
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7795
 
$as_echo "no" >&6; }
7796
 
fi
7797
 
 
7798
 
 
7799
 
  else
7800
 
    MAGIC_CMD=:
7801
 
  fi
7802
 
fi
7803
 
 
7804
 
  fi
7805
 
  ;;
7806
 
esac
7807
 
 
7808
7971
# Use C for the default configuration in the libtool script
7809
 
 
 
7972
tagname=
7810
7973
lt_save_CC="$CC"
7811
7974
ac_ext=c
7812
7975
ac_cpp='$CPP $CPPFLAGS'
7829
7992
lt_simple_link_test_code='int main(){return(0);}'
7830
7993
 
7831
7994
 
7832
 
 
7833
 
 
7834
 
 
7835
 
 
7836
 
 
7837
7995
# If no C compiler was specified, use CC.
7838
7996
LTCC=${LTCC-"$CC"}
7839
7997
 
7843
8001
# Allow CC to be a program name with arguments.
7844
8002
compiler=$CC
7845
8003
 
7846
 
# Save the default compiler, since it gets overwritten when the other
7847
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848
 
compiler_DEFAULT=$CC
7849
8004
 
7850
8005
# save warnings/boilerplate of simple test code
7851
8006
ac_outfile=conftest.$ac_objext
7852
8007
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853
8008
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854
8009
_lt_compiler_boilerplate=`cat conftest.err`
7855
 
$RM conftest*
 
8010
$rm conftest*
7856
8011
 
7857
8012
ac_outfile=conftest.$ac_objext
7858
8013
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859
8014
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860
8015
_lt_linker_boilerplate=`cat conftest.err`
7861
 
$RM -r conftest*
7862
 
 
7863
 
 
7864
 
if test -n "$compiler"; then
 
8016
$rm -r conftest*
 
8017
 
 
8018
 
7865
8019
 
7866
8020
lt_prog_compiler_no_builtin_flag=
7867
8021
 
7868
8022
if test "$GCC" = yes; then
7869
8023
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7870
8024
 
7871
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8025
 
 
8026
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7872
8027
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7873
8028
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7874
8029
  $as_echo_n "(cached) " >&6
7875
8030
else
7876
8031
  lt_cv_prog_compiler_rtti_exceptions=no
7877
 
   ac_outfile=conftest.$ac_objext
 
8032
  ac_outfile=conftest.$ac_objext
7878
8033
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879
8034
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7880
8035
   # Insert the option either (1) after the last *FLAGS variable, or
7886
8041
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887
8042
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888
8043
   -e 's:$: $lt_compiler_flag:'`
7889
 
   (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
 
8044
   (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
7890
8045
   (eval "$lt_compile" 2>conftest.err)
7891
8046
   ac_status=$?
7892
8047
   cat conftest.err >&5
7893
 
   echo "$as_me:7893: \$? = $ac_status" >&5
 
8048
   echo "$as_me:8048: \$? = $ac_status" >&5
7894
8049
   if (exit $ac_status) && test -s "$ac_outfile"; then
7895
8050
     # The compiler can only warn and ignore the option if not recognized
7896
8051
     # So say no if there are warnings other than the usual output.
7897
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8052
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7898
8053
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899
8054
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900
8055
       lt_cv_prog_compiler_rtti_exceptions=yes
7901
8056
     fi
7902
8057
   fi
7903
 
   $RM conftest*
 
8058
   $rm conftest*
7904
8059
 
7905
8060
fi
7906
8061
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7914
8069
 
7915
8070
fi
7916
8071
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
  lt_prog_compiler_wl=
 
8072
lt_prog_compiler_wl=
7923
8073
lt_prog_compiler_pic=
7924
8074
lt_prog_compiler_static=
7925
8075
 
7940
8090
      ;;
7941
8091
 
7942
8092
    amigaos*)
7943
 
      case $host_cpu in
7944
 
      powerpc)
7945
 
            # see comment about AmigaOS4 .so support
7946
 
            lt_prog_compiler_pic='-fPIC'
7947
 
        ;;
7948
 
      m68k)
7949
 
            # FIXME: we need at least 68020 code to build shared libraries, but
7950
 
            # adding the `-m68020' flag to GCC prevents building anything better,
7951
 
            # like `-m68040'.
7952
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7953
 
        ;;
7954
 
      esac
 
8093
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8094
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8095
      # like `-m68040'.
 
8096
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7955
8097
      ;;
7956
8098
 
7957
8099
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7958
8100
      # PIC is the default for these OSes.
7959
8101
      ;;
7960
8102
 
7961
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8103
    mingw* | cygwin* | pw32* | os2*)
7962
8104
      # This hack is so that the source file can tell whether it is being
7963
8105
      # built for inclusion in a dll (and should export symbols for example).
7964
8106
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7972
8114
      lt_prog_compiler_pic='-fno-common'
7973
8115
      ;;
7974
8116
 
7975
 
    hpux*)
7976
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7977
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7978
 
      # sets the default TLS model and affects inlining.
7979
 
      case $host_cpu in
7980
 
      hppa*64*)
7981
 
        # +Z the default
7982
 
        ;;
7983
 
      *)
7984
 
        lt_prog_compiler_pic='-fPIC'
7985
 
        ;;
7986
 
      esac
7987
 
      ;;
7988
 
 
7989
8117
    interix[3-9]*)
7990
8118
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7991
8119
      # Instead, we relocate shared libraries at runtime.
7998
8126
      enable_shared=no
7999
8127
      ;;
8000
8128
 
8001
 
    *nto* | *qnx*)
8002
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8003
 
      # it will coredump.
8004
 
      lt_prog_compiler_pic='-fPIC -shared'
8005
 
      ;;
8006
 
 
8007
8129
    sysv4*MP*)
8008
8130
      if test -d /usr/nec; then
8009
8131
        lt_prog_compiler_pic=-Kconform_pic
8010
8132
      fi
8011
8133
      ;;
8012
8134
 
 
8135
    hpux*)
 
8136
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8137
      # not for PA HP-UX.
 
8138
      case $host_cpu in
 
8139
      hppa*64*|ia64*)
 
8140
        # +Z the default
 
8141
        ;;
 
8142
      *)
 
8143
        lt_prog_compiler_pic='-fPIC'
 
8144
        ;;
 
8145
      esac
 
8146
      ;;
 
8147
 
8013
8148
    *)
8014
8149
      lt_prog_compiler_pic='-fPIC'
8015
8150
      ;;
8026
8161
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027
8162
      fi
8028
8163
      ;;
 
8164
      darwin*)
 
8165
        # PIC is the default on this platform
 
8166
        # Common symbols not allowed in MH_DYLIB files
 
8167
       case $cc_basename in
 
8168
         xlc*)
 
8169
         lt_prog_compiler_pic='-qnocommon'
 
8170
         lt_prog_compiler_wl='-Wl,'
 
8171
         ;;
 
8172
       esac
 
8173
       ;;
8029
8174
 
8030
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8175
    mingw* | cygwin* | pw32* | os2*)
8031
8176
      # This hack is so that the source file can tell whether it is being
8032
8177
      # built for inclusion in a dll (and should export symbols for example).
8033
8178
      lt_prog_compiler_pic='-DDLL_EXPORT'
8055
8200
      lt_prog_compiler_static='-non_shared'
8056
8201
      ;;
8057
8202
 
 
8203
    newsos6)
 
8204
      lt_prog_compiler_pic='-KPIC'
 
8205
      lt_prog_compiler_static='-Bstatic'
 
8206
      ;;
 
8207
 
8058
8208
    linux* | k*bsd*-gnu)
8059
8209
      case $cc_basename in
8060
 
      # old Intel for x86_64 which still supported -KPIC.
8061
 
      ecc*)
 
8210
      icc* | ecc*)
8062
8211
        lt_prog_compiler_wl='-Wl,'
8063
8212
        lt_prog_compiler_pic='-KPIC'
8064
8213
        lt_prog_compiler_static='-static'
8065
8214
        ;;
8066
 
      # icc used to be incompatible with GCC.
8067
 
      # ICC 10 doesn't accept -KPIC any more.
8068
 
      icc* | ifort*)
8069
 
        lt_prog_compiler_wl='-Wl,'
8070
 
        lt_prog_compiler_pic='-fPIC'
8071
 
        lt_prog_compiler_static='-static'
8072
 
        ;;
8073
 
      # Lahey Fortran 8.1.
8074
 
      lf95*)
8075
 
        lt_prog_compiler_wl='-Wl,'
8076
 
        lt_prog_compiler_pic='--shared'
8077
 
        lt_prog_compiler_static='--static'
8078
 
        ;;
8079
8215
      pgcc* | pgf77* | pgf90* | pgf95*)
8080
8216
        # Portland Group compilers (*not* the Pentium gcc compiler,
8081
8217
        # which looks to be a dead project)
8088
8224
        # All Alpha code is PIC.
8089
8225
        lt_prog_compiler_static='-non_shared'
8090
8226
        ;;
8091
 
      xl*)
8092
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
8093
 
        lt_prog_compiler_wl='-Wl,'
8094
 
        lt_prog_compiler_pic='-qpic'
8095
 
        lt_prog_compiler_static='-qstaticlink'
8096
 
        ;;
8097
8227
      *)
8098
 
        case `$CC -V 2>&1 | sed 5q` in
 
8228
        case `$CC -V 2>&1 | sed 5q` in
8099
8229
        *Sun\ C*)
8100
8230
          # Sun C 5.9
8101
8231
          lt_prog_compiler_pic='-KPIC'
8113
8243
      esac
8114
8244
      ;;
8115
8245
 
8116
 
    newsos6)
8117
 
      lt_prog_compiler_pic='-KPIC'
8118
 
      lt_prog_compiler_static='-Bstatic'
8119
 
      ;;
8120
 
 
8121
 
    *nto* | *qnx*)
8122
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8123
 
      # it will coredump.
8124
 
      lt_prog_compiler_pic='-fPIC -shared'
8125
 
      ;;
8126
 
 
8127
8246
    osf3* | osf4* | osf5*)
8128
8247
      lt_prog_compiler_wl='-Wl,'
8129
8248
      # All OSF/1 code is PIC.
8186
8305
    esac
8187
8306
  fi
8188
8307
 
8189
 
case $host_os in
8190
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8191
 
  *djgpp*)
8192
 
    lt_prog_compiler_pic=
8193
 
    ;;
8194
 
  *)
8195
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8196
 
    ;;
8197
 
esac
8198
8308
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8199
8309
$as_echo "$lt_prog_compiler_pic" >&6; }
8200
8310
 
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
8311
#
8207
8312
# Check to make sure the PIC flag actually works.
8208
8313
#
8209
8314
if test -n "$lt_prog_compiler_pic"; then
8210
 
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8315
 
 
8316
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211
8317
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212
8318
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8213
8319
  $as_echo_n "(cached) " >&6
8214
8320
else
8215
8321
  lt_cv_prog_compiler_pic_works=no
8216
 
   ac_outfile=conftest.$ac_objext
 
8322
  ac_outfile=conftest.$ac_objext
8217
8323
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218
8324
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8219
8325
   # Insert the option either (1) after the last *FLAGS variable, or
8225
8331
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226
8332
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227
8333
   -e 's:$: $lt_compiler_flag:'`
8228
 
   (eval echo "\"\$as_me:8228: $lt_compile\"" >&5)
 
8334
   (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8229
8335
   (eval "$lt_compile" 2>conftest.err)
8230
8336
   ac_status=$?
8231
8337
   cat conftest.err >&5
8232
 
   echo "$as_me:8232: \$? = $ac_status" >&5
 
8338
   echo "$as_me:8338: \$? = $ac_status" >&5
8233
8339
   if (exit $ac_status) && test -s "$ac_outfile"; then
8234
8340
     # The compiler can only warn and ignore the option if not recognized
8235
8341
     # So say no if there are warnings other than the usual output.
8236
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8342
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8237
8343
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238
8344
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239
8345
       lt_cv_prog_compiler_pic_works=yes
8240
8346
     fi
8241
8347
   fi
8242
 
   $RM conftest*
 
8348
   $rm conftest*
8243
8349
 
8244
8350
fi
8245
8351
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8256
8362
fi
8257
8363
 
8258
8364
fi
8259
 
 
8260
 
 
8261
 
 
8262
 
 
8263
 
 
 
8365
case $host_os in
 
8366
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8367
  *djgpp*)
 
8368
    lt_prog_compiler_pic=
 
8369
    ;;
 
8370
  *)
 
8371
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8372
    ;;
 
8373
esac
8264
8374
 
8265
8375
#
8266
8376
# Check to make sure the static flag actually works.
8281
8391
     if test -s conftest.err; then
8282
8392
       # Append any errors to the config.log.
8283
8393
       cat conftest.err 1>&5
8284
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8394
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8285
8395
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286
8396
       if diff conftest.exp conftest.er2 >/dev/null; then
8287
8397
         lt_cv_prog_compiler_static_works=yes
8290
8400
       lt_cv_prog_compiler_static_works=yes
8291
8401
     fi
8292
8402
   fi
8293
 
   $RM -r conftest*
 
8403
   $rm -r conftest*
8294
8404
   LDFLAGS="$save_LDFLAGS"
8295
8405
 
8296
8406
fi
8304
8414
fi
8305
8415
 
8306
8416
 
8307
 
 
8308
 
 
8309
 
 
8310
 
 
8311
 
 
8312
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315
 
  $as_echo_n "(cached) " >&6
8316
 
else
8317
 
  lt_cv_prog_compiler_c_o=no
8318
 
   $RM -r conftest 2>/dev/null
8319
 
   mkdir conftest
8320
 
   cd conftest
8321
 
   mkdir out
8322
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
 
 
8324
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8325
 
   # Insert the option either (1) after the last *FLAGS variable, or
8326
 
   # (2) before a word containing "conftest.", or (3) at the end.
8327
 
   # Note that $ac_compile itself does not contain backslashes and begins
8328
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8329
 
   lt_compile=`echo "$ac_compile" | $SED \
8330
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332
 
   -e 's:$: $lt_compiler_flag:'`
8333
 
   (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334
 
   (eval "$lt_compile" 2>out/conftest.err)
8335
 
   ac_status=$?
8336
 
   cat out/conftest.err >&5
8337
 
   echo "$as_me:8337: \$? = $ac_status" >&5
8338
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339
 
   then
8340
 
     # The compiler can only warn and ignore the option if not recognized
8341
 
     # So say no if there are warnings
8342
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8343
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345
 
       lt_cv_prog_compiler_c_o=yes
8346
 
     fi
8347
 
   fi
8348
 
   chmod u+w . 2>&5
8349
 
   $RM conftest*
8350
 
   # SGI C++ compiler will create directory out/ii_files/ for
8351
 
   # template instantiation
8352
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353
 
   $RM out/* && rmdir out
8354
 
   cd ..
8355
 
   $RM -r conftest
8356
 
   $RM conftest*
8357
 
 
8358
 
fi
8359
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8368
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8370
 
  $as_echo_n "(cached) " >&6
8371
 
else
8372
 
  lt_cv_prog_compiler_c_o=no
8373
 
   $RM -r conftest 2>/dev/null
8374
 
   mkdir conftest
8375
 
   cd conftest
8376
 
   mkdir out
8377
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
 
 
8379
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8380
 
   # Insert the option either (1) after the last *FLAGS variable, or
8381
 
   # (2) before a word containing "conftest.", or (3) at the end.
8382
 
   # Note that $ac_compile itself does not contain backslashes and begins
8383
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8384
 
   lt_compile=`echo "$ac_compile" | $SED \
8385
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387
 
   -e 's:$: $lt_compiler_flag:'`
8388
 
   (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389
 
   (eval "$lt_compile" 2>out/conftest.err)
8390
 
   ac_status=$?
8391
 
   cat out/conftest.err >&5
8392
 
   echo "$as_me:8392: \$? = $ac_status" >&5
8393
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394
 
   then
8395
 
     # The compiler can only warn and ignore the option if not recognized
8396
 
     # So say no if there are warnings
8397
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8398
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400
 
       lt_cv_prog_compiler_c_o=yes
8401
 
     fi
8402
 
   fi
8403
 
   chmod u+w . 2>&5
8404
 
   $RM conftest*
8405
 
   # SGI C++ compiler will create directory out/ii_files/ for
8406
 
   # template instantiation
8407
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408
 
   $RM out/* && rmdir out
8409
 
   cd ..
8410
 
   $RM -r conftest
8411
 
   $RM conftest*
8412
 
 
8413
 
fi
8414
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8415
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
 
 
8417
 
 
 
8417
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8418
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8419
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8420
  $as_echo_n "(cached) " >&6
 
8421
else
 
8422
  lt_cv_prog_compiler_c_o=no
 
8423
   $rm -r conftest 2>/dev/null
 
8424
   mkdir conftest
 
8425
   cd conftest
 
8426
   mkdir out
 
8427
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8428
 
 
8429
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8430
   # Insert the option either (1) after the last *FLAGS variable, or
 
8431
   # (2) before a word containing "conftest.", or (3) at the end.
 
8432
   # Note that $ac_compile itself does not contain backslashes and begins
 
8433
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8434
   lt_compile=`echo "$ac_compile" | $SED \
 
8435
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8436
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8437
   -e 's:$: $lt_compiler_flag:'`
 
8438
   (eval echo "\"\$as_me:8438: $lt_compile\"" >&5)
 
8439
   (eval "$lt_compile" 2>out/conftest.err)
 
8440
   ac_status=$?
 
8441
   cat out/conftest.err >&5
 
8442
   echo "$as_me:8442: \$? = $ac_status" >&5
 
8443
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8444
   then
 
8445
     # The compiler can only warn and ignore the option if not recognized
 
8446
     # So say no if there are warnings
 
8447
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8448
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8449
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8450
       lt_cv_prog_compiler_c_o=yes
 
8451
     fi
 
8452
   fi
 
8453
   chmod u+w . 2>&5
 
8454
   $rm conftest*
 
8455
   # SGI C++ compiler will create directory out/ii_files/ for
 
8456
   # template instantiation
 
8457
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8458
   $rm out/* && rmdir out
 
8459
   cd ..
 
8460
   rmdir conftest
 
8461
   $rm conftest*
 
8462
 
 
8463
fi
 
8464
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8465
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8418
8466
 
8419
8467
 
8420
8468
hard_links="nottested"
8423
8471
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8424
8472
$as_echo_n "checking if we can lock with hard links... " >&6; }
8425
8473
  hard_links=yes
8426
 
  $RM conftest*
 
8474
  $rm conftest*
8427
8475
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428
8476
  touch conftest.a
8429
8477
  ln conftest.a conftest.b 2>&5 || hard_links=no
8439
8487
  need_locks=no
8440
8488
fi
8441
8489
 
8442
 
 
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8490
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448
8491
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8449
8492
 
8450
8493
  runpath_var=
8451
8494
  allow_undefined_flag=
8452
 
  always_export_symbols=no
 
8495
  enable_shared_with_static_runtimes=no
8453
8496
  archive_cmds=
8454
8497
  archive_expsym_cmds=
8455
 
  compiler_needs_object=no
8456
 
  enable_shared_with_static_runtimes=no
 
8498
  old_archive_From_new_cmds=
 
8499
  old_archive_from_expsyms_cmds=
8457
8500
  export_dynamic_flag_spec=
8458
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459
 
  hardcode_automatic=no
8460
 
  hardcode_direct=no
8461
 
  hardcode_direct_absolute=no
 
8501
  whole_archive_flag_spec=
 
8502
  thread_safe_flag_spec=
8462
8503
  hardcode_libdir_flag_spec=
8463
8504
  hardcode_libdir_flag_spec_ld=
8464
8505
  hardcode_libdir_separator=
 
8506
  hardcode_direct=no
8465
8507
  hardcode_minus_L=no
8466
8508
  hardcode_shlibpath_var=unsupported
8467
 
  inherit_rpath=no
8468
8509
  link_all_deplibs=unknown
 
8510
  hardcode_automatic=no
8469
8511
  module_cmds=
8470
8512
  module_expsym_cmds=
8471
 
  old_archive_from_new_cmds=
8472
 
  old_archive_from_expsyms_cmds=
8473
 
  thread_safe_flag_spec=
8474
 
  whole_archive_flag_spec=
 
8513
  always_export_symbols=no
 
8514
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8475
8515
  # include_expsyms should be a list of space-separated symbols to be *always*
8476
8516
  # included in the symbol list
8477
8517
  include_expsyms=
8487
8527
  # preloaded symbol tables.
8488
8528
  # Exclude shared library initialization/finalization symbols.
8489
8529
  extract_expsyms_cmds=
 
8530
  # Just being paranoid about ensuring that cc_basename is set.
 
8531
  for cc_temp in $compiler""; do
 
8532
  case $cc_temp in
 
8533
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8534
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8535
    \-*) ;;
 
8536
    *) break;;
 
8537
  esac
 
8538
done
 
8539
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8490
8540
 
8491
8541
  case $host_os in
8492
 
  cygwin* | mingw* | pw32* | cegcc*)
 
8542
  cygwin* | mingw* | pw32*)
8493
8543
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494
8544
    # When not using gcc, we currently assume that we are using
8495
8545
    # Microsoft Visual C++.
8515
8565
    # are reset later if shared libraries are not supported. Putting them
8516
8566
    # here allows them to be overridden if necessary.
8517
8567
    runpath_var=LD_RUN_PATH
8518
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8568
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8519
8569
    export_dynamic_flag_spec='${wl}--export-dynamic'
8520
8570
    # ancient GNU ld didn't support --whole-archive et. al.
8521
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8522
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8523
 
    else
8524
 
      whole_archive_flag_spec=
 
8571
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8572
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8573
      else
 
8574
        whole_archive_flag_spec=
8525
8575
    fi
8526
8576
    supports_anon_versioning=no
8527
 
    case `$LD -v 2>&1` in
 
8577
    case `$LD -v 2>/dev/null` in
8528
8578
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8529
8579
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8530
8580
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8538
8588
      # On AIX/PPC, the GNU linker is very broken
8539
8589
      if test "$host_cpu" != ia64; then
8540
8590
        ld_shlibs=no
8541
 
        cat <<_LT_EOF 1>&2
 
8591
        cat <<EOF 1>&2
8542
8592
 
8543
8593
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8544
8594
*** to be unable to reliably create shared libraries on AIX.
8546
8596
*** really care for shared libraries, you may want to modify your PATH
8547
8597
*** so that a non-GNU linker is found, and then restart.
8548
8598
 
8549
 
_LT_EOF
 
8599
EOF
8550
8600
      fi
8551
8601
      ;;
8552
8602
 
8553
8603
    amigaos*)
8554
 
      case $host_cpu in
8555
 
      powerpc)
8556
 
            # see comment about AmigaOS4 .so support
8557
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558
 
            archive_expsym_cmds=''
8559
 
        ;;
8560
 
      m68k)
8561
 
            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)'
8562
 
            hardcode_libdir_flag_spec='-L$libdir'
8563
 
            hardcode_minus_L=yes
8564
 
        ;;
8565
 
      esac
 
8604
      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)'
 
8605
      hardcode_libdir_flag_spec='-L$libdir'
 
8606
      hardcode_minus_L=yes
 
8607
 
 
8608
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8609
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8610
      # to version 4, is to share data among multiple programs linked
 
8611
      # with the same dynamic library.  Since this doesn't match the
 
8612
      # behavior of shared libraries on other platforms, we can't use
 
8613
      # them.
 
8614
      ld_shlibs=no
8566
8615
      ;;
8567
8616
 
8568
8617
    beos*)
8569
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8618
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8570
8619
        allow_undefined_flag=unsupported
8571
8620
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572
8621
        # support --undefined.  This deserves some investigation.  FIXME
8576
8625
      fi
8577
8626
      ;;
8578
8627
 
8579
 
    cygwin* | mingw* | pw32* | cegcc*)
8580
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8628
    cygwin* | mingw* | pw32*)
 
8629
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581
8630
      # as there is no search path for DLLs.
8582
8631
      hardcode_libdir_flag_spec='-L$libdir'
8583
8632
      allow_undefined_flag=unsupported
8584
8633
      always_export_symbols=no
8585
8634
      enable_shared_with_static_runtimes=yes
8586
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8635
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8587
8636
 
8588
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8637
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8589
8638
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590
8639
        # If the export-symbols file already is a .def file (1st line
8591
8640
        # is EXPORTS), use it as is; otherwise, prepend...
8616
8665
      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'
8617
8666
      ;;
8618
8667
 
8619
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
8620
 
      tmp_diet=no
8621
 
      if test "$host_os" = linux-dietlibc; then
8622
 
        case $cc_basename in
8623
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8624
 
        esac
8625
 
      fi
8626
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8627
 
         && test "$tmp_diet" = no
8628
 
      then
 
8668
    gnu* | linux* | k*bsd*-gnu)
 
8669
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8629
8670
        tmp_addflag=
8630
 
        tmp_sharedflag='-shared'
8631
8671
        case $cc_basename,$host_cpu in
8632
 
        pgcc*)                          # Portland Group C compiler
8633
 
          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'
 
8672
        pgcc*)                          # Portland Group C compiler
 
8673
          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'
8634
8674
          tmp_addflag=' $pic_flag'
8635
8675
          ;;
8636
8676
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8637
 
          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'
 
8677
          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'
8638
8678
          tmp_addflag=' $pic_flag -Mnomain' ;;
8639
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8679
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8640
8680
          tmp_addflag=' -i_dynamic' ;;
8641
8681
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8642
8682
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8643
8683
        ifc* | ifort*)                  # Intel Fortran compiler
8644
8684
          tmp_addflag=' -nofor_main' ;;
8645
 
        lf95*)                          # Lahey Fortran 8.1
8646
 
          whole_archive_flag_spec=
8647
 
          tmp_sharedflag='--shared' ;;
8648
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8649
 
          tmp_sharedflag='-qmkshrobj'
8650
 
          tmp_addflag= ;;
8651
8685
        esac
8652
8686
        case `$CC -V 2>&1 | sed 5q` in
8653
8687
        *Sun\ C*)                       # Sun C 5.9
8654
 
          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'
8655
 
          compiler_needs_object=yes
 
8688
          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'
8656
8689
          tmp_sharedflag='-G' ;;
8657
8690
        *Sun\ F*)                       # Sun Fortran 8.3
8658
8691
          tmp_sharedflag='-G' ;;
 
8692
        *)
 
8693
          tmp_sharedflag='-shared' ;;
8659
8694
        esac
8660
8695
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
8696
 
8662
 
        if test "x$supports_anon_versioning" = xyes; then
8663
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8664
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8665
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8666
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8667
 
        fi
8668
 
 
8669
 
        case $cc_basename in
8670
 
        xlf*)
8671
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8673
 
          hardcode_libdir_flag_spec=
8674
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8675
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8676
 
          if test "x$supports_anon_versioning" = xyes; then
8677
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
8680
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681
 
          fi
8682
 
          ;;
8683
 
        esac
 
8697
        if test $supports_anon_versioning = yes; then
 
8698
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8699
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8700
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8701
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8702
        fi
8684
8703
      else
8685
 
        ld_shlibs=no
 
8704
        ld_shlibs=no
8686
8705
      fi
8687
8706
      ;;
8688
8707
 
8689
8708
    netbsd*)
8690
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8709
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8691
8710
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692
8711
        wlarc=
8693
8712
      else
8697
8716
      ;;
8698
8717
 
8699
8718
    solaris*)
8700
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8719
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8701
8720
        ld_shlibs=no
8702
 
        cat <<_LT_EOF 1>&2
 
8721
        cat <<EOF 1>&2
8703
8722
 
8704
8723
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705
8724
*** create shared libraries on Solaris systems.  Therefore, libtool
8708
8727
*** your PATH or compiler configuration so that the native linker is
8709
8728
*** used, and then restart.
8710
8729
 
8711
 
_LT_EOF
8712
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8730
EOF
 
8731
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8713
8732
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714
8733
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715
8734
      else
8733
8752
_LT_EOF
8734
8753
        ;;
8735
8754
        *)
8736
 
          # For security reasons, it is highly recommended that you always
8737
 
          # use absolute paths for naming shared libraries, and exclude the
8738
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
8739
 
          # requires that you compile everything twice, which is a pain.
8740
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8755
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8756
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8757
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8758
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8744
8759
          else
8745
8760
            ld_shlibs=no
8746
8761
          fi
8756
8771
      ;;
8757
8772
 
8758
8773
    *)
8759
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8774
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8760
8775
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761
8776
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762
8777
      else
8798
8813
      else
8799
8814
        # If we're using GNU nm, then we don't want the "-C" option.
8800
8815
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8801
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802
 
          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'
 
8816
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8817
          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'
8803
8818
        else
8804
 
          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'
 
8819
          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'
8805
8820
        fi
8806
8821
        aix_use_runtimelinking=no
8807
8822
 
8810
8825
        # need to do runtime linking.
8811
8826
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812
8827
          for ld_flag in $LDFLAGS; do
8813
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814
 
            aix_use_runtimelinking=yes
8815
 
            break
8816
 
          fi
 
8828
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8829
            aix_use_runtimelinking=yes
 
8830
            break
 
8831
          fi
8817
8832
          done
8818
8833
          ;;
8819
8834
        esac
8830
8845
 
8831
8846
      archive_cmds=''
8832
8847
      hardcode_direct=yes
8833
 
      hardcode_direct_absolute=yes
8834
8848
      hardcode_libdir_separator=':'
8835
8849
      link_all_deplibs=yes
8836
 
      file_list_spec='${wl}-f,'
8837
8850
 
8838
8851
      if test "$GCC" = yes; then
8839
8852
        case $host_os in aix4.[012]|aix4.[012].*)
8840
8853
        # We only want to do this on AIX 4.2 and lower, the check
8841
8854
        # below for broken collect2 doesn't work under 4.3+
8842
8855
          collect2name=`${CC} -print-prog-name=collect2`
8843
 
          if test -f "$collect2name" &&
8844
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8856
          if test -f "$collect2name" && \
 
8857
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8845
8858
          then
8846
 
          # We have reworked collect2
8847
 
          :
 
8859
          # We have reworked collect2
 
8860
          :
8848
8861
          else
8849
 
          # We have old collect2
8850
 
          hardcode_direct=unsupported
8851
 
          # It fails to find uninstalled libraries when the uninstalled
8852
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8853
 
          # to unsupported forces relinking
8854
 
          hardcode_minus_L=yes
8855
 
          hardcode_libdir_flag_spec='-L$libdir'
8856
 
          hardcode_libdir_separator=
 
8862
          # We have old collect2
 
8863
          hardcode_direct=unsupported
 
8864
          # It fails to find uninstalled libraries when the uninstalled
 
8865
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8866
          # to unsupported forces relinking
 
8867
          hardcode_minus_L=yes
 
8868
          hardcode_libdir_flag_spec='-L$libdir'
 
8869
          hardcode_libdir_separator=
8857
8870
          fi
8858
8871
          ;;
8859
8872
        esac
8864
8877
      else
8865
8878
        # not using gcc
8866
8879
        if test "$host_cpu" = ia64; then
8867
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868
 
        # chokes on -Wl,-G. The following line is correct:
 
8880
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8881
        # chokes on -Wl,-G. The following line is correct:
8869
8882
          shared_flag='-G'
8870
8883
        else
8871
8884
          if test "$aix_use_runtimelinking" = yes; then
8876
8889
        fi
8877
8890
      fi
8878
8891
 
8879
 
      export_dynamic_flag_spec='${wl}-bexpall'
8880
8892
      # It seems that -bexpall does not export symbols beginning with
8881
8893
      # underscore (_), so it is better to generate a list of symbols to export.
8882
8894
      always_export_symbols=yes
8884
8896
        # Warning - without using the other runtime loading flags (-brtl),
8885
8897
        # -berok will link without error, but may produce a broken library.
8886
8898
        allow_undefined_flag='-berok'
8887
 
        # Determine the default libpath from the value encoded in an
8888
 
        # empty executable.
8889
 
        cat >conftest.$ac_ext <<_ACEOF
 
8899
       # Determine the default libpath from the value encoded in an empty executable.
 
8900
       cat >conftest.$ac_ext <<_ACEOF
8890
8901
/* confdefs.h.  */
8891
8902
_ACEOF
8892
8903
cat confdefs.h >>conftest.$ac_ext
8947
8958
      conftest$ac_exeext conftest.$ac_ext
8948
8959
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8960
 
8950
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951
 
        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"
8952
 
      else
 
8961
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8962
        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"
 
8963
       else
8953
8964
        if test "$host_cpu" = ia64; then
8954
8965
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955
8966
          allow_undefined_flag="-z nodefs"
8956
8967
          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"
8957
8968
        else
8958
 
         # Determine the default libpath from the value encoded in an
8959
 
         # empty executable.
 
8969
         # Determine the default libpath from the value encoded in an empty executable.
8960
8970
         cat >conftest.$ac_ext <<_ACEOF
8961
8971
/* confdefs.h.  */
8962
8972
_ACEOF
9033
9043
      ;;
9034
9044
 
9035
9045
    amigaos*)
9036
 
      case $host_cpu in
9037
 
      powerpc)
9038
 
            # see comment about AmigaOS4 .so support
9039
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040
 
            archive_expsym_cmds=''
9041
 
        ;;
9042
 
      m68k)
9043
 
            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)'
9044
 
            hardcode_libdir_flag_spec='-L$libdir'
9045
 
            hardcode_minus_L=yes
9046
 
        ;;
9047
 
      esac
 
9046
      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)'
 
9047
      hardcode_libdir_flag_spec='-L$libdir'
 
9048
      hardcode_minus_L=yes
 
9049
      # see comment about different semantics on the GNU ld section
 
9050
      ld_shlibs=no
9048
9051
      ;;
9049
9052
 
9050
9053
    bsdi[45]*)
9051
9054
      export_dynamic_flag_spec=-rdynamic
9052
9055
      ;;
9053
9056
 
9054
 
    cygwin* | mingw* | pw32* | cegcc*)
 
9057
    cygwin* | mingw* | pw32*)
9055
9058
      # When not using gcc, we currently assume that we are using
9056
9059
      # Microsoft Visual C++.
9057
9060
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9063
9066
      # Tell ltmain to make .dll files, not .so files.
9064
9067
      shrext_cmds=".dll"
9065
9068
      # FIXME: Setting linknames here is a bad hack.
9066
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9069
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9067
9070
      # The linker will automatically build a .lib file if we build a DLL.
9068
 
      old_archive_from_new_cmds='true'
 
9071
      old_archive_From_new_cmds='true'
9069
9072
      # FIXME: Should let the user specify the lib program.
9070
9073
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9071
9074
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9073
9076
      ;;
9074
9077
 
9075
9078
    darwin* | rhapsody*)
9076
 
 
9077
 
 
9078
 
  archive_cmds_need_lc=no
9079
 
  hardcode_direct=no
9080
 
  hardcode_automatic=yes
9081
 
  hardcode_shlibpath_var=unsupported
9082
 
  whole_archive_flag_spec=''
9083
 
  link_all_deplibs=yes
9084
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9085
 
  case $cc_basename in
9086
 
     ifort*) _lt_dar_can_shared=yes ;;
9087
 
     *) _lt_dar_can_shared=$GCC ;;
9088
 
  esac
9089
 
  if test "$_lt_dar_can_shared" = "yes"; then
9090
 
    output_verbose_link_cmd=echo
9091
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093
 
    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}"
9094
 
    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}"
9095
 
 
9096
 
  else
9097
 
  ld_shlibs=no
9098
 
  fi
9099
 
 
 
9079
      case $host_os in
 
9080
        rhapsody* | darwin1.[012])
 
9081
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
9082
         ;;
 
9083
       *) # Darwin 1.3 on
 
9084
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9085
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9086
         else
 
9087
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9088
             10.[012])
 
9089
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9090
               ;;
 
9091
             10.*)
 
9092
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
9093
               ;;
 
9094
           esac
 
9095
         fi
 
9096
         ;;
 
9097
      esac
 
9098
      archive_cmds_need_lc=no
 
9099
      hardcode_direct=no
 
9100
      hardcode_automatic=yes
 
9101
      hardcode_shlibpath_var=unsupported
 
9102
      whole_archive_flag_spec=''
 
9103
      link_all_deplibs=yes
 
9104
    if test "$GCC" = yes ; then
 
9105
        output_verbose_link_cmd='echo'
 
9106
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9107
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9108
        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}"
 
9109
        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}"
 
9110
    else
 
9111
      case $cc_basename in
 
9112
        xlc*)
 
9113
         output_verbose_link_cmd='echo'
 
9114
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
9115
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9116
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9117
         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}'
 
9118
          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}'
 
9119
          ;;
 
9120
       *)
 
9121
         ld_shlibs=no
 
9122
          ;;
 
9123
      esac
 
9124
    fi
9100
9125
      ;;
9101
9126
 
9102
9127
    dgux*)
9138
9163
 
9139
9164
    hpux9*)
9140
9165
      if test "$GCC" = yes; then
9141
 
        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'
 
9166
        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'
9142
9167
      else
9143
 
        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'
 
9168
        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'
9144
9169
      fi
9145
9170
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146
9171
      hardcode_libdir_separator=:
9160
9185
      fi
9161
9186
      if test "$with_gnu_ld" = no; then
9162
9187
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9164
9188
        hardcode_libdir_separator=:
 
9189
 
9165
9190
        hardcode_direct=yes
9166
 
        hardcode_direct_absolute=yes
9167
9191
        export_dynamic_flag_spec='${wl}-E'
 
9192
 
9168
9193
        # hardcode_minus_L: Not really in the search PATH,
9169
9194
        # but as the default location of the library.
9170
9195
        hardcode_minus_L=yes
9178
9203
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179
9204
          ;;
9180
9205
        ia64*)
9181
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9206
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182
9207
          ;;
9183
9208
        *)
9184
9209
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203
9228
 
9204
9229
        case $host_cpu in
9205
9230
        hppa*64*|ia64*)
 
9231
          hardcode_libdir_flag_spec_ld='+b $libdir'
9206
9232
          hardcode_direct=no
9207
9233
          hardcode_shlibpath_var=no
9208
9234
          ;;
9209
9235
        *)
9210
9236
          hardcode_direct=yes
9211
 
          hardcode_direct_absolute=yes
9212
9237
          export_dynamic_flag_spec='${wl}-E'
9213
9238
 
9214
9239
          # hardcode_minus_L: Not really in the search PATH,
9221
9246
 
9222
9247
    irix5* | irix6* | nonstopux*)
9223
9248
      if test "$GCC" = yes; then
9224
 
        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'
9225
 
        # Try to use the -exported_symbol ld option, if it does not
9226
 
        # work, assume that -exports_file does not work either and
9227
 
        # implicitly export all symbols.
9228
 
        save_LDFLAGS="$LDFLAGS"
9229
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9230
 
        cat >conftest.$ac_ext <<_ACEOF
9231
 
int foo(void) {}
9232
 
_ACEOF
9233
 
rm -f conftest.$ac_objext conftest$ac_exeext
9234
 
if { (ac_try="$ac_link"
9235
 
case "(($ac_try" in
9236
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237
 
  *) ac_try_echo=$ac_try;;
9238
 
esac
9239
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240
 
$as_echo "$ac_try_echo") >&5
9241
 
  (eval "$ac_link") 2>conftest.er1
9242
 
  ac_status=$?
9243
 
  grep -v '^ *+' conftest.er1 >conftest.err
9244
 
  rm -f conftest.er1
9245
 
  cat conftest.err >&5
9246
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247
 
  (exit $ac_status); } && {
9248
 
         test -z "$ac_c_werror_flag" ||
9249
 
         test ! -s conftest.err
9250
 
       } && test -s conftest$ac_exeext && {
9251
 
         test "$cross_compiling" = yes ||
9252
 
         $as_test_x conftest$ac_exeext
9253
 
       }; then
9254
 
  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'
9255
 
 
9256
 
else
9257
 
  $as_echo "$as_me: failed program was:" >&5
9258
 
sed 's/^/| /' conftest.$ac_ext >&5
9259
 
 
9260
 
 
9261
 
fi
9262
 
 
9263
 
rm -rf conftest.dSYM
9264
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265
 
      conftest$ac_exeext conftest.$ac_ext
9266
 
        LDFLAGS="$save_LDFLAGS"
 
9249
        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'
9267
9250
      else
9268
 
        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'
9269
 
        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'
 
9251
        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'
 
9252
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9270
9253
      fi
9271
 
      archive_cmds_need_lc='no'
9272
9254
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273
9255
      hardcode_libdir_separator=:
9274
 
      inherit_rpath=yes
9275
9256
      link_all_deplibs=yes
9276
9257
      ;;
9277
9258
 
9278
9259
    netbsd*)
9279
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9260
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9280
9261
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9281
9262
      else
9282
9263
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9294
9275
      hardcode_shlibpath_var=no
9295
9276
      ;;
9296
9277
 
9297
 
    *nto* | *qnx*)
9298
 
      ;;
9299
 
 
9300
9278
    openbsd*)
9301
9279
      if test -f /usr/libexec/ld.so; then
9302
9280
        hardcode_direct=yes
9303
9281
        hardcode_shlibpath_var=no
9304
 
        hardcode_direct_absolute=yes
9305
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9282
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9306
9283
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307
9284
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9308
9285
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9318
9295
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9319
9296
             ;;
9320
9297
          esac
9321
 
        fi
 
9298
        fi
9322
9299
      else
9323
9300
        ld_shlibs=no
9324
9301
      fi
9328
9305
      hardcode_libdir_flag_spec='-L$libdir'
9329
9306
      hardcode_minus_L=yes
9330
9307
      allow_undefined_flag=unsupported
9331
 
      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'
9332
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9308
      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'
 
9309
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9333
9310
      ;;
9334
9311
 
9335
9312
    osf3*)
9336
9313
      if test "$GCC" = yes; then
9337
9314
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338
 
        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'
 
9315
        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'
9339
9316
      else
9340
9317
        allow_undefined_flag=' -expect_unresolved \*'
9341
 
        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'
 
9318
        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'
9342
9319
      fi
9343
 
      archive_cmds_need_lc='no'
9344
9320
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345
9321
      hardcode_libdir_separator=:
9346
9322
      ;;
9348
9324
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9349
9325
      if test "$GCC" = yes; then
9350
9326
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351
 
        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'
 
9327
        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'
9352
9328
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353
9329
      else
9354
9330
        allow_undefined_flag=' -expect_unresolved \*'
9355
 
        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'
9356
 
        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~
9357
 
        $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'
 
9331
        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'
 
9332
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9333
        $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'
9358
9334
 
9359
9335
        # Both c and cxx compiler support -rpath directly
9360
9336
        hardcode_libdir_flag_spec='-rpath $libdir'
9361
9337
      fi
9362
 
      archive_cmds_need_lc='no'
9363
9338
      hardcode_libdir_separator=:
9364
9339
      ;;
9365
9340
 
9366
9341
    solaris*)
9367
 
      no_undefined_flag=' -z defs'
 
9342
      no_undefined_flag=' -z text'
9368
9343
      if test "$GCC" = yes; then
9369
9344
        wlarc='${wl}'
9370
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9372
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9345
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9346
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9347
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9373
9348
      else
9374
 
        case `$CC -V 2>&1` in
9375
 
        *"Compilers 5.0"*)
9376
 
          wlarc=''
9377
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9380
 
          ;;
9381
 
        *)
9382
 
          wlarc='${wl}'
9383
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9386
 
          ;;
9387
 
        esac
 
9349
        wlarc=''
 
9350
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9351
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9352
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9388
9353
      fi
9389
9354
      hardcode_libdir_flag_spec='-R$libdir'
9390
9355
      hardcode_shlibpath_var=no
9394
9359
        # The compiler driver will combine and reorder linker options,
9395
9360
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9396
9361
        # but is careful enough not to reorder.
9397
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9362
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9398
9363
        if test "$GCC" = yes; then
9399
9364
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9400
9365
        else
9483
9448
      allow_undefined_flag='${wl}-z,nodefs'
9484
9449
      archive_cmds_need_lc=no
9485
9450
      hardcode_shlibpath_var=no
9486
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9451
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9487
9452
      hardcode_libdir_separator=':'
9488
9453
      link_all_deplibs=yes
9489
9454
      export_dynamic_flag_spec='${wl}-Bexport'
9490
9455
      runpath_var='LD_RUN_PATH'
9491
9456
 
9492
9457
      if test "$GCC" = yes; then
9493
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9458
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9459
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495
9460
      else
9496
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9461
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9462
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498
9463
      fi
9499
9464
      ;;
9500
9465
 
9508
9473
      ld_shlibs=no
9509
9474
      ;;
9510
9475
    esac
9511
 
 
9512
 
    if test x$host_vendor = xsni; then
9513
 
      case $host in
9514
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9516
 
        ;;
9517
 
      esac
9518
 
    fi
9519
9476
  fi
9520
9477
 
9521
9478
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9522
9479
$as_echo "$ld_shlibs" >&6; }
9523
9480
test "$ld_shlibs" = no && can_build_shared=no
9524
9481
 
9525
 
with_gnu_ld=$with_gnu_ld
9526
 
 
9527
 
 
9528
 
 
9529
 
 
9530
 
 
9531
 
 
9532
 
 
9533
 
 
9534
 
 
9535
 
 
9536
 
 
9537
 
 
9538
 
 
9539
 
 
9540
 
 
9541
9482
#
9542
9483
# Do we need to explicitly link libc?
9543
9484
#
9557
9498
      # to ld, don't add -lc before -lgcc.
9558
9499
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9559
9500
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9560
 
      $RM conftest*
 
9501
      $rm conftest*
9561
9502
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562
9503
 
9563
9504
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578
9519
        libname=conftest
9579
9520
        lt_save_allow_undefined_flag=$allow_undefined_flag
9580
9521
        allow_undefined_flag=
9581
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9582
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9522
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9523
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583
9524
  ac_status=$?
9584
9525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585
9526
  (exit $ac_status); }
9592
9533
      else
9593
9534
        cat conftest.err 1>&5
9594
9535
      fi
9595
 
      $RM conftest*
 
9536
      $rm conftest*
9596
9537
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9597
9538
$as_echo "$archive_cmds_need_lc" >&6; }
9598
9539
      ;;
9601
9542
  ;;
9602
9543
esac
9603
9544
 
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
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9545
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9761
9546
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9547
library_names_spec=
 
9548
libname_spec='lib$name'
 
9549
soname_spec=
 
9550
shrext_cmds=".so"
 
9551
postinstall_cmds=
 
9552
postuninstall_cmds=
 
9553
finish_cmds=
 
9554
finish_eval=
 
9555
shlibpath_var=
 
9556
shlibpath_overrides_runpath=unknown
 
9557
version_type=none
 
9558
dynamic_linker="$host_os ld.so"
 
9559
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9762
9560
 
9763
9561
if test "$GCC" = yes; then
9764
9562
  case $host_os in
9766
9564
    *) lt_awk_arg="/^libraries:/" ;;
9767
9565
  esac
9768
9566
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9567
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9770
9568
    # if the path contains ";" then we assume it to be the separator
9771
9569
    # otherwise default to the standard path separator (i.e. ":") - it is
9772
9570
    # assumed that no part of a normal pathname contains ";" but that should
9773
9571
    # okay in the real world where ";" in dirpaths is itself problematic.
9774
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9572
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9775
9573
  else
9776
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9574
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9777
9575
  fi
9778
9576
  # Ok, now we have the path, separated by spaces, we can step through it
9779
9577
  # and add multilib dir if necessary.
9787
9585
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9788
9586
    fi
9789
9587
  done
9790
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9588
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9791
9589
BEGIN {RS=" "; FS="/|\n";} {
9792
9590
  lt_foo="";
9793
9591
  lt_count=0;
9807
9605
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9808
9606
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9809
9607
}'`
9810
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9608
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9811
9609
else
9812
9610
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9813
9611
fi
9814
 
library_names_spec=
9815
 
libname_spec='lib$name'
9816
 
soname_spec=
9817
 
shrext_cmds=".so"
9818
 
postinstall_cmds=
9819
 
postuninstall_cmds=
9820
 
finish_cmds=
9821
 
finish_eval=
9822
 
shlibpath_var=
9823
 
shlibpath_overrides_runpath=unknown
9824
 
version_type=none
9825
 
dynamic_linker="$host_os ld.so"
9826
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827
9612
need_lib_prefix=unknown
9828
9613
hardcode_into_libs=no
9829
9614
 
9860
9645
      aix4 | aix4.[01] | aix4.[01].*)
9861
9646
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9862
9647
           echo ' yes '
9863
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9648
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9864
9649
        :
9865
9650
      else
9866
9651
        can_build_shared=no
9886
9671
  ;;
9887
9672
 
9888
9673
amigaos*)
9889
 
  case $host_cpu in
9890
 
  powerpc)
9891
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9892
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9893
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894
 
    ;;
9895
 
  m68k)
9896
 
    library_names_spec='$libname.ixlibrary $libname.a'
9897
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9898
 
    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'
9899
 
    ;;
9900
 
  esac
 
9674
  library_names_spec='$libname.ixlibrary $libname.a'
 
9675
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9676
  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'
9901
9677
  ;;
9902
9678
 
9903
9679
beos*)
9920
9696
  # libtool to hard-code these into programs
9921
9697
  ;;
9922
9698
 
9923
 
cygwin* | mingw* | pw32* | cegcc*)
 
9699
cygwin* | mingw* | pw32*)
9924
9700
  version_type=windows
9925
9701
  shrext_cmds=".dll"
9926
9702
  need_version=no
9927
9703
  need_lib_prefix=no
9928
9704
 
9929
9705
  case $GCC,$host_os in
9930
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9706
  yes,cygwin* | yes,mingw* | yes,pw32*)
9931
9707
    library_names_spec='$libname.dll.a'
9932
9708
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9933
9709
    postinstall_cmds='base_file=`basename \${file}`~
9934
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9710
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9935
9711
      dldir=$destdir/`dirname \$dlpath`~
9936
9712
      test -d \$dldir || mkdir -p \$dldir~
9937
9713
      $install_prog $dir/$dlname \$dldir/$dlname~
9938
 
      chmod a+x \$dldir/$dlname~
9939
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9940
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9941
 
      fi'
 
9714
      chmod a+x \$dldir/$dlname'
9942
9715
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9943
9716
      dlpath=$dir/\$dldll~
9944
 
       $RM \$dlpath'
 
9717
       $rm \$dlpath'
9945
9718
    shlibpath_overrides_runpath=yes
9946
9719
 
9947
9720
    case $host_os in
9950
9723
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951
9724
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9952
9725
      ;;
9953
 
    mingw* | cegcc*)
 
9726
    mingw*)
9954
9727
      # MinGW DLLs use traditional 'lib' prefix
9955
9728
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9956
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9957
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9729
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9730
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9958
9731
        # It is most probably a Windows format PATH printed by
9959
9732
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9960
9733
        # path with ; separators, and with drive letters. We can handle the
9961
9734
        # drive letters (cygwin fileutils understands them), so leave them,
9962
9735
        # especially as we might pass files found there to a mingw objdump,
9963
9736
        # which wouldn't understand a cygwinified path. Ahh.
9964
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9737
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965
9738
      else
9966
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9739
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9967
9740
      fi
9968
9741
      ;;
9969
9742
    pw32*)
9987
9760
  version_type=darwin
9988
9761
  need_lib_prefix=no
9989
9762
  need_version=no
9990
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9763
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991
9764
  soname_spec='${libname}${release}${major}$shared_ext'
9992
9765
  shlibpath_overrides_runpath=yes
9993
9766
  shlibpath_var=DYLD_LIBRARY_PATH
10086
9859
    fi
10087
9860
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088
9861
    ;;
10089
 
  hppa*64*)
10090
 
    shrext_cmds='.sl'
10091
 
    hardcode_into_libs=yes
10092
 
    dynamic_linker="$host_os dld.sl"
10093
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10094
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096
 
    soname_spec='${libname}${release}${shared_ext}$major'
10097
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10098
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099
 
    ;;
10100
 
  *)
 
9862
   hppa*64*)
 
9863
     shrext_cmds='.sl'
 
9864
     hardcode_into_libs=yes
 
9865
     dynamic_linker="$host_os dld.sl"
 
9866
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9867
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9868
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9869
     soname_spec='${libname}${release}${shared_ext}$major'
 
9870
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9871
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9872
     ;;
 
9873
   *)
10101
9874
    shrext_cmds='.sl'
10102
9875
    dynamic_linker="$host_os dld.sl"
10103
9876
    shlibpath_var=SHLIB_PATH
10174
9947
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10175
9948
  shlibpath_var=LD_LIBRARY_PATH
10176
9949
  shlibpath_overrides_runpath=no
10177
 
  # Some binutils ld are patched to set DT_RUNPATH
10178
 
  save_LDFLAGS=$LDFLAGS
10179
 
  save_libdir=$libdir
10180
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10181
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10182
 
  cat >conftest.$ac_ext <<_ACEOF
10183
 
/* confdefs.h.  */
10184
 
_ACEOF
10185
 
cat confdefs.h >>conftest.$ac_ext
10186
 
cat >>conftest.$ac_ext <<_ACEOF
10187
 
/* end confdefs.h.  */
10188
 
 
10189
 
int
10190
 
main ()
10191
 
{
10192
 
 
10193
 
  ;
10194
 
  return 0;
10195
 
}
10196
 
_ACEOF
10197
 
rm -f conftest.$ac_objext conftest$ac_exeext
10198
 
if { (ac_try="$ac_link"
10199
 
case "(($ac_try" in
10200
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201
 
  *) ac_try_echo=$ac_try;;
10202
 
esac
10203
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204
 
$as_echo "$ac_try_echo") >&5
10205
 
  (eval "$ac_link") 2>conftest.er1
10206
 
  ac_status=$?
10207
 
  grep -v '^ *+' conftest.er1 >conftest.err
10208
 
  rm -f conftest.er1
10209
 
  cat conftest.err >&5
10210
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211
 
  (exit $ac_status); } && {
10212
 
         test -z "$ac_c_werror_flag" ||
10213
 
         test ! -s conftest.err
10214
 
       } && test -s conftest$ac_exeext && {
10215
 
         test "$cross_compiling" = yes ||
10216
 
         $as_test_x conftest$ac_exeext
10217
 
       }; then
10218
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10219
 
  shlibpath_overrides_runpath=yes
10220
 
fi
10221
 
 
10222
 
else
10223
 
  $as_echo "$as_me: failed program was:" >&5
10224
 
sed 's/^/| /' conftest.$ac_ext >&5
10225
 
 
10226
 
 
10227
 
fi
10228
 
 
10229
 
rm -rf conftest.dSYM
10230
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231
 
      conftest$ac_exeext conftest.$ac_ext
10232
 
  LDFLAGS=$save_LDFLAGS
10233
 
  libdir=$save_libdir
10234
 
 
10235
9950
  # This implies no fast_install, which is unacceptable.
10236
9951
  # Some rework will be needed to allow for fast_install
10237
9952
  # before this can be enabled.
10238
9953
  hardcode_into_libs=yes
10239
9954
 
10240
 
  # Add ABI-specific directories to the system library path.
10241
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10242
 
 
10243
9955
  # Append ld.so.conf contents to the search path
10244
9956
  if test -f /etc/ld.so.conf; then
10245
 
    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' ' '`
10246
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9957
    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' ' '`
 
9958
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10247
9959
  fi
10248
9960
 
10249
9961
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10259
9971
  version_type=sunos
10260
9972
  need_lib_prefix=no
10261
9973
  need_version=no
10262
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9974
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10263
9975
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264
9976
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265
9977
    dynamic_linker='NetBSD (a.out) ld.so'
10280
9992
  shlibpath_overrides_runpath=yes
10281
9993
  ;;
10282
9994
 
10283
 
*nto* | *qnx*)
10284
 
  version_type=qnx
 
9995
nto-qnx*)
 
9996
  version_type=linux
10285
9997
  need_lib_prefix=no
10286
9998
  need_version=no
10287
9999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288
10000
  soname_spec='${libname}${release}${shared_ext}$major'
10289
10001
  shlibpath_var=LD_LIBRARY_PATH
10290
 
  shlibpath_overrides_runpath=no
10291
 
  hardcode_into_libs=yes
10292
 
  dynamic_linker='ldqnx.so'
 
10002
  shlibpath_overrides_runpath=yes
10293
10003
  ;;
10294
10004
 
10295
10005
openbsd*)
10298
10008
  need_lib_prefix=no
10299
10009
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10300
10010
  case $host_os in
10301
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10302
 
    *)                          need_version=no  ;;
 
10011
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
10012
    *)                         need_version=no  ;;
10303
10013
  esac
10304
10014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305
10015
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306
10016
  shlibpath_var=LD_LIBRARY_PATH
10307
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10017
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308
10018
    case $host_os in
10309
10019
      openbsd2.[89] | openbsd2.[89].*)
10310
10020
        shlibpath_overrides_runpath=no
10376
10086
    sni)
10377
10087
      shlibpath_overrides_runpath=no
10378
10088
      need_lib_prefix=no
 
10089
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10379
10090
      runpath_var=LD_RUN_PATH
10380
10091
      ;;
10381
10092
    siemens)
10406
10117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407
10118
  soname_spec='${libname}${release}${shared_ext}$major'
10408
10119
  shlibpath_var=LD_LIBRARY_PATH
10409
 
  shlibpath_overrides_runpath=yes
10410
10120
  hardcode_into_libs=yes
10411
10121
  if test "$with_gnu_ld" = yes; then
10412
10122
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10123
    shlibpath_overrides_runpath=no
10413
10124
  else
10414
10125
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10126
    shlibpath_overrides_runpath=yes
10415
10127
    case $host_os in
10416
10128
      sco3.2v5*)
10417
10129
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10421
10133
  sys_lib_dlsearch_path_spec='/usr/lib'
10422
10134
  ;;
10423
10135
 
10424
 
tpf*)
10425
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10426
 
  version_type=linux
10427
 
  need_lib_prefix=no
10428
 
  need_version=no
10429
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430
 
  shlibpath_var=LD_LIBRARY_PATH
10431
 
  shlibpath_overrides_runpath=no
10432
 
  hardcode_into_libs=yes
10433
 
  ;;
10434
 
 
10435
10136
uts4*)
10436
10137
  version_type=linux
10437
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447
10148
$as_echo "$dynamic_linker" >&6; }
10448
10149
test "$dynamic_linker" = no && can_build_shared=no
10449
10150
 
 
10151
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10152
  $as_echo_n "(cached) " >&6
 
10153
else
 
10154
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
10155
fi
 
10156
 
 
10157
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10158
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10159
  $as_echo_n "(cached) " >&6
 
10160
else
 
10161
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
10162
fi
 
10163
 
 
10164
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10165
 
10450
10166
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451
10167
if test "$GCC" = yes; then
10452
10168
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453
10169
fi
10454
10170
 
10455
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10457
 
fi
10458
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460
 
fi
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
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
 
 
10527
 
 
10528
 
 
10529
 
 
10530
 
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
 
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10171
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10549
10172
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10550
10173
hardcode_action=
10551
 
if test -n "$hardcode_libdir_flag_spec" ||
10552
 
   test -n "$runpath_var" ||
 
10174
if test -n "$hardcode_libdir_flag_spec" || \
 
10175
   test -n "$runpath_var" || \
10553
10176
   test "X$hardcode_automatic" = "Xyes" ; then
10554
10177
 
10555
 
  # We can hardcode non-existent directories.
 
10178
  # We can hardcode non-existant directories.
10556
10179
  if test "$hardcode_direct" != no &&
10557
10180
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10558
10181
     # have to relink, otherwise we might link with an installed library
10559
10182
     # when we should be linking with a yet-to-be-installed one
10560
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10183
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10561
10184
     test "$hardcode_minus_L" != no; then
10562
10185
    # Linking always hardcodes the temporary library directory.
10563
10186
    hardcode_action=relink
10573
10196
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10574
10197
$as_echo "$hardcode_action" >&6; }
10575
10198
 
10576
 
if test "$hardcode_action" = relink ||
10577
 
   test "$inherit_rpath" = yes; then
 
10199
if test "$hardcode_action" = relink; then
10578
10200
  # Fast installation is not supported
10579
10201
  enable_fast_install=no
10580
10202
elif test "$shlibpath_overrides_runpath" = yes ||
10583
10205
  enable_fast_install=needless
10584
10206
fi
10585
10207
 
10586
 
 
10587
 
 
10588
 
 
10589
 
 
10590
 
 
10591
 
  if test "x$enable_dlopen" != xyes; then
 
10208
striplib=
 
10209
old_striplib=
 
10210
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10211
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10212
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10213
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10214
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10215
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10216
$as_echo "yes" >&6; }
 
10217
else
 
10218
# FIXME - insert some real tests, host_os isn't really good enough
 
10219
  case $host_os in
 
10220
   darwin*)
 
10221
       if test -n "$STRIP" ; then
 
10222
         striplib="$STRIP -x"
 
10223
         old_striplib="$STRIP -S"
 
10224
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10225
$as_echo "yes" >&6; }
 
10226
       else
 
10227
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10228
$as_echo "no" >&6; }
 
10229
fi
 
10230
       ;;
 
10231
   *)
 
10232
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10233
$as_echo "no" >&6; }
 
10234
    ;;
 
10235
  esac
 
10236
fi
 
10237
 
 
10238
if test "x$enable_dlopen" != xyes; then
10592
10239
  enable_dlopen=unknown
10593
10240
  enable_dlopen_self=unknown
10594
10241
  enable_dlopen_self_static=unknown
10603
10250
    lt_cv_dlopen_self=yes
10604
10251
    ;;
10605
10252
 
10606
 
  mingw* | pw32* | cegcc*)
 
10253
  mingw* | pw32*)
10607
10254
    lt_cv_dlopen="LoadLibrary"
10608
10255
    lt_cv_dlopen_libs=
10609
 
    ;;
 
10256
   ;;
10610
10257
 
10611
10258
  cygwin*)
10612
10259
    lt_cv_dlopen="dlopen"
10613
10260
    lt_cv_dlopen_libs=
10614
 
    ;;
 
10261
   ;;
10615
10262
 
10616
10263
  darwin*)
10617
10264
  # if libdl is installed we need to link against it
10690
10337
 
10691
10338
fi
10692
10339
 
10693
 
    ;;
 
10340
   ;;
10694
10341
 
10695
10342
  *)
10696
10343
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11187
10834
else
11188
10835
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189
10836
  lt_status=$lt_dlunknown
11190
 
  cat > conftest.$ac_ext <<_LT_EOF
11191
 
#line 11191 "configure"
 
10837
  cat > conftest.$ac_ext <<EOF
 
10838
#line 10838 "configure"
11192
10839
#include "confdefs.h"
11193
10840
 
11194
10841
#if HAVE_DLFCN_H
11229
10876
#  endif
11230
10877
#endif
11231
10878
 
 
10879
#ifdef __cplusplus
 
10880
extern "C" void exit (int);
 
10881
#endif
 
10882
 
11232
10883
void fnord() { int i=42;}
11233
10884
int main ()
11234
10885
{
11244
10895
  else
11245
10896
    puts (dlerror ());
11246
10897
 
11247
 
  return status;
 
10898
    exit (status);
11248
10899
}
11249
 
_LT_EOF
 
10900
EOF
11250
10901
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251
10902
  (eval $ac_link) 2>&5
11252
10903
  ac_status=$?
11283
10934
else
11284
10935
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11285
10936
  lt_status=$lt_dlunknown
11286
 
  cat > conftest.$ac_ext <<_LT_EOF
11287
 
#line 11287 "configure"
 
10937
  cat > conftest.$ac_ext <<EOF
 
10938
#line 10938 "configure"
11288
10939
#include "confdefs.h"
11289
10940
 
11290
10941
#if HAVE_DLFCN_H
11325
10976
#  endif
11326
10977
#endif
11327
10978
 
 
10979
#ifdef __cplusplus
 
10980
extern "C" void exit (int);
 
10981
#endif
 
10982
 
11328
10983
void fnord() { int i=42;}
11329
10984
int main ()
11330
10985
{
11340
10995
  else
11341
10996
    puts (dlerror ());
11342
10997
 
11343
 
  return status;
 
10998
    exit (status);
11344
10999
}
11345
 
_LT_EOF
 
11000
EOF
11346
11001
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347
11002
  (eval $ac_link) 2>&5
11348
11003
  ac_status=$?
11386
11041
fi
11387
11042
 
11388
11043
 
11389
 
 
11390
 
 
11391
 
 
11392
 
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
 
 
11398
 
 
11399
 
 
11400
 
 
11401
 
 
11402
 
 
11403
 
 
11404
 
striplib=
11405
 
old_striplib=
11406
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11407
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11408
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11409
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11410
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11411
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11412
 
$as_echo "yes" >&6; }
11413
 
else
11414
 
# FIXME - insert some real tests, host_os isn't really good enough
11415
 
  case $host_os in
11416
 
  darwin*)
11417
 
    if test -n "$STRIP" ; then
11418
 
      striplib="$STRIP -x"
11419
 
      old_striplib="$STRIP -S"
11420
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
11421
 
$as_echo "yes" >&6; }
11422
 
    else
11423
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
11424
 
$as_echo "no" >&6; }
11425
 
    fi
11426
 
    ;;
11427
 
  *)
11428
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
11429
 
$as_echo "no" >&6; }
11430
 
    ;;
11431
 
  esac
11432
 
fi
11433
 
 
11434
 
 
11435
 
 
11436
 
 
11437
 
 
11438
 
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
  # Report which library types will actually be built
11446
 
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11447
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11448
 
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11449
 
$as_echo "$can_build_shared" >&6; }
11450
 
 
11451
 
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11452
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11453
 
  test "$can_build_shared" = "no" && enable_shared=no
11454
 
 
11455
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11456
 
  # are all built from PIC.
11457
 
  case $host_os in
11458
 
  aix3*)
11459
 
    test "$enable_shared" = yes && enable_static=no
11460
 
    if test -n "$RANLIB"; then
11461
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11462
 
      postinstall_cmds='$RANLIB $lib'
11463
 
    fi
11464
 
    ;;
11465
 
 
11466
 
  aix[4-9]*)
11467
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11468
 
      test "$enable_shared" = yes && enable_static=no
11469
 
    fi
11470
 
    ;;
11471
 
  esac
11472
 
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11473
 
$as_echo "$enable_shared" >&6; }
11474
 
 
11475
 
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11476
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11477
 
  # Make sure either enable_shared or enable_static is yes.
11478
 
  test "$enable_shared" = yes || enable_static=yes
11479
 
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11480
 
$as_echo "$enable_static" >&6; }
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
fi
11486
 
ac_ext=c
11487
 
ac_cpp='$CPP $CPPFLAGS'
11488
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
 
 
11492
 
CC="$lt_save_CC"
11493
 
 
11494
 
 
11495
 
 
11496
 
 
11497
 
 
11498
 
 
11499
 
 
11500
 
 
11501
 
 
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
        ac_config_commands="$ac_config_commands libtool"
11507
 
 
11508
 
 
11509
 
 
11510
 
 
11511
 
# Only expand once:
 
11044
# Report which library types will actually be built
 
11045
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11046
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11047
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11048
$as_echo "$can_build_shared" >&6; }
 
11049
 
 
11050
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11051
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11052
test "$can_build_shared" = "no" && enable_shared=no
 
11053
 
 
11054
# On AIX, shared libraries and static libraries use the same namespace, and
 
11055
# are all built from PIC.
 
11056
case $host_os in
 
11057
aix3*)
 
11058
  test "$enable_shared" = yes && enable_static=no
 
11059
  if test -n "$RANLIB"; then
 
11060
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11061
    postinstall_cmds='$RANLIB $lib'
 
11062
  fi
 
11063
  ;;
 
11064
 
 
11065
aix[4-9]*)
 
11066
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11067
    test "$enable_shared" = yes && enable_static=no
 
11068
  fi
 
11069
    ;;
 
11070
esac
 
11071
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11072
$as_echo "$enable_shared" >&6; }
 
11073
 
 
11074
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11075
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11076
# Make sure either enable_shared or enable_static is yes.
 
11077
test "$enable_shared" = yes || enable_static=yes
 
11078
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11079
$as_echo "$enable_static" >&6; }
 
11080
 
 
11081
# The else clause should only fire when bootstrapping the
 
11082
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11083
# with your package, and you will get complaints that there are
 
11084
# no rules to generate ltmain.sh.
 
11085
if test -f "$ltmain"; then
 
11086
  # See if we are running on zsh, and set the options which allow our commands through
 
11087
  # without removal of \ escapes.
 
11088
  if test -n "${ZSH_VERSION+set}" ; then
 
11089
    setopt NO_GLOB_SUBST
 
11090
  fi
 
11091
  # Now quote all the things that may contain metacharacters while being
 
11092
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11093
  # variables and quote the copies for generation of the libtool script.
 
11094
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
11095
    SED SHELL STRIP \
 
11096
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11097
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11098
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11099
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11100
    lt_cv_sys_global_symbol_to_c_name_address \
 
11101
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11102
    old_postinstall_cmds old_postuninstall_cmds \
 
11103
    compiler \
 
11104
    CC \
 
11105
    LD \
 
11106
    lt_prog_compiler_wl \
 
11107
    lt_prog_compiler_pic \
 
11108
    lt_prog_compiler_static \
 
11109
    lt_prog_compiler_no_builtin_flag \
 
11110
    export_dynamic_flag_spec \
 
11111
    thread_safe_flag_spec \
 
11112
    whole_archive_flag_spec \
 
11113
    enable_shared_with_static_runtimes \
 
11114
    old_archive_cmds \
 
11115
    old_archive_from_new_cmds \
 
11116
    predep_objects \
 
11117
    postdep_objects \
 
11118
    predeps \
 
11119
    postdeps \
 
11120
    compiler_lib_search_path \
 
11121
    compiler_lib_search_dirs \
 
11122
    archive_cmds \
 
11123
    archive_expsym_cmds \
 
11124
    postinstall_cmds \
 
11125
    postuninstall_cmds \
 
11126
    old_archive_from_expsyms_cmds \
 
11127
    allow_undefined_flag \
 
11128
    no_undefined_flag \
 
11129
    export_symbols_cmds \
 
11130
    hardcode_libdir_flag_spec \
 
11131
    hardcode_libdir_flag_spec_ld \
 
11132
    hardcode_libdir_separator \
 
11133
    hardcode_automatic \
 
11134
    module_cmds \
 
11135
    module_expsym_cmds \
 
11136
    lt_cv_prog_compiler_c_o \
 
11137
    fix_srcfile_path \
 
11138
    exclude_expsyms \
 
11139
    include_expsyms; do
 
11140
 
 
11141
    case $var in
 
11142
    old_archive_cmds | \
 
11143
    old_archive_from_new_cmds | \
 
11144
    archive_cmds | \
 
11145
    archive_expsym_cmds | \
 
11146
    module_cmds | \
 
11147
    module_expsym_cmds | \
 
11148
    old_archive_from_expsyms_cmds | \
 
11149
    export_symbols_cmds | \
 
11150
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11151
    postinstall_cmds | postuninstall_cmds | \
 
11152
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11153
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11154
      # Double-quote double-evaled strings.
 
11155
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11156
      ;;
 
11157
    *)
 
11158
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11159
      ;;
 
11160
    esac
 
11161
  done
 
11162
 
 
11163
  case $lt_echo in
 
11164
  *'\$0 --fallback-echo"')
 
11165
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11166
    ;;
 
11167
  esac
 
11168
 
 
11169
cfgfile="${ofile}T"
 
11170
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11171
  $rm -f "$cfgfile"
 
11172
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
11173
$as_echo "$as_me: creating $ofile" >&6;}
 
11174
 
 
11175
  cat <<__EOF__ >> "$cfgfile"
 
11176
#! $SHELL
 
11177
 
 
11178
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11179
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11180
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11181
#
 
11182
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
11183
# Free Software Foundation, Inc.
 
11184
#
 
11185
# This file is part of GNU Libtool:
 
11186
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11187
#
 
11188
# This program is free software; you can redistribute it and/or modify
 
11189
# it under the terms of the GNU General Public License as published by
 
11190
# the Free Software Foundation; either version 2 of the License, or
 
11191
# (at your option) any later version.
 
11192
#
 
11193
# This program is distributed in the hope that it will be useful, but
 
11194
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11195
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11196
# General Public License for more details.
 
11197
#
 
11198
# You should have received a copy of the GNU General Public License
 
11199
# along with this program; if not, write to the Free Software
 
11200
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11201
#
 
11202
# As a special exception to the GNU General Public License, if you
 
11203
# distribute this file as part of a program that contains a
 
11204
# configuration script generated by Autoconf, you may include it under
 
11205
# the same distribution terms that you use for the rest of that program.
 
11206
 
 
11207
# A sed program that does not truncate output.
 
11208
SED=$lt_SED
 
11209
 
 
11210
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11211
Xsed="$SED -e 1s/^X//"
 
11212
 
 
11213
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11214
# if CDPATH is set.
 
11215
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11216
 
 
11217
# The names of the tagged configurations supported by this script.
 
11218
available_tags=
 
11219
 
 
11220
# ### BEGIN LIBTOOL CONFIG
 
11221
 
 
11222
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11223
 
 
11224
# Shell to use when invoking shell scripts.
 
11225
SHELL=$lt_SHELL
 
11226
 
 
11227
# Whether or not to build shared libraries.
 
11228
build_libtool_libs=$enable_shared
 
11229
 
 
11230
# Whether or not to build static libraries.
 
11231
build_old_libs=$enable_static
 
11232
 
 
11233
# Whether or not to add -lc for building shared libraries.
 
11234
build_libtool_need_lc=$archive_cmds_need_lc
 
11235
 
 
11236
# Whether or not to disallow shared libs when runtime libs are static
 
11237
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11238
 
 
11239
# Whether or not to optimize for fast installation.
 
11240
fast_install=$enable_fast_install
 
11241
 
 
11242
# The host system.
 
11243
host_alias=$host_alias
 
11244
host=$host
 
11245
host_os=$host_os
 
11246
 
 
11247
# The build system.
 
11248
build_alias=$build_alias
 
11249
build=$build
 
11250
build_os=$build_os
 
11251
 
 
11252
# An echo program that does not interpret backslashes.
 
11253
echo=$lt_echo
 
11254
 
 
11255
# The archiver.
 
11256
AR=$lt_AR
 
11257
AR_FLAGS=$lt_AR_FLAGS
 
11258
 
 
11259
# A C compiler.
 
11260
LTCC=$lt_LTCC
 
11261
 
 
11262
# LTCC compiler flags.
 
11263
LTCFLAGS=$lt_LTCFLAGS
 
11264
 
 
11265
# A language-specific compiler.
 
11266
CC=$lt_compiler
 
11267
 
 
11268
# Is the compiler the GNU C compiler?
 
11269
with_gcc=$GCC
 
11270
 
 
11271
# An ERE matcher.
 
11272
EGREP=$lt_EGREP
 
11273
 
 
11274
# The linker used to build libraries.
 
11275
LD=$lt_LD
 
11276
 
 
11277
# Whether we need hard or soft links.
 
11278
LN_S=$lt_LN_S
 
11279
 
 
11280
# A BSD-compatible nm program.
 
11281
NM=$lt_NM
 
11282
 
 
11283
# A symbol stripping program
 
11284
STRIP=$lt_STRIP
 
11285
 
 
11286
# Used to examine libraries when file_magic_cmd begins "file"
 
11287
MAGIC_CMD=$MAGIC_CMD
 
11288
 
 
11289
# Used on cygwin: DLL creation program.
 
11290
DLLTOOL="$DLLTOOL"
 
11291
 
 
11292
# Used on cygwin: object dumper.
 
11293
OBJDUMP="$OBJDUMP"
 
11294
 
 
11295
# Used on cygwin: assembler.
 
11296
AS="$AS"
 
11297
 
 
11298
# The name of the directory that contains temporary libtool files.
 
11299
objdir=$objdir
 
11300
 
 
11301
# How to create reloadable object files.
 
11302
reload_flag=$lt_reload_flag
 
11303
reload_cmds=$lt_reload_cmds
 
11304
 
 
11305
# How to pass a linker flag through the compiler.
 
11306
wl=$lt_lt_prog_compiler_wl
 
11307
 
 
11308
# Object file suffix (normally "o").
 
11309
objext="$ac_objext"
 
11310
 
 
11311
# Old archive suffix (normally "a").
 
11312
libext="$libext"
 
11313
 
 
11314
# Shared library suffix (normally ".so").
 
11315
shrext_cmds='$shrext_cmds'
 
11316
 
 
11317
# Executable file suffix (normally "").
 
11318
exeext="$exeext"
 
11319
 
 
11320
# Additional compiler flags for building library objects.
 
11321
pic_flag=$lt_lt_prog_compiler_pic
 
11322
pic_mode=$pic_mode
 
11323
 
 
11324
# What is the maximum length of a command?
 
11325
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11326
 
 
11327
# Does compiler simultaneously support -c and -o options?
 
11328
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11329
 
 
11330
# Must we lock files when doing compilation?
 
11331
need_locks=$lt_need_locks
 
11332
 
 
11333
# Do we need the lib prefix for modules?
 
11334
need_lib_prefix=$need_lib_prefix
 
11335
 
 
11336
# Do we need a version for libraries?
 
11337
need_version=$need_version
 
11338
 
 
11339
# Whether dlopen is supported.
 
11340
dlopen_support=$enable_dlopen
 
11341
 
 
11342
# Whether dlopen of programs is supported.
 
11343
dlopen_self=$enable_dlopen_self
 
11344
 
 
11345
# Whether dlopen of statically linked programs is supported.
 
11346
dlopen_self_static=$enable_dlopen_self_static
 
11347
 
 
11348
# Compiler flag to prevent dynamic linking.
 
11349
link_static_flag=$lt_lt_prog_compiler_static
 
11350
 
 
11351
# Compiler flag to turn off builtin functions.
 
11352
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11353
 
 
11354
# Compiler flag to allow reflexive dlopens.
 
11355
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11356
 
 
11357
# Compiler flag to generate shared objects directly from archives.
 
11358
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11359
 
 
11360
# Compiler flag to generate thread-safe objects.
 
11361
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11362
 
 
11363
# Library versioning type.
 
11364
version_type=$version_type
 
11365
 
 
11366
# Format of library name prefix.
 
11367
libname_spec=$lt_libname_spec
 
11368
 
 
11369
# List of archive names.  First name is the real one, the rest are links.
 
11370
# The last name is the one that the linker finds with -lNAME.
 
11371
library_names_spec=$lt_library_names_spec
 
11372
 
 
11373
# The coded name of the library, if different from the real name.
 
11374
soname_spec=$lt_soname_spec
 
11375
 
 
11376
# Commands used to build and install an old-style archive.
 
11377
RANLIB=$lt_RANLIB
 
11378
old_archive_cmds=$lt_old_archive_cmds
 
11379
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11380
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11381
 
 
11382
# Create an old-style archive from a shared archive.
 
11383
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11384
 
 
11385
# Create a temporary old-style archive to link instead of a shared archive.
 
11386
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11387
 
 
11388
# Commands used to build and install a shared archive.
 
11389
archive_cmds=$lt_archive_cmds
 
11390
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11391
postinstall_cmds=$lt_postinstall_cmds
 
11392
postuninstall_cmds=$lt_postuninstall_cmds
 
11393
 
 
11394
# Commands used to build a loadable module (assumed same as above if empty)
 
11395
module_cmds=$lt_module_cmds
 
11396
module_expsym_cmds=$lt_module_expsym_cmds
 
11397
 
 
11398
# Commands to strip libraries.
 
11399
old_striplib=$lt_old_striplib
 
11400
striplib=$lt_striplib
 
11401
 
 
11402
# Dependencies to place before the objects being linked to create a
 
11403
# shared library.
 
11404
predep_objects=$lt_predep_objects
 
11405
 
 
11406
# Dependencies to place after the objects being linked to create a
 
11407
# shared library.
 
11408
postdep_objects=$lt_postdep_objects
 
11409
 
 
11410
# Dependencies to place before the objects being linked to create a
 
11411
# shared library.
 
11412
predeps=$lt_predeps
 
11413
 
 
11414
# Dependencies to place after the objects being linked to create a
 
11415
# shared library.
 
11416
postdeps=$lt_postdeps
 
11417
 
 
11418
# The directories searched by this compiler when creating a shared
 
11419
# library
 
11420
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11421
 
 
11422
# The library search path used internally by the compiler when linking
 
11423
# a shared library.
 
11424
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11425
 
 
11426
# Method to check whether dependent libraries are shared objects.
 
11427
deplibs_check_method=$lt_deplibs_check_method
 
11428
 
 
11429
# Command to use when deplibs_check_method == file_magic.
 
11430
file_magic_cmd=$lt_file_magic_cmd
 
11431
 
 
11432
# Flag that allows shared libraries with undefined symbols to be built.
 
11433
allow_undefined_flag=$lt_allow_undefined_flag
 
11434
 
 
11435
# Flag that forces no undefined symbols.
 
11436
no_undefined_flag=$lt_no_undefined_flag
 
11437
 
 
11438
# Commands used to finish a libtool library installation in a directory.
 
11439
finish_cmds=$lt_finish_cmds
 
11440
 
 
11441
# Same as above, but a single script fragment to be evaled but not shown.
 
11442
finish_eval=$lt_finish_eval
 
11443
 
 
11444
# Take the output of nm and produce a listing of raw symbols and C names.
 
11445
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11446
 
 
11447
# Transform the output of nm in a proper C declaration
 
11448
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11449
 
 
11450
# Transform the output of nm in a C name address pair
 
11451
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11452
 
 
11453
# This is the shared library runtime path variable.
 
11454
runpath_var=$runpath_var
 
11455
 
 
11456
# This is the shared library path variable.
 
11457
shlibpath_var=$shlibpath_var
 
11458
 
 
11459
# Is shlibpath searched before the hard-coded library search path?
 
11460
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11461
 
 
11462
# How to hardcode a shared library path into an executable.
 
11463
hardcode_action=$hardcode_action
 
11464
 
 
11465
# Whether we should hardcode library paths into libraries.
 
11466
hardcode_into_libs=$hardcode_into_libs
 
11467
 
 
11468
# Flag to hardcode \$libdir into a binary during linking.
 
11469
# This must work even if \$libdir does not exist.
 
11470
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11471
 
 
11472
# If ld is used when linking, flag to hardcode \$libdir into
 
11473
# a binary during linking. This must work even if \$libdir does
 
11474
# not exist.
 
11475
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11476
 
 
11477
# Whether we need a single -rpath flag with a separated argument.
 
11478
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11479
 
 
11480
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11481
# resulting binary.
 
11482
hardcode_direct=$hardcode_direct
 
11483
 
 
11484
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11485
# resulting binary.
 
11486
hardcode_minus_L=$hardcode_minus_L
 
11487
 
 
11488
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11489
# the resulting binary.
 
11490
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11491
 
 
11492
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11493
# and all subsequent libraries and executables linked against it.
 
11494
hardcode_automatic=$hardcode_automatic
 
11495
 
 
11496
# Variables whose values should be saved in libtool wrapper scripts and
 
11497
# restored at relink time.
 
11498
variables_saved_for_relink="$variables_saved_for_relink"
 
11499
 
 
11500
# Whether libtool must link a program against all its dependency libraries.
 
11501
link_all_deplibs=$link_all_deplibs
 
11502
 
 
11503
# Compile-time system search path for libraries
 
11504
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11505
 
 
11506
# Run-time system search path for libraries
 
11507
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11508
 
 
11509
# Fix the shell variable \$srcfile for the compiler.
 
11510
fix_srcfile_path=$lt_fix_srcfile_path
 
11511
 
 
11512
# Set to yes if exported symbols are required.
 
11513
always_export_symbols=$always_export_symbols
 
11514
 
 
11515
# The commands to list exported symbols.
 
11516
export_symbols_cmds=$lt_export_symbols_cmds
 
11517
 
 
11518
# The commands to extract the exported symbol list from a shared archive.
 
11519
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11520
 
 
11521
# Symbols that should not be listed in the preloaded symbols.
 
11522
exclude_expsyms=$lt_exclude_expsyms
 
11523
 
 
11524
# Symbols that must always be exported.
 
11525
include_expsyms=$lt_include_expsyms
 
11526
 
 
11527
# ### END LIBTOOL CONFIG
 
11528
 
 
11529
__EOF__
 
11530
 
 
11531
 
 
11532
  case $host_os in
 
11533
  aix3*)
 
11534
    cat <<\EOF >> "$cfgfile"
 
11535
 
 
11536
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11537
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11538
# vanish in a puff of smoke.
 
11539
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11540
  COLLECT_NAMES=
 
11541
  export COLLECT_NAMES
 
11542
fi
 
11543
EOF
 
11544
    ;;
 
11545
  esac
 
11546
 
 
11547
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11548
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11549
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11550
  # is reportedly fixed, but why not run on old versions too?
 
11551
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11552
 
 
11553
  mv -f "$cfgfile" "$ofile" || \
 
11554
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11555
  chmod +x "$ofile"
 
11556
 
 
11557
else
 
11558
  # If there is no Makefile yet, we rely on a make rule to execute
 
11559
  # `config.status --recheck' to rerun these tests and create the
 
11560
  # libtool script then.
 
11561
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11562
  if test -f "$ltmain_in"; then
 
11563
    test -f Makefile && make "$ltmain"
 
11564
  fi
 
11565
fi
 
11566
 
 
11567
 
 
11568
ac_ext=c
 
11569
ac_cpp='$CPP $CPPFLAGS'
 
11570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11573
 
 
11574
CC="$lt_save_CC"
 
11575
 
 
11576
 
 
11577
# Check whether --with-tags was given.
 
11578
if test "${with_tags+set}" = set; then
 
11579
  withval=$with_tags; tagnames="$withval"
 
11580
fi
 
11581
 
 
11582
 
 
11583
if test -f "$ltmain" && test -n "$tagnames"; then
 
11584
  if test ! -f "${ofile}"; then
 
11585
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11586
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11587
  fi
 
11588
 
 
11589
  if test -z "$LTCC"; then
 
11590
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11591
    if test -z "$LTCC"; then
 
11592
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11593
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11594
    else
 
11595
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11596
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11597
    fi
 
11598
  fi
 
11599
  if test -z "$LTCFLAGS"; then
 
11600
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11601
  fi
 
11602
 
 
11603
  # Extract list of available tagged configurations in $ofile.
 
11604
  # Note that this assumes the entire list is on one line.
 
11605
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11606
 
 
11607
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11608
  for tagname in $tagnames; do
 
11609
    IFS="$lt_save_ifs"
 
11610
    # Check whether tagname contains only valid characters
 
11611
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11612
    "") ;;
 
11613
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11614
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11615
   { (exit 1); exit 1; }; }
 
11616
        ;;
 
11617
    esac
 
11618
 
 
11619
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11620
    then
 
11621
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11622
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11623
   { (exit 1); exit 1; }; }
 
11624
    fi
 
11625
 
 
11626
    # Update the list of available tags.
 
11627
    if test -n "$tagname"; then
 
11628
      echo appending configuration tag \"$tagname\" to $ofile
 
11629
 
 
11630
      case $tagname in
 
11631
      CXX)
 
11632
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11633
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11634
            (test "X$CXX" != "Xg++"))) ; then
 
11635
          ac_ext=cpp
 
11636
ac_cpp='$CXXCPP $CPPFLAGS'
 
11637
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11638
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11639
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11640
 
 
11641
 
 
11642
 
 
11643
 
 
11644
archive_cmds_need_lc_CXX=no
 
11645
allow_undefined_flag_CXX=
 
11646
always_export_symbols_CXX=no
 
11647
archive_expsym_cmds_CXX=
 
11648
export_dynamic_flag_spec_CXX=
 
11649
hardcode_direct_CXX=no
 
11650
hardcode_libdir_flag_spec_CXX=
 
11651
hardcode_libdir_flag_spec_ld_CXX=
 
11652
hardcode_libdir_separator_CXX=
 
11653
hardcode_minus_L_CXX=no
 
11654
hardcode_shlibpath_var_CXX=unsupported
 
11655
hardcode_automatic_CXX=no
 
11656
module_cmds_CXX=
 
11657
module_expsym_cmds_CXX=
 
11658
link_all_deplibs_CXX=unknown
 
11659
old_archive_cmds_CXX=$old_archive_cmds
 
11660
no_undefined_flag_CXX=
 
11661
whole_archive_flag_spec_CXX=
 
11662
enable_shared_with_static_runtimes_CXX=no
 
11663
 
 
11664
# Dependencies to place before and after the object being linked:
 
11665
predep_objects_CXX=
 
11666
postdep_objects_CXX=
 
11667
predeps_CXX=
 
11668
postdeps_CXX=
 
11669
compiler_lib_search_path_CXX=
 
11670
compiler_lib_search_dirs_CXX=
 
11671
 
 
11672
# Source file extension for C++ test sources.
 
11673
ac_ext=cpp
 
11674
 
 
11675
# Object file extension for compiled C++ test sources.
 
11676
objext=o
 
11677
objext_CXX=$objext
 
11678
 
 
11679
# Code to be used in simple compile tests
 
11680
lt_simple_compile_test_code="int some_variable = 0;"
 
11681
 
 
11682
# Code to be used in simple link tests
 
11683
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11684
 
 
11685
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11686
 
 
11687
# If no C compiler was specified, use CC.
 
11688
LTCC=${LTCC-"$CC"}
 
11689
 
 
11690
# If no C compiler flags were specified, use CFLAGS.
 
11691
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11692
 
 
11693
# Allow CC to be a program name with arguments.
 
11694
compiler=$CC
 
11695
 
 
11696
 
 
11697
# save warnings/boilerplate of simple test code
 
11698
ac_outfile=conftest.$ac_objext
 
11699
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11700
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11701
_lt_compiler_boilerplate=`cat conftest.err`
 
11702
$rm conftest*
 
11703
 
 
11704
ac_outfile=conftest.$ac_objext
 
11705
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11706
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11707
_lt_linker_boilerplate=`cat conftest.err`
 
11708
$rm -r conftest*
 
11709
 
 
11710
 
 
11711
# Allow CC to be a program name with arguments.
 
11712
lt_save_CC=$CC
 
11713
lt_save_LD=$LD
 
11714
lt_save_GCC=$GCC
 
11715
GCC=$GXX
 
11716
lt_save_with_gnu_ld=$with_gnu_ld
 
11717
lt_save_path_LD=$lt_cv_path_LD
 
11718
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11719
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11720
else
 
11721
  $as_unset lt_cv_prog_gnu_ld
 
11722
fi
 
11723
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11724
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11725
else
 
11726
  $as_unset lt_cv_path_LD
 
11727
fi
 
11728
test -z "${LDCXX+set}" || LD=$LDCXX
 
11729
CC=${CXX-"c++"}
 
11730
compiler=$CC
 
11731
compiler_CXX=$CC
 
11732
for cc_temp in $compiler""; do
 
11733
  case $cc_temp in
 
11734
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11735
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11736
    \-*) ;;
 
11737
    *) break;;
 
11738
  esac
 
11739
done
 
11740
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11741
 
 
11742
 
 
11743
# We don't want -fno-exception wen compiling C++ code, so set the
 
11744
# no_builtin_flag separately
 
11745
if test "$GXX" = yes; then
 
11746
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11747
else
 
11748
  lt_prog_compiler_no_builtin_flag_CXX=
 
11749
fi
 
11750
 
 
11751
if test "$GXX" = yes; then
 
11752
  # Set up default GNU C++ configuration
 
11753
 
 
11754
 
 
11755
# Check whether --with-gnu-ld was given.
 
11756
if test "${with_gnu_ld+set}" = set; then
 
11757
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11758
else
 
11759
  with_gnu_ld=no
 
11760
fi
 
11761
 
 
11762
ac_prog=ld
 
11763
if test "$GCC" = yes; then
 
11764
  # Check if gcc -print-prog-name=ld gives a path.
 
11765
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11766
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11767
  case $host in
 
11768
  *-*-mingw*)
 
11769
    # gcc leaves a trailing carriage return which upsets mingw
 
11770
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11771
  *)
 
11772
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11773
  esac
 
11774
  case $ac_prog in
 
11775
    # Accept absolute paths.
 
11776
    [\\/]* | ?:[\\/]*)
 
11777
      re_direlt='/[^/][^/]*/\.\./'
 
11778
      # Canonicalize the pathname of ld
 
11779
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11780
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11781
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11782
      done
 
11783
      test -z "$LD" && LD="$ac_prog"
 
11784
      ;;
 
11785
  "")
 
11786
    # If it fails, then pretend we aren't using GCC.
 
11787
    ac_prog=ld
 
11788
    ;;
 
11789
  *)
 
11790
    # If it is relative, then search for the first ld in PATH.
 
11791
    with_gnu_ld=unknown
 
11792
    ;;
 
11793
  esac
 
11794
elif test "$with_gnu_ld" = yes; then
 
11795
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11796
$as_echo_n "checking for GNU ld... " >&6; }
 
11797
else
 
11798
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11799
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11800
fi
 
11801
if test "${lt_cv_path_LD+set}" = set; then
 
11802
  $as_echo_n "(cached) " >&6
 
11803
else
 
11804
  if test -z "$LD"; then
 
11805
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11806
  for ac_dir in $PATH; do
 
11807
    IFS="$lt_save_ifs"
 
11808
    test -z "$ac_dir" && ac_dir=.
 
11809
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11810
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11811
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11812
      # but apparently some variants of GNU ld only accept -v.
 
11813
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11814
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11815
      *GNU* | *'with BFD'*)
 
11816
        test "$with_gnu_ld" != no && break
 
11817
        ;;
 
11818
      *)
 
11819
        test "$with_gnu_ld" != yes && break
 
11820
        ;;
 
11821
      esac
 
11822
    fi
 
11823
  done
 
11824
  IFS="$lt_save_ifs"
 
11825
else
 
11826
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11827
fi
 
11828
fi
 
11829
 
 
11830
LD="$lt_cv_path_LD"
 
11831
if test -n "$LD"; then
 
11832
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11833
$as_echo "$LD" >&6; }
 
11834
else
 
11835
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11836
$as_echo "no" >&6; }
 
11837
fi
 
11838
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11839
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11840
   { (exit 1); exit 1; }; }
 
11841
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11842
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11843
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11844
  $as_echo_n "(cached) " >&6
 
11845
else
 
11846
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11847
case `$LD -v 2>&1 </dev/null` in
 
11848
*GNU* | *'with BFD'*)
 
11849
  lt_cv_prog_gnu_ld=yes
 
11850
  ;;
 
11851
*)
 
11852
  lt_cv_prog_gnu_ld=no
 
11853
  ;;
 
11854
esac
 
11855
fi
 
11856
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11857
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11858
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11859
 
 
11860
 
 
11861
 
 
11862
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11863
  # archiving commands below assume that GNU ld is being used.
 
11864
  if test "$with_gnu_ld" = yes; then
 
11865
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11866
    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'
 
11867
 
 
11868
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11869
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11870
 
 
11871
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11872
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11873
    #     investigate it a little bit more. (MM)
 
11874
    wlarc='${wl}'
 
11875
 
 
11876
    # ancient GNU ld didn't support --whole-archive et. al.
 
11877
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11878
        grep 'no-whole-archive' > /dev/null; then
 
11879
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11880
    else
 
11881
      whole_archive_flag_spec_CXX=
 
11882
    fi
 
11883
  else
 
11884
    with_gnu_ld=no
 
11885
    wlarc=
 
11886
 
 
11887
    # A generic and very simple default shared library creation
 
11888
    # command for GNU C++ for the case where it uses the native
 
11889
    # linker, instead of GNU ld.  If possible, this setting should
 
11890
    # overridden to take advantage of the native linker features on
 
11891
    # the platform it is being used on.
 
11892
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11893
  fi
 
11894
 
 
11895
  # Commands to make compiler produce verbose output that lists
 
11896
  # what "hidden" libraries, object files and flags are used when
 
11897
  # linking a shared library.
 
11898
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11899
 
 
11900
else
 
11901
  GXX=no
 
11902
  with_gnu_ld=no
 
11903
  wlarc=
 
11904
fi
 
11905
 
 
11906
# PORTME: fill in a description of your system's C++ link characteristics
 
11907
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11908
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11909
ld_shlibs_CXX=yes
 
11910
case $host_os in
 
11911
  aix3*)
 
11912
    # FIXME: insert proper C++ library support
 
11913
    ld_shlibs_CXX=no
 
11914
    ;;
 
11915
  aix[4-9]*)
 
11916
    if test "$host_cpu" = ia64; then
 
11917
      # On IA64, the linker does run time linking by default, so we don't
 
11918
      # have to do anything special.
 
11919
      aix_use_runtimelinking=no
 
11920
      exp_sym_flag='-Bexport'
 
11921
      no_entry_flag=""
 
11922
    else
 
11923
      aix_use_runtimelinking=no
 
11924
 
 
11925
      # Test if we are trying to use run time linking or normal
 
11926
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11927
      # need to do runtime linking.
 
11928
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11929
        for ld_flag in $LDFLAGS; do
 
11930
          case $ld_flag in
 
11931
          *-brtl*)
 
11932
            aix_use_runtimelinking=yes
 
11933
            break
 
11934
            ;;
 
11935
          esac
 
11936
        done
 
11937
        ;;
 
11938
      esac
 
11939
 
 
11940
      exp_sym_flag='-bexport'
 
11941
      no_entry_flag='-bnoentry'
 
11942
    fi
 
11943
 
 
11944
    # When large executables or shared objects are built, AIX ld can
 
11945
    # have problems creating the table of contents.  If linking a library
 
11946
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11947
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11948
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11949
 
 
11950
    archive_cmds_CXX=''
 
11951
    hardcode_direct_CXX=yes
 
11952
    hardcode_libdir_separator_CXX=':'
 
11953
    link_all_deplibs_CXX=yes
 
11954
 
 
11955
    if test "$GXX" = yes; then
 
11956
      case $host_os in aix4.[012]|aix4.[012].*)
 
11957
      # We only want to do this on AIX 4.2 and lower, the check
 
11958
      # below for broken collect2 doesn't work under 4.3+
 
11959
        collect2name=`${CC} -print-prog-name=collect2`
 
11960
        if test -f "$collect2name" && \
 
11961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11962
        then
 
11963
          # We have reworked collect2
 
11964
          :
 
11965
        else
 
11966
          # We have old collect2
 
11967
          hardcode_direct_CXX=unsupported
 
11968
          # It fails to find uninstalled libraries when the uninstalled
 
11969
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11970
          # to unsupported forces relinking
 
11971
          hardcode_minus_L_CXX=yes
 
11972
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11973
          hardcode_libdir_separator_CXX=
 
11974
        fi
 
11975
        ;;
 
11976
      esac
 
11977
      shared_flag='-shared'
 
11978
      if test "$aix_use_runtimelinking" = yes; then
 
11979
        shared_flag="$shared_flag "'${wl}-G'
 
11980
      fi
 
11981
    else
 
11982
      # not using gcc
 
11983
      if test "$host_cpu" = ia64; then
 
11984
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11985
        # chokes on -Wl,-G. The following line is correct:
 
11986
        shared_flag='-G'
 
11987
      else
 
11988
        if test "$aix_use_runtimelinking" = yes; then
 
11989
          shared_flag='${wl}-G'
 
11990
        else
 
11991
          shared_flag='${wl}-bM:SRE'
 
11992
        fi
 
11993
      fi
 
11994
    fi
 
11995
 
 
11996
    # It seems that -bexpall does not export symbols beginning with
 
11997
    # underscore (_), so it is better to generate a list of symbols to export.
 
11998
    always_export_symbols_CXX=yes
 
11999
    if test "$aix_use_runtimelinking" = yes; then
 
12000
      # Warning - without using the other runtime loading flags (-brtl),
 
12001
      # -berok will link without error, but may produce a broken library.
 
12002
      allow_undefined_flag_CXX='-berok'
 
12003
      # Determine the default libpath from the value encoded in an empty executable.
 
12004
      cat >conftest.$ac_ext <<_ACEOF
 
12005
/* confdefs.h.  */
 
12006
_ACEOF
 
12007
cat confdefs.h >>conftest.$ac_ext
 
12008
cat >>conftest.$ac_ext <<_ACEOF
 
12009
/* end confdefs.h.  */
 
12010
 
 
12011
int
 
12012
main ()
 
12013
{
 
12014
 
 
12015
  ;
 
12016
  return 0;
 
12017
}
 
12018
_ACEOF
 
12019
rm -f conftest.$ac_objext conftest$ac_exeext
 
12020
if { (ac_try="$ac_link"
 
12021
case "(($ac_try" in
 
12022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12023
  *) ac_try_echo=$ac_try;;
 
12024
esac
 
12025
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12026
$as_echo "$ac_try_echo") >&5
 
12027
  (eval "$ac_link") 2>conftest.er1
 
12028
  ac_status=$?
 
12029
  grep -v '^ *+' conftest.er1 >conftest.err
 
12030
  rm -f conftest.er1
 
12031
  cat conftest.err >&5
 
12032
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12033
  (exit $ac_status); } && {
 
12034
         test -z "$ac_cxx_werror_flag" ||
 
12035
         test ! -s conftest.err
 
12036
       } && test -s conftest$ac_exeext && {
 
12037
         test "$cross_compiling" = yes ||
 
12038
         $as_test_x conftest$ac_exeext
 
12039
       }; then
 
12040
 
 
12041
lt_aix_libpath_sed='
 
12042
    /Import File Strings/,/^$/ {
 
12043
        /^0/ {
 
12044
            s/^0  *\(.*\)$/\1/
 
12045
            p
 
12046
        }
 
12047
    }'
 
12048
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12049
# Check for a 64-bit object if we didn't find anything.
 
12050
if test -z "$aix_libpath"; then
 
12051
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12052
fi
 
12053
else
 
12054
  $as_echo "$as_me: failed program was:" >&5
 
12055
sed 's/^/| /' conftest.$ac_ext >&5
 
12056
 
 
12057
 
 
12058
fi
 
12059
 
 
12060
rm -rf conftest.dSYM
 
12061
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12062
      conftest$ac_exeext conftest.$ac_ext
 
12063
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12064
 
 
12065
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12066
 
 
12067
      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"
 
12068
     else
 
12069
      if test "$host_cpu" = ia64; then
 
12070
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12071
        allow_undefined_flag_CXX="-z nodefs"
 
12072
        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"
 
12073
      else
 
12074
        # Determine the default libpath from the value encoded in an empty executable.
 
12075
        cat >conftest.$ac_ext <<_ACEOF
 
12076
/* confdefs.h.  */
 
12077
_ACEOF
 
12078
cat confdefs.h >>conftest.$ac_ext
 
12079
cat >>conftest.$ac_ext <<_ACEOF
 
12080
/* end confdefs.h.  */
 
12081
 
 
12082
int
 
12083
main ()
 
12084
{
 
12085
 
 
12086
  ;
 
12087
  return 0;
 
12088
}
 
12089
_ACEOF
 
12090
rm -f conftest.$ac_objext conftest$ac_exeext
 
12091
if { (ac_try="$ac_link"
 
12092
case "(($ac_try" in
 
12093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12094
  *) ac_try_echo=$ac_try;;
 
12095
esac
 
12096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12097
$as_echo "$ac_try_echo") >&5
 
12098
  (eval "$ac_link") 2>conftest.er1
 
12099
  ac_status=$?
 
12100
  grep -v '^ *+' conftest.er1 >conftest.err
 
12101
  rm -f conftest.er1
 
12102
  cat conftest.err >&5
 
12103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12104
  (exit $ac_status); } && {
 
12105
         test -z "$ac_cxx_werror_flag" ||
 
12106
         test ! -s conftest.err
 
12107
       } && test -s conftest$ac_exeext && {
 
12108
         test "$cross_compiling" = yes ||
 
12109
         $as_test_x conftest$ac_exeext
 
12110
       }; then
 
12111
 
 
12112
lt_aix_libpath_sed='
 
12113
    /Import File Strings/,/^$/ {
 
12114
        /^0/ {
 
12115
            s/^0  *\(.*\)$/\1/
 
12116
            p
 
12117
        }
 
12118
    }'
 
12119
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12120
# Check for a 64-bit object if we didn't find anything.
 
12121
if test -z "$aix_libpath"; then
 
12122
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12123
fi
 
12124
else
 
12125
  $as_echo "$as_me: failed program was:" >&5
 
12126
sed 's/^/| /' conftest.$ac_ext >&5
 
12127
 
 
12128
 
 
12129
fi
 
12130
 
 
12131
rm -rf conftest.dSYM
 
12132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12133
      conftest$ac_exeext conftest.$ac_ext
 
12134
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12135
 
 
12136
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12137
        # Warning - without using the other run time loading flags,
 
12138
        # -berok will link without error, but may produce a broken library.
 
12139
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12140
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12141
        # Exported symbols can be pulled into shared objects from archives
 
12142
        whole_archive_flag_spec_CXX='$convenience'
 
12143
        archive_cmds_need_lc_CXX=yes
 
12144
        # This is similar to how AIX traditionally builds its shared libraries.
 
12145
        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'
 
12146
      fi
 
12147
    fi
 
12148
    ;;
 
12149
 
 
12150
  beos*)
 
12151
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12152
      allow_undefined_flag_CXX=unsupported
 
12153
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12154
      # support --undefined.  This deserves some investigation.  FIXME
 
12155
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12156
    else
 
12157
      ld_shlibs_CXX=no
 
12158
    fi
 
12159
    ;;
 
12160
 
 
12161
  chorus*)
 
12162
    case $cc_basename in
 
12163
      *)
 
12164
        # FIXME: insert proper C++ library support
 
12165
        ld_shlibs_CXX=no
 
12166
        ;;
 
12167
    esac
 
12168
    ;;
 
12169
 
 
12170
  cygwin* | mingw* | pw32*)
 
12171
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12172
    # as there is no search path for DLLs.
 
12173
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12174
    allow_undefined_flag_CXX=unsupported
 
12175
    always_export_symbols_CXX=no
 
12176
    enable_shared_with_static_runtimes_CXX=yes
 
12177
 
 
12178
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12179
      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'
 
12180
      # If the export-symbols file already is a .def file (1st line
 
12181
      # is EXPORTS), use it as is; otherwise, prepend...
 
12182
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12183
        cp $export_symbols $output_objdir/$soname.def;
 
12184
      else
 
12185
        echo EXPORTS > $output_objdir/$soname.def;
 
12186
        cat $export_symbols >> $output_objdir/$soname.def;
 
12187
      fi~
 
12188
      $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'
 
12189
    else
 
12190
      ld_shlibs_CXX=no
 
12191
    fi
 
12192
  ;;
 
12193
      darwin* | rhapsody*)
 
12194
      archive_cmds_need_lc_CXX=no
 
12195
      hardcode_direct_CXX=no
 
12196
      hardcode_automatic_CXX=yes
 
12197
      hardcode_shlibpath_var_CXX=unsupported
 
12198
      whole_archive_flag_spec_CXX=''
 
12199
      link_all_deplibs_CXX=yes
 
12200
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12201
      if test "$GXX" = yes ; then
 
12202
      output_verbose_link_cmd='echo'
 
12203
      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}"
 
12204
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12205
      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}"
 
12206
      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}"
 
12207
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12208
        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}"
 
12209
        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}"
 
12210
      fi
 
12211
      else
 
12212
      case $cc_basename in
 
12213
        xlc*)
 
12214
         output_verbose_link_cmd='echo'
 
12215
          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'
 
12216
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12217
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12218
          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}'
 
12219
          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}'
 
12220
          ;;
 
12221
       *)
 
12222
         ld_shlibs_CXX=no
 
12223
          ;;
 
12224
      esac
 
12225
      fi
 
12226
        ;;
 
12227
 
 
12228
  dgux*)
 
12229
    case $cc_basename in
 
12230
      ec++*)
 
12231
        # FIXME: insert proper C++ library support
 
12232
        ld_shlibs_CXX=no
 
12233
        ;;
 
12234
      ghcx*)
 
12235
        # Green Hills C++ Compiler
 
12236
        # FIXME: insert proper C++ library support
 
12237
        ld_shlibs_CXX=no
 
12238
        ;;
 
12239
      *)
 
12240
        # FIXME: insert proper C++ library support
 
12241
        ld_shlibs_CXX=no
 
12242
        ;;
 
12243
    esac
 
12244
    ;;
 
12245
  freebsd[12]*)
 
12246
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12247
    ld_shlibs_CXX=no
 
12248
    ;;
 
12249
  freebsd-elf*)
 
12250
    archive_cmds_need_lc_CXX=no
 
12251
    ;;
 
12252
  freebsd* | dragonfly*)
 
12253
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12254
    # conventions
 
12255
    ld_shlibs_CXX=yes
 
12256
    ;;
 
12257
  gnu*)
 
12258
    ;;
 
12259
  hpux9*)
 
12260
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12261
    hardcode_libdir_separator_CXX=:
 
12262
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12263
    hardcode_direct_CXX=yes
 
12264
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12265
                                # but as the default
 
12266
                                # location of the library.
 
12267
 
 
12268
    case $cc_basename in
 
12269
    CC*)
 
12270
      # FIXME: insert proper C++ library support
 
12271
      ld_shlibs_CXX=no
 
12272
      ;;
 
12273
    aCC*)
 
12274
      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'
 
12275
      # Commands to make compiler produce verbose output that lists
 
12276
      # what "hidden" libraries, object files and flags are used when
 
12277
      # linking a shared library.
 
12278
      #
 
12279
      # There doesn't appear to be a way to prevent this compiler from
 
12280
      # explicitly linking system object files so we need to strip them
 
12281
      # from the output so that they don't get included in the library
 
12282
      # dependencies.
 
12283
      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'
 
12284
      ;;
 
12285
    *)
 
12286
      if test "$GXX" = yes; then
 
12287
        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'
 
12288
      else
 
12289
        # FIXME: insert proper C++ library support
 
12290
        ld_shlibs_CXX=no
 
12291
      fi
 
12292
      ;;
 
12293
    esac
 
12294
    ;;
 
12295
  hpux10*|hpux11*)
 
12296
    if test $with_gnu_ld = no; then
 
12297
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12298
      hardcode_libdir_separator_CXX=:
 
12299
 
 
12300
      case $host_cpu in
 
12301
      hppa*64*|ia64*) ;;
 
12302
      *)
 
12303
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12304
        ;;
 
12305
      esac
 
12306
    fi
 
12307
    case $host_cpu in
 
12308
    hppa*64*|ia64*)
 
12309
      hardcode_direct_CXX=no
 
12310
      hardcode_shlibpath_var_CXX=no
 
12311
      ;;
 
12312
    *)
 
12313
      hardcode_direct_CXX=yes
 
12314
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12315
                                              # but as the default
 
12316
                                              # location of the library.
 
12317
      ;;
 
12318
    esac
 
12319
 
 
12320
    case $cc_basename in
 
12321
      CC*)
 
12322
        # FIXME: insert proper C++ library support
 
12323
        ld_shlibs_CXX=no
 
12324
        ;;
 
12325
      aCC*)
 
12326
        case $host_cpu in
 
12327
        hppa*64*)
 
12328
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12329
          ;;
 
12330
        ia64*)
 
12331
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12332
          ;;
 
12333
        *)
 
12334
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12335
          ;;
 
12336
        esac
 
12337
        # Commands to make compiler produce verbose output that lists
 
12338
        # what "hidden" libraries, object files and flags are used when
 
12339
        # linking a shared library.
 
12340
        #
 
12341
        # There doesn't appear to be a way to prevent this compiler from
 
12342
        # explicitly linking system object files so we need to strip them
 
12343
        # from the output so that they don't get included in the library
 
12344
        # dependencies.
 
12345
        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'
 
12346
        ;;
 
12347
      *)
 
12348
        if test "$GXX" = yes; then
 
12349
          if test $with_gnu_ld = no; then
 
12350
            case $host_cpu in
 
12351
            hppa*64*)
 
12352
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12353
              ;;
 
12354
            ia64*)
 
12355
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12356
              ;;
 
12357
            *)
 
12358
              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'
 
12359
              ;;
 
12360
            esac
 
12361
          fi
 
12362
        else
 
12363
          # FIXME: insert proper C++ library support
 
12364
          ld_shlibs_CXX=no
 
12365
        fi
 
12366
        ;;
 
12367
    esac
 
12368
    ;;
 
12369
  interix[3-9]*)
 
12370
    hardcode_direct_CXX=no
 
12371
    hardcode_shlibpath_var_CXX=no
 
12372
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12373
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12374
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12375
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12376
    # default) and relocated if they conflict, which is a slow very memory
 
12377
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12378
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12379
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12380
    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'
 
12381
    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'
 
12382
    ;;
 
12383
  irix5* | irix6*)
 
12384
    case $cc_basename in
 
12385
      CC*)
 
12386
        # SGI C++
 
12387
        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'
 
12388
 
 
12389
        # Archives containing C++ object files must be created using
 
12390
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12391
        # necessary to make sure instantiated templates are included
 
12392
        # in the archive.
 
12393
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12394
        ;;
 
12395
      *)
 
12396
        if test "$GXX" = yes; then
 
12397
          if test "$with_gnu_ld" = no; then
 
12398
            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'
 
12399
          else
 
12400
            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'
 
12401
          fi
 
12402
        fi
 
12403
        link_all_deplibs_CXX=yes
 
12404
        ;;
 
12405
    esac
 
12406
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12407
    hardcode_libdir_separator_CXX=:
 
12408
    ;;
 
12409
  linux* | k*bsd*-gnu)
 
12410
    case $cc_basename in
 
12411
      KCC*)
 
12412
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12413
 
 
12414
        # KCC will only create a shared library if the output file
 
12415
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12416
        # to its proper name (with version) after linking.
 
12417
        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'
 
12418
        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'
 
12419
        # Commands to make compiler produce verbose output that lists
 
12420
        # what "hidden" libraries, object files and flags are used when
 
12421
        # linking a shared library.
 
12422
        #
 
12423
        # There doesn't appear to be a way to prevent this compiler from
 
12424
        # explicitly linking system object files so we need to strip them
 
12425
        # from the output so that they don't get included in the library
 
12426
        # dependencies.
 
12427
        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'
 
12428
 
 
12429
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12430
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12431
 
 
12432
        # Archives containing C++ object files must be created using
 
12433
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12434
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12435
        ;;
 
12436
      icpc*)
 
12437
        # Intel C++
 
12438
        with_gnu_ld=yes
 
12439
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12440
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12441
        # earlier do not add the objects themselves.
 
12442
        case `$CC -V 2>&1` in
 
12443
        *"Version 7."*)
 
12444
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12445
          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'
 
12446
          ;;
 
12447
        *)  # Version 8.0 or newer
 
12448
          tmp_idyn=
 
12449
          case $host_cpu in
 
12450
            ia64*) tmp_idyn=' -i_dynamic';;
 
12451
          esac
 
12452
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12453
          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'
 
12454
          ;;
 
12455
        esac
 
12456
        archive_cmds_need_lc_CXX=no
 
12457
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12458
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12459
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12460
        ;;
 
12461
      pgCC* | pgcpp*)
 
12462
        # Portland Group C++ compiler
 
12463
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12464
        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'
 
12465
 
 
12466
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12467
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12468
        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'
 
12469
        ;;
 
12470
      cxx*)
 
12471
        # Compaq C++
 
12472
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12473
        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'
 
12474
 
 
12475
        runpath_var=LD_RUN_PATH
 
12476
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12477
        hardcode_libdir_separator_CXX=:
 
12478
 
 
12479
        # Commands to make compiler produce verbose output that lists
 
12480
        # what "hidden" libraries, object files and flags are used when
 
12481
        # linking a shared library.
 
12482
        #
 
12483
        # There doesn't appear to be a way to prevent this compiler from
 
12484
        # explicitly linking system object files so we need to strip them
 
12485
        # from the output so that they don't get included in the library
 
12486
        # dependencies.
 
12487
        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'
 
12488
        ;;
 
12489
      *)
 
12490
        case `$CC -V 2>&1 | sed 5q` in
 
12491
        *Sun\ C*)
 
12492
          # Sun C++ 5.9
 
12493
          no_undefined_flag_CXX=' -zdefs'
 
12494
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12495
          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'
 
12496
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12497
          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'
 
12498
 
 
12499
          # Not sure whether something based on
 
12500
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12501
          # would be better.
 
12502
          output_verbose_link_cmd='echo'
 
12503
 
 
12504
          # Archives containing C++ object files must be created using
 
12505
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12506
          # necessary to make sure instantiated templates are included
 
12507
          # in the archive.
 
12508
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12509
          ;;
 
12510
        esac
 
12511
        ;;
 
12512
    esac
 
12513
    ;;
 
12514
  lynxos*)
 
12515
    # FIXME: insert proper C++ library support
 
12516
    ld_shlibs_CXX=no
 
12517
    ;;
 
12518
  m88k*)
 
12519
    # FIXME: insert proper C++ library support
 
12520
    ld_shlibs_CXX=no
 
12521
    ;;
 
12522
  mvs*)
 
12523
    case $cc_basename in
 
12524
      cxx*)
 
12525
        # FIXME: insert proper C++ library support
 
12526
        ld_shlibs_CXX=no
 
12527
        ;;
 
12528
      *)
 
12529
        # FIXME: insert proper C++ library support
 
12530
        ld_shlibs_CXX=no
 
12531
        ;;
 
12532
    esac
 
12533
    ;;
 
12534
  netbsd*)
 
12535
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12536
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12537
      wlarc=
 
12538
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12539
      hardcode_direct_CXX=yes
 
12540
      hardcode_shlibpath_var_CXX=no
 
12541
    fi
 
12542
    # Workaround some broken pre-1.5 toolchains
 
12543
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12544
    ;;
 
12545
  openbsd2*)
 
12546
    # C++ shared libraries are fairly broken
 
12547
    ld_shlibs_CXX=no
 
12548
    ;;
 
12549
  openbsd*)
 
12550
    if test -f /usr/libexec/ld.so; then
 
12551
      hardcode_direct_CXX=yes
 
12552
      hardcode_shlibpath_var_CXX=no
 
12553
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12554
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12555
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12556
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12557
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12558
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12559
      fi
 
12560
      output_verbose_link_cmd='echo'
 
12561
    else
 
12562
      ld_shlibs_CXX=no
 
12563
    fi
 
12564
    ;;
 
12565
  osf3*)
 
12566
    case $cc_basename in
 
12567
      KCC*)
 
12568
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12569
 
 
12570
        # KCC will only create a shared library if the output file
 
12571
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12572
        # to its proper name (with version) after linking.
 
12573
        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'
 
12574
 
 
12575
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12576
        hardcode_libdir_separator_CXX=:
 
12577
 
 
12578
        # Archives containing C++ object files must be created using
 
12579
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12580
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12581
 
 
12582
        ;;
 
12583
      RCC*)
 
12584
        # Rational C++ 2.4.1
 
12585
        # FIXME: insert proper C++ library support
 
12586
        ld_shlibs_CXX=no
 
12587
        ;;
 
12588
      cxx*)
 
12589
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12590
        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'
 
12591
 
 
12592
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12593
        hardcode_libdir_separator_CXX=:
 
12594
 
 
12595
        # Commands to make compiler produce verbose output that lists
 
12596
        # what "hidden" libraries, object files and flags are used when
 
12597
        # linking a shared library.
 
12598
        #
 
12599
        # There doesn't appear to be a way to prevent this compiler from
 
12600
        # explicitly linking system object files so we need to strip them
 
12601
        # from the output so that they don't get included in the library
 
12602
        # dependencies.
 
12603
        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'
 
12604
        ;;
 
12605
      *)
 
12606
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12607
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12608
          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'
 
12609
 
 
12610
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12611
          hardcode_libdir_separator_CXX=:
 
12612
 
 
12613
          # Commands to make compiler produce verbose output that lists
 
12614
          # what "hidden" libraries, object files and flags are used when
 
12615
          # linking a shared library.
 
12616
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12617
 
 
12618
        else
 
12619
          # FIXME: insert proper C++ library support
 
12620
          ld_shlibs_CXX=no
 
12621
        fi
 
12622
        ;;
 
12623
    esac
 
12624
    ;;
 
12625
  osf4* | osf5*)
 
12626
    case $cc_basename in
 
12627
      KCC*)
 
12628
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12629
 
 
12630
        # KCC will only create a shared library if the output file
 
12631
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12632
        # to its proper name (with version) after linking.
 
12633
        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'
 
12634
 
 
12635
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12636
        hardcode_libdir_separator_CXX=:
 
12637
 
 
12638
        # Archives containing C++ object files must be created using
 
12639
        # the KAI C++ compiler.
 
12640
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12641
        ;;
 
12642
      RCC*)
 
12643
        # Rational C++ 2.4.1
 
12644
        # FIXME: insert proper C++ library support
 
12645
        ld_shlibs_CXX=no
 
12646
        ;;
 
12647
      cxx*)
 
12648
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12649
        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'
 
12650
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12651
          echo "-hidden">> $lib.exp~
 
12652
          $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~
 
12653
          $rm $lib.exp'
 
12654
 
 
12655
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12656
        hardcode_libdir_separator_CXX=:
 
12657
 
 
12658
        # Commands to make compiler produce verbose output that lists
 
12659
        # what "hidden" libraries, object files and flags are used when
 
12660
        # linking a shared library.
 
12661
        #
 
12662
        # There doesn't appear to be a way to prevent this compiler from
 
12663
        # explicitly linking system object files so we need to strip them
 
12664
        # from the output so that they don't get included in the library
 
12665
        # dependencies.
 
12666
        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'
 
12667
        ;;
 
12668
      *)
 
12669
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12670
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12671
         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'
 
12672
 
 
12673
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12674
          hardcode_libdir_separator_CXX=:
 
12675
 
 
12676
          # Commands to make compiler produce verbose output that lists
 
12677
          # what "hidden" libraries, object files and flags are used when
 
12678
          # linking a shared library.
 
12679
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12680
 
 
12681
        else
 
12682
          # FIXME: insert proper C++ library support
 
12683
          ld_shlibs_CXX=no
 
12684
        fi
 
12685
        ;;
 
12686
    esac
 
12687
    ;;
 
12688
  psos*)
 
12689
    # FIXME: insert proper C++ library support
 
12690
    ld_shlibs_CXX=no
 
12691
    ;;
 
12692
  sunos4*)
 
12693
    case $cc_basename in
 
12694
      CC*)
 
12695
        # Sun C++ 4.x
 
12696
        # FIXME: insert proper C++ library support
 
12697
        ld_shlibs_CXX=no
 
12698
        ;;
 
12699
      lcc*)
 
12700
        # Lucid
 
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
    ;;
 
12710
  solaris*)
 
12711
    case $cc_basename in
 
12712
      CC*)
 
12713
        # Sun C++ 4.2, 5.x and Centerline C++
 
12714
        archive_cmds_need_lc_CXX=yes
 
12715
        no_undefined_flag_CXX=' -zdefs'
 
12716
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12717
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12718
        $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'
 
12719
 
 
12720
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12721
        hardcode_shlibpath_var_CXX=no
 
12722
        case $host_os in
 
12723
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12724
          *)
 
12725
            # The compiler driver will combine and reorder linker options,
 
12726
            # but understands `-z linker_flag'.
 
12727
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12728
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12729
            ;;
 
12730
        esac
 
12731
        link_all_deplibs_CXX=yes
 
12732
 
 
12733
        output_verbose_link_cmd='echo'
 
12734
 
 
12735
        # Archives containing C++ object files must be created using
 
12736
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12737
        # necessary to make sure instantiated templates are included
 
12738
        # in the archive.
 
12739
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12740
        ;;
 
12741
      gcx*)
 
12742
        # Green Hills C++ Compiler
 
12743
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12744
 
 
12745
        # The C++ compiler must be used to create the archive.
 
12746
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12747
        ;;
 
12748
      *)
 
12749
        # GNU C++ compiler with Solaris linker
 
12750
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12751
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12752
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12753
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12754
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12755
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12756
 
 
12757
            # Commands to make compiler produce verbose output that lists
 
12758
            # what "hidden" libraries, object files and flags are used when
 
12759
            # linking a shared library.
 
12760
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12761
          else
 
12762
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12763
            # platform.
 
12764
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12765
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12766
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12767
 
 
12768
            # Commands to make compiler produce verbose output that lists
 
12769
            # what "hidden" libraries, object files and flags are used when
 
12770
            # linking a shared library.
 
12771
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12772
          fi
 
12773
 
 
12774
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12775
          case $host_os in
 
12776
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12777
          *)
 
12778
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12779
            ;;
 
12780
          esac
 
12781
        fi
 
12782
        ;;
 
12783
    esac
 
12784
    ;;
 
12785
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12786
    no_undefined_flag_CXX='${wl}-z,text'
 
12787
    archive_cmds_need_lc_CXX=no
 
12788
    hardcode_shlibpath_var_CXX=no
 
12789
    runpath_var='LD_RUN_PATH'
 
12790
 
 
12791
    case $cc_basename in
 
12792
      CC*)
 
12793
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12794
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12795
        ;;
 
12796
      *)
 
12797
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12798
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12799
        ;;
 
12800
    esac
 
12801
    ;;
 
12802
  sysv5* | sco3.2v5* | sco5v6*)
 
12803
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12804
    # link with -lc, and that would cause any symbols used from libc to
 
12805
    # always be unresolved, which means just about no library would
 
12806
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12807
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12808
    # as -z defs.
 
12809
    # For security reasons, it is highly recommended that you always
 
12810
    # use absolute paths for naming shared libraries, and exclude the
 
12811
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12812
    # requires that you compile everything twice, which is a pain.
 
12813
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12814
    # non-empty value in the environment.  Most likely only useful for
 
12815
    # creating official distributions of packages.
 
12816
    # This is a hack until libtool officially supports absolute path
 
12817
    # names for shared libraries.
 
12818
    no_undefined_flag_CXX='${wl}-z,text'
 
12819
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12820
    archive_cmds_need_lc_CXX=no
 
12821
    hardcode_shlibpath_var_CXX=no
 
12822
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12823
    hardcode_libdir_separator_CXX=':'
 
12824
    link_all_deplibs_CXX=yes
 
12825
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12826
    runpath_var='LD_RUN_PATH'
 
12827
 
 
12828
    case $cc_basename in
 
12829
      CC*)
 
12830
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12831
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12832
        ;;
 
12833
      *)
 
12834
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12835
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12836
        ;;
 
12837
    esac
 
12838
    ;;
 
12839
  tandem*)
 
12840
    case $cc_basename in
 
12841
      NCC*)
 
12842
        # NonStop-UX NCC 3.20
 
12843
        # FIXME: insert proper C++ library support
 
12844
        ld_shlibs_CXX=no
 
12845
        ;;
 
12846
      *)
 
12847
        # FIXME: insert proper C++ library support
 
12848
        ld_shlibs_CXX=no
 
12849
        ;;
 
12850
    esac
 
12851
    ;;
 
12852
  vxworks*)
 
12853
    # FIXME: insert proper C++ library support
 
12854
    ld_shlibs_CXX=no
 
12855
    ;;
 
12856
  *)
 
12857
    # FIXME: insert proper C++ library support
 
12858
    ld_shlibs_CXX=no
 
12859
    ;;
 
12860
esac
 
12861
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12862
$as_echo "$ld_shlibs_CXX" >&6; }
 
12863
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12864
 
 
12865
GCC_CXX="$GXX"
 
12866
LD_CXX="$LD"
 
12867
 
 
12868
cat > conftest.$ac_ext <<EOF
 
12869
class Foo
 
12870
{
 
12871
public:
 
12872
  Foo (void) { a = 0; }
 
12873
private:
 
12874
  int a;
 
12875
};
 
12876
EOF
 
12877
 
 
12878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12879
  (eval $ac_compile) 2>&5
 
12880
  ac_status=$?
 
12881
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12882
  (exit $ac_status); }; then
 
12883
  # Parse the compiler output and extract the necessary
 
12884
  # objects, libraries and library flags.
 
12885
 
 
12886
  # Sentinel used to keep track of whether or not we are before
 
12887
  # the conftest object file.
 
12888
  pre_test_object_deps_done=no
 
12889
 
 
12890
  # The `*' in the case matches for architectures that use `case' in
 
12891
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12892
  # eval without this substitution.
 
12893
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12894
 
 
12895
  for p in `eval $output_verbose_link_cmd`; do
 
12896
    case $p in
 
12897
 
 
12898
    -L* | -R* | -l*)
 
12899
       # Some compilers place space between "-{L,R}" and the path.
 
12900
       # Remove the space.
 
12901
       if test $p = "-L" \
 
12902
          || test $p = "-R"; then
 
12903
         prev=$p
 
12904
         continue
 
12905
       else
 
12906
         prev=
 
12907
       fi
 
12908
 
 
12909
       if test "$pre_test_object_deps_done" = no; then
 
12910
         case $p in
 
12911
         -L* | -R*)
 
12912
           # Internal compiler library paths should come after those
 
12913
           # provided the user.  The postdeps already come after the
 
12914
           # user supplied libs so there is no need to process them.
 
12915
           if test -z "$compiler_lib_search_path_CXX"; then
 
12916
             compiler_lib_search_path_CXX="${prev}${p}"
 
12917
           else
 
12918
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12919
           fi
 
12920
           ;;
 
12921
         # The "-l" case would never come before the object being
 
12922
         # linked, so don't bother handling this case.
 
12923
         esac
 
12924
       else
 
12925
         if test -z "$postdeps_CXX"; then
 
12926
           postdeps_CXX="${prev}${p}"
 
12927
         else
 
12928
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12929
         fi
 
12930
       fi
 
12931
       ;;
 
12932
 
 
12933
    *.$objext)
 
12934
       # This assumes that the test object file only shows up
 
12935
       # once in the compiler output.
 
12936
       if test "$p" = "conftest.$objext"; then
 
12937
         pre_test_object_deps_done=yes
 
12938
         continue
 
12939
       fi
 
12940
 
 
12941
       if test "$pre_test_object_deps_done" = no; then
 
12942
         if test -z "$predep_objects_CXX"; then
 
12943
           predep_objects_CXX="$p"
 
12944
         else
 
12945
           predep_objects_CXX="$predep_objects_CXX $p"
 
12946
         fi
 
12947
       else
 
12948
         if test -z "$postdep_objects_CXX"; then
 
12949
           postdep_objects_CXX="$p"
 
12950
         else
 
12951
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12952
         fi
 
12953
       fi
 
12954
       ;;
 
12955
 
 
12956
    *) ;; # Ignore the rest.
 
12957
 
 
12958
    esac
 
12959
  done
 
12960
 
 
12961
  # Clean up.
 
12962
  rm -f a.out a.exe
 
12963
else
 
12964
  echo "libtool.m4: error: problem compiling CXX test program"
 
12965
fi
 
12966
 
 
12967
$rm -f confest.$objext
 
12968
 
 
12969
compiler_lib_search_dirs_CXX=
 
12970
if test -n "$compiler_lib_search_path_CXX"; then
 
12971
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12972
fi
 
12973
 
 
12974
# PORTME: override above test on systems where it is broken
 
12975
case $host_os in
 
12976
interix[3-9]*)
 
12977
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12978
  # hack all around it, let's just trust "g++" to DTRT.
 
12979
  predep_objects_CXX=
 
12980
  postdep_objects_CXX=
 
12981
  postdeps_CXX=
 
12982
  ;;
 
12983
 
 
12984
linux*)
 
12985
  case `$CC -V 2>&1 | sed 5q` in
 
12986
  *Sun\ C*)
 
12987
    # Sun C++ 5.9
 
12988
    #
 
12989
    # The more standards-conforming stlport4 library is
 
12990
    # incompatible with the Cstd library. Avoid specifying
 
12991
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12992
    # -library=stlport4 depends on it.
 
12993
    case " $CXX $CXXFLAGS " in
 
12994
    *" -library=stlport4 "*)
 
12995
      solaris_use_stlport4=yes
 
12996
      ;;
 
12997
    esac
 
12998
    if test "$solaris_use_stlport4" != yes; then
 
12999
      postdeps_CXX='-library=Cstd -library=Crun'
 
13000
    fi
 
13001
    ;;
 
13002
  esac
 
13003
  ;;
 
13004
 
 
13005
solaris*)
 
13006
  case $cc_basename in
 
13007
  CC*)
 
13008
    # The more standards-conforming stlport4 library is
 
13009
    # incompatible with the Cstd library. Avoid specifying
 
13010
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13011
    # -library=stlport4 depends on it.
 
13012
    case " $CXX $CXXFLAGS " in
 
13013
    *" -library=stlport4 "*)
 
13014
      solaris_use_stlport4=yes
 
13015
      ;;
 
13016
    esac
 
13017
 
 
13018
    # Adding this requires a known-good setup of shared libraries for
 
13019
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13020
    # archive will be linked into the output, leading to subtle bugs.
 
13021
    if test "$solaris_use_stlport4" != yes; then
 
13022
      postdeps_CXX='-library=Cstd -library=Crun'
 
13023
    fi
 
13024
    ;;
 
13025
  esac
 
13026
  ;;
 
13027
esac
 
13028
 
 
13029
case " $postdeps_CXX " in
 
13030
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13031
esac
 
13032
 
 
13033
lt_prog_compiler_wl_CXX=
 
13034
lt_prog_compiler_pic_CXX=
 
13035
lt_prog_compiler_static_CXX=
 
13036
 
 
13037
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13038
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13039
 
 
13040
  # C++ specific cases for pic, static, wl, etc.
 
13041
  if test "$GXX" = yes; then
 
13042
    lt_prog_compiler_wl_CXX='-Wl,'
 
13043
    lt_prog_compiler_static_CXX='-static'
 
13044
 
 
13045
    case $host_os in
 
13046
    aix*)
 
13047
      # All AIX code is PIC.
 
13048
      if test "$host_cpu" = ia64; then
 
13049
        # AIX 5 now supports IA64 processor
 
13050
        lt_prog_compiler_static_CXX='-Bstatic'
 
13051
      fi
 
13052
      ;;
 
13053
    amigaos*)
 
13054
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13055
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13056
      # like `-m68040'.
 
13057
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13058
      ;;
 
13059
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13060
      # PIC is the default for these OSes.
 
13061
      ;;
 
13062
    mingw* | cygwin* | os2* | pw32*)
 
13063
      # This hack is so that the source file can tell whether it is being
 
13064
      # built for inclusion in a dll (and should export symbols for example).
 
13065
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13066
      # (--disable-auto-import) libraries
 
13067
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13068
      ;;
 
13069
    darwin* | rhapsody*)
 
13070
      # PIC is the default on this platform
 
13071
      # Common symbols not allowed in MH_DYLIB files
 
13072
      lt_prog_compiler_pic_CXX='-fno-common'
 
13073
      ;;
 
13074
    *djgpp*)
 
13075
      # DJGPP does not support shared libraries at all
 
13076
      lt_prog_compiler_pic_CXX=
 
13077
      ;;
 
13078
    interix[3-9]*)
 
13079
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13080
      # Instead, we relocate shared libraries at runtime.
 
13081
      ;;
 
13082
    sysv4*MP*)
 
13083
      if test -d /usr/nec; then
 
13084
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13085
      fi
 
13086
      ;;
 
13087
    hpux*)
 
13088
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13089
      # not for PA HP-UX.
 
13090
      case $host_cpu in
 
13091
      hppa*64*|ia64*)
 
13092
        ;;
 
13093
      *)
 
13094
        lt_prog_compiler_pic_CXX='-fPIC'
 
13095
        ;;
 
13096
      esac
 
13097
      ;;
 
13098
    *)
 
13099
      lt_prog_compiler_pic_CXX='-fPIC'
 
13100
      ;;
 
13101
    esac
 
13102
  else
 
13103
    case $host_os in
 
13104
      aix[4-9]*)
 
13105
        # All AIX code is PIC.
 
13106
        if test "$host_cpu" = ia64; then
 
13107
          # AIX 5 now supports IA64 processor
 
13108
          lt_prog_compiler_static_CXX='-Bstatic'
 
13109
        else
 
13110
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13111
        fi
 
13112
        ;;
 
13113
      chorus*)
 
13114
        case $cc_basename in
 
13115
        cxch68*)
 
13116
          # Green Hills C++ Compiler
 
13117
          # _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"
 
13118
          ;;
 
13119
        esac
 
13120
        ;;
 
13121
       darwin*)
 
13122
         # PIC is the default on this platform
 
13123
         # Common symbols not allowed in MH_DYLIB files
 
13124
         case $cc_basename in
 
13125
           xlc*)
 
13126
           lt_prog_compiler_pic_CXX='-qnocommon'
 
13127
           lt_prog_compiler_wl_CXX='-Wl,'
 
13128
           ;;
 
13129
         esac
 
13130
       ;;
 
13131
      dgux*)
 
13132
        case $cc_basename in
 
13133
          ec++*)
 
13134
            lt_prog_compiler_pic_CXX='-KPIC'
 
13135
            ;;
 
13136
          ghcx*)
 
13137
            # Green Hills C++ Compiler
 
13138
            lt_prog_compiler_pic_CXX='-pic'
 
13139
            ;;
 
13140
          *)
 
13141
            ;;
 
13142
        esac
 
13143
        ;;
 
13144
      freebsd* | dragonfly*)
 
13145
        # FreeBSD uses GNU C++
 
13146
        ;;
 
13147
      hpux9* | hpux10* | hpux11*)
 
13148
        case $cc_basename in
 
13149
          CC*)
 
13150
            lt_prog_compiler_wl_CXX='-Wl,'
 
13151
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13152
            if test "$host_cpu" != ia64; then
 
13153
              lt_prog_compiler_pic_CXX='+Z'
 
13154
            fi
 
13155
            ;;
 
13156
          aCC*)
 
13157
            lt_prog_compiler_wl_CXX='-Wl,'
 
13158
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13159
            case $host_cpu in
 
13160
            hppa*64*|ia64*)
 
13161
              # +Z the default
 
13162
              ;;
 
13163
            *)
 
13164
              lt_prog_compiler_pic_CXX='+Z'
 
13165
              ;;
 
13166
            esac
 
13167
            ;;
 
13168
          *)
 
13169
            ;;
 
13170
        esac
 
13171
        ;;
 
13172
      interix*)
 
13173
        # This is c89, which is MS Visual C++ (no shared libs)
 
13174
        # Anyone wants to do a port?
 
13175
        ;;
 
13176
      irix5* | irix6* | nonstopux*)
 
13177
        case $cc_basename in
 
13178
          CC*)
 
13179
            lt_prog_compiler_wl_CXX='-Wl,'
 
13180
            lt_prog_compiler_static_CXX='-non_shared'
 
13181
            # CC pic flag -KPIC is the default.
 
13182
            ;;
 
13183
          *)
 
13184
            ;;
 
13185
        esac
 
13186
        ;;
 
13187
      linux* | k*bsd*-gnu)
 
13188
        case $cc_basename in
 
13189
          KCC*)
 
13190
            # KAI C++ Compiler
 
13191
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13192
            lt_prog_compiler_pic_CXX='-fPIC'
 
13193
            ;;
 
13194
          icpc* | ecpc*)
 
13195
            # Intel C++
 
13196
            lt_prog_compiler_wl_CXX='-Wl,'
 
13197
            lt_prog_compiler_pic_CXX='-KPIC'
 
13198
            lt_prog_compiler_static_CXX='-static'
 
13199
            ;;
 
13200
          pgCC* | pgcpp*)
 
13201
            # Portland Group C++ compiler.
 
13202
            lt_prog_compiler_wl_CXX='-Wl,'
 
13203
            lt_prog_compiler_pic_CXX='-fpic'
 
13204
            lt_prog_compiler_static_CXX='-Bstatic'
 
13205
            ;;
 
13206
          cxx*)
 
13207
            # Compaq C++
 
13208
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13209
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13210
            lt_prog_compiler_pic_CXX=
 
13211
            lt_prog_compiler_static_CXX='-non_shared'
 
13212
            ;;
 
13213
          *)
 
13214
            case `$CC -V 2>&1 | sed 5q` in
 
13215
            *Sun\ C*)
 
13216
              # Sun C++ 5.9
 
13217
              lt_prog_compiler_pic_CXX='-KPIC'
 
13218
              lt_prog_compiler_static_CXX='-Bstatic'
 
13219
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13220
              ;;
 
13221
            esac
 
13222
            ;;
 
13223
        esac
 
13224
        ;;
 
13225
      lynxos*)
 
13226
        ;;
 
13227
      m88k*)
 
13228
        ;;
 
13229
      mvs*)
 
13230
        case $cc_basename in
 
13231
          cxx*)
 
13232
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13233
            ;;
 
13234
          *)
 
13235
            ;;
 
13236
        esac
 
13237
        ;;
 
13238
      netbsd*)
 
13239
        ;;
 
13240
      osf3* | osf4* | osf5*)
 
13241
        case $cc_basename in
 
13242
          KCC*)
 
13243
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13244
            ;;
 
13245
          RCC*)
 
13246
            # Rational C++ 2.4.1
 
13247
            lt_prog_compiler_pic_CXX='-pic'
 
13248
            ;;
 
13249
          cxx*)
 
13250
            # Digital/Compaq C++
 
13251
            lt_prog_compiler_wl_CXX='-Wl,'
 
13252
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13253
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13254
            lt_prog_compiler_pic_CXX=
 
13255
            lt_prog_compiler_static_CXX='-non_shared'
 
13256
            ;;
 
13257
          *)
 
13258
            ;;
 
13259
        esac
 
13260
        ;;
 
13261
      psos*)
 
13262
        ;;
 
13263
      solaris*)
 
13264
        case $cc_basename in
 
13265
          CC*)
 
13266
            # Sun C++ 4.2, 5.x and Centerline C++
 
13267
            lt_prog_compiler_pic_CXX='-KPIC'
 
13268
            lt_prog_compiler_static_CXX='-Bstatic'
 
13269
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13270
            ;;
 
13271
          gcx*)
 
13272
            # Green Hills C++ Compiler
 
13273
            lt_prog_compiler_pic_CXX='-PIC'
 
13274
            ;;
 
13275
          *)
 
13276
            ;;
 
13277
        esac
 
13278
        ;;
 
13279
      sunos4*)
 
13280
        case $cc_basename in
 
13281
          CC*)
 
13282
            # Sun C++ 4.x
 
13283
            lt_prog_compiler_pic_CXX='-pic'
 
13284
            lt_prog_compiler_static_CXX='-Bstatic'
 
13285
            ;;
 
13286
          lcc*)
 
13287
            # Lucid
 
13288
            lt_prog_compiler_pic_CXX='-pic'
 
13289
            ;;
 
13290
          *)
 
13291
            ;;
 
13292
        esac
 
13293
        ;;
 
13294
      tandem*)
 
13295
        case $cc_basename in
 
13296
          NCC*)
 
13297
            # NonStop-UX NCC 3.20
 
13298
            lt_prog_compiler_pic_CXX='-KPIC'
 
13299
            ;;
 
13300
          *)
 
13301
            ;;
 
13302
        esac
 
13303
        ;;
 
13304
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13305
        case $cc_basename in
 
13306
          CC*)
 
13307
            lt_prog_compiler_wl_CXX='-Wl,'
 
13308
            lt_prog_compiler_pic_CXX='-KPIC'
 
13309
            lt_prog_compiler_static_CXX='-Bstatic'
 
13310
            ;;
 
13311
        esac
 
13312
        ;;
 
13313
      vxworks*)
 
13314
        ;;
 
13315
      *)
 
13316
        lt_prog_compiler_can_build_shared_CXX=no
 
13317
        ;;
 
13318
    esac
 
13319
  fi
 
13320
 
 
13321
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13322
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13323
 
 
13324
#
 
13325
# Check to make sure the PIC flag actually works.
 
13326
#
 
13327
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13328
 
 
13329
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13330
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13331
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13332
  $as_echo_n "(cached) " >&6
 
13333
else
 
13334
  lt_cv_prog_compiler_pic_works_CXX=no
 
13335
  ac_outfile=conftest.$ac_objext
 
13336
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13337
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13338
   # Insert the option either (1) after the last *FLAGS variable, or
 
13339
   # (2) before a word containing "conftest.", or (3) at the end.
 
13340
   # Note that $ac_compile itself does not contain backslashes and begins
 
13341
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13342
   # The option is referenced via a variable to avoid confusing sed.
 
13343
   lt_compile=`echo "$ac_compile" | $SED \
 
13344
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13345
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13346
   -e 's:$: $lt_compiler_flag:'`
 
13347
   (eval echo "\"\$as_me:13347: $lt_compile\"" >&5)
 
13348
   (eval "$lt_compile" 2>conftest.err)
 
13349
   ac_status=$?
 
13350
   cat conftest.err >&5
 
13351
   echo "$as_me:13351: \$? = $ac_status" >&5
 
13352
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13353
     # The compiler can only warn and ignore the option if not recognized
 
13354
     # So say no if there are warnings other than the usual output.
 
13355
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13356
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13357
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13358
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13359
     fi
 
13360
   fi
 
13361
   $rm conftest*
 
13362
 
 
13363
fi
 
13364
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13365
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13366
 
 
13367
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13368
    case $lt_prog_compiler_pic_CXX in
 
13369
     "" | " "*) ;;
 
13370
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13371
     esac
 
13372
else
 
13373
    lt_prog_compiler_pic_CXX=
 
13374
     lt_prog_compiler_can_build_shared_CXX=no
 
13375
fi
 
13376
 
 
13377
fi
 
13378
case $host_os in
 
13379
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13380
  *djgpp*)
 
13381
    lt_prog_compiler_pic_CXX=
 
13382
    ;;
 
13383
  *)
 
13384
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13385
    ;;
 
13386
esac
 
13387
 
 
13388
#
 
13389
# Check to make sure the static flag actually works.
 
13390
#
 
13391
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13392
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13393
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13394
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13395
  $as_echo_n "(cached) " >&6
 
13396
else
 
13397
  lt_cv_prog_compiler_static_works_CXX=no
 
13398
   save_LDFLAGS="$LDFLAGS"
 
13399
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13400
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13401
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13402
     # The linker can only warn and ignore the option if not recognized
 
13403
     # So say no if there are warnings
 
13404
     if test -s conftest.err; then
 
13405
       # Append any errors to the config.log.
 
13406
       cat conftest.err 1>&5
 
13407
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13408
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13409
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13410
         lt_cv_prog_compiler_static_works_CXX=yes
 
13411
       fi
 
13412
     else
 
13413
       lt_cv_prog_compiler_static_works_CXX=yes
 
13414
     fi
 
13415
   fi
 
13416
   $rm -r conftest*
 
13417
   LDFLAGS="$save_LDFLAGS"
 
13418
 
 
13419
fi
 
13420
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13421
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13422
 
 
13423
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13424
    :
 
13425
else
 
13426
    lt_prog_compiler_static_CXX=
 
13427
fi
 
13428
 
 
13429
 
 
13430
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13431
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13432
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13433
  $as_echo_n "(cached) " >&6
 
13434
else
 
13435
  lt_cv_prog_compiler_c_o_CXX=no
 
13436
   $rm -r conftest 2>/dev/null
 
13437
   mkdir conftest
 
13438
   cd conftest
 
13439
   mkdir out
 
13440
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13441
 
 
13442
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13443
   # Insert the option either (1) after the last *FLAGS variable, or
 
13444
   # (2) before a word containing "conftest.", or (3) at the end.
 
13445
   # Note that $ac_compile itself does not contain backslashes and begins
 
13446
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13447
   lt_compile=`echo "$ac_compile" | $SED \
 
13448
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13449
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13450
   -e 's:$: $lt_compiler_flag:'`
 
13451
   (eval echo "\"\$as_me:13451: $lt_compile\"" >&5)
 
13452
   (eval "$lt_compile" 2>out/conftest.err)
 
13453
   ac_status=$?
 
13454
   cat out/conftest.err >&5
 
13455
   echo "$as_me:13455: \$? = $ac_status" >&5
 
13456
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13457
   then
 
13458
     # The compiler can only warn and ignore the option if not recognized
 
13459
     # So say no if there are warnings
 
13460
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13461
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13462
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13463
       lt_cv_prog_compiler_c_o_CXX=yes
 
13464
     fi
 
13465
   fi
 
13466
   chmod u+w . 2>&5
 
13467
   $rm conftest*
 
13468
   # SGI C++ compiler will create directory out/ii_files/ for
 
13469
   # template instantiation
 
13470
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13471
   $rm out/* && rmdir out
 
13472
   cd ..
 
13473
   rmdir conftest
 
13474
   $rm conftest*
 
13475
 
 
13476
fi
 
13477
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13478
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13479
 
 
13480
 
 
13481
hard_links="nottested"
 
13482
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13483
  # do not overwrite the value of need_locks provided by the user
 
13484
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13485
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13486
  hard_links=yes
 
13487
  $rm conftest*
 
13488
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13489
  touch conftest.a
 
13490
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13491
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13492
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13493
$as_echo "$hard_links" >&6; }
 
13494
  if test "$hard_links" = no; then
 
13495
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13496
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13497
    need_locks=warn
 
13498
  fi
 
13499
else
 
13500
  need_locks=no
 
13501
fi
 
13502
 
 
13503
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13504
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13505
 
 
13506
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13507
  case $host_os in
 
13508
  aix[4-9]*)
 
13509
    # If we're using GNU nm, then we don't want the "-C" option.
 
13510
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13511
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13512
      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'
 
13513
    else
 
13514
      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'
 
13515
    fi
 
13516
    ;;
 
13517
  pw32*)
 
13518
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13519
  ;;
 
13520
  cygwin* | mingw*)
 
13521
    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'
 
13522
  ;;
 
13523
  *)
 
13524
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13525
  ;;
 
13526
  esac
 
13527
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13528
 
 
13529
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13530
$as_echo "$ld_shlibs_CXX" >&6; }
 
13531
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13532
 
 
13533
#
 
13534
# Do we need to explicitly link libc?
 
13535
#
 
13536
case "x$archive_cmds_need_lc_CXX" in
 
13537
x|xyes)
 
13538
  # Assume -lc should be added
 
13539
  archive_cmds_need_lc_CXX=yes
 
13540
 
 
13541
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13542
    case $archive_cmds_CXX in
 
13543
    *'~'*)
 
13544
      # FIXME: we may have to deal with multi-command sequences.
 
13545
      ;;
 
13546
    '$CC '*)
 
13547
      # Test whether the compiler implicitly links with -lc since on some
 
13548
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13549
      # to ld, don't add -lc before -lgcc.
 
13550
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13551
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13552
      $rm conftest*
 
13553
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13554
 
 
13555
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13556
  (eval $ac_compile) 2>&5
 
13557
  ac_status=$?
 
13558
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13559
  (exit $ac_status); } 2>conftest.err; then
 
13560
        soname=conftest
 
13561
        lib=conftest
 
13562
        libobjs=conftest.$ac_objext
 
13563
        deplibs=
 
13564
        wl=$lt_prog_compiler_wl_CXX
 
13565
        pic_flag=$lt_prog_compiler_pic_CXX
 
13566
        compiler_flags=-v
 
13567
        linker_flags=-v
 
13568
        verstring=
 
13569
        output_objdir=.
 
13570
        libname=conftest
 
13571
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13572
        allow_undefined_flag_CXX=
 
13573
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13574
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13575
  ac_status=$?
 
13576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13577
  (exit $ac_status); }
 
13578
        then
 
13579
          archive_cmds_need_lc_CXX=no
 
13580
        else
 
13581
          archive_cmds_need_lc_CXX=yes
 
13582
        fi
 
13583
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13584
      else
 
13585
        cat conftest.err 1>&5
 
13586
      fi
 
13587
      $rm conftest*
 
13588
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13589
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13590
      ;;
 
13591
    esac
 
13592
  fi
 
13593
  ;;
 
13594
esac
 
13595
 
 
13596
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13597
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13598
library_names_spec=
 
13599
libname_spec='lib$name'
 
13600
soname_spec=
 
13601
shrext_cmds=".so"
 
13602
postinstall_cmds=
 
13603
postuninstall_cmds=
 
13604
finish_cmds=
 
13605
finish_eval=
 
13606
shlibpath_var=
 
13607
shlibpath_overrides_runpath=unknown
 
13608
version_type=none
 
13609
dynamic_linker="$host_os ld.so"
 
13610
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13611
 
 
13612
need_lib_prefix=unknown
 
13613
hardcode_into_libs=no
 
13614
 
 
13615
# when you set need_version to no, make sure it does not cause -set_version
 
13616
# flags to be left without arguments
 
13617
need_version=unknown
 
13618
 
 
13619
case $host_os in
 
13620
aix3*)
 
13621
  version_type=linux
 
13622
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13623
  shlibpath_var=LIBPATH
 
13624
 
 
13625
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13626
  soname_spec='${libname}${release}${shared_ext}$major'
 
13627
  ;;
 
13628
 
 
13629
aix[4-9]*)
 
13630
  version_type=linux
 
13631
  need_lib_prefix=no
 
13632
  need_version=no
 
13633
  hardcode_into_libs=yes
 
13634
  if test "$host_cpu" = ia64; then
 
13635
    # AIX 5 supports IA64
 
13636
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13637
    shlibpath_var=LD_LIBRARY_PATH
 
13638
  else
 
13639
    # With GCC up to 2.95.x, collect2 would create an import file
 
13640
    # for dependence libraries.  The import file would start with
 
13641
    # the line `#! .'.  This would cause the generated library to
 
13642
    # depend on `.', always an invalid library.  This was fixed in
 
13643
    # development snapshots of GCC prior to 3.0.
 
13644
    case $host_os in
 
13645
      aix4 | aix4.[01] | aix4.[01].*)
 
13646
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13647
           echo ' yes '
 
13648
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13649
        :
 
13650
      else
 
13651
        can_build_shared=no
 
13652
      fi
 
13653
      ;;
 
13654
    esac
 
13655
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13656
    # soname into executable. Probably we can add versioning support to
 
13657
    # collect2, so additional links can be useful in future.
 
13658
    if test "$aix_use_runtimelinking" = yes; then
 
13659
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13660
      # instead of lib<name>.a to let people know that these are not
 
13661
      # typical AIX shared libraries.
 
13662
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13663
    else
 
13664
      # We preserve .a as extension for shared libraries through AIX4.2
 
13665
      # and later when we are not doing run time linking.
 
13666
      library_names_spec='${libname}${release}.a $libname.a'
 
13667
      soname_spec='${libname}${release}${shared_ext}$major'
 
13668
    fi
 
13669
    shlibpath_var=LIBPATH
 
13670
  fi
 
13671
  ;;
 
13672
 
 
13673
amigaos*)
 
13674
  library_names_spec='$libname.ixlibrary $libname.a'
 
13675
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13676
  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'
 
13677
  ;;
 
13678
 
 
13679
beos*)
 
13680
  library_names_spec='${libname}${shared_ext}'
 
13681
  dynamic_linker="$host_os ld.so"
 
13682
  shlibpath_var=LIBRARY_PATH
 
13683
  ;;
 
13684
 
 
13685
bsdi[45]*)
 
13686
  version_type=linux
 
13687
  need_version=no
 
13688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13689
  soname_spec='${libname}${release}${shared_ext}$major'
 
13690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13691
  shlibpath_var=LD_LIBRARY_PATH
 
13692
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13693
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13694
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13695
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13696
  # libtool to hard-code these into programs
 
13697
  ;;
 
13698
 
 
13699
cygwin* | mingw* | pw32*)
 
13700
  version_type=windows
 
13701
  shrext_cmds=".dll"
 
13702
  need_version=no
 
13703
  need_lib_prefix=no
 
13704
 
 
13705
  case $GCC,$host_os in
 
13706
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13707
    library_names_spec='$libname.dll.a'
 
13708
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13709
    postinstall_cmds='base_file=`basename \${file}`~
 
13710
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13711
      dldir=$destdir/`dirname \$dlpath`~
 
13712
      test -d \$dldir || mkdir -p \$dldir~
 
13713
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13714
      chmod a+x \$dldir/$dlname'
 
13715
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13716
      dlpath=$dir/\$dldll~
 
13717
       $rm \$dlpath'
 
13718
    shlibpath_overrides_runpath=yes
 
13719
 
 
13720
    case $host_os in
 
13721
    cygwin*)
 
13722
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13723
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13724
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13725
      ;;
 
13726
    mingw*)
 
13727
      # MinGW DLLs use traditional 'lib' prefix
 
13728
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13729
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13730
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13731
        # It is most probably a Windows format PATH printed by
 
13732
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13733
        # path with ; separators, and with drive letters. We can handle the
 
13734
        # drive letters (cygwin fileutils understands them), so leave them,
 
13735
        # especially as we might pass files found there to a mingw objdump,
 
13736
        # which wouldn't understand a cygwinified path. Ahh.
 
13737
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13738
      else
 
13739
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13740
      fi
 
13741
      ;;
 
13742
    pw32*)
 
13743
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13744
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13745
      ;;
 
13746
    esac
 
13747
    ;;
 
13748
 
 
13749
  *)
 
13750
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13751
    ;;
 
13752
  esac
 
13753
  dynamic_linker='Win32 ld.exe'
 
13754
  # FIXME: first we should search . and the directory the executable is in
 
13755
  shlibpath_var=PATH
 
13756
  ;;
 
13757
 
 
13758
darwin* | rhapsody*)
 
13759
  dynamic_linker="$host_os dyld"
 
13760
  version_type=darwin
 
13761
  need_lib_prefix=no
 
13762
  need_version=no
 
13763
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13764
  soname_spec='${libname}${release}${major}$shared_ext'
 
13765
  shlibpath_overrides_runpath=yes
 
13766
  shlibpath_var=DYLD_LIBRARY_PATH
 
13767
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13768
 
 
13769
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13770
  ;;
 
13771
 
 
13772
dgux*)
 
13773
  version_type=linux
 
13774
  need_lib_prefix=no
 
13775
  need_version=no
 
13776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13777
  soname_spec='${libname}${release}${shared_ext}$major'
 
13778
  shlibpath_var=LD_LIBRARY_PATH
 
13779
  ;;
 
13780
 
 
13781
freebsd1*)
 
13782
  dynamic_linker=no
 
13783
  ;;
 
13784
 
 
13785
freebsd* | dragonfly*)
 
13786
  # DragonFly does not have aout.  When/if they implement a new
 
13787
  # versioning mechanism, adjust this.
 
13788
  if test -x /usr/bin/objformat; then
 
13789
    objformat=`/usr/bin/objformat`
 
13790
  else
 
13791
    case $host_os in
 
13792
    freebsd[123]*) objformat=aout ;;
 
13793
    *) objformat=elf ;;
 
13794
    esac
 
13795
  fi
 
13796
  version_type=freebsd-$objformat
 
13797
  case $version_type in
 
13798
    freebsd-elf*)
 
13799
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13800
      need_version=no
 
13801
      need_lib_prefix=no
 
13802
      ;;
 
13803
    freebsd-*)
 
13804
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13805
      need_version=yes
 
13806
      ;;
 
13807
  esac
 
13808
  shlibpath_var=LD_LIBRARY_PATH
 
13809
  case $host_os in
 
13810
  freebsd2*)
 
13811
    shlibpath_overrides_runpath=yes
 
13812
    ;;
 
13813
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13814
    shlibpath_overrides_runpath=yes
 
13815
    hardcode_into_libs=yes
 
13816
    ;;
 
13817
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13818
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13819
    shlibpath_overrides_runpath=no
 
13820
    hardcode_into_libs=yes
 
13821
    ;;
 
13822
  *) # from 4.6 on, and DragonFly
 
13823
    shlibpath_overrides_runpath=yes
 
13824
    hardcode_into_libs=yes
 
13825
    ;;
 
13826
  esac
 
13827
  ;;
 
13828
 
 
13829
gnu*)
 
13830
  version_type=linux
 
13831
  need_lib_prefix=no
 
13832
  need_version=no
 
13833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13834
  soname_spec='${libname}${release}${shared_ext}$major'
 
13835
  shlibpath_var=LD_LIBRARY_PATH
 
13836
  hardcode_into_libs=yes
 
13837
  ;;
 
13838
 
 
13839
hpux9* | hpux10* | hpux11*)
 
13840
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13841
  # link against other versions.
 
13842
  version_type=sunos
 
13843
  need_lib_prefix=no
 
13844
  need_version=no
 
13845
  case $host_cpu in
 
13846
  ia64*)
 
13847
    shrext_cmds='.so'
 
13848
    hardcode_into_libs=yes
 
13849
    dynamic_linker="$host_os dld.so"
 
13850
    shlibpath_var=LD_LIBRARY_PATH
 
13851
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13852
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13853
    soname_spec='${libname}${release}${shared_ext}$major'
 
13854
    if test "X$HPUX_IA64_MODE" = X32; then
 
13855
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13856
    else
 
13857
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13858
    fi
 
13859
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13860
    ;;
 
13861
   hppa*64*)
 
13862
     shrext_cmds='.sl'
 
13863
     hardcode_into_libs=yes
 
13864
     dynamic_linker="$host_os dld.sl"
 
13865
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13866
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13867
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13868
     soname_spec='${libname}${release}${shared_ext}$major'
 
13869
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13870
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13871
     ;;
 
13872
   *)
 
13873
    shrext_cmds='.sl'
 
13874
    dynamic_linker="$host_os dld.sl"
 
13875
    shlibpath_var=SHLIB_PATH
 
13876
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13877
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13878
    soname_spec='${libname}${release}${shared_ext}$major'
 
13879
    ;;
 
13880
  esac
 
13881
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13882
  postinstall_cmds='chmod 555 $lib'
 
13883
  ;;
 
13884
 
 
13885
interix[3-9]*)
 
13886
  version_type=linux
 
13887
  need_lib_prefix=no
 
13888
  need_version=no
 
13889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13890
  soname_spec='${libname}${release}${shared_ext}$major'
 
13891
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13892
  shlibpath_var=LD_LIBRARY_PATH
 
13893
  shlibpath_overrides_runpath=no
 
13894
  hardcode_into_libs=yes
 
13895
  ;;
 
13896
 
 
13897
irix5* | irix6* | nonstopux*)
 
13898
  case $host_os in
 
13899
    nonstopux*) version_type=nonstopux ;;
 
13900
    *)
 
13901
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13902
                version_type=linux
 
13903
        else
 
13904
                version_type=irix
 
13905
        fi ;;
 
13906
  esac
 
13907
  need_lib_prefix=no
 
13908
  need_version=no
 
13909
  soname_spec='${libname}${release}${shared_ext}$major'
 
13910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13911
  case $host_os in
 
13912
  irix5* | nonstopux*)
 
13913
    libsuff= shlibsuff=
 
13914
    ;;
 
13915
  *)
 
13916
    case $LD in # libtool.m4 will add one of these switches to LD
 
13917
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13918
      libsuff= shlibsuff= libmagic=32-bit;;
 
13919
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13920
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13921
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13922
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13923
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13924
    esac
 
13925
    ;;
 
13926
  esac
 
13927
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13928
  shlibpath_overrides_runpath=no
 
13929
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13930
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13931
  hardcode_into_libs=yes
 
13932
  ;;
 
13933
 
 
13934
# No shared lib support for Linux oldld, aout, or coff.
 
13935
linux*oldld* | linux*aout* | linux*coff*)
 
13936
  dynamic_linker=no
 
13937
  ;;
 
13938
 
 
13939
# This must be Linux ELF.
 
13940
linux* | k*bsd*-gnu)
 
13941
  version_type=linux
 
13942
  need_lib_prefix=no
 
13943
  need_version=no
 
13944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13945
  soname_spec='${libname}${release}${shared_ext}$major'
 
13946
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13947
  shlibpath_var=LD_LIBRARY_PATH
 
13948
  shlibpath_overrides_runpath=no
 
13949
  # This implies no fast_install, which is unacceptable.
 
13950
  # Some rework will be needed to allow for fast_install
 
13951
  # before this can be enabled.
 
13952
  hardcode_into_libs=yes
 
13953
 
 
13954
  # Append ld.so.conf contents to the search path
 
13955
  if test -f /etc/ld.so.conf; then
 
13956
    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' ' '`
 
13957
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13958
  fi
 
13959
 
 
13960
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13961
  # powerpc, because MkLinux only supported shared libraries with the
 
13962
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13963
  # most powerpc-linux boxes support dynamic linking these days and
 
13964
  # people can always --disable-shared, the test was removed, and we
 
13965
  # assume the GNU/Linux dynamic linker is in use.
 
13966
  dynamic_linker='GNU/Linux ld.so'
 
13967
  ;;
 
13968
 
 
13969
netbsd*)
 
13970
  version_type=sunos
 
13971
  need_lib_prefix=no
 
13972
  need_version=no
 
13973
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13974
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13975
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13976
    dynamic_linker='NetBSD (a.out) ld.so'
 
13977
  else
 
13978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13979
    soname_spec='${libname}${release}${shared_ext}$major'
 
13980
    dynamic_linker='NetBSD ld.elf_so'
 
13981
  fi
 
13982
  shlibpath_var=LD_LIBRARY_PATH
 
13983
  shlibpath_overrides_runpath=yes
 
13984
  hardcode_into_libs=yes
 
13985
  ;;
 
13986
 
 
13987
newsos6)
 
13988
  version_type=linux
 
13989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13990
  shlibpath_var=LD_LIBRARY_PATH
 
13991
  shlibpath_overrides_runpath=yes
 
13992
  ;;
 
13993
 
 
13994
nto-qnx*)
 
13995
  version_type=linux
 
13996
  need_lib_prefix=no
 
13997
  need_version=no
 
13998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13999
  soname_spec='${libname}${release}${shared_ext}$major'
 
14000
  shlibpath_var=LD_LIBRARY_PATH
 
14001
  shlibpath_overrides_runpath=yes
 
14002
  ;;
 
14003
 
 
14004
openbsd*)
 
14005
  version_type=sunos
 
14006
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14007
  need_lib_prefix=no
 
14008
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14009
  case $host_os in
 
14010
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14011
    *)                         need_version=no  ;;
 
14012
  esac
 
14013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14014
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14015
  shlibpath_var=LD_LIBRARY_PATH
 
14016
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14017
    case $host_os in
 
14018
      openbsd2.[89] | openbsd2.[89].*)
 
14019
        shlibpath_overrides_runpath=no
 
14020
        ;;
 
14021
      *)
 
14022
        shlibpath_overrides_runpath=yes
 
14023
        ;;
 
14024
      esac
 
14025
  else
 
14026
    shlibpath_overrides_runpath=yes
 
14027
  fi
 
14028
  ;;
 
14029
 
 
14030
os2*)
 
14031
  libname_spec='$name'
 
14032
  shrext_cmds=".dll"
 
14033
  need_lib_prefix=no
 
14034
  library_names_spec='$libname${shared_ext} $libname.a'
 
14035
  dynamic_linker='OS/2 ld.exe'
 
14036
  shlibpath_var=LIBPATH
 
14037
  ;;
 
14038
 
 
14039
osf3* | osf4* | osf5*)
 
14040
  version_type=osf
 
14041
  need_lib_prefix=no
 
14042
  need_version=no
 
14043
  soname_spec='${libname}${release}${shared_ext}$major'
 
14044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14045
  shlibpath_var=LD_LIBRARY_PATH
 
14046
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14047
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14048
  ;;
 
14049
 
 
14050
rdos*)
 
14051
  dynamic_linker=no
 
14052
  ;;
 
14053
 
 
14054
solaris*)
 
14055
  version_type=linux
 
14056
  need_lib_prefix=no
 
14057
  need_version=no
 
14058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14059
  soname_spec='${libname}${release}${shared_ext}$major'
 
14060
  shlibpath_var=LD_LIBRARY_PATH
 
14061
  shlibpath_overrides_runpath=yes
 
14062
  hardcode_into_libs=yes
 
14063
  # ldd complains unless libraries are executable
 
14064
  postinstall_cmds='chmod +x $lib'
 
14065
  ;;
 
14066
 
 
14067
sunos4*)
 
14068
  version_type=sunos
 
14069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14070
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14071
  shlibpath_var=LD_LIBRARY_PATH
 
14072
  shlibpath_overrides_runpath=yes
 
14073
  if test "$with_gnu_ld" = yes; then
 
14074
    need_lib_prefix=no
 
14075
  fi
 
14076
  need_version=yes
 
14077
  ;;
 
14078
 
 
14079
sysv4 | sysv4.3*)
 
14080
  version_type=linux
 
14081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14082
  soname_spec='${libname}${release}${shared_ext}$major'
 
14083
  shlibpath_var=LD_LIBRARY_PATH
 
14084
  case $host_vendor in
 
14085
    sni)
 
14086
      shlibpath_overrides_runpath=no
 
14087
      need_lib_prefix=no
 
14088
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14089
      runpath_var=LD_RUN_PATH
 
14090
      ;;
 
14091
    siemens)
 
14092
      need_lib_prefix=no
 
14093
      ;;
 
14094
    motorola)
 
14095
      need_lib_prefix=no
 
14096
      need_version=no
 
14097
      shlibpath_overrides_runpath=no
 
14098
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14099
      ;;
 
14100
  esac
 
14101
  ;;
 
14102
 
 
14103
sysv4*MP*)
 
14104
  if test -d /usr/nec ;then
 
14105
    version_type=linux
 
14106
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14107
    soname_spec='$libname${shared_ext}.$major'
 
14108
    shlibpath_var=LD_LIBRARY_PATH
 
14109
  fi
 
14110
  ;;
 
14111
 
 
14112
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14113
  version_type=freebsd-elf
 
14114
  need_lib_prefix=no
 
14115
  need_version=no
 
14116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14117
  soname_spec='${libname}${release}${shared_ext}$major'
 
14118
  shlibpath_var=LD_LIBRARY_PATH
 
14119
  hardcode_into_libs=yes
 
14120
  if test "$with_gnu_ld" = yes; then
 
14121
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14122
    shlibpath_overrides_runpath=no
 
14123
  else
 
14124
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14125
    shlibpath_overrides_runpath=yes
 
14126
    case $host_os in
 
14127
      sco3.2v5*)
 
14128
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14129
        ;;
 
14130
    esac
 
14131
  fi
 
14132
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14133
  ;;
 
14134
 
 
14135
uts4*)
 
14136
  version_type=linux
 
14137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14138
  soname_spec='${libname}${release}${shared_ext}$major'
 
14139
  shlibpath_var=LD_LIBRARY_PATH
 
14140
  ;;
 
14141
 
 
14142
*)
 
14143
  dynamic_linker=no
 
14144
  ;;
 
14145
esac
 
14146
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14147
$as_echo "$dynamic_linker" >&6; }
 
14148
test "$dynamic_linker" = no && can_build_shared=no
 
14149
 
 
14150
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14151
  $as_echo_n "(cached) " >&6
 
14152
else
 
14153
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
14154
fi
 
14155
 
 
14156
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14157
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14158
  $as_echo_n "(cached) " >&6
 
14159
else
 
14160
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
14161
fi
 
14162
 
 
14163
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14164
 
 
14165
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14166
if test "$GCC" = yes; then
 
14167
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14168
fi
 
14169
 
 
14170
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14171
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14172
hardcode_action_CXX=
 
14173
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14174
   test -n "$runpath_var_CXX" || \
 
14175
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14176
 
 
14177
  # We can hardcode non-existant directories.
 
14178
  if test "$hardcode_direct_CXX" != no &&
 
14179
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14180
     # have to relink, otherwise we might link with an installed library
 
14181
     # when we should be linking with a yet-to-be-installed one
 
14182
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14183
     test "$hardcode_minus_L_CXX" != no; then
 
14184
    # Linking always hardcodes the temporary library directory.
 
14185
    hardcode_action_CXX=relink
 
14186
  else
 
14187
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14188
    hardcode_action_CXX=immediate
 
14189
  fi
 
14190
else
 
14191
  # We cannot hardcode anything, or else we can only hardcode existing
 
14192
  # directories.
 
14193
  hardcode_action_CXX=unsupported
 
14194
fi
 
14195
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14196
$as_echo "$hardcode_action_CXX" >&6; }
 
14197
 
 
14198
if test "$hardcode_action_CXX" = relink; then
 
14199
  # Fast installation is not supported
 
14200
  enable_fast_install=no
 
14201
elif test "$shlibpath_overrides_runpath" = yes ||
 
14202
     test "$enable_shared" = no; then
 
14203
  # Fast installation is not necessary
 
14204
  enable_fast_install=needless
 
14205
fi
 
14206
 
 
14207
 
 
14208
# The else clause should only fire when bootstrapping the
 
14209
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14210
# with your package, and you will get complaints that there are
 
14211
# no rules to generate ltmain.sh.
 
14212
if test -f "$ltmain"; then
 
14213
  # See if we are running on zsh, and set the options which allow our commands through
 
14214
  # without removal of \ escapes.
 
14215
  if test -n "${ZSH_VERSION+set}" ; then
 
14216
    setopt NO_GLOB_SUBST
 
14217
  fi
 
14218
  # Now quote all the things that may contain metacharacters while being
 
14219
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14220
  # variables and quote the copies for generation of the libtool script.
 
14221
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14222
    SED SHELL STRIP \
 
14223
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14224
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14225
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14226
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14227
    lt_cv_sys_global_symbol_to_c_name_address \
 
14228
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14229
    old_postinstall_cmds old_postuninstall_cmds \
 
14230
    compiler_CXX \
 
14231
    CC_CXX \
 
14232
    LD_CXX \
 
14233
    lt_prog_compiler_wl_CXX \
 
14234
    lt_prog_compiler_pic_CXX \
 
14235
    lt_prog_compiler_static_CXX \
 
14236
    lt_prog_compiler_no_builtin_flag_CXX \
 
14237
    export_dynamic_flag_spec_CXX \
 
14238
    thread_safe_flag_spec_CXX \
 
14239
    whole_archive_flag_spec_CXX \
 
14240
    enable_shared_with_static_runtimes_CXX \
 
14241
    old_archive_cmds_CXX \
 
14242
    old_archive_from_new_cmds_CXX \
 
14243
    predep_objects_CXX \
 
14244
    postdep_objects_CXX \
 
14245
    predeps_CXX \
 
14246
    postdeps_CXX \
 
14247
    compiler_lib_search_path_CXX \
 
14248
    compiler_lib_search_dirs_CXX \
 
14249
    archive_cmds_CXX \
 
14250
    archive_expsym_cmds_CXX \
 
14251
    postinstall_cmds_CXX \
 
14252
    postuninstall_cmds_CXX \
 
14253
    old_archive_from_expsyms_cmds_CXX \
 
14254
    allow_undefined_flag_CXX \
 
14255
    no_undefined_flag_CXX \
 
14256
    export_symbols_cmds_CXX \
 
14257
    hardcode_libdir_flag_spec_CXX \
 
14258
    hardcode_libdir_flag_spec_ld_CXX \
 
14259
    hardcode_libdir_separator_CXX \
 
14260
    hardcode_automatic_CXX \
 
14261
    module_cmds_CXX \
 
14262
    module_expsym_cmds_CXX \
 
14263
    lt_cv_prog_compiler_c_o_CXX \
 
14264
    fix_srcfile_path_CXX \
 
14265
    exclude_expsyms_CXX \
 
14266
    include_expsyms_CXX; do
 
14267
 
 
14268
    case $var in
 
14269
    old_archive_cmds_CXX | \
 
14270
    old_archive_from_new_cmds_CXX | \
 
14271
    archive_cmds_CXX | \
 
14272
    archive_expsym_cmds_CXX | \
 
14273
    module_cmds_CXX | \
 
14274
    module_expsym_cmds_CXX | \
 
14275
    old_archive_from_expsyms_cmds_CXX | \
 
14276
    export_symbols_cmds_CXX | \
 
14277
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14278
    postinstall_cmds | postuninstall_cmds | \
 
14279
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14280
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14281
      # Double-quote double-evaled strings.
 
14282
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14283
      ;;
 
14284
    *)
 
14285
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14286
      ;;
 
14287
    esac
 
14288
  done
 
14289
 
 
14290
  case $lt_echo in
 
14291
  *'\$0 --fallback-echo"')
 
14292
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14293
    ;;
 
14294
  esac
 
14295
 
 
14296
cfgfile="$ofile"
 
14297
 
 
14298
  cat <<__EOF__ >> "$cfgfile"
 
14299
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14300
 
 
14301
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14302
 
 
14303
# Shell to use when invoking shell scripts.
 
14304
SHELL=$lt_SHELL
 
14305
 
 
14306
# Whether or not to build shared libraries.
 
14307
build_libtool_libs=$enable_shared
 
14308
 
 
14309
# Whether or not to build static libraries.
 
14310
build_old_libs=$enable_static
 
14311
 
 
14312
# Whether or not to add -lc for building shared libraries.
 
14313
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14314
 
 
14315
# Whether or not to disallow shared libs when runtime libs are static
 
14316
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14317
 
 
14318
# Whether or not to optimize for fast installation.
 
14319
fast_install=$enable_fast_install
 
14320
 
 
14321
# The host system.
 
14322
host_alias=$host_alias
 
14323
host=$host
 
14324
host_os=$host_os
 
14325
 
 
14326
# The build system.
 
14327
build_alias=$build_alias
 
14328
build=$build
 
14329
build_os=$build_os
 
14330
 
 
14331
# An echo program that does not interpret backslashes.
 
14332
echo=$lt_echo
 
14333
 
 
14334
# The archiver.
 
14335
AR=$lt_AR
 
14336
AR_FLAGS=$lt_AR_FLAGS
 
14337
 
 
14338
# A C compiler.
 
14339
LTCC=$lt_LTCC
 
14340
 
 
14341
# LTCC compiler flags.
 
14342
LTCFLAGS=$lt_LTCFLAGS
 
14343
 
 
14344
# A language-specific compiler.
 
14345
CC=$lt_compiler_CXX
 
14346
 
 
14347
# Is the compiler the GNU C compiler?
 
14348
with_gcc=$GCC_CXX
 
14349
 
 
14350
# An ERE matcher.
 
14351
EGREP=$lt_EGREP
 
14352
 
 
14353
# The linker used to build libraries.
 
14354
LD=$lt_LD_CXX
 
14355
 
 
14356
# Whether we need hard or soft links.
 
14357
LN_S=$lt_LN_S
 
14358
 
 
14359
# A BSD-compatible nm program.
 
14360
NM=$lt_NM
 
14361
 
 
14362
# A symbol stripping program
 
14363
STRIP=$lt_STRIP
 
14364
 
 
14365
# Used to examine libraries when file_magic_cmd begins "file"
 
14366
MAGIC_CMD=$MAGIC_CMD
 
14367
 
 
14368
# Used on cygwin: DLL creation program.
 
14369
DLLTOOL="$DLLTOOL"
 
14370
 
 
14371
# Used on cygwin: object dumper.
 
14372
OBJDUMP="$OBJDUMP"
 
14373
 
 
14374
# Used on cygwin: assembler.
 
14375
AS="$AS"
 
14376
 
 
14377
# The name of the directory that contains temporary libtool files.
 
14378
objdir=$objdir
 
14379
 
 
14380
# How to create reloadable object files.
 
14381
reload_flag=$lt_reload_flag
 
14382
reload_cmds=$lt_reload_cmds
 
14383
 
 
14384
# How to pass a linker flag through the compiler.
 
14385
wl=$lt_lt_prog_compiler_wl_CXX
 
14386
 
 
14387
# Object file suffix (normally "o").
 
14388
objext="$ac_objext"
 
14389
 
 
14390
# Old archive suffix (normally "a").
 
14391
libext="$libext"
 
14392
 
 
14393
# Shared library suffix (normally ".so").
 
14394
shrext_cmds='$shrext_cmds'
 
14395
 
 
14396
# Executable file suffix (normally "").
 
14397
exeext="$exeext"
 
14398
 
 
14399
# Additional compiler flags for building library objects.
 
14400
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14401
pic_mode=$pic_mode
 
14402
 
 
14403
# What is the maximum length of a command?
 
14404
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14405
 
 
14406
# Does compiler simultaneously support -c and -o options?
 
14407
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14408
 
 
14409
# Must we lock files when doing compilation?
 
14410
need_locks=$lt_need_locks
 
14411
 
 
14412
# Do we need the lib prefix for modules?
 
14413
need_lib_prefix=$need_lib_prefix
 
14414
 
 
14415
# Do we need a version for libraries?
 
14416
need_version=$need_version
 
14417
 
 
14418
# Whether dlopen is supported.
 
14419
dlopen_support=$enable_dlopen
 
14420
 
 
14421
# Whether dlopen of programs is supported.
 
14422
dlopen_self=$enable_dlopen_self
 
14423
 
 
14424
# Whether dlopen of statically linked programs is supported.
 
14425
dlopen_self_static=$enable_dlopen_self_static
 
14426
 
 
14427
# Compiler flag to prevent dynamic linking.
 
14428
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14429
 
 
14430
# Compiler flag to turn off builtin functions.
 
14431
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14432
 
 
14433
# Compiler flag to allow reflexive dlopens.
 
14434
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14435
 
 
14436
# Compiler flag to generate shared objects directly from archives.
 
14437
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14438
 
 
14439
# Compiler flag to generate thread-safe objects.
 
14440
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14441
 
 
14442
# Library versioning type.
 
14443
version_type=$version_type
 
14444
 
 
14445
# Format of library name prefix.
 
14446
libname_spec=$lt_libname_spec
 
14447
 
 
14448
# List of archive names.  First name is the real one, the rest are links.
 
14449
# The last name is the one that the linker finds with -lNAME.
 
14450
library_names_spec=$lt_library_names_spec
 
14451
 
 
14452
# The coded name of the library, if different from the real name.
 
14453
soname_spec=$lt_soname_spec
 
14454
 
 
14455
# Commands used to build and install an old-style archive.
 
14456
RANLIB=$lt_RANLIB
 
14457
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14458
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14459
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14460
 
 
14461
# Create an old-style archive from a shared archive.
 
14462
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14463
 
 
14464
# Create a temporary old-style archive to link instead of a shared archive.
 
14465
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14466
 
 
14467
# Commands used to build and install a shared archive.
 
14468
archive_cmds=$lt_archive_cmds_CXX
 
14469
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14470
postinstall_cmds=$lt_postinstall_cmds
 
14471
postuninstall_cmds=$lt_postuninstall_cmds
 
14472
 
 
14473
# Commands used to build a loadable module (assumed same as above if empty)
 
14474
module_cmds=$lt_module_cmds_CXX
 
14475
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14476
 
 
14477
# Commands to strip libraries.
 
14478
old_striplib=$lt_old_striplib
 
14479
striplib=$lt_striplib
 
14480
 
 
14481
# Dependencies to place before the objects being linked to create a
 
14482
# shared library.
 
14483
predep_objects=$lt_predep_objects_CXX
 
14484
 
 
14485
# Dependencies to place after the objects being linked to create a
 
14486
# shared library.
 
14487
postdep_objects=$lt_postdep_objects_CXX
 
14488
 
 
14489
# Dependencies to place before the objects being linked to create a
 
14490
# shared library.
 
14491
predeps=$lt_predeps_CXX
 
14492
 
 
14493
# Dependencies to place after the objects being linked to create a
 
14494
# shared library.
 
14495
postdeps=$lt_postdeps_CXX
 
14496
 
 
14497
# The directories searched by this compiler when creating a shared
 
14498
# library
 
14499
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14500
 
 
14501
# The library search path used internally by the compiler when linking
 
14502
# a shared library.
 
14503
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14504
 
 
14505
# Method to check whether dependent libraries are shared objects.
 
14506
deplibs_check_method=$lt_deplibs_check_method
 
14507
 
 
14508
# Command to use when deplibs_check_method == file_magic.
 
14509
file_magic_cmd=$lt_file_magic_cmd
 
14510
 
 
14511
# Flag that allows shared libraries with undefined symbols to be built.
 
14512
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14513
 
 
14514
# Flag that forces no undefined symbols.
 
14515
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14516
 
 
14517
# Commands used to finish a libtool library installation in a directory.
 
14518
finish_cmds=$lt_finish_cmds
 
14519
 
 
14520
# Same as above, but a single script fragment to be evaled but not shown.
 
14521
finish_eval=$lt_finish_eval
 
14522
 
 
14523
# Take the output of nm and produce a listing of raw symbols and C names.
 
14524
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14525
 
 
14526
# Transform the output of nm in a proper C declaration
 
14527
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14528
 
 
14529
# Transform the output of nm in a C name address pair
 
14530
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14531
 
 
14532
# This is the shared library runtime path variable.
 
14533
runpath_var=$runpath_var
 
14534
 
 
14535
# This is the shared library path variable.
 
14536
shlibpath_var=$shlibpath_var
 
14537
 
 
14538
# Is shlibpath searched before the hard-coded library search path?
 
14539
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14540
 
 
14541
# How to hardcode a shared library path into an executable.
 
14542
hardcode_action=$hardcode_action_CXX
 
14543
 
 
14544
# Whether we should hardcode library paths into libraries.
 
14545
hardcode_into_libs=$hardcode_into_libs
 
14546
 
 
14547
# Flag to hardcode \$libdir into a binary during linking.
 
14548
# This must work even if \$libdir does not exist.
 
14549
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14550
 
 
14551
# If ld is used when linking, flag to hardcode \$libdir into
 
14552
# a binary during linking. This must work even if \$libdir does
 
14553
# not exist.
 
14554
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14555
 
 
14556
# Whether we need a single -rpath flag with a separated argument.
 
14557
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14558
 
 
14559
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14560
# resulting binary.
 
14561
hardcode_direct=$hardcode_direct_CXX
 
14562
 
 
14563
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14564
# resulting binary.
 
14565
hardcode_minus_L=$hardcode_minus_L_CXX
 
14566
 
 
14567
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14568
# the resulting binary.
 
14569
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14570
 
 
14571
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14572
# and all subsequent libraries and executables linked against it.
 
14573
hardcode_automatic=$hardcode_automatic_CXX
 
14574
 
 
14575
# Variables whose values should be saved in libtool wrapper scripts and
 
14576
# restored at relink time.
 
14577
variables_saved_for_relink="$variables_saved_for_relink"
 
14578
 
 
14579
# Whether libtool must link a program against all its dependency libraries.
 
14580
link_all_deplibs=$link_all_deplibs_CXX
 
14581
 
 
14582
# Compile-time system search path for libraries
 
14583
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14584
 
 
14585
# Run-time system search path for libraries
 
14586
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14587
 
 
14588
# Fix the shell variable \$srcfile for the compiler.
 
14589
fix_srcfile_path=$lt_fix_srcfile_path
 
14590
 
 
14591
# Set to yes if exported symbols are required.
 
14592
always_export_symbols=$always_export_symbols_CXX
 
14593
 
 
14594
# The commands to list exported symbols.
 
14595
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14596
 
 
14597
# The commands to extract the exported symbol list from a shared archive.
 
14598
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14599
 
 
14600
# Symbols that should not be listed in the preloaded symbols.
 
14601
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14602
 
 
14603
# Symbols that must always be exported.
 
14604
include_expsyms=$lt_include_expsyms_CXX
 
14605
 
 
14606
# ### END LIBTOOL TAG CONFIG: $tagname
 
14607
 
 
14608
__EOF__
 
14609
 
 
14610
 
 
14611
else
 
14612
  # If there is no Makefile yet, we rely on a make rule to execute
 
14613
  # `config.status --recheck' to rerun these tests and create the
 
14614
  # libtool script then.
 
14615
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14616
  if test -f "$ltmain_in"; then
 
14617
    test -f Makefile && make "$ltmain"
 
14618
  fi
 
14619
fi
 
14620
 
 
14621
 
 
14622
ac_ext=c
 
14623
ac_cpp='$CPP $CPPFLAGS'
 
14624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14627
 
 
14628
CC=$lt_save_CC
 
14629
LDCXX=$LD
 
14630
LD=$lt_save_LD
 
14631
GCC=$lt_save_GCC
 
14632
with_gnu_ldcxx=$with_gnu_ld
 
14633
with_gnu_ld=$lt_save_with_gnu_ld
 
14634
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14635
lt_cv_path_LD=$lt_save_path_LD
 
14636
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14637
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14638
 
 
14639
        else
 
14640
          tagname=""
 
14641
        fi
 
14642
        ;;
 
14643
 
 
14644
      F77)
 
14645
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14646
 
 
14647
ac_ext=f
 
14648
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14649
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14650
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14651
 
 
14652
 
 
14653
archive_cmds_need_lc_F77=no
 
14654
allow_undefined_flag_F77=
 
14655
always_export_symbols_F77=no
 
14656
archive_expsym_cmds_F77=
 
14657
export_dynamic_flag_spec_F77=
 
14658
hardcode_direct_F77=no
 
14659
hardcode_libdir_flag_spec_F77=
 
14660
hardcode_libdir_flag_spec_ld_F77=
 
14661
hardcode_libdir_separator_F77=
 
14662
hardcode_minus_L_F77=no
 
14663
hardcode_automatic_F77=no
 
14664
module_cmds_F77=
 
14665
module_expsym_cmds_F77=
 
14666
link_all_deplibs_F77=unknown
 
14667
old_archive_cmds_F77=$old_archive_cmds
 
14668
no_undefined_flag_F77=
 
14669
whole_archive_flag_spec_F77=
 
14670
enable_shared_with_static_runtimes_F77=no
 
14671
 
 
14672
# Source file extension for f77 test sources.
 
14673
ac_ext=f
 
14674
 
 
14675
# Object file extension for compiled f77 test sources.
 
14676
objext=o
 
14677
objext_F77=$objext
 
14678
 
 
14679
# Code to be used in simple compile tests
 
14680
lt_simple_compile_test_code="\
 
14681
      subroutine t
 
14682
      return
 
14683
      end
 
14684
"
 
14685
 
 
14686
# Code to be used in simple link tests
 
14687
lt_simple_link_test_code="\
 
14688
      program t
 
14689
      end
 
14690
"
 
14691
 
 
14692
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14693
 
 
14694
# If no C compiler was specified, use CC.
 
14695
LTCC=${LTCC-"$CC"}
 
14696
 
 
14697
# If no C compiler flags were specified, use CFLAGS.
 
14698
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14699
 
 
14700
# Allow CC to be a program name with arguments.
 
14701
compiler=$CC
 
14702
 
 
14703
 
 
14704
# save warnings/boilerplate of simple test code
 
14705
ac_outfile=conftest.$ac_objext
 
14706
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14707
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14708
_lt_compiler_boilerplate=`cat conftest.err`
 
14709
$rm conftest*
 
14710
 
 
14711
ac_outfile=conftest.$ac_objext
 
14712
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14713
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14714
_lt_linker_boilerplate=`cat conftest.err`
 
14715
$rm -r conftest*
 
14716
 
 
14717
 
 
14718
# Allow CC to be a program name with arguments.
 
14719
lt_save_CC="$CC"
 
14720
CC=${F77-"f77"}
 
14721
compiler=$CC
 
14722
compiler_F77=$CC
 
14723
for cc_temp in $compiler""; do
 
14724
  case $cc_temp in
 
14725
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14726
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14727
    \-*) ;;
 
14728
    *) break;;
 
14729
  esac
 
14730
done
 
14731
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14732
 
 
14733
 
 
14734
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14735
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14736
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14737
$as_echo "$can_build_shared" >&6; }
 
14738
 
 
14739
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14740
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14741
test "$can_build_shared" = "no" && enable_shared=no
 
14742
 
 
14743
# On AIX, shared libraries and static libraries use the same namespace, and
 
14744
# are all built from PIC.
 
14745
case $host_os in
 
14746
aix3*)
 
14747
  test "$enable_shared" = yes && enable_static=no
 
14748
  if test -n "$RANLIB"; then
 
14749
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14750
    postinstall_cmds='$RANLIB $lib'
 
14751
  fi
 
14752
  ;;
 
14753
aix[4-9]*)
 
14754
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14755
    test "$enable_shared" = yes && enable_static=no
 
14756
  fi
 
14757
  ;;
 
14758
esac
 
14759
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14760
$as_echo "$enable_shared" >&6; }
 
14761
 
 
14762
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14763
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14764
# Make sure either enable_shared or enable_static is yes.
 
14765
test "$enable_shared" = yes || enable_static=yes
 
14766
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14767
$as_echo "$enable_static" >&6; }
 
14768
 
 
14769
GCC_F77="$G77"
 
14770
LD_F77="$LD"
 
14771
 
 
14772
lt_prog_compiler_wl_F77=
 
14773
lt_prog_compiler_pic_F77=
 
14774
lt_prog_compiler_static_F77=
 
14775
 
 
14776
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14777
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14778
 
 
14779
  if test "$GCC" = yes; then
 
14780
    lt_prog_compiler_wl_F77='-Wl,'
 
14781
    lt_prog_compiler_static_F77='-static'
 
14782
 
 
14783
    case $host_os in
 
14784
      aix*)
 
14785
      # All AIX code is PIC.
 
14786
      if test "$host_cpu" = ia64; then
 
14787
        # AIX 5 now supports IA64 processor
 
14788
        lt_prog_compiler_static_F77='-Bstatic'
 
14789
      fi
 
14790
      ;;
 
14791
 
 
14792
    amigaos*)
 
14793
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14794
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14795
      # like `-m68040'.
 
14796
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14797
      ;;
 
14798
 
 
14799
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14800
      # PIC is the default for these OSes.
 
14801
      ;;
 
14802
 
 
14803
    mingw* | cygwin* | pw32* | os2*)
 
14804
      # This hack is so that the source file can tell whether it is being
 
14805
      # built for inclusion in a dll (and should export symbols for example).
 
14806
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14807
      # (--disable-auto-import) libraries
 
14808
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14809
      ;;
 
14810
 
 
14811
    darwin* | rhapsody*)
 
14812
      # PIC is the default on this platform
 
14813
      # Common symbols not allowed in MH_DYLIB files
 
14814
      lt_prog_compiler_pic_F77='-fno-common'
 
14815
      ;;
 
14816
 
 
14817
    interix[3-9]*)
 
14818
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14819
      # Instead, we relocate shared libraries at runtime.
 
14820
      ;;
 
14821
 
 
14822
    msdosdjgpp*)
 
14823
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14824
      # on systems that don't support them.
 
14825
      lt_prog_compiler_can_build_shared_F77=no
 
14826
      enable_shared=no
 
14827
      ;;
 
14828
 
 
14829
    sysv4*MP*)
 
14830
      if test -d /usr/nec; then
 
14831
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14832
      fi
 
14833
      ;;
 
14834
 
 
14835
    hpux*)
 
14836
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14837
      # not for PA HP-UX.
 
14838
      case $host_cpu in
 
14839
      hppa*64*|ia64*)
 
14840
        # +Z the default
 
14841
        ;;
 
14842
      *)
 
14843
        lt_prog_compiler_pic_F77='-fPIC'
 
14844
        ;;
 
14845
      esac
 
14846
      ;;
 
14847
 
 
14848
    *)
 
14849
      lt_prog_compiler_pic_F77='-fPIC'
 
14850
      ;;
 
14851
    esac
 
14852
  else
 
14853
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14854
    case $host_os in
 
14855
    aix*)
 
14856
      lt_prog_compiler_wl_F77='-Wl,'
 
14857
      if test "$host_cpu" = ia64; then
 
14858
        # AIX 5 now supports IA64 processor
 
14859
        lt_prog_compiler_static_F77='-Bstatic'
 
14860
      else
 
14861
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14862
      fi
 
14863
      ;;
 
14864
      darwin*)
 
14865
        # PIC is the default on this platform
 
14866
        # Common symbols not allowed in MH_DYLIB files
 
14867
       case $cc_basename in
 
14868
         xlc*)
 
14869
         lt_prog_compiler_pic_F77='-qnocommon'
 
14870
         lt_prog_compiler_wl_F77='-Wl,'
 
14871
         ;;
 
14872
       esac
 
14873
       ;;
 
14874
 
 
14875
    mingw* | cygwin* | pw32* | os2*)
 
14876
      # This hack is so that the source file can tell whether it is being
 
14877
      # built for inclusion in a dll (and should export symbols for example).
 
14878
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14879
      ;;
 
14880
 
 
14881
    hpux9* | hpux10* | hpux11*)
 
14882
      lt_prog_compiler_wl_F77='-Wl,'
 
14883
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14884
      # not for PA HP-UX.
 
14885
      case $host_cpu in
 
14886
      hppa*64*|ia64*)
 
14887
        # +Z the default
 
14888
        ;;
 
14889
      *)
 
14890
        lt_prog_compiler_pic_F77='+Z'
 
14891
        ;;
 
14892
      esac
 
14893
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14894
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14895
      ;;
 
14896
 
 
14897
    irix5* | irix6* | nonstopux*)
 
14898
      lt_prog_compiler_wl_F77='-Wl,'
 
14899
      # PIC (with -KPIC) is the default.
 
14900
      lt_prog_compiler_static_F77='-non_shared'
 
14901
      ;;
 
14902
 
 
14903
    newsos6)
 
14904
      lt_prog_compiler_pic_F77='-KPIC'
 
14905
      lt_prog_compiler_static_F77='-Bstatic'
 
14906
      ;;
 
14907
 
 
14908
    linux* | k*bsd*-gnu)
 
14909
      case $cc_basename in
 
14910
      icc* | ecc*)
 
14911
        lt_prog_compiler_wl_F77='-Wl,'
 
14912
        lt_prog_compiler_pic_F77='-KPIC'
 
14913
        lt_prog_compiler_static_F77='-static'
 
14914
        ;;
 
14915
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14916
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14917
        # which looks to be a dead project)
 
14918
        lt_prog_compiler_wl_F77='-Wl,'
 
14919
        lt_prog_compiler_pic_F77='-fpic'
 
14920
        lt_prog_compiler_static_F77='-Bstatic'
 
14921
        ;;
 
14922
      ccc*)
 
14923
        lt_prog_compiler_wl_F77='-Wl,'
 
14924
        # All Alpha code is PIC.
 
14925
        lt_prog_compiler_static_F77='-non_shared'
 
14926
        ;;
 
14927
      *)
 
14928
        case `$CC -V 2>&1 | sed 5q` in
 
14929
        *Sun\ C*)
 
14930
          # Sun C 5.9
 
14931
          lt_prog_compiler_pic_F77='-KPIC'
 
14932
          lt_prog_compiler_static_F77='-Bstatic'
 
14933
          lt_prog_compiler_wl_F77='-Wl,'
 
14934
          ;;
 
14935
        *Sun\ F*)
 
14936
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14937
          lt_prog_compiler_pic_F77='-KPIC'
 
14938
          lt_prog_compiler_static_F77='-Bstatic'
 
14939
          lt_prog_compiler_wl_F77=''
 
14940
          ;;
 
14941
        esac
 
14942
        ;;
 
14943
      esac
 
14944
      ;;
 
14945
 
 
14946
    osf3* | osf4* | osf5*)
 
14947
      lt_prog_compiler_wl_F77='-Wl,'
 
14948
      # All OSF/1 code is PIC.
 
14949
      lt_prog_compiler_static_F77='-non_shared'
 
14950
      ;;
 
14951
 
 
14952
    rdos*)
 
14953
      lt_prog_compiler_static_F77='-non_shared'
 
14954
      ;;
 
14955
 
 
14956
    solaris*)
 
14957
      lt_prog_compiler_pic_F77='-KPIC'
 
14958
      lt_prog_compiler_static_F77='-Bstatic'
 
14959
      case $cc_basename in
 
14960
      f77* | f90* | f95*)
 
14961
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14962
      *)
 
14963
        lt_prog_compiler_wl_F77='-Wl,';;
 
14964
      esac
 
14965
      ;;
 
14966
 
 
14967
    sunos4*)
 
14968
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14969
      lt_prog_compiler_pic_F77='-PIC'
 
14970
      lt_prog_compiler_static_F77='-Bstatic'
 
14971
      ;;
 
14972
 
 
14973
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14974
      lt_prog_compiler_wl_F77='-Wl,'
 
14975
      lt_prog_compiler_pic_F77='-KPIC'
 
14976
      lt_prog_compiler_static_F77='-Bstatic'
 
14977
      ;;
 
14978
 
 
14979
    sysv4*MP*)
 
14980
      if test -d /usr/nec ;then
 
14981
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14982
        lt_prog_compiler_static_F77='-Bstatic'
 
14983
      fi
 
14984
      ;;
 
14985
 
 
14986
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14987
      lt_prog_compiler_wl_F77='-Wl,'
 
14988
      lt_prog_compiler_pic_F77='-KPIC'
 
14989
      lt_prog_compiler_static_F77='-Bstatic'
 
14990
      ;;
 
14991
 
 
14992
    unicos*)
 
14993
      lt_prog_compiler_wl_F77='-Wl,'
 
14994
      lt_prog_compiler_can_build_shared_F77=no
 
14995
      ;;
 
14996
 
 
14997
    uts4*)
 
14998
      lt_prog_compiler_pic_F77='-pic'
 
14999
      lt_prog_compiler_static_F77='-Bstatic'
 
15000
      ;;
 
15001
 
 
15002
    *)
 
15003
      lt_prog_compiler_can_build_shared_F77=no
 
15004
      ;;
 
15005
    esac
 
15006
  fi
 
15007
 
 
15008
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15009
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
15010
 
 
15011
#
 
15012
# Check to make sure the PIC flag actually works.
 
15013
#
 
15014
if test -n "$lt_prog_compiler_pic_F77"; then
 
15015
 
 
15016
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15017
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
15018
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
15019
  $as_echo_n "(cached) " >&6
 
15020
else
 
15021
  lt_cv_prog_compiler_pic_works_F77=no
 
15022
  ac_outfile=conftest.$ac_objext
 
15023
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15024
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15025
   # Insert the option either (1) after the last *FLAGS variable, or
 
15026
   # (2) before a word containing "conftest.", or (3) at the end.
 
15027
   # Note that $ac_compile itself does not contain backslashes and begins
 
15028
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15029
   # The option is referenced via a variable to avoid confusing sed.
 
15030
   lt_compile=`echo "$ac_compile" | $SED \
 
15031
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15032
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15033
   -e 's:$: $lt_compiler_flag:'`
 
15034
   (eval echo "\"\$as_me:15034: $lt_compile\"" >&5)
 
15035
   (eval "$lt_compile" 2>conftest.err)
 
15036
   ac_status=$?
 
15037
   cat conftest.err >&5
 
15038
   echo "$as_me:15038: \$? = $ac_status" >&5
 
15039
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15040
     # The compiler can only warn and ignore the option if not recognized
 
15041
     # So say no if there are warnings other than the usual output.
 
15042
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15043
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15044
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15045
       lt_cv_prog_compiler_pic_works_F77=yes
 
15046
     fi
 
15047
   fi
 
15048
   $rm conftest*
 
15049
 
 
15050
fi
 
15051
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
15052
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
15053
 
 
15054
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
15055
    case $lt_prog_compiler_pic_F77 in
 
15056
     "" | " "*) ;;
 
15057
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15058
     esac
 
15059
else
 
15060
    lt_prog_compiler_pic_F77=
 
15061
     lt_prog_compiler_can_build_shared_F77=no
 
15062
fi
 
15063
 
 
15064
fi
 
15065
case $host_os in
 
15066
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15067
  *djgpp*)
 
15068
    lt_prog_compiler_pic_F77=
 
15069
    ;;
 
15070
  *)
 
15071
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15072
    ;;
 
15073
esac
 
15074
 
 
15075
#
 
15076
# Check to make sure the static flag actually works.
 
15077
#
 
15078
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
15079
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15080
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
15081
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
15082
  $as_echo_n "(cached) " >&6
 
15083
else
 
15084
  lt_cv_prog_compiler_static_works_F77=no
 
15085
   save_LDFLAGS="$LDFLAGS"
 
15086
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15087
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
15088
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15089
     # The linker can only warn and ignore the option if not recognized
 
15090
     # So say no if there are warnings
 
15091
     if test -s conftest.err; then
 
15092
       # Append any errors to the config.log.
 
15093
       cat conftest.err 1>&5
 
15094
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15095
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15096
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15097
         lt_cv_prog_compiler_static_works_F77=yes
 
15098
       fi
 
15099
     else
 
15100
       lt_cv_prog_compiler_static_works_F77=yes
 
15101
     fi
 
15102
   fi
 
15103
   $rm -r conftest*
 
15104
   LDFLAGS="$save_LDFLAGS"
 
15105
 
 
15106
fi
 
15107
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
15108
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
15109
 
 
15110
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
15111
    :
 
15112
else
 
15113
    lt_prog_compiler_static_F77=
 
15114
fi
 
15115
 
 
15116
 
 
15117
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15118
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
15119
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15120
  $as_echo_n "(cached) " >&6
 
15121
else
 
15122
  lt_cv_prog_compiler_c_o_F77=no
 
15123
   $rm -r conftest 2>/dev/null
 
15124
   mkdir conftest
 
15125
   cd conftest
 
15126
   mkdir out
 
15127
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15128
 
 
15129
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15130
   # Insert the option either (1) after the last *FLAGS variable, or
 
15131
   # (2) before a word containing "conftest.", or (3) at the end.
 
15132
   # Note that $ac_compile itself does not contain backslashes and begins
 
15133
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15134
   lt_compile=`echo "$ac_compile" | $SED \
 
15135
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15136
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15137
   -e 's:$: $lt_compiler_flag:'`
 
15138
   (eval echo "\"\$as_me:15138: $lt_compile\"" >&5)
 
15139
   (eval "$lt_compile" 2>out/conftest.err)
 
15140
   ac_status=$?
 
15141
   cat out/conftest.err >&5
 
15142
   echo "$as_me:15142: \$? = $ac_status" >&5
 
15143
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15144
   then
 
15145
     # The compiler can only warn and ignore the option if not recognized
 
15146
     # So say no if there are warnings
 
15147
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15148
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15149
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15150
       lt_cv_prog_compiler_c_o_F77=yes
 
15151
     fi
 
15152
   fi
 
15153
   chmod u+w . 2>&5
 
15154
   $rm conftest*
 
15155
   # SGI C++ compiler will create directory out/ii_files/ for
 
15156
   # template instantiation
 
15157
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15158
   $rm out/* && rmdir out
 
15159
   cd ..
 
15160
   rmdir conftest
 
15161
   $rm conftest*
 
15162
 
 
15163
fi
 
15164
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15165
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
15166
 
 
15167
 
 
15168
hard_links="nottested"
 
15169
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15170
  # do not overwrite the value of need_locks provided by the user
 
15171
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15172
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
15173
  hard_links=yes
 
15174
  $rm conftest*
 
15175
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15176
  touch conftest.a
 
15177
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15178
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15179
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
15180
$as_echo "$hard_links" >&6; }
 
15181
  if test "$hard_links" = no; then
 
15182
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15183
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15184
    need_locks=warn
 
15185
  fi
 
15186
else
 
15187
  need_locks=no
 
15188
fi
 
15189
 
 
15190
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15191
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
15192
 
 
15193
  runpath_var=
 
15194
  allow_undefined_flag_F77=
 
15195
  enable_shared_with_static_runtimes_F77=no
 
15196
  archive_cmds_F77=
 
15197
  archive_expsym_cmds_F77=
 
15198
  old_archive_From_new_cmds_F77=
 
15199
  old_archive_from_expsyms_cmds_F77=
 
15200
  export_dynamic_flag_spec_F77=
 
15201
  whole_archive_flag_spec_F77=
 
15202
  thread_safe_flag_spec_F77=
 
15203
  hardcode_libdir_flag_spec_F77=
 
15204
  hardcode_libdir_flag_spec_ld_F77=
 
15205
  hardcode_libdir_separator_F77=
 
15206
  hardcode_direct_F77=no
 
15207
  hardcode_minus_L_F77=no
 
15208
  hardcode_shlibpath_var_F77=unsupported
 
15209
  link_all_deplibs_F77=unknown
 
15210
  hardcode_automatic_F77=no
 
15211
  module_cmds_F77=
 
15212
  module_expsym_cmds_F77=
 
15213
  always_export_symbols_F77=no
 
15214
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15215
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15216
  # included in the symbol list
 
15217
  include_expsyms_F77=
 
15218
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15219
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15220
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15221
  # as well as any symbol that contains `d'.
 
15222
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15223
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15224
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15225
  # the symbol is explicitly referenced.  Since portable code cannot
 
15226
  # rely on this symbol name, it's probably fine to never include it in
 
15227
  # preloaded symbol tables.
 
15228
  # Exclude shared library initialization/finalization symbols.
 
15229
  extract_expsyms_cmds=
 
15230
  # Just being paranoid about ensuring that cc_basename is set.
 
15231
  for cc_temp in $compiler""; do
 
15232
  case $cc_temp in
 
15233
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15234
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15235
    \-*) ;;
 
15236
    *) break;;
 
15237
  esac
 
15238
done
 
15239
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15240
 
 
15241
  case $host_os in
 
15242
  cygwin* | mingw* | pw32*)
 
15243
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15244
    # When not using gcc, we currently assume that we are using
 
15245
    # Microsoft Visual C++.
 
15246
    if test "$GCC" != yes; then
 
15247
      with_gnu_ld=no
 
15248
    fi
 
15249
    ;;
 
15250
  interix*)
 
15251
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15252
    with_gnu_ld=yes
 
15253
    ;;
 
15254
  openbsd*)
 
15255
    with_gnu_ld=no
 
15256
    ;;
 
15257
  esac
 
15258
 
 
15259
  ld_shlibs_F77=yes
 
15260
  if test "$with_gnu_ld" = yes; then
 
15261
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15262
    wlarc='${wl}'
 
15263
 
 
15264
    # Set some defaults for GNU ld with shared library support. These
 
15265
    # are reset later if shared libraries are not supported. Putting them
 
15266
    # here allows them to be overridden if necessary.
 
15267
    runpath_var=LD_RUN_PATH
 
15268
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15269
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15270
    # ancient GNU ld didn't support --whole-archive et. al.
 
15271
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15272
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15273
      else
 
15274
        whole_archive_flag_spec_F77=
 
15275
    fi
 
15276
    supports_anon_versioning=no
 
15277
    case `$LD -v 2>/dev/null` in
 
15278
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15279
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15280
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15281
      *\ 2.11.*) ;; # other 2.11 versions
 
15282
      *) supports_anon_versioning=yes ;;
 
15283
    esac
 
15284
 
 
15285
    # See if GNU ld supports shared libraries.
 
15286
    case $host_os in
 
15287
    aix[3-9]*)
 
15288
      # On AIX/PPC, the GNU linker is very broken
 
15289
      if test "$host_cpu" != ia64; then
 
15290
        ld_shlibs_F77=no
 
15291
        cat <<EOF 1>&2
 
15292
 
 
15293
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15294
*** to be unable to reliably create shared libraries on AIX.
 
15295
*** Therefore, libtool is disabling shared libraries support.  If you
 
15296
*** really care for shared libraries, you may want to modify your PATH
 
15297
*** so that a non-GNU linker is found, and then restart.
 
15298
 
 
15299
EOF
 
15300
      fi
 
15301
      ;;
 
15302
 
 
15303
    amigaos*)
 
15304
      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)'
 
15305
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15306
      hardcode_minus_L_F77=yes
 
15307
 
 
15308
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15309
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15310
      # to version 4, is to share data among multiple programs linked
 
15311
      # with the same dynamic library.  Since this doesn't match the
 
15312
      # behavior of shared libraries on other platforms, we can't use
 
15313
      # them.
 
15314
      ld_shlibs_F77=no
 
15315
      ;;
 
15316
 
 
15317
    beos*)
 
15318
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15319
        allow_undefined_flag_F77=unsupported
 
15320
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15321
        # support --undefined.  This deserves some investigation.  FIXME
 
15322
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15323
      else
 
15324
        ld_shlibs_F77=no
 
15325
      fi
 
15326
      ;;
 
15327
 
 
15328
    cygwin* | mingw* | pw32*)
 
15329
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15330
      # as there is no search path for DLLs.
 
15331
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15332
      allow_undefined_flag_F77=unsupported
 
15333
      always_export_symbols_F77=no
 
15334
      enable_shared_with_static_runtimes_F77=yes
 
15335
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15336
 
 
15337
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15338
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15339
        # If the export-symbols file already is a .def file (1st line
 
15340
        # is EXPORTS), use it as is; otherwise, prepend...
 
15341
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15342
          cp $export_symbols $output_objdir/$soname.def;
 
15343
        else
 
15344
          echo EXPORTS > $output_objdir/$soname.def;
 
15345
          cat $export_symbols >> $output_objdir/$soname.def;
 
15346
        fi~
 
15347
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15348
      else
 
15349
        ld_shlibs_F77=no
 
15350
      fi
 
15351
      ;;
 
15352
 
 
15353
    interix[3-9]*)
 
15354
      hardcode_direct_F77=no
 
15355
      hardcode_shlibpath_var_F77=no
 
15356
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15357
      export_dynamic_flag_spec_F77='${wl}-E'
 
15358
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15359
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15360
      # default) and relocated if they conflict, which is a slow very memory
 
15361
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15362
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15363
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15364
      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'
 
15365
      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'
 
15366
      ;;
 
15367
 
 
15368
    gnu* | linux* | k*bsd*-gnu)
 
15369
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15370
        tmp_addflag=
 
15371
        case $cc_basename,$host_cpu in
 
15372
        pgcc*)                          # Portland Group C compiler
 
15373
          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'
 
15374
          tmp_addflag=' $pic_flag'
 
15375
          ;;
 
15376
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15377
          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'
 
15378
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15379
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15380
          tmp_addflag=' -i_dynamic' ;;
 
15381
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15382
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15383
        ifc* | ifort*)                  # Intel Fortran compiler
 
15384
          tmp_addflag=' -nofor_main' ;;
 
15385
        esac
 
15386
        case `$CC -V 2>&1 | sed 5q` in
 
15387
        *Sun\ C*)                       # Sun C 5.9
 
15388
          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'
 
15389
          tmp_sharedflag='-G' ;;
 
15390
        *Sun\ F*)                       # Sun Fortran 8.3
 
15391
          tmp_sharedflag='-G' ;;
 
15392
        *)
 
15393
          tmp_sharedflag='-shared' ;;
 
15394
        esac
 
15395
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15396
 
 
15397
        if test $supports_anon_versioning = yes; then
 
15398
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15399
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15400
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15401
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15402
        fi
 
15403
      else
 
15404
        ld_shlibs_F77=no
 
15405
      fi
 
15406
      ;;
 
15407
 
 
15408
    netbsd*)
 
15409
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15410
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15411
        wlarc=
 
15412
      else
 
15413
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15414
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15415
      fi
 
15416
      ;;
 
15417
 
 
15418
    solaris*)
 
15419
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15420
        ld_shlibs_F77=no
 
15421
        cat <<EOF 1>&2
 
15422
 
 
15423
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15424
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15425
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15426
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15427
*** your PATH or compiler configuration so that the native linker is
 
15428
*** used, and then restart.
 
15429
 
 
15430
EOF
 
15431
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15432
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15433
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15434
      else
 
15435
        ld_shlibs_F77=no
 
15436
      fi
 
15437
      ;;
 
15438
 
 
15439
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15440
      case `$LD -v 2>&1` in
 
15441
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15442
        ld_shlibs_F77=no
 
15443
        cat <<_LT_EOF 1>&2
 
15444
 
 
15445
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15446
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15447
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15448
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15449
*** your PATH or compiler configuration so that the native linker is
 
15450
*** used, and then restart.
 
15451
 
 
15452
_LT_EOF
 
15453
        ;;
 
15454
        *)
 
15455
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15456
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15457
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15458
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15459
          else
 
15460
            ld_shlibs_F77=no
 
15461
          fi
 
15462
        ;;
 
15463
      esac
 
15464
      ;;
 
15465
 
 
15466
    sunos4*)
 
15467
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15468
      wlarc=
 
15469
      hardcode_direct_F77=yes
 
15470
      hardcode_shlibpath_var_F77=no
 
15471
      ;;
 
15472
 
 
15473
    *)
 
15474
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15475
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15476
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15477
      else
 
15478
        ld_shlibs_F77=no
 
15479
      fi
 
15480
      ;;
 
15481
    esac
 
15482
 
 
15483
    if test "$ld_shlibs_F77" = no; then
 
15484
      runpath_var=
 
15485
      hardcode_libdir_flag_spec_F77=
 
15486
      export_dynamic_flag_spec_F77=
 
15487
      whole_archive_flag_spec_F77=
 
15488
    fi
 
15489
  else
 
15490
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15491
    case $host_os in
 
15492
    aix3*)
 
15493
      allow_undefined_flag_F77=unsupported
 
15494
      always_export_symbols_F77=yes
 
15495
      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'
 
15496
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15497
      # are no directories specified by -L.
 
15498
      hardcode_minus_L_F77=yes
 
15499
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15500
        # Neither direct hardcoding nor static linking is supported with a
 
15501
        # broken collect2.
 
15502
        hardcode_direct_F77=unsupported
 
15503
      fi
 
15504
      ;;
 
15505
 
 
15506
    aix[4-9]*)
 
15507
      if test "$host_cpu" = ia64; then
 
15508
        # On IA64, the linker does run time linking by default, so we don't
 
15509
        # have to do anything special.
 
15510
        aix_use_runtimelinking=no
 
15511
        exp_sym_flag='-Bexport'
 
15512
        no_entry_flag=""
 
15513
      else
 
15514
        # If we're using GNU nm, then we don't want the "-C" option.
 
15515
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15516
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15517
          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'
 
15518
        else
 
15519
          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'
 
15520
        fi
 
15521
        aix_use_runtimelinking=no
 
15522
 
 
15523
        # Test if we are trying to use run time linking or normal
 
15524
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15525
        # need to do runtime linking.
 
15526
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15527
          for ld_flag in $LDFLAGS; do
 
15528
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15529
            aix_use_runtimelinking=yes
 
15530
            break
 
15531
          fi
 
15532
          done
 
15533
          ;;
 
15534
        esac
 
15535
 
 
15536
        exp_sym_flag='-bexport'
 
15537
        no_entry_flag='-bnoentry'
 
15538
      fi
 
15539
 
 
15540
      # When large executables or shared objects are built, AIX ld can
 
15541
      # have problems creating the table of contents.  If linking a library
 
15542
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15543
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15544
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15545
 
 
15546
      archive_cmds_F77=''
 
15547
      hardcode_direct_F77=yes
 
15548
      hardcode_libdir_separator_F77=':'
 
15549
      link_all_deplibs_F77=yes
 
15550
 
 
15551
      if test "$GCC" = yes; then
 
15552
        case $host_os in aix4.[012]|aix4.[012].*)
 
15553
        # We only want to do this on AIX 4.2 and lower, the check
 
15554
        # below for broken collect2 doesn't work under 4.3+
 
15555
          collect2name=`${CC} -print-prog-name=collect2`
 
15556
          if test -f "$collect2name" && \
 
15557
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15558
          then
 
15559
          # We have reworked collect2
 
15560
          :
 
15561
          else
 
15562
          # We have old collect2
 
15563
          hardcode_direct_F77=unsupported
 
15564
          # It fails to find uninstalled libraries when the uninstalled
 
15565
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15566
          # to unsupported forces relinking
 
15567
          hardcode_minus_L_F77=yes
 
15568
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15569
          hardcode_libdir_separator_F77=
 
15570
          fi
 
15571
          ;;
 
15572
        esac
 
15573
        shared_flag='-shared'
 
15574
        if test "$aix_use_runtimelinking" = yes; then
 
15575
          shared_flag="$shared_flag "'${wl}-G'
 
15576
        fi
 
15577
      else
 
15578
        # not using gcc
 
15579
        if test "$host_cpu" = ia64; then
 
15580
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15581
        # chokes on -Wl,-G. The following line is correct:
 
15582
          shared_flag='-G'
 
15583
        else
 
15584
          if test "$aix_use_runtimelinking" = yes; then
 
15585
            shared_flag='${wl}-G'
 
15586
          else
 
15587
            shared_flag='${wl}-bM:SRE'
 
15588
          fi
 
15589
        fi
 
15590
      fi
 
15591
 
 
15592
      # It seems that -bexpall does not export symbols beginning with
 
15593
      # underscore (_), so it is better to generate a list of symbols to export.
 
15594
      always_export_symbols_F77=yes
 
15595
      if test "$aix_use_runtimelinking" = yes; then
 
15596
        # Warning - without using the other runtime loading flags (-brtl),
 
15597
        # -berok will link without error, but may produce a broken library.
 
15598
        allow_undefined_flag_F77='-berok'
 
15599
       # Determine the default libpath from the value encoded in an empty executable.
 
15600
       cat >conftest.$ac_ext <<_ACEOF
 
15601
      program main
 
15602
 
 
15603
      end
 
15604
_ACEOF
 
15605
rm -f conftest.$ac_objext conftest$ac_exeext
 
15606
if { (ac_try="$ac_link"
 
15607
case "(($ac_try" in
 
15608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15609
  *) ac_try_echo=$ac_try;;
 
15610
esac
 
15611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15612
$as_echo "$ac_try_echo") >&5
 
15613
  (eval "$ac_link") 2>conftest.er1
 
15614
  ac_status=$?
 
15615
  grep -v '^ *+' conftest.er1 >conftest.err
 
15616
  rm -f conftest.er1
 
15617
  cat conftest.err >&5
 
15618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15619
  (exit $ac_status); } && {
 
15620
         test -z "$ac_f77_werror_flag" ||
 
15621
         test ! -s conftest.err
 
15622
       } && test -s conftest$ac_exeext && {
 
15623
         test "$cross_compiling" = yes ||
 
15624
         $as_test_x conftest$ac_exeext
 
15625
       }; then
 
15626
 
 
15627
lt_aix_libpath_sed='
 
15628
    /Import File Strings/,/^$/ {
 
15629
        /^0/ {
 
15630
            s/^0  *\(.*\)$/\1/
 
15631
            p
 
15632
        }
 
15633
    }'
 
15634
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15635
# Check for a 64-bit object if we didn't find anything.
 
15636
if test -z "$aix_libpath"; then
 
15637
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15638
fi
 
15639
else
 
15640
  $as_echo "$as_me: failed program was:" >&5
 
15641
sed 's/^/| /' conftest.$ac_ext >&5
 
15642
 
 
15643
 
 
15644
fi
 
15645
 
 
15646
rm -rf conftest.dSYM
 
15647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15648
      conftest$ac_exeext conftest.$ac_ext
 
15649
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15650
 
 
15651
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15652
        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"
 
15653
       else
 
15654
        if test "$host_cpu" = ia64; then
 
15655
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15656
          allow_undefined_flag_F77="-z nodefs"
 
15657
          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"
 
15658
        else
 
15659
         # Determine the default libpath from the value encoded in an empty executable.
 
15660
         cat >conftest.$ac_ext <<_ACEOF
 
15661
      program main
 
15662
 
 
15663
      end
 
15664
_ACEOF
 
15665
rm -f conftest.$ac_objext conftest$ac_exeext
 
15666
if { (ac_try="$ac_link"
 
15667
case "(($ac_try" in
 
15668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15669
  *) ac_try_echo=$ac_try;;
 
15670
esac
 
15671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15672
$as_echo "$ac_try_echo") >&5
 
15673
  (eval "$ac_link") 2>conftest.er1
 
15674
  ac_status=$?
 
15675
  grep -v '^ *+' conftest.er1 >conftest.err
 
15676
  rm -f conftest.er1
 
15677
  cat conftest.err >&5
 
15678
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15679
  (exit $ac_status); } && {
 
15680
         test -z "$ac_f77_werror_flag" ||
 
15681
         test ! -s conftest.err
 
15682
       } && test -s conftest$ac_exeext && {
 
15683
         test "$cross_compiling" = yes ||
 
15684
         $as_test_x conftest$ac_exeext
 
15685
       }; then
 
15686
 
 
15687
lt_aix_libpath_sed='
 
15688
    /Import File Strings/,/^$/ {
 
15689
        /^0/ {
 
15690
            s/^0  *\(.*\)$/\1/
 
15691
            p
 
15692
        }
 
15693
    }'
 
15694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15695
# Check for a 64-bit object if we didn't find anything.
 
15696
if test -z "$aix_libpath"; then
 
15697
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15698
fi
 
15699
else
 
15700
  $as_echo "$as_me: failed program was:" >&5
 
15701
sed 's/^/| /' conftest.$ac_ext >&5
 
15702
 
 
15703
 
 
15704
fi
 
15705
 
 
15706
rm -rf conftest.dSYM
 
15707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15708
      conftest$ac_exeext conftest.$ac_ext
 
15709
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15710
 
 
15711
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15712
          # Warning - without using the other run time loading flags,
 
15713
          # -berok will link without error, but may produce a broken library.
 
15714
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15715
          allow_undefined_flag_F77=' ${wl}-berok'
 
15716
          # Exported symbols can be pulled into shared objects from archives
 
15717
          whole_archive_flag_spec_F77='$convenience'
 
15718
          archive_cmds_need_lc_F77=yes
 
15719
          # This is similar to how AIX traditionally builds its shared libraries.
 
15720
          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'
 
15721
        fi
 
15722
      fi
 
15723
      ;;
 
15724
 
 
15725
    amigaos*)
 
15726
      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)'
 
15727
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15728
      hardcode_minus_L_F77=yes
 
15729
      # see comment about different semantics on the GNU ld section
 
15730
      ld_shlibs_F77=no
 
15731
      ;;
 
15732
 
 
15733
    bsdi[45]*)
 
15734
      export_dynamic_flag_spec_F77=-rdynamic
 
15735
      ;;
 
15736
 
 
15737
    cygwin* | mingw* | pw32*)
 
15738
      # When not using gcc, we currently assume that we are using
 
15739
      # Microsoft Visual C++.
 
15740
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15741
      # no search path for DLLs.
 
15742
      hardcode_libdir_flag_spec_F77=' '
 
15743
      allow_undefined_flag_F77=unsupported
 
15744
      # Tell ltmain to make .lib files, not .a files.
 
15745
      libext=lib
 
15746
      # Tell ltmain to make .dll files, not .so files.
 
15747
      shrext_cmds=".dll"
 
15748
      # FIXME: Setting linknames here is a bad hack.
 
15749
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15750
      # The linker will automatically build a .lib file if we build a DLL.
 
15751
      old_archive_From_new_cmds_F77='true'
 
15752
      # FIXME: Should let the user specify the lib program.
 
15753
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15754
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15755
      enable_shared_with_static_runtimes_F77=yes
 
15756
      ;;
 
15757
 
 
15758
    darwin* | rhapsody*)
 
15759
      case $host_os in
 
15760
        rhapsody* | darwin1.[012])
 
15761
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15762
         ;;
 
15763
       *) # Darwin 1.3 on
 
15764
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15765
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15766
         else
 
15767
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15768
             10.[012])
 
15769
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15770
               ;;
 
15771
             10.*)
 
15772
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15773
               ;;
 
15774
           esac
 
15775
         fi
 
15776
         ;;
 
15777
      esac
 
15778
      archive_cmds_need_lc_F77=no
 
15779
      hardcode_direct_F77=no
 
15780
      hardcode_automatic_F77=yes
 
15781
      hardcode_shlibpath_var_F77=unsupported
 
15782
      whole_archive_flag_spec_F77=''
 
15783
      link_all_deplibs_F77=yes
 
15784
    if test "$GCC" = yes ; then
 
15785
        output_verbose_link_cmd='echo'
 
15786
        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}"
 
15787
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15788
        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}"
 
15789
        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}"
 
15790
    else
 
15791
      case $cc_basename in
 
15792
        xlc*)
 
15793
         output_verbose_link_cmd='echo'
 
15794
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15795
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15796
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15797
         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}'
 
15798
          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}'
 
15799
          ;;
 
15800
       *)
 
15801
         ld_shlibs_F77=no
 
15802
          ;;
 
15803
      esac
 
15804
    fi
 
15805
      ;;
 
15806
 
 
15807
    dgux*)
 
15808
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15809
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15810
      hardcode_shlibpath_var_F77=no
 
15811
      ;;
 
15812
 
 
15813
    freebsd1*)
 
15814
      ld_shlibs_F77=no
 
15815
      ;;
 
15816
 
 
15817
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15818
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15819
    # does not break anything, and helps significantly (at the cost of a little
 
15820
    # extra space).
 
15821
    freebsd2.2*)
 
15822
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15823
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15824
      hardcode_direct_F77=yes
 
15825
      hardcode_shlibpath_var_F77=no
 
15826
      ;;
 
15827
 
 
15828
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15829
    freebsd2*)
 
15830
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15831
      hardcode_direct_F77=yes
 
15832
      hardcode_minus_L_F77=yes
 
15833
      hardcode_shlibpath_var_F77=no
 
15834
      ;;
 
15835
 
 
15836
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15837
    freebsd* | dragonfly*)
 
15838
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15839
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15840
      hardcode_direct_F77=yes
 
15841
      hardcode_shlibpath_var_F77=no
 
15842
      ;;
 
15843
 
 
15844
    hpux9*)
 
15845
      if test "$GCC" = yes; then
 
15846
        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'
 
15847
      else
 
15848
        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'
 
15849
      fi
 
15850
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15851
      hardcode_libdir_separator_F77=:
 
15852
      hardcode_direct_F77=yes
 
15853
 
 
15854
      # hardcode_minus_L: Not really in the search PATH,
 
15855
      # but as the default location of the library.
 
15856
      hardcode_minus_L_F77=yes
 
15857
      export_dynamic_flag_spec_F77='${wl}-E'
 
15858
      ;;
 
15859
 
 
15860
    hpux10*)
 
15861
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15862
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15863
      else
 
15864
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15865
      fi
 
15866
      if test "$with_gnu_ld" = no; then
 
15867
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15868
        hardcode_libdir_separator_F77=:
 
15869
 
 
15870
        hardcode_direct_F77=yes
 
15871
        export_dynamic_flag_spec_F77='${wl}-E'
 
15872
 
 
15873
        # hardcode_minus_L: Not really in the search PATH,
 
15874
        # but as the default location of the library.
 
15875
        hardcode_minus_L_F77=yes
 
15876
      fi
 
15877
      ;;
 
15878
 
 
15879
    hpux11*)
 
15880
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15881
        case $host_cpu in
 
15882
        hppa*64*)
 
15883
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15884
          ;;
 
15885
        ia64*)
 
15886
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15887
          ;;
 
15888
        *)
 
15889
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15890
          ;;
 
15891
        esac
 
15892
      else
 
15893
        case $host_cpu in
 
15894
        hppa*64*)
 
15895
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15896
          ;;
 
15897
        ia64*)
 
15898
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15899
          ;;
 
15900
        *)
 
15901
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15902
          ;;
 
15903
        esac
 
15904
      fi
 
15905
      if test "$with_gnu_ld" = no; then
 
15906
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15907
        hardcode_libdir_separator_F77=:
 
15908
 
 
15909
        case $host_cpu in
 
15910
        hppa*64*|ia64*)
 
15911
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15912
          hardcode_direct_F77=no
 
15913
          hardcode_shlibpath_var_F77=no
 
15914
          ;;
 
15915
        *)
 
15916
          hardcode_direct_F77=yes
 
15917
          export_dynamic_flag_spec_F77='${wl}-E'
 
15918
 
 
15919
          # hardcode_minus_L: Not really in the search PATH,
 
15920
          # but as the default location of the library.
 
15921
          hardcode_minus_L_F77=yes
 
15922
          ;;
 
15923
        esac
 
15924
      fi
 
15925
      ;;
 
15926
 
 
15927
    irix5* | irix6* | nonstopux*)
 
15928
      if test "$GCC" = yes; then
 
15929
        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'
 
15930
      else
 
15931
        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'
 
15932
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15933
      fi
 
15934
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15935
      hardcode_libdir_separator_F77=:
 
15936
      link_all_deplibs_F77=yes
 
15937
      ;;
 
15938
 
 
15939
    netbsd*)
 
15940
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15941
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15942
      else
 
15943
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15944
      fi
 
15945
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15946
      hardcode_direct_F77=yes
 
15947
      hardcode_shlibpath_var_F77=no
 
15948
      ;;
 
15949
 
 
15950
    newsos6)
 
15951
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15952
      hardcode_direct_F77=yes
 
15953
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15954
      hardcode_libdir_separator_F77=:
 
15955
      hardcode_shlibpath_var_F77=no
 
15956
      ;;
 
15957
 
 
15958
    openbsd*)
 
15959
      if test -f /usr/libexec/ld.so; then
 
15960
        hardcode_direct_F77=yes
 
15961
        hardcode_shlibpath_var_F77=no
 
15962
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15963
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15964
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15965
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15966
          export_dynamic_flag_spec_F77='${wl}-E'
 
15967
        else
 
15968
          case $host_os in
 
15969
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15970
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15971
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15972
             ;;
 
15973
           *)
 
15974
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15975
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15976
             ;;
 
15977
          esac
 
15978
        fi
 
15979
      else
 
15980
        ld_shlibs_F77=no
 
15981
      fi
 
15982
      ;;
 
15983
 
 
15984
    os2*)
 
15985
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15986
      hardcode_minus_L_F77=yes
 
15987
      allow_undefined_flag_F77=unsupported
 
15988
      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'
 
15989
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15990
      ;;
 
15991
 
 
15992
    osf3*)
 
15993
      if test "$GCC" = yes; then
 
15994
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15995
        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'
 
15996
      else
 
15997
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15998
        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'
 
15999
      fi
 
16000
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16001
      hardcode_libdir_separator_F77=:
 
16002
      ;;
 
16003
 
 
16004
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16005
      if test "$GCC" = yes; then
 
16006
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16007
        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'
 
16008
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16009
      else
 
16010
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16011
        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'
 
16012
        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~
 
16013
        $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'
 
16014
 
 
16015
        # Both c and cxx compiler support -rpath directly
 
16016
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16017
      fi
 
16018
      hardcode_libdir_separator_F77=:
 
16019
      ;;
 
16020
 
 
16021
    solaris*)
 
16022
      no_undefined_flag_F77=' -z text'
 
16023
      if test "$GCC" = yes; then
 
16024
        wlarc='${wl}'
 
16025
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16026
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16027
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16028
      else
 
16029
        wlarc=''
 
16030
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16031
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16032
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16033
      fi
 
16034
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16035
      hardcode_shlibpath_var_F77=no
 
16036
      case $host_os in
 
16037
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16038
      *)
 
16039
        # The compiler driver will combine and reorder linker options,
 
16040
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
16041
        # but is careful enough not to reorder.
 
16042
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16043
        if test "$GCC" = yes; then
 
16044
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
16045
        else
 
16046
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
16047
        fi
 
16048
        ;;
 
16049
      esac
 
16050
      link_all_deplibs_F77=yes
 
16051
      ;;
 
16052
 
 
16053
    sunos4*)
 
16054
      if test "x$host_vendor" = xsequent; then
 
16055
        # Use $CC to link under sequent, because it throws in some extra .o
 
16056
        # files that make .init and .fini sections work.
 
16057
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16058
      else
 
16059
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16060
      fi
 
16061
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16062
      hardcode_direct_F77=yes
 
16063
      hardcode_minus_L_F77=yes
 
16064
      hardcode_shlibpath_var_F77=no
 
16065
      ;;
 
16066
 
 
16067
    sysv4)
 
16068
      case $host_vendor in
 
16069
        sni)
 
16070
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16071
          hardcode_direct_F77=yes # is this really true???
 
16072
        ;;
 
16073
        siemens)
 
16074
          ## LD is ld it makes a PLAMLIB
 
16075
          ## CC just makes a GrossModule.
 
16076
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16077
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16078
          hardcode_direct_F77=no
 
16079
        ;;
 
16080
        motorola)
 
16081
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16082
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16083
        ;;
 
16084
      esac
 
16085
      runpath_var='LD_RUN_PATH'
 
16086
      hardcode_shlibpath_var_F77=no
 
16087
      ;;
 
16088
 
 
16089
    sysv4.3*)
 
16090
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16091
      hardcode_shlibpath_var_F77=no
 
16092
      export_dynamic_flag_spec_F77='-Bexport'
 
16093
      ;;
 
16094
 
 
16095
    sysv4*MP*)
 
16096
      if test -d /usr/nec; then
 
16097
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16098
        hardcode_shlibpath_var_F77=no
 
16099
        runpath_var=LD_RUN_PATH
 
16100
        hardcode_runpath_var=yes
 
16101
        ld_shlibs_F77=yes
 
16102
      fi
 
16103
      ;;
 
16104
 
 
16105
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
16106
      no_undefined_flag_F77='${wl}-z,text'
 
16107
      archive_cmds_need_lc_F77=no
 
16108
      hardcode_shlibpath_var_F77=no
 
16109
      runpath_var='LD_RUN_PATH'
 
16110
 
 
16111
      if test "$GCC" = yes; then
 
16112
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16113
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16114
      else
 
16115
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16116
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16117
      fi
 
16118
      ;;
 
16119
 
 
16120
    sysv5* | sco3.2v5* | sco5v6*)
 
16121
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16122
      # link with -lc, and that would cause any symbols used from libc to
 
16123
      # always be unresolved, which means just about no library would
 
16124
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16125
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16126
      # as -z defs.
 
16127
      no_undefined_flag_F77='${wl}-z,text'
 
16128
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
16129
      archive_cmds_need_lc_F77=no
 
16130
      hardcode_shlibpath_var_F77=no
 
16131
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16132
      hardcode_libdir_separator_F77=':'
 
16133
      link_all_deplibs_F77=yes
 
16134
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16135
      runpath_var='LD_RUN_PATH'
 
16136
 
 
16137
      if test "$GCC" = yes; then
 
16138
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16139
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16140
      else
 
16141
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16142
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16143
      fi
 
16144
      ;;
 
16145
 
 
16146
    uts4*)
 
16147
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16148
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16149
      hardcode_shlibpath_var_F77=no
 
16150
      ;;
 
16151
 
 
16152
    *)
 
16153
      ld_shlibs_F77=no
 
16154
      ;;
 
16155
    esac
 
16156
  fi
 
16157
 
 
16158
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16159
$as_echo "$ld_shlibs_F77" >&6; }
 
16160
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16161
 
 
16162
#
 
16163
# Do we need to explicitly link libc?
 
16164
#
 
16165
case "x$archive_cmds_need_lc_F77" in
 
16166
x|xyes)
 
16167
  # Assume -lc should be added
 
16168
  archive_cmds_need_lc_F77=yes
 
16169
 
 
16170
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16171
    case $archive_cmds_F77 in
 
16172
    *'~'*)
 
16173
      # FIXME: we may have to deal with multi-command sequences.
 
16174
      ;;
 
16175
    '$CC '*)
 
16176
      # Test whether the compiler implicitly links with -lc since on some
 
16177
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16178
      # to ld, don't add -lc before -lgcc.
 
16179
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16180
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
16181
      $rm conftest*
 
16182
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16183
 
 
16184
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16185
  (eval $ac_compile) 2>&5
 
16186
  ac_status=$?
 
16187
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16188
  (exit $ac_status); } 2>conftest.err; then
 
16189
        soname=conftest
 
16190
        lib=conftest
 
16191
        libobjs=conftest.$ac_objext
 
16192
        deplibs=
 
16193
        wl=$lt_prog_compiler_wl_F77
 
16194
        pic_flag=$lt_prog_compiler_pic_F77
 
16195
        compiler_flags=-v
 
16196
        linker_flags=-v
 
16197
        verstring=
 
16198
        output_objdir=.
 
16199
        libname=conftest
 
16200
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16201
        allow_undefined_flag_F77=
 
16202
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16203
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16204
  ac_status=$?
 
16205
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16206
  (exit $ac_status); }
 
16207
        then
 
16208
          archive_cmds_need_lc_F77=no
 
16209
        else
 
16210
          archive_cmds_need_lc_F77=yes
 
16211
        fi
 
16212
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16213
      else
 
16214
        cat conftest.err 1>&5
 
16215
      fi
 
16216
      $rm conftest*
 
16217
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16218
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
16219
      ;;
 
16220
    esac
 
16221
  fi
 
16222
  ;;
 
16223
esac
 
16224
 
 
16225
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16226
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
16227
library_names_spec=
 
16228
libname_spec='lib$name'
 
16229
soname_spec=
 
16230
shrext_cmds=".so"
 
16231
postinstall_cmds=
 
16232
postuninstall_cmds=
 
16233
finish_cmds=
 
16234
finish_eval=
 
16235
shlibpath_var=
 
16236
shlibpath_overrides_runpath=unknown
 
16237
version_type=none
 
16238
dynamic_linker="$host_os ld.so"
 
16239
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16240
 
 
16241
need_lib_prefix=unknown
 
16242
hardcode_into_libs=no
 
16243
 
 
16244
# when you set need_version to no, make sure it does not cause -set_version
 
16245
# flags to be left without arguments
 
16246
need_version=unknown
 
16247
 
 
16248
case $host_os in
 
16249
aix3*)
 
16250
  version_type=linux
 
16251
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16252
  shlibpath_var=LIBPATH
 
16253
 
 
16254
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16255
  soname_spec='${libname}${release}${shared_ext}$major'
 
16256
  ;;
 
16257
 
 
16258
aix[4-9]*)
 
16259
  version_type=linux
 
16260
  need_lib_prefix=no
 
16261
  need_version=no
 
16262
  hardcode_into_libs=yes
 
16263
  if test "$host_cpu" = ia64; then
 
16264
    # AIX 5 supports IA64
 
16265
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16266
    shlibpath_var=LD_LIBRARY_PATH
 
16267
  else
 
16268
    # With GCC up to 2.95.x, collect2 would create an import file
 
16269
    # for dependence libraries.  The import file would start with
 
16270
    # the line `#! .'.  This would cause the generated library to
 
16271
    # depend on `.', always an invalid library.  This was fixed in
 
16272
    # development snapshots of GCC prior to 3.0.
 
16273
    case $host_os in
 
16274
      aix4 | aix4.[01] | aix4.[01].*)
 
16275
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16276
           echo ' yes '
 
16277
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16278
        :
 
16279
      else
 
16280
        can_build_shared=no
 
16281
      fi
 
16282
      ;;
 
16283
    esac
 
16284
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16285
    # soname into executable. Probably we can add versioning support to
 
16286
    # collect2, so additional links can be useful in future.
 
16287
    if test "$aix_use_runtimelinking" = yes; then
 
16288
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16289
      # instead of lib<name>.a to let people know that these are not
 
16290
      # typical AIX shared libraries.
 
16291
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16292
    else
 
16293
      # We preserve .a as extension for shared libraries through AIX4.2
 
16294
      # and later when we are not doing run time linking.
 
16295
      library_names_spec='${libname}${release}.a $libname.a'
 
16296
      soname_spec='${libname}${release}${shared_ext}$major'
 
16297
    fi
 
16298
    shlibpath_var=LIBPATH
 
16299
  fi
 
16300
  ;;
 
16301
 
 
16302
amigaos*)
 
16303
  library_names_spec='$libname.ixlibrary $libname.a'
 
16304
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16305
  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'
 
16306
  ;;
 
16307
 
 
16308
beos*)
 
16309
  library_names_spec='${libname}${shared_ext}'
 
16310
  dynamic_linker="$host_os ld.so"
 
16311
  shlibpath_var=LIBRARY_PATH
 
16312
  ;;
 
16313
 
 
16314
bsdi[45]*)
 
16315
  version_type=linux
 
16316
  need_version=no
 
16317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16318
  soname_spec='${libname}${release}${shared_ext}$major'
 
16319
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16320
  shlibpath_var=LD_LIBRARY_PATH
 
16321
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16322
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16323
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16324
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16325
  # libtool to hard-code these into programs
 
16326
  ;;
 
16327
 
 
16328
cygwin* | mingw* | pw32*)
 
16329
  version_type=windows
 
16330
  shrext_cmds=".dll"
 
16331
  need_version=no
 
16332
  need_lib_prefix=no
 
16333
 
 
16334
  case $GCC,$host_os in
 
16335
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16336
    library_names_spec='$libname.dll.a'
 
16337
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16338
    postinstall_cmds='base_file=`basename \${file}`~
 
16339
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16340
      dldir=$destdir/`dirname \$dlpath`~
 
16341
      test -d \$dldir || mkdir -p \$dldir~
 
16342
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16343
      chmod a+x \$dldir/$dlname'
 
16344
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16345
      dlpath=$dir/\$dldll~
 
16346
       $rm \$dlpath'
 
16347
    shlibpath_overrides_runpath=yes
 
16348
 
 
16349
    case $host_os in
 
16350
    cygwin*)
 
16351
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16352
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16353
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16354
      ;;
 
16355
    mingw*)
 
16356
      # MinGW DLLs use traditional 'lib' prefix
 
16357
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16358
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16359
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16360
        # It is most probably a Windows format PATH printed by
 
16361
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16362
        # path with ; separators, and with drive letters. We can handle the
 
16363
        # drive letters (cygwin fileutils understands them), so leave them,
 
16364
        # especially as we might pass files found there to a mingw objdump,
 
16365
        # which wouldn't understand a cygwinified path. Ahh.
 
16366
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16367
      else
 
16368
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16369
      fi
 
16370
      ;;
 
16371
    pw32*)
 
16372
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16373
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16374
      ;;
 
16375
    esac
 
16376
    ;;
 
16377
 
 
16378
  *)
 
16379
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16380
    ;;
 
16381
  esac
 
16382
  dynamic_linker='Win32 ld.exe'
 
16383
  # FIXME: first we should search . and the directory the executable is in
 
16384
  shlibpath_var=PATH
 
16385
  ;;
 
16386
 
 
16387
darwin* | rhapsody*)
 
16388
  dynamic_linker="$host_os dyld"
 
16389
  version_type=darwin
 
16390
  need_lib_prefix=no
 
16391
  need_version=no
 
16392
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16393
  soname_spec='${libname}${release}${major}$shared_ext'
 
16394
  shlibpath_overrides_runpath=yes
 
16395
  shlibpath_var=DYLD_LIBRARY_PATH
 
16396
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16397
 
 
16398
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16399
  ;;
 
16400
 
 
16401
dgux*)
 
16402
  version_type=linux
 
16403
  need_lib_prefix=no
 
16404
  need_version=no
 
16405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16406
  soname_spec='${libname}${release}${shared_ext}$major'
 
16407
  shlibpath_var=LD_LIBRARY_PATH
 
16408
  ;;
 
16409
 
 
16410
freebsd1*)
 
16411
  dynamic_linker=no
 
16412
  ;;
 
16413
 
 
16414
freebsd* | dragonfly*)
 
16415
  # DragonFly does not have aout.  When/if they implement a new
 
16416
  # versioning mechanism, adjust this.
 
16417
  if test -x /usr/bin/objformat; then
 
16418
    objformat=`/usr/bin/objformat`
 
16419
  else
 
16420
    case $host_os in
 
16421
    freebsd[123]*) objformat=aout ;;
 
16422
    *) objformat=elf ;;
 
16423
    esac
 
16424
  fi
 
16425
  version_type=freebsd-$objformat
 
16426
  case $version_type in
 
16427
    freebsd-elf*)
 
16428
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16429
      need_version=no
 
16430
      need_lib_prefix=no
 
16431
      ;;
 
16432
    freebsd-*)
 
16433
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16434
      need_version=yes
 
16435
      ;;
 
16436
  esac
 
16437
  shlibpath_var=LD_LIBRARY_PATH
 
16438
  case $host_os in
 
16439
  freebsd2*)
 
16440
    shlibpath_overrides_runpath=yes
 
16441
    ;;
 
16442
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16443
    shlibpath_overrides_runpath=yes
 
16444
    hardcode_into_libs=yes
 
16445
    ;;
 
16446
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16447
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16448
    shlibpath_overrides_runpath=no
 
16449
    hardcode_into_libs=yes
 
16450
    ;;
 
16451
  *) # from 4.6 on, and DragonFly
 
16452
    shlibpath_overrides_runpath=yes
 
16453
    hardcode_into_libs=yes
 
16454
    ;;
 
16455
  esac
 
16456
  ;;
 
16457
 
 
16458
gnu*)
 
16459
  version_type=linux
 
16460
  need_lib_prefix=no
 
16461
  need_version=no
 
16462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16463
  soname_spec='${libname}${release}${shared_ext}$major'
 
16464
  shlibpath_var=LD_LIBRARY_PATH
 
16465
  hardcode_into_libs=yes
 
16466
  ;;
 
16467
 
 
16468
hpux9* | hpux10* | hpux11*)
 
16469
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16470
  # link against other versions.
 
16471
  version_type=sunos
 
16472
  need_lib_prefix=no
 
16473
  need_version=no
 
16474
  case $host_cpu in
 
16475
  ia64*)
 
16476
    shrext_cmds='.so'
 
16477
    hardcode_into_libs=yes
 
16478
    dynamic_linker="$host_os dld.so"
 
16479
    shlibpath_var=LD_LIBRARY_PATH
 
16480
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16481
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16482
    soname_spec='${libname}${release}${shared_ext}$major'
 
16483
    if test "X$HPUX_IA64_MODE" = X32; then
 
16484
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16485
    else
 
16486
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16487
    fi
 
16488
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16489
    ;;
 
16490
   hppa*64*)
 
16491
     shrext_cmds='.sl'
 
16492
     hardcode_into_libs=yes
 
16493
     dynamic_linker="$host_os dld.sl"
 
16494
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16495
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16496
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16497
     soname_spec='${libname}${release}${shared_ext}$major'
 
16498
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16499
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16500
     ;;
 
16501
   *)
 
16502
    shrext_cmds='.sl'
 
16503
    dynamic_linker="$host_os dld.sl"
 
16504
    shlibpath_var=SHLIB_PATH
 
16505
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16506
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16507
    soname_spec='${libname}${release}${shared_ext}$major'
 
16508
    ;;
 
16509
  esac
 
16510
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16511
  postinstall_cmds='chmod 555 $lib'
 
16512
  ;;
 
16513
 
 
16514
interix[3-9]*)
 
16515
  version_type=linux
 
16516
  need_lib_prefix=no
 
16517
  need_version=no
 
16518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16519
  soname_spec='${libname}${release}${shared_ext}$major'
 
16520
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16521
  shlibpath_var=LD_LIBRARY_PATH
 
16522
  shlibpath_overrides_runpath=no
 
16523
  hardcode_into_libs=yes
 
16524
  ;;
 
16525
 
 
16526
irix5* | irix6* | nonstopux*)
 
16527
  case $host_os in
 
16528
    nonstopux*) version_type=nonstopux ;;
 
16529
    *)
 
16530
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16531
                version_type=linux
 
16532
        else
 
16533
                version_type=irix
 
16534
        fi ;;
 
16535
  esac
 
16536
  need_lib_prefix=no
 
16537
  need_version=no
 
16538
  soname_spec='${libname}${release}${shared_ext}$major'
 
16539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16540
  case $host_os in
 
16541
  irix5* | nonstopux*)
 
16542
    libsuff= shlibsuff=
 
16543
    ;;
 
16544
  *)
 
16545
    case $LD in # libtool.m4 will add one of these switches to LD
 
16546
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16547
      libsuff= shlibsuff= libmagic=32-bit;;
 
16548
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16549
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16550
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16551
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16552
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16553
    esac
 
16554
    ;;
 
16555
  esac
 
16556
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16557
  shlibpath_overrides_runpath=no
 
16558
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16559
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16560
  hardcode_into_libs=yes
 
16561
  ;;
 
16562
 
 
16563
# No shared lib support for Linux oldld, aout, or coff.
 
16564
linux*oldld* | linux*aout* | linux*coff*)
 
16565
  dynamic_linker=no
 
16566
  ;;
 
16567
 
 
16568
# This must be Linux ELF.
 
16569
linux* | k*bsd*-gnu)
 
16570
  version_type=linux
 
16571
  need_lib_prefix=no
 
16572
  need_version=no
 
16573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16574
  soname_spec='${libname}${release}${shared_ext}$major'
 
16575
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16576
  shlibpath_var=LD_LIBRARY_PATH
 
16577
  shlibpath_overrides_runpath=no
 
16578
  # This implies no fast_install, which is unacceptable.
 
16579
  # Some rework will be needed to allow for fast_install
 
16580
  # before this can be enabled.
 
16581
  hardcode_into_libs=yes
 
16582
 
 
16583
  # Append ld.so.conf contents to the search path
 
16584
  if test -f /etc/ld.so.conf; then
 
16585
    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' ' '`
 
16586
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16587
  fi
 
16588
 
 
16589
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16590
  # powerpc, because MkLinux only supported shared libraries with the
 
16591
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16592
  # most powerpc-linux boxes support dynamic linking these days and
 
16593
  # people can always --disable-shared, the test was removed, and we
 
16594
  # assume the GNU/Linux dynamic linker is in use.
 
16595
  dynamic_linker='GNU/Linux ld.so'
 
16596
  ;;
 
16597
 
 
16598
netbsd*)
 
16599
  version_type=sunos
 
16600
  need_lib_prefix=no
 
16601
  need_version=no
 
16602
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16603
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16604
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16605
    dynamic_linker='NetBSD (a.out) ld.so'
 
16606
  else
 
16607
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16608
    soname_spec='${libname}${release}${shared_ext}$major'
 
16609
    dynamic_linker='NetBSD ld.elf_so'
 
16610
  fi
 
16611
  shlibpath_var=LD_LIBRARY_PATH
 
16612
  shlibpath_overrides_runpath=yes
 
16613
  hardcode_into_libs=yes
 
16614
  ;;
 
16615
 
 
16616
newsos6)
 
16617
  version_type=linux
 
16618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16619
  shlibpath_var=LD_LIBRARY_PATH
 
16620
  shlibpath_overrides_runpath=yes
 
16621
  ;;
 
16622
 
 
16623
nto-qnx*)
 
16624
  version_type=linux
 
16625
  need_lib_prefix=no
 
16626
  need_version=no
 
16627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16628
  soname_spec='${libname}${release}${shared_ext}$major'
 
16629
  shlibpath_var=LD_LIBRARY_PATH
 
16630
  shlibpath_overrides_runpath=yes
 
16631
  ;;
 
16632
 
 
16633
openbsd*)
 
16634
  version_type=sunos
 
16635
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16636
  need_lib_prefix=no
 
16637
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16638
  case $host_os in
 
16639
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16640
    *)                         need_version=no  ;;
 
16641
  esac
 
16642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16643
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16644
  shlibpath_var=LD_LIBRARY_PATH
 
16645
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16646
    case $host_os in
 
16647
      openbsd2.[89] | openbsd2.[89].*)
 
16648
        shlibpath_overrides_runpath=no
 
16649
        ;;
 
16650
      *)
 
16651
        shlibpath_overrides_runpath=yes
 
16652
        ;;
 
16653
      esac
 
16654
  else
 
16655
    shlibpath_overrides_runpath=yes
 
16656
  fi
 
16657
  ;;
 
16658
 
 
16659
os2*)
 
16660
  libname_spec='$name'
 
16661
  shrext_cmds=".dll"
 
16662
  need_lib_prefix=no
 
16663
  library_names_spec='$libname${shared_ext} $libname.a'
 
16664
  dynamic_linker='OS/2 ld.exe'
 
16665
  shlibpath_var=LIBPATH
 
16666
  ;;
 
16667
 
 
16668
osf3* | osf4* | osf5*)
 
16669
  version_type=osf
 
16670
  need_lib_prefix=no
 
16671
  need_version=no
 
16672
  soname_spec='${libname}${release}${shared_ext}$major'
 
16673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16674
  shlibpath_var=LD_LIBRARY_PATH
 
16675
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16676
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16677
  ;;
 
16678
 
 
16679
rdos*)
 
16680
  dynamic_linker=no
 
16681
  ;;
 
16682
 
 
16683
solaris*)
 
16684
  version_type=linux
 
16685
  need_lib_prefix=no
 
16686
  need_version=no
 
16687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16688
  soname_spec='${libname}${release}${shared_ext}$major'
 
16689
  shlibpath_var=LD_LIBRARY_PATH
 
16690
  shlibpath_overrides_runpath=yes
 
16691
  hardcode_into_libs=yes
 
16692
  # ldd complains unless libraries are executable
 
16693
  postinstall_cmds='chmod +x $lib'
 
16694
  ;;
 
16695
 
 
16696
sunos4*)
 
16697
  version_type=sunos
 
16698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16699
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16700
  shlibpath_var=LD_LIBRARY_PATH
 
16701
  shlibpath_overrides_runpath=yes
 
16702
  if test "$with_gnu_ld" = yes; then
 
16703
    need_lib_prefix=no
 
16704
  fi
 
16705
  need_version=yes
 
16706
  ;;
 
16707
 
 
16708
sysv4 | sysv4.3*)
 
16709
  version_type=linux
 
16710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16711
  soname_spec='${libname}${release}${shared_ext}$major'
 
16712
  shlibpath_var=LD_LIBRARY_PATH
 
16713
  case $host_vendor in
 
16714
    sni)
 
16715
      shlibpath_overrides_runpath=no
 
16716
      need_lib_prefix=no
 
16717
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16718
      runpath_var=LD_RUN_PATH
 
16719
      ;;
 
16720
    siemens)
 
16721
      need_lib_prefix=no
 
16722
      ;;
 
16723
    motorola)
 
16724
      need_lib_prefix=no
 
16725
      need_version=no
 
16726
      shlibpath_overrides_runpath=no
 
16727
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16728
      ;;
 
16729
  esac
 
16730
  ;;
 
16731
 
 
16732
sysv4*MP*)
 
16733
  if test -d /usr/nec ;then
 
16734
    version_type=linux
 
16735
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16736
    soname_spec='$libname${shared_ext}.$major'
 
16737
    shlibpath_var=LD_LIBRARY_PATH
 
16738
  fi
 
16739
  ;;
 
16740
 
 
16741
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16742
  version_type=freebsd-elf
 
16743
  need_lib_prefix=no
 
16744
  need_version=no
 
16745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16746
  soname_spec='${libname}${release}${shared_ext}$major'
 
16747
  shlibpath_var=LD_LIBRARY_PATH
 
16748
  hardcode_into_libs=yes
 
16749
  if test "$with_gnu_ld" = yes; then
 
16750
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16751
    shlibpath_overrides_runpath=no
 
16752
  else
 
16753
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16754
    shlibpath_overrides_runpath=yes
 
16755
    case $host_os in
 
16756
      sco3.2v5*)
 
16757
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16758
        ;;
 
16759
    esac
 
16760
  fi
 
16761
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16762
  ;;
 
16763
 
 
16764
uts4*)
 
16765
  version_type=linux
 
16766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16767
  soname_spec='${libname}${release}${shared_ext}$major'
 
16768
  shlibpath_var=LD_LIBRARY_PATH
 
16769
  ;;
 
16770
 
 
16771
*)
 
16772
  dynamic_linker=no
 
16773
  ;;
 
16774
esac
 
16775
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16776
$as_echo "$dynamic_linker" >&6; }
 
16777
test "$dynamic_linker" = no && can_build_shared=no
 
16778
 
 
16779
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16780
  $as_echo_n "(cached) " >&6
 
16781
else
 
16782
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16783
fi
 
16784
 
 
16785
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16786
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16787
  $as_echo_n "(cached) " >&6
 
16788
else
 
16789
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16790
fi
 
16791
 
 
16792
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16793
 
 
16794
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16795
if test "$GCC" = yes; then
 
16796
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16797
fi
 
16798
 
 
16799
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16800
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16801
hardcode_action_F77=
 
16802
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16803
   test -n "$runpath_var_F77" || \
 
16804
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16805
 
 
16806
  # We can hardcode non-existant directories.
 
16807
  if test "$hardcode_direct_F77" != no &&
 
16808
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16809
     # have to relink, otherwise we might link with an installed library
 
16810
     # when we should be linking with a yet-to-be-installed one
 
16811
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16812
     test "$hardcode_minus_L_F77" != no; then
 
16813
    # Linking always hardcodes the temporary library directory.
 
16814
    hardcode_action_F77=relink
 
16815
  else
 
16816
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16817
    hardcode_action_F77=immediate
 
16818
  fi
 
16819
else
 
16820
  # We cannot hardcode anything, or else we can only hardcode existing
 
16821
  # directories.
 
16822
  hardcode_action_F77=unsupported
 
16823
fi
 
16824
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16825
$as_echo "$hardcode_action_F77" >&6; }
 
16826
 
 
16827
if test "$hardcode_action_F77" = relink; then
 
16828
  # Fast installation is not supported
 
16829
  enable_fast_install=no
 
16830
elif test "$shlibpath_overrides_runpath" = yes ||
 
16831
     test "$enable_shared" = no; then
 
16832
  # Fast installation is not necessary
 
16833
  enable_fast_install=needless
 
16834
fi
 
16835
 
 
16836
 
 
16837
# The else clause should only fire when bootstrapping the
 
16838
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16839
# with your package, and you will get complaints that there are
 
16840
# no rules to generate ltmain.sh.
 
16841
if test -f "$ltmain"; then
 
16842
  # See if we are running on zsh, and set the options which allow our commands through
 
16843
  # without removal of \ escapes.
 
16844
  if test -n "${ZSH_VERSION+set}" ; then
 
16845
    setopt NO_GLOB_SUBST
 
16846
  fi
 
16847
  # Now quote all the things that may contain metacharacters while being
 
16848
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16849
  # variables and quote the copies for generation of the libtool script.
 
16850
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16851
    SED SHELL STRIP \
 
16852
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16853
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16854
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16855
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16856
    lt_cv_sys_global_symbol_to_c_name_address \
 
16857
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16858
    old_postinstall_cmds old_postuninstall_cmds \
 
16859
    compiler_F77 \
 
16860
    CC_F77 \
 
16861
    LD_F77 \
 
16862
    lt_prog_compiler_wl_F77 \
 
16863
    lt_prog_compiler_pic_F77 \
 
16864
    lt_prog_compiler_static_F77 \
 
16865
    lt_prog_compiler_no_builtin_flag_F77 \
 
16866
    export_dynamic_flag_spec_F77 \
 
16867
    thread_safe_flag_spec_F77 \
 
16868
    whole_archive_flag_spec_F77 \
 
16869
    enable_shared_with_static_runtimes_F77 \
 
16870
    old_archive_cmds_F77 \
 
16871
    old_archive_from_new_cmds_F77 \
 
16872
    predep_objects_F77 \
 
16873
    postdep_objects_F77 \
 
16874
    predeps_F77 \
 
16875
    postdeps_F77 \
 
16876
    compiler_lib_search_path_F77 \
 
16877
    compiler_lib_search_dirs_F77 \
 
16878
    archive_cmds_F77 \
 
16879
    archive_expsym_cmds_F77 \
 
16880
    postinstall_cmds_F77 \
 
16881
    postuninstall_cmds_F77 \
 
16882
    old_archive_from_expsyms_cmds_F77 \
 
16883
    allow_undefined_flag_F77 \
 
16884
    no_undefined_flag_F77 \
 
16885
    export_symbols_cmds_F77 \
 
16886
    hardcode_libdir_flag_spec_F77 \
 
16887
    hardcode_libdir_flag_spec_ld_F77 \
 
16888
    hardcode_libdir_separator_F77 \
 
16889
    hardcode_automatic_F77 \
 
16890
    module_cmds_F77 \
 
16891
    module_expsym_cmds_F77 \
 
16892
    lt_cv_prog_compiler_c_o_F77 \
 
16893
    fix_srcfile_path_F77 \
 
16894
    exclude_expsyms_F77 \
 
16895
    include_expsyms_F77; do
 
16896
 
 
16897
    case $var in
 
16898
    old_archive_cmds_F77 | \
 
16899
    old_archive_from_new_cmds_F77 | \
 
16900
    archive_cmds_F77 | \
 
16901
    archive_expsym_cmds_F77 | \
 
16902
    module_cmds_F77 | \
 
16903
    module_expsym_cmds_F77 | \
 
16904
    old_archive_from_expsyms_cmds_F77 | \
 
16905
    export_symbols_cmds_F77 | \
 
16906
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16907
    postinstall_cmds | postuninstall_cmds | \
 
16908
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16909
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16910
      # Double-quote double-evaled strings.
 
16911
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16912
      ;;
 
16913
    *)
 
16914
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16915
      ;;
 
16916
    esac
 
16917
  done
 
16918
 
 
16919
  case $lt_echo in
 
16920
  *'\$0 --fallback-echo"')
 
16921
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16922
    ;;
 
16923
  esac
 
16924
 
 
16925
cfgfile="$ofile"
 
16926
 
 
16927
  cat <<__EOF__ >> "$cfgfile"
 
16928
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16929
 
 
16930
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16931
 
 
16932
# Shell to use when invoking shell scripts.
 
16933
SHELL=$lt_SHELL
 
16934
 
 
16935
# Whether or not to build shared libraries.
 
16936
build_libtool_libs=$enable_shared
 
16937
 
 
16938
# Whether or not to build static libraries.
 
16939
build_old_libs=$enable_static
 
16940
 
 
16941
# Whether or not to add -lc for building shared libraries.
 
16942
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16943
 
 
16944
# Whether or not to disallow shared libs when runtime libs are static
 
16945
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16946
 
 
16947
# Whether or not to optimize for fast installation.
 
16948
fast_install=$enable_fast_install
 
16949
 
 
16950
# The host system.
 
16951
host_alias=$host_alias
 
16952
host=$host
 
16953
host_os=$host_os
 
16954
 
 
16955
# The build system.
 
16956
build_alias=$build_alias
 
16957
build=$build
 
16958
build_os=$build_os
 
16959
 
 
16960
# An echo program that does not interpret backslashes.
 
16961
echo=$lt_echo
 
16962
 
 
16963
# The archiver.
 
16964
AR=$lt_AR
 
16965
AR_FLAGS=$lt_AR_FLAGS
 
16966
 
 
16967
# A C compiler.
 
16968
LTCC=$lt_LTCC
 
16969
 
 
16970
# LTCC compiler flags.
 
16971
LTCFLAGS=$lt_LTCFLAGS
 
16972
 
 
16973
# A language-specific compiler.
 
16974
CC=$lt_compiler_F77
 
16975
 
 
16976
# Is the compiler the GNU C compiler?
 
16977
with_gcc=$GCC_F77
 
16978
 
 
16979
# An ERE matcher.
 
16980
EGREP=$lt_EGREP
 
16981
 
 
16982
# The linker used to build libraries.
 
16983
LD=$lt_LD_F77
 
16984
 
 
16985
# Whether we need hard or soft links.
 
16986
LN_S=$lt_LN_S
 
16987
 
 
16988
# A BSD-compatible nm program.
 
16989
NM=$lt_NM
 
16990
 
 
16991
# A symbol stripping program
 
16992
STRIP=$lt_STRIP
 
16993
 
 
16994
# Used to examine libraries when file_magic_cmd begins "file"
 
16995
MAGIC_CMD=$MAGIC_CMD
 
16996
 
 
16997
# Used on cygwin: DLL creation program.
 
16998
DLLTOOL="$DLLTOOL"
 
16999
 
 
17000
# Used on cygwin: object dumper.
 
17001
OBJDUMP="$OBJDUMP"
 
17002
 
 
17003
# Used on cygwin: assembler.
 
17004
AS="$AS"
 
17005
 
 
17006
# The name of the directory that contains temporary libtool files.
 
17007
objdir=$objdir
 
17008
 
 
17009
# How to create reloadable object files.
 
17010
reload_flag=$lt_reload_flag
 
17011
reload_cmds=$lt_reload_cmds
 
17012
 
 
17013
# How to pass a linker flag through the compiler.
 
17014
wl=$lt_lt_prog_compiler_wl_F77
 
17015
 
 
17016
# Object file suffix (normally "o").
 
17017
objext="$ac_objext"
 
17018
 
 
17019
# Old archive suffix (normally "a").
 
17020
libext="$libext"
 
17021
 
 
17022
# Shared library suffix (normally ".so").
 
17023
shrext_cmds='$shrext_cmds'
 
17024
 
 
17025
# Executable file suffix (normally "").
 
17026
exeext="$exeext"
 
17027
 
 
17028
# Additional compiler flags for building library objects.
 
17029
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17030
pic_mode=$pic_mode
 
17031
 
 
17032
# What is the maximum length of a command?
 
17033
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17034
 
 
17035
# Does compiler simultaneously support -c and -o options?
 
17036
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17037
 
 
17038
# Must we lock files when doing compilation?
 
17039
need_locks=$lt_need_locks
 
17040
 
 
17041
# Do we need the lib prefix for modules?
 
17042
need_lib_prefix=$need_lib_prefix
 
17043
 
 
17044
# Do we need a version for libraries?
 
17045
need_version=$need_version
 
17046
 
 
17047
# Whether dlopen is supported.
 
17048
dlopen_support=$enable_dlopen
 
17049
 
 
17050
# Whether dlopen of programs is supported.
 
17051
dlopen_self=$enable_dlopen_self
 
17052
 
 
17053
# Whether dlopen of statically linked programs is supported.
 
17054
dlopen_self_static=$enable_dlopen_self_static
 
17055
 
 
17056
# Compiler flag to prevent dynamic linking.
 
17057
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17058
 
 
17059
# Compiler flag to turn off builtin functions.
 
17060
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17061
 
 
17062
# Compiler flag to allow reflexive dlopens.
 
17063
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17064
 
 
17065
# Compiler flag to generate shared objects directly from archives.
 
17066
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17067
 
 
17068
# Compiler flag to generate thread-safe objects.
 
17069
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17070
 
 
17071
# Library versioning type.
 
17072
version_type=$version_type
 
17073
 
 
17074
# Format of library name prefix.
 
17075
libname_spec=$lt_libname_spec
 
17076
 
 
17077
# List of archive names.  First name is the real one, the rest are links.
 
17078
# The last name is the one that the linker finds with -lNAME.
 
17079
library_names_spec=$lt_library_names_spec
 
17080
 
 
17081
# The coded name of the library, if different from the real name.
 
17082
soname_spec=$lt_soname_spec
 
17083
 
 
17084
# Commands used to build and install an old-style archive.
 
17085
RANLIB=$lt_RANLIB
 
17086
old_archive_cmds=$lt_old_archive_cmds_F77
 
17087
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17088
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17089
 
 
17090
# Create an old-style archive from a shared archive.
 
17091
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17092
 
 
17093
# Create a temporary old-style archive to link instead of a shared archive.
 
17094
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17095
 
 
17096
# Commands used to build and install a shared archive.
 
17097
archive_cmds=$lt_archive_cmds_F77
 
17098
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17099
postinstall_cmds=$lt_postinstall_cmds
 
17100
postuninstall_cmds=$lt_postuninstall_cmds
 
17101
 
 
17102
# Commands used to build a loadable module (assumed same as above if empty)
 
17103
module_cmds=$lt_module_cmds_F77
 
17104
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17105
 
 
17106
# Commands to strip libraries.
 
17107
old_striplib=$lt_old_striplib
 
17108
striplib=$lt_striplib
 
17109
 
 
17110
# Dependencies to place before the objects being linked to create a
 
17111
# shared library.
 
17112
predep_objects=$lt_predep_objects_F77
 
17113
 
 
17114
# Dependencies to place after the objects being linked to create a
 
17115
# shared library.
 
17116
postdep_objects=$lt_postdep_objects_F77
 
17117
 
 
17118
# Dependencies to place before the objects being linked to create a
 
17119
# shared library.
 
17120
predeps=$lt_predeps_F77
 
17121
 
 
17122
# Dependencies to place after the objects being linked to create a
 
17123
# shared library.
 
17124
postdeps=$lt_postdeps_F77
 
17125
 
 
17126
# The directories searched by this compiler when creating a shared
 
17127
# library
 
17128
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
17129
 
 
17130
# The library search path used internally by the compiler when linking
 
17131
# a shared library.
 
17132
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17133
 
 
17134
# Method to check whether dependent libraries are shared objects.
 
17135
deplibs_check_method=$lt_deplibs_check_method
 
17136
 
 
17137
# Command to use when deplibs_check_method == file_magic.
 
17138
file_magic_cmd=$lt_file_magic_cmd
 
17139
 
 
17140
# Flag that allows shared libraries with undefined symbols to be built.
 
17141
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17142
 
 
17143
# Flag that forces no undefined symbols.
 
17144
no_undefined_flag=$lt_no_undefined_flag_F77
 
17145
 
 
17146
# Commands used to finish a libtool library installation in a directory.
 
17147
finish_cmds=$lt_finish_cmds
 
17148
 
 
17149
# Same as above, but a single script fragment to be evaled but not shown.
 
17150
finish_eval=$lt_finish_eval
 
17151
 
 
17152
# Take the output of nm and produce a listing of raw symbols and C names.
 
17153
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17154
 
 
17155
# Transform the output of nm in a proper C declaration
 
17156
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17157
 
 
17158
# Transform the output of nm in a C name address pair
 
17159
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17160
 
 
17161
# This is the shared library runtime path variable.
 
17162
runpath_var=$runpath_var
 
17163
 
 
17164
# This is the shared library path variable.
 
17165
shlibpath_var=$shlibpath_var
 
17166
 
 
17167
# Is shlibpath searched before the hard-coded library search path?
 
17168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17169
 
 
17170
# How to hardcode a shared library path into an executable.
 
17171
hardcode_action=$hardcode_action_F77
 
17172
 
 
17173
# Whether we should hardcode library paths into libraries.
 
17174
hardcode_into_libs=$hardcode_into_libs
 
17175
 
 
17176
# Flag to hardcode \$libdir into a binary during linking.
 
17177
# This must work even if \$libdir does not exist.
 
17178
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17179
 
 
17180
# If ld is used when linking, flag to hardcode \$libdir into
 
17181
# a binary during linking. This must work even if \$libdir does
 
17182
# not exist.
 
17183
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17184
 
 
17185
# Whether we need a single -rpath flag with a separated argument.
 
17186
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17187
 
 
17188
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17189
# resulting binary.
 
17190
hardcode_direct=$hardcode_direct_F77
 
17191
 
 
17192
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17193
# resulting binary.
 
17194
hardcode_minus_L=$hardcode_minus_L_F77
 
17195
 
 
17196
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17197
# the resulting binary.
 
17198
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17199
 
 
17200
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17201
# and all subsequent libraries and executables linked against it.
 
17202
hardcode_automatic=$hardcode_automatic_F77
 
17203
 
 
17204
# Variables whose values should be saved in libtool wrapper scripts and
 
17205
# restored at relink time.
 
17206
variables_saved_for_relink="$variables_saved_for_relink"
 
17207
 
 
17208
# Whether libtool must link a program against all its dependency libraries.
 
17209
link_all_deplibs=$link_all_deplibs_F77
 
17210
 
 
17211
# Compile-time system search path for libraries
 
17212
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17213
 
 
17214
# Run-time system search path for libraries
 
17215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17216
 
 
17217
# Fix the shell variable \$srcfile for the compiler.
 
17218
fix_srcfile_path=$lt_fix_srcfile_path
 
17219
 
 
17220
# Set to yes if exported symbols are required.
 
17221
always_export_symbols=$always_export_symbols_F77
 
17222
 
 
17223
# The commands to list exported symbols.
 
17224
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17225
 
 
17226
# The commands to extract the exported symbol list from a shared archive.
 
17227
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17228
 
 
17229
# Symbols that should not be listed in the preloaded symbols.
 
17230
exclude_expsyms=$lt_exclude_expsyms_F77
 
17231
 
 
17232
# Symbols that must always be exported.
 
17233
include_expsyms=$lt_include_expsyms_F77
 
17234
 
 
17235
# ### END LIBTOOL TAG CONFIG: $tagname
 
17236
 
 
17237
__EOF__
 
17238
 
 
17239
 
 
17240
else
 
17241
  # If there is no Makefile yet, we rely on a make rule to execute
 
17242
  # `config.status --recheck' to rerun these tests and create the
 
17243
  # libtool script then.
 
17244
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17245
  if test -f "$ltmain_in"; then
 
17246
    test -f Makefile && make "$ltmain"
 
17247
  fi
 
17248
fi
 
17249
 
 
17250
 
 
17251
ac_ext=c
 
17252
ac_cpp='$CPP $CPPFLAGS'
 
17253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17256
 
 
17257
CC="$lt_save_CC"
 
17258
 
 
17259
        else
 
17260
          tagname=""
 
17261
        fi
 
17262
        ;;
 
17263
 
 
17264
      GCJ)
 
17265
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17266
 
 
17267
 
 
17268
# Source file extension for Java test sources.
 
17269
ac_ext=java
 
17270
 
 
17271
# Object file extension for compiled Java test sources.
 
17272
objext=o
 
17273
objext_GCJ=$objext
 
17274
 
 
17275
# Code to be used in simple compile tests
 
17276
lt_simple_compile_test_code="class foo {}"
 
17277
 
 
17278
# Code to be used in simple link tests
 
17279
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17280
 
 
17281
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17282
 
 
17283
# If no C compiler was specified, use CC.
 
17284
LTCC=${LTCC-"$CC"}
 
17285
 
 
17286
# If no C compiler flags were specified, use CFLAGS.
 
17287
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17288
 
 
17289
# Allow CC to be a program name with arguments.
 
17290
compiler=$CC
 
17291
 
 
17292
 
 
17293
# save warnings/boilerplate of simple test code
 
17294
ac_outfile=conftest.$ac_objext
 
17295
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17296
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17297
_lt_compiler_boilerplate=`cat conftest.err`
 
17298
$rm conftest*
 
17299
 
 
17300
ac_outfile=conftest.$ac_objext
 
17301
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17302
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17303
_lt_linker_boilerplate=`cat conftest.err`
 
17304
$rm -r conftest*
 
17305
 
 
17306
 
 
17307
# Allow CC to be a program name with arguments.
 
17308
lt_save_CC="$CC"
 
17309
CC=${GCJ-"gcj"}
 
17310
compiler=$CC
 
17311
compiler_GCJ=$CC
 
17312
for cc_temp in $compiler""; do
 
17313
  case $cc_temp in
 
17314
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17315
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17316
    \-*) ;;
 
17317
    *) break;;
 
17318
  esac
 
17319
done
 
17320
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17321
 
 
17322
 
 
17323
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17324
archive_cmds_need_lc_GCJ=no
 
17325
 
 
17326
old_archive_cmds_GCJ=$old_archive_cmds
 
17327
 
 
17328
 
 
17329
lt_prog_compiler_no_builtin_flag_GCJ=
 
17330
 
 
17331
if test "$GCC" = yes; then
 
17332
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17333
 
 
17334
 
 
17335
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17336
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
17337
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17338
  $as_echo_n "(cached) " >&6
 
17339
else
 
17340
  lt_cv_prog_compiler_rtti_exceptions=no
 
17341
  ac_outfile=conftest.$ac_objext
 
17342
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17343
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17344
   # Insert the option either (1) after the last *FLAGS variable, or
 
17345
   # (2) before a word containing "conftest.", or (3) at the end.
 
17346
   # Note that $ac_compile itself does not contain backslashes and begins
 
17347
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17348
   # The option is referenced via a variable to avoid confusing sed.
 
17349
   lt_compile=`echo "$ac_compile" | $SED \
 
17350
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17351
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17352
   -e 's:$: $lt_compiler_flag:'`
 
17353
   (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
 
17354
   (eval "$lt_compile" 2>conftest.err)
 
17355
   ac_status=$?
 
17356
   cat conftest.err >&5
 
17357
   echo "$as_me:17357: \$? = $ac_status" >&5
 
17358
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17359
     # The compiler can only warn and ignore the option if not recognized
 
17360
     # So say no if there are warnings other than the usual output.
 
17361
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17362
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17363
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17364
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17365
     fi
 
17366
   fi
 
17367
   $rm conftest*
 
17368
 
 
17369
fi
 
17370
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17371
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17372
 
 
17373
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17374
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17375
else
 
17376
    :
 
17377
fi
 
17378
 
 
17379
fi
 
17380
 
 
17381
lt_prog_compiler_wl_GCJ=
 
17382
lt_prog_compiler_pic_GCJ=
 
17383
lt_prog_compiler_static_GCJ=
 
17384
 
 
17385
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17386
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
17387
 
 
17388
  if test "$GCC" = yes; then
 
17389
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17390
    lt_prog_compiler_static_GCJ='-static'
 
17391
 
 
17392
    case $host_os in
 
17393
      aix*)
 
17394
      # All AIX code is PIC.
 
17395
      if test "$host_cpu" = ia64; then
 
17396
        # AIX 5 now supports IA64 processor
 
17397
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17398
      fi
 
17399
      ;;
 
17400
 
 
17401
    amigaos*)
 
17402
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17403
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17404
      # like `-m68040'.
 
17405
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17406
      ;;
 
17407
 
 
17408
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17409
      # PIC is the default for these OSes.
 
17410
      ;;
 
17411
 
 
17412
    mingw* | cygwin* | pw32* | os2*)
 
17413
      # This hack is so that the source file can tell whether it is being
 
17414
      # built for inclusion in a dll (and should export symbols for example).
 
17415
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17416
      # (--disable-auto-import) libraries
 
17417
 
 
17418
      ;;
 
17419
 
 
17420
    darwin* | rhapsody*)
 
17421
      # PIC is the default on this platform
 
17422
      # Common symbols not allowed in MH_DYLIB files
 
17423
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17424
      ;;
 
17425
 
 
17426
    interix[3-9]*)
 
17427
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17428
      # Instead, we relocate shared libraries at runtime.
 
17429
      ;;
 
17430
 
 
17431
    msdosdjgpp*)
 
17432
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17433
      # on systems that don't support them.
 
17434
      lt_prog_compiler_can_build_shared_GCJ=no
 
17435
      enable_shared=no
 
17436
      ;;
 
17437
 
 
17438
    sysv4*MP*)
 
17439
      if test -d /usr/nec; then
 
17440
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17441
      fi
 
17442
      ;;
 
17443
 
 
17444
    hpux*)
 
17445
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17446
      # not for PA HP-UX.
 
17447
      case $host_cpu in
 
17448
      hppa*64*|ia64*)
 
17449
        # +Z the default
 
17450
        ;;
 
17451
      *)
 
17452
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17453
        ;;
 
17454
      esac
 
17455
      ;;
 
17456
 
 
17457
    *)
 
17458
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17459
      ;;
 
17460
    esac
 
17461
  else
 
17462
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17463
    case $host_os in
 
17464
    aix*)
 
17465
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17466
      if test "$host_cpu" = ia64; then
 
17467
        # AIX 5 now supports IA64 processor
 
17468
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17469
      else
 
17470
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17471
      fi
 
17472
      ;;
 
17473
      darwin*)
 
17474
        # PIC is the default on this platform
 
17475
        # Common symbols not allowed in MH_DYLIB files
 
17476
       case $cc_basename in
 
17477
         xlc*)
 
17478
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17479
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17480
         ;;
 
17481
       esac
 
17482
       ;;
 
17483
 
 
17484
    mingw* | cygwin* | pw32* | os2*)
 
17485
      # This hack is so that the source file can tell whether it is being
 
17486
      # built for inclusion in a dll (and should export symbols for example).
 
17487
 
 
17488
      ;;
 
17489
 
 
17490
    hpux9* | hpux10* | hpux11*)
 
17491
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17492
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17493
      # not for PA HP-UX.
 
17494
      case $host_cpu in
 
17495
      hppa*64*|ia64*)
 
17496
        # +Z the default
 
17497
        ;;
 
17498
      *)
 
17499
        lt_prog_compiler_pic_GCJ='+Z'
 
17500
        ;;
 
17501
      esac
 
17502
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17503
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17504
      ;;
 
17505
 
 
17506
    irix5* | irix6* | nonstopux*)
 
17507
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17508
      # PIC (with -KPIC) is the default.
 
17509
      lt_prog_compiler_static_GCJ='-non_shared'
 
17510
      ;;
 
17511
 
 
17512
    newsos6)
 
17513
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17514
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17515
      ;;
 
17516
 
 
17517
    linux* | k*bsd*-gnu)
 
17518
      case $cc_basename in
 
17519
      icc* | ecc*)
 
17520
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17521
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17522
        lt_prog_compiler_static_GCJ='-static'
 
17523
        ;;
 
17524
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17525
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17526
        # which looks to be a dead project)
 
17527
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17528
        lt_prog_compiler_pic_GCJ='-fpic'
 
17529
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17530
        ;;
 
17531
      ccc*)
 
17532
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17533
        # All Alpha code is PIC.
 
17534
        lt_prog_compiler_static_GCJ='-non_shared'
 
17535
        ;;
 
17536
      *)
 
17537
        case `$CC -V 2>&1 | sed 5q` in
 
17538
        *Sun\ C*)
 
17539
          # Sun C 5.9
 
17540
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17541
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17542
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17543
          ;;
 
17544
        *Sun\ F*)
 
17545
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17546
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17547
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17548
          lt_prog_compiler_wl_GCJ=''
 
17549
          ;;
 
17550
        esac
 
17551
        ;;
 
17552
      esac
 
17553
      ;;
 
17554
 
 
17555
    osf3* | osf4* | osf5*)
 
17556
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17557
      # All OSF/1 code is PIC.
 
17558
      lt_prog_compiler_static_GCJ='-non_shared'
 
17559
      ;;
 
17560
 
 
17561
    rdos*)
 
17562
      lt_prog_compiler_static_GCJ='-non_shared'
 
17563
      ;;
 
17564
 
 
17565
    solaris*)
 
17566
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17567
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17568
      case $cc_basename in
 
17569
      f77* | f90* | f95*)
 
17570
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17571
      *)
 
17572
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17573
      esac
 
17574
      ;;
 
17575
 
 
17576
    sunos4*)
 
17577
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17578
      lt_prog_compiler_pic_GCJ='-PIC'
 
17579
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17580
      ;;
 
17581
 
 
17582
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17583
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17584
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17585
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17586
      ;;
 
17587
 
 
17588
    sysv4*MP*)
 
17589
      if test -d /usr/nec ;then
 
17590
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17591
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17592
      fi
 
17593
      ;;
 
17594
 
 
17595
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17596
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17597
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17598
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17599
      ;;
 
17600
 
 
17601
    unicos*)
 
17602
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17603
      lt_prog_compiler_can_build_shared_GCJ=no
 
17604
      ;;
 
17605
 
 
17606
    uts4*)
 
17607
      lt_prog_compiler_pic_GCJ='-pic'
 
17608
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17609
      ;;
 
17610
 
 
17611
    *)
 
17612
      lt_prog_compiler_can_build_shared_GCJ=no
 
17613
      ;;
 
17614
    esac
 
17615
  fi
 
17616
 
 
17617
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17618
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17619
 
 
17620
#
 
17621
# Check to make sure the PIC flag actually works.
 
17622
#
 
17623
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17624
 
 
17625
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17626
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17627
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17628
  $as_echo_n "(cached) " >&6
 
17629
else
 
17630
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17631
  ac_outfile=conftest.$ac_objext
 
17632
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17633
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17634
   # Insert the option either (1) after the last *FLAGS variable, or
 
17635
   # (2) before a word containing "conftest.", or (3) at the end.
 
17636
   # Note that $ac_compile itself does not contain backslashes and begins
 
17637
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17638
   # The option is referenced via a variable to avoid confusing sed.
 
17639
   lt_compile=`echo "$ac_compile" | $SED \
 
17640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17642
   -e 's:$: $lt_compiler_flag:'`
 
17643
   (eval echo "\"\$as_me:17643: $lt_compile\"" >&5)
 
17644
   (eval "$lt_compile" 2>conftest.err)
 
17645
   ac_status=$?
 
17646
   cat conftest.err >&5
 
17647
   echo "$as_me:17647: \$? = $ac_status" >&5
 
17648
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17649
     # The compiler can only warn and ignore the option if not recognized
 
17650
     # So say no if there are warnings other than the usual output.
 
17651
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17652
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17653
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17654
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17655
     fi
 
17656
   fi
 
17657
   $rm conftest*
 
17658
 
 
17659
fi
 
17660
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17661
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17662
 
 
17663
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17664
    case $lt_prog_compiler_pic_GCJ in
 
17665
     "" | " "*) ;;
 
17666
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17667
     esac
 
17668
else
 
17669
    lt_prog_compiler_pic_GCJ=
 
17670
     lt_prog_compiler_can_build_shared_GCJ=no
 
17671
fi
 
17672
 
 
17673
fi
 
17674
case $host_os in
 
17675
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17676
  *djgpp*)
 
17677
    lt_prog_compiler_pic_GCJ=
 
17678
    ;;
 
17679
  *)
 
17680
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17681
    ;;
 
17682
esac
 
17683
 
 
17684
#
 
17685
# Check to make sure the static flag actually works.
 
17686
#
 
17687
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17688
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17689
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17690
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17691
  $as_echo_n "(cached) " >&6
 
17692
else
 
17693
  lt_cv_prog_compiler_static_works_GCJ=no
 
17694
   save_LDFLAGS="$LDFLAGS"
 
17695
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17696
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17697
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17698
     # The linker can only warn and ignore the option if not recognized
 
17699
     # So say no if there are warnings
 
17700
     if test -s conftest.err; then
 
17701
       # Append any errors to the config.log.
 
17702
       cat conftest.err 1>&5
 
17703
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17704
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17705
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17706
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17707
       fi
 
17708
     else
 
17709
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17710
     fi
 
17711
   fi
 
17712
   $rm -r conftest*
 
17713
   LDFLAGS="$save_LDFLAGS"
 
17714
 
 
17715
fi
 
17716
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17717
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17718
 
 
17719
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17720
    :
 
17721
else
 
17722
    lt_prog_compiler_static_GCJ=
 
17723
fi
 
17724
 
 
17725
 
 
17726
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17727
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17728
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17729
  $as_echo_n "(cached) " >&6
 
17730
else
 
17731
  lt_cv_prog_compiler_c_o_GCJ=no
 
17732
   $rm -r conftest 2>/dev/null
 
17733
   mkdir conftest
 
17734
   cd conftest
 
17735
   mkdir out
 
17736
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17737
 
 
17738
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17739
   # Insert the option either (1) after the last *FLAGS variable, or
 
17740
   # (2) before a word containing "conftest.", or (3) at the end.
 
17741
   # Note that $ac_compile itself does not contain backslashes and begins
 
17742
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17743
   lt_compile=`echo "$ac_compile" | $SED \
 
17744
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17745
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17746
   -e 's:$: $lt_compiler_flag:'`
 
17747
   (eval echo "\"\$as_me:17747: $lt_compile\"" >&5)
 
17748
   (eval "$lt_compile" 2>out/conftest.err)
 
17749
   ac_status=$?
 
17750
   cat out/conftest.err >&5
 
17751
   echo "$as_me:17751: \$? = $ac_status" >&5
 
17752
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17753
   then
 
17754
     # The compiler can only warn and ignore the option if not recognized
 
17755
     # So say no if there are warnings
 
17756
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17757
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17758
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17759
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17760
     fi
 
17761
   fi
 
17762
   chmod u+w . 2>&5
 
17763
   $rm conftest*
 
17764
   # SGI C++ compiler will create directory out/ii_files/ for
 
17765
   # template instantiation
 
17766
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17767
   $rm out/* && rmdir out
 
17768
   cd ..
 
17769
   rmdir conftest
 
17770
   $rm conftest*
 
17771
 
 
17772
fi
 
17773
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17774
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17775
 
 
17776
 
 
17777
hard_links="nottested"
 
17778
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17779
  # do not overwrite the value of need_locks provided by the user
 
17780
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17781
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17782
  hard_links=yes
 
17783
  $rm conftest*
 
17784
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17785
  touch conftest.a
 
17786
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17787
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17788
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17789
$as_echo "$hard_links" >&6; }
 
17790
  if test "$hard_links" = no; then
 
17791
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17792
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17793
    need_locks=warn
 
17794
  fi
 
17795
else
 
17796
  need_locks=no
 
17797
fi
 
17798
 
 
17799
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17800
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17801
 
 
17802
  runpath_var=
 
17803
  allow_undefined_flag_GCJ=
 
17804
  enable_shared_with_static_runtimes_GCJ=no
 
17805
  archive_cmds_GCJ=
 
17806
  archive_expsym_cmds_GCJ=
 
17807
  old_archive_From_new_cmds_GCJ=
 
17808
  old_archive_from_expsyms_cmds_GCJ=
 
17809
  export_dynamic_flag_spec_GCJ=
 
17810
  whole_archive_flag_spec_GCJ=
 
17811
  thread_safe_flag_spec_GCJ=
 
17812
  hardcode_libdir_flag_spec_GCJ=
 
17813
  hardcode_libdir_flag_spec_ld_GCJ=
 
17814
  hardcode_libdir_separator_GCJ=
 
17815
  hardcode_direct_GCJ=no
 
17816
  hardcode_minus_L_GCJ=no
 
17817
  hardcode_shlibpath_var_GCJ=unsupported
 
17818
  link_all_deplibs_GCJ=unknown
 
17819
  hardcode_automatic_GCJ=no
 
17820
  module_cmds_GCJ=
 
17821
  module_expsym_cmds_GCJ=
 
17822
  always_export_symbols_GCJ=no
 
17823
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17824
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17825
  # included in the symbol list
 
17826
  include_expsyms_GCJ=
 
17827
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17828
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17829
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17830
  # as well as any symbol that contains `d'.
 
17831
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17832
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17833
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17834
  # the symbol is explicitly referenced.  Since portable code cannot
 
17835
  # rely on this symbol name, it's probably fine to never include it in
 
17836
  # preloaded symbol tables.
 
17837
  # Exclude shared library initialization/finalization symbols.
 
17838
  extract_expsyms_cmds=
 
17839
  # Just being paranoid about ensuring that cc_basename is set.
 
17840
  for cc_temp in $compiler""; do
 
17841
  case $cc_temp in
 
17842
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17843
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17844
    \-*) ;;
 
17845
    *) break;;
 
17846
  esac
 
17847
done
 
17848
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17849
 
 
17850
  case $host_os in
 
17851
  cygwin* | mingw* | pw32*)
 
17852
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17853
    # When not using gcc, we currently assume that we are using
 
17854
    # Microsoft Visual C++.
 
17855
    if test "$GCC" != yes; then
 
17856
      with_gnu_ld=no
 
17857
    fi
 
17858
    ;;
 
17859
  interix*)
 
17860
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17861
    with_gnu_ld=yes
 
17862
    ;;
 
17863
  openbsd*)
 
17864
    with_gnu_ld=no
 
17865
    ;;
 
17866
  esac
 
17867
 
 
17868
  ld_shlibs_GCJ=yes
 
17869
  if test "$with_gnu_ld" = yes; then
 
17870
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17871
    wlarc='${wl}'
 
17872
 
 
17873
    # Set some defaults for GNU ld with shared library support. These
 
17874
    # are reset later if shared libraries are not supported. Putting them
 
17875
    # here allows them to be overridden if necessary.
 
17876
    runpath_var=LD_RUN_PATH
 
17877
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17878
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17879
    # ancient GNU ld didn't support --whole-archive et. al.
 
17880
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17881
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17882
      else
 
17883
        whole_archive_flag_spec_GCJ=
 
17884
    fi
 
17885
    supports_anon_versioning=no
 
17886
    case `$LD -v 2>/dev/null` in
 
17887
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17888
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17889
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17890
      *\ 2.11.*) ;; # other 2.11 versions
 
17891
      *) supports_anon_versioning=yes ;;
 
17892
    esac
 
17893
 
 
17894
    # See if GNU ld supports shared libraries.
 
17895
    case $host_os in
 
17896
    aix[3-9]*)
 
17897
      # On AIX/PPC, the GNU linker is very broken
 
17898
      if test "$host_cpu" != ia64; then
 
17899
        ld_shlibs_GCJ=no
 
17900
        cat <<EOF 1>&2
 
17901
 
 
17902
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17903
*** to be unable to reliably create shared libraries on AIX.
 
17904
*** Therefore, libtool is disabling shared libraries support.  If you
 
17905
*** really care for shared libraries, you may want to modify your PATH
 
17906
*** so that a non-GNU linker is found, and then restart.
 
17907
 
 
17908
EOF
 
17909
      fi
 
17910
      ;;
 
17911
 
 
17912
    amigaos*)
 
17913
      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)'
 
17914
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17915
      hardcode_minus_L_GCJ=yes
 
17916
 
 
17917
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17918
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17919
      # to version 4, is to share data among multiple programs linked
 
17920
      # with the same dynamic library.  Since this doesn't match the
 
17921
      # behavior of shared libraries on other platforms, we can't use
 
17922
      # them.
 
17923
      ld_shlibs_GCJ=no
 
17924
      ;;
 
17925
 
 
17926
    beos*)
 
17927
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17928
        allow_undefined_flag_GCJ=unsupported
 
17929
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17930
        # support --undefined.  This deserves some investigation.  FIXME
 
17931
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17932
      else
 
17933
        ld_shlibs_GCJ=no
 
17934
      fi
 
17935
      ;;
 
17936
 
 
17937
    cygwin* | mingw* | pw32*)
 
17938
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17939
      # as there is no search path for DLLs.
 
17940
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17941
      allow_undefined_flag_GCJ=unsupported
 
17942
      always_export_symbols_GCJ=no
 
17943
      enable_shared_with_static_runtimes_GCJ=yes
 
17944
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17945
 
 
17946
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17947
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17948
        # If the export-symbols file already is a .def file (1st line
 
17949
        # is EXPORTS), use it as is; otherwise, prepend...
 
17950
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17951
          cp $export_symbols $output_objdir/$soname.def;
 
17952
        else
 
17953
          echo EXPORTS > $output_objdir/$soname.def;
 
17954
          cat $export_symbols >> $output_objdir/$soname.def;
 
17955
        fi~
 
17956
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17957
      else
 
17958
        ld_shlibs_GCJ=no
 
17959
      fi
 
17960
      ;;
 
17961
 
 
17962
    interix[3-9]*)
 
17963
      hardcode_direct_GCJ=no
 
17964
      hardcode_shlibpath_var_GCJ=no
 
17965
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17966
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17967
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17968
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17969
      # default) and relocated if they conflict, which is a slow very memory
 
17970
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17971
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17972
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17973
      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'
 
17974
      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'
 
17975
      ;;
 
17976
 
 
17977
    gnu* | linux* | k*bsd*-gnu)
 
17978
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17979
        tmp_addflag=
 
17980
        case $cc_basename,$host_cpu in
 
17981
        pgcc*)                          # Portland Group C compiler
 
17982
          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'
 
17983
          tmp_addflag=' $pic_flag'
 
17984
          ;;
 
17985
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17986
          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'
 
17987
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17988
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17989
          tmp_addflag=' -i_dynamic' ;;
 
17990
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17991
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17992
        ifc* | ifort*)                  # Intel Fortran compiler
 
17993
          tmp_addflag=' -nofor_main' ;;
 
17994
        esac
 
17995
        case `$CC -V 2>&1 | sed 5q` in
 
17996
        *Sun\ C*)                       # Sun C 5.9
 
17997
          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'
 
17998
          tmp_sharedflag='-G' ;;
 
17999
        *Sun\ F*)                       # Sun Fortran 8.3
 
18000
          tmp_sharedflag='-G' ;;
 
18001
        *)
 
18002
          tmp_sharedflag='-shared' ;;
 
18003
        esac
 
18004
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18005
 
 
18006
        if test $supports_anon_versioning = yes; then
 
18007
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18008
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18009
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
18010
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18011
        fi
 
18012
      else
 
18013
        ld_shlibs_GCJ=no
 
18014
      fi
 
18015
      ;;
 
18016
 
 
18017
    netbsd*)
 
18018
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18019
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18020
        wlarc=
 
18021
      else
 
18022
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18023
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18024
      fi
 
18025
      ;;
 
18026
 
 
18027
    solaris*)
 
18028
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18029
        ld_shlibs_GCJ=no
 
18030
        cat <<EOF 1>&2
 
18031
 
 
18032
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18033
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18034
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18035
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18036
*** your PATH or compiler configuration so that the native linker is
 
18037
*** used, and then restart.
 
18038
 
 
18039
EOF
 
18040
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18041
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18042
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18043
      else
 
18044
        ld_shlibs_GCJ=no
 
18045
      fi
 
18046
      ;;
 
18047
 
 
18048
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
18049
      case `$LD -v 2>&1` in
 
18050
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
18051
        ld_shlibs_GCJ=no
 
18052
        cat <<_LT_EOF 1>&2
 
18053
 
 
18054
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
18055
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
18056
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18057
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
18058
*** your PATH or compiler configuration so that the native linker is
 
18059
*** used, and then restart.
 
18060
 
 
18061
_LT_EOF
 
18062
        ;;
 
18063
        *)
 
18064
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18065
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
18066
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
18067
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
18068
          else
 
18069
            ld_shlibs_GCJ=no
 
18070
          fi
 
18071
        ;;
 
18072
      esac
 
18073
      ;;
 
18074
 
 
18075
    sunos4*)
 
18076
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18077
      wlarc=
 
18078
      hardcode_direct_GCJ=yes
 
18079
      hardcode_shlibpath_var_GCJ=no
 
18080
      ;;
 
18081
 
 
18082
    *)
 
18083
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18084
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18085
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18086
      else
 
18087
        ld_shlibs_GCJ=no
 
18088
      fi
 
18089
      ;;
 
18090
    esac
 
18091
 
 
18092
    if test "$ld_shlibs_GCJ" = no; then
 
18093
      runpath_var=
 
18094
      hardcode_libdir_flag_spec_GCJ=
 
18095
      export_dynamic_flag_spec_GCJ=
 
18096
      whole_archive_flag_spec_GCJ=
 
18097
    fi
 
18098
  else
 
18099
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18100
    case $host_os in
 
18101
    aix3*)
 
18102
      allow_undefined_flag_GCJ=unsupported
 
18103
      always_export_symbols_GCJ=yes
 
18104
      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'
 
18105
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18106
      # are no directories specified by -L.
 
18107
      hardcode_minus_L_GCJ=yes
 
18108
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
18109
        # Neither direct hardcoding nor static linking is supported with a
 
18110
        # broken collect2.
 
18111
        hardcode_direct_GCJ=unsupported
 
18112
      fi
 
18113
      ;;
 
18114
 
 
18115
    aix[4-9]*)
 
18116
      if test "$host_cpu" = ia64; then
 
18117
        # On IA64, the linker does run time linking by default, so we don't
 
18118
        # have to do anything special.
 
18119
        aix_use_runtimelinking=no
 
18120
        exp_sym_flag='-Bexport'
 
18121
        no_entry_flag=""
 
18122
      else
 
18123
        # If we're using GNU nm, then we don't want the "-C" option.
 
18124
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18125
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18126
          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'
 
18127
        else
 
18128
          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'
 
18129
        fi
 
18130
        aix_use_runtimelinking=no
 
18131
 
 
18132
        # Test if we are trying to use run time linking or normal
 
18133
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18134
        # need to do runtime linking.
 
18135
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
18136
          for ld_flag in $LDFLAGS; do
 
18137
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18138
            aix_use_runtimelinking=yes
 
18139
            break
 
18140
          fi
 
18141
          done
 
18142
          ;;
 
18143
        esac
 
18144
 
 
18145
        exp_sym_flag='-bexport'
 
18146
        no_entry_flag='-bnoentry'
 
18147
      fi
 
18148
 
 
18149
      # When large executables or shared objects are built, AIX ld can
 
18150
      # have problems creating the table of contents.  If linking a library
 
18151
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18152
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18153
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18154
 
 
18155
      archive_cmds_GCJ=''
 
18156
      hardcode_direct_GCJ=yes
 
18157
      hardcode_libdir_separator_GCJ=':'
 
18158
      link_all_deplibs_GCJ=yes
 
18159
 
 
18160
      if test "$GCC" = yes; then
 
18161
        case $host_os in aix4.[012]|aix4.[012].*)
 
18162
        # We only want to do this on AIX 4.2 and lower, the check
 
18163
        # below for broken collect2 doesn't work under 4.3+
 
18164
          collect2name=`${CC} -print-prog-name=collect2`
 
18165
          if test -f "$collect2name" && \
 
18166
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18167
          then
 
18168
          # We have reworked collect2
 
18169
          :
 
18170
          else
 
18171
          # We have old collect2
 
18172
          hardcode_direct_GCJ=unsupported
 
18173
          # It fails to find uninstalled libraries when the uninstalled
 
18174
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18175
          # to unsupported forces relinking
 
18176
          hardcode_minus_L_GCJ=yes
 
18177
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18178
          hardcode_libdir_separator_GCJ=
 
18179
          fi
 
18180
          ;;
 
18181
        esac
 
18182
        shared_flag='-shared'
 
18183
        if test "$aix_use_runtimelinking" = yes; then
 
18184
          shared_flag="$shared_flag "'${wl}-G'
 
18185
        fi
 
18186
      else
 
18187
        # not using gcc
 
18188
        if test "$host_cpu" = ia64; then
 
18189
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18190
        # chokes on -Wl,-G. The following line is correct:
 
18191
          shared_flag='-G'
 
18192
        else
 
18193
          if test "$aix_use_runtimelinking" = yes; then
 
18194
            shared_flag='${wl}-G'
 
18195
          else
 
18196
            shared_flag='${wl}-bM:SRE'
 
18197
          fi
 
18198
        fi
 
18199
      fi
 
18200
 
 
18201
      # It seems that -bexpall does not export symbols beginning with
 
18202
      # underscore (_), so it is better to generate a list of symbols to export.
 
18203
      always_export_symbols_GCJ=yes
 
18204
      if test "$aix_use_runtimelinking" = yes; then
 
18205
        # Warning - without using the other runtime loading flags (-brtl),
 
18206
        # -berok will link without error, but may produce a broken library.
 
18207
        allow_undefined_flag_GCJ='-berok'
 
18208
       # Determine the default libpath from the value encoded in an empty executable.
 
18209
       cat >conftest.$ac_ext <<_ACEOF
 
18210
/* confdefs.h.  */
 
18211
_ACEOF
 
18212
cat confdefs.h >>conftest.$ac_ext
 
18213
cat >>conftest.$ac_ext <<_ACEOF
 
18214
/* end confdefs.h.  */
 
18215
 
 
18216
int
 
18217
main ()
 
18218
{
 
18219
 
 
18220
  ;
 
18221
  return 0;
 
18222
}
 
18223
_ACEOF
 
18224
rm -f conftest.$ac_objext conftest$ac_exeext
 
18225
if { (ac_try="$ac_link"
 
18226
case "(($ac_try" in
 
18227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18228
  *) ac_try_echo=$ac_try;;
 
18229
esac
 
18230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18231
$as_echo "$ac_try_echo") >&5
 
18232
  (eval "$ac_link") 2>conftest.er1
 
18233
  ac_status=$?
 
18234
  grep -v '^ *+' conftest.er1 >conftest.err
 
18235
  rm -f conftest.er1
 
18236
  cat conftest.err >&5
 
18237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18238
  (exit $ac_status); } && {
 
18239
         test -z "$ac_c_werror_flag" ||
 
18240
         test ! -s conftest.err
 
18241
       } && test -s conftest$ac_exeext && {
 
18242
         test "$cross_compiling" = yes ||
 
18243
         $as_test_x conftest$ac_exeext
 
18244
       }; then
 
18245
 
 
18246
lt_aix_libpath_sed='
 
18247
    /Import File Strings/,/^$/ {
 
18248
        /^0/ {
 
18249
            s/^0  *\(.*\)$/\1/
 
18250
            p
 
18251
        }
 
18252
    }'
 
18253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18254
# Check for a 64-bit object if we didn't find anything.
 
18255
if test -z "$aix_libpath"; then
 
18256
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18257
fi
 
18258
else
 
18259
  $as_echo "$as_me: failed program was:" >&5
 
18260
sed 's/^/| /' conftest.$ac_ext >&5
 
18261
 
 
18262
 
 
18263
fi
 
18264
 
 
18265
rm -rf conftest.dSYM
 
18266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18267
      conftest$ac_exeext conftest.$ac_ext
 
18268
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18269
 
 
18270
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18271
        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"
 
18272
       else
 
18273
        if test "$host_cpu" = ia64; then
 
18274
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18275
          allow_undefined_flag_GCJ="-z nodefs"
 
18276
          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"
 
18277
        else
 
18278
         # Determine the default libpath from the value encoded in an empty executable.
 
18279
         cat >conftest.$ac_ext <<_ACEOF
 
18280
/* confdefs.h.  */
 
18281
_ACEOF
 
18282
cat confdefs.h >>conftest.$ac_ext
 
18283
cat >>conftest.$ac_ext <<_ACEOF
 
18284
/* end confdefs.h.  */
 
18285
 
 
18286
int
 
18287
main ()
 
18288
{
 
18289
 
 
18290
  ;
 
18291
  return 0;
 
18292
}
 
18293
_ACEOF
 
18294
rm -f conftest.$ac_objext conftest$ac_exeext
 
18295
if { (ac_try="$ac_link"
 
18296
case "(($ac_try" in
 
18297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18298
  *) ac_try_echo=$ac_try;;
 
18299
esac
 
18300
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18301
$as_echo "$ac_try_echo") >&5
 
18302
  (eval "$ac_link") 2>conftest.er1
 
18303
  ac_status=$?
 
18304
  grep -v '^ *+' conftest.er1 >conftest.err
 
18305
  rm -f conftest.er1
 
18306
  cat conftest.err >&5
 
18307
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18308
  (exit $ac_status); } && {
 
18309
         test -z "$ac_c_werror_flag" ||
 
18310
         test ! -s conftest.err
 
18311
       } && test -s conftest$ac_exeext && {
 
18312
         test "$cross_compiling" = yes ||
 
18313
         $as_test_x conftest$ac_exeext
 
18314
       }; then
 
18315
 
 
18316
lt_aix_libpath_sed='
 
18317
    /Import File Strings/,/^$/ {
 
18318
        /^0/ {
 
18319
            s/^0  *\(.*\)$/\1/
 
18320
            p
 
18321
        }
 
18322
    }'
 
18323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18324
# Check for a 64-bit object if we didn't find anything.
 
18325
if test -z "$aix_libpath"; then
 
18326
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18327
fi
 
18328
else
 
18329
  $as_echo "$as_me: failed program was:" >&5
 
18330
sed 's/^/| /' conftest.$ac_ext >&5
 
18331
 
 
18332
 
 
18333
fi
 
18334
 
 
18335
rm -rf conftest.dSYM
 
18336
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18337
      conftest$ac_exeext conftest.$ac_ext
 
18338
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18339
 
 
18340
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18341
          # Warning - without using the other run time loading flags,
 
18342
          # -berok will link without error, but may produce a broken library.
 
18343
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18344
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18345
          # Exported symbols can be pulled into shared objects from archives
 
18346
          whole_archive_flag_spec_GCJ='$convenience'
 
18347
          archive_cmds_need_lc_GCJ=yes
 
18348
          # This is similar to how AIX traditionally builds its shared libraries.
 
18349
          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'
 
18350
        fi
 
18351
      fi
 
18352
      ;;
 
18353
 
 
18354
    amigaos*)
 
18355
      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)'
 
18356
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18357
      hardcode_minus_L_GCJ=yes
 
18358
      # see comment about different semantics on the GNU ld section
 
18359
      ld_shlibs_GCJ=no
 
18360
      ;;
 
18361
 
 
18362
    bsdi[45]*)
 
18363
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18364
      ;;
 
18365
 
 
18366
    cygwin* | mingw* | pw32*)
 
18367
      # When not using gcc, we currently assume that we are using
 
18368
      # Microsoft Visual C++.
 
18369
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18370
      # no search path for DLLs.
 
18371
      hardcode_libdir_flag_spec_GCJ=' '
 
18372
      allow_undefined_flag_GCJ=unsupported
 
18373
      # Tell ltmain to make .lib files, not .a files.
 
18374
      libext=lib
 
18375
      # Tell ltmain to make .dll files, not .so files.
 
18376
      shrext_cmds=".dll"
 
18377
      # FIXME: Setting linknames here is a bad hack.
 
18378
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18379
      # The linker will automatically build a .lib file if we build a DLL.
 
18380
      old_archive_From_new_cmds_GCJ='true'
 
18381
      # FIXME: Should let the user specify the lib program.
 
18382
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18383
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18384
      enable_shared_with_static_runtimes_GCJ=yes
 
18385
      ;;
 
18386
 
 
18387
    darwin* | rhapsody*)
 
18388
      case $host_os in
 
18389
        rhapsody* | darwin1.[012])
 
18390
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18391
         ;;
 
18392
       *) # Darwin 1.3 on
 
18393
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18394
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18395
         else
 
18396
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18397
             10.[012])
 
18398
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18399
               ;;
 
18400
             10.*)
 
18401
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18402
               ;;
 
18403
           esac
 
18404
         fi
 
18405
         ;;
 
18406
      esac
 
18407
      archive_cmds_need_lc_GCJ=no
 
18408
      hardcode_direct_GCJ=no
 
18409
      hardcode_automatic_GCJ=yes
 
18410
      hardcode_shlibpath_var_GCJ=unsupported
 
18411
      whole_archive_flag_spec_GCJ=''
 
18412
      link_all_deplibs_GCJ=yes
 
18413
    if test "$GCC" = yes ; then
 
18414
        output_verbose_link_cmd='echo'
 
18415
        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}"
 
18416
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18417
        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}"
 
18418
        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}"
 
18419
    else
 
18420
      case $cc_basename in
 
18421
        xlc*)
 
18422
         output_verbose_link_cmd='echo'
 
18423
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18424
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18425
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18426
         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}'
 
18427
          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}'
 
18428
          ;;
 
18429
       *)
 
18430
         ld_shlibs_GCJ=no
 
18431
          ;;
 
18432
      esac
 
18433
    fi
 
18434
      ;;
 
18435
 
 
18436
    dgux*)
 
18437
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18438
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18439
      hardcode_shlibpath_var_GCJ=no
 
18440
      ;;
 
18441
 
 
18442
    freebsd1*)
 
18443
      ld_shlibs_GCJ=no
 
18444
      ;;
 
18445
 
 
18446
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18447
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18448
    # does not break anything, and helps significantly (at the cost of a little
 
18449
    # extra space).
 
18450
    freebsd2.2*)
 
18451
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18452
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18453
      hardcode_direct_GCJ=yes
 
18454
      hardcode_shlibpath_var_GCJ=no
 
18455
      ;;
 
18456
 
 
18457
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18458
    freebsd2*)
 
18459
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18460
      hardcode_direct_GCJ=yes
 
18461
      hardcode_minus_L_GCJ=yes
 
18462
      hardcode_shlibpath_var_GCJ=no
 
18463
      ;;
 
18464
 
 
18465
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18466
    freebsd* | dragonfly*)
 
18467
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18468
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18469
      hardcode_direct_GCJ=yes
 
18470
      hardcode_shlibpath_var_GCJ=no
 
18471
      ;;
 
18472
 
 
18473
    hpux9*)
 
18474
      if test "$GCC" = yes; then
 
18475
        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'
 
18476
      else
 
18477
        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'
 
18478
      fi
 
18479
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18480
      hardcode_libdir_separator_GCJ=:
 
18481
      hardcode_direct_GCJ=yes
 
18482
 
 
18483
      # hardcode_minus_L: Not really in the search PATH,
 
18484
      # but as the default location of the library.
 
18485
      hardcode_minus_L_GCJ=yes
 
18486
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18487
      ;;
 
18488
 
 
18489
    hpux10*)
 
18490
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18491
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18492
      else
 
18493
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18494
      fi
 
18495
      if test "$with_gnu_ld" = no; then
 
18496
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18497
        hardcode_libdir_separator_GCJ=:
 
18498
 
 
18499
        hardcode_direct_GCJ=yes
 
18500
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18501
 
 
18502
        # hardcode_minus_L: Not really in the search PATH,
 
18503
        # but as the default location of the library.
 
18504
        hardcode_minus_L_GCJ=yes
 
18505
      fi
 
18506
      ;;
 
18507
 
 
18508
    hpux11*)
 
18509
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18510
        case $host_cpu in
 
18511
        hppa*64*)
 
18512
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18513
          ;;
 
18514
        ia64*)
 
18515
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18516
          ;;
 
18517
        *)
 
18518
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18519
          ;;
 
18520
        esac
 
18521
      else
 
18522
        case $host_cpu in
 
18523
        hppa*64*)
 
18524
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18525
          ;;
 
18526
        ia64*)
 
18527
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18528
          ;;
 
18529
        *)
 
18530
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18531
          ;;
 
18532
        esac
 
18533
      fi
 
18534
      if test "$with_gnu_ld" = no; then
 
18535
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18536
        hardcode_libdir_separator_GCJ=:
 
18537
 
 
18538
        case $host_cpu in
 
18539
        hppa*64*|ia64*)
 
18540
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18541
          hardcode_direct_GCJ=no
 
18542
          hardcode_shlibpath_var_GCJ=no
 
18543
          ;;
 
18544
        *)
 
18545
          hardcode_direct_GCJ=yes
 
18546
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18547
 
 
18548
          # hardcode_minus_L: Not really in the search PATH,
 
18549
          # but as the default location of the library.
 
18550
          hardcode_minus_L_GCJ=yes
 
18551
          ;;
 
18552
        esac
 
18553
      fi
 
18554
      ;;
 
18555
 
 
18556
    irix5* | irix6* | nonstopux*)
 
18557
      if test "$GCC" = yes; then
 
18558
        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'
 
18559
      else
 
18560
        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'
 
18561
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18562
      fi
 
18563
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18564
      hardcode_libdir_separator_GCJ=:
 
18565
      link_all_deplibs_GCJ=yes
 
18566
      ;;
 
18567
 
 
18568
    netbsd*)
 
18569
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18570
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18571
      else
 
18572
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18573
      fi
 
18574
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18575
      hardcode_direct_GCJ=yes
 
18576
      hardcode_shlibpath_var_GCJ=no
 
18577
      ;;
 
18578
 
 
18579
    newsos6)
 
18580
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18581
      hardcode_direct_GCJ=yes
 
18582
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18583
      hardcode_libdir_separator_GCJ=:
 
18584
      hardcode_shlibpath_var_GCJ=no
 
18585
      ;;
 
18586
 
 
18587
    openbsd*)
 
18588
      if test -f /usr/libexec/ld.so; then
 
18589
        hardcode_direct_GCJ=yes
 
18590
        hardcode_shlibpath_var_GCJ=no
 
18591
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18592
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18593
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18594
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18595
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18596
        else
 
18597
          case $host_os in
 
18598
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18599
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18600
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18601
             ;;
 
18602
           *)
 
18603
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18604
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18605
             ;;
 
18606
          esac
 
18607
        fi
 
18608
      else
 
18609
        ld_shlibs_GCJ=no
 
18610
      fi
 
18611
      ;;
 
18612
 
 
18613
    os2*)
 
18614
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18615
      hardcode_minus_L_GCJ=yes
 
18616
      allow_undefined_flag_GCJ=unsupported
 
18617
      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'
 
18618
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18619
      ;;
 
18620
 
 
18621
    osf3*)
 
18622
      if test "$GCC" = yes; then
 
18623
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18624
        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'
 
18625
      else
 
18626
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18627
        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'
 
18628
      fi
 
18629
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18630
      hardcode_libdir_separator_GCJ=:
 
18631
      ;;
 
18632
 
 
18633
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18634
      if test "$GCC" = yes; then
 
18635
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18636
        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'
 
18637
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18638
      else
 
18639
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18640
        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'
 
18641
        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~
 
18642
        $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'
 
18643
 
 
18644
        # Both c and cxx compiler support -rpath directly
 
18645
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18646
      fi
 
18647
      hardcode_libdir_separator_GCJ=:
 
18648
      ;;
 
18649
 
 
18650
    solaris*)
 
18651
      no_undefined_flag_GCJ=' -z text'
 
18652
      if test "$GCC" = yes; then
 
18653
        wlarc='${wl}'
 
18654
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18655
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18656
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18657
      else
 
18658
        wlarc=''
 
18659
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18660
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18661
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18662
      fi
 
18663
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18664
      hardcode_shlibpath_var_GCJ=no
 
18665
      case $host_os in
 
18666
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18667
      *)
 
18668
        # The compiler driver will combine and reorder linker options,
 
18669
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18670
        # but is careful enough not to reorder.
 
18671
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18672
        if test "$GCC" = yes; then
 
18673
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18674
        else
 
18675
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18676
        fi
 
18677
        ;;
 
18678
      esac
 
18679
      link_all_deplibs_GCJ=yes
 
18680
      ;;
 
18681
 
 
18682
    sunos4*)
 
18683
      if test "x$host_vendor" = xsequent; then
 
18684
        # Use $CC to link under sequent, because it throws in some extra .o
 
18685
        # files that make .init and .fini sections work.
 
18686
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18687
      else
 
18688
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18689
      fi
 
18690
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18691
      hardcode_direct_GCJ=yes
 
18692
      hardcode_minus_L_GCJ=yes
 
18693
      hardcode_shlibpath_var_GCJ=no
 
18694
      ;;
 
18695
 
 
18696
    sysv4)
 
18697
      case $host_vendor in
 
18698
        sni)
 
18699
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18700
          hardcode_direct_GCJ=yes # is this really true???
 
18701
        ;;
 
18702
        siemens)
 
18703
          ## LD is ld it makes a PLAMLIB
 
18704
          ## CC just makes a GrossModule.
 
18705
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18706
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18707
          hardcode_direct_GCJ=no
 
18708
        ;;
 
18709
        motorola)
 
18710
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18711
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18712
        ;;
 
18713
      esac
 
18714
      runpath_var='LD_RUN_PATH'
 
18715
      hardcode_shlibpath_var_GCJ=no
 
18716
      ;;
 
18717
 
 
18718
    sysv4.3*)
 
18719
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18720
      hardcode_shlibpath_var_GCJ=no
 
18721
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18722
      ;;
 
18723
 
 
18724
    sysv4*MP*)
 
18725
      if test -d /usr/nec; then
 
18726
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18727
        hardcode_shlibpath_var_GCJ=no
 
18728
        runpath_var=LD_RUN_PATH
 
18729
        hardcode_runpath_var=yes
 
18730
        ld_shlibs_GCJ=yes
 
18731
      fi
 
18732
      ;;
 
18733
 
 
18734
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18735
      no_undefined_flag_GCJ='${wl}-z,text'
 
18736
      archive_cmds_need_lc_GCJ=no
 
18737
      hardcode_shlibpath_var_GCJ=no
 
18738
      runpath_var='LD_RUN_PATH'
 
18739
 
 
18740
      if test "$GCC" = yes; then
 
18741
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18742
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18743
      else
 
18744
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18745
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18746
      fi
 
18747
      ;;
 
18748
 
 
18749
    sysv5* | sco3.2v5* | sco5v6*)
 
18750
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18751
      # link with -lc, and that would cause any symbols used from libc to
 
18752
      # always be unresolved, which means just about no library would
 
18753
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18754
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18755
      # as -z defs.
 
18756
      no_undefined_flag_GCJ='${wl}-z,text'
 
18757
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18758
      archive_cmds_need_lc_GCJ=no
 
18759
      hardcode_shlibpath_var_GCJ=no
 
18760
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18761
      hardcode_libdir_separator_GCJ=':'
 
18762
      link_all_deplibs_GCJ=yes
 
18763
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18764
      runpath_var='LD_RUN_PATH'
 
18765
 
 
18766
      if test "$GCC" = yes; then
 
18767
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18768
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18769
      else
 
18770
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18771
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18772
      fi
 
18773
      ;;
 
18774
 
 
18775
    uts4*)
 
18776
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18777
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18778
      hardcode_shlibpath_var_GCJ=no
 
18779
      ;;
 
18780
 
 
18781
    *)
 
18782
      ld_shlibs_GCJ=no
 
18783
      ;;
 
18784
    esac
 
18785
  fi
 
18786
 
 
18787
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18788
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18789
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18790
 
 
18791
#
 
18792
# Do we need to explicitly link libc?
 
18793
#
 
18794
case "x$archive_cmds_need_lc_GCJ" in
 
18795
x|xyes)
 
18796
  # Assume -lc should be added
 
18797
  archive_cmds_need_lc_GCJ=yes
 
18798
 
 
18799
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18800
    case $archive_cmds_GCJ in
 
18801
    *'~'*)
 
18802
      # FIXME: we may have to deal with multi-command sequences.
 
18803
      ;;
 
18804
    '$CC '*)
 
18805
      # Test whether the compiler implicitly links with -lc since on some
 
18806
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18807
      # to ld, don't add -lc before -lgcc.
 
18808
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18809
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18810
      $rm conftest*
 
18811
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18812
 
 
18813
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18814
  (eval $ac_compile) 2>&5
 
18815
  ac_status=$?
 
18816
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18817
  (exit $ac_status); } 2>conftest.err; then
 
18818
        soname=conftest
 
18819
        lib=conftest
 
18820
        libobjs=conftest.$ac_objext
 
18821
        deplibs=
 
18822
        wl=$lt_prog_compiler_wl_GCJ
 
18823
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18824
        compiler_flags=-v
 
18825
        linker_flags=-v
 
18826
        verstring=
 
18827
        output_objdir=.
 
18828
        libname=conftest
 
18829
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18830
        allow_undefined_flag_GCJ=
 
18831
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18832
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18833
  ac_status=$?
 
18834
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18835
  (exit $ac_status); }
 
18836
        then
 
18837
          archive_cmds_need_lc_GCJ=no
 
18838
        else
 
18839
          archive_cmds_need_lc_GCJ=yes
 
18840
        fi
 
18841
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18842
      else
 
18843
        cat conftest.err 1>&5
 
18844
      fi
 
18845
      $rm conftest*
 
18846
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18847
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18848
      ;;
 
18849
    esac
 
18850
  fi
 
18851
  ;;
 
18852
esac
 
18853
 
 
18854
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18855
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18856
library_names_spec=
 
18857
libname_spec='lib$name'
 
18858
soname_spec=
 
18859
shrext_cmds=".so"
 
18860
postinstall_cmds=
 
18861
postuninstall_cmds=
 
18862
finish_cmds=
 
18863
finish_eval=
 
18864
shlibpath_var=
 
18865
shlibpath_overrides_runpath=unknown
 
18866
version_type=none
 
18867
dynamic_linker="$host_os ld.so"
 
18868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18869
 
 
18870
need_lib_prefix=unknown
 
18871
hardcode_into_libs=no
 
18872
 
 
18873
# when you set need_version to no, make sure it does not cause -set_version
 
18874
# flags to be left without arguments
 
18875
need_version=unknown
 
18876
 
 
18877
case $host_os in
 
18878
aix3*)
 
18879
  version_type=linux
 
18880
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18881
  shlibpath_var=LIBPATH
 
18882
 
 
18883
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18884
  soname_spec='${libname}${release}${shared_ext}$major'
 
18885
  ;;
 
18886
 
 
18887
aix[4-9]*)
 
18888
  version_type=linux
 
18889
  need_lib_prefix=no
 
18890
  need_version=no
 
18891
  hardcode_into_libs=yes
 
18892
  if test "$host_cpu" = ia64; then
 
18893
    # AIX 5 supports IA64
 
18894
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18895
    shlibpath_var=LD_LIBRARY_PATH
 
18896
  else
 
18897
    # With GCC up to 2.95.x, collect2 would create an import file
 
18898
    # for dependence libraries.  The import file would start with
 
18899
    # the line `#! .'.  This would cause the generated library to
 
18900
    # depend on `.', always an invalid library.  This was fixed in
 
18901
    # development snapshots of GCC prior to 3.0.
 
18902
    case $host_os in
 
18903
      aix4 | aix4.[01] | aix4.[01].*)
 
18904
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18905
           echo ' yes '
 
18906
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18907
        :
 
18908
      else
 
18909
        can_build_shared=no
 
18910
      fi
 
18911
      ;;
 
18912
    esac
 
18913
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18914
    # soname into executable. Probably we can add versioning support to
 
18915
    # collect2, so additional links can be useful in future.
 
18916
    if test "$aix_use_runtimelinking" = yes; then
 
18917
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18918
      # instead of lib<name>.a to let people know that these are not
 
18919
      # typical AIX shared libraries.
 
18920
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18921
    else
 
18922
      # We preserve .a as extension for shared libraries through AIX4.2
 
18923
      # and later when we are not doing run time linking.
 
18924
      library_names_spec='${libname}${release}.a $libname.a'
 
18925
      soname_spec='${libname}${release}${shared_ext}$major'
 
18926
    fi
 
18927
    shlibpath_var=LIBPATH
 
18928
  fi
 
18929
  ;;
 
18930
 
 
18931
amigaos*)
 
18932
  library_names_spec='$libname.ixlibrary $libname.a'
 
18933
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18934
  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'
 
18935
  ;;
 
18936
 
 
18937
beos*)
 
18938
  library_names_spec='${libname}${shared_ext}'
 
18939
  dynamic_linker="$host_os ld.so"
 
18940
  shlibpath_var=LIBRARY_PATH
 
18941
  ;;
 
18942
 
 
18943
bsdi[45]*)
 
18944
  version_type=linux
 
18945
  need_version=no
 
18946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18947
  soname_spec='${libname}${release}${shared_ext}$major'
 
18948
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18949
  shlibpath_var=LD_LIBRARY_PATH
 
18950
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18951
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18952
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18953
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18954
  # libtool to hard-code these into programs
 
18955
  ;;
 
18956
 
 
18957
cygwin* | mingw* | pw32*)
 
18958
  version_type=windows
 
18959
  shrext_cmds=".dll"
 
18960
  need_version=no
 
18961
  need_lib_prefix=no
 
18962
 
 
18963
  case $GCC,$host_os in
 
18964
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18965
    library_names_spec='$libname.dll.a'
 
18966
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18967
    postinstall_cmds='base_file=`basename \${file}`~
 
18968
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18969
      dldir=$destdir/`dirname \$dlpath`~
 
18970
      test -d \$dldir || mkdir -p \$dldir~
 
18971
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18972
      chmod a+x \$dldir/$dlname'
 
18973
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18974
      dlpath=$dir/\$dldll~
 
18975
       $rm \$dlpath'
 
18976
    shlibpath_overrides_runpath=yes
 
18977
 
 
18978
    case $host_os in
 
18979
    cygwin*)
 
18980
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18981
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18982
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18983
      ;;
 
18984
    mingw*)
 
18985
      # MinGW DLLs use traditional 'lib' prefix
 
18986
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18987
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18988
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18989
        # It is most probably a Windows format PATH printed by
 
18990
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18991
        # path with ; separators, and with drive letters. We can handle the
 
18992
        # drive letters (cygwin fileutils understands them), so leave them,
 
18993
        # especially as we might pass files found there to a mingw objdump,
 
18994
        # which wouldn't understand a cygwinified path. Ahh.
 
18995
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18996
      else
 
18997
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18998
      fi
 
18999
      ;;
 
19000
    pw32*)
 
19001
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19002
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19003
      ;;
 
19004
    esac
 
19005
    ;;
 
19006
 
 
19007
  *)
 
19008
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19009
    ;;
 
19010
  esac
 
19011
  dynamic_linker='Win32 ld.exe'
 
19012
  # FIXME: first we should search . and the directory the executable is in
 
19013
  shlibpath_var=PATH
 
19014
  ;;
 
19015
 
 
19016
darwin* | rhapsody*)
 
19017
  dynamic_linker="$host_os dyld"
 
19018
  version_type=darwin
 
19019
  need_lib_prefix=no
 
19020
  need_version=no
 
19021
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19022
  soname_spec='${libname}${release}${major}$shared_ext'
 
19023
  shlibpath_overrides_runpath=yes
 
19024
  shlibpath_var=DYLD_LIBRARY_PATH
 
19025
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
19026
 
 
19027
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19028
  ;;
 
19029
 
 
19030
dgux*)
 
19031
  version_type=linux
 
19032
  need_lib_prefix=no
 
19033
  need_version=no
 
19034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19035
  soname_spec='${libname}${release}${shared_ext}$major'
 
19036
  shlibpath_var=LD_LIBRARY_PATH
 
19037
  ;;
 
19038
 
 
19039
freebsd1*)
 
19040
  dynamic_linker=no
 
19041
  ;;
 
19042
 
 
19043
freebsd* | dragonfly*)
 
19044
  # DragonFly does not have aout.  When/if they implement a new
 
19045
  # versioning mechanism, adjust this.
 
19046
  if test -x /usr/bin/objformat; then
 
19047
    objformat=`/usr/bin/objformat`
 
19048
  else
 
19049
    case $host_os in
 
19050
    freebsd[123]*) objformat=aout ;;
 
19051
    *) objformat=elf ;;
 
19052
    esac
 
19053
  fi
 
19054
  version_type=freebsd-$objformat
 
19055
  case $version_type in
 
19056
    freebsd-elf*)
 
19057
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19058
      need_version=no
 
19059
      need_lib_prefix=no
 
19060
      ;;
 
19061
    freebsd-*)
 
19062
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19063
      need_version=yes
 
19064
      ;;
 
19065
  esac
 
19066
  shlibpath_var=LD_LIBRARY_PATH
 
19067
  case $host_os in
 
19068
  freebsd2*)
 
19069
    shlibpath_overrides_runpath=yes
 
19070
    ;;
 
19071
  freebsd3.[01]* | freebsdelf3.[01]*)
 
19072
    shlibpath_overrides_runpath=yes
 
19073
    hardcode_into_libs=yes
 
19074
    ;;
 
19075
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
19076
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
19077
    shlibpath_overrides_runpath=no
 
19078
    hardcode_into_libs=yes
 
19079
    ;;
 
19080
  *) # from 4.6 on, and DragonFly
 
19081
    shlibpath_overrides_runpath=yes
 
19082
    hardcode_into_libs=yes
 
19083
    ;;
 
19084
  esac
 
19085
  ;;
 
19086
 
 
19087
gnu*)
 
19088
  version_type=linux
 
19089
  need_lib_prefix=no
 
19090
  need_version=no
 
19091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19092
  soname_spec='${libname}${release}${shared_ext}$major'
 
19093
  shlibpath_var=LD_LIBRARY_PATH
 
19094
  hardcode_into_libs=yes
 
19095
  ;;
 
19096
 
 
19097
hpux9* | hpux10* | hpux11*)
 
19098
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19099
  # link against other versions.
 
19100
  version_type=sunos
 
19101
  need_lib_prefix=no
 
19102
  need_version=no
 
19103
  case $host_cpu in
 
19104
  ia64*)
 
19105
    shrext_cmds='.so'
 
19106
    hardcode_into_libs=yes
 
19107
    dynamic_linker="$host_os dld.so"
 
19108
    shlibpath_var=LD_LIBRARY_PATH
 
19109
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
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
    if test "X$HPUX_IA64_MODE" = X32; then
 
19113
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19114
    else
 
19115
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19116
    fi
 
19117
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19118
    ;;
 
19119
   hppa*64*)
 
19120
     shrext_cmds='.sl'
 
19121
     hardcode_into_libs=yes
 
19122
     dynamic_linker="$host_os dld.sl"
 
19123
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19124
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19125
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19126
     soname_spec='${libname}${release}${shared_ext}$major'
 
19127
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19128
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19129
     ;;
 
19130
   *)
 
19131
    shrext_cmds='.sl'
 
19132
    dynamic_linker="$host_os dld.sl"
 
19133
    shlibpath_var=SHLIB_PATH
 
19134
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19135
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19136
    soname_spec='${libname}${release}${shared_ext}$major'
 
19137
    ;;
 
19138
  esac
 
19139
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19140
  postinstall_cmds='chmod 555 $lib'
 
19141
  ;;
 
19142
 
 
19143
interix[3-9]*)
 
19144
  version_type=linux
 
19145
  need_lib_prefix=no
 
19146
  need_version=no
 
19147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19148
  soname_spec='${libname}${release}${shared_ext}$major'
 
19149
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
19150
  shlibpath_var=LD_LIBRARY_PATH
 
19151
  shlibpath_overrides_runpath=no
 
19152
  hardcode_into_libs=yes
 
19153
  ;;
 
19154
 
 
19155
irix5* | irix6* | nonstopux*)
 
19156
  case $host_os in
 
19157
    nonstopux*) version_type=nonstopux ;;
 
19158
    *)
 
19159
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19160
                version_type=linux
 
19161
        else
 
19162
                version_type=irix
 
19163
        fi ;;
 
19164
  esac
 
19165
  need_lib_prefix=no
 
19166
  need_version=no
 
19167
  soname_spec='${libname}${release}${shared_ext}$major'
 
19168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19169
  case $host_os in
 
19170
  irix5* | nonstopux*)
 
19171
    libsuff= shlibsuff=
 
19172
    ;;
 
19173
  *)
 
19174
    case $LD in # libtool.m4 will add one of these switches to LD
 
19175
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19176
      libsuff= shlibsuff= libmagic=32-bit;;
 
19177
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19178
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19179
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19180
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19181
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19182
    esac
 
19183
    ;;
 
19184
  esac
 
19185
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19186
  shlibpath_overrides_runpath=no
 
19187
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19188
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19189
  hardcode_into_libs=yes
 
19190
  ;;
 
19191
 
 
19192
# No shared lib support for Linux oldld, aout, or coff.
 
19193
linux*oldld* | linux*aout* | linux*coff*)
 
19194
  dynamic_linker=no
 
19195
  ;;
 
19196
 
 
19197
# This must be Linux ELF.
 
19198
linux* | k*bsd*-gnu)
 
19199
  version_type=linux
 
19200
  need_lib_prefix=no
 
19201
  need_version=no
 
19202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19203
  soname_spec='${libname}${release}${shared_ext}$major'
 
19204
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19205
  shlibpath_var=LD_LIBRARY_PATH
 
19206
  shlibpath_overrides_runpath=no
 
19207
  # This implies no fast_install, which is unacceptable.
 
19208
  # Some rework will be needed to allow for fast_install
 
19209
  # before this can be enabled.
 
19210
  hardcode_into_libs=yes
 
19211
 
 
19212
  # Append ld.so.conf contents to the search path
 
19213
  if test -f /etc/ld.so.conf; then
 
19214
    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' ' '`
 
19215
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19216
  fi
 
19217
 
 
19218
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19219
  # powerpc, because MkLinux only supported shared libraries with the
 
19220
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19221
  # most powerpc-linux boxes support dynamic linking these days and
 
19222
  # people can always --disable-shared, the test was removed, and we
 
19223
  # assume the GNU/Linux dynamic linker is in use.
 
19224
  dynamic_linker='GNU/Linux ld.so'
 
19225
  ;;
 
19226
 
 
19227
netbsd*)
 
19228
  version_type=sunos
 
19229
  need_lib_prefix=no
 
19230
  need_version=no
 
19231
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19232
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19233
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19234
    dynamic_linker='NetBSD (a.out) ld.so'
 
19235
  else
 
19236
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19237
    soname_spec='${libname}${release}${shared_ext}$major'
 
19238
    dynamic_linker='NetBSD ld.elf_so'
 
19239
  fi
 
19240
  shlibpath_var=LD_LIBRARY_PATH
 
19241
  shlibpath_overrides_runpath=yes
 
19242
  hardcode_into_libs=yes
 
19243
  ;;
 
19244
 
 
19245
newsos6)
 
19246
  version_type=linux
 
19247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19248
  shlibpath_var=LD_LIBRARY_PATH
 
19249
  shlibpath_overrides_runpath=yes
 
19250
  ;;
 
19251
 
 
19252
nto-qnx*)
 
19253
  version_type=linux
 
19254
  need_lib_prefix=no
 
19255
  need_version=no
 
19256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19257
  soname_spec='${libname}${release}${shared_ext}$major'
 
19258
  shlibpath_var=LD_LIBRARY_PATH
 
19259
  shlibpath_overrides_runpath=yes
 
19260
  ;;
 
19261
 
 
19262
openbsd*)
 
19263
  version_type=sunos
 
19264
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19265
  need_lib_prefix=no
 
19266
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19267
  case $host_os in
 
19268
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19269
    *)                         need_version=no  ;;
 
19270
  esac
 
19271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19272
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19273
  shlibpath_var=LD_LIBRARY_PATH
 
19274
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19275
    case $host_os in
 
19276
      openbsd2.[89] | openbsd2.[89].*)
 
19277
        shlibpath_overrides_runpath=no
 
19278
        ;;
 
19279
      *)
 
19280
        shlibpath_overrides_runpath=yes
 
19281
        ;;
 
19282
      esac
 
19283
  else
 
19284
    shlibpath_overrides_runpath=yes
 
19285
  fi
 
19286
  ;;
 
19287
 
 
19288
os2*)
 
19289
  libname_spec='$name'
 
19290
  shrext_cmds=".dll"
 
19291
  need_lib_prefix=no
 
19292
  library_names_spec='$libname${shared_ext} $libname.a'
 
19293
  dynamic_linker='OS/2 ld.exe'
 
19294
  shlibpath_var=LIBPATH
 
19295
  ;;
 
19296
 
 
19297
osf3* | osf4* | osf5*)
 
19298
  version_type=osf
 
19299
  need_lib_prefix=no
 
19300
  need_version=no
 
19301
  soname_spec='${libname}${release}${shared_ext}$major'
 
19302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19303
  shlibpath_var=LD_LIBRARY_PATH
 
19304
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19305
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19306
  ;;
 
19307
 
 
19308
rdos*)
 
19309
  dynamic_linker=no
 
19310
  ;;
 
19311
 
 
19312
solaris*)
 
19313
  version_type=linux
 
19314
  need_lib_prefix=no
 
19315
  need_version=no
 
19316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19317
  soname_spec='${libname}${release}${shared_ext}$major'
 
19318
  shlibpath_var=LD_LIBRARY_PATH
 
19319
  shlibpath_overrides_runpath=yes
 
19320
  hardcode_into_libs=yes
 
19321
  # ldd complains unless libraries are executable
 
19322
  postinstall_cmds='chmod +x $lib'
 
19323
  ;;
 
19324
 
 
19325
sunos4*)
 
19326
  version_type=sunos
 
19327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19328
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19329
  shlibpath_var=LD_LIBRARY_PATH
 
19330
  shlibpath_overrides_runpath=yes
 
19331
  if test "$with_gnu_ld" = yes; then
 
19332
    need_lib_prefix=no
 
19333
  fi
 
19334
  need_version=yes
 
19335
  ;;
 
19336
 
 
19337
sysv4 | sysv4.3*)
 
19338
  version_type=linux
 
19339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19340
  soname_spec='${libname}${release}${shared_ext}$major'
 
19341
  shlibpath_var=LD_LIBRARY_PATH
 
19342
  case $host_vendor in
 
19343
    sni)
 
19344
      shlibpath_overrides_runpath=no
 
19345
      need_lib_prefix=no
 
19346
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19347
      runpath_var=LD_RUN_PATH
 
19348
      ;;
 
19349
    siemens)
 
19350
      need_lib_prefix=no
 
19351
      ;;
 
19352
    motorola)
 
19353
      need_lib_prefix=no
 
19354
      need_version=no
 
19355
      shlibpath_overrides_runpath=no
 
19356
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19357
      ;;
 
19358
  esac
 
19359
  ;;
 
19360
 
 
19361
sysv4*MP*)
 
19362
  if test -d /usr/nec ;then
 
19363
    version_type=linux
 
19364
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19365
    soname_spec='$libname${shared_ext}.$major'
 
19366
    shlibpath_var=LD_LIBRARY_PATH
 
19367
  fi
 
19368
  ;;
 
19369
 
 
19370
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19371
  version_type=freebsd-elf
 
19372
  need_lib_prefix=no
 
19373
  need_version=no
 
19374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19375
  soname_spec='${libname}${release}${shared_ext}$major'
 
19376
  shlibpath_var=LD_LIBRARY_PATH
 
19377
  hardcode_into_libs=yes
 
19378
  if test "$with_gnu_ld" = yes; then
 
19379
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19380
    shlibpath_overrides_runpath=no
 
19381
  else
 
19382
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19383
    shlibpath_overrides_runpath=yes
 
19384
    case $host_os in
 
19385
      sco3.2v5*)
 
19386
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19387
        ;;
 
19388
    esac
 
19389
  fi
 
19390
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19391
  ;;
 
19392
 
 
19393
uts4*)
 
19394
  version_type=linux
 
19395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19396
  soname_spec='${libname}${release}${shared_ext}$major'
 
19397
  shlibpath_var=LD_LIBRARY_PATH
 
19398
  ;;
 
19399
 
 
19400
*)
 
19401
  dynamic_linker=no
 
19402
  ;;
 
19403
esac
 
19404
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19405
$as_echo "$dynamic_linker" >&6; }
 
19406
test "$dynamic_linker" = no && can_build_shared=no
 
19407
 
 
19408
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19409
  $as_echo_n "(cached) " >&6
 
19410
else
 
19411
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19412
fi
 
19413
 
 
19414
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19415
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19416
  $as_echo_n "(cached) " >&6
 
19417
else
 
19418
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19419
fi
 
19420
 
 
19421
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19422
 
 
19423
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19424
if test "$GCC" = yes; then
 
19425
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19426
fi
 
19427
 
 
19428
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19429
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
19430
hardcode_action_GCJ=
 
19431
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19432
   test -n "$runpath_var_GCJ" || \
 
19433
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19434
 
 
19435
  # We can hardcode non-existant directories.
 
19436
  if test "$hardcode_direct_GCJ" != no &&
 
19437
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19438
     # have to relink, otherwise we might link with an installed library
 
19439
     # when we should be linking with a yet-to-be-installed one
 
19440
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19441
     test "$hardcode_minus_L_GCJ" != no; then
 
19442
    # Linking always hardcodes the temporary library directory.
 
19443
    hardcode_action_GCJ=relink
 
19444
  else
 
19445
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19446
    hardcode_action_GCJ=immediate
 
19447
  fi
 
19448
else
 
19449
  # We cannot hardcode anything, or else we can only hardcode existing
 
19450
  # directories.
 
19451
  hardcode_action_GCJ=unsupported
 
19452
fi
 
19453
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19454
$as_echo "$hardcode_action_GCJ" >&6; }
 
19455
 
 
19456
if test "$hardcode_action_GCJ" = relink; then
 
19457
  # Fast installation is not supported
 
19458
  enable_fast_install=no
 
19459
elif test "$shlibpath_overrides_runpath" = yes ||
 
19460
     test "$enable_shared" = no; then
 
19461
  # Fast installation is not necessary
 
19462
  enable_fast_install=needless
 
19463
fi
 
19464
 
 
19465
 
 
19466
# The else clause should only fire when bootstrapping the
 
19467
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19468
# with your package, and you will get complaints that there are
 
19469
# no rules to generate ltmain.sh.
 
19470
if test -f "$ltmain"; then
 
19471
  # See if we are running on zsh, and set the options which allow our commands through
 
19472
  # without removal of \ escapes.
 
19473
  if test -n "${ZSH_VERSION+set}" ; then
 
19474
    setopt NO_GLOB_SUBST
 
19475
  fi
 
19476
  # Now quote all the things that may contain metacharacters while being
 
19477
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19478
  # variables and quote the copies for generation of the libtool script.
 
19479
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19480
    SED SHELL STRIP \
 
19481
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19482
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19483
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19484
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19485
    lt_cv_sys_global_symbol_to_c_name_address \
 
19486
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19487
    old_postinstall_cmds old_postuninstall_cmds \
 
19488
    compiler_GCJ \
 
19489
    CC_GCJ \
 
19490
    LD_GCJ \
 
19491
    lt_prog_compiler_wl_GCJ \
 
19492
    lt_prog_compiler_pic_GCJ \
 
19493
    lt_prog_compiler_static_GCJ \
 
19494
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19495
    export_dynamic_flag_spec_GCJ \
 
19496
    thread_safe_flag_spec_GCJ \
 
19497
    whole_archive_flag_spec_GCJ \
 
19498
    enable_shared_with_static_runtimes_GCJ \
 
19499
    old_archive_cmds_GCJ \
 
19500
    old_archive_from_new_cmds_GCJ \
 
19501
    predep_objects_GCJ \
 
19502
    postdep_objects_GCJ \
 
19503
    predeps_GCJ \
 
19504
    postdeps_GCJ \
 
19505
    compiler_lib_search_path_GCJ \
 
19506
    compiler_lib_search_dirs_GCJ \
 
19507
    archive_cmds_GCJ \
 
19508
    archive_expsym_cmds_GCJ \
 
19509
    postinstall_cmds_GCJ \
 
19510
    postuninstall_cmds_GCJ \
 
19511
    old_archive_from_expsyms_cmds_GCJ \
 
19512
    allow_undefined_flag_GCJ \
 
19513
    no_undefined_flag_GCJ \
 
19514
    export_symbols_cmds_GCJ \
 
19515
    hardcode_libdir_flag_spec_GCJ \
 
19516
    hardcode_libdir_flag_spec_ld_GCJ \
 
19517
    hardcode_libdir_separator_GCJ \
 
19518
    hardcode_automatic_GCJ \
 
19519
    module_cmds_GCJ \
 
19520
    module_expsym_cmds_GCJ \
 
19521
    lt_cv_prog_compiler_c_o_GCJ \
 
19522
    fix_srcfile_path_GCJ \
 
19523
    exclude_expsyms_GCJ \
 
19524
    include_expsyms_GCJ; do
 
19525
 
 
19526
    case $var in
 
19527
    old_archive_cmds_GCJ | \
 
19528
    old_archive_from_new_cmds_GCJ | \
 
19529
    archive_cmds_GCJ | \
 
19530
    archive_expsym_cmds_GCJ | \
 
19531
    module_cmds_GCJ | \
 
19532
    module_expsym_cmds_GCJ | \
 
19533
    old_archive_from_expsyms_cmds_GCJ | \
 
19534
    export_symbols_cmds_GCJ | \
 
19535
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19536
    postinstall_cmds | postuninstall_cmds | \
 
19537
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19538
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19539
      # Double-quote double-evaled strings.
 
19540
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19541
      ;;
 
19542
    *)
 
19543
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19544
      ;;
 
19545
    esac
 
19546
  done
 
19547
 
 
19548
  case $lt_echo in
 
19549
  *'\$0 --fallback-echo"')
 
19550
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19551
    ;;
 
19552
  esac
 
19553
 
 
19554
cfgfile="$ofile"
 
19555
 
 
19556
  cat <<__EOF__ >> "$cfgfile"
 
19557
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19558
 
 
19559
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19560
 
 
19561
# Shell to use when invoking shell scripts.
 
19562
SHELL=$lt_SHELL
 
19563
 
 
19564
# Whether or not to build shared libraries.
 
19565
build_libtool_libs=$enable_shared
 
19566
 
 
19567
# Whether or not to build static libraries.
 
19568
build_old_libs=$enable_static
 
19569
 
 
19570
# Whether or not to add -lc for building shared libraries.
 
19571
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19572
 
 
19573
# Whether or not to disallow shared libs when runtime libs are static
 
19574
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19575
 
 
19576
# Whether or not to optimize for fast installation.
 
19577
fast_install=$enable_fast_install
 
19578
 
 
19579
# The host system.
 
19580
host_alias=$host_alias
 
19581
host=$host
 
19582
host_os=$host_os
 
19583
 
 
19584
# The build system.
 
19585
build_alias=$build_alias
 
19586
build=$build
 
19587
build_os=$build_os
 
19588
 
 
19589
# An echo program that does not interpret backslashes.
 
19590
echo=$lt_echo
 
19591
 
 
19592
# The archiver.
 
19593
AR=$lt_AR
 
19594
AR_FLAGS=$lt_AR_FLAGS
 
19595
 
 
19596
# A C compiler.
 
19597
LTCC=$lt_LTCC
 
19598
 
 
19599
# LTCC compiler flags.
 
19600
LTCFLAGS=$lt_LTCFLAGS
 
19601
 
 
19602
# A language-specific compiler.
 
19603
CC=$lt_compiler_GCJ
 
19604
 
 
19605
# Is the compiler the GNU C compiler?
 
19606
with_gcc=$GCC_GCJ
 
19607
 
 
19608
# An ERE matcher.
 
19609
EGREP=$lt_EGREP
 
19610
 
 
19611
# The linker used to build libraries.
 
19612
LD=$lt_LD_GCJ
 
19613
 
 
19614
# Whether we need hard or soft links.
 
19615
LN_S=$lt_LN_S
 
19616
 
 
19617
# A BSD-compatible nm program.
 
19618
NM=$lt_NM
 
19619
 
 
19620
# A symbol stripping program
 
19621
STRIP=$lt_STRIP
 
19622
 
 
19623
# Used to examine libraries when file_magic_cmd begins "file"
 
19624
MAGIC_CMD=$MAGIC_CMD
 
19625
 
 
19626
# Used on cygwin: DLL creation program.
 
19627
DLLTOOL="$DLLTOOL"
 
19628
 
 
19629
# Used on cygwin: object dumper.
 
19630
OBJDUMP="$OBJDUMP"
 
19631
 
 
19632
# Used on cygwin: assembler.
 
19633
AS="$AS"
 
19634
 
 
19635
# The name of the directory that contains temporary libtool files.
 
19636
objdir=$objdir
 
19637
 
 
19638
# How to create reloadable object files.
 
19639
reload_flag=$lt_reload_flag
 
19640
reload_cmds=$lt_reload_cmds
 
19641
 
 
19642
# How to pass a linker flag through the compiler.
 
19643
wl=$lt_lt_prog_compiler_wl_GCJ
 
19644
 
 
19645
# Object file suffix (normally "o").
 
19646
objext="$ac_objext"
 
19647
 
 
19648
# Old archive suffix (normally "a").
 
19649
libext="$libext"
 
19650
 
 
19651
# Shared library suffix (normally ".so").
 
19652
shrext_cmds='$shrext_cmds'
 
19653
 
 
19654
# Executable file suffix (normally "").
 
19655
exeext="$exeext"
 
19656
 
 
19657
# Additional compiler flags for building library objects.
 
19658
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19659
pic_mode=$pic_mode
 
19660
 
 
19661
# What is the maximum length of a command?
 
19662
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19663
 
 
19664
# Does compiler simultaneously support -c and -o options?
 
19665
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19666
 
 
19667
# Must we lock files when doing compilation?
 
19668
need_locks=$lt_need_locks
 
19669
 
 
19670
# Do we need the lib prefix for modules?
 
19671
need_lib_prefix=$need_lib_prefix
 
19672
 
 
19673
# Do we need a version for libraries?
 
19674
need_version=$need_version
 
19675
 
 
19676
# Whether dlopen is supported.
 
19677
dlopen_support=$enable_dlopen
 
19678
 
 
19679
# Whether dlopen of programs is supported.
 
19680
dlopen_self=$enable_dlopen_self
 
19681
 
 
19682
# Whether dlopen of statically linked programs is supported.
 
19683
dlopen_self_static=$enable_dlopen_self_static
 
19684
 
 
19685
# Compiler flag to prevent dynamic linking.
 
19686
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19687
 
 
19688
# Compiler flag to turn off builtin functions.
 
19689
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19690
 
 
19691
# Compiler flag to allow reflexive dlopens.
 
19692
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19693
 
 
19694
# Compiler flag to generate shared objects directly from archives.
 
19695
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19696
 
 
19697
# Compiler flag to generate thread-safe objects.
 
19698
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19699
 
 
19700
# Library versioning type.
 
19701
version_type=$version_type
 
19702
 
 
19703
# Format of library name prefix.
 
19704
libname_spec=$lt_libname_spec
 
19705
 
 
19706
# List of archive names.  First name is the real one, the rest are links.
 
19707
# The last name is the one that the linker finds with -lNAME.
 
19708
library_names_spec=$lt_library_names_spec
 
19709
 
 
19710
# The coded name of the library, if different from the real name.
 
19711
soname_spec=$lt_soname_spec
 
19712
 
 
19713
# Commands used to build and install an old-style archive.
 
19714
RANLIB=$lt_RANLIB
 
19715
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19716
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19717
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19718
 
 
19719
# Create an old-style archive from a shared archive.
 
19720
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19721
 
 
19722
# Create a temporary old-style archive to link instead of a shared archive.
 
19723
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19724
 
 
19725
# Commands used to build and install a shared archive.
 
19726
archive_cmds=$lt_archive_cmds_GCJ
 
19727
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19728
postinstall_cmds=$lt_postinstall_cmds
 
19729
postuninstall_cmds=$lt_postuninstall_cmds
 
19730
 
 
19731
# Commands used to build a loadable module (assumed same as above if empty)
 
19732
module_cmds=$lt_module_cmds_GCJ
 
19733
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19734
 
 
19735
# Commands to strip libraries.
 
19736
old_striplib=$lt_old_striplib
 
19737
striplib=$lt_striplib
 
19738
 
 
19739
# Dependencies to place before the objects being linked to create a
 
19740
# shared library.
 
19741
predep_objects=$lt_predep_objects_GCJ
 
19742
 
 
19743
# Dependencies to place after the objects being linked to create a
 
19744
# shared library.
 
19745
postdep_objects=$lt_postdep_objects_GCJ
 
19746
 
 
19747
# Dependencies to place before the objects being linked to create a
 
19748
# shared library.
 
19749
predeps=$lt_predeps_GCJ
 
19750
 
 
19751
# Dependencies to place after the objects being linked to create a
 
19752
# shared library.
 
19753
postdeps=$lt_postdeps_GCJ
 
19754
 
 
19755
# The directories searched by this compiler when creating a shared
 
19756
# library
 
19757
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19758
 
 
19759
# The library search path used internally by the compiler when linking
 
19760
# a shared library.
 
19761
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19762
 
 
19763
# Method to check whether dependent libraries are shared objects.
 
19764
deplibs_check_method=$lt_deplibs_check_method
 
19765
 
 
19766
# Command to use when deplibs_check_method == file_magic.
 
19767
file_magic_cmd=$lt_file_magic_cmd
 
19768
 
 
19769
# Flag that allows shared libraries with undefined symbols to be built.
 
19770
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19771
 
 
19772
# Flag that forces no undefined symbols.
 
19773
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19774
 
 
19775
# Commands used to finish a libtool library installation in a directory.
 
19776
finish_cmds=$lt_finish_cmds
 
19777
 
 
19778
# Same as above, but a single script fragment to be evaled but not shown.
 
19779
finish_eval=$lt_finish_eval
 
19780
 
 
19781
# Take the output of nm and produce a listing of raw symbols and C names.
 
19782
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19783
 
 
19784
# Transform the output of nm in a proper C declaration
 
19785
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19786
 
 
19787
# Transform the output of nm in a C name address pair
 
19788
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19789
 
 
19790
# This is the shared library runtime path variable.
 
19791
runpath_var=$runpath_var
 
19792
 
 
19793
# This is the shared library path variable.
 
19794
shlibpath_var=$shlibpath_var
 
19795
 
 
19796
# Is shlibpath searched before the hard-coded library search path?
 
19797
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19798
 
 
19799
# How to hardcode a shared library path into an executable.
 
19800
hardcode_action=$hardcode_action_GCJ
 
19801
 
 
19802
# Whether we should hardcode library paths into libraries.
 
19803
hardcode_into_libs=$hardcode_into_libs
 
19804
 
 
19805
# Flag to hardcode \$libdir into a binary during linking.
 
19806
# This must work even if \$libdir does not exist.
 
19807
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19808
 
 
19809
# If ld is used when linking, flag to hardcode \$libdir into
 
19810
# a binary during linking. This must work even if \$libdir does
 
19811
# not exist.
 
19812
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19813
 
 
19814
# Whether we need a single -rpath flag with a separated argument.
 
19815
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19816
 
 
19817
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19818
# resulting binary.
 
19819
hardcode_direct=$hardcode_direct_GCJ
 
19820
 
 
19821
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19822
# resulting binary.
 
19823
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19824
 
 
19825
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19826
# the resulting binary.
 
19827
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19828
 
 
19829
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19830
# and all subsequent libraries and executables linked against it.
 
19831
hardcode_automatic=$hardcode_automatic_GCJ
 
19832
 
 
19833
# Variables whose values should be saved in libtool wrapper scripts and
 
19834
# restored at relink time.
 
19835
variables_saved_for_relink="$variables_saved_for_relink"
 
19836
 
 
19837
# Whether libtool must link a program against all its dependency libraries.
 
19838
link_all_deplibs=$link_all_deplibs_GCJ
 
19839
 
 
19840
# Compile-time system search path for libraries
 
19841
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19842
 
 
19843
# Run-time system search path for libraries
 
19844
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19845
 
 
19846
# Fix the shell variable \$srcfile for the compiler.
 
19847
fix_srcfile_path=$lt_fix_srcfile_path
 
19848
 
 
19849
# Set to yes if exported symbols are required.
 
19850
always_export_symbols=$always_export_symbols_GCJ
 
19851
 
 
19852
# The commands to list exported symbols.
 
19853
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19854
 
 
19855
# The commands to extract the exported symbol list from a shared archive.
 
19856
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19857
 
 
19858
# Symbols that should not be listed in the preloaded symbols.
 
19859
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19860
 
 
19861
# Symbols that must always be exported.
 
19862
include_expsyms=$lt_include_expsyms_GCJ
 
19863
 
 
19864
# ### END LIBTOOL TAG CONFIG: $tagname
 
19865
 
 
19866
__EOF__
 
19867
 
 
19868
 
 
19869
else
 
19870
  # If there is no Makefile yet, we rely on a make rule to execute
 
19871
  # `config.status --recheck' to rerun these tests and create the
 
19872
  # libtool script then.
 
19873
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19874
  if test -f "$ltmain_in"; then
 
19875
    test -f Makefile && make "$ltmain"
 
19876
  fi
 
19877
fi
 
19878
 
 
19879
 
 
19880
ac_ext=c
 
19881
ac_cpp='$CPP $CPPFLAGS'
 
19882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19885
 
 
19886
CC="$lt_save_CC"
 
19887
 
 
19888
        else
 
19889
          tagname=""
 
19890
        fi
 
19891
        ;;
 
19892
 
 
19893
      RC)
 
19894
 
 
19895
 
 
19896
# Source file extension for RC test sources.
 
19897
ac_ext=rc
 
19898
 
 
19899
# Object file extension for compiled RC test sources.
 
19900
objext=o
 
19901
objext_RC=$objext
 
19902
 
 
19903
# Code to be used in simple compile tests
 
19904
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19905
 
 
19906
# Code to be used in simple link tests
 
19907
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19908
 
 
19909
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19910
 
 
19911
# If no C compiler was specified, use CC.
 
19912
LTCC=${LTCC-"$CC"}
 
19913
 
 
19914
# If no C compiler flags were specified, use CFLAGS.
 
19915
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19916
 
 
19917
# Allow CC to be a program name with arguments.
 
19918
compiler=$CC
 
19919
 
 
19920
 
 
19921
# save warnings/boilerplate of simple test code
 
19922
ac_outfile=conftest.$ac_objext
 
19923
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19924
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19925
_lt_compiler_boilerplate=`cat conftest.err`
 
19926
$rm conftest*
 
19927
 
 
19928
ac_outfile=conftest.$ac_objext
 
19929
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19930
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19931
_lt_linker_boilerplate=`cat conftest.err`
 
19932
$rm -r conftest*
 
19933
 
 
19934
 
 
19935
# Allow CC to be a program name with arguments.
 
19936
lt_save_CC="$CC"
 
19937
CC=${RC-"windres"}
 
19938
compiler=$CC
 
19939
compiler_RC=$CC
 
19940
for cc_temp in $compiler""; do
 
19941
  case $cc_temp in
 
19942
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19943
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19944
    \-*) ;;
 
19945
    *) break;;
 
19946
  esac
 
19947
done
 
19948
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19949
 
 
19950
lt_cv_prog_compiler_c_o_RC=yes
 
19951
 
 
19952
# The else clause should only fire when bootstrapping the
 
19953
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19954
# with your package, and you will get complaints that there are
 
19955
# no rules to generate ltmain.sh.
 
19956
if test -f "$ltmain"; then
 
19957
  # See if we are running on zsh, and set the options which allow our commands through
 
19958
  # without removal of \ escapes.
 
19959
  if test -n "${ZSH_VERSION+set}" ; then
 
19960
    setopt NO_GLOB_SUBST
 
19961
  fi
 
19962
  # Now quote all the things that may contain metacharacters while being
 
19963
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19964
  # variables and quote the copies for generation of the libtool script.
 
19965
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19966
    SED SHELL STRIP \
 
19967
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19968
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19969
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19970
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19971
    lt_cv_sys_global_symbol_to_c_name_address \
 
19972
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19973
    old_postinstall_cmds old_postuninstall_cmds \
 
19974
    compiler_RC \
 
19975
    CC_RC \
 
19976
    LD_RC \
 
19977
    lt_prog_compiler_wl_RC \
 
19978
    lt_prog_compiler_pic_RC \
 
19979
    lt_prog_compiler_static_RC \
 
19980
    lt_prog_compiler_no_builtin_flag_RC \
 
19981
    export_dynamic_flag_spec_RC \
 
19982
    thread_safe_flag_spec_RC \
 
19983
    whole_archive_flag_spec_RC \
 
19984
    enable_shared_with_static_runtimes_RC \
 
19985
    old_archive_cmds_RC \
 
19986
    old_archive_from_new_cmds_RC \
 
19987
    predep_objects_RC \
 
19988
    postdep_objects_RC \
 
19989
    predeps_RC \
 
19990
    postdeps_RC \
 
19991
    compiler_lib_search_path_RC \
 
19992
    compiler_lib_search_dirs_RC \
 
19993
    archive_cmds_RC \
 
19994
    archive_expsym_cmds_RC \
 
19995
    postinstall_cmds_RC \
 
19996
    postuninstall_cmds_RC \
 
19997
    old_archive_from_expsyms_cmds_RC \
 
19998
    allow_undefined_flag_RC \
 
19999
    no_undefined_flag_RC \
 
20000
    export_symbols_cmds_RC \
 
20001
    hardcode_libdir_flag_spec_RC \
 
20002
    hardcode_libdir_flag_spec_ld_RC \
 
20003
    hardcode_libdir_separator_RC \
 
20004
    hardcode_automatic_RC \
 
20005
    module_cmds_RC \
 
20006
    module_expsym_cmds_RC \
 
20007
    lt_cv_prog_compiler_c_o_RC \
 
20008
    fix_srcfile_path_RC \
 
20009
    exclude_expsyms_RC \
 
20010
    include_expsyms_RC; do
 
20011
 
 
20012
    case $var in
 
20013
    old_archive_cmds_RC | \
 
20014
    old_archive_from_new_cmds_RC | \
 
20015
    archive_cmds_RC | \
 
20016
    archive_expsym_cmds_RC | \
 
20017
    module_cmds_RC | \
 
20018
    module_expsym_cmds_RC | \
 
20019
    old_archive_from_expsyms_cmds_RC | \
 
20020
    export_symbols_cmds_RC | \
 
20021
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20022
    postinstall_cmds | postuninstall_cmds | \
 
20023
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20024
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20025
      # Double-quote double-evaled strings.
 
20026
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20027
      ;;
 
20028
    *)
 
20029
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20030
      ;;
 
20031
    esac
 
20032
  done
 
20033
 
 
20034
  case $lt_echo in
 
20035
  *'\$0 --fallback-echo"')
 
20036
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20037
    ;;
 
20038
  esac
 
20039
 
 
20040
cfgfile="$ofile"
 
20041
 
 
20042
  cat <<__EOF__ >> "$cfgfile"
 
20043
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20044
 
 
20045
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20046
 
 
20047
# Shell to use when invoking shell scripts.
 
20048
SHELL=$lt_SHELL
 
20049
 
 
20050
# Whether or not to build shared libraries.
 
20051
build_libtool_libs=$enable_shared
 
20052
 
 
20053
# Whether or not to build static libraries.
 
20054
build_old_libs=$enable_static
 
20055
 
 
20056
# Whether or not to add -lc for building shared libraries.
 
20057
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20058
 
 
20059
# Whether or not to disallow shared libs when runtime libs are static
 
20060
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20061
 
 
20062
# Whether or not to optimize for fast installation.
 
20063
fast_install=$enable_fast_install
 
20064
 
 
20065
# The host system.
 
20066
host_alias=$host_alias
 
20067
host=$host
 
20068
host_os=$host_os
 
20069
 
 
20070
# The build system.
 
20071
build_alias=$build_alias
 
20072
build=$build
 
20073
build_os=$build_os
 
20074
 
 
20075
# An echo program that does not interpret backslashes.
 
20076
echo=$lt_echo
 
20077
 
 
20078
# The archiver.
 
20079
AR=$lt_AR
 
20080
AR_FLAGS=$lt_AR_FLAGS
 
20081
 
 
20082
# A C compiler.
 
20083
LTCC=$lt_LTCC
 
20084
 
 
20085
# LTCC compiler flags.
 
20086
LTCFLAGS=$lt_LTCFLAGS
 
20087
 
 
20088
# A language-specific compiler.
 
20089
CC=$lt_compiler_RC
 
20090
 
 
20091
# Is the compiler the GNU C compiler?
 
20092
with_gcc=$GCC_RC
 
20093
 
 
20094
# An ERE matcher.
 
20095
EGREP=$lt_EGREP
 
20096
 
 
20097
# The linker used to build libraries.
 
20098
LD=$lt_LD_RC
 
20099
 
 
20100
# Whether we need hard or soft links.
 
20101
LN_S=$lt_LN_S
 
20102
 
 
20103
# A BSD-compatible nm program.
 
20104
NM=$lt_NM
 
20105
 
 
20106
# A symbol stripping program
 
20107
STRIP=$lt_STRIP
 
20108
 
 
20109
# Used to examine libraries when file_magic_cmd begins "file"
 
20110
MAGIC_CMD=$MAGIC_CMD
 
20111
 
 
20112
# Used on cygwin: DLL creation program.
 
20113
DLLTOOL="$DLLTOOL"
 
20114
 
 
20115
# Used on cygwin: object dumper.
 
20116
OBJDUMP="$OBJDUMP"
 
20117
 
 
20118
# Used on cygwin: assembler.
 
20119
AS="$AS"
 
20120
 
 
20121
# The name of the directory that contains temporary libtool files.
 
20122
objdir=$objdir
 
20123
 
 
20124
# How to create reloadable object files.
 
20125
reload_flag=$lt_reload_flag
 
20126
reload_cmds=$lt_reload_cmds
 
20127
 
 
20128
# How to pass a linker flag through the compiler.
 
20129
wl=$lt_lt_prog_compiler_wl_RC
 
20130
 
 
20131
# Object file suffix (normally "o").
 
20132
objext="$ac_objext"
 
20133
 
 
20134
# Old archive suffix (normally "a").
 
20135
libext="$libext"
 
20136
 
 
20137
# Shared library suffix (normally ".so").
 
20138
shrext_cmds='$shrext_cmds'
 
20139
 
 
20140
# Executable file suffix (normally "").
 
20141
exeext="$exeext"
 
20142
 
 
20143
# Additional compiler flags for building library objects.
 
20144
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20145
pic_mode=$pic_mode
 
20146
 
 
20147
# What is the maximum length of a command?
 
20148
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20149
 
 
20150
# Does compiler simultaneously support -c and -o options?
 
20151
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20152
 
 
20153
# Must we lock files when doing compilation?
 
20154
need_locks=$lt_need_locks
 
20155
 
 
20156
# Do we need the lib prefix for modules?
 
20157
need_lib_prefix=$need_lib_prefix
 
20158
 
 
20159
# Do we need a version for libraries?
 
20160
need_version=$need_version
 
20161
 
 
20162
# Whether dlopen is supported.
 
20163
dlopen_support=$enable_dlopen
 
20164
 
 
20165
# Whether dlopen of programs is supported.
 
20166
dlopen_self=$enable_dlopen_self
 
20167
 
 
20168
# Whether dlopen of statically linked programs is supported.
 
20169
dlopen_self_static=$enable_dlopen_self_static
 
20170
 
 
20171
# Compiler flag to prevent dynamic linking.
 
20172
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20173
 
 
20174
# Compiler flag to turn off builtin functions.
 
20175
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20176
 
 
20177
# Compiler flag to allow reflexive dlopens.
 
20178
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20179
 
 
20180
# Compiler flag to generate shared objects directly from archives.
 
20181
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20182
 
 
20183
# Compiler flag to generate thread-safe objects.
 
20184
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20185
 
 
20186
# Library versioning type.
 
20187
version_type=$version_type
 
20188
 
 
20189
# Format of library name prefix.
 
20190
libname_spec=$lt_libname_spec
 
20191
 
 
20192
# List of archive names.  First name is the real one, the rest are links.
 
20193
# The last name is the one that the linker finds with -lNAME.
 
20194
library_names_spec=$lt_library_names_spec
 
20195
 
 
20196
# The coded name of the library, if different from the real name.
 
20197
soname_spec=$lt_soname_spec
 
20198
 
 
20199
# Commands used to build and install an old-style archive.
 
20200
RANLIB=$lt_RANLIB
 
20201
old_archive_cmds=$lt_old_archive_cmds_RC
 
20202
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20203
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20204
 
 
20205
# Create an old-style archive from a shared archive.
 
20206
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20207
 
 
20208
# Create a temporary old-style archive to link instead of a shared archive.
 
20209
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20210
 
 
20211
# Commands used to build and install a shared archive.
 
20212
archive_cmds=$lt_archive_cmds_RC
 
20213
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20214
postinstall_cmds=$lt_postinstall_cmds
 
20215
postuninstall_cmds=$lt_postuninstall_cmds
 
20216
 
 
20217
# Commands used to build a loadable module (assumed same as above if empty)
 
20218
module_cmds=$lt_module_cmds_RC
 
20219
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20220
 
 
20221
# Commands to strip libraries.
 
20222
old_striplib=$lt_old_striplib
 
20223
striplib=$lt_striplib
 
20224
 
 
20225
# Dependencies to place before the objects being linked to create a
 
20226
# shared library.
 
20227
predep_objects=$lt_predep_objects_RC
 
20228
 
 
20229
# Dependencies to place after the objects being linked to create a
 
20230
# shared library.
 
20231
postdep_objects=$lt_postdep_objects_RC
 
20232
 
 
20233
# Dependencies to place before the objects being linked to create a
 
20234
# shared library.
 
20235
predeps=$lt_predeps_RC
 
20236
 
 
20237
# Dependencies to place after the objects being linked to create a
 
20238
# shared library.
 
20239
postdeps=$lt_postdeps_RC
 
20240
 
 
20241
# The directories searched by this compiler when creating a shared
 
20242
# library
 
20243
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
20244
 
 
20245
# The library search path used internally by the compiler when linking
 
20246
# a shared library.
 
20247
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20248
 
 
20249
# Method to check whether dependent libraries are shared objects.
 
20250
deplibs_check_method=$lt_deplibs_check_method
 
20251
 
 
20252
# Command to use when deplibs_check_method == file_magic.
 
20253
file_magic_cmd=$lt_file_magic_cmd
 
20254
 
 
20255
# Flag that allows shared libraries with undefined symbols to be built.
 
20256
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20257
 
 
20258
# Flag that forces no undefined symbols.
 
20259
no_undefined_flag=$lt_no_undefined_flag_RC
 
20260
 
 
20261
# Commands used to finish a libtool library installation in a directory.
 
20262
finish_cmds=$lt_finish_cmds
 
20263
 
 
20264
# Same as above, but a single script fragment to be evaled but not shown.
 
20265
finish_eval=$lt_finish_eval
 
20266
 
 
20267
# Take the output of nm and produce a listing of raw symbols and C names.
 
20268
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20269
 
 
20270
# Transform the output of nm in a proper C declaration
 
20271
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20272
 
 
20273
# Transform the output of nm in a C name address pair
 
20274
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20275
 
 
20276
# This is the shared library runtime path variable.
 
20277
runpath_var=$runpath_var
 
20278
 
 
20279
# This is the shared library path variable.
 
20280
shlibpath_var=$shlibpath_var
 
20281
 
 
20282
# Is shlibpath searched before the hard-coded library search path?
 
20283
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20284
 
 
20285
# How to hardcode a shared library path into an executable.
 
20286
hardcode_action=$hardcode_action_RC
 
20287
 
 
20288
# Whether we should hardcode library paths into libraries.
 
20289
hardcode_into_libs=$hardcode_into_libs
 
20290
 
 
20291
# Flag to hardcode \$libdir into a binary during linking.
 
20292
# This must work even if \$libdir does not exist.
 
20293
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20294
 
 
20295
# If ld is used when linking, flag to hardcode \$libdir into
 
20296
# a binary during linking. This must work even if \$libdir does
 
20297
# not exist.
 
20298
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20299
 
 
20300
# Whether we need a single -rpath flag with a separated argument.
 
20301
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20302
 
 
20303
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20304
# resulting binary.
 
20305
hardcode_direct=$hardcode_direct_RC
 
20306
 
 
20307
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20308
# resulting binary.
 
20309
hardcode_minus_L=$hardcode_minus_L_RC
 
20310
 
 
20311
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20312
# the resulting binary.
 
20313
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20314
 
 
20315
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20316
# and all subsequent libraries and executables linked against it.
 
20317
hardcode_automatic=$hardcode_automatic_RC
 
20318
 
 
20319
# Variables whose values should be saved in libtool wrapper scripts and
 
20320
# restored at relink time.
 
20321
variables_saved_for_relink="$variables_saved_for_relink"
 
20322
 
 
20323
# Whether libtool must link a program against all its dependency libraries.
 
20324
link_all_deplibs=$link_all_deplibs_RC
 
20325
 
 
20326
# Compile-time system search path for libraries
 
20327
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20328
 
 
20329
# Run-time system search path for libraries
 
20330
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20331
 
 
20332
# Fix the shell variable \$srcfile for the compiler.
 
20333
fix_srcfile_path=$lt_fix_srcfile_path
 
20334
 
 
20335
# Set to yes if exported symbols are required.
 
20336
always_export_symbols=$always_export_symbols_RC
 
20337
 
 
20338
# The commands to list exported symbols.
 
20339
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20340
 
 
20341
# The commands to extract the exported symbol list from a shared archive.
 
20342
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20343
 
 
20344
# Symbols that should not be listed in the preloaded symbols.
 
20345
exclude_expsyms=$lt_exclude_expsyms_RC
 
20346
 
 
20347
# Symbols that must always be exported.
 
20348
include_expsyms=$lt_include_expsyms_RC
 
20349
 
 
20350
# ### END LIBTOOL TAG CONFIG: $tagname
 
20351
 
 
20352
__EOF__
 
20353
 
 
20354
 
 
20355
else
 
20356
  # If there is no Makefile yet, we rely on a make rule to execute
 
20357
  # `config.status --recheck' to rerun these tests and create the
 
20358
  # libtool script then.
 
20359
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20360
  if test -f "$ltmain_in"; then
 
20361
    test -f Makefile && make "$ltmain"
 
20362
  fi
 
20363
fi
 
20364
 
 
20365
 
 
20366
ac_ext=c
 
20367
ac_cpp='$CPP $CPPFLAGS'
 
20368
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20369
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20370
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20371
 
 
20372
CC="$lt_save_CC"
 
20373
 
 
20374
        ;;
 
20375
 
 
20376
      *)
 
20377
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20378
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20379
   { (exit 1); exit 1; }; }
 
20380
        ;;
 
20381
      esac
 
20382
 
 
20383
      # Append the new tag name to the list of available tags.
 
20384
      if test -n "$tagname" ; then
 
20385
      available_tags="$available_tags $tagname"
 
20386
    fi
 
20387
    fi
 
20388
  done
 
20389
  IFS="$lt_save_ifs"
 
20390
 
 
20391
  # Now substitute the updated list of available tags.
 
20392
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20393
    mv "${ofile}T" "$ofile"
 
20394
    chmod +x "$ofile"
 
20395
  else
 
20396
    rm -f "${ofile}T"
 
20397
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20398
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20399
   { (exit 1); exit 1; }; }
 
20400
  fi
 
20401
fi
 
20402
 
 
20403
 
 
20404
 
 
20405
# This can be used to rebuild libtool when needed
 
20406
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20407
 
 
20408
# Always use our own libtool.
 
20409
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20410
 
 
20411
# Prevent multiple expansion
 
20412
 
 
20413
 
 
20414
 
 
20415
 
 
20416
 
 
20417
 
 
20418
 
 
20419
 
 
20420
 
 
20421
 
 
20422
 
 
20423
 
 
20424
 
 
20425
 
 
20426
 
 
20427
 
 
20428
 
 
20429
 
11512
20430
 
11513
20431
 
11514
20432
 
11569
20487
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
11570
20488
    pic_options='-fPIC'
11571
20489
    ;;
 
20490
i?86-pc-cygwin*)
 
20491
    pic_options='-DDLL_EXPORT'
 
20492
    ;;
11572
20493
i?86-apple-darwin*)
11573
20494
    pic_options='-fno-common'
11574
20495
    ;;
12518
21439
fi
12519
21440
 
12520
21441
 
 
21442
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
21443
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
21444
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
21445
  $as_echo_n "(cached) " >&6
 
21446
else
 
21447
  ac_cv_prog_cc_c99=no
 
21448
ac_save_CC=$CC
 
21449
cat >conftest.$ac_ext <<_ACEOF
 
21450
/* confdefs.h.  */
 
21451
_ACEOF
 
21452
cat confdefs.h >>conftest.$ac_ext
 
21453
cat >>conftest.$ac_ext <<_ACEOF
 
21454
/* end confdefs.h.  */
 
21455
#include <stdarg.h>
 
21456
#include <stdbool.h>
 
21457
#include <stdlib.h>
 
21458
#include <wchar.h>
 
21459
#include <stdio.h>
 
21460
 
 
21461
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
21462
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
21463
#define showlist(...) puts (#__VA_ARGS__)
 
21464
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
21465
static void
 
21466
test_varargs_macros (void)
 
21467
{
 
21468
  int x = 1234;
 
21469
  int y = 5678;
 
21470
  debug ("Flag");
 
21471
  debug ("X = %d\n", x);
 
21472
  showlist (The first, second, and third items.);
 
21473
  report (x>y, "x is %d but y is %d", x, y);
 
21474
}
 
21475
 
 
21476
// Check long long types.
 
21477
#define BIG64 18446744073709551615ull
 
21478
#define BIG32 4294967295ul
 
21479
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
21480
#if !BIG_OK
 
21481
  your preprocessor is broken;
 
21482
#endif
 
21483
#if BIG_OK
 
21484
#else
 
21485
  your preprocessor is broken;
 
21486
#endif
 
21487
static long long int bignum = -9223372036854775807LL;
 
21488
static unsigned long long int ubignum = BIG64;
 
21489
 
 
21490
struct incomplete_array
 
21491
{
 
21492
  int datasize;
 
21493
  double data[];
 
21494
};
 
21495
 
 
21496
struct named_init {
 
21497
  int number;
 
21498
  const wchar_t *name;
 
21499
  double average;
 
21500
};
 
21501
 
 
21502
typedef const char *ccp;
 
21503
 
 
21504
static inline int
 
21505
test_restrict (ccp restrict text)
 
21506
{
 
21507
  // See if C++-style comments work.
 
21508
  // Iterate through items via the restricted pointer.
 
21509
  // Also check for declarations in for loops.
 
21510
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
21511
    continue;
 
21512
  return 0;
 
21513
}
 
21514
 
 
21515
// Check varargs and va_copy.
 
21516
static void
 
21517
test_varargs (const char *format, ...)
 
21518
{
 
21519
  va_list args;
 
21520
  va_start (args, format);
 
21521
  va_list args_copy;
 
21522
  va_copy (args_copy, args);
 
21523
 
 
21524
  const char *str;
 
21525
  int number;
 
21526
  float fnumber;
 
21527
 
 
21528
  while (*format)
 
21529
    {
 
21530
      switch (*format++)
 
21531
        {
 
21532
        case 's': // string
 
21533
          str = va_arg (args_copy, const char *);
 
21534
          break;
 
21535
        case 'd': // int
 
21536
          number = va_arg (args_copy, int);
 
21537
          break;
 
21538
        case 'f': // float
 
21539
          fnumber = va_arg (args_copy, double);
 
21540
          break;
 
21541
        default:
 
21542
          break;
 
21543
        }
 
21544
    }
 
21545
  va_end (args_copy);
 
21546
  va_end (args);
 
21547
}
 
21548
 
 
21549
int
 
21550
main ()
 
21551
{
 
21552
 
 
21553
  // Check bool.
 
21554
  _Bool success = false;
 
21555
 
 
21556
  // Check restrict.
 
21557
  if (test_restrict ("String literal") == 0)
 
21558
    success = true;
 
21559
  char *restrict newvar = "Another string";
 
21560
 
 
21561
  // Check varargs.
 
21562
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
21563
  test_varargs_macros ();
 
21564
 
 
21565
  // Check flexible array members.
 
21566
  struct incomplete_array *ia =
 
21567
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
21568
  ia->datasize = 10;
 
21569
  for (int i = 0; i < ia->datasize; ++i)
 
21570
    ia->data[i] = i * 1.234;
 
21571
 
 
21572
  // Check named initializers.
 
21573
  struct named_init ni = {
 
21574
    .number = 34,
 
21575
    .name = L"Test wide string",
 
21576
    .average = 543.34343,
 
21577
  };
 
21578
 
 
21579
  ni.number = 58;
 
21580
 
 
21581
  int dynamic_array[ni.number];
 
21582
  dynamic_array[ni.number - 1] = 543;
 
21583
 
 
21584
  // work around unused variable warnings
 
21585
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
21586
          || dynamic_array[ni.number - 1] != 543);
 
21587
 
 
21588
  ;
 
21589
  return 0;
 
21590
}
 
21591
_ACEOF
 
21592
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
21593
do
 
21594
  CC="$ac_save_CC $ac_arg"
 
21595
  rm -f conftest.$ac_objext
 
21596
if { (ac_try="$ac_compile"
 
21597
case "(($ac_try" in
 
21598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21599
  *) ac_try_echo=$ac_try;;
 
21600
esac
 
21601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21602
$as_echo "$ac_try_echo") >&5
 
21603
  (eval "$ac_compile") 2>conftest.er1
 
21604
  ac_status=$?
 
21605
  grep -v '^ *+' conftest.er1 >conftest.err
 
21606
  rm -f conftest.er1
 
21607
  cat conftest.err >&5
 
21608
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21609
  (exit $ac_status); } && {
 
21610
         test -z "$ac_c_werror_flag" ||
 
21611
         test ! -s conftest.err
 
21612
       } && test -s conftest.$ac_objext; then
 
21613
  ac_cv_prog_cc_c99=$ac_arg
 
21614
else
 
21615
  $as_echo "$as_me: failed program was:" >&5
 
21616
sed 's/^/| /' conftest.$ac_ext >&5
 
21617
 
 
21618
 
 
21619
fi
 
21620
 
 
21621
rm -f core conftest.err conftest.$ac_objext
 
21622
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
21623
done
 
21624
rm -f conftest.$ac_ext
 
21625
CC=$ac_save_CC
 
21626
 
 
21627
fi
 
21628
# AC_CACHE_VAL
 
21629
case "x$ac_cv_prog_cc_c99" in
 
21630
  x)
 
21631
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
21632
$as_echo "none needed" >&6; } ;;
 
21633
  xno)
 
21634
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
21635
$as_echo "unsupported" >&6; } ;;
 
21636
  *)
 
21637
    CC="$CC $ac_cv_prog_cc_c99"
 
21638
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
21639
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
21640
esac
 
21641
 
 
21642
 
 
21643
 
 
21644
 
12521
21645
 
12522
21646
 
12523
21647
if  test "x$GCC" = xyes ; then
12524
21648
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12525
21649
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12526
21650
-Wbad-function-cast"
12527
 
    case `gcc -dumpversion` in
 
21651
    case `$CC -dumpversion` in
12528
21652
    3.4.* | 4.*)
12529
 
        CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
 
21653
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12530
21654
        ;;
12531
21655
    esac
12532
21656
else
12594
21718
    fi
12595
21719
fi
12596
21720
 
 
21721
# Check whether --enable-silent-rules was given.
 
21722
if test "${enable_silent_rules+set}" = set; then
 
21723
  enableval=$enable_silent_rules;
 
21724
fi
 
21725
 
 
21726
case $enable_silent_rules in
 
21727
yes) AM_DEFAULT_VERBOSITY=0;;
 
21728
no)  AM_DEFAULT_VERBOSITY=1;;
 
21729
*)   AM_DEFAULT_VERBOSITY=0;;
 
21730
esac
 
21731
AM_BACKSLASH='\'
 
21732
 
 
21733
 
 
21734
 
 
21735
 
 
21736
 
 
21737
 
 
21738
 
 
21739
# Check whether --enable-strict-compilation was given.
 
21740
if test "${enable_strict_compilation+set}" = set; then
 
21741
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
 
21742
else
 
21743
  STRICT_COMPILE=no
 
21744
fi
 
21745
 
 
21746
if test "x$STRICT_COMPILE" = "xyes"; then
 
21747
        { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
21748
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
21749
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
21750
  $as_echo_n "(cached) " >&6
 
21751
else
 
21752
  cat >conftest.$ac_ext <<_ACEOF
 
21753
/* confdefs.h.  */
 
21754
_ACEOF
 
21755
cat confdefs.h >>conftest.$ac_ext
 
21756
cat >>conftest.$ac_ext <<_ACEOF
 
21757
/* end confdefs.h.  */
 
21758
$ac_includes_default
 
21759
int
 
21760
main ()
 
21761
{
 
21762
#ifndef __SUNPRO_C
 
21763
  (void) __SUNPRO_C;
 
21764
#endif
 
21765
 
 
21766
  ;
 
21767
  return 0;
 
21768
}
 
21769
_ACEOF
 
21770
rm -f conftest.$ac_objext
 
21771
if { (ac_try="$ac_compile"
 
21772
case "(($ac_try" in
 
21773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21774
  *) ac_try_echo=$ac_try;;
 
21775
esac
 
21776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21777
$as_echo "$ac_try_echo") >&5
 
21778
  (eval "$ac_compile") 2>conftest.er1
 
21779
  ac_status=$?
 
21780
  grep -v '^ *+' conftest.er1 >conftest.err
 
21781
  rm -f conftest.er1
 
21782
  cat conftest.err >&5
 
21783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21784
  (exit $ac_status); } && {
 
21785
         test -z "$ac_c_werror_flag" ||
 
21786
         test ! -s conftest.err
 
21787
       } && test -s conftest.$ac_objext; then
 
21788
  ac_cv_have_decl___SUNPRO_C=yes
 
21789
else
 
21790
  $as_echo "$as_me: failed program was:" >&5
 
21791
sed 's/^/| /' conftest.$ac_ext >&5
 
21792
 
 
21793
        ac_cv_have_decl___SUNPRO_C=no
 
21794
fi
 
21795
 
 
21796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21797
fi
 
21798
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
21799
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
21800
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
21801
  SUNCC="yes"
 
21802
else
 
21803
  SUNCC="no"
 
21804
fi
 
21805
 
 
21806
        { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
 
21807
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
 
21808
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
 
21809
  $as_echo_n "(cached) " >&6
 
21810
else
 
21811
  cat >conftest.$ac_ext <<_ACEOF
 
21812
/* confdefs.h.  */
 
21813
_ACEOF
 
21814
cat confdefs.h >>conftest.$ac_ext
 
21815
cat >>conftest.$ac_ext <<_ACEOF
 
21816
/* end confdefs.h.  */
 
21817
$ac_includes_default
 
21818
int
 
21819
main ()
 
21820
{
 
21821
#ifndef __INTEL_COMPILER
 
21822
  (void) __INTEL_COMPILER;
 
21823
#endif
 
21824
 
 
21825
  ;
 
21826
  return 0;
 
21827
}
 
21828
_ACEOF
 
21829
rm -f conftest.$ac_objext
 
21830
if { (ac_try="$ac_compile"
 
21831
case "(($ac_try" in
 
21832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21833
  *) ac_try_echo=$ac_try;;
 
21834
esac
 
21835
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21836
$as_echo "$ac_try_echo") >&5
 
21837
  (eval "$ac_compile") 2>conftest.er1
 
21838
  ac_status=$?
 
21839
  grep -v '^ *+' conftest.er1 >conftest.err
 
21840
  rm -f conftest.er1
 
21841
  cat conftest.err >&5
 
21842
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21843
  (exit $ac_status); } && {
 
21844
         test -z "$ac_c_werror_flag" ||
 
21845
         test ! -s conftest.err
 
21846
       } && test -s conftest.$ac_objext; then
 
21847
  ac_cv_have_decl___INTEL_COMPILER=yes
 
21848
else
 
21849
  $as_echo "$as_me: failed program was:" >&5
 
21850
sed 's/^/| /' conftest.$ac_ext >&5
 
21851
 
 
21852
        ac_cv_have_decl___INTEL_COMPILER=no
 
21853
fi
 
21854
 
 
21855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21856
fi
 
21857
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
 
21858
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
 
21859
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
 
21860
  INTELCC="yes"
 
21861
else
 
21862
  INTELCC="no"
 
21863
fi
 
21864
 
 
21865
        if test "x$GCC" = xyes ; then
 
21866
                STRICT_CFLAGS="-pedantic -Werror"
 
21867
        elif test "x$SUNCC" = "xyes"; then
 
21868
                STRICT_CFLAGS="-errwarn"
 
21869
    elif test "x$INTELCC" = "xyes"; then
 
21870
                STRICT_CFLAGS="-Werror"
 
21871
        fi
 
21872
fi
 
21873
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
21874
 
 
21875
 
 
21876
 
 
21877
 
 
21878
# Check whether --with-release-version was given.
 
21879
if test "${with_release_version+set}" = set; then
 
21880
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
21881
else
 
21882
  RELEASE_VERSION=""
 
21883
fi
 
21884
 
 
21885
        if test "x$RELEASE_VERSION" != "x"; then
 
21886
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
21887
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
21888
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
21889
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
21890
        fi
 
21891
 
 
21892
cat >>confdefs.h <<_ACEOF
 
21893
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
21894
_ACEOF
 
21895
 
 
21896
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
21897
        if test "x$PVM" = "x"; then
 
21898
                PVM="0"
 
21899
        fi
 
21900
 
 
21901
cat >>confdefs.h <<_ACEOF
 
21902
#define PACKAGE_VERSION_MINOR $PVM
 
21903
_ACEOF
 
21904
 
 
21905
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
21906
        if test "x$PVP" = "x"; then
 
21907
                PVP="0"
 
21908
        fi
 
21909
 
 
21910
cat >>confdefs.h <<_ACEOF
 
21911
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
21912
_ACEOF
 
21913
 
 
21914
 
 
21915
 
 
21916
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
21917
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
21918
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
21919
 
 
21920
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
 
21921
 
 
21922
 
 
21923
 
 
21924
 
 
21925
 
 
21926
if test x$APP_MAN_SUFFIX = x    ; then
 
21927
    APP_MAN_SUFFIX=1
 
21928
fi
 
21929
if test x$APP_MAN_DIR = x    ; then
 
21930
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
21931
fi
 
21932
 
 
21933
if test x$LIB_MAN_SUFFIX = x    ; then
 
21934
    LIB_MAN_SUFFIX=3
 
21935
fi
 
21936
if test x$LIB_MAN_DIR = x    ; then
 
21937
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
21938
fi
 
21939
 
 
21940
if test x$FILE_MAN_SUFFIX = x    ; then
 
21941
    case $host_os in
 
21942
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
21943
        *)              FILE_MAN_SUFFIX=5  ;;
 
21944
    esac
 
21945
fi
 
21946
if test x$FILE_MAN_DIR = x    ; then
 
21947
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
21948
fi
 
21949
 
 
21950
if test x$MISC_MAN_SUFFIX = x    ; then
 
21951
    case $host_os in
 
21952
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
21953
        *)              MISC_MAN_SUFFIX=7  ;;
 
21954
    esac
 
21955
fi
 
21956
if test x$MISC_MAN_DIR = x    ; then
 
21957
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
21958
fi
 
21959
 
 
21960
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
21961
    case $host_os in
 
21962
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
21963
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
21964
    esac
 
21965
fi
 
21966
if test x$DRIVER_MAN_DIR = x    ; then
 
21967
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
21968
fi
 
21969
 
 
21970
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
21971
    case $host_os in
 
21972
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
21973
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
21974
    esac
 
21975
fi
 
21976
if test x$ADMIN_MAN_DIR = x    ; then
 
21977
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
21978
fi
 
21979
 
 
21980
 
 
21981
 
 
21982
 
 
21983
 
 
21984
 
 
21985
 
 
21986
 
 
21987
 
 
21988
 
 
21989
 
 
21990
 
 
21991
 
 
21992
 
 
21993
 
12597
21994
 
12598
21995
 
12599
21996
if test x"$CC_FOR_BUILD" = x; then
12748
22145
 
12749
22146
 
12750
22147
 
 
22148
# Find perl for "make check" tests in nls/localerules.in
 
22149
 
 
22150
# Check whether --with-perl was given.
 
22151
if test "${with_perl+set}" = set; then
 
22152
  withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:$LINENO: checking perl" >&5
 
22153
$as_echo_n "checking perl... " >&6; } ;
 
22154
         { $as_echo "$as_me:$LINENO: result: (from --with-perl) $PERL" >&5
 
22155
$as_echo "(from --with-perl) $PERL" >&6; }
 
22156
else
 
22157
  for ac_prog in perl
 
22158
do
 
22159
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
22160
set dummy $ac_prog; ac_word=$2
 
22161
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22162
$as_echo_n "checking for $ac_word... " >&6; }
 
22163
if test "${ac_cv_prog_PERL+set}" = set; then
 
22164
  $as_echo_n "(cached) " >&6
 
22165
else
 
22166
  if test -n "$PERL"; then
 
22167
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
 
22168
else
 
22169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22170
for as_dir in $PATH
 
22171
do
 
22172
  IFS=$as_save_IFS
 
22173
  test -z "$as_dir" && as_dir=.
 
22174
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22175
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22176
    ac_cv_prog_PERL="$ac_prog"
 
22177
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22178
    break 2
 
22179
  fi
 
22180
done
 
22181
done
 
22182
IFS=$as_save_IFS
 
22183
 
 
22184
fi
 
22185
fi
 
22186
PERL=$ac_cv_prog_PERL
 
22187
if test -n "$PERL"; then
 
22188
  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
 
22189
$as_echo "$PERL" >&6; }
 
22190
else
 
22191
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
22192
$as_echo "no" >&6; }
 
22193
fi
 
22194
 
 
22195
 
 
22196
  test -n "$PERL" && break
 
22197
done
 
22198
test -n "$PERL" || PERL="no"
 
22199
 
 
22200
fi
 
22201
 
 
22202
 if test x$PERL != xno; then
 
22203
  HAVE_PERL_TRUE=
 
22204
  HAVE_PERL_FALSE='#'
 
22205
else
 
22206
  HAVE_PERL_TRUE='#'
 
22207
  HAVE_PERL_FALSE=
 
22208
fi
 
22209
 
 
22210
 
12751
22211
# Build with XCB support?
12752
22212
 
12753
22213
# Check whether --with-xcb was given.
13006
22466
case "$ac_cv_use_xcb" in
13007
22467
no)
13008
22468
        X11_REQUIRES="xau xcmiscproto bigreqsproto"
13009
 
        X11_EXTRA_DEPS="xau xdmcp"
 
22469
        X11_EXTRA_DEPS="xau"
13010
22470
 
13011
22471
pkg_failed=no
13012
22472
{ $as_echo "$as_me:$LINENO: checking for XDMCP" >&5
13062
22522
        # Put the nasty error message in config.log where it belongs
13063
22523
        echo "$XDMCP_PKG_ERRORS" >&5
13064
22524
 
13065
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
13066
 
 
13067
 
$XDMCP_PKG_ERRORS
13068
 
 
13069
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13070
 
installed software in a non-standard prefix.
13071
 
 
13072
 
Alternatively, you may set the environment variables XDMCP_CFLAGS
13073
 
and XDMCP_LIBS to avoid the need to call pkg-config.
13074
 
See the pkg-config man page for more details.
13075
 
" >&5
13076
 
$as_echo "$as_me: error: Package requirements (xdmcp) were not met:
13077
 
 
13078
 
$XDMCP_PKG_ERRORS
13079
 
 
13080
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13081
 
installed software in a non-standard prefix.
13082
 
 
13083
 
Alternatively, you may set the environment variables XDMCP_CFLAGS
13084
 
and XDMCP_LIBS to avoid the need to call pkg-config.
13085
 
See the pkg-config man page for more details.
13086
 
" >&2;}
13087
 
   { (exit 1); exit 1; }; }
 
22525
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
22526
$as_echo "no" >&6; }
 
22527
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
22528
$as_echo "no" >&6; }
13088
22529
elif test $pkg_failed = untried; then
13089
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13090
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13091
 
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13092
 
is in your PATH or set the PKG_CONFIG environment variable to the full
13093
 
path to pkg-config.
13094
 
 
13095
 
Alternatively, you may set the environment variables XDMCP_CFLAGS
13096
 
and XDMCP_LIBS to avoid the need to call pkg-config.
13097
 
See the pkg-config man page for more details.
13098
 
 
13099
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13100
 
See \`config.log' for more details." >&5
13101
 
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13102
 
is in your PATH or set the PKG_CONFIG environment variable to the full
13103
 
path to pkg-config.
13104
 
 
13105
 
Alternatively, you may set the environment variables XDMCP_CFLAGS
13106
 
and XDMCP_LIBS to avoid the need to call pkg-config.
13107
 
See the pkg-config man page for more details.
13108
 
 
13109
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13110
 
See \`config.log' for more details." >&2;}
13111
 
   { (exit 1); exit 1; }; }; }
 
22530
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
22531
$as_echo "no" >&6; }
13112
22532
else
13113
22533
        XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
13114
22534
        XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
13115
22535
        { $as_echo "$as_me:$LINENO: result: yes" >&5
13116
22536
$as_echo "yes" >&6; }
13117
 
        :
13118
 
fi
13119
22537
        { $as_echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
13120
22538
$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
13121
22539
if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
13182
22600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
13183
22601
$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
13184
22602
if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then
 
22603
 
 
22604
                        { $as_echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
 
22605
$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
 
22606
if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
 
22607
  $as_echo_n "(cached) " >&6
 
22608
else
 
22609
  ac_check_lib_save_LIBS=$LIBS
 
22610
LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
 
22611
cat >conftest.$ac_ext <<_ACEOF
 
22612
/* confdefs.h.  */
 
22613
_ACEOF
 
22614
cat confdefs.h >>conftest.$ac_ext
 
22615
cat >>conftest.$ac_ext <<_ACEOF
 
22616
/* end confdefs.h.  */
 
22617
 
 
22618
/* Override any GCC internal prototype to avoid an error.
 
22619
   Use char because int might match the return type of a GCC
 
22620
   builtin and then its argument prototype would still apply.  */
 
22621
#ifdef __cplusplus
 
22622
extern "C"
 
22623
#endif
 
22624
char XdmcpWrap ();
 
22625
int
 
22626
main ()
 
22627
{
 
22628
return XdmcpWrap ();
 
22629
  ;
 
22630
  return 0;
 
22631
}
 
22632
_ACEOF
 
22633
rm -f conftest.$ac_objext conftest$ac_exeext
 
22634
if { (ac_try="$ac_link"
 
22635
case "(($ac_try" in
 
22636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22637
  *) ac_try_echo=$ac_try;;
 
22638
esac
 
22639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22640
$as_echo "$ac_try_echo") >&5
 
22641
  (eval "$ac_link") 2>conftest.er1
 
22642
  ac_status=$?
 
22643
  grep -v '^ *+' conftest.er1 >conftest.err
 
22644
  rm -f conftest.er1
 
22645
  cat conftest.err >&5
 
22646
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22647
  (exit $ac_status); } && {
 
22648
         test -z "$ac_c_werror_flag" ||
 
22649
         test ! -s conftest.err
 
22650
       } && test -s conftest$ac_exeext && {
 
22651
         test "$cross_compiling" = yes ||
 
22652
         $as_test_x conftest$ac_exeext
 
22653
       }; then
 
22654
  ac_cv_lib_Xdmcp_XdmcpWrap=yes
 
22655
else
 
22656
  $as_echo "$as_me: failed program was:" >&5
 
22657
sed 's/^/| /' conftest.$ac_ext >&5
 
22658
 
 
22659
        ac_cv_lib_Xdmcp_XdmcpWrap=no
 
22660
fi
 
22661
 
 
22662
rm -rf conftest.dSYM
 
22663
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22664
      conftest$ac_exeext conftest.$ac_ext
 
22665
LIBS=$ac_check_lib_save_LIBS
 
22666
fi
 
22667
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
 
22668
$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
 
22669
if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then
13185
22670
  xdmauth="yes"
13186
22671
else
13187
22672
  xdmauth="no"
13188
22673
fi
13189
22674
 
 
22675
                        X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp"
 
22676
 
 
22677
else
 
22678
 
 
22679
                        XDMCP_CFLAGS=
 
22680
                        XDMCP_LIBS=
 
22681
 
 
22682
fi
 
22683
 
 
22684
fi
13190
22685
 
13191
22686
cat >>confdefs.h <<\_ACEOF
13192
22687
#define USE_XCB 0
13318
22813
 
13319
22814
 
13320
22815
# Transport selection macro from xtrans.m4
 
22816
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
22817
$as_echo_n "checking return type of signal handlers... " >&6; }
 
22818
if test "${ac_cv_type_signal+set}" = set; then
 
22819
  $as_echo_n "(cached) " >&6
 
22820
else
 
22821
  cat >conftest.$ac_ext <<_ACEOF
 
22822
/* confdefs.h.  */
 
22823
_ACEOF
 
22824
cat confdefs.h >>conftest.$ac_ext
 
22825
cat >>conftest.$ac_ext <<_ACEOF
 
22826
/* end confdefs.h.  */
 
22827
#include <sys/types.h>
 
22828
#include <signal.h>
 
22829
 
 
22830
int
 
22831
main ()
 
22832
{
 
22833
return *(signal (0, 0)) (0) == 1;
 
22834
  ;
 
22835
  return 0;
 
22836
}
 
22837
_ACEOF
 
22838
rm -f conftest.$ac_objext
 
22839
if { (ac_try="$ac_compile"
 
22840
case "(($ac_try" in
 
22841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22842
  *) ac_try_echo=$ac_try;;
 
22843
esac
 
22844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22845
$as_echo "$ac_try_echo") >&5
 
22846
  (eval "$ac_compile") 2>conftest.er1
 
22847
  ac_status=$?
 
22848
  grep -v '^ *+' conftest.er1 >conftest.err
 
22849
  rm -f conftest.er1
 
22850
  cat conftest.err >&5
 
22851
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22852
  (exit $ac_status); } && {
 
22853
         test -z "$ac_c_werror_flag" ||
 
22854
         test ! -s conftest.err
 
22855
       } && test -s conftest.$ac_objext; then
 
22856
  ac_cv_type_signal=int
 
22857
else
 
22858
  $as_echo "$as_me: failed program was:" >&5
 
22859
sed 's/^/| /' conftest.$ac_ext >&5
 
22860
 
 
22861
        ac_cv_type_signal=void
 
22862
fi
 
22863
 
 
22864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22865
fi
 
22866
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
22867
$as_echo "$ac_cv_type_signal" >&6; }
 
22868
 
 
22869
cat >>confdefs.h <<_ACEOF
 
22870
#define RETSIGTYPE $ac_cv_type_signal
 
22871
_ACEOF
 
22872
 
 
22873
 
13321
22874
 
13322
22875
 
13323
22876
 
13536
23089
 
13537
23090
fi
13538
23091
 
 
23092
 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
 
23093
 
 
23094
{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
 
23095
$as_echo_n "checking for main in -lws2_32... " >&6; }
 
23096
if test "${ac_cv_lib_ws2_32_main+set}" = set; then
 
23097
  $as_echo_n "(cached) " >&6
 
23098
else
 
23099
  ac_check_lib_save_LIBS=$LIBS
 
23100
LIBS="-lws2_32  $LIBS"
 
23101
cat >conftest.$ac_ext <<_ACEOF
 
23102
/* confdefs.h.  */
 
23103
_ACEOF
 
23104
cat confdefs.h >>conftest.$ac_ext
 
23105
cat >>conftest.$ac_ext <<_ACEOF
 
23106
/* end confdefs.h.  */
 
23107
 
 
23108
 
 
23109
int
 
23110
main ()
 
23111
{
 
23112
return main ();
 
23113
  ;
 
23114
  return 0;
 
23115
}
 
23116
_ACEOF
 
23117
rm -f conftest.$ac_objext conftest$ac_exeext
 
23118
if { (ac_try="$ac_link"
 
23119
case "(($ac_try" in
 
23120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23121
  *) ac_try_echo=$ac_try;;
 
23122
esac
 
23123
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23124
$as_echo "$ac_try_echo") >&5
 
23125
  (eval "$ac_link") 2>conftest.er1
 
23126
  ac_status=$?
 
23127
  grep -v '^ *+' conftest.er1 >conftest.err
 
23128
  rm -f conftest.er1
 
23129
  cat conftest.err >&5
 
23130
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23131
  (exit $ac_status); } && {
 
23132
         test -z "$ac_c_werror_flag" ||
 
23133
         test ! -s conftest.err
 
23134
       } && test -s conftest$ac_exeext && {
 
23135
         test "$cross_compiling" = yes ||
 
23136
         $as_test_x conftest$ac_exeext
 
23137
       }; then
 
23138
  ac_cv_lib_ws2_32_main=yes
 
23139
else
 
23140
  $as_echo "$as_me: failed program was:" >&5
 
23141
sed 's/^/| /' conftest.$ac_ext >&5
 
23142
 
 
23143
        ac_cv_lib_ws2_32_main=no
 
23144
fi
 
23145
 
 
23146
rm -rf conftest.dSYM
 
23147
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23148
      conftest$ac_exeext conftest.$ac_ext
 
23149
LIBS=$ac_check_lib_save_LIBS
 
23150
fi
 
23151
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
 
23152
$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
 
23153
if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
 
23154
  cat >>confdefs.h <<_ACEOF
 
23155
#define HAVE_LIBWS2_32 1
 
23156
_ACEOF
 
23157
 
 
23158
  LIBS="-lws2_32 $LIBS"
 
23159
 
 
23160
fi
 
23161
ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
 
23162
 
 
23163
 fi
13539
23164
 
13540
23165
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13541
23166
 # Check whether --enable-ipv6 was given.
14896
24521
fi
14897
24522
 
14898
24523
 
 
24524
for ac_header in sys/select.h
 
24525
do
 
24526
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24527
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24528
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24529
$as_echo_n "checking for $ac_header... " >&6; }
 
24530
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24531
  $as_echo_n "(cached) " >&6
 
24532
fi
 
24533
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
24534
                 $as_echo "$as_val"'`
 
24535
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24536
$as_echo "$ac_res" >&6; }
 
24537
else
 
24538
  # Is the header compilable?
 
24539
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24540
$as_echo_n "checking $ac_header usability... " >&6; }
 
24541
cat >conftest.$ac_ext <<_ACEOF
 
24542
/* confdefs.h.  */
 
24543
_ACEOF
 
24544
cat confdefs.h >>conftest.$ac_ext
 
24545
cat >>conftest.$ac_ext <<_ACEOF
 
24546
/* end confdefs.h.  */
 
24547
$ac_includes_default
 
24548
#include <$ac_header>
 
24549
_ACEOF
 
24550
rm -f conftest.$ac_objext
 
24551
if { (ac_try="$ac_compile"
 
24552
case "(($ac_try" in
 
24553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24554
  *) ac_try_echo=$ac_try;;
 
24555
esac
 
24556
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24557
$as_echo "$ac_try_echo") >&5
 
24558
  (eval "$ac_compile") 2>conftest.er1
 
24559
  ac_status=$?
 
24560
  grep -v '^ *+' conftest.er1 >conftest.err
 
24561
  rm -f conftest.er1
 
24562
  cat conftest.err >&5
 
24563
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24564
  (exit $ac_status); } && {
 
24565
         test -z "$ac_c_werror_flag" ||
 
24566
         test ! -s conftest.err
 
24567
       } && test -s conftest.$ac_objext; then
 
24568
  ac_header_compiler=yes
 
24569
else
 
24570
  $as_echo "$as_me: failed program was:" >&5
 
24571
sed 's/^/| /' conftest.$ac_ext >&5
 
24572
 
 
24573
        ac_header_compiler=no
 
24574
fi
 
24575
 
 
24576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24577
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24578
$as_echo "$ac_header_compiler" >&6; }
 
24579
 
 
24580
# Is the header present?
 
24581
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24582
$as_echo_n "checking $ac_header presence... " >&6; }
 
24583
cat >conftest.$ac_ext <<_ACEOF
 
24584
/* confdefs.h.  */
 
24585
_ACEOF
 
24586
cat confdefs.h >>conftest.$ac_ext
 
24587
cat >>conftest.$ac_ext <<_ACEOF
 
24588
/* end confdefs.h.  */
 
24589
#include <$ac_header>
 
24590
_ACEOF
 
24591
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24592
case "(($ac_try" in
 
24593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24594
  *) ac_try_echo=$ac_try;;
 
24595
esac
 
24596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24597
$as_echo "$ac_try_echo") >&5
 
24598
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24599
  ac_status=$?
 
24600
  grep -v '^ *+' conftest.er1 >conftest.err
 
24601
  rm -f conftest.er1
 
24602
  cat conftest.err >&5
 
24603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24604
  (exit $ac_status); } >/dev/null && {
 
24605
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24606
         test ! -s conftest.err
 
24607
       }; then
 
24608
  ac_header_preproc=yes
 
24609
else
 
24610
  $as_echo "$as_me: failed program was:" >&5
 
24611
sed 's/^/| /' conftest.$ac_ext >&5
 
24612
 
 
24613
  ac_header_preproc=no
 
24614
fi
 
24615
 
 
24616
rm -f conftest.err conftest.$ac_ext
 
24617
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24618
$as_echo "$ac_header_preproc" >&6; }
 
24619
 
 
24620
# So?  What about this header?
 
24621
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24622
  yes:no: )
 
24623
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24624
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24625
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24626
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24627
    ac_header_preproc=yes
 
24628
    ;;
 
24629
  no:yes:* )
 
24630
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24631
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24632
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24633
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24634
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24635
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24636
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24637
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24638
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24639
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24640
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24641
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24642
    ( cat <<\_ASBOX
 
24643
## ---------------------------------------------------------------------- ##
 
24644
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
24645
## ---------------------------------------------------------------------- ##
 
24646
_ASBOX
 
24647
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24648
    ;;
 
24649
esac
 
24650
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24651
$as_echo_n "checking for $ac_header... " >&6; }
 
24652
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24653
  $as_echo_n "(cached) " >&6
 
24654
else
 
24655
  eval "$as_ac_Header=\$ac_header_preproc"
 
24656
fi
 
24657
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
24658
                 $as_echo "$as_val"'`
 
24659
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24660
$as_echo "$ac_res" >&6; }
 
24661
 
 
24662
fi
 
24663
as_val=`eval 'as_val=${'$as_ac_Header'}
 
24664
                 $as_echo "$as_val"'`
 
24665
   if test "x$as_val" = x""yes; then
 
24666
  cat >>confdefs.h <<_ACEOF
 
24667
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24668
_ACEOF
 
24669
 
 
24670
fi
 
24671
 
 
24672
done
 
24673
 
 
24674
 
14899
24675
# Checks for typedefs, structures, and compiler characteristics.
14900
24676
 
14901
24677
# Checks for library functions.
15858
25634
fi
15859
25635
 
15860
25636
 
15861
 
 
15862
 
 
15863
 
 
15864
 
if test x$APP_MAN_SUFFIX = x    ; then
15865
 
    APP_MAN_SUFFIX=1
15866
 
fi
15867
 
if test x$APP_MAN_DIR = x    ; then
15868
 
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
15869
 
fi
15870
 
 
15871
 
if test x$LIB_MAN_SUFFIX = x    ; then
15872
 
    LIB_MAN_SUFFIX=3
15873
 
fi
15874
 
if test x$LIB_MAN_DIR = x    ; then
15875
 
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
15876
 
fi
15877
 
 
15878
 
if test x$FILE_MAN_SUFFIX = x    ; then
15879
 
    case $host_os in
15880
 
        solaris*)       FILE_MAN_SUFFIX=4  ;;
15881
 
        *)              FILE_MAN_SUFFIX=5  ;;
15882
 
    esac
15883
 
fi
15884
 
if test x$FILE_MAN_DIR = x    ; then
15885
 
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
15886
 
fi
15887
 
 
15888
 
if test x$MISC_MAN_SUFFIX = x    ; then
15889
 
    case $host_os in
15890
 
        solaris*)       MISC_MAN_SUFFIX=5  ;;
15891
 
        *)              MISC_MAN_SUFFIX=7  ;;
15892
 
    esac
15893
 
fi
15894
 
if test x$MISC_MAN_DIR = x    ; then
15895
 
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
15896
 
fi
15897
 
 
15898
 
if test x$DRIVER_MAN_SUFFIX = x    ; then
15899
 
    case $host_os in
15900
 
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
15901
 
        *)              DRIVER_MAN_SUFFIX=4  ;;
15902
 
    esac
15903
 
fi
15904
 
if test x$DRIVER_MAN_DIR = x    ; then
15905
 
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
15906
 
fi
15907
 
 
15908
 
if test x$ADMIN_MAN_SUFFIX = x    ; then
15909
 
    case $host_os in
15910
 
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
15911
 
        *)              ADMIN_MAN_SUFFIX=8  ;;
15912
 
    esac
15913
 
fi
15914
 
if test x$ADMIN_MAN_DIR = x    ; then
15915
 
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
15916
 
fi
15917
 
 
15918
 
 
15919
 
 
15920
 
 
15921
 
 
15922
 
 
15923
 
 
15924
 
 
15925
 
 
15926
 
 
15927
 
 
15928
 
 
15929
 
 
15930
 
 
15931
 
 
15932
 
 
15933
25637
# Check whether --enable-man-pages was given.
15934
25638
if test "${enable_man_pages+set}" = set; then
15935
25639
  enableval=$enable_man_pages; LIBMAN=$enableval
16871
26575
 
16872
26576
 
16873
26577
 
16874
 
 
16875
26578
# Check whether --enable-malloc0returnsnull was given.
16876
26579
if test "${enable_malloc0returnsnull+set}" = set; then
16877
26580
  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
16961
26664
 
16962
26665
 
16963
26666
 
16964
 
 
16965
 
# Check whether --with-release-version was given.
16966
 
if test "${with_release_version+set}" = set; then
16967
 
  withval=$with_release_version; RELEASE_VERSION="$withval"
16968
 
else
16969
 
  RELEASE_VERSION=""
16970
 
fi
16971
 
 
16972
 
        if test "x$RELEASE_VERSION" != "x"; then
16973
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
16974
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
16975
 
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
16976
 
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
16977
 
        fi
16978
 
 
16979
 
cat >>confdefs.h <<_ACEOF
16980
 
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
16981
 
_ACEOF
16982
 
 
16983
 
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
16984
 
        if test "x$PVM" = "x"; then
16985
 
                PVM="0"
16986
 
        fi
16987
 
 
16988
 
cat >>confdefs.h <<_ACEOF
16989
 
#define PACKAGE_VERSION_MINOR $PVM
16990
 
_ACEOF
16991
 
 
16992
 
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
16993
 
        if test "x$PVP" = "x"; then
16994
 
                PVP="0"
16995
 
        fi
16996
 
 
16997
 
cat >>confdefs.h <<_ACEOF
16998
 
#define PACKAGE_VERSION_PATCHLEVEL $PVP
16999
 
_ACEOF
17000
 
 
17001
 
 
17002
 
 
17003
 
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
17004
 
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
17005
 
echo 'git directory not found: installing possibly empty changelog.' >&2)"
17006
 
 
17007
 
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
17008
 
 
17009
 
 
17010
 
 
17011
 
ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile x11.pc x11-xcb.pc"
 
26667
# Specification documents are currently provided in troff format
 
26668
 
 
26669
for ac_prog in groff
 
26670
do
 
26671
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
26672
set dummy $ac_prog; ac_word=$2
 
26673
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26674
$as_echo_n "checking for $ac_word... " >&6; }
 
26675
if test "${ac_cv_path_GROFF+set}" = set; then
 
26676
  $as_echo_n "(cached) " >&6
 
26677
else
 
26678
  case $GROFF in
 
26679
  [\\/]* | ?:[\\/]*)
 
26680
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
 
26681
  ;;
 
26682
  *)
 
26683
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26684
as_dummy="$PATH:/usr/gnu/bin"
 
26685
for as_dir in $as_dummy
 
26686
do
 
26687
  IFS=$as_save_IFS
 
26688
  test -z "$as_dir" && as_dir=.
 
26689
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26691
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
 
26692
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26693
    break 2
 
26694
  fi
 
26695
done
 
26696
done
 
26697
IFS=$as_save_IFS
 
26698
 
 
26699
  ;;
 
26700
esac
 
26701
fi
 
26702
GROFF=$ac_cv_path_GROFF
 
26703
if test -n "$GROFF"; then
 
26704
  { $as_echo "$as_me:$LINENO: result: $GROFF" >&5
 
26705
$as_echo "$GROFF" >&6; }
 
26706
else
 
26707
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26708
$as_echo "no" >&6; }
 
26709
fi
 
26710
 
 
26711
 
 
26712
  test -n "$GROFF" && break
 
26713
done
 
26714
test -n "$GROFF" || GROFF="none"
 
26715
 
 
26716
 
 
26717
 
 
26718
for ac_prog in ps2pdf
 
26719
do
 
26720
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
26721
set dummy $ac_prog; ac_word=$2
 
26722
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26723
$as_echo_n "checking for $ac_word... " >&6; }
 
26724
if test "${ac_cv_path_PS2PDF+set}" = set; then
 
26725
  $as_echo_n "(cached) " >&6
 
26726
else
 
26727
  case $PS2PDF in
 
26728
  [\\/]* | ?:[\\/]*)
 
26729
  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
 
26730
  ;;
 
26731
  *)
 
26732
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26733
as_dummy="$PATH:/usr/gnu/bin"
 
26734
for as_dir in $as_dummy
 
26735
do
 
26736
  IFS=$as_save_IFS
 
26737
  test -z "$as_dir" && as_dir=.
 
26738
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26739
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26740
    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
 
26741
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26742
    break 2
 
26743
  fi
 
26744
done
 
26745
done
 
26746
IFS=$as_save_IFS
 
26747
 
 
26748
  ;;
 
26749
esac
 
26750
fi
 
26751
PS2PDF=$ac_cv_path_PS2PDF
 
26752
if test -n "$PS2PDF"; then
 
26753
  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
 
26754
$as_echo "$PS2PDF" >&6; }
 
26755
else
 
26756
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26757
$as_echo "no" >&6; }
 
26758
fi
 
26759
 
 
26760
 
 
26761
  test -n "$PS2PDF" && break
 
26762
done
 
26763
test -n "$PS2PDF" || PS2PDF="none"
 
26764
 
 
26765
 
 
26766
if test "x${GROFF}" != xnone ; then
 
26767
    { $as_echo "$as_me:$LINENO: checking whether ${GROFF} -ms works" >&5
 
26768
$as_echo_n "checking whether ${GROFF} -ms works... " >&6; }
 
26769
    if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
 
26770
        groff_ms_works=yes
 
26771
    else
 
26772
        groff_ms_works=no
 
26773
        GROFF=none
 
26774
    fi
 
26775
    { $as_echo "$as_me:$LINENO: result: ${groff_ms_works}" >&5
 
26776
$as_echo "${groff_ms_works}" >&6; }
 
26777
fi
 
26778
 
 
26779
{ $as_echo "$as_me:$LINENO: checking whether to build specifications" >&5
 
26780
$as_echo_n "checking whether to build specifications... " >&6; }
 
26781
# Check whether --enable-specs was given.
 
26782
if test "${enable_specs+set}" = set; then
 
26783
  enableval=$enable_specs; build_specs="${enableval}"
 
26784
else
 
26785
  build_specs="auto"
 
26786
fi
 
26787
 
 
26788
 
 
26789
if test "x${build_specs}" = xauto; then
 
26790
    if test "x${GROFF}" = xnone ; then
 
26791
        build_specs=no
 
26792
    else
 
26793
        build_specs=yes
 
26794
    fi
 
26795
fi
 
26796
{ $as_echo "$as_me:$LINENO: result: ${build_specs}" >&5
 
26797
$as_echo "${build_specs}" >&6; }
 
26798
if test "x${build_specs}" = xyes && test "x${GROFF}" = xnone ; then
 
26799
    { { $as_echo "$as_me:$LINENO: error: can't build documentation without groff" >&5
 
26800
$as_echo "$as_me: error: can't build documentation without groff" >&2;}
 
26801
   { (exit 1); exit 1; }; }
 
26802
fi
 
26803
 
 
26804
 if test x$build_specs = xyes; then
 
26805
  BUILD_SPECS_TRUE=
 
26806
  BUILD_SPECS_FALSE='#'
 
26807
else
 
26808
  BUILD_SPECS_TRUE='#'
 
26809
  BUILD_SPECS_FALSE=
 
26810
fi
 
26811
 
 
26812
 if test x$PS2PDF != xnone; then
 
26813
  HAVE_PS2PDF_TRUE=
 
26814
  HAVE_PS2PDF_FALSE='#'
 
26815
else
 
26816
  HAVE_PS2PDF_TRUE='#'
 
26817
  HAVE_PS2PDF_FALSE=
 
26818
fi
 
26819
 
 
26820
 
 
26821
 
 
26822
ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile specs/Makefile specs/i18n/Makefile specs/libX11/Makefile specs/XIM/Makefile x11.pc x11-xcb.pc"
17012
26823
 
17013
26824
cat >confcache <<\_ACEOF
17014
26825
# This file is a shell script that caches the results of configure
17136
26947
Usually this means the macro was only invoked conditionally." >&2;}
17137
26948
   { (exit 1); exit 1; }; }
17138
26949
fi
 
26950
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
26951
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
26952
Usually this means the macro was only invoked conditionally." >&5
 
26953
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
26954
Usually this means the macro was only invoked conditionally." >&2;}
 
26955
   { (exit 1); exit 1; }; }
 
26956
fi
17139
26957
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17140
26958
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17141
26959
Usually this means the macro was only invoked conditionally." >&5
17143
26961
Usually this means the macro was only invoked conditionally." >&2;}
17144
26962
   { (exit 1); exit 1; }; }
17145
26963
fi
 
26964
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
 
26965
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PERL\" was never defined.
 
26966
Usually this means the macro was only invoked conditionally." >&5
 
26967
$as_echo "$as_me: error: conditional \"HAVE_PERL\" was never defined.
 
26968
Usually this means the macro was only invoked conditionally." >&2;}
 
26969
   { (exit 1); exit 1; }; }
 
26970
fi
17146
26971
if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then
17147
26972
  { { $as_echo "$as_me:$LINENO: error: conditional \"XCB\" was never defined.
17148
26973
Usually this means the macro was only invoked conditionally." >&5
17220
27045
Usually this means the macro was only invoked conditionally." >&2;}
17221
27046
   { (exit 1); exit 1; }; }
17222
27047
fi
 
27048
if test -z "${BUILD_SPECS_TRUE}" && test -z "${BUILD_SPECS_FALSE}"; then
 
27049
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPECS\" was never defined.
 
27050
Usually this means the macro was only invoked conditionally." >&5
 
27051
$as_echo "$as_me: error: conditional \"BUILD_SPECS\" was never defined.
 
27052
Usually this means the macro was only invoked conditionally." >&2;}
 
27053
   { (exit 1); exit 1; }; }
 
27054
fi
 
27055
if test -z "${HAVE_PS2PDF_TRUE}" && test -z "${HAVE_PS2PDF_FALSE}"; then
 
27056
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PS2PDF\" was never defined.
 
27057
Usually this means the macro was only invoked conditionally." >&5
 
27058
$as_echo "$as_me: error: conditional \"HAVE_PS2PDF\" was never defined.
 
27059
Usually this means the macro was only invoked conditionally." >&2;}
 
27060
   { (exit 1); exit 1; }; }
 
27061
fi
17223
27062
 
17224
27063
: ${CONFIG_STATUS=./config.status}
17225
27064
ac_write_fail=0
17542
27381
# report actual input values of CONFIG_FILES etc. instead of their
17543
27382
# values after options handling.
17544
27383
ac_log="
17545
 
This file was extended by libX11 $as_me 1.2.2, which was
 
27384
This file was extended by libX11 $as_me 1.3.2, which was
17546
27385
generated by GNU Autoconf 2.63.  Invocation command line was
17547
27386
 
17548
27387
  CONFIG_FILES    = $CONFIG_FILES
17605
27444
_ACEOF
17606
27445
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17607
27446
ac_cs_version="\\
17608
 
libX11 config.status 1.2.2
 
27447
libX11 config.status 1.3.2
17609
27448
configured by $0, generated by GNU Autoconf 2.63,
17610
27449
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17611
27450
 
17720
27559
#
17721
27560
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17722
27561
 
17723
 
 
17724
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
17725
 
# if CDPATH is set.
17726
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17727
 
 
17728
 
sed_quote_subst='$sed_quote_subst'
17729
 
double_quote_subst='$double_quote_subst'
17730
 
delay_variable_subst='$delay_variable_subst'
17731
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17732
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17733
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17734
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17735
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17736
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17737
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17738
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17739
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17740
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17741
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17742
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17743
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17744
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17745
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17746
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17747
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17748
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17749
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17750
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17751
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17752
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17753
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17754
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17755
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17756
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17757
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17758
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17759
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17760
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17761
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17762
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17763
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17764
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17765
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17766
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17767
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17768
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17769
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17770
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17771
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17772
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17773
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17774
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17775
 
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"`'
17776
 
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"`'
17777
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17778
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17779
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17780
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17781
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17782
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17783
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17784
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17785
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17786
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17787
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17788
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17789
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17790
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17791
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17792
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17793
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17794
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17795
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17796
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17797
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17798
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17799
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17800
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17801
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17802
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17803
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17804
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17805
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17806
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17807
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17808
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17809
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17810
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17811
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17812
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17813
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17814
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17815
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17816
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17817
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17818
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17819
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17820
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17821
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17822
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17823
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17824
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17825
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17826
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17827
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17828
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17829
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17830
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17831
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17832
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17833
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17834
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17835
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17836
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17837
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17838
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17839
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17840
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17841
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17842
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17843
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17844
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17845
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17846
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17847
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17848
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17849
 
 
17850
 
LTCC='$LTCC'
17851
 
LTCFLAGS='$LTCFLAGS'
17852
 
compiler='$compiler_DEFAULT'
17853
 
 
17854
 
# Quote evaled strings.
17855
 
for var in SED \
17856
 
GREP \
17857
 
EGREP \
17858
 
FGREP \
17859
 
LD \
17860
 
NM \
17861
 
LN_S \
17862
 
lt_SP2NL \
17863
 
lt_NL2SP \
17864
 
reload_flag \
17865
 
OBJDUMP \
17866
 
deplibs_check_method \
17867
 
file_magic_cmd \
17868
 
AR \
17869
 
AR_FLAGS \
17870
 
STRIP \
17871
 
RANLIB \
17872
 
CC \
17873
 
CFLAGS \
17874
 
compiler \
17875
 
lt_cv_sys_global_symbol_pipe \
17876
 
lt_cv_sys_global_symbol_to_cdecl \
17877
 
lt_cv_sys_global_symbol_to_c_name_address \
17878
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17879
 
SHELL \
17880
 
ECHO \
17881
 
lt_prog_compiler_no_builtin_flag \
17882
 
lt_prog_compiler_wl \
17883
 
lt_prog_compiler_pic \
17884
 
lt_prog_compiler_static \
17885
 
lt_cv_prog_compiler_c_o \
17886
 
need_locks \
17887
 
DSYMUTIL \
17888
 
NMEDIT \
17889
 
LIPO \
17890
 
OTOOL \
17891
 
OTOOL64 \
17892
 
shrext_cmds \
17893
 
export_dynamic_flag_spec \
17894
 
whole_archive_flag_spec \
17895
 
compiler_needs_object \
17896
 
with_gnu_ld \
17897
 
allow_undefined_flag \
17898
 
no_undefined_flag \
17899
 
hardcode_libdir_flag_spec \
17900
 
hardcode_libdir_flag_spec_ld \
17901
 
hardcode_libdir_separator \
17902
 
fix_srcfile_path \
17903
 
exclude_expsyms \
17904
 
include_expsyms \
17905
 
file_list_spec \
17906
 
variables_saved_for_relink \
17907
 
libname_spec \
17908
 
library_names_spec \
17909
 
soname_spec \
17910
 
finish_eval \
17911
 
old_striplib \
17912
 
striplib; do
17913
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17914
 
    *[\\\\\\\`\\"\\\$]*)
17915
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17916
 
      ;;
17917
 
    *)
17918
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17919
 
      ;;
17920
 
    esac
17921
 
done
17922
 
 
17923
 
# Double-quote double-evaled strings.
17924
 
for var in reload_cmds \
17925
 
old_postinstall_cmds \
17926
 
old_postuninstall_cmds \
17927
 
old_archive_cmds \
17928
 
extract_expsyms_cmds \
17929
 
old_archive_from_new_cmds \
17930
 
old_archive_from_expsyms_cmds \
17931
 
archive_cmds \
17932
 
archive_expsym_cmds \
17933
 
module_cmds \
17934
 
module_expsym_cmds \
17935
 
export_symbols_cmds \
17936
 
prelink_cmds \
17937
 
postinstall_cmds \
17938
 
postuninstall_cmds \
17939
 
finish_cmds \
17940
 
sys_lib_search_path_spec \
17941
 
sys_lib_dlsearch_path_spec; do
17942
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17943
 
    *[\\\\\\\`\\"\\\$]*)
17944
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17945
 
      ;;
17946
 
    *)
17947
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17948
 
      ;;
17949
 
    esac
17950
 
done
17951
 
 
17952
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
17953
 
case \$lt_ECHO in
17954
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17955
 
  ;;
17956
 
esac
17957
 
 
17958
 
ac_aux_dir='$ac_aux_dir'
17959
 
xsi_shell='$xsi_shell'
17960
 
lt_shell_append='$lt_shell_append'
17961
 
 
17962
 
# See if we are running on zsh, and set the options which allow our
17963
 
# commands through without removal of \ escapes INIT.
17964
 
if test -n "\${ZSH_VERSION+set}" ; then
17965
 
   setopt NO_GLOB_SUBST
17966
 
fi
17967
 
 
17968
 
 
17969
 
    PACKAGE='$PACKAGE'
17970
 
    VERSION='$VERSION'
17971
 
    TIMESTAMP='$TIMESTAMP'
17972
 
    RM='$RM'
17973
 
    ofile='$ofile'
17974
 
 
17975
 
 
17976
 
 
17977
 
 
17978
27562
_ACEOF
17979
27563
 
17980
27564
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986
27570
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17987
27571
    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
17988
27572
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17989
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17990
27573
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17991
27574
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17992
27575
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18067
27650
    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
18068
27651
    "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;;
18069
27652
    "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;;
 
27653
    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
 
27654
    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
 
27655
    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
 
27656
    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
18070
27657
    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
18071
27658
    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
18072
27659
 
18858
28445
  done
18859
28446
}
18860
28447
 ;;
18861
 
    "libtool":C)
18862
 
 
18863
 
    # See if we are running on zsh, and set the options which allow our
18864
 
    # commands through without removal of \ escapes.
18865
 
    if test -n "${ZSH_VERSION+set}" ; then
18866
 
      setopt NO_GLOB_SUBST
18867
 
    fi
18868
 
 
18869
 
    cfgfile="${ofile}T"
18870
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18871
 
    $RM "$cfgfile"
18872
 
 
18873
 
    cat <<_LT_EOF >> "$cfgfile"
18874
 
#! $SHELL
18875
 
 
18876
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18877
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18878
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18879
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18880
 
#
18881
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18882
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
18883
 
#   Written by Gordon Matzigkeit, 1996
18884
 
#
18885
 
#   This file is part of GNU Libtool.
18886
 
#
18887
 
# GNU Libtool is free software; you can redistribute it and/or
18888
 
# modify it under the terms of the GNU General Public License as
18889
 
# published by the Free Software Foundation; either version 2 of
18890
 
# the License, or (at your option) any later version.
18891
 
#
18892
 
# As a special exception to the GNU General Public License,
18893
 
# if you distribute this file as part of a program or library that
18894
 
# is built using GNU Libtool, you may include this file under the
18895
 
# same distribution terms that you use for the rest of that program.
18896
 
#
18897
 
# GNU Libtool is distributed in the hope that it will be useful,
18898
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18899
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18900
 
# GNU General Public License for more details.
18901
 
#
18902
 
# You should have received a copy of the GNU General Public License
18903
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
18904
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18905
 
# obtained by writing to the Free Software Foundation, Inc.,
18906
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18907
 
 
18908
 
 
18909
 
# The names of the tagged configurations supported by this script.
18910
 
available_tags=""
18911
 
 
18912
 
# ### BEGIN LIBTOOL CONFIG
18913
 
 
18914
 
# Which release of libtool.m4 was used?
18915
 
macro_version=$macro_version
18916
 
macro_revision=$macro_revision
18917
 
 
18918
 
# Whether or not to build shared libraries.
18919
 
build_libtool_libs=$enable_shared
18920
 
 
18921
 
# Whether or not to build static libraries.
18922
 
build_old_libs=$enable_static
18923
 
 
18924
 
# What type of objects to build.
18925
 
pic_mode=$pic_mode
18926
 
 
18927
 
# Whether or not to optimize for fast installation.
18928
 
fast_install=$enable_fast_install
18929
 
 
18930
 
# The host system.
18931
 
host_alias=$host_alias
18932
 
host=$host
18933
 
host_os=$host_os
18934
 
 
18935
 
# The build system.
18936
 
build_alias=$build_alias
18937
 
build=$build
18938
 
build_os=$build_os
18939
 
 
18940
 
# A sed program that does not truncate output.
18941
 
SED=$lt_SED
18942
 
 
18943
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18944
 
Xsed="\$SED -e 1s/^X//"
18945
 
 
18946
 
# A grep program that handles long lines.
18947
 
GREP=$lt_GREP
18948
 
 
18949
 
# An ERE matcher.
18950
 
EGREP=$lt_EGREP
18951
 
 
18952
 
# A literal string matcher.
18953
 
FGREP=$lt_FGREP
18954
 
 
18955
 
# A BSD- or MS-compatible name lister.
18956
 
NM=$lt_NM
18957
 
 
18958
 
# Whether we need soft or hard links.
18959
 
LN_S=$lt_LN_S
18960
 
 
18961
 
# What is the maximum length of a command?
18962
 
max_cmd_len=$max_cmd_len
18963
 
 
18964
 
# Object file suffix (normally "o").
18965
 
objext=$ac_objext
18966
 
 
18967
 
# Executable file suffix (normally "").
18968
 
exeext=$exeext
18969
 
 
18970
 
# whether the shell understands "unset".
18971
 
lt_unset=$lt_unset
18972
 
 
18973
 
# turn spaces into newlines.
18974
 
SP2NL=$lt_lt_SP2NL
18975
 
 
18976
 
# turn newlines into spaces.
18977
 
NL2SP=$lt_lt_NL2SP
18978
 
 
18979
 
# How to create reloadable object files.
18980
 
reload_flag=$lt_reload_flag
18981
 
reload_cmds=$lt_reload_cmds
18982
 
 
18983
 
# An object symbol dumper.
18984
 
OBJDUMP=$lt_OBJDUMP
18985
 
 
18986
 
# Method to check whether dependent libraries are shared objects.
18987
 
deplibs_check_method=$lt_deplibs_check_method
18988
 
 
18989
 
# Command to use when deplibs_check_method == "file_magic".
18990
 
file_magic_cmd=$lt_file_magic_cmd
18991
 
 
18992
 
# The archiver.
18993
 
AR=$lt_AR
18994
 
AR_FLAGS=$lt_AR_FLAGS
18995
 
 
18996
 
# A symbol stripping program.
18997
 
STRIP=$lt_STRIP
18998
 
 
18999
 
# Commands used to install an old-style archive.
19000
 
RANLIB=$lt_RANLIB
19001
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19002
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19003
 
 
19004
 
# A C compiler.
19005
 
LTCC=$lt_CC
19006
 
 
19007
 
# LTCC compiler flags.
19008
 
LTCFLAGS=$lt_CFLAGS
19009
 
 
19010
 
# Take the output of nm and produce a listing of raw symbols and C names.
19011
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19012
 
 
19013
 
# Transform the output of nm in a proper C declaration.
19014
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19015
 
 
19016
 
# Transform the output of nm in a C name address pair.
19017
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19018
 
 
19019
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
19020
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19021
 
 
19022
 
# The name of the directory that contains temporary libtool files.
19023
 
objdir=$objdir
19024
 
 
19025
 
# Shell to use when invoking shell scripts.
19026
 
SHELL=$lt_SHELL
19027
 
 
19028
 
# An echo program that does not interpret backslashes.
19029
 
ECHO=$lt_ECHO
19030
 
 
19031
 
# Used to examine libraries when file_magic_cmd begins with "file".
19032
 
MAGIC_CMD=$MAGIC_CMD
19033
 
 
19034
 
# Must we lock files when doing compilation?
19035
 
need_locks=$lt_need_locks
19036
 
 
19037
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19038
 
DSYMUTIL=$lt_DSYMUTIL
19039
 
 
19040
 
# Tool to change global to local symbols on Mac OS X.
19041
 
NMEDIT=$lt_NMEDIT
19042
 
 
19043
 
# Tool to manipulate fat objects and archives on Mac OS X.
19044
 
LIPO=$lt_LIPO
19045
 
 
19046
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19047
 
OTOOL=$lt_OTOOL
19048
 
 
19049
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19050
 
OTOOL64=$lt_OTOOL64
19051
 
 
19052
 
# Old archive suffix (normally "a").
19053
 
libext=$libext
19054
 
 
19055
 
# Shared library suffix (normally ".so").
19056
 
shrext_cmds=$lt_shrext_cmds
19057
 
 
19058
 
# The commands to extract the exported symbol list from a shared archive.
19059
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19060
 
 
19061
 
# Variables whose values should be saved in libtool wrapper scripts and
19062
 
# restored at link time.
19063
 
variables_saved_for_relink=$lt_variables_saved_for_relink
19064
 
 
19065
 
# Do we need the "lib" prefix for modules?
19066
 
need_lib_prefix=$need_lib_prefix
19067
 
 
19068
 
# Do we need a version for libraries?
19069
 
need_version=$need_version
19070
 
 
19071
 
# Library versioning type.
19072
 
version_type=$version_type
19073
 
 
19074
 
# Shared library runtime path variable.
19075
 
runpath_var=$runpath_var
19076
 
 
19077
 
# Shared library path variable.
19078
 
shlibpath_var=$shlibpath_var
19079
 
 
19080
 
# Is shlibpath searched before the hard-coded library search path?
19081
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19082
 
 
19083
 
# Format of library name prefix.
19084
 
libname_spec=$lt_libname_spec
19085
 
 
19086
 
# List of archive names.  First name is the real one, the rest are links.
19087
 
# The last name is the one that the linker finds with -lNAME
19088
 
library_names_spec=$lt_library_names_spec
19089
 
 
19090
 
# The coded name of the library, if different from the real name.
19091
 
soname_spec=$lt_soname_spec
19092
 
 
19093
 
# Command to use after installation of a shared archive.
19094
 
postinstall_cmds=$lt_postinstall_cmds
19095
 
 
19096
 
# Command to use after uninstallation of a shared archive.
19097
 
postuninstall_cmds=$lt_postuninstall_cmds
19098
 
 
19099
 
# Commands used to finish a libtool library installation in a directory.
19100
 
finish_cmds=$lt_finish_cmds
19101
 
 
19102
 
# As "finish_cmds", except a single script fragment to be evaled but
19103
 
# not shown.
19104
 
finish_eval=$lt_finish_eval
19105
 
 
19106
 
# Whether we should hardcode library paths into libraries.
19107
 
hardcode_into_libs=$hardcode_into_libs
19108
 
 
19109
 
# Compile-time system search path for libraries.
19110
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19111
 
 
19112
 
# Run-time system search path for libraries.
19113
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19114
 
 
19115
 
# Whether dlopen is supported.
19116
 
dlopen_support=$enable_dlopen
19117
 
 
19118
 
# Whether dlopen of programs is supported.
19119
 
dlopen_self=$enable_dlopen_self
19120
 
 
19121
 
# Whether dlopen of statically linked programs is supported.
19122
 
dlopen_self_static=$enable_dlopen_self_static
19123
 
 
19124
 
# Commands to strip libraries.
19125
 
old_striplib=$lt_old_striplib
19126
 
striplib=$lt_striplib
19127
 
 
19128
 
 
19129
 
# The linker used to build libraries.
19130
 
LD=$lt_LD
19131
 
 
19132
 
# Commands used to build an old-style archive.
19133
 
old_archive_cmds=$lt_old_archive_cmds
19134
 
 
19135
 
# A language specific compiler.
19136
 
CC=$lt_compiler
19137
 
 
19138
 
# Is the compiler the GNU compiler?
19139
 
with_gcc=$GCC
19140
 
 
19141
 
# Compiler flag to turn off builtin functions.
19142
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19143
 
 
19144
 
# How to pass a linker flag through the compiler.
19145
 
wl=$lt_lt_prog_compiler_wl
19146
 
 
19147
 
# Additional compiler flags for building library objects.
19148
 
pic_flag=$lt_lt_prog_compiler_pic
19149
 
 
19150
 
# Compiler flag to prevent dynamic linking.
19151
 
link_static_flag=$lt_lt_prog_compiler_static
19152
 
 
19153
 
# Does compiler simultaneously support -c and -o options?
19154
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19155
 
 
19156
 
# Whether or not to add -lc for building shared libraries.
19157
 
build_libtool_need_lc=$archive_cmds_need_lc
19158
 
 
19159
 
# Whether or not to disallow shared libs when runtime libs are static.
19160
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19161
 
 
19162
 
# Compiler flag to allow reflexive dlopens.
19163
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19164
 
 
19165
 
# Compiler flag to generate shared objects directly from archives.
19166
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19167
 
 
19168
 
# Whether the compiler copes with passing no objects directly.
19169
 
compiler_needs_object=$lt_compiler_needs_object
19170
 
 
19171
 
# Create an old-style archive from a shared archive.
19172
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19173
 
 
19174
 
# Create a temporary old-style archive to link instead of a shared archive.
19175
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19176
 
 
19177
 
# Commands used to build a shared archive.
19178
 
archive_cmds=$lt_archive_cmds
19179
 
archive_expsym_cmds=$lt_archive_expsym_cmds
19180
 
 
19181
 
# Commands used to build a loadable module if different from building
19182
 
# a shared archive.
19183
 
module_cmds=$lt_module_cmds
19184
 
module_expsym_cmds=$lt_module_expsym_cmds
19185
 
 
19186
 
# Whether we are building with GNU ld or not.
19187
 
with_gnu_ld=$lt_with_gnu_ld
19188
 
 
19189
 
# Flag that allows shared libraries with undefined symbols to be built.
19190
 
allow_undefined_flag=$lt_allow_undefined_flag
19191
 
 
19192
 
# Flag that enforces no undefined symbols.
19193
 
no_undefined_flag=$lt_no_undefined_flag
19194
 
 
19195
 
# Flag to hardcode \$libdir into a binary during linking.
19196
 
# This must work even if \$libdir does not exist
19197
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19198
 
 
19199
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
19200
 
# during linking.  This must work even if \$libdir does not exist.
19201
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19202
 
 
19203
 
# Whether we need a single "-rpath" flag with a separated argument.
19204
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19205
 
 
19206
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19207
 
# DIR into the resulting binary.
19208
 
hardcode_direct=$hardcode_direct
19209
 
 
19210
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19211
 
# DIR into the resulting binary and the resulting library dependency is
19212
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19213
 
# library is relocated.
19214
 
hardcode_direct_absolute=$hardcode_direct_absolute
19215
 
 
19216
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19217
 
# into the resulting binary.
19218
 
hardcode_minus_L=$hardcode_minus_L
19219
 
 
19220
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19221
 
# into the resulting binary.
19222
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
19223
 
 
19224
 
# Set to "yes" if building a shared library automatically hardcodes DIR
19225
 
# into the library and all subsequent libraries and executables linked
19226
 
# against it.
19227
 
hardcode_automatic=$hardcode_automatic
19228
 
 
19229
 
# Set to yes if linker adds runtime paths of dependent libraries
19230
 
# to runtime path list.
19231
 
inherit_rpath=$inherit_rpath
19232
 
 
19233
 
# Whether libtool must link a program against all its dependency libraries.
19234
 
link_all_deplibs=$link_all_deplibs
19235
 
 
19236
 
# Fix the shell variable \$srcfile for the compiler.
19237
 
fix_srcfile_path=$lt_fix_srcfile_path
19238
 
 
19239
 
# Set to "yes" if exported symbols are required.
19240
 
always_export_symbols=$always_export_symbols
19241
 
 
19242
 
# The commands to list exported symbols.
19243
 
export_symbols_cmds=$lt_export_symbols_cmds
19244
 
 
19245
 
# Symbols that should not be listed in the preloaded symbols.
19246
 
exclude_expsyms=$lt_exclude_expsyms
19247
 
 
19248
 
# Symbols that must always be exported.
19249
 
include_expsyms=$lt_include_expsyms
19250
 
 
19251
 
# Commands necessary for linking programs (against libraries) with templates.
19252
 
prelink_cmds=$lt_prelink_cmds
19253
 
 
19254
 
# Specify filename containing input files.
19255
 
file_list_spec=$lt_file_list_spec
19256
 
 
19257
 
# How to hardcode a shared library path into an executable.
19258
 
hardcode_action=$hardcode_action
19259
 
 
19260
 
# ### END LIBTOOL CONFIG
19261
 
 
19262
 
_LT_EOF
19263
 
 
19264
 
  case $host_os in
19265
 
  aix3*)
19266
 
    cat <<\_LT_EOF >> "$cfgfile"
19267
 
# AIX sometimes has problems with the GCC collect2 program.  For some
19268
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
19269
 
# vanish in a puff of smoke.
19270
 
if test "X${COLLECT_NAMES+set}" != Xset; then
19271
 
  COLLECT_NAMES=
19272
 
  export COLLECT_NAMES
19273
 
fi
19274
 
_LT_EOF
19275
 
    ;;
19276
 
  esac
19277
 
 
19278
 
 
19279
 
ltmain="$ac_aux_dir/ltmain.sh"
19280
 
 
19281
 
 
19282
 
  # We use sed instead of cat because bash on DJGPP gets confused if
19283
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19284
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
19285
 
  # is reportedly fixed, but why not run on old versions too?
19286
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19287
 
    || (rm -f "$cfgfile"; exit 1)
19288
 
 
19289
 
  case $xsi_shell in
19290
 
  yes)
19291
 
    cat << \_LT_EOF >> "$cfgfile"
19292
 
 
19293
 
# func_dirname file append nondir_replacement
19294
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19295
 
# otherwise set result to NONDIR_REPLACEMENT.
19296
 
func_dirname ()
19297
 
{
19298
 
  case ${1} in
19299
 
    */*) func_dirname_result="${1%/*}${2}" ;;
19300
 
    *  ) func_dirname_result="${3}" ;;
19301
 
  esac
19302
 
}
19303
 
 
19304
 
# func_basename file
19305
 
func_basename ()
19306
 
{
19307
 
  func_basename_result="${1##*/}"
19308
 
}
19309
 
 
19310
 
# func_dirname_and_basename file append nondir_replacement
19311
 
# perform func_basename and func_dirname in a single function
19312
 
# call:
19313
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
19314
 
#             add APPEND to the result, otherwise set result
19315
 
#             to NONDIR_REPLACEMENT.
19316
 
#             value returned in "$func_dirname_result"
19317
 
#   basename: Compute filename of FILE.
19318
 
#             value retuned in "$func_basename_result"
19319
 
# Implementation must be kept synchronized with func_dirname
19320
 
# and func_basename. For efficiency, we do not delegate to
19321
 
# those functions but instead duplicate the functionality here.
19322
 
func_dirname_and_basename ()
19323
 
{
19324
 
  case ${1} in
19325
 
    */*) func_dirname_result="${1%/*}${2}" ;;
19326
 
    *  ) func_dirname_result="${3}" ;;
19327
 
  esac
19328
 
  func_basename_result="${1##*/}"
19329
 
}
19330
 
 
19331
 
# func_stripname prefix suffix name
19332
 
# strip PREFIX and SUFFIX off of NAME.
19333
 
# PREFIX and SUFFIX must not contain globbing or regex special
19334
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
19335
 
# dot (in which case that matches only a dot).
19336
 
func_stripname ()
19337
 
{
19338
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19339
 
  # positional parameters, so assign one to ordinary parameter first.
19340
 
  func_stripname_result=${3}
19341
 
  func_stripname_result=${func_stripname_result#"${1}"}
19342
 
  func_stripname_result=${func_stripname_result%"${2}"}
19343
 
}
19344
 
 
19345
 
# func_opt_split
19346
 
func_opt_split ()
19347
 
{
19348
 
  func_opt_split_opt=${1%%=*}
19349
 
  func_opt_split_arg=${1#*=}
19350
 
}
19351
 
 
19352
 
# func_lo2o object
19353
 
func_lo2o ()
19354
 
{
19355
 
  case ${1} in
19356
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19357
 
    *)    func_lo2o_result=${1} ;;
19358
 
  esac
19359
 
}
19360
 
 
19361
 
# func_xform libobj-or-source
19362
 
func_xform ()
19363
 
{
19364
 
  func_xform_result=${1%.*}.lo
19365
 
}
19366
 
 
19367
 
# func_arith arithmetic-term...
19368
 
func_arith ()
19369
 
{
19370
 
  func_arith_result=$(( $* ))
19371
 
}
19372
 
 
19373
 
# func_len string
19374
 
# STRING may not start with a hyphen.
19375
 
func_len ()
19376
 
{
19377
 
  func_len_result=${#1}
19378
 
}
19379
 
 
19380
 
_LT_EOF
19381
 
    ;;
19382
 
  *) # Bourne compatible functions.
19383
 
    cat << \_LT_EOF >> "$cfgfile"
19384
 
 
19385
 
# func_dirname file append nondir_replacement
19386
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19387
 
# otherwise set result to NONDIR_REPLACEMENT.
19388
 
func_dirname ()
19389
 
{
19390
 
  # Extract subdirectory from the argument.
19391
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19392
 
  if test "X$func_dirname_result" = "X${1}"; then
19393
 
    func_dirname_result="${3}"
19394
 
  else
19395
 
    func_dirname_result="$func_dirname_result${2}"
19396
 
  fi
19397
 
}
19398
 
 
19399
 
# func_basename file
19400
 
func_basename ()
19401
 
{
19402
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19403
 
}
19404
 
 
19405
 
 
19406
 
# func_stripname prefix suffix name
19407
 
# strip PREFIX and SUFFIX off of NAME.
19408
 
# PREFIX and SUFFIX must not contain globbing or regex special
19409
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
19410
 
# dot (in which case that matches only a dot).
19411
 
# func_strip_suffix prefix name
19412
 
func_stripname ()
19413
 
{
19414
 
  case ${2} in
19415
 
    .*) func_stripname_result=`$ECHO "X${3}" \
19416
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19417
 
    *)  func_stripname_result=`$ECHO "X${3}" \
19418
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19419
 
  esac
19420
 
}
19421
 
 
19422
 
# sed scripts:
19423
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19424
 
my_sed_long_arg='1s/^-[^=]*=//'
19425
 
 
19426
 
# func_opt_split
19427
 
func_opt_split ()
19428
 
{
19429
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19430
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19431
 
}
19432
 
 
19433
 
# func_lo2o object
19434
 
func_lo2o ()
19435
 
{
19436
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19437
 
}
19438
 
 
19439
 
# func_xform libobj-or-source
19440
 
func_xform ()
19441
 
{
19442
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19443
 
}
19444
 
 
19445
 
# func_arith arithmetic-term...
19446
 
func_arith ()
19447
 
{
19448
 
  func_arith_result=`expr "$@"`
19449
 
}
19450
 
 
19451
 
# func_len string
19452
 
# STRING may not start with a hyphen.
19453
 
func_len ()
19454
 
{
19455
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19456
 
}
19457
 
 
19458
 
_LT_EOF
19459
 
esac
19460
 
 
19461
 
case $lt_shell_append in
19462
 
  yes)
19463
 
    cat << \_LT_EOF >> "$cfgfile"
19464
 
 
19465
 
# func_append var value
19466
 
# Append VALUE to the end of shell variable VAR.
19467
 
func_append ()
19468
 
{
19469
 
  eval "$1+=\$2"
19470
 
}
19471
 
_LT_EOF
19472
 
    ;;
19473
 
  *)
19474
 
    cat << \_LT_EOF >> "$cfgfile"
19475
 
 
19476
 
# func_append var value
19477
 
# Append VALUE to the end of shell variable VAR.
19478
 
func_append ()
19479
 
{
19480
 
  eval "$1=\$$1\$2"
19481
 
}
19482
 
 
19483
 
_LT_EOF
19484
 
    ;;
19485
 
  esac
19486
 
 
19487
 
 
19488
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19489
 
    || (rm -f "$cfgfile"; exit 1)
19490
 
 
19491
 
  mv -f "$cfgfile" "$ofile" ||
19492
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19493
 
  chmod +x "$ofile"
19494
 
 
19495
 
 ;;
19496
28448
 
19497
28449
  esac
19498
28450
done # for ac_tag