~ubuntu-branches/ubuntu/maverick/strongswan/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2009-04-01 22:17:52 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090401221752-eozrk0ctabblo94z
* New upstream release, which incorporates the fix. Removed dpatch for it.
  Closes: #521950: CVE-2009-0790: DoS
* New support for EAP RADIUS authentication, enabled for this package.

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.61 for strongSwan 4.2.9.
 
3
# Generated by GNU Autoconf 2.61 for strongSwan 4.2.14.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
553
553
# Check that we are running under the correct shell.
554
554
SHELL=${CONFIG_SHELL-/bin/sh}
555
555
 
556
 
case X$ECHO in
 
556
case X$lt_ECHO in
557
557
X*--fallback-echo)
558
558
  # Remove one level of quotation (which was required for Make).
559
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
559
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
560
  ;;
561
561
esac
562
562
 
563
 
echo=${ECHO-echo}
 
563
ECHO=${lt_ECHO-echo}
564
564
if test "X$1" = X--no-reexec; then
565
565
  # Discard the --no-reexec flag, and continue.
566
566
  shift
567
567
elif test "X$1" = X--fallback-echo; then
568
568
  # Avoid inline document here, it may be left over
569
569
  :
570
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
 
  # Yippee, $echo works!
 
570
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $ECHO works!
572
572
  :
573
573
else
574
574
  # Restart under the correct shell.
578
578
if test "X$1" = X--fallback-echo; then
579
579
  # used as fallback echo
580
580
  shift
581
 
  cat <<EOF
 
581
  cat <<_LT_EOF
582
582
$*
583
 
EOF
 
583
_LT_EOF
584
584
  exit 0
585
585
fi
586
586
 
588
588
# if CDPATH is set.
589
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
590
 
591
 
if test -z "$ECHO"; then
592
 
if test "X${echo_test_string+set}" != Xset; then
593
 
# find a string as large as possible, as long as the shell can cope with it
594
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
 
       echo_test_string=`eval $cmd` &&
598
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599
 
    then
600
 
      break
601
 
    fi
602
 
  done
603
 
fi
604
 
 
605
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
608
 
  :
609
 
else
610
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
611
 
  # backslashes.  This makes it impossible to quote backslashes using
612
 
  #   echo "$something" | sed 's/\\/\\\\/g'
613
 
  #
614
 
  # So, first we look for a working echo in the user's PATH.
615
 
 
616
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
 
  for dir in $PATH /usr/ucb; do
 
591
if test -z "$lt_ECHO"; then
 
592
  if test "X${echo_test_string+set}" != Xset; then
 
593
    # find a string as large as possible, as long as the shell can cope with it
 
594
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
597
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
598
      then
 
599
        break
 
600
      fi
 
601
    done
 
602
  fi
 
603
 
 
604
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
605
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
606
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
607
    :
 
608
  else
 
609
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
610
    # backslashes.  This makes it impossible to quote backslashes using
 
611
    #   echo "$something" | sed 's/\\/\\\\/g'
 
612
    #
 
613
    # So, first we look for a working echo in the user's PATH.
 
614
 
 
615
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
616
    for dir in $PATH /usr/ucb; do
 
617
      IFS="$lt_save_ifs"
 
618
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
619
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
620
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
621
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
622
        ECHO="$dir/echo"
 
623
        break
 
624
      fi
 
625
    done
618
626
    IFS="$lt_save_ifs"
619
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
623
 
      echo="$dir/echo"
624
 
      break
625
 
    fi
626
 
  done
627
 
  IFS="$lt_save_ifs"
628
627
 
629
 
  if test "X$echo" = Xecho; then
630
 
    # We didn't find a better echo, so look for alternatives.
631
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
634
 
      # This shell has a builtin print -r that does the trick.
635
 
      echo='print -r'
636
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
638
 
      # If we have ksh, try running configure again with it.
639
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
 
      export ORIGINAL_CONFIG_SHELL
641
 
      CONFIG_SHELL=/bin/ksh
642
 
      export CONFIG_SHELL
643
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
 
    else
645
 
      # Try using printf.
646
 
      echo='printf %s\n'
647
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
650
 
        # Cool, printf works
651
 
        :
652
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
 
           test "X$echo_testing_string" = 'X\t' &&
654
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
656
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
 
        export CONFIG_SHELL
658
 
        SHELL="$CONFIG_SHELL"
659
 
        export SHELL
660
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
661
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
 
           test "X$echo_testing_string" = 'X\t' &&
663
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
665
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
628
    if test "X$ECHO" = Xecho; then
 
629
      # We didn't find a better echo, so look for alternatives.
 
630
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
631
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
632
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
633
        # This shell has a builtin print -r that does the trick.
 
634
        ECHO='print -r'
 
635
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
636
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
637
        # If we have ksh, try running configure again with it.
 
638
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
639
        export ORIGINAL_CONFIG_SHELL
 
640
        CONFIG_SHELL=/bin/ksh
 
641
        export CONFIG_SHELL
 
642
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666
643
      else
667
 
        # maybe with a smaller string...
668
 
        prev=:
669
 
 
670
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672
 
          then
673
 
            break
 
644
        # Try using printf.
 
645
        ECHO='printf %s\n'
 
646
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
647
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
648
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
649
          # Cool, printf works
 
650
          :
 
651
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
652
             test "X$echo_testing_string" = 'X\t' &&
 
653
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
654
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
655
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
656
          export CONFIG_SHELL
 
657
          SHELL="$CONFIG_SHELL"
 
658
          export SHELL
 
659
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
660
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
661
             test "X$echo_testing_string" = 'X\t' &&
 
662
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
663
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
664
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
665
        else
 
666
          # maybe with a smaller string...
 
667
          prev=:
 
668
 
 
669
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
670
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
671
            then
 
672
              break
 
673
            fi
 
674
            prev="$cmd"
 
675
          done
 
676
 
 
677
          if test "$prev" != 'sed 50q "$0"'; then
 
678
            echo_test_string=`eval $prev`
 
679
            export echo_test_string
 
680
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
681
          else
 
682
            # Oops.  We lost completely, so just stick with echo.
 
683
            ECHO=echo
674
684
          fi
675
 
          prev="$cmd"
676
 
        done
677
 
 
678
 
        if test "$prev" != 'sed 50q "$0"'; then
679
 
          echo_test_string=`eval $prev`
680
 
          export echo_test_string
681
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
 
        else
683
 
          # Oops.  We lost completely, so just stick with echo.
684
 
          echo=echo
685
 
        fi
 
685
        fi
686
686
      fi
687
687
    fi
688
688
  fi
689
689
fi
690
 
fi
691
690
 
692
691
# Copy echo and quote the copy suitably for passing to libtool from
693
692
# the Makefile, instead of quoting the original, which is used later.
694
 
ECHO=$echo
695
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
693
lt_ECHO=$ECHO
 
694
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
695
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697
696
fi
698
697
 
699
698
 
700
699
 
701
700
 
702
 
tagnames=${tagnames+${tagnames},}CXX
703
 
 
704
 
tagnames=${tagnames+${tagnames},}F77
705
 
 
706
701
exec 7<&0 </dev/null 6>&1
707
702
 
708
703
# Name of the host.
726
721
# Identity of this package.
727
722
PACKAGE_NAME='strongSwan'
728
723
PACKAGE_TARNAME='strongswan'
729
 
PACKAGE_VERSION='4.2.9'
730
 
PACKAGE_STRING='strongSwan 4.2.9'
 
724
PACKAGE_VERSION='4.2.14'
 
725
PACKAGE_STRING='strongSwan 4.2.14'
731
726
PACKAGE_BUGREPORT=''
732
727
 
733
728
# Factoring default headers for most tests.
858
853
IPSEC_ROUTING_TABLE_PRIO
859
854
ipsecuser
860
855
ipsecgroup
 
856
LIBTOOL
861
857
build
862
858
build_cpu
863
859
build_vendor
867
863
host_vendor
868
864
host_os
869
865
SED
 
866
FGREP
 
867
LD
 
868
DUMPBIN
 
869
ac_ct_DUMPBIN
 
870
NM
870
871
LN_S
871
 
ECHO
872
872
AR
873
873
RANLIB
 
874
lt_ECHO
874
875
DSYMUTIL
875
876
NMEDIT
876
 
CXX
877
 
CXXFLAGS
878
 
ac_ct_CXX
879
 
CXXDEPMODE
880
 
am__fastdepCXX_TRUE
881
 
am__fastdepCXX_FALSE
882
 
CXXCPP
883
 
F77
884
 
FFLAGS
885
 
ac_ct_F77
886
 
LIBTOOL
 
877
LIPO
 
878
OTOOL
 
879
OTOOL64
887
880
LEX
888
881
LEX_OUTPUT_ROOT
889
882
LEXLIB
906
899
USE_AES_FALSE
907
900
USE_DES_TRUE
908
901
USE_DES_FALSE
 
902
USE_MD4_TRUE
 
903
USE_MD4_FALSE
909
904
USE_MD5_TRUE
910
905
USE_MD5_FALSE
911
906
USE_SHA1_TRUE
968
963
USE_EAP_GTC_FALSE
969
964
USE_EAP_AKA_TRUE
970
965
USE_EAP_AKA_FALSE
 
966
USE_EAP_MSCHAPV2_TRUE
 
967
USE_EAP_MSCHAPV2_FALSE
 
968
USE_EAP_RADIUS_TRUE
 
969
USE_EAP_RADIUS_FALSE
971
970
USE_KERNEL_NETLINK_TRUE
972
971
USE_KERNEL_NETLINK_FALSE
973
972
USE_KERNEL_PFKEY_TRUE
1004
1003
USE_CAPABILITIES_FALSE
1005
1004
USE_PLUTO_TRUE
1006
1005
USE_PLUTO_FALSE
 
1006
USE_THREADS_TRUE
 
1007
USE_THREADS_FALSE
1007
1008
USE_CHARON_TRUE
1008
1009
USE_CHARON_FALSE
1009
1010
USE_TOOLS_TRUE
1012
1013
USE_LIBSTRONGSWAN_FALSE
1013
1014
USE_FILE_CONFIG_TRUE
1014
1015
USE_FILE_CONFIG_FALSE
 
1016
USE_VSTR_TRUE
 
1017
USE_VSTR_FALSE
1015
1018
LIBOBJS
1016
1019
LTLIBOBJS'
1017
1020
ac_subst_files=''
1025
1028
CPPFLAGS
1026
1029
CPP
1027
1030
PKG_CONFIG
1028
 
CXX
1029
 
CXXFLAGS
1030
 
CCC
1031
 
CXXCPP
1032
 
F77
1033
 
FFLAGS
1034
1031
YACC
1035
1032
YFLAGS
1036
1033
xml_CFLAGS
1541
1538
  # Omit some internal or obsolete options to make the list less imposing.
1542
1539
  # This message is too long to be a string in the A/UX 3.1 sh.
1543
1540
  cat <<_ACEOF
1544
 
\`configure' configures strongSwan 4.2.9 to adapt to many kinds of systems.
 
1541
\`configure' configures strongSwan 4.2.14 to adapt to many kinds of systems.
1545
1542
 
1546
1543
Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1544
 
1611
1608
 
1612
1609
if test -n "$ac_init_help"; then
1613
1610
  case $ac_init_help in
1614
 
     short | recursive ) echo "Configuration of strongSwan 4.2.9:";;
 
1611
     short | recursive ) echo "Configuration of strongSwan 4.2.14:";;
1615
1612
   esac
1616
1613
  cat <<\_ACEOF
1617
1614
 
1628
1625
                          (default is NO).
1629
1626
  --disable-des           disable own DES/3DES software implementation plugin.
1630
1627
                          (default is NO).
 
1628
  --enable-md4            enable MD4 software implementation plugin (default
 
1629
                          is NO).
1631
1630
  --disable-md5           disable own MD5 software implementation plugin.
1632
1631
                          (default is NO).
1633
1632
  --disable-sha1          disable own SHA1 software implementation plugin.
1666
1665
  --enable-cisco-quirks   enable support of Cisco VPN client (default is NO).
1667
1666
  --enable-leak-detective enable malloc hooks to find memory leaks (default is
1668
1667
                          NO).
1669
 
  --enable-lock-profiling enable lock/mutex profiling code (default is NO).
 
1668
  --enable-lock-profiler  enable lock/mutex profiling code (default is NO).
1670
1669
  --enable-unit-tests     enable unit tests on IKEv2 daemon startup (default
1671
1670
                          is NO).
1672
1671
  --enable-load-tests     enable load testing plugin for IKEv2 daemon (default
1683
1682
                          (default is NO).
1684
1683
  --enable-eap-aka        build AKA authentication module for EAP (default is
1685
1684
                          NO).
 
1685
  --enable-eap-mschapv2   build MS-CHAPv2 authenication module for EAP
 
1686
                          (default is NO).
 
1687
  --enable-eap-radius     build RADIUS proxy authenication module for EAP
 
1688
                          (default is NO).
1686
1689
  --disable-kernel-netlink
1687
1690
                          disable the netlink kernel interface. (default is
1688
1691
                          NO).
1705
1708
                          is NO).
1706
1709
  --disable-pluto         disable the IKEv1 keying daemon pluto. (default is
1707
1710
                          NO).
 
1711
  --disable-threads       disable the use of threads in pluto. Charon always
 
1712
                          uses threads. (default is NO).
1708
1713
  --disable-charon        disable the IKEv2 keying daemon charon. (default is
1709
1714
                          NO).
1710
1715
  --disable-tools         disable additional utilities (openac and
1766
1771
  --with-capabilities=libcap
1767
1772
                          capability dropping using libcap. Currenlty only the
1768
1773
                          value "libcap" is supported (default is NO).
1769
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1770
1774
  --with-pic              try to use only PIC/non-PIC objects [default=use
1771
1775
                          both]
1772
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1776
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1773
1777
 
1774
1778
Some influential environment variables:
1775
1779
  CC          C compiler command
1781
1785
              you have headers in a nonstandard directory <include dir>
1782
1786
  CPP         C preprocessor
1783
1787
  PKG_CONFIG  path to pkg-config utility
1784
 
  CXX         C++ compiler command
1785
 
  CXXFLAGS    C++ compiler flags
1786
 
  CXXCPP      C++ preprocessor
1787
 
  F77         Fortran 77 compiler command
1788
 
  FFLAGS      Fortran 77 compiler flags
1789
1788
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1790
1789
              the first program found out of: `bison -y', `byacc', `yacc'.
1791
1790
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1861
1860
test -n "$ac_init_help" && exit $ac_status
1862
1861
if $ac_init_version; then
1863
1862
  cat <<\_ACEOF
1864
 
strongSwan configure 4.2.9
 
1863
strongSwan configure 4.2.14
1865
1864
generated by GNU Autoconf 2.61
1866
1865
 
1867
1866
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1875
1874
This file contains any messages produced by compilers while
1876
1875
running configure, to aid debugging if configure makes a mistake.
1877
1876
 
1878
 
It was created by strongSwan $as_me 4.2.9, which was
 
1877
It was created by strongSwan $as_me 4.2.14, which was
1879
1878
generated by GNU Autoconf 2.61.  Invocation command line was
1880
1879
 
1881
1880
  $ $0 $@
2565
2564
 
2566
2565
# Define the identity of the package.
2567
2566
 PACKAGE='strongswan'
2568
 
 VERSION='4.2.9'
 
2567
 VERSION='4.2.14'
2569
2568
 
2570
2569
 
2571
2570
cat >>confdefs.h <<_ACEOF
2792
2791
 
2793
2792
 
2794
2793
 
 
2794
 
2795
2795
DEPDIR="${am__leading_dot}deps"
2796
2796
 
2797
2797
ac_config_commands="$ac_config_commands depfiles"
5162
5162
fi
5163
5163
 
5164
5164
 
 
5165
# Check whether --enable-md4 was given.
 
5166
if test "${enable_md4+set}" = set; then
 
5167
  enableval=$enable_md4; if test x$enableval = xyes; then
 
5168
                md4=true
 
5169
        fi
 
5170
 
 
5171
fi
 
5172
 
 
5173
 
5165
5174
# Check whether --enable-md5 was given.
5166
5175
if test "${enable_md5+set}" = set; then
5167
5176
  enableval=$enable_md5; if test x$enableval = xyes; then
5467
5476
fi
5468
5477
 
5469
5478
 
 
5479
# Check whether --enable-eap-mschapv2 was given.
 
5480
if test "${enable_eap_mschapv2+set}" = set; then
 
5481
  enableval=$enable_eap_mschapv2; if test x$enableval = xyes; then
 
5482
                eap_mschapv2=true
 
5483
        fi
 
5484
 
 
5485
fi
 
5486
 
 
5487
 
 
5488
# Check whether --enable-eap-radius was given.
 
5489
if test "${enable_eap_radius+set}" = set; then
 
5490
  enableval=$enable_eap_radius; if test x$enableval = xyes; then
 
5491
                eap_radius=true
 
5492
        fi
 
5493
 
 
5494
fi
 
5495
 
 
5496
 
5470
5497
# Check whether --enable-kernel-netlink was given.
5471
5498
if test "${enable_kernel_netlink+set}" = set; then
5472
5499
  enableval=$enable_kernel_netlink; if test x$enableval = xyes; then
5605
5632
fi
5606
5633
 
5607
5634
 
 
5635
# Check whether --enable-threads was given.
 
5636
if test "${enable_threads+set}" = set; then
 
5637
  enableval=$enable_threads; if test x$enableval = xyes; then
 
5638
                threads=true
 
5639
         else
 
5640
                threads=false
 
5641
        fi
 
5642
else
 
5643
  threads=true
 
5644
 
 
5645
fi
 
5646
 
 
5647
 
5608
5648
# Check whether --enable-charon was given.
5609
5649
if test "${enable_charon+set}" = set; then
5610
5650
  enableval=$enable_charon; if test x$enableval = xyes; then
5773
5813
 
5774
5814
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5775
5815
 
5776
 
# Check whether --enable-shared was given.
5777
 
if test "${enable_shared+set}" = set; then
5778
 
  enableval=$enable_shared; p=${PACKAGE-default}
5779
 
    case $enableval in
5780
 
    yes) enable_shared=yes ;;
5781
 
    no) enable_shared=no ;;
5782
 
    *)
5783
 
      enable_shared=no
5784
 
      # Look at the argument we got.  We use all the common list separators.
5785
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5786
 
      for pkg in $enableval; do
5787
 
        IFS="$lt_save_ifs"
5788
 
        if test "X$pkg" = "X$p"; then
5789
 
          enable_shared=yes
5790
 
        fi
5791
 
      done
5792
 
      IFS="$lt_save_ifs"
5793
 
      ;;
5794
 
    esac
5795
 
else
5796
 
  enable_shared=yes
5797
 
fi
5798
 
 
5799
 
 
5800
 
# Check whether --enable-static was given.
5801
 
if test "${enable_static+set}" = set; then
5802
 
  enableval=$enable_static; p=${PACKAGE-default}
5803
 
    case $enableval in
5804
 
    yes) enable_static=yes ;;
5805
 
    no) enable_static=no ;;
5806
 
    *)
5807
 
     enable_static=no
5808
 
      # Look at the argument we got.  We use all the common list separators.
5809
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5810
 
      for pkg in $enableval; do
5811
 
        IFS="$lt_save_ifs"
5812
 
        if test "X$pkg" = "X$p"; then
5813
 
          enable_static=yes
5814
 
        fi
5815
 
      done
5816
 
      IFS="$lt_save_ifs"
5817
 
      ;;
5818
 
    esac
5819
 
else
5820
 
  enable_static=yes
5821
 
fi
5822
 
 
5823
 
 
5824
 
# Check whether --enable-fast-install was given.
5825
 
if test "${enable_fast_install+set}" = set; then
5826
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
5827
 
    case $enableval in
5828
 
    yes) enable_fast_install=yes ;;
5829
 
    no) enable_fast_install=no ;;
5830
 
    *)
5831
 
      enable_fast_install=no
5832
 
      # Look at the argument we got.  We use all the common list separators.
5833
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5834
 
      for pkg in $enableval; do
5835
 
        IFS="$lt_save_ifs"
5836
 
        if test "X$pkg" = "X$p"; then
5837
 
          enable_fast_install=yes
5838
 
        fi
5839
 
      done
5840
 
      IFS="$lt_save_ifs"
5841
 
      ;;
5842
 
    esac
5843
 
else
5844
 
  enable_fast_install=yes
5845
 
fi
5846
 
 
 
5816
case `pwd` in
 
5817
  *\ * | *\     *)
 
5818
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5819
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5820
esac
 
5821
 
 
5822
 
 
5823
 
 
5824
macro_version='2.2.4'
 
5825
macro_revision='1.2976'
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
ltmain="$ac_aux_dir/ltmain.sh"
5847
5840
 
5848
5841
# Make sure we can run config.sub.
5849
5842
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5930
5923
 
5931
5924
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5932
5925
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5933
 
if test "${lt_cv_path_SED+set}" = set; then
5934
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5935
 
else
5936
 
  # Loop through the user's path and test for sed and gsed.
5937
 
# Then use that list of sed's as ones to test for truncation.
 
5926
if test "${ac_cv_path_SED+set}" = set; then
 
5927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5928
else
 
5929
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5930
     for ac_i in 1 2 3 4 5 6 7; do
 
5931
       ac_script="$ac_script$as_nl$ac_script"
 
5932
     done
 
5933
     echo "$ac_script" | sed 99q >conftest.sed
 
5934
     $as_unset ac_script || ac_script=
 
5935
     # Extract the first word of "sed gsed" to use in msg output
 
5936
if test -z "$SED"; then
 
5937
set dummy sed gsed; ac_prog_name=$2
 
5938
if test "${ac_cv_path_SED+set}" = set; then
 
5939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5940
else
 
5941
  ac_path_SED_found=false
 
5942
# Loop through the user's path and test for each of PROGNAME-LIST
5938
5943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939
5944
for as_dir in $PATH
5940
5945
do
5941
5946
  IFS=$as_save_IFS
5942
5947
  test -z "$as_dir" && as_dir=.
5943
 
  for lt_ac_prog in sed gsed; do
5944
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5945
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5946
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5947
 
      fi
5948
 
    done
5949
 
  done
5950
 
done
5951
 
IFS=$as_save_IFS
5952
 
lt_ac_max=0
5953
 
lt_ac_count=0
5954
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5955
 
# along with /bin/sed that truncates output.
5956
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5957
 
  test ! -f $lt_ac_sed && continue
5958
 
  cat /dev/null > conftest.in
5959
 
  lt_ac_count=0
5960
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5961
 
  # Check for GNU sed and select it if it is found.
5962
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5963
 
    lt_cv_path_SED=$lt_ac_sed
5964
 
    break
5965
 
  fi
5966
 
  while true; do
5967
 
    cat conftest.in conftest.in >conftest.tmp
5968
 
    mv conftest.tmp conftest.in
5969
 
    cp conftest.in conftest.nl
5970
 
    echo >>conftest.nl
5971
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5972
 
    cmp -s conftest.out conftest.nl || break
5973
 
    # 10000 chars as input seems more than enough
5974
 
    test $lt_ac_count -gt 10 && break
5975
 
    lt_ac_count=`expr $lt_ac_count + 1`
5976
 
    if test $lt_ac_count -gt $lt_ac_max; then
5977
 
      lt_ac_max=$lt_ac_count
5978
 
      lt_cv_path_SED=$lt_ac_sed
5979
 
    fi
5980
 
  done
5981
 
done
5982
 
 
5983
 
fi
5984
 
 
5985
 
SED=$lt_cv_path_SED
5986
 
 
5987
 
{ echo "$as_me:$LINENO: result: $SED" >&5
5988
 
echo "${ECHO_T}$SED" >&6; }
 
5948
  for ac_prog in sed gsed; do
 
5949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5950
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5951
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5952
    # Check for GNU ac_path_SED and select it if it is found.
 
5953
  # Check for GNU $ac_path_SED
 
5954
case `"$ac_path_SED" --version 2>&1` in
 
5955
*GNU*)
 
5956
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5957
*)
 
5958
  ac_count=0
 
5959
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5960
  while :
 
5961
  do
 
5962
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5963
    mv "conftest.tmp" "conftest.in"
 
5964
    cp "conftest.in" "conftest.nl"
 
5965
    echo '' >> "conftest.nl"
 
5966
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5967
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5968
    ac_count=`expr $ac_count + 1`
 
5969
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5970
      # Best one so far, save it but keep looking for a better one
 
5971
      ac_cv_path_SED="$ac_path_SED"
 
5972
      ac_path_SED_max=$ac_count
 
5973
    fi
 
5974
    # 10*(2^10) chars as input seems more than enough
 
5975
    test $ac_count -gt 10 && break
 
5976
  done
 
5977
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5978
esac
 
5979
 
 
5980
 
 
5981
    $ac_path_SED_found && break 3
 
5982
  done
 
5983
done
 
5984
 
 
5985
done
 
5986
IFS=$as_save_IFS
 
5987
 
 
5988
 
 
5989
fi
 
5990
 
 
5991
SED="$ac_cv_path_SED"
 
5992
if test -z "$SED"; then
 
5993
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
5994
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
5995
   { (exit 1); exit 1; }; }
 
5996
fi
 
5997
 
 
5998
else
 
5999
  ac_cv_path_SED=$SED
 
6000
fi
 
6001
 
 
6002
fi
 
6003
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
6004
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
6005
 SED="$ac_cv_path_SED"
 
6006
  rm -f conftest.sed
 
6007
 
 
6008
test -z "$SED" && SED=sed
 
6009
Xsed="$SED -e 1s/^X//"
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
 
 
6018
 
 
6019
 
 
6020
 
 
6021
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
6022
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
6023
if test "${ac_cv_path_FGREP+set}" = set; then
 
6024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6025
else
 
6026
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
6027
   then ac_cv_path_FGREP="$GREP -F"
 
6028
   else
 
6029
     # Extract the first word of "fgrep" to use in msg output
 
6030
if test -z "$FGREP"; then
 
6031
set dummy fgrep; ac_prog_name=$2
 
6032
if test "${ac_cv_path_FGREP+set}" = set; then
 
6033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6034
else
 
6035
  ac_path_FGREP_found=false
 
6036
# Loop through the user's path and test for each of PROGNAME-LIST
 
6037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6038
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6039
do
 
6040
  IFS=$as_save_IFS
 
6041
  test -z "$as_dir" && as_dir=.
 
6042
  for ac_prog in fgrep; do
 
6043
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6044
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
6045
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
6046
    # Check for GNU ac_path_FGREP and select it if it is found.
 
6047
  # Check for GNU $ac_path_FGREP
 
6048
case `"$ac_path_FGREP" --version 2>&1` in
 
6049
*GNU*)
 
6050
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
6051
*)
 
6052
  ac_count=0
 
6053
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
6054
  while :
 
6055
  do
 
6056
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6057
    mv "conftest.tmp" "conftest.in"
 
6058
    cp "conftest.in" "conftest.nl"
 
6059
    echo 'FGREP' >> "conftest.nl"
 
6060
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6061
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6062
    ac_count=`expr $ac_count + 1`
 
6063
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
6064
      # Best one so far, save it but keep looking for a better one
 
6065
      ac_cv_path_FGREP="$ac_path_FGREP"
 
6066
      ac_path_FGREP_max=$ac_count
 
6067
    fi
 
6068
    # 10*(2^10) chars as input seems more than enough
 
6069
    test $ac_count -gt 10 && break
 
6070
  done
 
6071
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6072
esac
 
6073
 
 
6074
 
 
6075
    $ac_path_FGREP_found && break 3
 
6076
  done
 
6077
done
 
6078
 
 
6079
done
 
6080
IFS=$as_save_IFS
 
6081
 
 
6082
 
 
6083
fi
 
6084
 
 
6085
FGREP="$ac_cv_path_FGREP"
 
6086
if test -z "$FGREP"; then
 
6087
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
6088
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
6089
   { (exit 1); exit 1; }; }
 
6090
fi
 
6091
 
 
6092
else
 
6093
  ac_cv_path_FGREP=$FGREP
 
6094
fi
 
6095
 
 
6096
 
 
6097
   fi
 
6098
fi
 
6099
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
6100
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
6101
 FGREP="$ac_cv_path_FGREP"
 
6102
 
 
6103
 
 
6104
test -z "$GREP" && GREP=grep
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
5989
6122
 
5990
6123
 
5991
6124
# Check whether --with-gnu-ld was given.
6012
6145
    [\\/]* | ?:[\\/]*)
6013
6146
      re_direlt='/[^/][^/]*/\.\./'
6014
6147
      # Canonicalize the pathname of ld
6015
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6016
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6017
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
6148
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
6149
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
6150
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6018
6151
      done
6019
6152
      test -z "$LD" && LD="$ac_prog"
6020
6153
      ;;
6094
6227
with_gnu_ld=$lt_cv_prog_gnu_ld
6095
6228
 
6096
6229
 
6097
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6098
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6099
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
6100
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6101
 
else
6102
 
  lt_cv_ld_reload_flag='-r'
6103
 
fi
6104
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6105
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6106
 
reload_flag=$lt_cv_ld_reload_flag
6107
 
case $reload_flag in
6108
 
"" | " "*) ;;
6109
 
*) reload_flag=" $reload_flag" ;;
6110
 
esac
6111
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6112
 
case $host_os in
6113
 
  darwin*)
6114
 
    if test "$GCC" = yes; then
6115
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6116
 
    else
6117
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6118
 
    fi
6119
 
    ;;
6120
 
esac
6121
 
 
6122
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6123
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
 
 
6236
 
 
6237
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
6238
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
6124
6239
if test "${lt_cv_path_NM+set}" = set; then
6125
6240
  echo $ECHO_N "(cached) $ECHO_C" >&6
6126
6241
else
6165
6280
    done
6166
6281
    IFS="$lt_save_ifs"
6167
6282
  done
6168
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
6283
  : ${lt_cv_path_NM=no}
6169
6284
fi
6170
6285
fi
6171
6286
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6172
6287
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6173
 
NM="$lt_cv_path_NM"
 
6288
if test "$lt_cv_path_NM" != "no"; then
 
6289
  NM="$lt_cv_path_NM"
 
6290
else
 
6291
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
6292
  if test -n "$ac_tool_prefix"; then
 
6293
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6294
  do
 
6295
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6296
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6297
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6299
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
6300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6301
else
 
6302
  if test -n "$DUMPBIN"; then
 
6303
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
6304
else
 
6305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6306
for as_dir in $PATH
 
6307
do
 
6308
  IFS=$as_save_IFS
 
6309
  test -z "$as_dir" && as_dir=.
 
6310
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6311
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6312
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
6313
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6314
    break 2
 
6315
  fi
 
6316
done
 
6317
done
 
6318
IFS=$as_save_IFS
 
6319
 
 
6320
fi
 
6321
fi
 
6322
DUMPBIN=$ac_cv_prog_DUMPBIN
 
6323
if test -n "$DUMPBIN"; then
 
6324
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
6325
echo "${ECHO_T}$DUMPBIN" >&6; }
 
6326
else
 
6327
  { echo "$as_me:$LINENO: result: no" >&5
 
6328
echo "${ECHO_T}no" >&6; }
 
6329
fi
 
6330
 
 
6331
 
 
6332
    test -n "$DUMPBIN" && break
 
6333
  done
 
6334
fi
 
6335
if test -z "$DUMPBIN"; then
 
6336
  ac_ct_DUMPBIN=$DUMPBIN
 
6337
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6338
do
 
6339
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6340
set dummy $ac_prog; ac_word=$2
 
6341
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6343
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
6344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6345
else
 
6346
  if test -n "$ac_ct_DUMPBIN"; then
 
6347
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
6348
else
 
6349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6350
for as_dir in $PATH
 
6351
do
 
6352
  IFS=$as_save_IFS
 
6353
  test -z "$as_dir" && as_dir=.
 
6354
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6355
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6356
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
6357
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6358
    break 2
 
6359
  fi
 
6360
done
 
6361
done
 
6362
IFS=$as_save_IFS
 
6363
 
 
6364
fi
 
6365
fi
 
6366
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
6367
if test -n "$ac_ct_DUMPBIN"; then
 
6368
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
6369
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
6370
else
 
6371
  { echo "$as_me:$LINENO: result: no" >&5
 
6372
echo "${ECHO_T}no" >&6; }
 
6373
fi
 
6374
 
 
6375
 
 
6376
  test -n "$ac_ct_DUMPBIN" && break
 
6377
done
 
6378
 
 
6379
  if test "x$ac_ct_DUMPBIN" = x; then
 
6380
    DUMPBIN=":"
 
6381
  else
 
6382
    case $cross_compiling:$ac_tool_warned in
 
6383
yes:)
 
6384
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6385
whose name does not start with the host triplet.  If you think this
 
6386
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6387
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6388
whose name does not start with the host triplet.  If you think this
 
6389
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6390
ac_tool_warned=yes ;;
 
6391
esac
 
6392
    DUMPBIN=$ac_ct_DUMPBIN
 
6393
  fi
 
6394
fi
 
6395
 
 
6396
 
 
6397
  if test "$DUMPBIN" != ":"; then
 
6398
    NM="$DUMPBIN"
 
6399
  fi
 
6400
fi
 
6401
test -z "$NM" && NM=nm
 
6402
 
 
6403
 
 
6404
 
 
6405
 
 
6406
 
 
6407
 
 
6408
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
6409
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
6410
if test "${lt_cv_nm_interface+set}" = set; then
 
6411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6412
else
 
6413
  lt_cv_nm_interface="BSD nm"
 
6414
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6415
  (eval echo "\"\$as_me:6415: $ac_compile\"" >&5)
 
6416
  (eval "$ac_compile" 2>conftest.err)
 
6417
  cat conftest.err >&5
 
6418
  (eval echo "\"\$as_me:6418: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6419
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
6420
  cat conftest.err >&5
 
6421
  (eval echo "\"\$as_me:6421: output\"" >&5)
 
6422
  cat conftest.out >&5
 
6423
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
6424
    lt_cv_nm_interface="MS dumpbin"
 
6425
  fi
 
6426
  rm -f conftest*
 
6427
fi
 
6428
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
6429
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6174
6430
 
6175
6431
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6176
6432
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6183
6439
echo "${ECHO_T}no, using $LN_S" >&6; }
6184
6440
fi
6185
6441
 
 
6442
# find the maximum length of command line arguments
 
6443
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6444
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6445
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6447
else
 
6448
    i=0
 
6449
  teststring="ABCD"
 
6450
 
 
6451
  case $build_os in
 
6452
  msdosdjgpp*)
 
6453
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6454
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6455
    # during glob expansion).  Even if it were fixed, the result of this
 
6456
    # check would be larger than it should be.
 
6457
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6458
    ;;
 
6459
 
 
6460
  gnu*)
 
6461
    # Under GNU Hurd, this test is not required because there is
 
6462
    # no limit to the length of command line arguments.
 
6463
    # Libtool will interpret -1 as no limit whatsoever
 
6464
    lt_cv_sys_max_cmd_len=-1;
 
6465
    ;;
 
6466
 
 
6467
  cygwin* | mingw*)
 
6468
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6469
    # about 5 minutes as the teststring grows exponentially.
 
6470
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6471
    # you end up with a "frozen" computer, even though with patience
 
6472
    # the test eventually succeeds (with a max line length of 256k).
 
6473
    # Instead, let's just punt: use the minimum linelength reported by
 
6474
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6475
    lt_cv_sys_max_cmd_len=8192;
 
6476
    ;;
 
6477
 
 
6478
  amigaos*)
 
6479
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6480
    # So we just punt and use a minimum line length of 8192.
 
6481
    lt_cv_sys_max_cmd_len=8192;
 
6482
    ;;
 
6483
 
 
6484
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6485
    # This has been around since 386BSD, at least.  Likely further.
 
6486
    if test -x /sbin/sysctl; then
 
6487
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6488
    elif test -x /usr/sbin/sysctl; then
 
6489
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6490
    else
 
6491
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6492
    fi
 
6493
    # And add a safety zone
 
6494
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6495
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6496
    ;;
 
6497
 
 
6498
  interix*)
 
6499
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6500
    lt_cv_sys_max_cmd_len=196608
 
6501
    ;;
 
6502
 
 
6503
  osf*)
 
6504
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6505
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6506
    # nice to cause kernel panics so lets avoid the loop below.
 
6507
    # First set a reasonable default.
 
6508
    lt_cv_sys_max_cmd_len=16384
 
6509
    #
 
6510
    if test -x /sbin/sysconfig; then
 
6511
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6512
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6513
      esac
 
6514
    fi
 
6515
    ;;
 
6516
  sco3.2v5*)
 
6517
    lt_cv_sys_max_cmd_len=102400
 
6518
    ;;
 
6519
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6520
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6521
    if test -n "$kargmax"; then
 
6522
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6523
    else
 
6524
      lt_cv_sys_max_cmd_len=32768
 
6525
    fi
 
6526
    ;;
 
6527
  *)
 
6528
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6529
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6530
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6531
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6532
    else
 
6533
      # Make teststring a little bigger before we do anything with it.
 
6534
      # a 1K string should be a reasonable start.
 
6535
      for i in 1 2 3 4 5 6 7 8 ; do
 
6536
        teststring=$teststring$teststring
 
6537
      done
 
6538
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6539
      # If test is not a shell built-in, we'll probably end up computing a
 
6540
      # maximum length that is only half of the actual maximum length, but
 
6541
      # we can't tell.
 
6542
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
6543
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
6544
              test $i != 17 # 1/2 MB should be enough
 
6545
      do
 
6546
        i=`expr $i + 1`
 
6547
        teststring=$teststring$teststring
 
6548
      done
 
6549
      # Only check the string length outside the loop.
 
6550
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6551
      teststring=
 
6552
      # Add a significant safety factor because C++ compilers can tack on
 
6553
      # massive amounts of additional arguments before passing them to the
 
6554
      # linker.  It appears as though 1/2 is a usable value.
 
6555
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6556
    fi
 
6557
    ;;
 
6558
  esac
 
6559
 
 
6560
fi
 
6561
 
 
6562
if test -n $lt_cv_sys_max_cmd_len ; then
 
6563
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6564
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6565
else
 
6566
  { echo "$as_me:$LINENO: result: none" >&5
 
6567
echo "${ECHO_T}none" >&6; }
 
6568
fi
 
6569
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6570
 
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
 
 
6576
: ${CP="cp -f"}
 
6577
: ${MV="mv -f"}
 
6578
: ${RM="rm -f"}
 
6579
 
 
6580
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
6581
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
6582
# Try some XSI features
 
6583
xsi_shell=no
 
6584
( _lt_dummy="a/b/c"
 
6585
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
6586
      = c,a/b,, \
 
6587
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6588
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6589
  && xsi_shell=yes
 
6590
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
6591
echo "${ECHO_T}$xsi_shell" >&6; }
 
6592
 
 
6593
 
 
6594
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
6595
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
6596
lt_shell_append=no
 
6597
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6598
    >/dev/null 2>&1 \
 
6599
  && lt_shell_append=yes
 
6600
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
6601
echo "${ECHO_T}$lt_shell_append" >&6; }
 
6602
 
 
6603
 
 
6604
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6605
  lt_unset=unset
 
6606
else
 
6607
  lt_unset=false
 
6608
fi
 
6609
 
 
6610
 
 
6611
 
 
6612
 
 
6613
 
 
6614
# test EBCDIC or ASCII
 
6615
case `echo X|tr X '\101'` in
 
6616
 A) # ASCII based system
 
6617
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6618
  lt_SP2NL='tr \040 \012'
 
6619
  lt_NL2SP='tr \015\012 \040\040'
 
6620
  ;;
 
6621
 *) # EBCDIC based system
 
6622
  lt_SP2NL='tr \100 \n'
 
6623
  lt_NL2SP='tr \r\n \100\100'
 
6624
  ;;
 
6625
esac
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
 
 
6635
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6636
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
6637
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6639
else
 
6640
  lt_cv_ld_reload_flag='-r'
 
6641
fi
 
6642
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6643
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
6644
reload_flag=$lt_cv_ld_reload_flag
 
6645
case $reload_flag in
 
6646
"" | " "*) ;;
 
6647
*) reload_flag=" $reload_flag" ;;
 
6648
esac
 
6649
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6650
case $host_os in
 
6651
  darwin*)
 
6652
    if test "$GCC" = yes; then
 
6653
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6654
    else
 
6655
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6656
    fi
 
6657
    ;;
 
6658
esac
 
6659
 
 
6660
 
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
 
 
6668
 
6186
6669
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6187
6670
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6188
6671
if test "${lt_cv_deplibs_check_method+set}" = set; then
6241
6724
  ;;
6242
6725
 
6243
6726
freebsd* | dragonfly*)
6244
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6727
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6245
6728
    case $host_cpu in
6246
6729
    i*86 )
6247
6730
      # Not sure whether the presence of OpenBSD here was a mistake.
6299
6782
  ;;
6300
6783
 
6301
6784
netbsd* | netbsdelf*-gnu)
6302
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6785
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303
6786
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304
6787
  else
6305
6788
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6312
6795
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6313
6796
  ;;
6314
6797
 
6315
 
nto-qnx*)
6316
 
  lt_cv_deplibs_check_method=unknown
 
6798
*nto* | *qnx*)
 
6799
  lt_cv_deplibs_check_method=pass_all
6317
6800
  ;;
6318
6801
 
6319
6802
openbsd*)
6320
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6803
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321
6804
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6322
6805
  else
6323
6806
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336
6819
  lt_cv_deplibs_check_method=pass_all
6337
6820
  ;;
6338
6821
 
 
6822
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6823
  lt_cv_deplibs_check_method=pass_all
 
6824
  ;;
 
6825
 
6339
6826
sysv4 | sysv4.3*)
6340
6827
  case $host_vendor in
6341
6828
  motorola)
6363
6850
  esac
6364
6851
  ;;
6365
6852
 
6366
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6853
tpf*)
6367
6854
  lt_cv_deplibs_check_method=pass_all
6368
6855
  ;;
6369
6856
esac
6378
6865
 
6379
6866
 
6380
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
if test -n "$ac_tool_prefix"; then
 
6877
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6878
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6881
if test "${ac_cv_prog_AR+set}" = set; then
 
6882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6883
else
 
6884
  if test -n "$AR"; then
 
6885
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6886
else
 
6887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6888
for as_dir in $PATH
 
6889
do
 
6890
  IFS=$as_save_IFS
 
6891
  test -z "$as_dir" && as_dir=.
 
6892
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6894
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6895
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6896
    break 2
 
6897
  fi
 
6898
done
 
6899
done
 
6900
IFS=$as_save_IFS
 
6901
 
 
6902
fi
 
6903
fi
 
6904
AR=$ac_cv_prog_AR
 
6905
if test -n "$AR"; then
 
6906
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6907
echo "${ECHO_T}$AR" >&6; }
 
6908
else
 
6909
  { echo "$as_me:$LINENO: result: no" >&5
 
6910
echo "${ECHO_T}no" >&6; }
 
6911
fi
 
6912
 
 
6913
 
 
6914
fi
 
6915
if test -z "$ac_cv_prog_AR"; then
 
6916
  ac_ct_AR=$AR
 
6917
  # Extract the first word of "ar", so it can be a program name with args.
 
6918
set dummy ar; ac_word=$2
 
6919
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6920
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6921
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6923
else
 
6924
  if test -n "$ac_ct_AR"; then
 
6925
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6926
else
 
6927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6928
for as_dir in $PATH
 
6929
do
 
6930
  IFS=$as_save_IFS
 
6931
  test -z "$as_dir" && as_dir=.
 
6932
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6934
    ac_cv_prog_ac_ct_AR="ar"
 
6935
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6936
    break 2
 
6937
  fi
 
6938
done
 
6939
done
 
6940
IFS=$as_save_IFS
 
6941
 
 
6942
fi
 
6943
fi
 
6944
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6945
if test -n "$ac_ct_AR"; then
 
6946
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6947
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6948
else
 
6949
  { echo "$as_me:$LINENO: result: no" >&5
 
6950
echo "${ECHO_T}no" >&6; }
 
6951
fi
 
6952
 
 
6953
  if test "x$ac_ct_AR" = x; then
 
6954
    AR="false"
 
6955
  else
 
6956
    case $cross_compiling:$ac_tool_warned in
 
6957
yes:)
 
6958
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6959
whose name does not start with the host triplet.  If you think this
 
6960
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6961
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6962
whose name does not start with the host triplet.  If you think this
 
6963
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6964
ac_tool_warned=yes ;;
 
6965
esac
 
6966
    AR=$ac_ct_AR
 
6967
  fi
 
6968
else
 
6969
  AR="$ac_cv_prog_AR"
 
6970
fi
 
6971
 
 
6972
test -z "$AR" && AR=ar
 
6973
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6974
 
 
6975
 
 
6976
 
 
6977
 
 
6978
 
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
 
 
6984
 
 
6985
if test -n "$ac_tool_prefix"; then
 
6986
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6987
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6988
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6989
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6990
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6992
else
 
6993
  if test -n "$STRIP"; then
 
6994
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6995
else
 
6996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6997
for as_dir in $PATH
 
6998
do
 
6999
  IFS=$as_save_IFS
 
7000
  test -z "$as_dir" && as_dir=.
 
7001
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7002
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7003
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7004
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7005
    break 2
 
7006
  fi
 
7007
done
 
7008
done
 
7009
IFS=$as_save_IFS
 
7010
 
 
7011
fi
 
7012
fi
 
7013
STRIP=$ac_cv_prog_STRIP
 
7014
if test -n "$STRIP"; then
 
7015
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7016
echo "${ECHO_T}$STRIP" >&6; }
 
7017
else
 
7018
  { echo "$as_me:$LINENO: result: no" >&5
 
7019
echo "${ECHO_T}no" >&6; }
 
7020
fi
 
7021
 
 
7022
 
 
7023
fi
 
7024
if test -z "$ac_cv_prog_STRIP"; then
 
7025
  ac_ct_STRIP=$STRIP
 
7026
  # Extract the first word of "strip", so it can be a program name with args.
 
7027
set dummy strip; ac_word=$2
 
7028
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7029
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7030
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7032
else
 
7033
  if test -n "$ac_ct_STRIP"; then
 
7034
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7035
else
 
7036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7037
for as_dir in $PATH
 
7038
do
 
7039
  IFS=$as_save_IFS
 
7040
  test -z "$as_dir" && as_dir=.
 
7041
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7043
    ac_cv_prog_ac_ct_STRIP="strip"
 
7044
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7045
    break 2
 
7046
  fi
 
7047
done
 
7048
done
 
7049
IFS=$as_save_IFS
 
7050
 
 
7051
fi
 
7052
fi
 
7053
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7054
if test -n "$ac_ct_STRIP"; then
 
7055
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7056
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7057
else
 
7058
  { echo "$as_me:$LINENO: result: no" >&5
 
7059
echo "${ECHO_T}no" >&6; }
 
7060
fi
 
7061
 
 
7062
  if test "x$ac_ct_STRIP" = x; then
 
7063
    STRIP=":"
 
7064
  else
 
7065
    case $cross_compiling:$ac_tool_warned in
 
7066
yes:)
 
7067
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7068
whose name does not start with the host triplet.  If you think this
 
7069
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7070
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7071
whose name does not start with the host triplet.  If you think this
 
7072
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7073
ac_tool_warned=yes ;;
 
7074
esac
 
7075
    STRIP=$ac_ct_STRIP
 
7076
  fi
 
7077
else
 
7078
  STRIP="$ac_cv_prog_STRIP"
 
7079
fi
 
7080
 
 
7081
test -z "$STRIP" && STRIP=:
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
if test -n "$ac_tool_prefix"; then
 
7089
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7090
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7091
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7093
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7094
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7095
else
 
7096
  if test -n "$RANLIB"; then
 
7097
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7098
else
 
7099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7100
for as_dir in $PATH
 
7101
do
 
7102
  IFS=$as_save_IFS
 
7103
  test -z "$as_dir" && as_dir=.
 
7104
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7105
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7106
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7108
    break 2
 
7109
  fi
 
7110
done
 
7111
done
 
7112
IFS=$as_save_IFS
 
7113
 
 
7114
fi
 
7115
fi
 
7116
RANLIB=$ac_cv_prog_RANLIB
 
7117
if test -n "$RANLIB"; then
 
7118
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7119
echo "${ECHO_T}$RANLIB" >&6; }
 
7120
else
 
7121
  { echo "$as_me:$LINENO: result: no" >&5
 
7122
echo "${ECHO_T}no" >&6; }
 
7123
fi
 
7124
 
 
7125
 
 
7126
fi
 
7127
if test -z "$ac_cv_prog_RANLIB"; then
 
7128
  ac_ct_RANLIB=$RANLIB
 
7129
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7130
set dummy ranlib; ac_word=$2
 
7131
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7133
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7135
else
 
7136
  if test -n "$ac_ct_RANLIB"; then
 
7137
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7138
else
 
7139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7140
for as_dir in $PATH
 
7141
do
 
7142
  IFS=$as_save_IFS
 
7143
  test -z "$as_dir" && as_dir=.
 
7144
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7145
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7146
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7148
    break 2
 
7149
  fi
 
7150
done
 
7151
done
 
7152
IFS=$as_save_IFS
 
7153
 
 
7154
fi
 
7155
fi
 
7156
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7157
if test -n "$ac_ct_RANLIB"; then
 
7158
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7159
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7160
else
 
7161
  { echo "$as_me:$LINENO: result: no" >&5
 
7162
echo "${ECHO_T}no" >&6; }
 
7163
fi
 
7164
 
 
7165
  if test "x$ac_ct_RANLIB" = x; then
 
7166
    RANLIB=":"
 
7167
  else
 
7168
    case $cross_compiling:$ac_tool_warned in
 
7169
yes:)
 
7170
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7171
whose name does not start with the host triplet.  If you think this
 
7172
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7173
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7174
whose name does not start with the host triplet.  If you think this
 
7175
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7176
ac_tool_warned=yes ;;
 
7177
esac
 
7178
    RANLIB=$ac_ct_RANLIB
 
7179
  fi
 
7180
else
 
7181
  RANLIB="$ac_cv_prog_RANLIB"
 
7182
fi
 
7183
 
 
7184
test -z "$RANLIB" && RANLIB=:
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
# Determine commands to create old-style static archives.
 
7192
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7193
old_postinstall_cmds='chmod 644 $oldlib'
 
7194
old_postuninstall_cmds=
 
7195
 
 
7196
if test -n "$RANLIB"; then
 
7197
  case $host_os in
 
7198
  openbsd*)
 
7199
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7200
    ;;
 
7201
  *)
 
7202
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7203
    ;;
 
7204
  esac
 
7205
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7206
fi
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
 
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
6381
7241
# If no C compiler was specified, use CC.
6382
7242
LTCC=${LTCC-"$CC"}
6383
7243
 
6387
7247
# Allow CC to be a program name with arguments.
6388
7248
compiler=$CC
6389
7249
 
6390
 
# Check whether --enable-libtool-lock was given.
6391
 
if test "${enable_libtool_lock+set}" = set; then
6392
 
  enableval=$enable_libtool_lock;
6393
 
fi
6394
 
 
6395
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6396
 
 
6397
 
# Some flags need to be propagated to the compiler or linker for good
6398
 
# libtool support.
6399
 
case $host in
6400
 
ia64-*-hpux*)
6401
 
  # Find out which ABI we are using.
6402
 
  echo 'int i;' > conftest.$ac_ext
6403
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404
 
  (eval $ac_compile) 2>&5
6405
 
  ac_status=$?
6406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407
 
  (exit $ac_status); }; then
6408
 
    case `/usr/bin/file conftest.$ac_objext` in
6409
 
    *ELF-32*)
6410
 
      HPUX_IA64_MODE="32"
6411
 
      ;;
6412
 
    *ELF-64*)
6413
 
      HPUX_IA64_MODE="64"
6414
 
      ;;
6415
 
    esac
6416
 
  fi
6417
 
  rm -rf conftest*
6418
 
  ;;
6419
 
*-*-irix6*)
6420
 
  # Find out which ABI we are using.
6421
 
  echo '#line 6421 "configure"' > conftest.$ac_ext
6422
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423
 
  (eval $ac_compile) 2>&5
6424
 
  ac_status=$?
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); }; then
6427
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
6428
 
    case `/usr/bin/file conftest.$ac_objext` in
6429
 
    *32-bit*)
6430
 
      LD="${LD-ld} -melf32bsmip"
6431
 
      ;;
6432
 
    *N32*)
6433
 
      LD="${LD-ld} -melf32bmipn32"
6434
 
      ;;
6435
 
    *64-bit*)
6436
 
      LD="${LD-ld} -melf64bmip"
6437
 
      ;;
6438
 
    esac
6439
 
   else
6440
 
    case `/usr/bin/file conftest.$ac_objext` in
6441
 
    *32-bit*)
6442
 
      LD="${LD-ld} -32"
6443
 
      ;;
6444
 
    *N32*)
6445
 
      LD="${LD-ld} -n32"
6446
 
      ;;
6447
 
    *64-bit*)
6448
 
      LD="${LD-ld} -64"
6449
 
      ;;
6450
 
    esac
6451
 
   fi
6452
 
  fi
6453
 
  rm -rf conftest*
6454
 
  ;;
6455
 
 
6456
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6457
 
s390*-*linux*|sparc*-*linux*)
6458
 
  # Find out which ABI we are using.
6459
 
  echo 'int i;' > conftest.$ac_ext
6460
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461
 
  (eval $ac_compile) 2>&5
6462
 
  ac_status=$?
6463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464
 
  (exit $ac_status); }; then
6465
 
    case `/usr/bin/file conftest.o` in
6466
 
    *32-bit*)
6467
 
      case $host in
6468
 
        x86_64-*kfreebsd*-gnu)
6469
 
          LD="${LD-ld} -m elf_i386_fbsd"
6470
 
          ;;
6471
 
        x86_64-*linux*)
6472
 
          LD="${LD-ld} -m elf_i386"
6473
 
          ;;
6474
 
        ppc64-*linux*|powerpc64-*linux*)
6475
 
          LD="${LD-ld} -m elf32ppclinux"
6476
 
          ;;
6477
 
        s390x-*linux*)
6478
 
          LD="${LD-ld} -m elf_s390"
6479
 
          ;;
6480
 
        sparc64-*linux*)
6481
 
          LD="${LD-ld} -m elf32_sparc"
6482
 
          ;;
6483
 
      esac
6484
 
      ;;
6485
 
    *64-bit*)
6486
 
      case $host in
6487
 
        x86_64-*kfreebsd*-gnu)
6488
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
6489
 
          ;;
6490
 
        x86_64-*linux*)
6491
 
          LD="${LD-ld} -m elf_x86_64"
6492
 
          ;;
6493
 
        ppc*-*linux*|powerpc*-*linux*)
6494
 
          LD="${LD-ld} -m elf64ppc"
6495
 
          ;;
6496
 
        s390*-*linux*)
6497
 
          LD="${LD-ld} -m elf64_s390"
6498
 
          ;;
6499
 
        sparc*-*linux*)
6500
 
          LD="${LD-ld} -m elf64_sparc"
6501
 
          ;;
6502
 
      esac
6503
 
      ;;
6504
 
    esac
6505
 
  fi
6506
 
  rm -rf conftest*
6507
 
  ;;
6508
 
 
6509
 
*-*-sco3.2v5*)
6510
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6511
 
  SAVE_CFLAGS="$CFLAGS"
6512
 
  CFLAGS="$CFLAGS -belf"
6513
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6514
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6515
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6517
 
else
6518
 
  ac_ext=c
6519
 
ac_cpp='$CPP $CPPFLAGS'
6520
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523
 
 
6524
 
     cat >conftest.$ac_ext <<_ACEOF
6525
 
/* confdefs.h.  */
6526
 
_ACEOF
6527
 
cat confdefs.h >>conftest.$ac_ext
6528
 
cat >>conftest.$ac_ext <<_ACEOF
6529
 
/* end confdefs.h.  */
6530
 
 
6531
 
int
6532
 
main ()
6533
 
{
6534
 
 
6535
 
  ;
6536
 
  return 0;
6537
 
}
6538
 
_ACEOF
6539
 
rm -f conftest.$ac_objext conftest$ac_exeext
6540
 
if { (ac_try="$ac_link"
6541
 
case "(($ac_try" in
6542
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543
 
  *) ac_try_echo=$ac_try;;
6544
 
esac
6545
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546
 
  (eval "$ac_link") 2>conftest.er1
6547
 
  ac_status=$?
6548
 
  grep -v '^ *+' conftest.er1 >conftest.err
6549
 
  rm -f conftest.er1
6550
 
  cat conftest.err >&5
6551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552
 
  (exit $ac_status); } && {
6553
 
         test -z "$ac_c_werror_flag" ||
6554
 
         test ! -s conftest.err
6555
 
       } && test -s conftest$ac_exeext &&
6556
 
       $as_test_x conftest$ac_exeext; then
6557
 
  lt_cv_cc_needs_belf=yes
6558
 
else
6559
 
  echo "$as_me: failed program was:" >&5
6560
 
sed 's/^/| /' conftest.$ac_ext >&5
6561
 
 
6562
 
        lt_cv_cc_needs_belf=no
6563
 
fi
6564
 
 
6565
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566
 
      conftest$ac_exeext conftest.$ac_ext
6567
 
     ac_ext=c
6568
 
ac_cpp='$CPP $CPPFLAGS'
6569
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
 
 
6573
 
fi
6574
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6575
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6576
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6577
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6578
 
    CFLAGS="$SAVE_CFLAGS"
6579
 
  fi
6580
 
  ;;
6581
 
sparc*-*solaris*)
6582
 
  # Find out which ABI we are using.
6583
 
  echo 'int i;' > conftest.$ac_ext
6584
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585
 
  (eval $ac_compile) 2>&5
6586
 
  ac_status=$?
6587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588
 
  (exit $ac_status); }; then
6589
 
    case `/usr/bin/file conftest.o` in
6590
 
    *64-bit*)
6591
 
      case $lt_cv_prog_gnu_ld in
6592
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6593
 
      *)
6594
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6595
 
          LD="${LD-ld} -64"
6596
 
        fi
6597
 
        ;;
6598
 
      esac
6599
 
      ;;
6600
 
    esac
6601
 
  fi
6602
 
  rm -rf conftest*
6603
 
  ;;
6604
 
 
6605
 
 
6606
 
esac
6607
 
 
6608
 
need_locks="$enable_libtool_lock"
6609
 
 
6610
 
 
6611
 
 
6612
 
for ac_header in dlfcn.h
6613
 
do
6614
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6616
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6617
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6618
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6619
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6620
 
fi
6621
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6622
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6623
 
echo "${ECHO_T}$ac_res" >&6; }
6624
 
else
6625
 
  # Is the header compilable?
6626
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6627
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6628
 
cat >conftest.$ac_ext <<_ACEOF
6629
 
/* confdefs.h.  */
6630
 
_ACEOF
6631
 
cat confdefs.h >>conftest.$ac_ext
6632
 
cat >>conftest.$ac_ext <<_ACEOF
6633
 
/* end confdefs.h.  */
6634
 
$ac_includes_default
6635
 
#include <$ac_header>
6636
 
_ACEOF
6637
 
rm -f conftest.$ac_objext
6638
 
if { (ac_try="$ac_compile"
6639
 
case "(($ac_try" in
6640
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641
 
  *) ac_try_echo=$ac_try;;
6642
 
esac
6643
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644
 
  (eval "$ac_compile") 2>conftest.er1
6645
 
  ac_status=$?
6646
 
  grep -v '^ *+' conftest.er1 >conftest.err
6647
 
  rm -f conftest.er1
6648
 
  cat conftest.err >&5
6649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650
 
  (exit $ac_status); } && {
6651
 
         test -z "$ac_c_werror_flag" ||
6652
 
         test ! -s conftest.err
6653
 
       } && test -s conftest.$ac_objext; then
6654
 
  ac_header_compiler=yes
6655
 
else
6656
 
  echo "$as_me: failed program was:" >&5
6657
 
sed 's/^/| /' conftest.$ac_ext >&5
6658
 
 
6659
 
        ac_header_compiler=no
6660
 
fi
6661
 
 
6662
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6664
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6665
 
 
6666
 
# Is the header present?
6667
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6668
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6669
 
cat >conftest.$ac_ext <<_ACEOF
6670
 
/* confdefs.h.  */
6671
 
_ACEOF
6672
 
cat confdefs.h >>conftest.$ac_ext
6673
 
cat >>conftest.$ac_ext <<_ACEOF
6674
 
/* end confdefs.h.  */
6675
 
#include <$ac_header>
6676
 
_ACEOF
6677
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6678
 
case "(($ac_try" in
6679
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680
 
  *) ac_try_echo=$ac_try;;
6681
 
esac
6682
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6684
 
  ac_status=$?
6685
 
  grep -v '^ *+' conftest.er1 >conftest.err
6686
 
  rm -f conftest.er1
6687
 
  cat conftest.err >&5
6688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689
 
  (exit $ac_status); } >/dev/null && {
6690
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6691
 
         test ! -s conftest.err
6692
 
       }; then
6693
 
  ac_header_preproc=yes
6694
 
else
6695
 
  echo "$as_me: failed program was:" >&5
6696
 
sed 's/^/| /' conftest.$ac_ext >&5
6697
 
 
6698
 
  ac_header_preproc=no
6699
 
fi
6700
 
 
6701
 
rm -f conftest.err conftest.$ac_ext
6702
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6704
 
 
6705
 
# So?  What about this header?
6706
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6707
 
  yes:no: )
6708
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6711
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6712
 
    ac_header_preproc=yes
6713
 
    ;;
6714
 
  no:yes:* )
6715
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6718
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6719
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6720
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6721
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6722
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6723
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6724
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6725
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6726
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6727
 
 
6728
 
    ;;
6729
 
esac
6730
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6731
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6732
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6733
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6734
 
else
6735
 
  eval "$as_ac_Header=\$ac_header_preproc"
6736
 
fi
6737
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6738
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6739
 
echo "${ECHO_T}$ac_res" >&6; }
6740
 
 
6741
 
fi
6742
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6743
 
  cat >>confdefs.h <<_ACEOF
6744
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6745
 
_ACEOF
6746
 
 
6747
 
fi
6748
 
 
6749
 
done
6750
 
 
6751
 
ac_ext=cpp
6752
 
ac_cpp='$CXXCPP $CPPFLAGS'
6753
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6756
 
if test -z "$CXX"; then
6757
 
  if test -n "$CCC"; then
6758
 
    CXX=$CCC
6759
 
  else
6760
 
    if test -n "$ac_tool_prefix"; then
6761
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6762
 
  do
6763
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6764
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6765
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767
 
if test "${ac_cv_prog_CXX+set}" = set; then
6768
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6769
 
else
6770
 
  if test -n "$CXX"; then
6771
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6772
 
else
6773
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774
 
for as_dir in $PATH
6775
 
do
6776
 
  IFS=$as_save_IFS
6777
 
  test -z "$as_dir" && as_dir=.
6778
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6779
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6781
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782
 
    break 2
6783
 
  fi
6784
 
done
6785
 
done
6786
 
IFS=$as_save_IFS
6787
 
 
6788
 
fi
6789
 
fi
6790
 
CXX=$ac_cv_prog_CXX
6791
 
if test -n "$CXX"; then
6792
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
6793
 
echo "${ECHO_T}$CXX" >&6; }
6794
 
else
6795
 
  { echo "$as_me:$LINENO: result: no" >&5
6796
 
echo "${ECHO_T}no" >&6; }
6797
 
fi
6798
 
 
6799
 
 
6800
 
    test -n "$CXX" && break
6801
 
  done
6802
 
fi
6803
 
if test -z "$CXX"; then
6804
 
  ac_ct_CXX=$CXX
6805
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6806
 
do
6807
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6808
 
set dummy $ac_prog; ac_word=$2
6809
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6812
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6813
 
else
6814
 
  if test -n "$ac_ct_CXX"; then
6815
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6816
 
else
6817
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818
 
for as_dir in $PATH
6819
 
do
6820
 
  IFS=$as_save_IFS
6821
 
  test -z "$as_dir" && as_dir=.
6822
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6823
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
6825
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826
 
    break 2
6827
 
  fi
6828
 
done
6829
 
done
6830
 
IFS=$as_save_IFS
6831
 
 
6832
 
fi
6833
 
fi
6834
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6835
 
if test -n "$ac_ct_CXX"; then
6836
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6837
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
6838
 
else
6839
 
  { echo "$as_me:$LINENO: result: no" >&5
6840
 
echo "${ECHO_T}no" >&6; }
6841
 
fi
6842
 
 
6843
 
 
6844
 
  test -n "$ac_ct_CXX" && break
6845
 
done
6846
 
 
6847
 
  if test "x$ac_ct_CXX" = x; then
6848
 
    CXX="g++"
6849
 
  else
6850
 
    case $cross_compiling:$ac_tool_warned in
6851
 
yes:)
6852
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853
 
whose name does not start with the host triplet.  If you think this
6854
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6855
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856
 
whose name does not start with the host triplet.  If you think this
6857
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858
 
ac_tool_warned=yes ;;
6859
 
esac
6860
 
    CXX=$ac_ct_CXX
6861
 
  fi
6862
 
fi
6863
 
 
6864
 
  fi
6865
 
fi
6866
 
# Provide some information about the compiler.
6867
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6868
 
ac_compiler=`set X $ac_compile; echo $2`
6869
 
{ (ac_try="$ac_compiler --version >&5"
6870
 
case "(($ac_try" in
6871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872
 
  *) ac_try_echo=$ac_try;;
6873
 
esac
6874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875
 
  (eval "$ac_compiler --version >&5") 2>&5
6876
 
  ac_status=$?
6877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878
 
  (exit $ac_status); }
6879
 
{ (ac_try="$ac_compiler -v >&5"
6880
 
case "(($ac_try" in
6881
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882
 
  *) ac_try_echo=$ac_try;;
6883
 
esac
6884
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885
 
  (eval "$ac_compiler -v >&5") 2>&5
6886
 
  ac_status=$?
6887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888
 
  (exit $ac_status); }
6889
 
{ (ac_try="$ac_compiler -V >&5"
6890
 
case "(($ac_try" in
6891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892
 
  *) ac_try_echo=$ac_try;;
6893
 
esac
6894
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895
 
  (eval "$ac_compiler -V >&5") 2>&5
6896
 
  ac_status=$?
6897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898
 
  (exit $ac_status); }
6899
 
 
6900
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6901
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6902
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6903
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6904
 
else
6905
 
  cat >conftest.$ac_ext <<_ACEOF
6906
 
/* confdefs.h.  */
6907
 
_ACEOF
6908
 
cat confdefs.h >>conftest.$ac_ext
6909
 
cat >>conftest.$ac_ext <<_ACEOF
6910
 
/* end confdefs.h.  */
6911
 
 
6912
 
int
6913
 
main ()
6914
 
{
6915
 
#ifndef __GNUC__
6916
 
       choke me
6917
 
#endif
6918
 
 
6919
 
  ;
6920
 
  return 0;
6921
 
}
6922
 
_ACEOF
6923
 
rm -f conftest.$ac_objext
6924
 
if { (ac_try="$ac_compile"
6925
 
case "(($ac_try" in
6926
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927
 
  *) ac_try_echo=$ac_try;;
6928
 
esac
6929
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930
 
  (eval "$ac_compile") 2>conftest.er1
6931
 
  ac_status=$?
6932
 
  grep -v '^ *+' conftest.er1 >conftest.err
6933
 
  rm -f conftest.er1
6934
 
  cat conftest.err >&5
6935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936
 
  (exit $ac_status); } && {
6937
 
         test -z "$ac_cxx_werror_flag" ||
6938
 
         test ! -s conftest.err
6939
 
       } && test -s conftest.$ac_objext; then
6940
 
  ac_compiler_gnu=yes
6941
 
else
6942
 
  echo "$as_me: failed program was:" >&5
6943
 
sed 's/^/| /' conftest.$ac_ext >&5
6944
 
 
6945
 
        ac_compiler_gnu=no
6946
 
fi
6947
 
 
6948
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6950
 
 
6951
 
fi
6952
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6953
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6954
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
6955
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
6956
 
ac_save_CXXFLAGS=$CXXFLAGS
6957
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6958
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6959
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
6960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6961
 
else
6962
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6963
 
   ac_cxx_werror_flag=yes
6964
 
   ac_cv_prog_cxx_g=no
6965
 
   CXXFLAGS="-g"
6966
 
   cat >conftest.$ac_ext <<_ACEOF
6967
 
/* confdefs.h.  */
6968
 
_ACEOF
6969
 
cat confdefs.h >>conftest.$ac_ext
6970
 
cat >>conftest.$ac_ext <<_ACEOF
6971
 
/* end confdefs.h.  */
6972
 
 
6973
 
int
6974
 
main ()
6975
 
{
6976
 
 
6977
 
  ;
6978
 
  return 0;
6979
 
}
6980
 
_ACEOF
6981
 
rm -f conftest.$ac_objext
6982
 
if { (ac_try="$ac_compile"
6983
 
case "(($ac_try" in
6984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985
 
  *) ac_try_echo=$ac_try;;
6986
 
esac
6987
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988
 
  (eval "$ac_compile") 2>conftest.er1
6989
 
  ac_status=$?
6990
 
  grep -v '^ *+' conftest.er1 >conftest.err
6991
 
  rm -f conftest.er1
6992
 
  cat conftest.err >&5
6993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994
 
  (exit $ac_status); } && {
6995
 
         test -z "$ac_cxx_werror_flag" ||
6996
 
         test ! -s conftest.err
6997
 
       } && test -s conftest.$ac_objext; then
6998
 
  ac_cv_prog_cxx_g=yes
6999
 
else
7000
 
  echo "$as_me: failed program was:" >&5
7001
 
sed 's/^/| /' conftest.$ac_ext >&5
7002
 
 
7003
 
        CXXFLAGS=""
7004
 
      cat >conftest.$ac_ext <<_ACEOF
7005
 
/* confdefs.h.  */
7006
 
_ACEOF
7007
 
cat confdefs.h >>conftest.$ac_ext
7008
 
cat >>conftest.$ac_ext <<_ACEOF
7009
 
/* end confdefs.h.  */
7010
 
 
7011
 
int
7012
 
main ()
7013
 
{
7014
 
 
7015
 
  ;
7016
 
  return 0;
7017
 
}
7018
 
_ACEOF
7019
 
rm -f conftest.$ac_objext
7020
 
if { (ac_try="$ac_compile"
7021
 
case "(($ac_try" in
7022
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023
 
  *) ac_try_echo=$ac_try;;
7024
 
esac
7025
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026
 
  (eval "$ac_compile") 2>conftest.er1
7027
 
  ac_status=$?
7028
 
  grep -v '^ *+' conftest.er1 >conftest.err
7029
 
  rm -f conftest.er1
7030
 
  cat conftest.err >&5
7031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032
 
  (exit $ac_status); } && {
7033
 
         test -z "$ac_cxx_werror_flag" ||
7034
 
         test ! -s conftest.err
7035
 
       } && test -s conftest.$ac_objext; then
7036
 
  :
7037
 
else
7038
 
  echo "$as_me: failed program was:" >&5
7039
 
sed 's/^/| /' conftest.$ac_ext >&5
7040
 
 
7041
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7042
 
         CXXFLAGS="-g"
7043
 
         cat >conftest.$ac_ext <<_ACEOF
7044
 
/* confdefs.h.  */
7045
 
_ACEOF
7046
 
cat confdefs.h >>conftest.$ac_ext
7047
 
cat >>conftest.$ac_ext <<_ACEOF
7048
 
/* end confdefs.h.  */
7049
 
 
7050
 
int
7051
 
main ()
7052
 
{
7053
 
 
7054
 
  ;
7055
 
  return 0;
7056
 
}
7057
 
_ACEOF
7058
 
rm -f conftest.$ac_objext
7059
 
if { (ac_try="$ac_compile"
7060
 
case "(($ac_try" in
7061
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062
 
  *) ac_try_echo=$ac_try;;
7063
 
esac
7064
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065
 
  (eval "$ac_compile") 2>conftest.er1
7066
 
  ac_status=$?
7067
 
  grep -v '^ *+' conftest.er1 >conftest.err
7068
 
  rm -f conftest.er1
7069
 
  cat conftest.err >&5
7070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071
 
  (exit $ac_status); } && {
7072
 
         test -z "$ac_cxx_werror_flag" ||
7073
 
         test ! -s conftest.err
7074
 
       } && test -s conftest.$ac_objext; then
7075
 
  ac_cv_prog_cxx_g=yes
7076
 
else
7077
 
  echo "$as_me: failed program was:" >&5
7078
 
sed 's/^/| /' conftest.$ac_ext >&5
7079
 
 
7080
 
 
7081
 
fi
7082
 
 
7083
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084
 
fi
7085
 
 
7086
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087
 
fi
7088
 
 
7089
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7091
 
fi
7092
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7093
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7094
 
if test "$ac_test_CXXFLAGS" = set; then
7095
 
  CXXFLAGS=$ac_save_CXXFLAGS
7096
 
elif test $ac_cv_prog_cxx_g = yes; then
7097
 
  if test "$GXX" = yes; then
7098
 
    CXXFLAGS="-g -O2"
7099
 
  else
7100
 
    CXXFLAGS="-g"
7101
 
  fi
7102
 
else
7103
 
  if test "$GXX" = yes; then
7104
 
    CXXFLAGS="-O2"
7105
 
  else
7106
 
    CXXFLAGS=
7107
 
  fi
7108
 
fi
7109
 
ac_ext=cpp
7110
 
ac_cpp='$CXXCPP $CPPFLAGS'
7111
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7114
 
 
7115
 
depcc="$CXX"  am_compiler_list=
7116
 
 
7117
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7118
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7119
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7121
 
else
7122
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7123
 
  # We make a subdir and do the tests there.  Otherwise we can end up
7124
 
  # making bogus files that we don't know about and never remove.  For
7125
 
  # instance it was reported that on HP-UX the gcc test will end up
7126
 
  # making a dummy file named `D' -- because `-MD' means `put the output
7127
 
  # in D'.
7128
 
  mkdir conftest.dir
7129
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
7130
 
  # using a relative directory.
7131
 
  cp "$am_depcomp" conftest.dir
7132
 
  cd conftest.dir
7133
 
  # We will build objects and dependencies in a subdirectory because
7134
 
  # it helps to detect inapplicable dependency modes.  For instance
7135
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
7136
 
  # side effect of compilation, but ICC will put the dependencies in
7137
 
  # the current directory while Tru64 will put them in the object
7138
 
  # directory.
7139
 
  mkdir sub
7140
 
 
7141
 
  am_cv_CXX_dependencies_compiler_type=none
7142
 
  if test "$am_compiler_list" = ""; then
7143
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7144
 
  fi
7145
 
  for depmode in $am_compiler_list; do
7146
 
    # Setup a source with many dependencies, because some compilers
7147
 
    # like to wrap large dependency lists on column 80 (with \), and
7148
 
    # we should not choose a depcomp mode which is confused by this.
7149
 
    #
7150
 
    # We need to recreate these files for each test, as the compiler may
7151
 
    # overwrite some of them when testing with obscure command lines.
7152
 
    # This happens at least with the AIX C compiler.
7153
 
    : > sub/conftest.c
7154
 
    for i in 1 2 3 4 5 6; do
7155
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7156
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7157
 
      # Solaris 8's {/usr,}/bin/sh.
7158
 
      touch sub/conftst$i.h
7159
 
    done
7160
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7161
 
 
7162
 
    case $depmode in
7163
 
    nosideeffect)
7164
 
      # after this tag, mechanisms are not by side-effect, so they'll
7165
 
      # only be used when explicitly requested
7166
 
      if test "x$enable_dependency_tracking" = xyes; then
7167
 
        continue
7168
 
      else
7169
 
        break
7170
 
      fi
7171
 
      ;;
7172
 
    none) break ;;
7173
 
    esac
7174
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7175
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7176
 
    # handle `-M -o', and we need to detect this.
7177
 
    if depmode=$depmode \
7178
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7179
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7180
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7181
 
         >/dev/null 2>conftest.err &&
7182
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7183
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7184
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7185
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7186
 
      # icc doesn't choke on unknown options, it will just issue warnings
7187
 
      # or remarks (even with -Werror).  So we grep stderr for any message
7188
 
      # that says an option was ignored or not supported.
7189
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
7190
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
7191
 
      # The diagnosis changed in icc 8.0:
7192
 
      #   icc: Command line remark: option '-MP' not supported
7193
 
      if (grep 'ignoring option' conftest.err ||
7194
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7195
 
        am_cv_CXX_dependencies_compiler_type=$depmode
7196
 
        break
7197
 
      fi
7198
 
    fi
7199
 
  done
7200
 
 
7201
 
  cd ..
7202
 
  rm -rf conftest.dir
7203
 
else
7204
 
  am_cv_CXX_dependencies_compiler_type=none
7205
 
fi
7206
 
 
7207
 
fi
7208
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7209
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7210
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7211
 
 
7212
 
 if
7213
 
  test "x$enable_dependency_tracking" != xno \
7214
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7215
 
  am__fastdepCXX_TRUE=
7216
 
  am__fastdepCXX_FALSE='#'
7217
 
else
7218
 
  am__fastdepCXX_TRUE='#'
7219
 
  am__fastdepCXX_FALSE=
7220
 
fi
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7226
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7227
 
    (test "X$CXX" != "Xg++"))) ; then
7228
 
  ac_ext=cpp
7229
 
ac_cpp='$CXXCPP $CPPFLAGS'
7230
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7233
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7234
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7235
 
if test -z "$CXXCPP"; then
7236
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7238
 
else
7239
 
      # Double quotes because CXXCPP needs to be expanded
7240
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
7241
 
    do
7242
 
      ac_preproc_ok=false
7243
 
for ac_cxx_preproc_warn_flag in '' yes
7244
 
do
7245
 
  # Use a header file that comes with gcc, so configuring glibc
7246
 
  # with a fresh cross-compiler works.
7247
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248
 
  # <limits.h> exists even on freestanding compilers.
7249
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7250
 
  # not just through cpp. "Syntax error" is here to catch this case.
7251
 
  cat >conftest.$ac_ext <<_ACEOF
7252
 
/* confdefs.h.  */
7253
 
_ACEOF
7254
 
cat confdefs.h >>conftest.$ac_ext
7255
 
cat >>conftest.$ac_ext <<_ACEOF
7256
 
/* end confdefs.h.  */
7257
 
#ifdef __STDC__
7258
 
# include <limits.h>
7259
 
#else
7260
 
# include <assert.h>
7261
 
#endif
7262
 
                     Syntax error
7263
 
_ACEOF
7264
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7265
 
case "(($ac_try" in
7266
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267
 
  *) ac_try_echo=$ac_try;;
7268
 
esac
7269
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7271
 
  ac_status=$?
7272
 
  grep -v '^ *+' conftest.er1 >conftest.err
7273
 
  rm -f conftest.er1
7274
 
  cat conftest.err >&5
7275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276
 
  (exit $ac_status); } >/dev/null && {
7277
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7278
 
         test ! -s conftest.err
7279
 
       }; then
7280
 
  :
7281
 
else
7282
 
  echo "$as_me: failed program was:" >&5
7283
 
sed 's/^/| /' conftest.$ac_ext >&5
7284
 
 
7285
 
  # Broken: fails on valid input.
7286
 
continue
7287
 
fi
7288
 
 
7289
 
rm -f conftest.err conftest.$ac_ext
7290
 
 
7291
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7292
 
  # can be detected and how.
7293
 
  cat >conftest.$ac_ext <<_ACEOF
7294
 
/* confdefs.h.  */
7295
 
_ACEOF
7296
 
cat confdefs.h >>conftest.$ac_ext
7297
 
cat >>conftest.$ac_ext <<_ACEOF
7298
 
/* end confdefs.h.  */
7299
 
#include <ac_nonexistent.h>
7300
 
_ACEOF
7301
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7302
 
case "(($ac_try" in
7303
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304
 
  *) ac_try_echo=$ac_try;;
7305
 
esac
7306
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7308
 
  ac_status=$?
7309
 
  grep -v '^ *+' conftest.er1 >conftest.err
7310
 
  rm -f conftest.er1
7311
 
  cat conftest.err >&5
7312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313
 
  (exit $ac_status); } >/dev/null && {
7314
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7315
 
         test ! -s conftest.err
7316
 
       }; then
7317
 
  # Broken: success on invalid input.
7318
 
continue
7319
 
else
7320
 
  echo "$as_me: failed program was:" >&5
7321
 
sed 's/^/| /' conftest.$ac_ext >&5
7322
 
 
7323
 
  # Passes both tests.
7324
 
ac_preproc_ok=:
7325
 
break
7326
 
fi
7327
 
 
7328
 
rm -f conftest.err conftest.$ac_ext
7329
 
 
7330
 
done
7331
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332
 
rm -f conftest.err conftest.$ac_ext
7333
 
if $ac_preproc_ok; then
7334
 
  break
7335
 
fi
7336
 
 
7337
 
    done
7338
 
    ac_cv_prog_CXXCPP=$CXXCPP
7339
 
 
7340
 
fi
7341
 
  CXXCPP=$ac_cv_prog_CXXCPP
7342
 
else
7343
 
  ac_cv_prog_CXXCPP=$CXXCPP
7344
 
fi
7345
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7346
 
echo "${ECHO_T}$CXXCPP" >&6; }
7347
 
ac_preproc_ok=false
7348
 
for ac_cxx_preproc_warn_flag in '' yes
7349
 
do
7350
 
  # Use a header file that comes with gcc, so configuring glibc
7351
 
  # with a fresh cross-compiler works.
7352
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7353
 
  # <limits.h> exists even on freestanding compilers.
7354
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7355
 
  # not just through cpp. "Syntax error" is here to catch this case.
7356
 
  cat >conftest.$ac_ext <<_ACEOF
7357
 
/* confdefs.h.  */
7358
 
_ACEOF
7359
 
cat confdefs.h >>conftest.$ac_ext
7360
 
cat >>conftest.$ac_ext <<_ACEOF
7361
 
/* end confdefs.h.  */
7362
 
#ifdef __STDC__
7363
 
# include <limits.h>
7364
 
#else
7365
 
# include <assert.h>
7366
 
#endif
7367
 
                     Syntax error
7368
 
_ACEOF
7369
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7370
 
case "(($ac_try" in
7371
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372
 
  *) ac_try_echo=$ac_try;;
7373
 
esac
7374
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7376
 
  ac_status=$?
7377
 
  grep -v '^ *+' conftest.er1 >conftest.err
7378
 
  rm -f conftest.er1
7379
 
  cat conftest.err >&5
7380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381
 
  (exit $ac_status); } >/dev/null && {
7382
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7383
 
         test ! -s conftest.err
7384
 
       }; then
7385
 
  :
7386
 
else
7387
 
  echo "$as_me: failed program was:" >&5
7388
 
sed 's/^/| /' conftest.$ac_ext >&5
7389
 
 
7390
 
  # Broken: fails on valid input.
7391
 
continue
7392
 
fi
7393
 
 
7394
 
rm -f conftest.err conftest.$ac_ext
7395
 
 
7396
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7397
 
  # can be detected and how.
7398
 
  cat >conftest.$ac_ext <<_ACEOF
7399
 
/* confdefs.h.  */
7400
 
_ACEOF
7401
 
cat confdefs.h >>conftest.$ac_ext
7402
 
cat >>conftest.$ac_ext <<_ACEOF
7403
 
/* end confdefs.h.  */
7404
 
#include <ac_nonexistent.h>
7405
 
_ACEOF
7406
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7407
 
case "(($ac_try" in
7408
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409
 
  *) ac_try_echo=$ac_try;;
7410
 
esac
7411
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7413
 
  ac_status=$?
7414
 
  grep -v '^ *+' conftest.er1 >conftest.err
7415
 
  rm -f conftest.er1
7416
 
  cat conftest.err >&5
7417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418
 
  (exit $ac_status); } >/dev/null && {
7419
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7420
 
         test ! -s conftest.err
7421
 
       }; then
7422
 
  # Broken: success on invalid input.
7423
 
continue
7424
 
else
7425
 
  echo "$as_me: failed program was:" >&5
7426
 
sed 's/^/| /' conftest.$ac_ext >&5
7427
 
 
7428
 
  # Passes both tests.
7429
 
ac_preproc_ok=:
7430
 
break
7431
 
fi
7432
 
 
7433
 
rm -f conftest.err conftest.$ac_ext
7434
 
 
7435
 
done
7436
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437
 
rm -f conftest.err conftest.$ac_ext
7438
 
if $ac_preproc_ok; then
7439
 
  :
7440
 
else
7441
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7442
 
See \`config.log' for more details." >&5
7443
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7444
 
See \`config.log' for more details." >&2;}
7445
 
   { (exit 1); exit 1; }; }
7446
 
fi
7447
 
 
7448
 
ac_ext=cpp
7449
 
ac_cpp='$CXXCPP $CPPFLAGS'
7450
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7453
 
 
7454
 
fi
7455
 
 
7456
 
 
7457
 
ac_ext=f
7458
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7459
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7461
 
if test -n "$ac_tool_prefix"; then
7462
 
  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
7463
 
  do
7464
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7465
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7466
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468
 
if test "${ac_cv_prog_F77+set}" = set; then
7469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7470
 
else
7471
 
  if test -n "$F77"; then
7472
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
7473
 
else
7474
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475
 
for as_dir in $PATH
7476
 
do
7477
 
  IFS=$as_save_IFS
7478
 
  test -z "$as_dir" && as_dir=.
7479
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7480
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7482
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483
 
    break 2
7484
 
  fi
7485
 
done
7486
 
done
7487
 
IFS=$as_save_IFS
7488
 
 
7489
 
fi
7490
 
fi
7491
 
F77=$ac_cv_prog_F77
7492
 
if test -n "$F77"; then
7493
 
  { echo "$as_me:$LINENO: result: $F77" >&5
7494
 
echo "${ECHO_T}$F77" >&6; }
7495
 
else
7496
 
  { echo "$as_me:$LINENO: result: no" >&5
7497
 
echo "${ECHO_T}no" >&6; }
7498
 
fi
7499
 
 
7500
 
 
7501
 
    test -n "$F77" && break
7502
 
  done
7503
 
fi
7504
 
if test -z "$F77"; then
7505
 
  ac_ct_F77=$F77
7506
 
  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
7507
 
do
7508
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7509
 
set dummy $ac_prog; ac_word=$2
7510
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7511
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7513
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7514
 
else
7515
 
  if test -n "$ac_ct_F77"; then
7516
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7517
 
else
7518
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519
 
for as_dir in $PATH
7520
 
do
7521
 
  IFS=$as_save_IFS
7522
 
  test -z "$as_dir" && as_dir=.
7523
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7524
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
7526
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527
 
    break 2
7528
 
  fi
7529
 
done
7530
 
done
7531
 
IFS=$as_save_IFS
7532
 
 
7533
 
fi
7534
 
fi
7535
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7536
 
if test -n "$ac_ct_F77"; then
7537
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7538
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
7539
 
else
7540
 
  { echo "$as_me:$LINENO: result: no" >&5
7541
 
echo "${ECHO_T}no" >&6; }
7542
 
fi
7543
 
 
7544
 
 
7545
 
  test -n "$ac_ct_F77" && break
7546
 
done
7547
 
 
7548
 
  if test "x$ac_ct_F77" = x; then
7549
 
    F77=""
7550
 
  else
7551
 
    case $cross_compiling:$ac_tool_warned in
7552
 
yes:)
7553
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7554
 
whose name does not start with the host triplet.  If you think this
7555
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7556
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7557
 
whose name does not start with the host triplet.  If you think this
7558
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7559
 
ac_tool_warned=yes ;;
7560
 
esac
7561
 
    F77=$ac_ct_F77
7562
 
  fi
7563
 
fi
7564
 
 
7565
 
 
7566
 
# Provide some information about the compiler.
7567
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7568
 
ac_compiler=`set X $ac_compile; echo $2`
7569
 
{ (ac_try="$ac_compiler --version >&5"
7570
 
case "(($ac_try" in
7571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572
 
  *) ac_try_echo=$ac_try;;
7573
 
esac
7574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575
 
  (eval "$ac_compiler --version >&5") 2>&5
7576
 
  ac_status=$?
7577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578
 
  (exit $ac_status); }
7579
 
{ (ac_try="$ac_compiler -v >&5"
7580
 
case "(($ac_try" in
7581
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582
 
  *) ac_try_echo=$ac_try;;
7583
 
esac
7584
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7585
 
  (eval "$ac_compiler -v >&5") 2>&5
7586
 
  ac_status=$?
7587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588
 
  (exit $ac_status); }
7589
 
{ (ac_try="$ac_compiler -V >&5"
7590
 
case "(($ac_try" in
7591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592
 
  *) ac_try_echo=$ac_try;;
7593
 
esac
7594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595
 
  (eval "$ac_compiler -V >&5") 2>&5
7596
 
  ac_status=$?
7597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598
 
  (exit $ac_status); }
7599
 
rm -f a.out
7600
 
 
7601
 
# If we don't use `.F' as extension, the preprocessor is not run on the
7602
 
# input file.  (Note that this only needs to work for GNU compilers.)
7603
 
ac_save_ext=$ac_ext
7604
 
ac_ext=F
7605
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7606
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7607
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7608
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7609
 
else
7610
 
  cat >conftest.$ac_ext <<_ACEOF
7611
 
      program main
7612
 
#ifndef __GNUC__
7613
 
       choke me
7614
 
#endif
7615
 
 
7616
 
      end
7617
 
_ACEOF
7618
 
rm -f conftest.$ac_objext
7619
 
if { (ac_try="$ac_compile"
7620
 
case "(($ac_try" in
7621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622
 
  *) ac_try_echo=$ac_try;;
7623
 
esac
7624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625
 
  (eval "$ac_compile") 2>conftest.er1
7626
 
  ac_status=$?
7627
 
  grep -v '^ *+' conftest.er1 >conftest.err
7628
 
  rm -f conftest.er1
7629
 
  cat conftest.err >&5
7630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631
 
  (exit $ac_status); } && {
7632
 
         test -z "$ac_f77_werror_flag" ||
7633
 
         test ! -s conftest.err
7634
 
       } && test -s conftest.$ac_objext; then
7635
 
  ac_compiler_gnu=yes
7636
 
else
7637
 
  echo "$as_me: failed program was:" >&5
7638
 
sed 's/^/| /' conftest.$ac_ext >&5
7639
 
 
7640
 
        ac_compiler_gnu=no
7641
 
fi
7642
 
 
7643
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7645
 
 
7646
 
fi
7647
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7648
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7649
 
ac_ext=$ac_save_ext
7650
 
ac_test_FFLAGS=${FFLAGS+set}
7651
 
ac_save_FFLAGS=$FFLAGS
7652
 
FFLAGS=
7653
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7654
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7655
 
if test "${ac_cv_prog_f77_g+set}" = set; then
7656
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7657
 
else
7658
 
  FFLAGS=-g
7659
 
cat >conftest.$ac_ext <<_ACEOF
7660
 
      program main
7661
 
 
7662
 
      end
7663
 
_ACEOF
7664
 
rm -f conftest.$ac_objext
7665
 
if { (ac_try="$ac_compile"
7666
 
case "(($ac_try" in
7667
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668
 
  *) ac_try_echo=$ac_try;;
7669
 
esac
7670
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671
 
  (eval "$ac_compile") 2>conftest.er1
7672
 
  ac_status=$?
7673
 
  grep -v '^ *+' conftest.er1 >conftest.err
7674
 
  rm -f conftest.er1
7675
 
  cat conftest.err >&5
7676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677
 
  (exit $ac_status); } && {
7678
 
         test -z "$ac_f77_werror_flag" ||
7679
 
         test ! -s conftest.err
7680
 
       } && test -s conftest.$ac_objext; then
7681
 
  ac_cv_prog_f77_g=yes
7682
 
else
7683
 
  echo "$as_me: failed program was:" >&5
7684
 
sed 's/^/| /' conftest.$ac_ext >&5
7685
 
 
7686
 
        ac_cv_prog_f77_g=no
7687
 
fi
7688
 
 
7689
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690
 
 
7691
 
fi
7692
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7693
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7694
 
if test "$ac_test_FFLAGS" = set; then
7695
 
  FFLAGS=$ac_save_FFLAGS
7696
 
elif test $ac_cv_prog_f77_g = yes; then
7697
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7698
 
    FFLAGS="-g -O2"
7699
 
  else
7700
 
    FFLAGS="-g"
7701
 
  fi
7702
 
else
7703
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7704
 
    FFLAGS="-O2"
7705
 
  else
7706
 
    FFLAGS=
7707
 
  fi
7708
 
fi
7709
 
 
7710
 
G77=`test $ac_compiler_gnu = yes && echo yes`
7711
 
ac_ext=c
7712
 
ac_cpp='$CPP $CPPFLAGS'
7713
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
 
 
7717
 
 
7718
 
 
7719
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7720
 
# find the maximum length of command line arguments
7721
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7722
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7723
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7725
 
else
7726
 
    i=0
7727
 
  teststring="ABCD"
7728
 
 
7729
 
  case $build_os in
7730
 
  msdosdjgpp*)
7731
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
7732
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
7733
 
    # during glob expansion).  Even if it were fixed, the result of this
7734
 
    # check would be larger than it should be.
7735
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7736
 
    ;;
7737
 
 
7738
 
  gnu*)
7739
 
    # Under GNU Hurd, this test is not required because there is
7740
 
    # no limit to the length of command line arguments.
7741
 
    # Libtool will interpret -1 as no limit whatsoever
7742
 
    lt_cv_sys_max_cmd_len=-1;
7743
 
    ;;
7744
 
 
7745
 
  cygwin* | mingw*)
7746
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
7747
 
    # about 5 minutes as the teststring grows exponentially.
7748
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
7749
 
    # you end up with a "frozen" computer, even though with patience
7750
 
    # the test eventually succeeds (with a max line length of 256k).
7751
 
    # Instead, let's just punt: use the minimum linelength reported by
7752
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
7753
 
    lt_cv_sys_max_cmd_len=8192;
7754
 
    ;;
7755
 
 
7756
 
  amigaos*)
7757
 
    # On AmigaOS with pdksh, this test takes hours, literally.
7758
 
    # So we just punt and use a minimum line length of 8192.
7759
 
    lt_cv_sys_max_cmd_len=8192;
7760
 
    ;;
7761
 
 
7762
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7763
 
    # This has been around since 386BSD, at least.  Likely further.
7764
 
    if test -x /sbin/sysctl; then
7765
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7766
 
    elif test -x /usr/sbin/sysctl; then
7767
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7768
 
    else
7769
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7770
 
    fi
7771
 
    # And add a safety zone
7772
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7773
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7774
 
    ;;
7775
 
 
7776
 
  interix*)
7777
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7778
 
    lt_cv_sys_max_cmd_len=196608
7779
 
    ;;
7780
 
 
7781
 
  osf*)
7782
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7783
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7784
 
    # nice to cause kernel panics so lets avoid the loop below.
7785
 
    # First set a reasonable default.
7786
 
    lt_cv_sys_max_cmd_len=16384
7787
 
    #
7788
 
    if test -x /sbin/sysconfig; then
7789
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7790
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7791
 
      esac
7792
 
    fi
7793
 
    ;;
7794
 
  sco3.2v5*)
7795
 
    lt_cv_sys_max_cmd_len=102400
7796
 
    ;;
7797
 
  sysv5* | sco5v6* | sysv4.2uw2*)
7798
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7799
 
    if test -n "$kargmax"; then
7800
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7801
 
    else
7802
 
      lt_cv_sys_max_cmd_len=32768
7803
 
    fi
7804
 
    ;;
7805
 
  *)
7806
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7807
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
7808
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7809
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7810
 
    else
7811
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7812
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7813
 
               = "XX$teststring") >/dev/null 2>&1 &&
7814
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
7815
 
              lt_cv_sys_max_cmd_len=$new_result &&
7816
 
              test $i != 17 # 1/2 MB should be enough
7817
 
      do
7818
 
        i=`expr $i + 1`
7819
 
        teststring=$teststring$teststring
7820
 
      done
7821
 
      teststring=
7822
 
      # Add a significant safety factor because C++ compilers can tack on massive
7823
 
      # amounts of additional arguments before passing them to the linker.
7824
 
      # It appears as though 1/2 is a usable value.
7825
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7826
 
    fi
7827
 
    ;;
7828
 
  esac
7829
 
 
7830
 
fi
7831
 
 
7832
 
if test -n $lt_cv_sys_max_cmd_len ; then
7833
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7834
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7835
 
else
7836
 
  { echo "$as_me:$LINENO: result: none" >&5
7837
 
echo "${ECHO_T}none" >&6; }
7838
 
fi
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
7250
 
7844
7251
# Check for command to grab the raw symbol name followed by C symbol from nm.
7845
7252
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7857
7264
# Regexp to match symbols that can be accessed directly from C.
7858
7265
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7859
7266
 
7860
 
# Transform an extracted symbol line into a proper C declaration
7861
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7862
 
 
7863
 
# Transform an extracted symbol line into symbol name and symbol address
7864
 
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'"
7865
 
 
7866
7267
# Define system-specific variables.
7867
7268
case $host_os in
7868
7269
aix*)
7871
7272
cygwin* | mingw* | pw32*)
7872
7273
  symcode='[ABCDGISTW]'
7873
7274
  ;;
7874
 
hpux*) # Its linker distinguishes data from code symbols
 
7275
hpux*)
7875
7276
  if test "$host_cpu" = ia64; then
7876
7277
    symcode='[ABCDEGRST]'
7877
7278
  fi
7878
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7879
 
  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'"
7880
 
  ;;
7881
 
linux* | k*bsd*-gnu)
7882
 
  if test "$host_cpu" = ia64; then
7883
 
    symcode='[ABCDGIRSTW]'
7884
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7885
 
    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'"
7886
 
  fi
7887
7279
  ;;
7888
7280
irix* | nonstopux*)
7889
7281
  symcode='[BCDEGRST]'
7908
7300
  ;;
7909
7301
esac
7910
7302
 
 
7303
# If we're using GNU nm, then use its standard symbol codes.
 
7304
case `$NM -V 2>&1` in
 
7305
*GNU* | *'with BFD'*)
 
7306
  symcode='[ABCDGIRSTW]' ;;
 
7307
esac
 
7308
 
 
7309
# Transform an extracted symbol line into a proper C declaration.
 
7310
# Some systems (esp. on ia64) link data and code symbols differently,
 
7311
# so use this general approach.
 
7312
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7313
 
 
7314
# Transform an extracted symbol line into symbol name and symbol address
 
7315
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7316
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'"
 
7317
 
7911
7318
# Handle CRLF in mingw tool chain
7912
7319
opt_cr=
7913
7320
case $build_os in
7914
7321
mingw*)
7915
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7322
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7916
7323
  ;;
7917
7324
esac
7918
7325
 
7919
 
# If we're using GNU nm, then use its standard symbol codes.
7920
 
case `$NM -V 2>&1` in
7921
 
*GNU* | *'with BFD'*)
7922
 
  symcode='[ABCDGIRSTW]' ;;
7923
 
esac
7924
 
 
7925
 
# Try without a prefix undercore, then with it.
 
7326
# Try without a prefix underscore, then with it.
7926
7327
for ac_symprfx in "" "_"; do
7927
7328
 
7928
7329
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7929
7330
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7930
7331
 
7931
7332
  # Write the raw and C identifiers.
7932
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7333
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7334
    # Fake it for dumpbin and say T for any non-static function
 
7335
    # and D for any global variable.
 
7336
    # Also find C++ and __fastcall symbols from MSVC++,
 
7337
    # which start with @ or ?.
 
7338
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7339
"     {last_section=section; section=\$ 3};"\
 
7340
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7341
"     \$ 0!~/External *\|/{next};"\
 
7342
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7343
"     {if(hide[section]) next};"\
 
7344
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7345
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7346
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7347
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7348
"     ' prfx=^$ac_symprfx"
 
7349
  else
 
7350
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7351
  fi
7933
7352
 
7934
7353
  # Check to see that the pipe works correctly.
7935
7354
  pipe_works=no
7936
7355
 
7937
7356
  rm -f conftest*
7938
 
  cat > conftest.$ac_ext <<EOF
 
7357
  cat > conftest.$ac_ext <<_LT_EOF
7939
7358
#ifdef __cplusplus
7940
7359
extern "C" {
7941
7360
#endif
7942
7361
char nm_test_var;
7943
 
void nm_test_func(){}
 
7362
void nm_test_func(void);
 
7363
void nm_test_func(void){}
7944
7364
#ifdef __cplusplus
7945
7365
}
7946
7366
#endif
7947
7367
int main(){nm_test_var='a';nm_test_func();return(0);}
7948
 
EOF
 
7368
_LT_EOF
7949
7369
 
7950
7370
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7951
7371
  (eval $ac_compile) 2>&5
7967
7387
      fi
7968
7388
 
7969
7389
      # Make sure that we snagged all the symbols we need.
7970
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7971
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7972
 
          cat <<EOF > conftest.$ac_ext
 
7390
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7391
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7392
          cat <<_LT_EOF > conftest.$ac_ext
7973
7393
#ifdef __cplusplus
7974
7394
extern "C" {
7975
7395
#endif
7976
7396
 
7977
 
EOF
 
7397
_LT_EOF
7978
7398
          # Now generate the symbol file.
7979
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7980
 
 
7981
 
          cat <<EOF >> conftest.$ac_ext
7982
 
#if defined (__STDC__) && __STDC__
7983
 
# define lt_ptr_t void *
7984
 
#else
7985
 
# define lt_ptr_t char *
7986
 
# define const
7987
 
#endif
7988
 
 
7989
 
/* The mapping between symbol names and symbols. */
 
7399
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7400
 
 
7401
          cat <<_LT_EOF >> conftest.$ac_ext
 
7402
 
 
7403
/* The mapping between symbol names and symbols.  */
7990
7404
const struct {
7991
7405
  const char *name;
7992
 
  lt_ptr_t address;
 
7406
  void       *address;
7993
7407
}
7994
 
lt_preloaded_symbols[] =
 
7408
lt__PROGRAM__LTX_preloaded_symbols[] =
7995
7409
{
7996
 
EOF
7997
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7998
 
          cat <<\EOF >> conftest.$ac_ext
7999
 
  {0, (lt_ptr_t) 0}
 
7410
  { "@PROGRAM@", (void *) 0 },
 
7411
_LT_EOF
 
7412
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7413
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7414
  {0, (void *) 0}
8000
7415
};
8001
7416
 
 
7417
/* This works around a problem in FreeBSD linker */
 
7418
#ifdef FREEBSD_WORKAROUND
 
7419
static const void *lt_preloaded_setup() {
 
7420
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7421
}
 
7422
#endif
 
7423
 
8002
7424
#ifdef __cplusplus
8003
7425
}
8004
7426
#endif
8005
 
EOF
 
7427
_LT_EOF
8006
7428
          # Now try linking the two files.
8007
7429
          mv conftest.$ac_objext conftstm.$ac_objext
8008
7430
          lt_save_LIBS="$LIBS"
8054
7476
echo "${ECHO_T}ok" >&6; }
8055
7477
fi
8056
7478
 
8057
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
8058
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8059
 
if test "${lt_cv_objdir+set}" = set; then
8060
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8061
 
else
8062
 
  rm -f .libs 2>/dev/null
8063
 
mkdir .libs 2>/dev/null
8064
 
if test -d .libs; then
8065
 
  lt_cv_objdir=.libs
8066
 
else
8067
 
  # MS-DOS does not allow filenames that begin with a dot.
8068
 
  lt_cv_objdir=_libs
8069
 
fi
8070
 
rmdir .libs 2>/dev/null
8071
 
fi
8072
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8073
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
8074
 
objdir=$lt_cv_objdir
8075
 
 
8076
 
 
8077
 
 
8078
 
 
8079
 
 
8080
 
case $host_os in
8081
 
aix3*)
8082
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8083
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8084
 
  # vanish in a puff of smoke.
8085
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8086
 
    COLLECT_NAMES=
8087
 
    export COLLECT_NAMES
8088
 
  fi
8089
 
  ;;
8090
 
esac
8091
 
 
8092
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8093
 
# metacharacters that are still active within double-quoted strings.
8094
 
Xsed='sed -e 1s/^X//'
8095
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8096
 
 
8097
 
# Same as above, but do not quote variable references.
8098
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8099
 
 
8100
 
# Sed substitution to delay expansion of an escaped shell variable in a
8101
 
# double_quote_subst'ed string.
8102
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8103
 
 
8104
 
# Sed substitution to avoid accidental globbing in evaled expressions
8105
 
no_glob_subst='s/\*/\\\*/g'
8106
 
 
8107
 
# Constants:
8108
 
rm="rm -f"
8109
 
 
8110
 
# Global variables:
8111
 
default_ofile=libtool
8112
 
can_build_shared=yes
8113
 
 
8114
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8115
 
# which needs '.lib').
8116
 
libext=a
8117
 
ltmain="$ac_aux_dir/ltmain.sh"
8118
 
ofile="$default_ofile"
8119
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8120
 
 
8121
 
if test -n "$ac_tool_prefix"; then
8122
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8123
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
8124
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8125
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8126
 
if test "${ac_cv_prog_AR+set}" = set; then
8127
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8128
 
else
8129
 
  if test -n "$AR"; then
8130
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
8131
 
else
8132
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133
 
for as_dir in $PATH
8134
 
do
8135
 
  IFS=$as_save_IFS
8136
 
  test -z "$as_dir" && as_dir=.
8137
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8138
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
8140
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141
 
    break 2
8142
 
  fi
8143
 
done
8144
 
done
8145
 
IFS=$as_save_IFS
8146
 
 
8147
 
fi
8148
 
fi
8149
 
AR=$ac_cv_prog_AR
8150
 
if test -n "$AR"; then
8151
 
  { echo "$as_me:$LINENO: result: $AR" >&5
8152
 
echo "${ECHO_T}$AR" >&6; }
8153
 
else
8154
 
  { echo "$as_me:$LINENO: result: no" >&5
8155
 
echo "${ECHO_T}no" >&6; }
8156
 
fi
8157
 
 
8158
 
 
8159
 
fi
8160
 
if test -z "$ac_cv_prog_AR"; then
8161
 
  ac_ct_AR=$AR
8162
 
  # Extract the first word of "ar", so it can be a program name with args.
8163
 
set dummy ar; ac_word=$2
8164
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8165
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8167
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8168
 
else
8169
 
  if test -n "$ac_ct_AR"; then
8170
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171
 
else
8172
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173
 
for as_dir in $PATH
8174
 
do
8175
 
  IFS=$as_save_IFS
8176
 
  test -z "$as_dir" && as_dir=.
8177
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8178
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179
 
    ac_cv_prog_ac_ct_AR="ar"
8180
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181
 
    break 2
8182
 
  fi
8183
 
done
8184
 
done
8185
 
IFS=$as_save_IFS
8186
 
 
8187
 
fi
8188
 
fi
8189
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8190
 
if test -n "$ac_ct_AR"; then
8191
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8192
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
8193
 
else
8194
 
  { echo "$as_me:$LINENO: result: no" >&5
8195
 
echo "${ECHO_T}no" >&6; }
8196
 
fi
8197
 
 
8198
 
  if test "x$ac_ct_AR" = x; then
8199
 
    AR="false"
8200
 
  else
8201
 
    case $cross_compiling:$ac_tool_warned in
8202
 
yes:)
8203
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8204
 
whose name does not start with the host triplet.  If you think this
8205
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8206
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8207
 
whose name does not start with the host triplet.  If you think this
8208
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8209
 
ac_tool_warned=yes ;;
8210
 
esac
8211
 
    AR=$ac_ct_AR
8212
 
  fi
8213
 
else
8214
 
  AR="$ac_cv_prog_AR"
8215
 
fi
8216
 
 
8217
 
if test -n "$ac_tool_prefix"; then
8218
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8219
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8220
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
8223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8224
 
else
8225
 
  if test -n "$RANLIB"; then
8226
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8227
 
else
8228
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229
 
for as_dir in $PATH
8230
 
do
8231
 
  IFS=$as_save_IFS
8232
 
  test -z "$as_dir" && as_dir=.
8233
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8234
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8236
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237
 
    break 2
8238
 
  fi
8239
 
done
8240
 
done
8241
 
IFS=$as_save_IFS
8242
 
 
8243
 
fi
8244
 
fi
8245
 
RANLIB=$ac_cv_prog_RANLIB
8246
 
if test -n "$RANLIB"; then
8247
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8248
 
echo "${ECHO_T}$RANLIB" >&6; }
8249
 
else
8250
 
  { echo "$as_me:$LINENO: result: no" >&5
8251
 
echo "${ECHO_T}no" >&6; }
8252
 
fi
8253
 
 
8254
 
 
8255
 
fi
8256
 
if test -z "$ac_cv_prog_RANLIB"; then
8257
 
  ac_ct_RANLIB=$RANLIB
8258
 
  # Extract the first word of "ranlib", so it can be a program name with args.
8259
 
set dummy ranlib; ac_word=$2
8260
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8261
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8264
 
else
8265
 
  if test -n "$ac_ct_RANLIB"; then
8266
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8267
 
else
8268
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269
 
for as_dir in $PATH
8270
 
do
8271
 
  IFS=$as_save_IFS
8272
 
  test -z "$as_dir" && as_dir=.
8273
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8274
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8276
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277
 
    break 2
8278
 
  fi
8279
 
done
8280
 
done
8281
 
IFS=$as_save_IFS
8282
 
 
8283
 
fi
8284
 
fi
8285
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8286
 
if test -n "$ac_ct_RANLIB"; then
8287
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8288
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8289
 
else
8290
 
  { echo "$as_me:$LINENO: result: no" >&5
8291
 
echo "${ECHO_T}no" >&6; }
8292
 
fi
8293
 
 
8294
 
  if test "x$ac_ct_RANLIB" = x; then
8295
 
    RANLIB=":"
8296
 
  else
8297
 
    case $cross_compiling:$ac_tool_warned in
8298
 
yes:)
8299
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8300
 
whose name does not start with the host triplet.  If you think this
8301
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8302
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8303
 
whose name does not start with the host triplet.  If you think this
8304
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8305
 
ac_tool_warned=yes ;;
8306
 
esac
8307
 
    RANLIB=$ac_ct_RANLIB
8308
 
  fi
8309
 
else
8310
 
  RANLIB="$ac_cv_prog_RANLIB"
8311
 
fi
8312
 
 
8313
 
if test -n "$ac_tool_prefix"; then
8314
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8315
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
8316
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8317
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318
 
if test "${ac_cv_prog_STRIP+set}" = set; then
8319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8320
 
else
8321
 
  if test -n "$STRIP"; then
8322
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323
 
else
8324
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325
 
for as_dir in $PATH
8326
 
do
8327
 
  IFS=$as_save_IFS
8328
 
  test -z "$as_dir" && as_dir=.
8329
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8330
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8332
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333
 
    break 2
8334
 
  fi
8335
 
done
8336
 
done
8337
 
IFS=$as_save_IFS
8338
 
 
8339
 
fi
8340
 
fi
8341
 
STRIP=$ac_cv_prog_STRIP
8342
 
if test -n "$STRIP"; then
8343
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
8344
 
echo "${ECHO_T}$STRIP" >&6; }
8345
 
else
8346
 
  { echo "$as_me:$LINENO: result: no" >&5
8347
 
echo "${ECHO_T}no" >&6; }
8348
 
fi
8349
 
 
8350
 
 
8351
 
fi
8352
 
if test -z "$ac_cv_prog_STRIP"; then
8353
 
  ac_ct_STRIP=$STRIP
8354
 
  # Extract the first word of "strip", so it can be a program name with args.
8355
 
set dummy strip; ac_word=$2
8356
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8357
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8359
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8360
 
else
8361
 
  if test -n "$ac_ct_STRIP"; then
8362
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363
 
else
8364
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365
 
for as_dir in $PATH
8366
 
do
8367
 
  IFS=$as_save_IFS
8368
 
  test -z "$as_dir" && as_dir=.
8369
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8370
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371
 
    ac_cv_prog_ac_ct_STRIP="strip"
8372
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373
 
    break 2
8374
 
  fi
8375
 
done
8376
 
done
8377
 
IFS=$as_save_IFS
8378
 
 
8379
 
fi
8380
 
fi
8381
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8382
 
if test -n "$ac_ct_STRIP"; then
8383
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8384
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8385
 
else
8386
 
  { echo "$as_me:$LINENO: result: no" >&5
8387
 
echo "${ECHO_T}no" >&6; }
8388
 
fi
8389
 
 
8390
 
  if test "x$ac_ct_STRIP" = x; then
8391
 
    STRIP=":"
8392
 
  else
8393
 
    case $cross_compiling:$ac_tool_warned in
8394
 
yes:)
8395
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8396
 
whose name does not start with the host triplet.  If you think this
8397
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8398
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8399
 
whose name does not start with the host triplet.  If you think this
8400
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8401
 
ac_tool_warned=yes ;;
8402
 
esac
8403
 
    STRIP=$ac_ct_STRIP
8404
 
  fi
8405
 
else
8406
 
  STRIP="$ac_cv_prog_STRIP"
8407
 
fi
8408
 
 
8409
 
 
8410
 
old_CC="$CC"
8411
 
old_CFLAGS="$CFLAGS"
8412
 
 
8413
 
# Set sane defaults for various variables
8414
 
test -z "$AR" && AR=ar
8415
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
8416
 
test -z "$AS" && AS=as
8417
 
test -z "$CC" && CC=cc
8418
 
test -z "$LTCC" && LTCC=$CC
8419
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8420
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8421
 
test -z "$LD" && LD=ld
8422
 
test -z "$LN_S" && LN_S="ln -s"
8423
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424
 
test -z "$NM" && NM=nm
8425
 
test -z "$SED" && SED=sed
8426
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8427
 
test -z "$RANLIB" && RANLIB=:
8428
 
test -z "$STRIP" && STRIP=:
8429
 
test -z "$ac_objext" && ac_objext=o
8430
 
 
8431
 
# Determine commands to create old-style static archives.
8432
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8433
 
old_postinstall_cmds='chmod 644 $oldlib'
8434
 
old_postuninstall_cmds=
8435
 
 
8436
 
if test -n "$RANLIB"; then
8437
 
  case $host_os in
8438
 
  openbsd*)
8439
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8440
 
    ;;
8441
 
  *)
8442
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8443
 
    ;;
8444
 
  esac
8445
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8446
 
fi
8447
 
 
8448
 
for cc_temp in $compiler""; do
8449
 
  case $cc_temp in
8450
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8451
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8452
 
    \-*) ;;
8453
 
    *) break;;
8454
 
  esac
8455
 
done
8456
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8457
 
 
8458
 
 
8459
 
# Only perform the check for file, if the check method requires it
8460
 
case $deplibs_check_method in
8461
 
file_magic*)
8462
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8463
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8464
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8465
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8467
 
else
8468
 
  case $MAGIC_CMD in
8469
 
[\\/*] |  ?:[\\/]*)
8470
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8471
 
  ;;
8472
 
*)
8473
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8474
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476
 
  for ac_dir in $ac_dummy; do
8477
 
    IFS="$lt_save_ifs"
8478
 
    test -z "$ac_dir" && ac_dir=.
8479
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8480
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8481
 
      if test -n "$file_magic_test_file"; then
8482
 
        case $deplibs_check_method in
8483
 
        "file_magic "*)
8484
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487
 
            $EGREP "$file_magic_regex" > /dev/null; then
8488
 
            :
8489
 
          else
8490
 
            cat <<EOF 1>&2
8491
 
 
8492
 
*** Warning: the command libtool uses to detect shared libraries,
8493
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8494
 
*** The result is that libtool may fail to recognize shared libraries
8495
 
*** as such.  This will affect the creation of libtool libraries that
8496
 
*** depend on shared libraries, but programs linked with such libtool
8497
 
*** libraries will work regardless of this problem.  Nevertheless, you
8498
 
*** may want to report the problem to your system manager and/or to
8499
 
*** bug-libtool@gnu.org
8500
 
 
8501
 
EOF
8502
 
          fi ;;
8503
 
        esac
8504
 
      fi
8505
 
      break
8506
 
    fi
8507
 
  done
8508
 
  IFS="$lt_save_ifs"
8509
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8510
 
  ;;
8511
 
esac
8512
 
fi
8513
 
 
8514
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515
 
if test -n "$MAGIC_CMD"; then
8516
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8517
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8518
 
else
8519
 
  { echo "$as_me:$LINENO: result: no" >&5
8520
 
echo "${ECHO_T}no" >&6; }
8521
 
fi
8522
 
 
8523
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8524
 
  if test -n "$ac_tool_prefix"; then
8525
 
    { echo "$as_me:$LINENO: checking for file" >&5
8526
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8527
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8528
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8529
 
else
8530
 
  case $MAGIC_CMD in
8531
 
[\\/*] |  ?:[\\/]*)
8532
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8533
 
  ;;
8534
 
*)
8535
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8536
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538
 
  for ac_dir in $ac_dummy; do
8539
 
    IFS="$lt_save_ifs"
8540
 
    test -z "$ac_dir" && ac_dir=.
8541
 
    if test -f $ac_dir/file; then
8542
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543
 
      if test -n "$file_magic_test_file"; then
8544
 
        case $deplibs_check_method in
8545
 
        "file_magic "*)
8546
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549
 
            $EGREP "$file_magic_regex" > /dev/null; then
8550
 
            :
8551
 
          else
8552
 
            cat <<EOF 1>&2
8553
 
 
8554
 
*** Warning: the command libtool uses to detect shared libraries,
8555
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8556
 
*** The result is that libtool may fail to recognize shared libraries
8557
 
*** as such.  This will affect the creation of libtool libraries that
8558
 
*** depend on shared libraries, but programs linked with such libtool
8559
 
*** libraries will work regardless of this problem.  Nevertheless, you
8560
 
*** may want to report the problem to your system manager and/or to
8561
 
*** bug-libtool@gnu.org
8562
 
 
8563
 
EOF
8564
 
          fi ;;
8565
 
        esac
8566
 
      fi
8567
 
      break
8568
 
    fi
8569
 
  done
8570
 
  IFS="$lt_save_ifs"
8571
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8572
 
  ;;
8573
 
esac
8574
 
fi
8575
 
 
8576
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577
 
if test -n "$MAGIC_CMD"; then
8578
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8579
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8580
 
else
8581
 
  { echo "$as_me:$LINENO: result: no" >&5
8582
 
echo "${ECHO_T}no" >&6; }
8583
 
fi
8584
 
 
8585
 
  else
8586
 
    MAGIC_CMD=:
8587
 
  fi
8588
 
fi
8589
 
 
8590
 
  fi
8591
 
  ;;
8592
 
esac
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
# Check whether --enable-libtool-lock was given.
 
7501
if test "${enable_libtool_lock+set}" = set; then
 
7502
  enableval=$enable_libtool_lock;
 
7503
fi
 
7504
 
 
7505
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7506
 
 
7507
# Some flags need to be propagated to the compiler or linker for good
 
7508
# libtool support.
 
7509
case $host in
 
7510
ia64-*-hpux*)
 
7511
  # Find out which ABI we are using.
 
7512
  echo 'int i;' > conftest.$ac_ext
 
7513
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7514
  (eval $ac_compile) 2>&5
 
7515
  ac_status=$?
 
7516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7517
  (exit $ac_status); }; then
 
7518
    case `/usr/bin/file conftest.$ac_objext` in
 
7519
      *ELF-32*)
 
7520
        HPUX_IA64_MODE="32"
 
7521
        ;;
 
7522
      *ELF-64*)
 
7523
        HPUX_IA64_MODE="64"
 
7524
        ;;
 
7525
    esac
 
7526
  fi
 
7527
  rm -rf conftest*
 
7528
  ;;
 
7529
*-*-irix6*)
 
7530
  # Find out which ABI we are using.
 
7531
  echo '#line 7531 "configure"' > conftest.$ac_ext
 
7532
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7533
  (eval $ac_compile) 2>&5
 
7534
  ac_status=$?
 
7535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7536
  (exit $ac_status); }; then
 
7537
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7538
      case `/usr/bin/file conftest.$ac_objext` in
 
7539
        *32-bit*)
 
7540
          LD="${LD-ld} -melf32bsmip"
 
7541
          ;;
 
7542
        *N32*)
 
7543
          LD="${LD-ld} -melf32bmipn32"
 
7544
          ;;
 
7545
        *64-bit*)
 
7546
          LD="${LD-ld} -melf64bmip"
 
7547
        ;;
 
7548
      esac
 
7549
    else
 
7550
      case `/usr/bin/file conftest.$ac_objext` in
 
7551
        *32-bit*)
 
7552
          LD="${LD-ld} -32"
 
7553
          ;;
 
7554
        *N32*)
 
7555
          LD="${LD-ld} -n32"
 
7556
          ;;
 
7557
        *64-bit*)
 
7558
          LD="${LD-ld} -64"
 
7559
          ;;
 
7560
      esac
 
7561
    fi
 
7562
  fi
 
7563
  rm -rf conftest*
 
7564
  ;;
 
7565
 
 
7566
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7567
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7568
  # Find out which ABI we are using.
 
7569
  echo 'int i;' > conftest.$ac_ext
 
7570
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7571
  (eval $ac_compile) 2>&5
 
7572
  ac_status=$?
 
7573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7574
  (exit $ac_status); }; then
 
7575
    case `/usr/bin/file conftest.o` in
 
7576
      *32-bit*)
 
7577
        case $host in
 
7578
          x86_64-*kfreebsd*-gnu)
 
7579
            LD="${LD-ld} -m elf_i386_fbsd"
 
7580
            ;;
 
7581
          x86_64-*linux*)
 
7582
            LD="${LD-ld} -m elf_i386"
 
7583
            ;;
 
7584
          ppc64-*linux*|powerpc64-*linux*)
 
7585
            LD="${LD-ld} -m elf32ppclinux"
 
7586
            ;;
 
7587
          s390x-*linux*)
 
7588
            LD="${LD-ld} -m elf_s390"
 
7589
            ;;
 
7590
          sparc64-*linux*)
 
7591
            LD="${LD-ld} -m elf32_sparc"
 
7592
            ;;
 
7593
        esac
 
7594
        ;;
 
7595
      *64-bit*)
 
7596
        case $host in
 
7597
          x86_64-*kfreebsd*-gnu)
 
7598
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7599
            ;;
 
7600
          x86_64-*linux*)
 
7601
            LD="${LD-ld} -m elf_x86_64"
 
7602
            ;;
 
7603
          ppc*-*linux*|powerpc*-*linux*)
 
7604
            LD="${LD-ld} -m elf64ppc"
 
7605
            ;;
 
7606
          s390*-*linux*|s390*-*tpf*)
 
7607
            LD="${LD-ld} -m elf64_s390"
 
7608
            ;;
 
7609
          sparc*-*linux*)
 
7610
            LD="${LD-ld} -m elf64_sparc"
 
7611
            ;;
 
7612
        esac
 
7613
        ;;
 
7614
    esac
 
7615
  fi
 
7616
  rm -rf conftest*
 
7617
  ;;
 
7618
 
 
7619
*-*-sco3.2v5*)
 
7620
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7621
  SAVE_CFLAGS="$CFLAGS"
 
7622
  CFLAGS="$CFLAGS -belf"
 
7623
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7624
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
7625
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7627
else
 
7628
  ac_ext=c
 
7629
ac_cpp='$CPP $CPPFLAGS'
 
7630
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7631
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7632
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7633
 
 
7634
     cat >conftest.$ac_ext <<_ACEOF
 
7635
/* confdefs.h.  */
 
7636
_ACEOF
 
7637
cat confdefs.h >>conftest.$ac_ext
 
7638
cat >>conftest.$ac_ext <<_ACEOF
 
7639
/* end confdefs.h.  */
 
7640
 
 
7641
int
 
7642
main ()
 
7643
{
 
7644
 
 
7645
  ;
 
7646
  return 0;
 
7647
}
 
7648
_ACEOF
 
7649
rm -f conftest.$ac_objext conftest$ac_exeext
 
7650
if { (ac_try="$ac_link"
 
7651
case "(($ac_try" in
 
7652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7653
  *) ac_try_echo=$ac_try;;
 
7654
esac
 
7655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7656
  (eval "$ac_link") 2>conftest.er1
 
7657
  ac_status=$?
 
7658
  grep -v '^ *+' conftest.er1 >conftest.err
 
7659
  rm -f conftest.er1
 
7660
  cat conftest.err >&5
 
7661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7662
  (exit $ac_status); } && {
 
7663
         test -z "$ac_c_werror_flag" ||
 
7664
         test ! -s conftest.err
 
7665
       } && test -s conftest$ac_exeext &&
 
7666
       $as_test_x conftest$ac_exeext; then
 
7667
  lt_cv_cc_needs_belf=yes
 
7668
else
 
7669
  echo "$as_me: failed program was:" >&5
 
7670
sed 's/^/| /' conftest.$ac_ext >&5
 
7671
 
 
7672
        lt_cv_cc_needs_belf=no
 
7673
fi
 
7674
 
 
7675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7676
      conftest$ac_exeext conftest.$ac_ext
 
7677
     ac_ext=c
 
7678
ac_cpp='$CPP $CPPFLAGS'
 
7679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7682
 
 
7683
fi
 
7684
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7685
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
7686
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7687
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7688
    CFLAGS="$SAVE_CFLAGS"
 
7689
  fi
 
7690
  ;;
 
7691
sparc*-*solaris*)
 
7692
  # Find out which ABI we are using.
 
7693
  echo 'int i;' > conftest.$ac_ext
 
7694
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7695
  (eval $ac_compile) 2>&5
 
7696
  ac_status=$?
 
7697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7698
  (exit $ac_status); }; then
 
7699
    case `/usr/bin/file conftest.o` in
 
7700
    *64-bit*)
 
7701
      case $lt_cv_prog_gnu_ld in
 
7702
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7703
      *)
 
7704
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7705
          LD="${LD-ld} -64"
 
7706
        fi
 
7707
        ;;
 
7708
      esac
 
7709
      ;;
 
7710
    esac
 
7711
  fi
 
7712
  rm -rf conftest*
 
7713
  ;;
 
7714
esac
 
7715
 
 
7716
need_locks="$enable_libtool_lock"
8593
7717
 
8594
7718
 
8595
7719
  case $host_os in
8786
7910
  NMEDIT="$ac_cv_prog_NMEDIT"
8787
7911
fi
8788
7912
 
 
7913
    if test -n "$ac_tool_prefix"; then
 
7914
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7915
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7916
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7918
if test "${ac_cv_prog_LIPO+set}" = set; then
 
7919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7920
else
 
7921
  if test -n "$LIPO"; then
 
7922
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7923
else
 
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7925
for as_dir in $PATH
 
7926
do
 
7927
  IFS=$as_save_IFS
 
7928
  test -z "$as_dir" && as_dir=.
 
7929
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7930
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7931
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7933
    break 2
 
7934
  fi
 
7935
done
 
7936
done
 
7937
IFS=$as_save_IFS
 
7938
 
 
7939
fi
 
7940
fi
 
7941
LIPO=$ac_cv_prog_LIPO
 
7942
if test -n "$LIPO"; then
 
7943
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
7944
echo "${ECHO_T}$LIPO" >&6; }
 
7945
else
 
7946
  { echo "$as_me:$LINENO: result: no" >&5
 
7947
echo "${ECHO_T}no" >&6; }
 
7948
fi
 
7949
 
 
7950
 
 
7951
fi
 
7952
if test -z "$ac_cv_prog_LIPO"; then
 
7953
  ac_ct_LIPO=$LIPO
 
7954
  # Extract the first word of "lipo", so it can be a program name with args.
 
7955
set dummy lipo; ac_word=$2
 
7956
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7958
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
7959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7960
else
 
7961
  if test -n "$ac_ct_LIPO"; then
 
7962
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7963
else
 
7964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7965
for as_dir in $PATH
 
7966
do
 
7967
  IFS=$as_save_IFS
 
7968
  test -z "$as_dir" && as_dir=.
 
7969
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7971
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7972
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7973
    break 2
 
7974
  fi
 
7975
done
 
7976
done
 
7977
IFS=$as_save_IFS
 
7978
 
 
7979
fi
 
7980
fi
 
7981
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7982
if test -n "$ac_ct_LIPO"; then
 
7983
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
7984
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
7985
else
 
7986
  { echo "$as_me:$LINENO: result: no" >&5
 
7987
echo "${ECHO_T}no" >&6; }
 
7988
fi
 
7989
 
 
7990
  if test "x$ac_ct_LIPO" = x; then
 
7991
    LIPO=":"
 
7992
  else
 
7993
    case $cross_compiling:$ac_tool_warned in
 
7994
yes:)
 
7995
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7996
whose name does not start with the host triplet.  If you think this
 
7997
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7998
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7999
whose name does not start with the host triplet.  If you think this
 
8000
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8001
ac_tool_warned=yes ;;
 
8002
esac
 
8003
    LIPO=$ac_ct_LIPO
 
8004
  fi
 
8005
else
 
8006
  LIPO="$ac_cv_prog_LIPO"
 
8007
fi
 
8008
 
 
8009
    if test -n "$ac_tool_prefix"; then
 
8010
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8011
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8012
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8013
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8014
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
8015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8016
else
 
8017
  if test -n "$OTOOL"; then
 
8018
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8019
else
 
8020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8021
for as_dir in $PATH
 
8022
do
 
8023
  IFS=$as_save_IFS
 
8024
  test -z "$as_dir" && as_dir=.
 
8025
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8026
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8027
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8028
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8029
    break 2
 
8030
  fi
 
8031
done
 
8032
done
 
8033
IFS=$as_save_IFS
 
8034
 
 
8035
fi
 
8036
fi
 
8037
OTOOL=$ac_cv_prog_OTOOL
 
8038
if test -n "$OTOOL"; then
 
8039
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
8040
echo "${ECHO_T}$OTOOL" >&6; }
 
8041
else
 
8042
  { echo "$as_me:$LINENO: result: no" >&5
 
8043
echo "${ECHO_T}no" >&6; }
 
8044
fi
 
8045
 
 
8046
 
 
8047
fi
 
8048
if test -z "$ac_cv_prog_OTOOL"; then
 
8049
  ac_ct_OTOOL=$OTOOL
 
8050
  # Extract the first word of "otool", so it can be a program name with args.
 
8051
set dummy otool; ac_word=$2
 
8052
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8054
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
8055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8056
else
 
8057
  if test -n "$ac_ct_OTOOL"; then
 
8058
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8059
else
 
8060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8061
for as_dir in $PATH
 
8062
do
 
8063
  IFS=$as_save_IFS
 
8064
  test -z "$as_dir" && as_dir=.
 
8065
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8067
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8068
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8069
    break 2
 
8070
  fi
 
8071
done
 
8072
done
 
8073
IFS=$as_save_IFS
 
8074
 
 
8075
fi
 
8076
fi
 
8077
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8078
if test -n "$ac_ct_OTOOL"; then
 
8079
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
8080
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
8081
else
 
8082
  { echo "$as_me:$LINENO: result: no" >&5
 
8083
echo "${ECHO_T}no" >&6; }
 
8084
fi
 
8085
 
 
8086
  if test "x$ac_ct_OTOOL" = x; then
 
8087
    OTOOL=":"
 
8088
  else
 
8089
    case $cross_compiling:$ac_tool_warned in
 
8090
yes:)
 
8091
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8092
whose name does not start with the host triplet.  If you think this
 
8093
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8094
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8095
whose name does not start with the host triplet.  If you think this
 
8096
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8097
ac_tool_warned=yes ;;
 
8098
esac
 
8099
    OTOOL=$ac_ct_OTOOL
 
8100
  fi
 
8101
else
 
8102
  OTOOL="$ac_cv_prog_OTOOL"
 
8103
fi
 
8104
 
 
8105
    if test -n "$ac_tool_prefix"; then
 
8106
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8107
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8108
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8110
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
8111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8112
else
 
8113
  if test -n "$OTOOL64"; then
 
8114
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8115
else
 
8116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8117
for as_dir in $PATH
 
8118
do
 
8119
  IFS=$as_save_IFS
 
8120
  test -z "$as_dir" && as_dir=.
 
8121
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8122
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8123
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8124
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8125
    break 2
 
8126
  fi
 
8127
done
 
8128
done
 
8129
IFS=$as_save_IFS
 
8130
 
 
8131
fi
 
8132
fi
 
8133
OTOOL64=$ac_cv_prog_OTOOL64
 
8134
if test -n "$OTOOL64"; then
 
8135
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
8136
echo "${ECHO_T}$OTOOL64" >&6; }
 
8137
else
 
8138
  { echo "$as_me:$LINENO: result: no" >&5
 
8139
echo "${ECHO_T}no" >&6; }
 
8140
fi
 
8141
 
 
8142
 
 
8143
fi
 
8144
if test -z "$ac_cv_prog_OTOOL64"; then
 
8145
  ac_ct_OTOOL64=$OTOOL64
 
8146
  # Extract the first word of "otool64", so it can be a program name with args.
 
8147
set dummy otool64; ac_word=$2
 
8148
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8150
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
8151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8152
else
 
8153
  if test -n "$ac_ct_OTOOL64"; then
 
8154
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8155
else
 
8156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8157
for as_dir in $PATH
 
8158
do
 
8159
  IFS=$as_save_IFS
 
8160
  test -z "$as_dir" && as_dir=.
 
8161
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8163
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8164
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8165
    break 2
 
8166
  fi
 
8167
done
 
8168
done
 
8169
IFS=$as_save_IFS
 
8170
 
 
8171
fi
 
8172
fi
 
8173
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8174
if test -n "$ac_ct_OTOOL64"; then
 
8175
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
8176
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
8177
else
 
8178
  { echo "$as_me:$LINENO: result: no" >&5
 
8179
echo "${ECHO_T}no" >&6; }
 
8180
fi
 
8181
 
 
8182
  if test "x$ac_ct_OTOOL64" = x; then
 
8183
    OTOOL64=":"
 
8184
  else
 
8185
    case $cross_compiling:$ac_tool_warned in
 
8186
yes:)
 
8187
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8188
whose name does not start with the host triplet.  If you think this
 
8189
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8190
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8191
whose name does not start with the host triplet.  If you think this
 
8192
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8193
ac_tool_warned=yes ;;
 
8194
esac
 
8195
    OTOOL64=$ac_ct_OTOOL64
 
8196
  fi
 
8197
else
 
8198
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8199
fi
 
8200
 
 
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
 
8214
 
 
8215
 
 
8216
 
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
 
 
8222
 
 
8223
 
 
8224
 
 
8225
 
8789
8226
 
8790
8227
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8791
8228
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8794
8231
else
8795
8232
  lt_cv_apple_cc_single_mod=no
8796
8233
      if test -z "${LT_MULTI_MODULE}"; then
8797
 
   # By default we will add the -single_module flag. You can override
8798
 
   # by either setting the environment variable LT_MULTI_MODULE
8799
 
   # non-empty at configure time, or by adding -multi_module to the
8800
 
   # link flags.
8801
 
   echo "int foo(void){return 1;}" > conftest.c
8802
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8803
 
     -dynamiclib ${wl}-single_module conftest.c
8804
 
   if test -f libconftest.dylib; then
8805
 
     lt_cv_apple_cc_single_mod=yes
8806
 
     rm -rf libconftest.dylib*
8807
 
   fi
8808
 
   rm conftest.c
 
8234
        # By default we will add the -single_module flag. You can override
 
8235
        # by either setting the environment variable LT_MULTI_MODULE
 
8236
        # non-empty at configure time, or by adding -multi_module to the
 
8237
        # link flags.
 
8238
        rm -rf libconftest.dylib*
 
8239
        echo "int foo(void){return 1;}" > conftest.c
 
8240
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8241
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8242
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8243
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8244
        _lt_result=$?
 
8245
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
8246
          lt_cv_apple_cc_single_mod=yes
 
8247
        else
 
8248
          cat conftest.err >&5
 
8249
        fi
 
8250
        rm -rf libconftest.dylib*
 
8251
        rm -f conftest.*
8809
8252
      fi
8810
8253
fi
8811
8254
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8862
8305
 
8863
8306
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8864
8307
      conftest$ac_exeext conftest.$ac_ext
8865
 
   LDFLAGS="$save_LDFLAGS"
 
8308
        LDFLAGS="$save_LDFLAGS"
8866
8309
 
8867
8310
fi
8868
8311
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8869
8312
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8870
8313
    case $host_os in
8871
 
    rhapsody* | darwin1.[0123])
 
8314
    rhapsody* | darwin1.[012])
8872
8315
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8873
8316
    darwin1.*)
8874
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8875
 
    darwin*)
 
8317
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8318
    darwin*) # darwin 5.x on
8876
8319
      # if running on 10.5 or later, the deployment target defaults
8877
8320
      # to the OS version, if on x86, and 10.4, the deployment
8878
8321
      # target defaults to 10.4. Don't you love it?
8879
8322
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8880
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8881
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8882
 
   10.[012]*)
8883
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8884
 
   10.*)
8885
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8323
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8324
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8325
        10.[012]*)
 
8326
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8327
        10.*)
 
8328
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8886
8329
      esac
8887
8330
    ;;
8888
8331
  esac
8892
8335
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8893
8336
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8894
8337
    else
8895
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
8338
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8896
8339
    fi
8897
8340
    if test "$DSYMUTIL" != ":"; then
8898
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
8341
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8899
8342
    else
8900
8343
      _lt_dsymutil=
8901
8344
    fi
8903
8346
  esac
8904
8347
 
8905
8348
 
8906
 
enable_dlopen=no
8907
 
enable_win32_dll=no
8908
 
 
8909
 
# Check whether --enable-libtool-lock was given.
8910
 
if test "${enable_libtool_lock+set}" = set; then
8911
 
  enableval=$enable_libtool_lock;
8912
 
fi
8913
 
 
8914
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8349
for ac_header in dlfcn.h
 
8350
do
 
8351
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8352
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8353
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8354
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8356
else
 
8357
  cat >conftest.$ac_ext <<_ACEOF
 
8358
/* confdefs.h.  */
 
8359
_ACEOF
 
8360
cat confdefs.h >>conftest.$ac_ext
 
8361
cat >>conftest.$ac_ext <<_ACEOF
 
8362
/* end confdefs.h.  */
 
8363
$ac_includes_default
 
8364
 
 
8365
#include <$ac_header>
 
8366
_ACEOF
 
8367
rm -f conftest.$ac_objext
 
8368
if { (ac_try="$ac_compile"
 
8369
case "(($ac_try" in
 
8370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8371
  *) ac_try_echo=$ac_try;;
 
8372
esac
 
8373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8374
  (eval "$ac_compile") 2>conftest.er1
 
8375
  ac_status=$?
 
8376
  grep -v '^ *+' conftest.er1 >conftest.err
 
8377
  rm -f conftest.er1
 
8378
  cat conftest.err >&5
 
8379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8380
  (exit $ac_status); } && {
 
8381
         test -z "$ac_c_werror_flag" ||
 
8382
         test ! -s conftest.err
 
8383
       } && test -s conftest.$ac_objext; then
 
8384
  eval "$as_ac_Header=yes"
 
8385
else
 
8386
  echo "$as_me: failed program was:" >&5
 
8387
sed 's/^/| /' conftest.$ac_ext >&5
 
8388
 
 
8389
        eval "$as_ac_Header=no"
 
8390
fi
 
8391
 
 
8392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8393
fi
 
8394
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8395
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8396
echo "${ECHO_T}$ac_res" >&6; }
 
8397
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8398
  cat >>confdefs.h <<_ACEOF
 
8399
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8400
_ACEOF
 
8401
 
 
8402
fi
 
8403
 
 
8404
done
 
8405
 
 
8406
 
 
8407
 
 
8408
# Set options
 
8409
 
 
8410
 
 
8411
 
 
8412
        enable_dlopen=no
 
8413
 
 
8414
 
 
8415
  enable_win32_dll=no
 
8416
 
 
8417
 
 
8418
            # Check whether --enable-shared was given.
 
8419
if test "${enable_shared+set}" = set; then
 
8420
  enableval=$enable_shared; p=${PACKAGE-default}
 
8421
    case $enableval in
 
8422
    yes) enable_shared=yes ;;
 
8423
    no) enable_shared=no ;;
 
8424
    *)
 
8425
      enable_shared=no
 
8426
      # Look at the argument we got.  We use all the common list separators.
 
8427
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8428
      for pkg in $enableval; do
 
8429
        IFS="$lt_save_ifs"
 
8430
        if test "X$pkg" = "X$p"; then
 
8431
          enable_shared=yes
 
8432
        fi
 
8433
      done
 
8434
      IFS="$lt_save_ifs"
 
8435
      ;;
 
8436
    esac
 
8437
else
 
8438
  enable_shared=yes
 
8439
fi
 
8440
 
 
8441
 
 
8442
 
 
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
 
8448
 
 
8449
  # Check whether --enable-static was given.
 
8450
if test "${enable_static+set}" = set; then
 
8451
  enableval=$enable_static; p=${PACKAGE-default}
 
8452
    case $enableval in
 
8453
    yes) enable_static=yes ;;
 
8454
    no) enable_static=no ;;
 
8455
    *)
 
8456
     enable_static=no
 
8457
      # Look at the argument we got.  We use all the common list separators.
 
8458
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8459
      for pkg in $enableval; do
 
8460
        IFS="$lt_save_ifs"
 
8461
        if test "X$pkg" = "X$p"; then
 
8462
          enable_static=yes
 
8463
        fi
 
8464
      done
 
8465
      IFS="$lt_save_ifs"
 
8466
      ;;
 
8467
    esac
 
8468
else
 
8469
  enable_static=yes
 
8470
fi
 
8471
 
 
8472
 
 
8473
 
 
8474
 
 
8475
 
 
8476
 
 
8477
 
 
8478
 
8915
8479
 
8916
8480
 
8917
8481
# Check whether --with-pic was given.
8921
8485
  pic_mode=default
8922
8486
fi
8923
8487
 
 
8488
 
8924
8489
test -z "$pic_mode" && pic_mode=default
8925
8490
 
 
8491
 
 
8492
 
 
8493
 
 
8494
 
 
8495
 
 
8496
 
 
8497
  # Check whether --enable-fast-install was given.
 
8498
if test "${enable_fast_install+set}" = set; then
 
8499
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8500
    case $enableval in
 
8501
    yes) enable_fast_install=yes ;;
 
8502
    no) enable_fast_install=no ;;
 
8503
    *)
 
8504
      enable_fast_install=no
 
8505
      # Look at the argument we got.  We use all the common list separators.
 
8506
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8507
      for pkg in $enableval; do
 
8508
        IFS="$lt_save_ifs"
 
8509
        if test "X$pkg" = "X$p"; then
 
8510
          enable_fast_install=yes
 
8511
        fi
 
8512
      done
 
8513
      IFS="$lt_save_ifs"
 
8514
      ;;
 
8515
    esac
 
8516
else
 
8517
  enable_fast_install=yes
 
8518
fi
 
8519
 
 
8520
 
 
8521
 
 
8522
 
 
8523
 
 
8524
 
 
8525
 
 
8526
 
 
8527
 
 
8528
 
 
8529
 
 
8530
# This can be used to rebuild libtool when needed
 
8531
LIBTOOL_DEPS="$ltmain"
 
8532
 
 
8533
# Always use our own libtool.
 
8534
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8535
 
 
8536
 
 
8537
 
 
8538
 
 
8539
 
 
8540
 
 
8541
 
 
8542
 
 
8543
 
 
8544
 
 
8545
 
 
8546
 
 
8547
 
 
8548
 
 
8549
 
 
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
 
8556
 
 
8557
 
 
8558
 
 
8559
 
 
8560
test -z "$LN_S" && LN_S="ln -s"
 
8561
 
 
8562
 
 
8563
 
 
8564
 
 
8565
 
 
8566
 
 
8567
 
 
8568
 
 
8569
 
 
8570
 
 
8571
 
 
8572
 
 
8573
 
 
8574
 
 
8575
if test -n "${ZSH_VERSION+set}" ; then
 
8576
   setopt NO_GLOB_SUBST
 
8577
fi
 
8578
 
 
8579
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
8580
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
8581
if test "${lt_cv_objdir+set}" = set; then
 
8582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8583
else
 
8584
  rm -f .libs 2>/dev/null
 
8585
mkdir .libs 2>/dev/null
 
8586
if test -d .libs; then
 
8587
  lt_cv_objdir=.libs
 
8588
else
 
8589
  # MS-DOS does not allow filenames that begin with a dot.
 
8590
  lt_cv_objdir=_libs
 
8591
fi
 
8592
rmdir .libs 2>/dev/null
 
8593
fi
 
8594
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8595
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
8596
objdir=$lt_cv_objdir
 
8597
 
 
8598
 
 
8599
 
 
8600
 
 
8601
 
 
8602
cat >>confdefs.h <<_ACEOF
 
8603
#define LT_OBJDIR "$lt_cv_objdir/"
 
8604
_ACEOF
 
8605
 
 
8606
 
 
8607
 
 
8608
 
 
8609
 
 
8610
 
 
8611
 
 
8612
 
 
8613
 
 
8614
 
 
8615
 
 
8616
 
 
8617
 
 
8618
 
 
8619
 
 
8620
 
 
8621
 
 
8622
case $host_os in
 
8623
aix3*)
 
8624
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8625
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8626
  # vanish in a puff of smoke.
 
8627
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8628
    COLLECT_NAMES=
 
8629
    export COLLECT_NAMES
 
8630
  fi
 
8631
  ;;
 
8632
esac
 
8633
 
 
8634
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8635
# metacharacters that are still active within double-quoted strings.
 
8636
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
8637
 
 
8638
# Same as above, but do not quote variable references.
 
8639
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
8640
 
 
8641
# Sed substitution to delay expansion of an escaped shell variable in a
 
8642
# double_quote_subst'ed string.
 
8643
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8644
 
 
8645
# Sed substitution to delay expansion of an escaped single quote.
 
8646
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
8647
 
 
8648
# Sed substitution to avoid accidental globbing in evaled expressions
 
8649
no_glob_subst='s/\*/\\\*/g'
 
8650
 
 
8651
# Global variables:
 
8652
ofile=libtool
 
8653
can_build_shared=yes
 
8654
 
 
8655
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8656
# which needs '.lib').
 
8657
libext=a
 
8658
 
 
8659
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8660
 
 
8661
old_CC="$CC"
 
8662
old_CFLAGS="$CFLAGS"
 
8663
 
 
8664
# Set sane defaults for various variables
 
8665
test -z "$CC" && CC=cc
 
8666
test -z "$LTCC" && LTCC=$CC
 
8667
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8668
test -z "$LD" && LD=ld
 
8669
test -z "$ac_objext" && ac_objext=o
 
8670
 
 
8671
for cc_temp in $compiler""; do
 
8672
  case $cc_temp in
 
8673
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8674
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8675
    \-*) ;;
 
8676
    *) break;;
 
8677
  esac
 
8678
done
 
8679
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8680
 
 
8681
 
 
8682
# Only perform the check for file, if the check method requires it
 
8683
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8684
case $deplibs_check_method in
 
8685
file_magic*)
 
8686
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8687
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8688
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
8689
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8691
else
 
8692
  case $MAGIC_CMD in
 
8693
[\\/*] |  ?:[\\/]*)
 
8694
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8695
  ;;
 
8696
*)
 
8697
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8698
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8699
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8700
  for ac_dir in $ac_dummy; do
 
8701
    IFS="$lt_save_ifs"
 
8702
    test -z "$ac_dir" && ac_dir=.
 
8703
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8704
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8705
      if test -n "$file_magic_test_file"; then
 
8706
        case $deplibs_check_method in
 
8707
        "file_magic "*)
 
8708
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8709
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8710
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8711
            $EGREP "$file_magic_regex" > /dev/null; then
 
8712
            :
 
8713
          else
 
8714
            cat <<_LT_EOF 1>&2
 
8715
 
 
8716
*** Warning: the command libtool uses to detect shared libraries,
 
8717
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8718
*** The result is that libtool may fail to recognize shared libraries
 
8719
*** as such.  This will affect the creation of libtool libraries that
 
8720
*** depend on shared libraries, but programs linked with such libtool
 
8721
*** libraries will work regardless of this problem.  Nevertheless, you
 
8722
*** may want to report the problem to your system manager and/or to
 
8723
*** bug-libtool@gnu.org
 
8724
 
 
8725
_LT_EOF
 
8726
          fi ;;
 
8727
        esac
 
8728
      fi
 
8729
      break
 
8730
    fi
 
8731
  done
 
8732
  IFS="$lt_save_ifs"
 
8733
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8734
  ;;
 
8735
esac
 
8736
fi
 
8737
 
 
8738
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8739
if test -n "$MAGIC_CMD"; then
 
8740
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8741
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
8742
else
 
8743
  { echo "$as_me:$LINENO: result: no" >&5
 
8744
echo "${ECHO_T}no" >&6; }
 
8745
fi
 
8746
 
 
8747
 
 
8748
 
 
8749
 
 
8750
 
 
8751
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8752
  if test -n "$ac_tool_prefix"; then
 
8753
    { echo "$as_me:$LINENO: checking for file" >&5
 
8754
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
8755
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8757
else
 
8758
  case $MAGIC_CMD in
 
8759
[\\/*] |  ?:[\\/]*)
 
8760
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8761
  ;;
 
8762
*)
 
8763
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8764
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8765
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8766
  for ac_dir in $ac_dummy; do
 
8767
    IFS="$lt_save_ifs"
 
8768
    test -z "$ac_dir" && ac_dir=.
 
8769
    if test -f $ac_dir/file; then
 
8770
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8771
      if test -n "$file_magic_test_file"; then
 
8772
        case $deplibs_check_method in
 
8773
        "file_magic "*)
 
8774
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8775
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8776
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8777
            $EGREP "$file_magic_regex" > /dev/null; then
 
8778
            :
 
8779
          else
 
8780
            cat <<_LT_EOF 1>&2
 
8781
 
 
8782
*** Warning: the command libtool uses to detect shared libraries,
 
8783
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8784
*** The result is that libtool may fail to recognize shared libraries
 
8785
*** as such.  This will affect the creation of libtool libraries that
 
8786
*** depend on shared libraries, but programs linked with such libtool
 
8787
*** libraries will work regardless of this problem.  Nevertheless, you
 
8788
*** may want to report the problem to your system manager and/or to
 
8789
*** bug-libtool@gnu.org
 
8790
 
 
8791
_LT_EOF
 
8792
          fi ;;
 
8793
        esac
 
8794
      fi
 
8795
      break
 
8796
    fi
 
8797
  done
 
8798
  IFS="$lt_save_ifs"
 
8799
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8800
  ;;
 
8801
esac
 
8802
fi
 
8803
 
 
8804
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8805
if test -n "$MAGIC_CMD"; then
 
8806
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8807
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
8808
else
 
8809
  { echo "$as_me:$LINENO: result: no" >&5
 
8810
echo "${ECHO_T}no" >&6; }
 
8811
fi
 
8812
 
 
8813
 
 
8814
  else
 
8815
    MAGIC_CMD=:
 
8816
  fi
 
8817
fi
 
8818
 
 
8819
  fi
 
8820
  ;;
 
8821
esac
 
8822
 
8926
8823
# Use C for the default configuration in the libtool script
8927
 
tagname=
 
8824
 
8928
8825
lt_save_CC="$CC"
8929
8826
ac_ext=c
8930
8827
ac_cpp='$CPP $CPPFLAGS'
8947
8844
lt_simple_link_test_code='int main(){return(0);}'
8948
8845
 
8949
8846
 
 
8847
 
 
8848
 
 
8849
 
 
8850
 
 
8851
 
8950
8852
# If no C compiler was specified, use CC.
8951
8853
LTCC=${LTCC-"$CC"}
8952
8854
 
8956
8858
# Allow CC to be a program name with arguments.
8957
8859
compiler=$CC
8958
8860
 
 
8861
# Save the default compiler, since it gets overwritten when the other
 
8862
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8863
compiler_DEFAULT=$CC
8959
8864
 
8960
8865
# save warnings/boilerplate of simple test code
8961
8866
ac_outfile=conftest.$ac_objext
8962
8867
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8963
8868
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8964
8869
_lt_compiler_boilerplate=`cat conftest.err`
8965
 
$rm conftest*
 
8870
$RM conftest*
8966
8871
 
8967
8872
ac_outfile=conftest.$ac_objext
8968
8873
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8969
8874
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8970
8875
_lt_linker_boilerplate=`cat conftest.err`
8971
 
$rm -r conftest*
8972
 
 
8973
 
 
 
8876
$RM -r conftest*
 
8877
 
 
8878
 
 
8879
if test -n "$compiler"; then
8974
8880
 
8975
8881
lt_prog_compiler_no_builtin_flag=
8976
8882
 
8977
8883
if test "$GCC" = yes; then
8978
8884
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8979
8885
 
8980
 
 
8981
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8886
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8982
8887
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8983
8888
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8984
8889
  echo $ECHO_N "(cached) $ECHO_C" >&6
8985
8890
else
8986
8891
  lt_cv_prog_compiler_rtti_exceptions=no
8987
 
  ac_outfile=conftest.$ac_objext
 
8892
   ac_outfile=conftest.$ac_objext
8988
8893
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989
8894
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8990
8895
   # Insert the option either (1) after the last *FLAGS variable, or
8996
8901
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997
8902
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998
8903
   -e 's:$: $lt_compiler_flag:'`
8999
 
   (eval echo "\"\$as_me:8999: $lt_compile\"" >&5)
 
8904
   (eval echo "\"\$as_me:8904: $lt_compile\"" >&5)
9000
8905
   (eval "$lt_compile" 2>conftest.err)
9001
8906
   ac_status=$?
9002
8907
   cat conftest.err >&5
9003
 
   echo "$as_me:9003: \$? = $ac_status" >&5
 
8908
   echo "$as_me:8908: \$? = $ac_status" >&5
9004
8909
   if (exit $ac_status) && test -s "$ac_outfile"; then
9005
8910
     # The compiler can only warn and ignore the option if not recognized
9006
8911
     # So say no if there are warnings other than the usual output.
9007
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8912
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9008
8913
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9009
8914
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9010
8915
       lt_cv_prog_compiler_rtti_exceptions=yes
9011
8916
     fi
9012
8917
   fi
9013
 
   $rm conftest*
 
8918
   $RM conftest*
9014
8919
 
9015
8920
fi
9016
8921
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9024
8929
 
9025
8930
fi
9026
8931
 
9027
 
lt_prog_compiler_wl=
 
8932
 
 
8933
 
 
8934
 
 
8935
 
 
8936
 
 
8937
  lt_prog_compiler_wl=
9028
8938
lt_prog_compiler_pic=
9029
8939
lt_prog_compiler_static=
9030
8940
 
9045
8955
      ;;
9046
8956
 
9047
8957
    amigaos*)
9048
 
      # FIXME: we need at least 68020 code to build shared libraries, but
9049
 
      # adding the `-m68020' flag to GCC prevents building anything better,
9050
 
      # like `-m68040'.
9051
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8958
      case $host_cpu in
 
8959
      powerpc)
 
8960
            # see comment about AmigaOS4 .so support
 
8961
            lt_prog_compiler_pic='-fPIC'
 
8962
        ;;
 
8963
      m68k)
 
8964
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8965
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8966
            # like `-m68040'.
 
8967
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8968
        ;;
 
8969
      esac
9052
8970
      ;;
9053
8971
 
9054
8972
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9069
8987
      lt_prog_compiler_pic='-fno-common'
9070
8988
      ;;
9071
8989
 
 
8990
    hpux*)
 
8991
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8992
      # not for PA HP-UX.
 
8993
      case $host_cpu in
 
8994
      hppa*64*|ia64*)
 
8995
        # +Z the default
 
8996
        ;;
 
8997
      *)
 
8998
        lt_prog_compiler_pic='-fPIC'
 
8999
        ;;
 
9000
      esac
 
9001
      ;;
 
9002
 
9072
9003
    interix[3-9]*)
9073
9004
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9074
9005
      # Instead, we relocate shared libraries at runtime.
9081
9012
      enable_shared=no
9082
9013
      ;;
9083
9014
 
 
9015
    *nto* | *qnx*)
 
9016
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9017
      # it will coredump.
 
9018
      lt_prog_compiler_pic='-fPIC -shared'
 
9019
      ;;
 
9020
 
9084
9021
    sysv4*MP*)
9085
9022
      if test -d /usr/nec; then
9086
9023
        lt_prog_compiler_pic=-Kconform_pic
9087
9024
      fi
9088
9025
      ;;
9089
9026
 
9090
 
    hpux*)
9091
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9092
 
      # not for PA HP-UX.
9093
 
      case $host_cpu in
9094
 
      hppa*64*|ia64*)
9095
 
        # +Z the default
9096
 
        ;;
9097
 
      *)
9098
 
        lt_prog_compiler_pic='-fPIC'
9099
 
        ;;
9100
 
      esac
9101
 
      ;;
9102
 
 
9103
9027
    *)
9104
9028
      lt_prog_compiler_pic='-fPIC'
9105
9029
      ;;
9116
9040
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9117
9041
      fi
9118
9042
      ;;
9119
 
      darwin*)
9120
 
        # PIC is the default on this platform
9121
 
        # Common symbols not allowed in MH_DYLIB files
9122
 
       case $cc_basename in
9123
 
         xlc*)
9124
 
         lt_prog_compiler_pic='-qnocommon'
9125
 
         lt_prog_compiler_wl='-Wl,'
9126
 
         ;;
9127
 
       esac
9128
 
       ;;
9129
9043
 
9130
9044
    mingw* | cygwin* | pw32* | os2*)
9131
9045
      # This hack is so that the source file can tell whether it is being
9155
9069
      lt_prog_compiler_static='-non_shared'
9156
9070
      ;;
9157
9071
 
9158
 
    newsos6)
9159
 
      lt_prog_compiler_pic='-KPIC'
9160
 
      lt_prog_compiler_static='-Bstatic'
9161
 
      ;;
9162
 
 
9163
9072
    linux* | k*bsd*-gnu)
9164
9073
      case $cc_basename in
9165
 
      icc* | ecc*)
 
9074
      icc* | ecc* | ifort*)
9166
9075
        lt_prog_compiler_wl='-Wl,'
9167
9076
        lt_prog_compiler_pic='-KPIC'
9168
9077
        lt_prog_compiler_static='-static'
9179
9088
        # All Alpha code is PIC.
9180
9089
        lt_prog_compiler_static='-non_shared'
9181
9090
        ;;
 
9091
      xl*)
 
9092
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
9093
        lt_prog_compiler_wl='-Wl,'
 
9094
        lt_prog_compiler_pic='-qpic'
 
9095
        lt_prog_compiler_static='-qstaticlink'
 
9096
        ;;
9182
9097
      *)
9183
 
        case `$CC -V 2>&1 | sed 5q` in
 
9098
        case `$CC -V 2>&1 | sed 5q` in
9184
9099
        *Sun\ C*)
9185
9100
          # Sun C 5.9
9186
9101
          lt_prog_compiler_pic='-KPIC'
9198
9113
      esac
9199
9114
      ;;
9200
9115
 
 
9116
    newsos6)
 
9117
      lt_prog_compiler_pic='-KPIC'
 
9118
      lt_prog_compiler_static='-Bstatic'
 
9119
      ;;
 
9120
 
 
9121
    *nto* | *qnx*)
 
9122
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9123
      # it will coredump.
 
9124
      lt_prog_compiler_pic='-fPIC -shared'
 
9125
      ;;
 
9126
 
9201
9127
    osf3* | osf4* | osf5*)
9202
9128
      lt_prog_compiler_wl='-Wl,'
9203
9129
      # All OSF/1 code is PIC.
9260
9186
    esac
9261
9187
  fi
9262
9188
 
 
9189
case $host_os in
 
9190
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9191
  *djgpp*)
 
9192
    lt_prog_compiler_pic=
 
9193
    ;;
 
9194
  *)
 
9195
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9196
    ;;
 
9197
esac
9263
9198
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9264
9199
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9265
9200
 
 
9201
 
 
9202
 
 
9203
 
 
9204
 
 
9205
 
9266
9206
#
9267
9207
# Check to make sure the PIC flag actually works.
9268
9208
#
9269
9209
if test -n "$lt_prog_compiler_pic"; then
9270
 
 
9271
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9210
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9272
9211
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9273
9212
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9274
9213
  echo $ECHO_N "(cached) $ECHO_C" >&6
9275
9214
else
9276
9215
  lt_cv_prog_compiler_pic_works=no
9277
 
  ac_outfile=conftest.$ac_objext
 
9216
   ac_outfile=conftest.$ac_objext
9278
9217
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279
9218
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9280
9219
   # Insert the option either (1) after the last *FLAGS variable, or
9286
9225
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287
9226
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288
9227
   -e 's:$: $lt_compiler_flag:'`
9289
 
   (eval echo "\"\$as_me:9289: $lt_compile\"" >&5)
 
9228
   (eval echo "\"\$as_me:9228: $lt_compile\"" >&5)
9290
9229
   (eval "$lt_compile" 2>conftest.err)
9291
9230
   ac_status=$?
9292
9231
   cat conftest.err >&5
9293
 
   echo "$as_me:9293: \$? = $ac_status" >&5
 
9232
   echo "$as_me:9232: \$? = $ac_status" >&5
9294
9233
   if (exit $ac_status) && test -s "$ac_outfile"; then
9295
9234
     # The compiler can only warn and ignore the option if not recognized
9296
9235
     # So say no if there are warnings other than the usual output.
9297
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9236
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9298
9237
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299
9238
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300
9239
       lt_cv_prog_compiler_pic_works=yes
9301
9240
     fi
9302
9241
   fi
9303
 
   $rm conftest*
 
9242
   $RM conftest*
9304
9243
 
9305
9244
fi
9306
9245
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9317
9256
fi
9318
9257
 
9319
9258
fi
9320
 
case $host_os in
9321
 
  # For platforms which do not support PIC, -DPIC is meaningless:
9322
 
  *djgpp*)
9323
 
    lt_prog_compiler_pic=
9324
 
    ;;
9325
 
  *)
9326
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9327
 
    ;;
9328
 
esac
 
9259
 
 
9260
 
 
9261
 
 
9262
 
 
9263
 
9329
9264
 
9330
9265
#
9331
9266
# Check to make sure the static flag actually works.
9346
9281
     if test -s conftest.err; then
9347
9282
       # Append any errors to the config.log.
9348
9283
       cat conftest.err 1>&5
9349
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9284
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9350
9285
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351
9286
       if diff conftest.exp conftest.er2 >/dev/null; then
9352
9287
         lt_cv_prog_compiler_static_works=yes
9355
9290
       lt_cv_prog_compiler_static_works=yes
9356
9291
     fi
9357
9292
   fi
9358
 
   $rm -r conftest*
 
9293
   $RM -r conftest*
9359
9294
   LDFLAGS="$save_LDFLAGS"
9360
9295
 
9361
9296
fi
9369
9304
fi
9370
9305
 
9371
9306
 
9372
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9373
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9374
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9376
 
else
9377
 
  lt_cv_prog_compiler_c_o=no
9378
 
   $rm -r conftest 2>/dev/null
9379
 
   mkdir conftest
9380
 
   cd conftest
9381
 
   mkdir out
9382
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9383
 
 
9384
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9385
 
   # Insert the option either (1) after the last *FLAGS variable, or
9386
 
   # (2) before a word containing "conftest.", or (3) at the end.
9387
 
   # Note that $ac_compile itself does not contain backslashes and begins
9388
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9389
 
   lt_compile=`echo "$ac_compile" | $SED \
9390
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9391
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9392
 
   -e 's:$: $lt_compiler_flag:'`
9393
 
   (eval echo "\"\$as_me:9393: $lt_compile\"" >&5)
9394
 
   (eval "$lt_compile" 2>out/conftest.err)
9395
 
   ac_status=$?
9396
 
   cat out/conftest.err >&5
9397
 
   echo "$as_me:9397: \$? = $ac_status" >&5
9398
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9399
 
   then
9400
 
     # The compiler can only warn and ignore the option if not recognized
9401
 
     # So say no if there are warnings
9402
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9403
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9404
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9405
 
       lt_cv_prog_compiler_c_o=yes
9406
 
     fi
9407
 
   fi
9408
 
   chmod u+w . 2>&5
9409
 
   $rm conftest*
9410
 
   # SGI C++ compiler will create directory out/ii_files/ for
9411
 
   # template instantiation
9412
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9413
 
   $rm out/* && rmdir out
9414
 
   cd ..
9415
 
   rmdir conftest
9416
 
   $rm conftest*
9417
 
 
9418
 
fi
9419
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9420
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9313
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9314
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9316
else
 
9317
  lt_cv_prog_compiler_c_o=no
 
9318
   $RM -r conftest 2>/dev/null
 
9319
   mkdir conftest
 
9320
   cd conftest
 
9321
   mkdir out
 
9322
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9323
 
 
9324
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9325
   # Insert the option either (1) after the last *FLAGS variable, or
 
9326
   # (2) before a word containing "conftest.", or (3) at the end.
 
9327
   # Note that $ac_compile itself does not contain backslashes and begins
 
9328
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9329
   lt_compile=`echo "$ac_compile" | $SED \
 
9330
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9331
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9332
   -e 's:$: $lt_compiler_flag:'`
 
9333
   (eval echo "\"\$as_me:9333: $lt_compile\"" >&5)
 
9334
   (eval "$lt_compile" 2>out/conftest.err)
 
9335
   ac_status=$?
 
9336
   cat out/conftest.err >&5
 
9337
   echo "$as_me:9337: \$? = $ac_status" >&5
 
9338
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9339
   then
 
9340
     # The compiler can only warn and ignore the option if not recognized
 
9341
     # So say no if there are warnings
 
9342
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9343
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9344
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9345
       lt_cv_prog_compiler_c_o=yes
 
9346
     fi
 
9347
   fi
 
9348
   chmod u+w . 2>&5
 
9349
   $RM conftest*
 
9350
   # SGI C++ compiler will create directory out/ii_files/ for
 
9351
   # template instantiation
 
9352
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9353
   $RM out/* && rmdir out
 
9354
   cd ..
 
9355
   $RM -r conftest
 
9356
   $RM conftest*
 
9357
 
 
9358
fi
 
9359
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9360
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9368
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9369
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9371
else
 
9372
  lt_cv_prog_compiler_c_o=no
 
9373
   $RM -r conftest 2>/dev/null
 
9374
   mkdir conftest
 
9375
   cd conftest
 
9376
   mkdir out
 
9377
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9378
 
 
9379
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9380
   # Insert the option either (1) after the last *FLAGS variable, or
 
9381
   # (2) before a word containing "conftest.", or (3) at the end.
 
9382
   # Note that $ac_compile itself does not contain backslashes and begins
 
9383
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9384
   lt_compile=`echo "$ac_compile" | $SED \
 
9385
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9386
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9387
   -e 's:$: $lt_compiler_flag:'`
 
9388
   (eval echo "\"\$as_me:9388: $lt_compile\"" >&5)
 
9389
   (eval "$lt_compile" 2>out/conftest.err)
 
9390
   ac_status=$?
 
9391
   cat out/conftest.err >&5
 
9392
   echo "$as_me:9392: \$? = $ac_status" >&5
 
9393
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9394
   then
 
9395
     # The compiler can only warn and ignore the option if not recognized
 
9396
     # So say no if there are warnings
 
9397
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9398
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9399
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9400
       lt_cv_prog_compiler_c_o=yes
 
9401
     fi
 
9402
   fi
 
9403
   chmod u+w . 2>&5
 
9404
   $RM conftest*
 
9405
   # SGI C++ compiler will create directory out/ii_files/ for
 
9406
   # template instantiation
 
9407
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9408
   $RM out/* && rmdir out
 
9409
   cd ..
 
9410
   $RM -r conftest
 
9411
   $RM conftest*
 
9412
 
 
9413
fi
 
9414
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9415
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9416
 
 
9417
 
9421
9418
 
9422
9419
 
9423
9420
hard_links="nottested"
9426
9423
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9427
9424
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9428
9425
  hard_links=yes
9429
 
  $rm conftest*
 
9426
  $RM conftest*
9430
9427
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9431
9428
  touch conftest.a
9432
9429
  ln conftest.a conftest.b 2>&5 || hard_links=no
9442
9439
  need_locks=no
9443
9440
fi
9444
9441
 
9445
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9446
9448
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9447
9449
 
9448
9450
  runpath_var=
9449
9451
  allow_undefined_flag=
9450
 
  enable_shared_with_static_runtimes=no
 
9452
  always_export_symbols=no
9451
9453
  archive_cmds=
9452
9454
  archive_expsym_cmds=
9453
 
  old_archive_From_new_cmds=
9454
 
  old_archive_from_expsyms_cmds=
 
9455
  compiler_needs_object=no
 
9456
  enable_shared_with_static_runtimes=no
9455
9457
  export_dynamic_flag_spec=
9456
 
  whole_archive_flag_spec=
9457
 
  thread_safe_flag_spec=
 
9458
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9459
  hardcode_automatic=no
 
9460
  hardcode_direct=no
 
9461
  hardcode_direct_absolute=no
9458
9462
  hardcode_libdir_flag_spec=
9459
9463
  hardcode_libdir_flag_spec_ld=
9460
9464
  hardcode_libdir_separator=
9461
 
  hardcode_direct=no
9462
9465
  hardcode_minus_L=no
9463
9466
  hardcode_shlibpath_var=unsupported
 
9467
  inherit_rpath=no
9464
9468
  link_all_deplibs=unknown
9465
 
  hardcode_automatic=no
9466
9469
  module_cmds=
9467
9470
  module_expsym_cmds=
9468
 
  always_export_symbols=no
9469
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9471
  old_archive_from_new_cmds=
 
9472
  old_archive_from_expsyms_cmds=
 
9473
  thread_safe_flag_spec=
 
9474
  whole_archive_flag_spec=
9470
9475
  # include_expsyms should be a list of space-separated symbols to be *always*
9471
9476
  # included in the symbol list
9472
9477
  include_expsyms=
9482
9487
  # preloaded symbol tables.
9483
9488
  # Exclude shared library initialization/finalization symbols.
9484
9489
  extract_expsyms_cmds=
9485
 
  # Just being paranoid about ensuring that cc_basename is set.
9486
 
  for cc_temp in $compiler""; do
9487
 
  case $cc_temp in
9488
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9489
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9490
 
    \-*) ;;
9491
 
    *) break;;
9492
 
  esac
9493
 
done
9494
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9495
9490
 
9496
9491
  case $host_os in
9497
9492
  cygwin* | mingw* | pw32*)
9520
9515
    # are reset later if shared libraries are not supported. Putting them
9521
9516
    # here allows them to be overridden if necessary.
9522
9517
    runpath_var=LD_RUN_PATH
9523
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9518
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524
9519
    export_dynamic_flag_spec='${wl}--export-dynamic'
9525
9520
    # ancient GNU ld didn't support --whole-archive et. al.
9526
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9527
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9528
 
      else
9529
 
        whole_archive_flag_spec=
 
9521
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9522
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9523
    else
 
9524
      whole_archive_flag_spec=
9530
9525
    fi
9531
9526
    supports_anon_versioning=no
9532
 
    case `$LD -v 2>/dev/null` in
 
9527
    case `$LD -v 2>&1` in
9533
9528
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9534
9529
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9535
9530
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9543
9538
      # On AIX/PPC, the GNU linker is very broken
9544
9539
      if test "$host_cpu" != ia64; then
9545
9540
        ld_shlibs=no
9546
 
        cat <<EOF 1>&2
 
9541
        cat <<_LT_EOF 1>&2
9547
9542
 
9548
9543
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9549
9544
*** to be unable to reliably create shared libraries on AIX.
9551
9546
*** really care for shared libraries, you may want to modify your PATH
9552
9547
*** so that a non-GNU linker is found, and then restart.
9553
9548
 
9554
 
EOF
 
9549
_LT_EOF
9555
9550
      fi
9556
9551
      ;;
9557
9552
 
9558
9553
    amigaos*)
9559
 
      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)'
9560
 
      hardcode_libdir_flag_spec='-L$libdir'
9561
 
      hardcode_minus_L=yes
9562
 
 
9563
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9564
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
9565
 
      # to version 4, is to share data among multiple programs linked
9566
 
      # with the same dynamic library.  Since this doesn't match the
9567
 
      # behavior of shared libraries on other platforms, we can't use
9568
 
      # them.
9569
 
      ld_shlibs=no
 
9554
      case $host_cpu in
 
9555
      powerpc)
 
9556
            # see comment about AmigaOS4 .so support
 
9557
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9558
            archive_expsym_cmds=''
 
9559
        ;;
 
9560
      m68k)
 
9561
            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)'
 
9562
            hardcode_libdir_flag_spec='-L$libdir'
 
9563
            hardcode_minus_L=yes
 
9564
        ;;
 
9565
      esac
9570
9566
      ;;
9571
9567
 
9572
9568
    beos*)
9573
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9569
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574
9570
        allow_undefined_flag=unsupported
9575
9571
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9576
9572
        # support --undefined.  This deserves some investigation.  FIXME
9581
9577
      ;;
9582
9578
 
9583
9579
    cygwin* | mingw* | pw32*)
9584
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9580
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9585
9581
      # as there is no search path for DLLs.
9586
9582
      hardcode_libdir_flag_spec='-L$libdir'
9587
9583
      allow_undefined_flag=unsupported
9588
9584
      always_export_symbols=no
9589
9585
      enable_shared_with_static_runtimes=yes
9590
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9586
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9591
9587
 
9592
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9588
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9593
9589
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9594
9590
        # If the export-symbols file already is a .def file (1st line
9595
9591
        # is EXPORTS), use it as is; otherwise, prepend...
9620
9616
      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'
9621
9617
      ;;
9622
9618
 
9623
 
    gnu* | linux* | k*bsd*-gnu)
9624
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9619
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
9620
      tmp_diet=no
 
9621
      if test "$host_os" = linux-dietlibc; then
 
9622
        case $cc_basename in
 
9623
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9624
        esac
 
9625
      fi
 
9626
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9627
         && test "$tmp_diet" = no
 
9628
      then
9625
9629
        tmp_addflag=
 
9630
        tmp_sharedflag='-shared'
9626
9631
        case $cc_basename,$host_cpu in
9627
 
        pgcc*)                          # Portland Group C compiler
9628
 
          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'
 
9632
        pgcc*)                          # Portland Group C compiler
 
9633
          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'
9629
9634
          tmp_addflag=' $pic_flag'
9630
9635
          ;;
9631
9636
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9632
 
          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'
 
9637
          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'
9633
9638
          tmp_addflag=' $pic_flag -Mnomain' ;;
9634
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
9639
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9635
9640
          tmp_addflag=' -i_dynamic' ;;
9636
9641
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9637
9642
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9638
9643
        ifc* | ifort*)                  # Intel Fortran compiler
9639
9644
          tmp_addflag=' -nofor_main' ;;
 
9645
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
9646
          tmp_sharedflag='-qmkshrobj'
 
9647
          tmp_addflag= ;;
9640
9648
        esac
9641
9649
        case `$CC -V 2>&1 | sed 5q` in
9642
9650
        *Sun\ C*)                       # Sun C 5.9
9643
 
          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'
 
9651
          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'
 
9652
          compiler_needs_object=yes
9644
9653
          tmp_sharedflag='-G' ;;
9645
9654
        *Sun\ F*)                       # Sun Fortran 8.3
9646
9655
          tmp_sharedflag='-G' ;;
9647
 
        *)
9648
 
          tmp_sharedflag='-shared' ;;
9649
9656
        esac
9650
9657
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651
9658
 
9652
 
        if test $supports_anon_versioning = yes; then
9653
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9654
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9655
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
9656
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9657
 
        fi
9658
 
        link_all_deplibs=no
 
9659
        if test "x$supports_anon_versioning" = xyes; then
 
9660
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9661
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9662
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9663
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9664
        fi
 
9665
 
 
9666
        case $cc_basename in
 
9667
        xlf*)
 
9668
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9669
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9670
          hardcode_libdir_flag_spec=
 
9671
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9672
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9673
          if test "x$supports_anon_versioning" = xyes; then
 
9674
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9675
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9676
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9677
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9678
          fi
 
9679
          ;;
 
9680
        esac
9659
9681
      else
9660
 
        ld_shlibs=no
 
9682
        ld_shlibs=no
9661
9683
      fi
9662
9684
      ;;
9663
9685
 
9664
9686
    netbsd* | netbsdelf*-gnu)
9665
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9687
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9666
9688
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9667
9689
        wlarc=
9668
9690
      else
9672
9694
      ;;
9673
9695
 
9674
9696
    solaris*)
9675
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9697
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9676
9698
        ld_shlibs=no
9677
 
        cat <<EOF 1>&2
 
9699
        cat <<_LT_EOF 1>&2
9678
9700
 
9679
9701
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9680
9702
*** create shared libraries on Solaris systems.  Therefore, libtool
9683
9705
*** your PATH or compiler configuration so that the native linker is
9684
9706
*** used, and then restart.
9685
9707
 
9686
 
EOF
9687
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9708
_LT_EOF
 
9709
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688
9710
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689
9711
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690
9712
      else
9708
9730
_LT_EOF
9709
9731
        ;;
9710
9732
        *)
9711
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9712
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9713
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9714
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
9733
          # For security reasons, it is highly recommended that you always
 
9734
          # use absolute paths for naming shared libraries, and exclude the
 
9735
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9736
          # requires that you compile everything twice, which is a pain.
 
9737
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9738
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9739
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9740
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9715
9741
          else
9716
9742
            ld_shlibs=no
9717
9743
          fi
9727
9753
      ;;
9728
9754
 
9729
9755
    *)
9730
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9756
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731
9757
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732
9758
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9733
9759
      else
9769
9795
      else
9770
9796
        # If we're using GNU nm, then we don't want the "-C" option.
9771
9797
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9772
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9773
 
          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'
 
9798
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9799
          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'
9774
9800
        else
9775
 
          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'
 
9801
          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'
9776
9802
        fi
9777
9803
        aix_use_runtimelinking=no
9778
9804
 
9781
9807
        # need to do runtime linking.
9782
9808
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9783
9809
          for ld_flag in $LDFLAGS; do
9784
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9785
 
            aix_use_runtimelinking=yes
9786
 
            break
9787
 
          fi
 
9810
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9811
            aix_use_runtimelinking=yes
 
9812
            break
 
9813
          fi
9788
9814
          done
9789
9815
          ;;
9790
9816
        esac
9801
9827
 
9802
9828
      archive_cmds=''
9803
9829
      hardcode_direct=yes
 
9830
      hardcode_direct_absolute=yes
9804
9831
      hardcode_libdir_separator=':'
9805
9832
      link_all_deplibs=yes
 
9833
      file_list_spec='${wl}-f,'
9806
9834
 
9807
9835
      if test "$GCC" = yes; then
9808
9836
        case $host_os in aix4.[012]|aix4.[012].*)
9809
9837
        # We only want to do this on AIX 4.2 and lower, the check
9810
9838
        # below for broken collect2 doesn't work under 4.3+
9811
9839
          collect2name=`${CC} -print-prog-name=collect2`
9812
 
          if test -f "$collect2name" && \
9813
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9840
          if test -f "$collect2name" &&
 
9841
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9814
9842
          then
9815
 
          # We have reworked collect2
9816
 
          :
 
9843
          # We have reworked collect2
 
9844
          :
9817
9845
          else
9818
 
          # We have old collect2
9819
 
          hardcode_direct=unsupported
9820
 
          # It fails to find uninstalled libraries when the uninstalled
9821
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9822
 
          # to unsupported forces relinking
9823
 
          hardcode_minus_L=yes
9824
 
          hardcode_libdir_flag_spec='-L$libdir'
9825
 
          hardcode_libdir_separator=
 
9846
          # We have old collect2
 
9847
          hardcode_direct=unsupported
 
9848
          # It fails to find uninstalled libraries when the uninstalled
 
9849
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9850
          # to unsupported forces relinking
 
9851
          hardcode_minus_L=yes
 
9852
          hardcode_libdir_flag_spec='-L$libdir'
 
9853
          hardcode_libdir_separator=
9826
9854
          fi
9827
9855
          ;;
9828
9856
        esac
9830
9858
        if test "$aix_use_runtimelinking" = yes; then
9831
9859
          shared_flag="$shared_flag "'${wl}-G'
9832
9860
        fi
 
9861
        link_all_deplibs=no
9833
9862
      else
9834
9863
        # not using gcc
9835
9864
        if test "$host_cpu" = ia64; then
9836
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9837
 
        # chokes on -Wl,-G. The following line is correct:
 
9865
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9866
        # chokes on -Wl,-G. The following line is correct:
9838
9867
          shared_flag='-G'
9839
9868
        else
9840
9869
          if test "$aix_use_runtimelinking" = yes; then
9852
9881
        # Warning - without using the other runtime loading flags (-brtl),
9853
9882
        # -berok will link without error, but may produce a broken library.
9854
9883
        allow_undefined_flag='-berok'
9855
 
       # Determine the default libpath from the value encoded in an empty executable.
9856
 
       cat >conftest.$ac_ext <<_ACEOF
 
9884
        # Determine the default libpath from the value encoded in an
 
9885
        # empty executable.
 
9886
        cat >conftest.$ac_ext <<_ACEOF
9857
9887
/* confdefs.h.  */
9858
9888
_ACEOF
9859
9889
cat confdefs.h >>conftest.$ac_ext
9910
9940
      conftest$ac_exeext conftest.$ac_ext
9911
9941
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9912
9942
 
9913
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9914
 
        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"
9915
 
       else
 
9943
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9944
        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"
 
9945
      else
9916
9946
        if test "$host_cpu" = ia64; then
9917
9947
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9918
9948
          allow_undefined_flag="-z nodefs"
9919
9949
          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"
9920
9950
        else
9921
 
         # Determine the default libpath from the value encoded in an empty executable.
 
9951
         # Determine the default libpath from the value encoded in an
 
9952
         # empty executable.
9922
9953
         cat >conftest.$ac_ext <<_ACEOF
9923
9954
/* confdefs.h.  */
9924
9955
_ACEOF
9991
10022
      ;;
9992
10023
 
9993
10024
    amigaos*)
9994
 
      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)'
9995
 
      hardcode_libdir_flag_spec='-L$libdir'
9996
 
      hardcode_minus_L=yes
9997
 
      # see comment about different semantics on the GNU ld section
9998
 
      ld_shlibs=no
 
10025
      case $host_cpu in
 
10026
      powerpc)
 
10027
            # see comment about AmigaOS4 .so support
 
10028
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10029
            archive_expsym_cmds=''
 
10030
        ;;
 
10031
      m68k)
 
10032
            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)'
 
10033
            hardcode_libdir_flag_spec='-L$libdir'
 
10034
            hardcode_minus_L=yes
 
10035
        ;;
 
10036
      esac
9999
10037
      ;;
10000
10038
 
10001
10039
    bsdi[45]*)
10014
10052
      # Tell ltmain to make .dll files, not .so files.
10015
10053
      shrext_cmds=".dll"
10016
10054
      # FIXME: Setting linknames here is a bad hack.
10017
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
10055
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10018
10056
      # The linker will automatically build a .lib file if we build a DLL.
10019
 
      old_archive_From_new_cmds='true'
 
10057
      old_archive_from_new_cmds='true'
10020
10058
      # FIXME: Should let the user specify the lib program.
10021
10059
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10022
10060
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10024
10062
      ;;
10025
10063
 
10026
10064
    darwin* | rhapsody*)
10027
 
      case $host_os in
10028
 
        rhapsody* | darwin1.[012])
10029
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10030
 
         ;;
10031
 
       *) # Darwin 1.3 on
10032
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10033
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10034
 
         else
10035
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
10036
 
             10.[012])
10037
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10038
 
               ;;
10039
 
             10.*)
10040
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10041
 
               ;;
10042
 
           esac
10043
 
         fi
10044
 
         ;;
10045
 
      esac
10046
 
      archive_cmds_need_lc=no
10047
 
      hardcode_direct=no
10048
 
      hardcode_automatic=yes
10049
 
      hardcode_shlibpath_var=unsupported
10050
 
      whole_archive_flag_spec=''
10051
 
      link_all_deplibs=yes
10052
 
    if test "$GCC" = yes ; then
10053
 
        output_verbose_link_cmd='echo'
10054
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10055
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10056
 
        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}"
10057
 
        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}"
10058
 
    else
10059
 
      case $cc_basename in
10060
 
        xlc*)
10061
 
         output_verbose_link_cmd='echo'
10062
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10063
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10064
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10065
 
         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}'
10066
 
          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}'
10067
 
          ;;
10068
 
       *)
10069
 
         ld_shlibs=no
10070
 
          ;;
10071
 
      esac
10072
 
    fi
 
10065
 
 
10066
 
 
10067
  archive_cmds_need_lc=no
 
10068
  hardcode_direct=no
 
10069
  hardcode_automatic=yes
 
10070
  hardcode_shlibpath_var=unsupported
 
10071
  whole_archive_flag_spec=''
 
10072
  link_all_deplibs=yes
 
10073
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10074
  if test "$GCC" = "yes"; then
 
10075
    output_verbose_link_cmd=echo
 
10076
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10077
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10078
    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}"
 
10079
    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}"
 
10080
 
 
10081
  else
 
10082
  ld_shlibs=no
 
10083
  fi
 
10084
 
10073
10085
      ;;
10074
10086
 
10075
10087
    dgux*)
10111
10123
 
10112
10124
    hpux9*)
10113
10125
      if test "$GCC" = yes; then
10114
 
        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'
 
10126
        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'
10115
10127
      else
10116
 
        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'
 
10128
        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'
10117
10129
      fi
10118
10130
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10119
10131
      hardcode_libdir_separator=:
10133
10145
      fi
10134
10146
      if test "$with_gnu_ld" = no; then
10135
10147
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10148
        hardcode_libdir_flag_spec_ld='+b $libdir'
10136
10149
        hardcode_libdir_separator=:
10137
 
 
10138
10150
        hardcode_direct=yes
 
10151
        hardcode_direct_absolute=yes
10139
10152
        export_dynamic_flag_spec='${wl}-E'
10140
 
 
10141
10153
        # hardcode_minus_L: Not really in the search PATH,
10142
10154
        # but as the default location of the library.
10143
10155
        hardcode_minus_L=yes
10176
10188
 
10177
10189
        case $host_cpu in
10178
10190
        hppa*64*|ia64*)
10179
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
10180
10191
          hardcode_direct=no
10181
10192
          hardcode_shlibpath_var=no
10182
10193
          ;;
10183
10194
        *)
10184
10195
          hardcode_direct=yes
 
10196
          hardcode_direct_absolute=yes
10185
10197
          export_dynamic_flag_spec='${wl}-E'
10186
10198
 
10187
10199
          # hardcode_minus_L: Not really in the search PATH,
10194
10206
 
10195
10207
    irix5* | irix6* | nonstopux*)
10196
10208
      if test "$GCC" = yes; then
10197
 
        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'
 
10209
        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'
 
10210
        # Try to use the -exported_symbol ld option, if it does not
 
10211
        # work, assume that -exports_file does not work either and
 
10212
        # implicitly export all symbols.
 
10213
        save_LDFLAGS="$LDFLAGS"
 
10214
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10215
        cat >conftest.$ac_ext <<_ACEOF
 
10216
int foo(void) {}
 
10217
_ACEOF
 
10218
rm -f conftest.$ac_objext conftest$ac_exeext
 
10219
if { (ac_try="$ac_link"
 
10220
case "(($ac_try" in
 
10221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10222
  *) ac_try_echo=$ac_try;;
 
10223
esac
 
10224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10225
  (eval "$ac_link") 2>conftest.er1
 
10226
  ac_status=$?
 
10227
  grep -v '^ *+' conftest.er1 >conftest.err
 
10228
  rm -f conftest.er1
 
10229
  cat conftest.err >&5
 
10230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10231
  (exit $ac_status); } && {
 
10232
         test -z "$ac_c_werror_flag" ||
 
10233
         test ! -s conftest.err
 
10234
       } && test -s conftest$ac_exeext &&
 
10235
       $as_test_x conftest$ac_exeext; then
 
10236
  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'
 
10237
 
 
10238
else
 
10239
  echo "$as_me: failed program was:" >&5
 
10240
sed 's/^/| /' conftest.$ac_ext >&5
 
10241
 
 
10242
 
 
10243
fi
 
10244
 
 
10245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10246
      conftest$ac_exeext conftest.$ac_ext
 
10247
        LDFLAGS="$save_LDFLAGS"
10198
10248
      else
10199
 
        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'
10200
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10249
        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'
 
10250
        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'
10201
10251
      fi
 
10252
      archive_cmds_need_lc='no'
10202
10253
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10203
10254
      hardcode_libdir_separator=:
 
10255
      inherit_rpath=yes
10204
10256
      link_all_deplibs=yes
10205
10257
      ;;
10206
10258
 
10207
10259
    netbsd* | netbsdelf*-gnu)
10208
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10260
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209
10261
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10210
10262
      else
10211
10263
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10223
10275
      hardcode_shlibpath_var=no
10224
10276
      ;;
10225
10277
 
 
10278
    *nto* | *qnx*)
 
10279
      ;;
 
10280
 
10226
10281
    openbsd*)
10227
10282
      if test -f /usr/libexec/ld.so; then
10228
10283
        hardcode_direct=yes
10229
10284
        hardcode_shlibpath_var=no
10230
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10285
        hardcode_direct_absolute=yes
 
10286
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231
10287
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232
10288
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233
10289
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243
10299
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244
10300
             ;;
10245
10301
          esac
10246
 
        fi
 
10302
        fi
10247
10303
      else
10248
10304
        ld_shlibs=no
10249
10305
      fi
10253
10309
      hardcode_libdir_flag_spec='-L$libdir'
10254
10310
      hardcode_minus_L=yes
10255
10311
      allow_undefined_flag=unsupported
10256
 
      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'
10257
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10312
      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'
 
10313
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258
10314
      ;;
10259
10315
 
10260
10316
    osf3*)
10261
10317
      if test "$GCC" = yes; then
10262
10318
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263
 
        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'
 
10319
        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'
10264
10320
      else
10265
10321
        allow_undefined_flag=' -expect_unresolved \*'
10266
 
        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'
 
10322
        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'
10267
10323
      fi
 
10324
      archive_cmds_need_lc='no'
10268
10325
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269
10326
      hardcode_libdir_separator=:
10270
10327
      ;;
10272
10329
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10273
10330
      if test "$GCC" = yes; then
10274
10331
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275
 
        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'
 
10332
        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'
10276
10333
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277
10334
      else
10278
10335
        allow_undefined_flag=' -expect_unresolved \*'
10279
 
        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'
10280
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10281
 
        $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'
 
10336
        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'
 
10337
        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~
 
10338
        $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'
10282
10339
 
10283
10340
        # Both c and cxx compiler support -rpath directly
10284
10341
        hardcode_libdir_flag_spec='-rpath $libdir'
10285
10342
      fi
 
10343
      archive_cmds_need_lc='no'
10286
10344
      hardcode_libdir_separator=:
10287
10345
      ;;
10288
10346
 
10289
10347
    solaris*)
10290
 
      no_undefined_flag=' -z text'
 
10348
      no_undefined_flag=' -z defs'
10291
10349
      if test "$GCC" = yes; then
10292
10350
        wlarc='${wl}'
10293
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
10351
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10352
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10353
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10296
10354
      else
10297
 
        wlarc=''
10298
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10300
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10355
        case `$CC -V 2>&1` in
 
10356
        *"Compilers 5.0"*)
 
10357
          wlarc=''
 
10358
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10359
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10360
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10361
          ;;
 
10362
        *)
 
10363
          wlarc='${wl}'
 
10364
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10365
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10366
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10367
          ;;
 
10368
        esac
10301
10369
      fi
10302
10370
      hardcode_libdir_flag_spec='-R$libdir'
10303
10371
      hardcode_shlibpath_var=no
10307
10375
        # The compiler driver will combine and reorder linker options,
10308
10376
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10309
10377
        # but is careful enough not to reorder.
10310
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10378
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10311
10379
        if test "$GCC" = yes; then
10312
10380
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10313
10381
        else
10396
10464
      allow_undefined_flag='${wl}-z,nodefs'
10397
10465
      archive_cmds_need_lc=no
10398
10466
      hardcode_shlibpath_var=no
10399
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
10467
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10400
10468
      hardcode_libdir_separator=':'
10401
10469
      link_all_deplibs=yes
10402
10470
      export_dynamic_flag_spec='${wl}-Bexport'
10403
10471
      runpath_var='LD_RUN_PATH'
10404
10472
 
10405
10473
      if test "$GCC" = yes; then
10406
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10407
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10474
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10475
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10408
10476
      else
10409
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10410
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10477
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10478
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411
10479
      fi
10412
10480
      ;;
10413
10481
 
10421
10489
      ld_shlibs=no
10422
10490
      ;;
10423
10491
    esac
 
10492
 
 
10493
    if test x$host_vendor = xsni; then
 
10494
      case $host in
 
10495
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10496
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10497
        ;;
 
10498
      esac
 
10499
    fi
10424
10500
  fi
10425
10501
 
10426
10502
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10427
10503
echo "${ECHO_T}$ld_shlibs" >&6; }
10428
10504
test "$ld_shlibs" = no && can_build_shared=no
10429
10505
 
 
10506
with_gnu_ld=$with_gnu_ld
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
10430
10522
#
10431
10523
# Do we need to explicitly link libc?
10432
10524
#
10446
10538
      # to ld, don't add -lc before -lgcc.
10447
10539
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10448
10540
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10449
 
      $rm conftest*
 
10541
      $RM conftest*
10450
10542
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10451
10543
 
10452
10544
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467
10559
        libname=conftest
10468
10560
        lt_save_allow_undefined_flag=$allow_undefined_flag
10469
10561
        allow_undefined_flag=
10470
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10471
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10562
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10563
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10472
10564
  ac_status=$?
10473
10565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474
10566
  (exit $ac_status); }
10481
10573
      else
10482
10574
        cat conftest.err 1>&5
10483
10575
      fi
10484
 
      $rm conftest*
 
10576
      $RM conftest*
10485
10577
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10486
10578
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10487
10579
      ;;
10490
10582
  ;;
10491
10583
esac
10492
10584
 
10493
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10585
 
 
10586
 
 
10587
 
 
10588
 
 
10589
 
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
 
10596
 
 
10597
 
 
10598
 
 
10599
 
 
10600
 
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
 
 
10608
 
 
10609
 
 
10610
 
 
10611
 
 
10612
 
 
10613
 
 
10614
 
 
10615
 
 
10616
 
 
10617
 
 
10618
 
 
10619
 
 
10620
 
 
10621
 
 
10622
 
 
10623
 
 
10624
 
 
10625
 
 
10626
 
 
10627
 
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
 
 
10638
 
 
10639
 
 
10640
 
 
10641
 
 
10642
 
 
10643
 
 
10644
 
 
10645
 
 
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
 
 
10667
 
 
10668
 
 
10669
 
 
10670
 
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
 
 
10682
 
 
10683
 
 
10684
 
 
10685
 
 
10686
 
 
10687
 
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10494
10742
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10495
 
library_names_spec=
10496
 
libname_spec='lib$name'
10497
 
soname_spec=
10498
 
shrext_cmds=".so"
10499
 
postinstall_cmds=
10500
 
postuninstall_cmds=
10501
 
finish_cmds=
10502
 
finish_eval=
10503
 
shlibpath_var=
10504
 
shlibpath_overrides_runpath=unknown
10505
 
version_type=none
10506
 
dynamic_linker="$host_os ld.so"
10507
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508
10743
 
10509
10744
if test "$GCC" = yes; then
10510
10745
  case $host_os in
10512
10747
    *) lt_awk_arg="/^libraries:/" ;;
10513
10748
  esac
10514
10749
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10515
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
10750
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10516
10751
    # if the path contains ";" then we assume it to be the separator
10517
10752
    # otherwise default to the standard path separator (i.e. ":") - it is
10518
10753
    # assumed that no part of a normal pathname contains ";" but that should
10519
10754
    # okay in the real world where ";" in dirpaths is itself problematic.
10520
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10755
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10521
10756
  else
10522
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10757
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10523
10758
  fi
10524
10759
  # Ok, now we have the path, separated by spaces, we can step through it
10525
10760
  # and add multilib dir if necessary.
10533
10768
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10534
10769
    fi
10535
10770
  done
10536
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
10771
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10537
10772
BEGIN {RS=" "; FS="/|\n";} {
10538
10773
  lt_foo="";
10539
10774
  lt_count=0;
10553
10788
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10554
10789
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10555
10790
}'`
10556
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
10791
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10557
10792
else
10558
10793
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10559
10794
fi
 
10795
library_names_spec=
 
10796
libname_spec='lib$name'
 
10797
soname_spec=
 
10798
shrext_cmds=".so"
 
10799
postinstall_cmds=
 
10800
postuninstall_cmds=
 
10801
finish_cmds=
 
10802
finish_eval=
 
10803
shlibpath_var=
 
10804
shlibpath_overrides_runpath=unknown
 
10805
version_type=none
 
10806
dynamic_linker="$host_os ld.so"
 
10807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10560
10808
need_lib_prefix=unknown
10561
10809
hardcode_into_libs=no
10562
10810
 
10593
10841
      aix4 | aix4.[01] | aix4.[01].*)
10594
10842
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10595
10843
           echo ' yes '
10596
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10844
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10597
10845
        :
10598
10846
      else
10599
10847
        can_build_shared=no
10619
10867
  ;;
10620
10868
 
10621
10869
amigaos*)
10622
 
  library_names_spec='$libname.ixlibrary $libname.a'
10623
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10624
 
  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'
 
10870
  case $host_cpu in
 
10871
  powerpc)
 
10872
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10873
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10874
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10875
    ;;
 
10876
  m68k)
 
10877
    library_names_spec='$libname.ixlibrary $libname.a'
 
10878
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10879
    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'
 
10880
    ;;
 
10881
  esac
10625
10882
  ;;
10626
10883
 
10627
10884
beos*)
10655
10912
    library_names_spec='$libname.dll.a'
10656
10913
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10657
10914
    postinstall_cmds='base_file=`basename \${file}`~
10658
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10915
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10659
10916
      dldir=$destdir/`dirname \$dlpath`~
10660
10917
      test -d \$dldir || mkdir -p \$dldir~
10661
10918
      $install_prog $dir/$dlname \$dldir/$dlname~
10662
 
      chmod a+x \$dldir/$dlname'
 
10919
      chmod a+x \$dldir/$dlname~
 
10920
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10921
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10922
      fi'
10663
10923
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10664
10924
      dlpath=$dir/\$dldll~
10665
 
       $rm \$dlpath'
 
10925
       $RM \$dlpath'
10666
10926
    shlibpath_overrides_runpath=yes
10667
10927
 
10668
10928
    case $host_os in
10674
10934
    mingw*)
10675
10935
      # MinGW DLLs use traditional 'lib' prefix
10676
10936
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10677
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10678
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10937
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10938
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10679
10939
        # It is most probably a Windows format PATH printed by
10680
10940
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10681
10941
        # path with ; separators, and with drive letters. We can handle the
10682
10942
        # drive letters (cygwin fileutils understands them), so leave them,
10683
10943
        # especially as we might pass files found there to a mingw objdump,
10684
10944
        # which wouldn't understand a cygwinified path. Ahh.
10685
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10945
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10686
10946
      else
10687
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10947
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10688
10948
      fi
10689
10949
      ;;
10690
10950
    pw32*)
10708
10968
  version_type=darwin
10709
10969
  need_lib_prefix=no
10710
10970
  need_version=no
10711
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10971
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10712
10972
  soname_spec='${libname}${release}${major}$shared_ext'
10713
10973
  shlibpath_overrides_runpath=yes
10714
10974
  shlibpath_var=DYLD_LIBRARY_PATH
10807
11067
    fi
10808
11068
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809
11069
    ;;
10810
 
   hppa*64*)
10811
 
     shrext_cmds='.sl'
10812
 
     hardcode_into_libs=yes
10813
 
     dynamic_linker="$host_os dld.sl"
10814
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10815
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817
 
     soname_spec='${libname}${release}${shared_ext}$major'
10818
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10819
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820
 
     ;;
10821
 
   *)
 
11070
  hppa*64*)
 
11071
    shrext_cmds='.sl'
 
11072
    hardcode_into_libs=yes
 
11073
    dynamic_linker="$host_os dld.sl"
 
11074
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11075
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11076
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11077
    soname_spec='${libname}${release}${shared_ext}$major'
 
11078
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11079
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11080
    ;;
 
11081
  *)
10822
11082
    shrext_cmds='.sl'
10823
11083
    dynamic_linker="$host_os dld.sl"
10824
11084
    shlibpath_var=SHLIB_PATH
10895
11155
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10896
11156
  shlibpath_var=LD_LIBRARY_PATH
10897
11157
  shlibpath_overrides_runpath=no
 
11158
  # Some binutils ld are patched to set DT_RUNPATH
 
11159
  save_LDFLAGS=$LDFLAGS
 
11160
  save_libdir=$libdir
 
11161
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11162
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11163
  cat >conftest.$ac_ext <<_ACEOF
 
11164
/* confdefs.h.  */
 
11165
_ACEOF
 
11166
cat confdefs.h >>conftest.$ac_ext
 
11167
cat >>conftest.$ac_ext <<_ACEOF
 
11168
/* end confdefs.h.  */
 
11169
 
 
11170
int
 
11171
main ()
 
11172
{
 
11173
 
 
11174
  ;
 
11175
  return 0;
 
11176
}
 
11177
_ACEOF
 
11178
rm -f conftest.$ac_objext conftest$ac_exeext
 
11179
if { (ac_try="$ac_link"
 
11180
case "(($ac_try" in
 
11181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11182
  *) ac_try_echo=$ac_try;;
 
11183
esac
 
11184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11185
  (eval "$ac_link") 2>conftest.er1
 
11186
  ac_status=$?
 
11187
  grep -v '^ *+' conftest.er1 >conftest.err
 
11188
  rm -f conftest.er1
 
11189
  cat conftest.err >&5
 
11190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11191
  (exit $ac_status); } && {
 
11192
         test -z "$ac_c_werror_flag" ||
 
11193
         test ! -s conftest.err
 
11194
       } && test -s conftest$ac_exeext &&
 
11195
       $as_test_x conftest$ac_exeext; then
 
11196
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
11197
  shlibpath_overrides_runpath=yes
 
11198
fi
 
11199
 
 
11200
else
 
11201
  echo "$as_me: failed program was:" >&5
 
11202
sed 's/^/| /' conftest.$ac_ext >&5
 
11203
 
 
11204
 
 
11205
fi
 
11206
 
 
11207
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11208
      conftest$ac_exeext conftest.$ac_ext
 
11209
  LDFLAGS=$save_LDFLAGS
 
11210
  libdir=$save_libdir
 
11211
 
10898
11212
  # This implies no fast_install, which is unacceptable.
10899
11213
  # Some rework will be needed to allow for fast_install
10900
11214
  # before this can be enabled.
10902
11216
 
10903
11217
  # Append ld.so.conf contents to the search path
10904
11218
  if test -f /etc/ld.so.conf; then
10905
 
    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' ' '`
 
11219
    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' ' '`
10906
11220
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10907
11221
  fi
10908
11222
 
10931
11245
  version_type=sunos
10932
11246
  need_lib_prefix=no
10933
11247
  need_version=no
10934
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11248
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935
11249
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10936
11250
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10937
11251
    dynamic_linker='NetBSD (a.out) ld.so'
10952
11266
  shlibpath_overrides_runpath=yes
10953
11267
  ;;
10954
11268
 
10955
 
nto-qnx*)
10956
 
  version_type=linux
 
11269
*nto* | *qnx*)
 
11270
  version_type=qnx
10957
11271
  need_lib_prefix=no
10958
11272
  need_version=no
10959
11273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960
11274
  soname_spec='${libname}${release}${shared_ext}$major'
10961
11275
  shlibpath_var=LD_LIBRARY_PATH
10962
 
  shlibpath_overrides_runpath=yes
 
11276
  shlibpath_overrides_runpath=no
 
11277
  hardcode_into_libs=yes
 
11278
  dynamic_linker='ldqnx.so'
10963
11279
  ;;
10964
11280
 
10965
11281
openbsd*)
10968
11284
  need_lib_prefix=no
10969
11285
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10970
11286
  case $host_os in
10971
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10972
 
    *)                         need_version=no  ;;
 
11287
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11288
    *)                          need_version=no  ;;
10973
11289
  esac
10974
11290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975
11291
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10976
11292
  shlibpath_var=LD_LIBRARY_PATH
10977
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11293
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10978
11294
    case $host_os in
10979
11295
      openbsd2.[89] | openbsd2.[89].*)
10980
11296
        shlibpath_overrides_runpath=no
11046
11362
    sni)
11047
11363
      shlibpath_overrides_runpath=no
11048
11364
      need_lib_prefix=no
11049
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
11050
11365
      runpath_var=LD_RUN_PATH
11051
11366
      ;;
11052
11367
    siemens)
11077
11392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11078
11393
  soname_spec='${libname}${release}${shared_ext}$major'
11079
11394
  shlibpath_var=LD_LIBRARY_PATH
 
11395
  shlibpath_overrides_runpath=yes
11080
11396
  hardcode_into_libs=yes
11081
11397
  if test "$with_gnu_ld" = yes; then
11082
11398
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11083
 
    shlibpath_overrides_runpath=no
11084
11399
  else
11085
11400
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11086
 
    shlibpath_overrides_runpath=yes
11087
11401
    case $host_os in
11088
11402
      sco3.2v5*)
11089
11403
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11093
11407
  sys_lib_dlsearch_path_spec='/usr/lib'
11094
11408
  ;;
11095
11409
 
 
11410
tpf*)
 
11411
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11412
  version_type=linux
 
11413
  need_lib_prefix=no
 
11414
  need_version=no
 
11415
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11416
  shlibpath_var=LD_LIBRARY_PATH
 
11417
  shlibpath_overrides_runpath=no
 
11418
  hardcode_into_libs=yes
 
11419
  ;;
 
11420
 
11096
11421
uts4*)
11097
11422
  version_type=linux
11098
11423
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108
11433
echo "${ECHO_T}$dynamic_linker" >&6; }
11109
11434
test "$dynamic_linker" = no && can_build_shared=no
11110
11435
 
11111
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11112
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11113
 
else
11114
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11115
 
fi
11116
 
 
11117
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11118
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11120
 
else
11121
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11122
 
fi
11123
 
 
11124
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11125
 
 
11126
11436
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11127
11437
if test "$GCC" = yes; then
11128
11438
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11129
11439
fi
11130
11440
 
11131
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11441
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11442
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11443
fi
 
11444
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11445
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11446
fi
 
11447
 
 
11448
 
 
11449
 
 
11450
 
 
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
 
 
11456
 
 
11457
 
 
11458
 
 
11459
 
 
11460
 
 
11461
 
 
11462
 
 
11463
 
 
11464
 
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
 
 
11476
 
 
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
 
11486
 
 
11487
 
 
11488
 
 
11489
 
 
11490
 
 
11491
 
 
11492
 
 
11493
 
 
11494
 
 
11495
 
 
11496
 
 
11497
 
 
11498
 
 
11499
 
 
11500
 
 
11501
 
 
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
 
 
11511
 
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
 
 
11517
 
 
11518
 
 
11519
 
 
11520
 
 
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
 
 
11532
 
 
11533
 
 
11534
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11132
11535
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11133
11536
hardcode_action=
11134
 
if test -n "$hardcode_libdir_flag_spec" || \
11135
 
   test -n "$runpath_var" || \
 
11537
if test -n "$hardcode_libdir_flag_spec" ||
 
11538
   test -n "$runpath_var" ||
11136
11539
   test "X$hardcode_automatic" = "Xyes" ; then
11137
11540
 
11138
 
  # We can hardcode non-existant directories.
 
11541
  # We can hardcode non-existent directories.
11139
11542
  if test "$hardcode_direct" != no &&
11140
11543
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11141
11544
     # have to relink, otherwise we might link with an installed library
11142
11545
     # when we should be linking with a yet-to-be-installed one
11143
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11546
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11144
11547
     test "$hardcode_minus_L" != no; then
11145
11548
    # Linking always hardcodes the temporary library directory.
11146
11549
    hardcode_action=relink
11156
11559
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11157
11560
echo "${ECHO_T}$hardcode_action" >&6; }
11158
11561
 
11159
 
if test "$hardcode_action" = relink; then
 
11562
if test "$hardcode_action" = relink ||
 
11563
   test "$inherit_rpath" = yes; then
11160
11564
  # Fast installation is not supported
11161
11565
  enable_fast_install=no
11162
11566
elif test "$shlibpath_overrides_runpath" = yes ||
11165
11569
  enable_fast_install=needless
11166
11570
fi
11167
11571
 
11168
 
striplib=
11169
 
old_striplib=
11170
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11171
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11172
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11173
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11174
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11175
 
  { echo "$as_me:$LINENO: result: yes" >&5
11176
 
echo "${ECHO_T}yes" >&6; }
11177
 
else
11178
 
# FIXME - insert some real tests, host_os isn't really good enough
11179
 
  case $host_os in
11180
 
   darwin*)
11181
 
       if test -n "$STRIP" ; then
11182
 
         striplib="$STRIP -x"
11183
 
         old_striplib="$STRIP -S"
11184
 
         { echo "$as_me:$LINENO: result: yes" >&5
11185
 
echo "${ECHO_T}yes" >&6; }
11186
 
       else
11187
 
  { echo "$as_me:$LINENO: result: no" >&5
11188
 
echo "${ECHO_T}no" >&6; }
11189
 
fi
11190
 
       ;;
11191
 
   *)
11192
 
  { echo "$as_me:$LINENO: result: no" >&5
11193
 
echo "${ECHO_T}no" >&6; }
11194
 
    ;;
11195
 
  esac
11196
 
fi
11197
 
 
11198
 
if test "x$enable_dlopen" != xyes; then
 
11572
 
 
11573
 
 
11574
 
 
11575
 
 
11576
 
 
11577
  if test "x$enable_dlopen" != xyes; then
11199
11578
  enable_dlopen=unknown
11200
11579
  enable_dlopen_self=unknown
11201
11580
  enable_dlopen_self_static=unknown
11213
11592
  mingw* | pw32*)
11214
11593
    lt_cv_dlopen="LoadLibrary"
11215
11594
    lt_cv_dlopen_libs=
11216
 
   ;;
 
11595
    ;;
11217
11596
 
11218
11597
  cygwin*)
11219
11598
    lt_cv_dlopen="dlopen"
11220
11599
    lt_cv_dlopen_libs=
11221
 
   ;;
 
11600
    ;;
11222
11601
 
11223
11602
  darwin*)
11224
11603
  # if libdl is installed we need to link against it
11293
11672
 
11294
11673
fi
11295
11674
 
11296
 
   ;;
 
11675
    ;;
11297
11676
 
11298
11677
  *)
11299
11678
    { echo "$as_me:$LINENO: checking for shl_load" >&5
11766
12145
else
11767
12146
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11768
12147
  lt_status=$lt_dlunknown
11769
 
  cat > conftest.$ac_ext <<EOF
11770
 
#line 11770 "configure"
 
12148
  cat > conftest.$ac_ext <<_LT_EOF
 
12149
#line 12149 "configure"
11771
12150
#include "confdefs.h"
11772
12151
 
11773
12152
#if HAVE_DLFCN_H
11829
12208
 
11830
12209
    exit (status);
11831
12210
}
11832
 
EOF
 
12211
_LT_EOF
11833
12212
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834
12213
  (eval $ac_link) 2>&5
11835
12214
  ac_status=$?
11866
12245
else
11867
12246
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868
12247
  lt_status=$lt_dlunknown
11869
 
  cat > conftest.$ac_ext <<EOF
11870
 
#line 11870 "configure"
 
12248
  cat > conftest.$ac_ext <<_LT_EOF
 
12249
#line 12249 "configure"
11871
12250
#include "confdefs.h"
11872
12251
 
11873
12252
#if HAVE_DLFCN_H
11929
12308
 
11930
12309
    exit (status);
11931
12310
}
11932
 
EOF
 
12311
_LT_EOF
11933
12312
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934
12313
  (eval $ac_link) 2>&5
11935
12314
  ac_status=$?
11973
12352
fi
11974
12353
 
11975
12354
 
11976
 
# Report which library types will actually be built
11977
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11978
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11979
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11980
 
echo "${ECHO_T}$can_build_shared" >&6; }
11981
 
 
11982
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11983
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11984
 
test "$can_build_shared" = "no" && enable_shared=no
11985
 
 
11986
 
# On AIX, shared libraries and static libraries use the same namespace, and
11987
 
# are all built from PIC.
11988
 
case $host_os in
11989
 
aix3*)
11990
 
  test "$enable_shared" = yes && enable_static=no
11991
 
  if test -n "$RANLIB"; then
11992
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993
 
    postinstall_cmds='$RANLIB $lib'
11994
 
  fi
11995
 
  ;;
11996
 
 
11997
 
aix[4-9]*)
11998
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999
 
    test "$enable_shared" = yes && enable_static=no
12000
 
  fi
12001
 
    ;;
12002
 
esac
12003
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12004
 
echo "${ECHO_T}$enable_shared" >&6; }
12005
 
 
12006
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12007
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12008
 
# Make sure either enable_shared or enable_static is yes.
12009
 
test "$enable_shared" = yes || enable_static=yes
12010
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12011
 
echo "${ECHO_T}$enable_static" >&6; }
12012
 
 
12013
 
# The else clause should only fire when bootstrapping the
12014
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
12015
 
# with your package, and you will get complaints that there are
12016
 
# no rules to generate ltmain.sh.
12017
 
if test -f "$ltmain"; then
12018
 
  # See if we are running on zsh, and set the options which allow our commands through
12019
 
  # without removal of \ escapes.
12020
 
  if test -n "${ZSH_VERSION+set}" ; then
12021
 
    setopt NO_GLOB_SUBST
12022
 
  fi
12023
 
  # Now quote all the things that may contain metacharacters while being
12024
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12025
 
  # variables and quote the copies for generation of the libtool script.
12026
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12027
 
    SED SHELL STRIP \
12028
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12029
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12030
 
    deplibs_check_method reload_flag reload_cmds need_locks \
12031
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12032
 
    lt_cv_sys_global_symbol_to_c_name_address \
12033
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12034
 
    old_postinstall_cmds old_postuninstall_cmds \
12035
 
    compiler \
12036
 
    CC \
12037
 
    LD \
12038
 
    lt_prog_compiler_wl \
12039
 
    lt_prog_compiler_pic \
12040
 
    lt_prog_compiler_static \
12041
 
    lt_prog_compiler_no_builtin_flag \
12042
 
    export_dynamic_flag_spec \
12043
 
    thread_safe_flag_spec \
12044
 
    whole_archive_flag_spec \
12045
 
    enable_shared_with_static_runtimes \
12046
 
    old_archive_cmds \
12047
 
    old_archive_from_new_cmds \
12048
 
    predep_objects \
12049
 
    postdep_objects \
12050
 
    predeps \
12051
 
    postdeps \
12052
 
    compiler_lib_search_path \
12053
 
    compiler_lib_search_dirs \
12054
 
    archive_cmds \
12055
 
    archive_expsym_cmds \
12056
 
    postinstall_cmds \
12057
 
    postuninstall_cmds \
12058
 
    old_archive_from_expsyms_cmds \
12059
 
    allow_undefined_flag \
12060
 
    no_undefined_flag \
12061
 
    export_symbols_cmds \
12062
 
    hardcode_libdir_flag_spec \
12063
 
    hardcode_libdir_flag_spec_ld \
12064
 
    hardcode_libdir_separator \
12065
 
    hardcode_automatic \
12066
 
    module_cmds \
12067
 
    module_expsym_cmds \
12068
 
    lt_cv_prog_compiler_c_o \
12069
 
    fix_srcfile_path \
12070
 
    exclude_expsyms \
12071
 
    include_expsyms; do
12072
 
 
12073
 
    case $var in
12074
 
    old_archive_cmds | \
12075
 
    old_archive_from_new_cmds | \
12076
 
    archive_cmds | \
12077
 
    archive_expsym_cmds | \
12078
 
    module_cmds | \
12079
 
    module_expsym_cmds | \
12080
 
    old_archive_from_expsyms_cmds | \
12081
 
    export_symbols_cmds | \
12082
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12083
 
    postinstall_cmds | postuninstall_cmds | \
12084
 
    old_postinstall_cmds | old_postuninstall_cmds | \
12085
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12086
 
      # Double-quote double-evaled strings.
12087
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12088
 
      ;;
12089
 
    *)
12090
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12091
 
      ;;
12092
 
    esac
12093
 
  done
12094
 
 
12095
 
  case $lt_echo in
12096
 
  *'\$0 --fallback-echo"')
12097
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12098
 
    ;;
12099
 
  esac
12100
 
 
12101
 
cfgfile="${ofile}T"
12102
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12103
 
  $rm -f "$cfgfile"
12104
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
12105
 
echo "$as_me: creating $ofile" >&6;}
12106
 
 
12107
 
  cat <<__EOF__ >> "$cfgfile"
12108
 
#! $SHELL
12109
 
 
12110
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12111
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12112
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12113
 
#
12114
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12115
 
# Free Software Foundation, Inc.
12116
 
#
12117
 
# This file is part of GNU Libtool:
12118
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12119
 
#
12120
 
# This program is free software; you can redistribute it and/or modify
12121
 
# it under the terms of the GNU General Public License as published by
12122
 
# the Free Software Foundation; either version 2 of the License, or
12123
 
# (at your option) any later version.
12124
 
#
12125
 
# This program is distributed in the hope that it will be useful, but
12126
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
12127
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12128
 
# General Public License for more details.
12129
 
#
12130
 
# You should have received a copy of the GNU General Public License
12131
 
# along with this program; if not, write to the Free Software
12132
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12133
 
#
12134
 
# As a special exception to the GNU General Public License, if you
12135
 
# distribute this file as part of a program that contains a
12136
 
# configuration script generated by Autoconf, you may include it under
12137
 
# the same distribution terms that you use for the rest of that program.
12138
 
 
12139
 
# A sed program that does not truncate output.
12140
 
SED=$lt_SED
12141
 
 
12142
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12143
 
Xsed="$SED -e 1s/^X//"
12144
 
 
12145
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
12146
 
# if CDPATH is set.
12147
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12148
 
 
12149
 
# The names of the tagged configurations supported by this script.
12150
 
available_tags=
12151
 
 
12152
 
# ### BEGIN LIBTOOL CONFIG
12153
 
 
12154
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12155
 
 
12156
 
# Shell to use when invoking shell scripts.
12157
 
SHELL=$lt_SHELL
12158
 
 
12159
 
# Whether or not to build shared libraries.
12160
 
build_libtool_libs=$enable_shared
12161
 
 
12162
 
# Whether or not to build static libraries.
12163
 
build_old_libs=$enable_static
12164
 
 
12165
 
# Whether or not to add -lc for building shared libraries.
12166
 
build_libtool_need_lc=$archive_cmds_need_lc
12167
 
 
12168
 
# Whether or not to disallow shared libs when runtime libs are static
12169
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12170
 
 
12171
 
# Whether or not to optimize for fast installation.
12172
 
fast_install=$enable_fast_install
12173
 
 
12174
 
# The host system.
12175
 
host_alias=$host_alias
12176
 
host=$host
12177
 
host_os=$host_os
12178
 
 
12179
 
# The build system.
12180
 
build_alias=$build_alias
12181
 
build=$build
12182
 
build_os=$build_os
12183
 
 
12184
 
# An echo program that does not interpret backslashes.
12185
 
echo=$lt_echo
12186
 
 
12187
 
# The archiver.
12188
 
AR=$lt_AR
12189
 
AR_FLAGS=$lt_AR_FLAGS
12190
 
 
12191
 
# A C compiler.
12192
 
LTCC=$lt_LTCC
12193
 
 
12194
 
# LTCC compiler flags.
12195
 
LTCFLAGS=$lt_LTCFLAGS
12196
 
 
12197
 
# A language-specific compiler.
12198
 
CC=$lt_compiler
12199
 
 
12200
 
# Is the compiler the GNU C compiler?
12201
 
with_gcc=$GCC
12202
 
 
12203
 
# An ERE matcher.
12204
 
EGREP=$lt_EGREP
12205
 
 
12206
 
# The linker used to build libraries.
12207
 
LD=$lt_LD
12208
 
 
12209
 
# Whether we need hard or soft links.
12210
 
LN_S=$lt_LN_S
12211
 
 
12212
 
# A BSD-compatible nm program.
12213
 
NM=$lt_NM
12214
 
 
12215
 
# A symbol stripping program
12216
 
STRIP=$lt_STRIP
12217
 
 
12218
 
# Used to examine libraries when file_magic_cmd begins "file"
12219
 
MAGIC_CMD=$MAGIC_CMD
12220
 
 
12221
 
# Used on cygwin: DLL creation program.
12222
 
DLLTOOL="$DLLTOOL"
12223
 
 
12224
 
# Used on cygwin: object dumper.
12225
 
OBJDUMP="$OBJDUMP"
12226
 
 
12227
 
# Used on cygwin: assembler.
12228
 
AS="$AS"
12229
 
 
12230
 
# The name of the directory that contains temporary libtool files.
12231
 
objdir=$objdir
12232
 
 
12233
 
# How to create reloadable object files.
12234
 
reload_flag=$lt_reload_flag
12235
 
reload_cmds=$lt_reload_cmds
12236
 
 
12237
 
# How to pass a linker flag through the compiler.
12238
 
wl=$lt_lt_prog_compiler_wl
12239
 
 
12240
 
# Object file suffix (normally "o").
12241
 
objext="$ac_objext"
12242
 
 
12243
 
# Old archive suffix (normally "a").
12244
 
libext="$libext"
12245
 
 
12246
 
# Shared library suffix (normally ".so").
12247
 
shrext_cmds='$shrext_cmds'
12248
 
 
12249
 
# Executable file suffix (normally "").
12250
 
exeext="$exeext"
12251
 
 
12252
 
# Additional compiler flags for building library objects.
12253
 
pic_flag=$lt_lt_prog_compiler_pic
12254
 
pic_mode=$pic_mode
12255
 
 
12256
 
# What is the maximum length of a command?
12257
 
max_cmd_len=$lt_cv_sys_max_cmd_len
12258
 
 
12259
 
# Does compiler simultaneously support -c and -o options?
12260
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12261
 
 
12262
 
# Must we lock files when doing compilation?
12263
 
need_locks=$lt_need_locks
12264
 
 
12265
 
# Do we need the lib prefix for modules?
12266
 
need_lib_prefix=$need_lib_prefix
12267
 
 
12268
 
# Do we need a version for libraries?
12269
 
need_version=$need_version
12270
 
 
12271
 
# Whether dlopen is supported.
12272
 
dlopen_support=$enable_dlopen
12273
 
 
12274
 
# Whether dlopen of programs is supported.
12275
 
dlopen_self=$enable_dlopen_self
12276
 
 
12277
 
# Whether dlopen of statically linked programs is supported.
12278
 
dlopen_self_static=$enable_dlopen_self_static
12279
 
 
12280
 
# Compiler flag to prevent dynamic linking.
12281
 
link_static_flag=$lt_lt_prog_compiler_static
12282
 
 
12283
 
# Compiler flag to turn off builtin functions.
12284
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12285
 
 
12286
 
# Compiler flag to allow reflexive dlopens.
12287
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12288
 
 
12289
 
# Compiler flag to generate shared objects directly from archives.
12290
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12291
 
 
12292
 
# Compiler flag to generate thread-safe objects.
12293
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12294
 
 
12295
 
# Library versioning type.
12296
 
version_type=$version_type
12297
 
 
12298
 
# Format of library name prefix.
12299
 
libname_spec=$lt_libname_spec
12300
 
 
12301
 
# List of archive names.  First name is the real one, the rest are links.
12302
 
# The last name is the one that the linker finds with -lNAME.
12303
 
library_names_spec=$lt_library_names_spec
12304
 
 
12305
 
# The coded name of the library, if different from the real name.
12306
 
soname_spec=$lt_soname_spec
12307
 
 
12308
 
# Commands used to build and install an old-style archive.
12309
 
RANLIB=$lt_RANLIB
12310
 
old_archive_cmds=$lt_old_archive_cmds
12311
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12312
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12313
 
 
12314
 
# Create an old-style archive from a shared archive.
12315
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12316
 
 
12317
 
# Create a temporary old-style archive to link instead of a shared archive.
12318
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12319
 
 
12320
 
# Commands used to build and install a shared archive.
12321
 
archive_cmds=$lt_archive_cmds
12322
 
archive_expsym_cmds=$lt_archive_expsym_cmds
12323
 
postinstall_cmds=$lt_postinstall_cmds
12324
 
postuninstall_cmds=$lt_postuninstall_cmds
12325
 
 
12326
 
# Commands used to build a loadable module (assumed same as above if empty)
12327
 
module_cmds=$lt_module_cmds
12328
 
module_expsym_cmds=$lt_module_expsym_cmds
12329
 
 
12330
 
# Commands to strip libraries.
12331
 
old_striplib=$lt_old_striplib
12332
 
striplib=$lt_striplib
12333
 
 
12334
 
# Dependencies to place before the objects being linked to create a
12335
 
# shared library.
12336
 
predep_objects=$lt_predep_objects
12337
 
 
12338
 
# Dependencies to place after the objects being linked to create a
12339
 
# shared library.
12340
 
postdep_objects=$lt_postdep_objects
12341
 
 
12342
 
# Dependencies to place before the objects being linked to create a
12343
 
# shared library.
12344
 
predeps=$lt_predeps
12345
 
 
12346
 
# Dependencies to place after the objects being linked to create a
12347
 
# shared library.
12348
 
postdeps=$lt_postdeps
12349
 
 
12350
 
# The directories searched by this compiler when creating a shared
12351
 
# library
12352
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12353
 
 
12354
 
# The library search path used internally by the compiler when linking
12355
 
# a shared library.
12356
 
compiler_lib_search_path=$lt_compiler_lib_search_path
12357
 
 
12358
 
# Method to check whether dependent libraries are shared objects.
12359
 
deplibs_check_method=$lt_deplibs_check_method
12360
 
 
12361
 
# Command to use when deplibs_check_method == file_magic.
12362
 
file_magic_cmd=$lt_file_magic_cmd
12363
 
 
12364
 
# Flag that allows shared libraries with undefined symbols to be built.
12365
 
allow_undefined_flag=$lt_allow_undefined_flag
12366
 
 
12367
 
# Flag that forces no undefined symbols.
12368
 
no_undefined_flag=$lt_no_undefined_flag
12369
 
 
12370
 
# Commands used to finish a libtool library installation in a directory.
12371
 
finish_cmds=$lt_finish_cmds
12372
 
 
12373
 
# Same as above, but a single script fragment to be evaled but not shown.
12374
 
finish_eval=$lt_finish_eval
12375
 
 
12376
 
# Take the output of nm and produce a listing of raw symbols and C names.
12377
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12378
 
 
12379
 
# Transform the output of nm in a proper C declaration
12380
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12381
 
 
12382
 
# Transform the output of nm in a C name address pair
12383
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12384
 
 
12385
 
# This is the shared library runtime path variable.
12386
 
runpath_var=$runpath_var
12387
 
 
12388
 
# This is the shared library path variable.
12389
 
shlibpath_var=$shlibpath_var
12390
 
 
12391
 
# Is shlibpath searched before the hard-coded library search path?
12392
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12393
 
 
12394
 
# How to hardcode a shared library path into an executable.
12395
 
hardcode_action=$hardcode_action
12396
 
 
12397
 
# Whether we should hardcode library paths into libraries.
12398
 
hardcode_into_libs=$hardcode_into_libs
12399
 
 
12400
 
# Flag to hardcode \$libdir into a binary during linking.
12401
 
# This must work even if \$libdir does not exist.
12402
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12403
 
 
12404
 
# If ld is used when linking, flag to hardcode \$libdir into
12405
 
# a binary during linking. This must work even if \$libdir does
12406
 
# not exist.
12407
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12408
 
 
12409
 
# Whether we need a single -rpath flag with a separated argument.
12410
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12411
 
 
12412
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12413
 
# resulting binary.
12414
 
hardcode_direct=$hardcode_direct
12415
 
 
12416
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12417
 
# resulting binary.
12418
 
hardcode_minus_L=$hardcode_minus_L
12419
 
 
12420
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12421
 
# the resulting binary.
12422
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
12423
 
 
12424
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12425
 
# and all subsequent libraries and executables linked against it.
12426
 
hardcode_automatic=$hardcode_automatic
12427
 
 
12428
 
# Variables whose values should be saved in libtool wrapper scripts and
12429
 
# restored at relink time.
12430
 
variables_saved_for_relink="$variables_saved_for_relink"
12431
 
 
12432
 
# Whether libtool must link a program against all its dependency libraries.
12433
 
link_all_deplibs=$link_all_deplibs
12434
 
 
12435
 
# Compile-time system search path for libraries
12436
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12437
 
 
12438
 
# Run-time system search path for libraries
12439
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12440
 
 
12441
 
# Fix the shell variable \$srcfile for the compiler.
12442
 
fix_srcfile_path=$lt_fix_srcfile_path
12443
 
 
12444
 
# Set to yes if exported symbols are required.
12445
 
always_export_symbols=$always_export_symbols
12446
 
 
12447
 
# The commands to list exported symbols.
12448
 
export_symbols_cmds=$lt_export_symbols_cmds
12449
 
 
12450
 
# The commands to extract the exported symbol list from a shared archive.
12451
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12452
 
 
12453
 
# Symbols that should not be listed in the preloaded symbols.
12454
 
exclude_expsyms=$lt_exclude_expsyms
12455
 
 
12456
 
# Symbols that must always be exported.
12457
 
include_expsyms=$lt_include_expsyms
12458
 
 
12459
 
# ### END LIBTOOL CONFIG
12460
 
 
12461
 
__EOF__
12462
 
 
12463
 
 
12464
 
  case $host_os in
12465
 
  aix3*)
12466
 
    cat <<\EOF >> "$cfgfile"
12467
 
 
12468
 
# AIX sometimes has problems with the GCC collect2 program.  For some
12469
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
12470
 
# vanish in a puff of smoke.
12471
 
if test "X${COLLECT_NAMES+set}" != Xset; then
12472
 
  COLLECT_NAMES=
12473
 
  export COLLECT_NAMES
12474
 
fi
12475
 
EOF
12476
 
    ;;
12477
 
  esac
12478
 
 
12479
 
  # We use sed instead of cat because bash on DJGPP gets confused if
12480
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12481
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
12482
 
  # is reportedly fixed, but why not run on old versions too?
12483
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12484
 
 
12485
 
  mv -f "$cfgfile" "$ofile" || \
12486
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12487
 
  chmod +x "$ofile"
12488
 
 
12489
 
else
12490
 
  # If there is no Makefile yet, we rely on a make rule to execute
12491
 
  # `config.status --recheck' to rerun these tests and create the
12492
 
  # libtool script then.
12493
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12494
 
  if test -f "$ltmain_in"; then
12495
 
    test -f Makefile && make "$ltmain"
12496
 
  fi
12497
 
fi
12498
 
 
12499
 
 
12500
 
ac_ext=c
12501
 
ac_cpp='$CPP $CPPFLAGS'
12502
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
 
 
12506
 
CC="$lt_save_CC"
12507
 
 
12508
 
 
12509
 
# Check whether --with-tags was given.
12510
 
if test "${with_tags+set}" = set; then
12511
 
  withval=$with_tags; tagnames="$withval"
12512
 
fi
12513
 
 
12514
 
 
12515
 
if test -f "$ltmain" && test -n "$tagnames"; then
12516
 
  if test ! -f "${ofile}"; then
12517
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12518
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12519
 
  fi
12520
 
 
12521
 
  if test -z "$LTCC"; then
12522
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12523
 
    if test -z "$LTCC"; then
12524
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12525
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12526
 
    else
12527
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12528
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12529
 
    fi
12530
 
  fi
12531
 
  if test -z "$LTCFLAGS"; then
12532
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12533
 
  fi
12534
 
 
12535
 
  # Extract list of available tagged configurations in $ofile.
12536
 
  # Note that this assumes the entire list is on one line.
12537
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12538
 
 
12539
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12540
 
  for tagname in $tagnames; do
12541
 
    IFS="$lt_save_ifs"
12542
 
    # Check whether tagname contains only valid characters
12543
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12544
 
    "") ;;
12545
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12546
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12547
 
   { (exit 1); exit 1; }; }
12548
 
        ;;
12549
 
    esac
12550
 
 
12551
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12552
 
    then
12553
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12554
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12555
 
   { (exit 1); exit 1; }; }
12556
 
    fi
12557
 
 
12558
 
    # Update the list of available tags.
12559
 
    if test -n "$tagname"; then
12560
 
      echo appending configuration tag \"$tagname\" to $ofile
12561
 
 
12562
 
      case $tagname in
12563
 
      CXX)
12564
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12565
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12566
 
            (test "X$CXX" != "Xg++"))) ; then
12567
 
          ac_ext=cpp
12568
 
ac_cpp='$CXXCPP $CPPFLAGS'
12569
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12572
 
 
12573
 
 
12574
 
 
12575
 
 
12576
 
archive_cmds_need_lc_CXX=no
12577
 
allow_undefined_flag_CXX=
12578
 
always_export_symbols_CXX=no
12579
 
archive_expsym_cmds_CXX=
12580
 
export_dynamic_flag_spec_CXX=
12581
 
hardcode_direct_CXX=no
12582
 
hardcode_libdir_flag_spec_CXX=
12583
 
hardcode_libdir_flag_spec_ld_CXX=
12584
 
hardcode_libdir_separator_CXX=
12585
 
hardcode_minus_L_CXX=no
12586
 
hardcode_shlibpath_var_CXX=unsupported
12587
 
hardcode_automatic_CXX=no
12588
 
module_cmds_CXX=
12589
 
module_expsym_cmds_CXX=
12590
 
link_all_deplibs_CXX=unknown
12591
 
old_archive_cmds_CXX=$old_archive_cmds
12592
 
no_undefined_flag_CXX=
12593
 
whole_archive_flag_spec_CXX=
12594
 
enable_shared_with_static_runtimes_CXX=no
12595
 
 
12596
 
# Dependencies to place before and after the object being linked:
12597
 
predep_objects_CXX=
12598
 
postdep_objects_CXX=
12599
 
predeps_CXX=
12600
 
postdeps_CXX=
12601
 
compiler_lib_search_path_CXX=
12602
 
compiler_lib_search_dirs_CXX=
12603
 
 
12604
 
# Source file extension for C++ test sources.
12605
 
ac_ext=cpp
12606
 
 
12607
 
# Object file extension for compiled C++ test sources.
12608
 
objext=o
12609
 
objext_CXX=$objext
12610
 
 
12611
 
# Code to be used in simple compile tests
12612
 
lt_simple_compile_test_code="int some_variable = 0;"
12613
 
 
12614
 
# Code to be used in simple link tests
12615
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12616
 
 
12617
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12618
 
 
12619
 
# If no C compiler was specified, use CC.
12620
 
LTCC=${LTCC-"$CC"}
12621
 
 
12622
 
# If no C compiler flags were specified, use CFLAGS.
12623
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12624
 
 
12625
 
# Allow CC to be a program name with arguments.
12626
 
compiler=$CC
12627
 
 
12628
 
 
12629
 
# save warnings/boilerplate of simple test code
12630
 
ac_outfile=conftest.$ac_objext
12631
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12632
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12633
 
_lt_compiler_boilerplate=`cat conftest.err`
12634
 
$rm conftest*
12635
 
 
12636
 
ac_outfile=conftest.$ac_objext
12637
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12638
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12639
 
_lt_linker_boilerplate=`cat conftest.err`
12640
 
$rm -r conftest*
12641
 
 
12642
 
 
12643
 
# Allow CC to be a program name with arguments.
12644
 
lt_save_CC=$CC
12645
 
lt_save_LD=$LD
12646
 
lt_save_GCC=$GCC
12647
 
GCC=$GXX
12648
 
lt_save_with_gnu_ld=$with_gnu_ld
12649
 
lt_save_path_LD=$lt_cv_path_LD
12650
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12651
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12652
 
else
12653
 
  $as_unset lt_cv_prog_gnu_ld
12654
 
fi
12655
 
if test -n "${lt_cv_path_LDCXX+set}"; then
12656
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
12657
 
else
12658
 
  $as_unset lt_cv_path_LD
12659
 
fi
12660
 
test -z "${LDCXX+set}" || LD=$LDCXX
12661
 
CC=${CXX-"c++"}
12662
 
compiler=$CC
12663
 
compiler_CXX=$CC
12664
 
for cc_temp in $compiler""; do
12665
 
  case $cc_temp in
12666
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12667
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12668
 
    \-*) ;;
12669
 
    *) break;;
12670
 
  esac
12671
 
done
12672
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12673
 
 
12674
 
 
12675
 
# We don't want -fno-exception wen compiling C++ code, so set the
12676
 
# no_builtin_flag separately
12677
 
if test "$GXX" = yes; then
12678
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12679
 
else
12680
 
  lt_prog_compiler_no_builtin_flag_CXX=
12681
 
fi
12682
 
 
12683
 
if test "$GXX" = yes; then
12684
 
  # Set up default GNU C++ configuration
12685
 
 
12686
 
 
12687
 
# Check whether --with-gnu-ld was given.
12688
 
if test "${with_gnu_ld+set}" = set; then
12689
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12690
 
else
12691
 
  with_gnu_ld=no
12692
 
fi
12693
 
 
12694
 
ac_prog=ld
12695
 
if test "$GCC" = yes; then
12696
 
  # Check if gcc -print-prog-name=ld gives a path.
12697
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12698
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12699
 
  case $host in
12700
 
  *-*-mingw*)
12701
 
    # gcc leaves a trailing carriage return which upsets mingw
12702
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12703
 
  *)
12704
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12705
 
  esac
12706
 
  case $ac_prog in
12707
 
    # Accept absolute paths.
12708
 
    [\\/]* | ?:[\\/]*)
12709
 
      re_direlt='/[^/][^/]*/\.\./'
12710
 
      # Canonicalize the pathname of ld
12711
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12712
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12713
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12714
 
      done
12715
 
      test -z "$LD" && LD="$ac_prog"
12716
 
      ;;
12717
 
  "")
12718
 
    # If it fails, then pretend we aren't using GCC.
12719
 
    ac_prog=ld
12720
 
    ;;
12721
 
  *)
12722
 
    # If it is relative, then search for the first ld in PATH.
12723
 
    with_gnu_ld=unknown
12724
 
    ;;
12725
 
  esac
12726
 
elif test "$with_gnu_ld" = yes; then
12727
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12728
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12729
 
else
12730
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12731
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12732
 
fi
12733
 
if test "${lt_cv_path_LD+set}" = set; then
12734
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12735
 
else
12736
 
  if test -z "$LD"; then
12737
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12738
 
  for ac_dir in $PATH; do
12739
 
    IFS="$lt_save_ifs"
12740
 
    test -z "$ac_dir" && ac_dir=.
12741
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12742
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
12743
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
12744
 
      # but apparently some variants of GNU ld only accept -v.
12745
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
12746
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12747
 
      *GNU* | *'with BFD'*)
12748
 
        test "$with_gnu_ld" != no && break
12749
 
        ;;
12750
 
      *)
12751
 
        test "$with_gnu_ld" != yes && break
12752
 
        ;;
12753
 
      esac
12754
 
    fi
12755
 
  done
12756
 
  IFS="$lt_save_ifs"
12757
 
else
12758
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12759
 
fi
12760
 
fi
12761
 
 
12762
 
LD="$lt_cv_path_LD"
12763
 
if test -n "$LD"; then
12764
 
  { echo "$as_me:$LINENO: result: $LD" >&5
12765
 
echo "${ECHO_T}$LD" >&6; }
12766
 
else
12767
 
  { echo "$as_me:$LINENO: result: no" >&5
12768
 
echo "${ECHO_T}no" >&6; }
12769
 
fi
12770
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12771
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12772
 
   { (exit 1); exit 1; }; }
12773
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12774
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12775
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12776
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12777
 
else
12778
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12779
 
case `$LD -v 2>&1 </dev/null` in
12780
 
*GNU* | *'with BFD'*)
12781
 
  lt_cv_prog_gnu_ld=yes
12782
 
  ;;
12783
 
*)
12784
 
  lt_cv_prog_gnu_ld=no
12785
 
  ;;
12786
 
esac
12787
 
fi
12788
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12789
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12790
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12791
 
 
12792
 
 
12793
 
 
12794
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12795
 
  # archiving commands below assume that GNU ld is being used.
12796
 
  if test "$with_gnu_ld" = yes; then
12797
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798
 
    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'
12799
 
 
12800
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12801
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12802
 
 
12803
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
12804
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12805
 
    #     investigate it a little bit more. (MM)
12806
 
    wlarc='${wl}'
12807
 
 
12808
 
    # ancient GNU ld didn't support --whole-archive et. al.
12809
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12810
 
        grep 'no-whole-archive' > /dev/null; then
12811
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12812
 
    else
12813
 
      whole_archive_flag_spec_CXX=
12814
 
    fi
12815
 
  else
12816
 
    with_gnu_ld=no
12817
 
    wlarc=
12818
 
 
12819
 
    # A generic and very simple default shared library creation
12820
 
    # command for GNU C++ for the case where it uses the native
12821
 
    # linker, instead of GNU ld.  If possible, this setting should
12822
 
    # overridden to take advantage of the native linker features on
12823
 
    # the platform it is being used on.
12824
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12825
 
  fi
12826
 
 
12827
 
  # Commands to make compiler produce verbose output that lists
12828
 
  # what "hidden" libraries, object files and flags are used when
12829
 
  # linking a shared library.
12830
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12831
 
 
12832
 
else
12833
 
  GXX=no
12834
 
  with_gnu_ld=no
12835
 
  wlarc=
12836
 
fi
12837
 
 
12838
 
# PORTME: fill in a description of your system's C++ link characteristics
12839
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12840
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12841
 
ld_shlibs_CXX=yes
12842
 
case $host_os in
12843
 
  aix3*)
12844
 
    # FIXME: insert proper C++ library support
12845
 
    ld_shlibs_CXX=no
12846
 
    ;;
12847
 
  aix[4-9]*)
12848
 
    if test "$host_cpu" = ia64; then
12849
 
      # On IA64, the linker does run time linking by default, so we don't
12850
 
      # have to do anything special.
12851
 
      aix_use_runtimelinking=no
12852
 
      exp_sym_flag='-Bexport'
12853
 
      no_entry_flag=""
12854
 
    else
12855
 
      aix_use_runtimelinking=no
12856
 
 
12857
 
      # Test if we are trying to use run time linking or normal
12858
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12859
 
      # need to do runtime linking.
12860
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12861
 
        for ld_flag in $LDFLAGS; do
12862
 
          case $ld_flag in
12863
 
          *-brtl*)
12864
 
            aix_use_runtimelinking=yes
12865
 
            break
12866
 
            ;;
12867
 
          esac
12868
 
        done
12869
 
        ;;
12870
 
      esac
12871
 
 
12872
 
      exp_sym_flag='-bexport'
12873
 
      no_entry_flag='-bnoentry'
12874
 
    fi
12875
 
 
12876
 
    # When large executables or shared objects are built, AIX ld can
12877
 
    # have problems creating the table of contents.  If linking a library
12878
 
    # or program results in "error TOC overflow" add -mminimal-toc to
12879
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12880
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12881
 
 
12882
 
    archive_cmds_CXX=''
12883
 
    hardcode_direct_CXX=yes
12884
 
    hardcode_libdir_separator_CXX=':'
12885
 
    link_all_deplibs_CXX=yes
12886
 
 
12887
 
    if test "$GXX" = yes; then
12888
 
      case $host_os in aix4.[012]|aix4.[012].*)
12889
 
      # We only want to do this on AIX 4.2 and lower, the check
12890
 
      # below for broken collect2 doesn't work under 4.3+
12891
 
        collect2name=`${CC} -print-prog-name=collect2`
12892
 
        if test -f "$collect2name" && \
12893
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
12894
 
        then
12895
 
          # We have reworked collect2
12896
 
          :
12897
 
        else
12898
 
          # We have old collect2
12899
 
          hardcode_direct_CXX=unsupported
12900
 
          # It fails to find uninstalled libraries when the uninstalled
12901
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
12902
 
          # to unsupported forces relinking
12903
 
          hardcode_minus_L_CXX=yes
12904
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12905
 
          hardcode_libdir_separator_CXX=
12906
 
        fi
12907
 
        ;;
12908
 
      esac
12909
 
      shared_flag='-shared'
12910
 
      if test "$aix_use_runtimelinking" = yes; then
12911
 
        shared_flag="$shared_flag "'${wl}-G'
12912
 
      fi
12913
 
    else
12914
 
      # not using gcc
12915
 
      if test "$host_cpu" = ia64; then
12916
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12917
 
        # chokes on -Wl,-G. The following line is correct:
12918
 
        shared_flag='-G'
12919
 
      else
12920
 
        if test "$aix_use_runtimelinking" = yes; then
12921
 
          shared_flag='${wl}-G'
12922
 
        else
12923
 
          shared_flag='${wl}-bM:SRE'
12924
 
        fi
12925
 
      fi
12926
 
    fi
12927
 
 
12928
 
    # It seems that -bexpall does not export symbols beginning with
12929
 
    # underscore (_), so it is better to generate a list of symbols to export.
12930
 
    always_export_symbols_CXX=yes
12931
 
    if test "$aix_use_runtimelinking" = yes; then
12932
 
      # Warning - without using the other runtime loading flags (-brtl),
12933
 
      # -berok will link without error, but may produce a broken library.
12934
 
      allow_undefined_flag_CXX='-berok'
12935
 
      # Determine the default libpath from the value encoded in an empty executable.
12936
 
      cat >conftest.$ac_ext <<_ACEOF
12937
 
/* confdefs.h.  */
12938
 
_ACEOF
12939
 
cat confdefs.h >>conftest.$ac_ext
12940
 
cat >>conftest.$ac_ext <<_ACEOF
12941
 
/* end confdefs.h.  */
12942
 
 
12943
 
int
12944
 
main ()
12945
 
{
12946
 
 
12947
 
  ;
12948
 
  return 0;
12949
 
}
12950
 
_ACEOF
12951
 
rm -f conftest.$ac_objext conftest$ac_exeext
12952
 
if { (ac_try="$ac_link"
12953
 
case "(($ac_try" in
12954
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955
 
  *) ac_try_echo=$ac_try;;
12956
 
esac
12957
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958
 
  (eval "$ac_link") 2>conftest.er1
12959
 
  ac_status=$?
12960
 
  grep -v '^ *+' conftest.er1 >conftest.err
12961
 
  rm -f conftest.er1
12962
 
  cat conftest.err >&5
12963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964
 
  (exit $ac_status); } && {
12965
 
         test -z "$ac_cxx_werror_flag" ||
12966
 
         test ! -s conftest.err
12967
 
       } && test -s conftest$ac_exeext &&
12968
 
       $as_test_x conftest$ac_exeext; then
12969
 
 
12970
 
lt_aix_libpath_sed='
12971
 
    /Import File Strings/,/^$/ {
12972
 
        /^0/ {
12973
 
            s/^0  *\(.*\)$/\1/
12974
 
            p
12975
 
        }
12976
 
    }'
12977
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978
 
# Check for a 64-bit object if we didn't find anything.
12979
 
if test -z "$aix_libpath"; then
12980
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981
 
fi
12982
 
else
12983
 
  echo "$as_me: failed program was:" >&5
12984
 
sed 's/^/| /' conftest.$ac_ext >&5
12985
 
 
12986
 
 
12987
 
fi
12988
 
 
12989
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12990
 
      conftest$ac_exeext conftest.$ac_ext
12991
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12992
 
 
12993
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12994
 
 
12995
 
      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"
12996
 
     else
12997
 
      if test "$host_cpu" = ia64; then
12998
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12999
 
        allow_undefined_flag_CXX="-z nodefs"
13000
 
        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"
13001
 
      else
13002
 
        # Determine the default libpath from the value encoded in an empty executable.
13003
 
        cat >conftest.$ac_ext <<_ACEOF
13004
 
/* confdefs.h.  */
13005
 
_ACEOF
13006
 
cat confdefs.h >>conftest.$ac_ext
13007
 
cat >>conftest.$ac_ext <<_ACEOF
13008
 
/* end confdefs.h.  */
13009
 
 
13010
 
int
13011
 
main ()
13012
 
{
13013
 
 
13014
 
  ;
13015
 
  return 0;
13016
 
}
13017
 
_ACEOF
13018
 
rm -f conftest.$ac_objext conftest$ac_exeext
13019
 
if { (ac_try="$ac_link"
13020
 
case "(($ac_try" in
13021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022
 
  *) ac_try_echo=$ac_try;;
13023
 
esac
13024
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025
 
  (eval "$ac_link") 2>conftest.er1
13026
 
  ac_status=$?
13027
 
  grep -v '^ *+' conftest.er1 >conftest.err
13028
 
  rm -f conftest.er1
13029
 
  cat conftest.err >&5
13030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031
 
  (exit $ac_status); } && {
13032
 
         test -z "$ac_cxx_werror_flag" ||
13033
 
         test ! -s conftest.err
13034
 
       } && test -s conftest$ac_exeext &&
13035
 
       $as_test_x conftest$ac_exeext; then
13036
 
 
13037
 
lt_aix_libpath_sed='
13038
 
    /Import File Strings/,/^$/ {
13039
 
        /^0/ {
13040
 
            s/^0  *\(.*\)$/\1/
13041
 
            p
13042
 
        }
13043
 
    }'
13044
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045
 
# Check for a 64-bit object if we didn't find anything.
13046
 
if test -z "$aix_libpath"; then
13047
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048
 
fi
13049
 
else
13050
 
  echo "$as_me: failed program was:" >&5
13051
 
sed 's/^/| /' conftest.$ac_ext >&5
13052
 
 
13053
 
 
13054
 
fi
13055
 
 
13056
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13057
 
      conftest$ac_exeext conftest.$ac_ext
13058
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13059
 
 
13060
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13061
 
        # Warning - without using the other run time loading flags,
13062
 
        # -berok will link without error, but may produce a broken library.
13063
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
13064
 
        allow_undefined_flag_CXX=' ${wl}-berok'
13065
 
        # Exported symbols can be pulled into shared objects from archives
13066
 
        whole_archive_flag_spec_CXX='$convenience'
13067
 
        archive_cmds_need_lc_CXX=yes
13068
 
        # This is similar to how AIX traditionally builds its shared libraries.
13069
 
        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'
13070
 
      fi
13071
 
    fi
13072
 
    ;;
13073
 
 
13074
 
  beos*)
13075
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13076
 
      allow_undefined_flag_CXX=unsupported
13077
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13078
 
      # support --undefined.  This deserves some investigation.  FIXME
13079
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080
 
    else
13081
 
      ld_shlibs_CXX=no
13082
 
    fi
13083
 
    ;;
13084
 
 
13085
 
  chorus*)
13086
 
    case $cc_basename in
13087
 
      *)
13088
 
        # FIXME: insert proper C++ library support
13089
 
        ld_shlibs_CXX=no
13090
 
        ;;
13091
 
    esac
13092
 
    ;;
13093
 
 
13094
 
  cygwin* | mingw* | pw32*)
13095
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096
 
    # as there is no search path for DLLs.
13097
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
13098
 
    allow_undefined_flag_CXX=unsupported
13099
 
    always_export_symbols_CXX=no
13100
 
    enable_shared_with_static_runtimes_CXX=yes
13101
 
 
13102
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13103
 
      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'
13104
 
      # If the export-symbols file already is a .def file (1st line
13105
 
      # is EXPORTS), use it as is; otherwise, prepend...
13106
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13107
 
        cp $export_symbols $output_objdir/$soname.def;
13108
 
      else
13109
 
        echo EXPORTS > $output_objdir/$soname.def;
13110
 
        cat $export_symbols >> $output_objdir/$soname.def;
13111
 
      fi~
13112
 
      $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'
13113
 
    else
13114
 
      ld_shlibs_CXX=no
13115
 
    fi
13116
 
  ;;
13117
 
      darwin* | rhapsody*)
13118
 
      archive_cmds_need_lc_CXX=no
13119
 
      hardcode_direct_CXX=no
13120
 
      hardcode_automatic_CXX=yes
13121
 
      hardcode_shlibpath_var_CXX=unsupported
13122
 
      whole_archive_flag_spec_CXX=''
13123
 
      link_all_deplibs_CXX=yes
13124
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125
 
      if test "$GXX" = yes ; then
13126
 
      output_verbose_link_cmd='echo'
13127
 
      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}"
13128
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129
 
      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}"
13130
 
      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}"
13131
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13132
 
        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}"
13133
 
        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}"
13134
 
      fi
13135
 
      else
13136
 
      case $cc_basename in
13137
 
        xlc*)
13138
 
         output_verbose_link_cmd='echo'
13139
 
          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'
13140
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13141
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13142
 
          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}'
13143
 
          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}'
13144
 
          ;;
13145
 
       *)
13146
 
         ld_shlibs_CXX=no
13147
 
          ;;
13148
 
      esac
13149
 
      fi
13150
 
        ;;
13151
 
 
13152
 
  dgux*)
13153
 
    case $cc_basename in
13154
 
      ec++*)
13155
 
        # FIXME: insert proper C++ library support
13156
 
        ld_shlibs_CXX=no
13157
 
        ;;
13158
 
      ghcx*)
13159
 
        # Green Hills C++ Compiler
13160
 
        # FIXME: insert proper C++ library support
13161
 
        ld_shlibs_CXX=no
13162
 
        ;;
13163
 
      *)
13164
 
        # FIXME: insert proper C++ library support
13165
 
        ld_shlibs_CXX=no
13166
 
        ;;
13167
 
    esac
13168
 
    ;;
13169
 
  freebsd[12]*)
13170
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
13171
 
    ld_shlibs_CXX=no
13172
 
    ;;
13173
 
  freebsd-elf*)
13174
 
    archive_cmds_need_lc_CXX=no
13175
 
    ;;
13176
 
  freebsd* | dragonfly*)
13177
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13178
 
    # conventions
13179
 
    ld_shlibs_CXX=yes
13180
 
    ;;
13181
 
  gnu*)
13182
 
    ;;
13183
 
  hpux9*)
13184
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13185
 
    hardcode_libdir_separator_CXX=:
13186
 
    export_dynamic_flag_spec_CXX='${wl}-E'
13187
 
    hardcode_direct_CXX=yes
13188
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
13189
 
                                # but as the default
13190
 
                                # location of the library.
13191
 
 
13192
 
    case $cc_basename in
13193
 
    CC*)
13194
 
      # FIXME: insert proper C++ library support
13195
 
      ld_shlibs_CXX=no
13196
 
      ;;
13197
 
    aCC*)
13198
 
      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'
13199
 
      # Commands to make compiler produce verbose output that lists
13200
 
      # what "hidden" libraries, object files and flags are used when
13201
 
      # linking a shared library.
13202
 
      #
13203
 
      # There doesn't appear to be a way to prevent this compiler from
13204
 
      # explicitly linking system object files so we need to strip them
13205
 
      # from the output so that they don't get included in the library
13206
 
      # dependencies.
13207
 
      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'
13208
 
      ;;
13209
 
    *)
13210
 
      if test "$GXX" = yes; then
13211
 
        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'
13212
 
      else
13213
 
        # FIXME: insert proper C++ library support
13214
 
        ld_shlibs_CXX=no
13215
 
      fi
13216
 
      ;;
13217
 
    esac
13218
 
    ;;
13219
 
  hpux10*|hpux11*)
13220
 
    if test $with_gnu_ld = no; then
13221
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13222
 
      hardcode_libdir_separator_CXX=:
13223
 
 
13224
 
      case $host_cpu in
13225
 
      hppa*64*|ia64*) ;;
13226
 
      *)
13227
 
        export_dynamic_flag_spec_CXX='${wl}-E'
13228
 
        ;;
13229
 
      esac
13230
 
    fi
13231
 
    case $host_cpu in
13232
 
    hppa*64*|ia64*)
13233
 
      hardcode_direct_CXX=no
13234
 
      hardcode_shlibpath_var_CXX=no
13235
 
      ;;
13236
 
    *)
13237
 
      hardcode_direct_CXX=yes
13238
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
13239
 
                                              # but as the default
13240
 
                                              # location of the library.
13241
 
      ;;
13242
 
    esac
13243
 
 
13244
 
    case $cc_basename in
13245
 
      CC*)
13246
 
        # FIXME: insert proper C++ library support
13247
 
        ld_shlibs_CXX=no
13248
 
        ;;
13249
 
      aCC*)
13250
 
        case $host_cpu in
13251
 
        hppa*64*)
13252
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253
 
          ;;
13254
 
        ia64*)
13255
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256
 
          ;;
13257
 
        *)
13258
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259
 
          ;;
13260
 
        esac
13261
 
        # Commands to make compiler produce verbose output that lists
13262
 
        # what "hidden" libraries, object files and flags are used when
13263
 
        # linking a shared library.
13264
 
        #
13265
 
        # There doesn't appear to be a way to prevent this compiler from
13266
 
        # explicitly linking system object files so we need to strip them
13267
 
        # from the output so that they don't get included in the library
13268
 
        # dependencies.
13269
 
        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'
13270
 
        ;;
13271
 
      *)
13272
 
        if test "$GXX" = yes; then
13273
 
          if test $with_gnu_ld = no; then
13274
 
            case $host_cpu in
13275
 
            hppa*64*)
13276
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277
 
              ;;
13278
 
            ia64*)
13279
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280
 
              ;;
13281
 
            *)
13282
 
              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'
13283
 
              ;;
13284
 
            esac
13285
 
          fi
13286
 
        else
13287
 
          # FIXME: insert proper C++ library support
13288
 
          ld_shlibs_CXX=no
13289
 
        fi
13290
 
        ;;
13291
 
    esac
13292
 
    ;;
13293
 
  interix[3-9]*)
13294
 
    hardcode_direct_CXX=no
13295
 
    hardcode_shlibpath_var_CXX=no
13296
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297
 
    export_dynamic_flag_spec_CXX='${wl}-E'
13298
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13299
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
13300
 
    # default) and relocated if they conflict, which is a slow very memory
13301
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
13302
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13303
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13304
 
    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'
13305
 
    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'
13306
 
    ;;
13307
 
  irix5* | irix6*)
13308
 
    case $cc_basename in
13309
 
      CC*)
13310
 
        # SGI C++
13311
 
        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'
13312
 
 
13313
 
        # Archives containing C++ object files must be created using
13314
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13315
 
        # necessary to make sure instantiated templates are included
13316
 
        # in the archive.
13317
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13318
 
        ;;
13319
 
      *)
13320
 
        if test "$GXX" = yes; then
13321
 
          if test "$with_gnu_ld" = no; then
13322
 
            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'
13323
 
          else
13324
 
            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'
13325
 
          fi
13326
 
        fi
13327
 
        link_all_deplibs_CXX=yes
13328
 
        ;;
13329
 
    esac
13330
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13331
 
    hardcode_libdir_separator_CXX=:
13332
 
    ;;
13333
 
  linux* | k*bsd*-gnu)
13334
 
    case $cc_basename in
13335
 
      KCC*)
13336
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13337
 
 
13338
 
        # KCC will only create a shared library if the output file
13339
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13340
 
        # to its proper name (with version) after linking.
13341
 
        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'
13342
 
        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'
13343
 
        # Commands to make compiler produce verbose output that lists
13344
 
        # what "hidden" libraries, object files and flags are used when
13345
 
        # linking a shared library.
13346
 
        #
13347
 
        # There doesn't appear to be a way to prevent this compiler from
13348
 
        # explicitly linking system object files so we need to strip them
13349
 
        # from the output so that they don't get included in the library
13350
 
        # dependencies.
13351
 
        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'
13352
 
 
13353
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13354
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13355
 
 
13356
 
        # Archives containing C++ object files must be created using
13357
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13358
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13359
 
        ;;
13360
 
      icpc*)
13361
 
        # Intel C++
13362
 
        with_gnu_ld=yes
13363
 
        # version 8.0 and above of icpc choke on multiply defined symbols
13364
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
13365
 
        # earlier do not add the objects themselves.
13366
 
        case `$CC -V 2>&1` in
13367
 
        *"Version 7."*)
13368
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369
 
          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'
13370
 
          ;;
13371
 
        *)  # Version 8.0 or newer
13372
 
          tmp_idyn=
13373
 
          case $host_cpu in
13374
 
            ia64*) tmp_idyn=' -i_dynamic';;
13375
 
          esac
13376
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13377
 
          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'
13378
 
          ;;
13379
 
        esac
13380
 
        archive_cmds_need_lc_CXX=no
13381
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13382
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13383
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13384
 
        ;;
13385
 
      pgCC* | pgcpp*)
13386
 
        # Portland Group C++ compiler
13387
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13388
 
        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'
13389
 
 
13390
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13391
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392
 
        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'
13393
 
        ;;
13394
 
      cxx*)
13395
 
        # Compaq C++
13396
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13397
 
        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'
13398
 
 
13399
 
        runpath_var=LD_RUN_PATH
13400
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13401
 
        hardcode_libdir_separator_CXX=:
13402
 
 
13403
 
        # Commands to make compiler produce verbose output that lists
13404
 
        # what "hidden" libraries, object files and flags are used when
13405
 
        # linking a shared library.
13406
 
        #
13407
 
        # There doesn't appear to be a way to prevent this compiler from
13408
 
        # explicitly linking system object files so we need to strip them
13409
 
        # from the output so that they don't get included in the library
13410
 
        # dependencies.
13411
 
        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'
13412
 
        ;;
13413
 
      *)
13414
 
        case `$CC -V 2>&1 | sed 5q` in
13415
 
        *Sun\ C*)
13416
 
          # Sun C++ 5.9
13417
 
          no_undefined_flag_CXX=' -zdefs'
13418
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13419
 
          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'
13420
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
13421
 
          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'
13422
 
 
13423
 
          # Not sure whether something based on
13424
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13425
 
          # would be better.
13426
 
          output_verbose_link_cmd='echo'
13427
 
 
13428
 
          # Archives containing C++ object files must be created using
13429
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13430
 
          # necessary to make sure instantiated templates are included
13431
 
          # in the archive.
13432
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13433
 
          ;;
13434
 
        esac
13435
 
        ;;
13436
 
    esac
13437
 
    ;;
13438
 
  lynxos*)
13439
 
    # FIXME: insert proper C++ library support
13440
 
    ld_shlibs_CXX=no
13441
 
    ;;
13442
 
  m88k*)
13443
 
    # FIXME: insert proper C++ library support
13444
 
    ld_shlibs_CXX=no
13445
 
    ;;
13446
 
  mvs*)
13447
 
    case $cc_basename in
13448
 
      cxx*)
13449
 
        # FIXME: insert proper C++ library support
13450
 
        ld_shlibs_CXX=no
13451
 
        ;;
13452
 
      *)
13453
 
        # FIXME: insert proper C++ library support
13454
 
        ld_shlibs_CXX=no
13455
 
        ;;
13456
 
    esac
13457
 
    ;;
13458
 
  netbsd* | netbsdelf*-gnu)
13459
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13460
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13461
 
      wlarc=
13462
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
13463
 
      hardcode_direct_CXX=yes
13464
 
      hardcode_shlibpath_var_CXX=no
13465
 
    fi
13466
 
    # Workaround some broken pre-1.5 toolchains
13467
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13468
 
    ;;
13469
 
  openbsd2*)
13470
 
    # C++ shared libraries are fairly broken
13471
 
    ld_shlibs_CXX=no
13472
 
    ;;
13473
 
  openbsd*)
13474
 
    if test -f /usr/libexec/ld.so; then
13475
 
      hardcode_direct_CXX=yes
13476
 
      hardcode_shlibpath_var_CXX=no
13477
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13478
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13479
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13481
 
        export_dynamic_flag_spec_CXX='${wl}-E'
13482
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13483
 
      fi
13484
 
      output_verbose_link_cmd='echo'
13485
 
    else
13486
 
      ld_shlibs_CXX=no
13487
 
    fi
13488
 
    ;;
13489
 
  osf3*)
13490
 
    case $cc_basename in
13491
 
      KCC*)
13492
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13493
 
 
13494
 
        # KCC will only create a shared library if the output file
13495
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13496
 
        # to its proper name (with version) after linking.
13497
 
        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'
13498
 
 
13499
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13500
 
        hardcode_libdir_separator_CXX=:
13501
 
 
13502
 
        # Archives containing C++ object files must be created using
13503
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13504
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13505
 
 
13506
 
        ;;
13507
 
      RCC*)
13508
 
        # Rational C++ 2.4.1
13509
 
        # FIXME: insert proper C++ library support
13510
 
        ld_shlibs_CXX=no
13511
 
        ;;
13512
 
      cxx*)
13513
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13514
 
        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'
13515
 
 
13516
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13517
 
        hardcode_libdir_separator_CXX=:
13518
 
 
13519
 
        # Commands to make compiler produce verbose output that lists
13520
 
        # what "hidden" libraries, object files and flags are used when
13521
 
        # linking a shared library.
13522
 
        #
13523
 
        # There doesn't appear to be a way to prevent this compiler from
13524
 
        # explicitly linking system object files so we need to strip them
13525
 
        # from the output so that they don't get included in the library
13526
 
        # dependencies.
13527
 
        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'
13528
 
        ;;
13529
 
      *)
13530
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13531
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13532
 
          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'
13533
 
 
13534
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13535
 
          hardcode_libdir_separator_CXX=:
13536
 
 
13537
 
          # Commands to make compiler produce verbose output that lists
13538
 
          # what "hidden" libraries, object files and flags are used when
13539
 
          # linking a shared library.
13540
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13541
 
 
13542
 
        else
13543
 
          # FIXME: insert proper C++ library support
13544
 
          ld_shlibs_CXX=no
13545
 
        fi
13546
 
        ;;
13547
 
    esac
13548
 
    ;;
13549
 
  osf4* | osf5*)
13550
 
    case $cc_basename in
13551
 
      KCC*)
13552
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13553
 
 
13554
 
        # KCC will only create a shared library if the output file
13555
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13556
 
        # to its proper name (with version) after linking.
13557
 
        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'
13558
 
 
13559
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560
 
        hardcode_libdir_separator_CXX=:
13561
 
 
13562
 
        # Archives containing C++ object files must be created using
13563
 
        # the KAI C++ compiler.
13564
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13565
 
        ;;
13566
 
      RCC*)
13567
 
        # Rational C++ 2.4.1
13568
 
        # FIXME: insert proper C++ library support
13569
 
        ld_shlibs_CXX=no
13570
 
        ;;
13571
 
      cxx*)
13572
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
13573
 
        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'
13574
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13575
 
          echo "-hidden">> $lib.exp~
13576
 
          $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~
13577
 
          $rm $lib.exp'
13578
 
 
13579
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13580
 
        hardcode_libdir_separator_CXX=:
13581
 
 
13582
 
        # Commands to make compiler produce verbose output that lists
13583
 
        # what "hidden" libraries, object files and flags are used when
13584
 
        # linking a shared library.
13585
 
        #
13586
 
        # There doesn't appear to be a way to prevent this compiler from
13587
 
        # explicitly linking system object files so we need to strip them
13588
 
        # from the output so that they don't get included in the library
13589
 
        # dependencies.
13590
 
        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'
13591
 
        ;;
13592
 
      *)
13593
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13594
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13595
 
         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'
13596
 
 
13597
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13598
 
          hardcode_libdir_separator_CXX=:
13599
 
 
13600
 
          # Commands to make compiler produce verbose output that lists
13601
 
          # what "hidden" libraries, object files and flags are used when
13602
 
          # linking a shared library.
13603
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13604
 
 
13605
 
        else
13606
 
          # FIXME: insert proper C++ library support
13607
 
          ld_shlibs_CXX=no
13608
 
        fi
13609
 
        ;;
13610
 
    esac
13611
 
    ;;
13612
 
  psos*)
13613
 
    # FIXME: insert proper C++ library support
13614
 
    ld_shlibs_CXX=no
13615
 
    ;;
13616
 
  sunos4*)
13617
 
    case $cc_basename in
13618
 
      CC*)
13619
 
        # Sun C++ 4.x
13620
 
        # FIXME: insert proper C++ library support
13621
 
        ld_shlibs_CXX=no
13622
 
        ;;
13623
 
      lcc*)
13624
 
        # Lucid
13625
 
        # FIXME: insert proper C++ library support
13626
 
        ld_shlibs_CXX=no
13627
 
        ;;
13628
 
      *)
13629
 
        # FIXME: insert proper C++ library support
13630
 
        ld_shlibs_CXX=no
13631
 
        ;;
13632
 
    esac
13633
 
    ;;
13634
 
  solaris*)
13635
 
    case $cc_basename in
13636
 
      CC*)
13637
 
        # Sun C++ 4.2, 5.x and Centerline C++
13638
 
        archive_cmds_need_lc_CXX=yes
13639
 
        no_undefined_flag_CXX=' -zdefs'
13640
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13642
 
        $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'
13643
 
 
13644
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
13645
 
        hardcode_shlibpath_var_CXX=no
13646
 
        case $host_os in
13647
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
13648
 
          *)
13649
 
            # The compiler driver will combine and reorder linker options,
13650
 
            # but understands `-z linker_flag'.
13651
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
13652
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13653
 
            ;;
13654
 
        esac
13655
 
        link_all_deplibs_CXX=yes
13656
 
 
13657
 
        output_verbose_link_cmd='echo'
13658
 
 
13659
 
        # Archives containing C++ object files must be created using
13660
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13661
 
        # necessary to make sure instantiated templates are included
13662
 
        # in the archive.
13663
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13664
 
        ;;
13665
 
      gcx*)
13666
 
        # Green Hills C++ Compiler
13667
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13668
 
 
13669
 
        # The C++ compiler must be used to create the archive.
13670
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13671
 
        ;;
13672
 
      *)
13673
 
        # GNU C++ compiler with Solaris linker
13674
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13675
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13676
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
13677
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13678
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13679
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13680
 
 
13681
 
            # Commands to make compiler produce verbose output that lists
13682
 
            # what "hidden" libraries, object files and flags are used when
13683
 
            # linking a shared library.
13684
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13685
 
          else
13686
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
13687
 
            # platform.
13688
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13690
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13691
 
 
13692
 
            # Commands to make compiler produce verbose output that lists
13693
 
            # what "hidden" libraries, object files and flags are used when
13694
 
            # linking a shared library.
13695
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13696
 
          fi
13697
 
 
13698
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13699
 
          case $host_os in
13700
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
13701
 
          *)
13702
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13703
 
            ;;
13704
 
          esac
13705
 
        fi
13706
 
        ;;
13707
 
    esac
13708
 
    ;;
13709
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13710
 
    no_undefined_flag_CXX='${wl}-z,text'
13711
 
    archive_cmds_need_lc_CXX=no
13712
 
    hardcode_shlibpath_var_CXX=no
13713
 
    runpath_var='LD_RUN_PATH'
13714
 
 
13715
 
    case $cc_basename in
13716
 
      CC*)
13717
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13718
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13719
 
        ;;
13720
 
      *)
13721
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13722
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13723
 
        ;;
13724
 
    esac
13725
 
    ;;
13726
 
  sysv5* | sco3.2v5* | sco5v6*)
13727
 
    # Note: We can NOT use -z defs as we might desire, because we do not
13728
 
    # link with -lc, and that would cause any symbols used from libc to
13729
 
    # always be unresolved, which means just about no library would
13730
 
    # ever link correctly.  If we're not using GNU ld we use -z text
13731
 
    # though, which does catch some bad symbols but isn't as heavy-handed
13732
 
    # as -z defs.
13733
 
    # For security reasons, it is highly recommended that you always
13734
 
    # use absolute paths for naming shared libraries, and exclude the
13735
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
13736
 
    # requires that you compile everything twice, which is a pain.
13737
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
13738
 
    # non-empty value in the environment.  Most likely only useful for
13739
 
    # creating official distributions of packages.
13740
 
    # This is a hack until libtool officially supports absolute path
13741
 
    # names for shared libraries.
13742
 
    no_undefined_flag_CXX='${wl}-z,text'
13743
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
13744
 
    archive_cmds_need_lc_CXX=no
13745
 
    hardcode_shlibpath_var_CXX=no
13746
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13747
 
    hardcode_libdir_separator_CXX=':'
13748
 
    link_all_deplibs_CXX=yes
13749
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13750
 
    runpath_var='LD_RUN_PATH'
13751
 
 
13752
 
    case $cc_basename in
13753
 
      CC*)
13754
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13755
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13756
 
        ;;
13757
 
      *)
13758
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13760
 
        ;;
13761
 
    esac
13762
 
    ;;
13763
 
  tandem*)
13764
 
    case $cc_basename in
13765
 
      NCC*)
13766
 
        # NonStop-UX NCC 3.20
13767
 
        # FIXME: insert proper C++ library support
13768
 
        ld_shlibs_CXX=no
13769
 
        ;;
13770
 
      *)
13771
 
        # FIXME: insert proper C++ library support
13772
 
        ld_shlibs_CXX=no
13773
 
        ;;
13774
 
    esac
13775
 
    ;;
13776
 
  vxworks*)
13777
 
    # FIXME: insert proper C++ library support
13778
 
    ld_shlibs_CXX=no
13779
 
    ;;
13780
 
  *)
13781
 
    # FIXME: insert proper C++ library support
13782
 
    ld_shlibs_CXX=no
13783
 
    ;;
13784
 
esac
13785
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13786
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13787
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13788
 
 
13789
 
GCC_CXX="$GXX"
13790
 
LD_CXX="$LD"
13791
 
 
13792
 
cat > conftest.$ac_ext <<EOF
13793
 
class Foo
13794
 
{
13795
 
public:
13796
 
  Foo (void) { a = 0; }
13797
 
private:
13798
 
  int a;
13799
 
};
13800
 
EOF
13801
 
 
13802
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803
 
  (eval $ac_compile) 2>&5
13804
 
  ac_status=$?
13805
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806
 
  (exit $ac_status); }; then
13807
 
  # Parse the compiler output and extract the necessary
13808
 
  # objects, libraries and library flags.
13809
 
 
13810
 
  # Sentinel used to keep track of whether or not we are before
13811
 
  # the conftest object file.
13812
 
  pre_test_object_deps_done=no
13813
 
 
13814
 
  # The `*' in the case matches for architectures that use `case' in
13815
 
  # $output_verbose_cmd can trigger glob expansion during the loop
13816
 
  # eval without this substitution.
13817
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13818
 
 
13819
 
  for p in `eval $output_verbose_link_cmd`; do
13820
 
    case $p in
13821
 
 
13822
 
    -L* | -R* | -l*)
13823
 
       # Some compilers place space between "-{L,R}" and the path.
13824
 
       # Remove the space.
13825
 
       if test $p = "-L" \
13826
 
          || test $p = "-R"; then
13827
 
         prev=$p
13828
 
         continue
13829
 
       else
13830
 
         prev=
13831
 
       fi
13832
 
 
13833
 
       if test "$pre_test_object_deps_done" = no; then
13834
 
         case $p in
13835
 
         -L* | -R*)
13836
 
           # Internal compiler library paths should come after those
13837
 
           # provided the user.  The postdeps already come after the
13838
 
           # user supplied libs so there is no need to process them.
13839
 
           if test -z "$compiler_lib_search_path_CXX"; then
13840
 
             compiler_lib_search_path_CXX="${prev}${p}"
13841
 
           else
13842
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13843
 
           fi
13844
 
           ;;
13845
 
         # The "-l" case would never come before the object being
13846
 
         # linked, so don't bother handling this case.
13847
 
         esac
13848
 
       else
13849
 
         if test -z "$postdeps_CXX"; then
13850
 
           postdeps_CXX="${prev}${p}"
13851
 
         else
13852
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13853
 
         fi
13854
 
       fi
13855
 
       ;;
13856
 
 
13857
 
    *.$objext)
13858
 
       # This assumes that the test object file only shows up
13859
 
       # once in the compiler output.
13860
 
       if test "$p" = "conftest.$objext"; then
13861
 
         pre_test_object_deps_done=yes
13862
 
         continue
13863
 
       fi
13864
 
 
13865
 
       if test "$pre_test_object_deps_done" = no; then
13866
 
         if test -z "$predep_objects_CXX"; then
13867
 
           predep_objects_CXX="$p"
13868
 
         else
13869
 
           predep_objects_CXX="$predep_objects_CXX $p"
13870
 
         fi
13871
 
       else
13872
 
         if test -z "$postdep_objects_CXX"; then
13873
 
           postdep_objects_CXX="$p"
13874
 
         else
13875
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13876
 
         fi
13877
 
       fi
13878
 
       ;;
13879
 
 
13880
 
    *) ;; # Ignore the rest.
13881
 
 
13882
 
    esac
13883
 
  done
13884
 
 
13885
 
  # Clean up.
13886
 
  rm -f a.out a.exe
13887
 
else
13888
 
  echo "libtool.m4: error: problem compiling CXX test program"
13889
 
fi
13890
 
 
13891
 
$rm -f confest.$objext
13892
 
 
13893
 
compiler_lib_search_dirs_CXX=
13894
 
if test -n "$compiler_lib_search_path_CXX"; then
13895
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13896
 
fi
13897
 
 
13898
 
# PORTME: override above test on systems where it is broken
13899
 
case $host_os in
13900
 
interix[3-9]*)
13901
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13902
 
  # hack all around it, let's just trust "g++" to DTRT.
13903
 
  predep_objects_CXX=
13904
 
  postdep_objects_CXX=
13905
 
  postdeps_CXX=
13906
 
  ;;
13907
 
 
13908
 
linux*)
13909
 
  case `$CC -V 2>&1 | sed 5q` in
13910
 
  *Sun\ C*)
13911
 
    # Sun C++ 5.9
13912
 
    #
13913
 
    # The more standards-conforming stlport4 library is
13914
 
    # incompatible with the Cstd library. Avoid specifying
13915
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13916
 
    # -library=stlport4 depends on it.
13917
 
    case " $CXX $CXXFLAGS " in
13918
 
    *" -library=stlport4 "*)
13919
 
      solaris_use_stlport4=yes
13920
 
      ;;
13921
 
    esac
13922
 
    if test "$solaris_use_stlport4" != yes; then
13923
 
      postdeps_CXX='-library=Cstd -library=Crun'
13924
 
    fi
13925
 
    ;;
13926
 
  esac
13927
 
  ;;
13928
 
 
13929
 
solaris*)
13930
 
  case $cc_basename in
13931
 
  CC*)
13932
 
    # The more standards-conforming stlport4 library is
13933
 
    # incompatible with the Cstd library. Avoid specifying
13934
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13935
 
    # -library=stlport4 depends on it.
13936
 
    case " $CXX $CXXFLAGS " in
13937
 
    *" -library=stlport4 "*)
13938
 
      solaris_use_stlport4=yes
13939
 
      ;;
13940
 
    esac
13941
 
 
13942
 
    # Adding this requires a known-good setup of shared libraries for
13943
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13944
 
    # archive will be linked into the output, leading to subtle bugs.
13945
 
    if test "$solaris_use_stlport4" != yes; then
13946
 
      postdeps_CXX='-library=Cstd -library=Crun'
13947
 
    fi
13948
 
    ;;
13949
 
  esac
13950
 
  ;;
13951
 
esac
13952
 
 
13953
 
case " $postdeps_CXX " in
13954
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13955
 
esac
13956
 
 
13957
 
lt_prog_compiler_wl_CXX=
13958
 
lt_prog_compiler_pic_CXX=
13959
 
lt_prog_compiler_static_CXX=
13960
 
 
13961
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13963
 
 
13964
 
  # C++ specific cases for pic, static, wl, etc.
13965
 
  if test "$GXX" = yes; then
13966
 
    lt_prog_compiler_wl_CXX='-Wl,'
13967
 
    lt_prog_compiler_static_CXX='-static'
13968
 
 
13969
 
    case $host_os in
13970
 
    aix*)
13971
 
      # All AIX code is PIC.
13972
 
      if test "$host_cpu" = ia64; then
13973
 
        # AIX 5 now supports IA64 processor
13974
 
        lt_prog_compiler_static_CXX='-Bstatic'
13975
 
      fi
13976
 
      ;;
13977
 
    amigaos*)
13978
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13979
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13980
 
      # like `-m68040'.
13981
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13982
 
      ;;
13983
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13984
 
      # PIC is the default for these OSes.
13985
 
      ;;
13986
 
    mingw* | cygwin* | os2* | pw32*)
13987
 
      # This hack is so that the source file can tell whether it is being
13988
 
      # built for inclusion in a dll (and should export symbols for example).
13989
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13990
 
      # (--disable-auto-import) libraries
13991
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13992
 
      ;;
13993
 
    darwin* | rhapsody*)
13994
 
      # PIC is the default on this platform
13995
 
      # Common symbols not allowed in MH_DYLIB files
13996
 
      lt_prog_compiler_pic_CXX='-fno-common'
13997
 
      ;;
13998
 
    *djgpp*)
13999
 
      # DJGPP does not support shared libraries at all
14000
 
      lt_prog_compiler_pic_CXX=
14001
 
      ;;
14002
 
    interix[3-9]*)
14003
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14004
 
      # Instead, we relocate shared libraries at runtime.
14005
 
      ;;
14006
 
    sysv4*MP*)
14007
 
      if test -d /usr/nec; then
14008
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
14009
 
      fi
14010
 
      ;;
14011
 
    hpux*)
14012
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14013
 
      # not for PA HP-UX.
14014
 
      case $host_cpu in
14015
 
      hppa*64*|ia64*)
14016
 
        ;;
14017
 
      *)
14018
 
        lt_prog_compiler_pic_CXX='-fPIC'
14019
 
        ;;
14020
 
      esac
14021
 
      ;;
14022
 
    *)
14023
 
      lt_prog_compiler_pic_CXX='-fPIC'
14024
 
      ;;
14025
 
    esac
14026
 
  else
14027
 
    case $host_os in
14028
 
      aix[4-9]*)
14029
 
        # All AIX code is PIC.
14030
 
        if test "$host_cpu" = ia64; then
14031
 
          # AIX 5 now supports IA64 processor
14032
 
          lt_prog_compiler_static_CXX='-Bstatic'
14033
 
        else
14034
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14035
 
        fi
14036
 
        ;;
14037
 
      chorus*)
14038
 
        case $cc_basename in
14039
 
        cxch68*)
14040
 
          # Green Hills C++ Compiler
14041
 
          # _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"
14042
 
          ;;
14043
 
        esac
14044
 
        ;;
14045
 
       darwin*)
14046
 
         # PIC is the default on this platform
14047
 
         # Common symbols not allowed in MH_DYLIB files
14048
 
         case $cc_basename in
14049
 
           xlc*)
14050
 
           lt_prog_compiler_pic_CXX='-qnocommon'
14051
 
           lt_prog_compiler_wl_CXX='-Wl,'
14052
 
           ;;
14053
 
         esac
14054
 
       ;;
14055
 
      dgux*)
14056
 
        case $cc_basename in
14057
 
          ec++*)
14058
 
            lt_prog_compiler_pic_CXX='-KPIC'
14059
 
            ;;
14060
 
          ghcx*)
14061
 
            # Green Hills C++ Compiler
14062
 
            lt_prog_compiler_pic_CXX='-pic'
14063
 
            ;;
14064
 
          *)
14065
 
            ;;
14066
 
        esac
14067
 
        ;;
14068
 
      freebsd* | dragonfly*)
14069
 
        # FreeBSD uses GNU C++
14070
 
        ;;
14071
 
      hpux9* | hpux10* | hpux11*)
14072
 
        case $cc_basename in
14073
 
          CC*)
14074
 
            lt_prog_compiler_wl_CXX='-Wl,'
14075
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14076
 
            if test "$host_cpu" != ia64; then
14077
 
              lt_prog_compiler_pic_CXX='+Z'
14078
 
            fi
14079
 
            ;;
14080
 
          aCC*)
14081
 
            lt_prog_compiler_wl_CXX='-Wl,'
14082
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14083
 
            case $host_cpu in
14084
 
            hppa*64*|ia64*)
14085
 
              # +Z the default
14086
 
              ;;
14087
 
            *)
14088
 
              lt_prog_compiler_pic_CXX='+Z'
14089
 
              ;;
14090
 
            esac
14091
 
            ;;
14092
 
          *)
14093
 
            ;;
14094
 
        esac
14095
 
        ;;
14096
 
      interix*)
14097
 
        # This is c89, which is MS Visual C++ (no shared libs)
14098
 
        # Anyone wants to do a port?
14099
 
        ;;
14100
 
      irix5* | irix6* | nonstopux*)
14101
 
        case $cc_basename in
14102
 
          CC*)
14103
 
            lt_prog_compiler_wl_CXX='-Wl,'
14104
 
            lt_prog_compiler_static_CXX='-non_shared'
14105
 
            # CC pic flag -KPIC is the default.
14106
 
            ;;
14107
 
          *)
14108
 
            ;;
14109
 
        esac
14110
 
        ;;
14111
 
      linux* | k*bsd*-gnu)
14112
 
        case $cc_basename in
14113
 
          KCC*)
14114
 
            # KAI C++ Compiler
14115
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
14116
 
            lt_prog_compiler_pic_CXX='-fPIC'
14117
 
            ;;
14118
 
          icpc* | ecpc*)
14119
 
            # Intel C++
14120
 
            lt_prog_compiler_wl_CXX='-Wl,'
14121
 
            lt_prog_compiler_pic_CXX='-KPIC'
14122
 
            lt_prog_compiler_static_CXX='-static'
14123
 
            ;;
14124
 
          pgCC* | pgcpp*)
14125
 
            # Portland Group C++ compiler.
14126
 
            lt_prog_compiler_wl_CXX='-Wl,'
14127
 
            lt_prog_compiler_pic_CXX='-fpic'
14128
 
            lt_prog_compiler_static_CXX='-Bstatic'
14129
 
            ;;
14130
 
          cxx*)
14131
 
            # Compaq C++
14132
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
14133
 
            # Linux and Compaq Tru64 Unix objects are PIC.
14134
 
            lt_prog_compiler_pic_CXX=
14135
 
            lt_prog_compiler_static_CXX='-non_shared'
14136
 
            ;;
14137
 
          *)
14138
 
            case `$CC -V 2>&1 | sed 5q` in
14139
 
            *Sun\ C*)
14140
 
              # Sun C++ 5.9
14141
 
              lt_prog_compiler_pic_CXX='-KPIC'
14142
 
              lt_prog_compiler_static_CXX='-Bstatic'
14143
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
14144
 
              ;;
14145
 
            esac
14146
 
            ;;
14147
 
        esac
14148
 
        ;;
14149
 
      lynxos*)
14150
 
        ;;
14151
 
      m88k*)
14152
 
        ;;
14153
 
      mvs*)
14154
 
        case $cc_basename in
14155
 
          cxx*)
14156
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
14157
 
            ;;
14158
 
          *)
14159
 
            ;;
14160
 
        esac
14161
 
        ;;
14162
 
      netbsd* | netbsdelf*-gnu)
14163
 
        ;;
14164
 
      osf3* | osf4* | osf5*)
14165
 
        case $cc_basename in
14166
 
          KCC*)
14167
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
14168
 
            ;;
14169
 
          RCC*)
14170
 
            # Rational C++ 2.4.1
14171
 
            lt_prog_compiler_pic_CXX='-pic'
14172
 
            ;;
14173
 
          cxx*)
14174
 
            # Digital/Compaq C++
14175
 
            lt_prog_compiler_wl_CXX='-Wl,'
14176
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
14177
 
            # Linux and Compaq Tru64 Unix objects are PIC.
14178
 
            lt_prog_compiler_pic_CXX=
14179
 
            lt_prog_compiler_static_CXX='-non_shared'
14180
 
            ;;
14181
 
          *)
14182
 
            ;;
14183
 
        esac
14184
 
        ;;
14185
 
      psos*)
14186
 
        ;;
14187
 
      solaris*)
14188
 
        case $cc_basename in
14189
 
          CC*)
14190
 
            # Sun C++ 4.2, 5.x and Centerline C++
14191
 
            lt_prog_compiler_pic_CXX='-KPIC'
14192
 
            lt_prog_compiler_static_CXX='-Bstatic'
14193
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
14194
 
            ;;
14195
 
          gcx*)
14196
 
            # Green Hills C++ Compiler
14197
 
            lt_prog_compiler_pic_CXX='-PIC'
14198
 
            ;;
14199
 
          *)
14200
 
            ;;
14201
 
        esac
14202
 
        ;;
14203
 
      sunos4*)
14204
 
        case $cc_basename in
14205
 
          CC*)
14206
 
            # Sun C++ 4.x
14207
 
            lt_prog_compiler_pic_CXX='-pic'
14208
 
            lt_prog_compiler_static_CXX='-Bstatic'
14209
 
            ;;
14210
 
          lcc*)
14211
 
            # Lucid
14212
 
            lt_prog_compiler_pic_CXX='-pic'
14213
 
            ;;
14214
 
          *)
14215
 
            ;;
14216
 
        esac
14217
 
        ;;
14218
 
      tandem*)
14219
 
        case $cc_basename in
14220
 
          NCC*)
14221
 
            # NonStop-UX NCC 3.20
14222
 
            lt_prog_compiler_pic_CXX='-KPIC'
14223
 
            ;;
14224
 
          *)
14225
 
            ;;
14226
 
        esac
14227
 
        ;;
14228
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14229
 
        case $cc_basename in
14230
 
          CC*)
14231
 
            lt_prog_compiler_wl_CXX='-Wl,'
14232
 
            lt_prog_compiler_pic_CXX='-KPIC'
14233
 
            lt_prog_compiler_static_CXX='-Bstatic'
14234
 
            ;;
14235
 
        esac
14236
 
        ;;
14237
 
      vxworks*)
14238
 
        ;;
14239
 
      *)
14240
 
        lt_prog_compiler_can_build_shared_CXX=no
14241
 
        ;;
14242
 
    esac
14243
 
  fi
14244
 
 
14245
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14246
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14247
 
 
14248
 
#
14249
 
# Check to make sure the PIC flag actually works.
14250
 
#
14251
 
if test -n "$lt_prog_compiler_pic_CXX"; then
14252
 
 
14253
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14254
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14255
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14256
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14257
 
else
14258
 
  lt_cv_prog_compiler_pic_works_CXX=no
14259
 
  ac_outfile=conftest.$ac_objext
14260
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14262
 
   # Insert the option either (1) after the last *FLAGS variable, or
14263
 
   # (2) before a word containing "conftest.", or (3) at the end.
14264
 
   # Note that $ac_compile itself does not contain backslashes and begins
14265
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14266
 
   # The option is referenced via a variable to avoid confusing sed.
14267
 
   lt_compile=`echo "$ac_compile" | $SED \
14268
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270
 
   -e 's:$: $lt_compiler_flag:'`
14271
 
   (eval echo "\"\$as_me:14271: $lt_compile\"" >&5)
14272
 
   (eval "$lt_compile" 2>conftest.err)
14273
 
   ac_status=$?
14274
 
   cat conftest.err >&5
14275
 
   echo "$as_me:14275: \$? = $ac_status" >&5
14276
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14277
 
     # The compiler can only warn and ignore the option if not recognized
14278
 
     # So say no if there are warnings other than the usual output.
14279
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14280
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14282
 
       lt_cv_prog_compiler_pic_works_CXX=yes
14283
 
     fi
14284
 
   fi
14285
 
   $rm conftest*
14286
 
 
14287
 
fi
14288
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14289
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14290
 
 
14291
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14292
 
    case $lt_prog_compiler_pic_CXX in
14293
 
     "" | " "*) ;;
14294
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14295
 
     esac
14296
 
else
14297
 
    lt_prog_compiler_pic_CXX=
14298
 
     lt_prog_compiler_can_build_shared_CXX=no
14299
 
fi
14300
 
 
14301
 
fi
14302
 
case $host_os in
14303
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14304
 
  *djgpp*)
14305
 
    lt_prog_compiler_pic_CXX=
14306
 
    ;;
14307
 
  *)
14308
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14309
 
    ;;
14310
 
esac
14311
 
 
14312
 
#
14313
 
# Check to make sure the static flag actually works.
14314
 
#
14315
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14316
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14317
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14318
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14320
 
else
14321
 
  lt_cv_prog_compiler_static_works_CXX=no
14322
 
   save_LDFLAGS="$LDFLAGS"
14323
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14324
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14325
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14326
 
     # The linker can only warn and ignore the option if not recognized
14327
 
     # So say no if there are warnings
14328
 
     if test -s conftest.err; then
14329
 
       # Append any errors to the config.log.
14330
 
       cat conftest.err 1>&5
14331
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14332
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14334
 
         lt_cv_prog_compiler_static_works_CXX=yes
14335
 
       fi
14336
 
     else
14337
 
       lt_cv_prog_compiler_static_works_CXX=yes
14338
 
     fi
14339
 
   fi
14340
 
   $rm -r conftest*
14341
 
   LDFLAGS="$save_LDFLAGS"
14342
 
 
14343
 
fi
14344
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14345
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14346
 
 
14347
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14348
 
    :
14349
 
else
14350
 
    lt_prog_compiler_static_CXX=
14351
 
fi
14352
 
 
14353
 
 
14354
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14355
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14356
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14358
 
else
14359
 
  lt_cv_prog_compiler_c_o_CXX=no
14360
 
   $rm -r conftest 2>/dev/null
14361
 
   mkdir conftest
14362
 
   cd conftest
14363
 
   mkdir out
14364
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14365
 
 
14366
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14367
 
   # Insert the option either (1) after the last *FLAGS variable, or
14368
 
   # (2) before a word containing "conftest.", or (3) at the end.
14369
 
   # Note that $ac_compile itself does not contain backslashes and begins
14370
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14371
 
   lt_compile=`echo "$ac_compile" | $SED \
14372
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374
 
   -e 's:$: $lt_compiler_flag:'`
14375
 
   (eval echo "\"\$as_me:14375: $lt_compile\"" >&5)
14376
 
   (eval "$lt_compile" 2>out/conftest.err)
14377
 
   ac_status=$?
14378
 
   cat out/conftest.err >&5
14379
 
   echo "$as_me:14379: \$? = $ac_status" >&5
14380
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14381
 
   then
14382
 
     # The compiler can only warn and ignore the option if not recognized
14383
 
     # So say no if there are warnings
14384
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14385
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14386
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14387
 
       lt_cv_prog_compiler_c_o_CXX=yes
14388
 
     fi
14389
 
   fi
14390
 
   chmod u+w . 2>&5
14391
 
   $rm conftest*
14392
 
   # SGI C++ compiler will create directory out/ii_files/ for
14393
 
   # template instantiation
14394
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14395
 
   $rm out/* && rmdir out
14396
 
   cd ..
14397
 
   rmdir conftest
14398
 
   $rm conftest*
14399
 
 
14400
 
fi
14401
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14402
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14403
 
 
14404
 
 
14405
 
hard_links="nottested"
14406
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14407
 
  # do not overwrite the value of need_locks provided by the user
14408
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14409
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14410
 
  hard_links=yes
14411
 
  $rm conftest*
14412
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14413
 
  touch conftest.a
14414
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14415
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14416
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14417
 
echo "${ECHO_T}$hard_links" >&6; }
14418
 
  if test "$hard_links" = no; then
14419
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14420
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14421
 
    need_locks=warn
14422
 
  fi
14423
 
else
14424
 
  need_locks=no
14425
 
fi
14426
 
 
14427
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14428
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14429
 
 
14430
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14431
 
  case $host_os in
14432
 
  aix[4-9]*)
14433
 
    # If we're using GNU nm, then we don't want the "-C" option.
14434
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14435
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14436
 
      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'
14437
 
    else
14438
 
      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'
14439
 
    fi
14440
 
    ;;
14441
 
  pw32*)
14442
 
    export_symbols_cmds_CXX="$ltdll_cmds"
14443
 
  ;;
14444
 
  cygwin* | mingw*)
14445
 
    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'
14446
 
  ;;
14447
 
  linux* | k*bsd*-gnu)
14448
 
    link_all_deplibs_CXX=no
14449
 
  ;;
14450
 
  *)
14451
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14452
 
  ;;
14453
 
  esac
14454
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14455
 
 
14456
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14457
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14458
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
14459
 
 
14460
 
#
14461
 
# Do we need to explicitly link libc?
14462
 
#
14463
 
case "x$archive_cmds_need_lc_CXX" in
14464
 
x|xyes)
14465
 
  # Assume -lc should be added
14466
 
  archive_cmds_need_lc_CXX=yes
14467
 
 
14468
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14469
 
    case $archive_cmds_CXX in
14470
 
    *'~'*)
14471
 
      # FIXME: we may have to deal with multi-command sequences.
14472
 
      ;;
14473
 
    '$CC '*)
14474
 
      # Test whether the compiler implicitly links with -lc since on some
14475
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14476
 
      # to ld, don't add -lc before -lgcc.
14477
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14478
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14479
 
      $rm conftest*
14480
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14481
 
 
14482
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483
 
  (eval $ac_compile) 2>&5
14484
 
  ac_status=$?
14485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486
 
  (exit $ac_status); } 2>conftest.err; then
14487
 
        soname=conftest
14488
 
        lib=conftest
14489
 
        libobjs=conftest.$ac_objext
14490
 
        deplibs=
14491
 
        wl=$lt_prog_compiler_wl_CXX
14492
 
        pic_flag=$lt_prog_compiler_pic_CXX
14493
 
        compiler_flags=-v
14494
 
        linker_flags=-v
14495
 
        verstring=
14496
 
        output_objdir=.
14497
 
        libname=conftest
14498
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14499
 
        allow_undefined_flag_CXX=
14500
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14501
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14502
 
  ac_status=$?
14503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504
 
  (exit $ac_status); }
14505
 
        then
14506
 
          archive_cmds_need_lc_CXX=no
14507
 
        else
14508
 
          archive_cmds_need_lc_CXX=yes
14509
 
        fi
14510
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14511
 
      else
14512
 
        cat conftest.err 1>&5
14513
 
      fi
14514
 
      $rm conftest*
14515
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14516
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14517
 
      ;;
14518
 
    esac
14519
 
  fi
14520
 
  ;;
14521
 
esac
14522
 
 
14523
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14524
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14525
 
library_names_spec=
14526
 
libname_spec='lib$name'
14527
 
soname_spec=
14528
 
shrext_cmds=".so"
14529
 
postinstall_cmds=
14530
 
postuninstall_cmds=
14531
 
finish_cmds=
14532
 
finish_eval=
14533
 
shlibpath_var=
14534
 
shlibpath_overrides_runpath=unknown
14535
 
version_type=none
14536
 
dynamic_linker="$host_os ld.so"
14537
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14538
 
 
14539
 
need_lib_prefix=unknown
14540
 
hardcode_into_libs=no
14541
 
 
14542
 
# when you set need_version to no, make sure it does not cause -set_version
14543
 
# flags to be left without arguments
14544
 
need_version=unknown
14545
 
 
14546
 
case $host_os in
14547
 
aix3*)
14548
 
  version_type=linux
14549
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14550
 
  shlibpath_var=LIBPATH
14551
 
 
14552
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14553
 
  soname_spec='${libname}${release}${shared_ext}$major'
14554
 
  ;;
14555
 
 
14556
 
aix[4-9]*)
14557
 
  version_type=linux
14558
 
  need_lib_prefix=no
14559
 
  need_version=no
14560
 
  hardcode_into_libs=yes
14561
 
  if test "$host_cpu" = ia64; then
14562
 
    # AIX 5 supports IA64
14563
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14564
 
    shlibpath_var=LD_LIBRARY_PATH
14565
 
  else
14566
 
    # With GCC up to 2.95.x, collect2 would create an import file
14567
 
    # for dependence libraries.  The import file would start with
14568
 
    # the line `#! .'.  This would cause the generated library to
14569
 
    # depend on `.', always an invalid library.  This was fixed in
14570
 
    # development snapshots of GCC prior to 3.0.
14571
 
    case $host_os in
14572
 
      aix4 | aix4.[01] | aix4.[01].*)
14573
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14574
 
           echo ' yes '
14575
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14576
 
        :
14577
 
      else
14578
 
        can_build_shared=no
14579
 
      fi
14580
 
      ;;
14581
 
    esac
14582
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14583
 
    # soname into executable. Probably we can add versioning support to
14584
 
    # collect2, so additional links can be useful in future.
14585
 
    if test "$aix_use_runtimelinking" = yes; then
14586
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14587
 
      # instead of lib<name>.a to let people know that these are not
14588
 
      # typical AIX shared libraries.
14589
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590
 
    else
14591
 
      # We preserve .a as extension for shared libraries through AIX4.2
14592
 
      # and later when we are not doing run time linking.
14593
 
      library_names_spec='${libname}${release}.a $libname.a'
14594
 
      soname_spec='${libname}${release}${shared_ext}$major'
14595
 
    fi
14596
 
    shlibpath_var=LIBPATH
14597
 
  fi
14598
 
  ;;
14599
 
 
14600
 
amigaos*)
14601
 
  library_names_spec='$libname.ixlibrary $libname.a'
14602
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14603
 
  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'
14604
 
  ;;
14605
 
 
14606
 
beos*)
14607
 
  library_names_spec='${libname}${shared_ext}'
14608
 
  dynamic_linker="$host_os ld.so"
14609
 
  shlibpath_var=LIBRARY_PATH
14610
 
  ;;
14611
 
 
14612
 
bsdi[45]*)
14613
 
  version_type=linux
14614
 
  need_version=no
14615
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616
 
  soname_spec='${libname}${release}${shared_ext}$major'
14617
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14618
 
  shlibpath_var=LD_LIBRARY_PATH
14619
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14620
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14621
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14622
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14623
 
  # libtool to hard-code these into programs
14624
 
  ;;
14625
 
 
14626
 
cygwin* | mingw* | pw32*)
14627
 
  version_type=windows
14628
 
  shrext_cmds=".dll"
14629
 
  need_version=no
14630
 
  need_lib_prefix=no
14631
 
 
14632
 
  case $GCC,$host_os in
14633
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14634
 
    library_names_spec='$libname.dll.a'
14635
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14636
 
    postinstall_cmds='base_file=`basename \${file}`~
14637
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14638
 
      dldir=$destdir/`dirname \$dlpath`~
14639
 
      test -d \$dldir || mkdir -p \$dldir~
14640
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14641
 
      chmod a+x \$dldir/$dlname'
14642
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14643
 
      dlpath=$dir/\$dldll~
14644
 
       $rm \$dlpath'
14645
 
    shlibpath_overrides_runpath=yes
14646
 
 
14647
 
    case $host_os in
14648
 
    cygwin*)
14649
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14650
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14651
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14652
 
      ;;
14653
 
    mingw*)
14654
 
      # MinGW DLLs use traditional 'lib' prefix
14655
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14656
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14657
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14658
 
        # It is most probably a Windows format PATH printed by
14659
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14660
 
        # path with ; separators, and with drive letters. We can handle the
14661
 
        # drive letters (cygwin fileutils understands them), so leave them,
14662
 
        # especially as we might pass files found there to a mingw objdump,
14663
 
        # which wouldn't understand a cygwinified path. Ahh.
14664
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14665
 
      else
14666
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14667
 
      fi
14668
 
      ;;
14669
 
    pw32*)
14670
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14671
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14672
 
      ;;
14673
 
    esac
14674
 
    ;;
14675
 
 
14676
 
  *)
14677
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14678
 
    ;;
14679
 
  esac
14680
 
  dynamic_linker='Win32 ld.exe'
14681
 
  # FIXME: first we should search . and the directory the executable is in
14682
 
  shlibpath_var=PATH
14683
 
  ;;
14684
 
 
14685
 
darwin* | rhapsody*)
14686
 
  dynamic_linker="$host_os dyld"
14687
 
  version_type=darwin
14688
 
  need_lib_prefix=no
14689
 
  need_version=no
14690
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14691
 
  soname_spec='${libname}${release}${major}$shared_ext'
14692
 
  shlibpath_overrides_runpath=yes
14693
 
  shlibpath_var=DYLD_LIBRARY_PATH
14694
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14695
 
 
14696
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14697
 
  ;;
14698
 
 
14699
 
dgux*)
14700
 
  version_type=linux
14701
 
  need_lib_prefix=no
14702
 
  need_version=no
14703
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14704
 
  soname_spec='${libname}${release}${shared_ext}$major'
14705
 
  shlibpath_var=LD_LIBRARY_PATH
14706
 
  ;;
14707
 
 
14708
 
freebsd1*)
14709
 
  dynamic_linker=no
14710
 
  ;;
14711
 
 
14712
 
freebsd* | dragonfly*)
14713
 
  # DragonFly does not have aout.  When/if they implement a new
14714
 
  # versioning mechanism, adjust this.
14715
 
  if test -x /usr/bin/objformat; then
14716
 
    objformat=`/usr/bin/objformat`
14717
 
  else
14718
 
    case $host_os in
14719
 
    freebsd[123]*) objformat=aout ;;
14720
 
    *) objformat=elf ;;
14721
 
    esac
14722
 
  fi
14723
 
  version_type=freebsd-$objformat
14724
 
  case $version_type in
14725
 
    freebsd-elf*)
14726
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14727
 
      need_version=no
14728
 
      need_lib_prefix=no
14729
 
      ;;
14730
 
    freebsd-*)
14731
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14732
 
      need_version=yes
14733
 
      ;;
14734
 
  esac
14735
 
  shlibpath_var=LD_LIBRARY_PATH
14736
 
  case $host_os in
14737
 
  freebsd2*)
14738
 
    shlibpath_overrides_runpath=yes
14739
 
    ;;
14740
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14741
 
    shlibpath_overrides_runpath=yes
14742
 
    hardcode_into_libs=yes
14743
 
    ;;
14744
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14745
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14746
 
    shlibpath_overrides_runpath=no
14747
 
    hardcode_into_libs=yes
14748
 
    ;;
14749
 
  *) # from 4.6 on, and DragonFly
14750
 
    shlibpath_overrides_runpath=yes
14751
 
    hardcode_into_libs=yes
14752
 
    ;;
14753
 
  esac
14754
 
  ;;
14755
 
 
14756
 
gnu*)
14757
 
  version_type=linux
14758
 
  need_lib_prefix=no
14759
 
  need_version=no
14760
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14761
 
  soname_spec='${libname}${release}${shared_ext}$major'
14762
 
  shlibpath_var=LD_LIBRARY_PATH
14763
 
  hardcode_into_libs=yes
14764
 
  ;;
14765
 
 
14766
 
hpux9* | hpux10* | hpux11*)
14767
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14768
 
  # link against other versions.
14769
 
  version_type=sunos
14770
 
  need_lib_prefix=no
14771
 
  need_version=no
14772
 
  case $host_cpu in
14773
 
  ia64*)
14774
 
    shrext_cmds='.so'
14775
 
    hardcode_into_libs=yes
14776
 
    dynamic_linker="$host_os dld.so"
14777
 
    shlibpath_var=LD_LIBRARY_PATH
14778
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14779
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780
 
    soname_spec='${libname}${release}${shared_ext}$major'
14781
 
    if test "X$HPUX_IA64_MODE" = X32; then
14782
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14783
 
    else
14784
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14785
 
    fi
14786
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14787
 
    ;;
14788
 
   hppa*64*)
14789
 
     shrext_cmds='.sl'
14790
 
     hardcode_into_libs=yes
14791
 
     dynamic_linker="$host_os dld.sl"
14792
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14793
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14794
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795
 
     soname_spec='${libname}${release}${shared_ext}$major'
14796
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14797
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14798
 
     ;;
14799
 
   *)
14800
 
    shrext_cmds='.sl'
14801
 
    dynamic_linker="$host_os dld.sl"
14802
 
    shlibpath_var=SHLIB_PATH
14803
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14804
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805
 
    soname_spec='${libname}${release}${shared_ext}$major'
14806
 
    ;;
14807
 
  esac
14808
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14809
 
  postinstall_cmds='chmod 555 $lib'
14810
 
  ;;
14811
 
 
14812
 
interix[3-9]*)
14813
 
  version_type=linux
14814
 
  need_lib_prefix=no
14815
 
  need_version=no
14816
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14817
 
  soname_spec='${libname}${release}${shared_ext}$major'
14818
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14819
 
  shlibpath_var=LD_LIBRARY_PATH
14820
 
  shlibpath_overrides_runpath=no
14821
 
  hardcode_into_libs=yes
14822
 
  ;;
14823
 
 
14824
 
irix5* | irix6* | nonstopux*)
14825
 
  case $host_os in
14826
 
    nonstopux*) version_type=nonstopux ;;
14827
 
    *)
14828
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14829
 
                version_type=linux
14830
 
        else
14831
 
                version_type=irix
14832
 
        fi ;;
14833
 
  esac
14834
 
  need_lib_prefix=no
14835
 
  need_version=no
14836
 
  soname_spec='${libname}${release}${shared_ext}$major'
14837
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14838
 
  case $host_os in
14839
 
  irix5* | nonstopux*)
14840
 
    libsuff= shlibsuff=
14841
 
    ;;
14842
 
  *)
14843
 
    case $LD in # libtool.m4 will add one of these switches to LD
14844
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14845
 
      libsuff= shlibsuff= libmagic=32-bit;;
14846
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14847
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14848
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14849
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14850
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14851
 
    esac
14852
 
    ;;
14853
 
  esac
14854
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14855
 
  shlibpath_overrides_runpath=no
14856
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14857
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14858
 
  hardcode_into_libs=yes
14859
 
  ;;
14860
 
 
14861
 
# No shared lib support for Linux oldld, aout, or coff.
14862
 
linux*oldld* | linux*aout* | linux*coff*)
14863
 
  dynamic_linker=no
14864
 
  ;;
14865
 
 
14866
 
# This must be Linux ELF.
14867
 
linux* | k*bsd*-gnu)
14868
 
  version_type=linux
14869
 
  need_lib_prefix=no
14870
 
  need_version=no
14871
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872
 
  soname_spec='${libname}${release}${shared_ext}$major'
14873
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14874
 
  shlibpath_var=LD_LIBRARY_PATH
14875
 
  shlibpath_overrides_runpath=no
14876
 
  # This implies no fast_install, which is unacceptable.
14877
 
  # Some rework will be needed to allow for fast_install
14878
 
  # before this can be enabled.
14879
 
  hardcode_into_libs=yes
14880
 
 
14881
 
  # Append ld.so.conf contents to the search path
14882
 
  if test -f /etc/ld.so.conf; then
14883
 
    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' ' '`
14884
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14885
 
  fi
14886
 
 
14887
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14888
 
  # powerpc, because MkLinux only supported shared libraries with the
14889
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14890
 
  # most powerpc-linux boxes support dynamic linking these days and
14891
 
  # people can always --disable-shared, the test was removed, and we
14892
 
  # assume the GNU/Linux dynamic linker is in use.
14893
 
  dynamic_linker='GNU/Linux ld.so'
14894
 
  ;;
14895
 
 
14896
 
netbsdelf*-gnu)
14897
 
  version_type=linux
14898
 
  need_lib_prefix=no
14899
 
  need_version=no
14900
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14901
 
  soname_spec='${libname}${release}${shared_ext}$major'
14902
 
  shlibpath_var=LD_LIBRARY_PATH
14903
 
  shlibpath_overrides_runpath=no
14904
 
  hardcode_into_libs=yes
14905
 
  dynamic_linker='NetBSD ld.elf_so'
14906
 
  ;;
14907
 
 
14908
 
netbsd*)
14909
 
  version_type=sunos
14910
 
  need_lib_prefix=no
14911
 
  need_version=no
14912
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14913
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14914
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14915
 
    dynamic_linker='NetBSD (a.out) ld.so'
14916
 
  else
14917
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14918
 
    soname_spec='${libname}${release}${shared_ext}$major'
14919
 
    dynamic_linker='NetBSD ld.elf_so'
14920
 
  fi
14921
 
  shlibpath_var=LD_LIBRARY_PATH
14922
 
  shlibpath_overrides_runpath=yes
14923
 
  hardcode_into_libs=yes
14924
 
  ;;
14925
 
 
14926
 
newsos6)
14927
 
  version_type=linux
14928
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929
 
  shlibpath_var=LD_LIBRARY_PATH
14930
 
  shlibpath_overrides_runpath=yes
14931
 
  ;;
14932
 
 
14933
 
nto-qnx*)
14934
 
  version_type=linux
14935
 
  need_lib_prefix=no
14936
 
  need_version=no
14937
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938
 
  soname_spec='${libname}${release}${shared_ext}$major'
14939
 
  shlibpath_var=LD_LIBRARY_PATH
14940
 
  shlibpath_overrides_runpath=yes
14941
 
  ;;
14942
 
 
14943
 
openbsd*)
14944
 
  version_type=sunos
14945
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14946
 
  need_lib_prefix=no
14947
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14948
 
  case $host_os in
14949
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14950
 
    *)                         need_version=no  ;;
14951
 
  esac
14952
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14954
 
  shlibpath_var=LD_LIBRARY_PATH
14955
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14956
 
    case $host_os in
14957
 
      openbsd2.[89] | openbsd2.[89].*)
14958
 
        shlibpath_overrides_runpath=no
14959
 
        ;;
14960
 
      *)
14961
 
        shlibpath_overrides_runpath=yes
14962
 
        ;;
14963
 
      esac
14964
 
  else
14965
 
    shlibpath_overrides_runpath=yes
14966
 
  fi
14967
 
  ;;
14968
 
 
14969
 
os2*)
14970
 
  libname_spec='$name'
14971
 
  shrext_cmds=".dll"
14972
 
  need_lib_prefix=no
14973
 
  library_names_spec='$libname${shared_ext} $libname.a'
14974
 
  dynamic_linker='OS/2 ld.exe'
14975
 
  shlibpath_var=LIBPATH
14976
 
  ;;
14977
 
 
14978
 
osf3* | osf4* | osf5*)
14979
 
  version_type=osf
14980
 
  need_lib_prefix=no
14981
 
  need_version=no
14982
 
  soname_spec='${libname}${release}${shared_ext}$major'
14983
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984
 
  shlibpath_var=LD_LIBRARY_PATH
14985
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14986
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14987
 
  ;;
14988
 
 
14989
 
rdos*)
14990
 
  dynamic_linker=no
14991
 
  ;;
14992
 
 
14993
 
solaris*)
14994
 
  version_type=linux
14995
 
  need_lib_prefix=no
14996
 
  need_version=no
14997
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998
 
  soname_spec='${libname}${release}${shared_ext}$major'
14999
 
  shlibpath_var=LD_LIBRARY_PATH
15000
 
  shlibpath_overrides_runpath=yes
15001
 
  hardcode_into_libs=yes
15002
 
  # ldd complains unless libraries are executable
15003
 
  postinstall_cmds='chmod +x $lib'
15004
 
  ;;
15005
 
 
15006
 
sunos4*)
15007
 
  version_type=sunos
15008
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15009
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15010
 
  shlibpath_var=LD_LIBRARY_PATH
15011
 
  shlibpath_overrides_runpath=yes
15012
 
  if test "$with_gnu_ld" = yes; then
15013
 
    need_lib_prefix=no
15014
 
  fi
15015
 
  need_version=yes
15016
 
  ;;
15017
 
 
15018
 
sysv4 | sysv4.3*)
15019
 
  version_type=linux
15020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021
 
  soname_spec='${libname}${release}${shared_ext}$major'
15022
 
  shlibpath_var=LD_LIBRARY_PATH
15023
 
  case $host_vendor in
15024
 
    sni)
15025
 
      shlibpath_overrides_runpath=no
15026
 
      need_lib_prefix=no
15027
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15028
 
      runpath_var=LD_RUN_PATH
15029
 
      ;;
15030
 
    siemens)
15031
 
      need_lib_prefix=no
15032
 
      ;;
15033
 
    motorola)
15034
 
      need_lib_prefix=no
15035
 
      need_version=no
15036
 
      shlibpath_overrides_runpath=no
15037
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15038
 
      ;;
15039
 
  esac
15040
 
  ;;
15041
 
 
15042
 
sysv4*MP*)
15043
 
  if test -d /usr/nec ;then
15044
 
    version_type=linux
15045
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15046
 
    soname_spec='$libname${shared_ext}.$major'
15047
 
    shlibpath_var=LD_LIBRARY_PATH
15048
 
  fi
15049
 
  ;;
15050
 
 
15051
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15052
 
  version_type=freebsd-elf
15053
 
  need_lib_prefix=no
15054
 
  need_version=no
15055
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15056
 
  soname_spec='${libname}${release}${shared_ext}$major'
15057
 
  shlibpath_var=LD_LIBRARY_PATH
15058
 
  hardcode_into_libs=yes
15059
 
  if test "$with_gnu_ld" = yes; then
15060
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15061
 
    shlibpath_overrides_runpath=no
15062
 
  else
15063
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15064
 
    shlibpath_overrides_runpath=yes
15065
 
    case $host_os in
15066
 
      sco3.2v5*)
15067
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15068
 
        ;;
15069
 
    esac
15070
 
  fi
15071
 
  sys_lib_dlsearch_path_spec='/usr/lib'
15072
 
  ;;
15073
 
 
15074
 
uts4*)
15075
 
  version_type=linux
15076
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077
 
  soname_spec='${libname}${release}${shared_ext}$major'
15078
 
  shlibpath_var=LD_LIBRARY_PATH
15079
 
  ;;
15080
 
 
15081
 
*)
15082
 
  dynamic_linker=no
15083
 
  ;;
15084
 
esac
15085
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15086
 
echo "${ECHO_T}$dynamic_linker" >&6; }
15087
 
test "$dynamic_linker" = no && can_build_shared=no
15088
 
 
15089
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15091
 
else
15092
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15093
 
fi
15094
 
 
15095
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15096
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15098
 
else
15099
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15100
 
fi
15101
 
 
15102
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15103
 
 
15104
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15105
 
if test "$GCC" = yes; then
15106
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15107
 
fi
15108
 
 
15109
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15110
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15111
 
hardcode_action_CXX=
15112
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15113
 
   test -n "$runpath_var_CXX" || \
15114
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15115
 
 
15116
 
  # We can hardcode non-existant directories.
15117
 
  if test "$hardcode_direct_CXX" != no &&
15118
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15119
 
     # have to relink, otherwise we might link with an installed library
15120
 
     # when we should be linking with a yet-to-be-installed one
15121
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15122
 
     test "$hardcode_minus_L_CXX" != no; then
15123
 
    # Linking always hardcodes the temporary library directory.
15124
 
    hardcode_action_CXX=relink
15125
 
  else
15126
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15127
 
    hardcode_action_CXX=immediate
15128
 
  fi
15129
 
else
15130
 
  # We cannot hardcode anything, or else we can only hardcode existing
15131
 
  # directories.
15132
 
  hardcode_action_CXX=unsupported
15133
 
fi
15134
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15135
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15136
 
 
15137
 
if test "$hardcode_action_CXX" = relink; then
15138
 
  # Fast installation is not supported
15139
 
  enable_fast_install=no
15140
 
elif test "$shlibpath_overrides_runpath" = yes ||
15141
 
     test "$enable_shared" = no; then
15142
 
  # Fast installation is not necessary
15143
 
  enable_fast_install=needless
15144
 
fi
15145
 
 
15146
 
 
15147
 
# The else clause should only fire when bootstrapping the
15148
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
15149
 
# with your package, and you will get complaints that there are
15150
 
# no rules to generate ltmain.sh.
15151
 
if test -f "$ltmain"; then
15152
 
  # See if we are running on zsh, and set the options which allow our commands through
15153
 
  # without removal of \ escapes.
15154
 
  if test -n "${ZSH_VERSION+set}" ; then
15155
 
    setopt NO_GLOB_SUBST
15156
 
  fi
15157
 
  # Now quote all the things that may contain metacharacters while being
15158
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15159
 
  # variables and quote the copies for generation of the libtool script.
15160
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15161
 
    SED SHELL STRIP \
15162
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15163
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15164
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15165
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15166
 
    lt_cv_sys_global_symbol_to_c_name_address \
15167
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15168
 
    old_postinstall_cmds old_postuninstall_cmds \
15169
 
    compiler_CXX \
15170
 
    CC_CXX \
15171
 
    LD_CXX \
15172
 
    lt_prog_compiler_wl_CXX \
15173
 
    lt_prog_compiler_pic_CXX \
15174
 
    lt_prog_compiler_static_CXX \
15175
 
    lt_prog_compiler_no_builtin_flag_CXX \
15176
 
    export_dynamic_flag_spec_CXX \
15177
 
    thread_safe_flag_spec_CXX \
15178
 
    whole_archive_flag_spec_CXX \
15179
 
    enable_shared_with_static_runtimes_CXX \
15180
 
    old_archive_cmds_CXX \
15181
 
    old_archive_from_new_cmds_CXX \
15182
 
    predep_objects_CXX \
15183
 
    postdep_objects_CXX \
15184
 
    predeps_CXX \
15185
 
    postdeps_CXX \
15186
 
    compiler_lib_search_path_CXX \
15187
 
    compiler_lib_search_dirs_CXX \
15188
 
    archive_cmds_CXX \
15189
 
    archive_expsym_cmds_CXX \
15190
 
    postinstall_cmds_CXX \
15191
 
    postuninstall_cmds_CXX \
15192
 
    old_archive_from_expsyms_cmds_CXX \
15193
 
    allow_undefined_flag_CXX \
15194
 
    no_undefined_flag_CXX \
15195
 
    export_symbols_cmds_CXX \
15196
 
    hardcode_libdir_flag_spec_CXX \
15197
 
    hardcode_libdir_flag_spec_ld_CXX \
15198
 
    hardcode_libdir_separator_CXX \
15199
 
    hardcode_automatic_CXX \
15200
 
    module_cmds_CXX \
15201
 
    module_expsym_cmds_CXX \
15202
 
    lt_cv_prog_compiler_c_o_CXX \
15203
 
    fix_srcfile_path_CXX \
15204
 
    exclude_expsyms_CXX \
15205
 
    include_expsyms_CXX; do
15206
 
 
15207
 
    case $var in
15208
 
    old_archive_cmds_CXX | \
15209
 
    old_archive_from_new_cmds_CXX | \
15210
 
    archive_cmds_CXX | \
15211
 
    archive_expsym_cmds_CXX | \
15212
 
    module_cmds_CXX | \
15213
 
    module_expsym_cmds_CXX | \
15214
 
    old_archive_from_expsyms_cmds_CXX | \
15215
 
    export_symbols_cmds_CXX | \
15216
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15217
 
    postinstall_cmds | postuninstall_cmds | \
15218
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15219
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15220
 
      # Double-quote double-evaled strings.
15221
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15222
 
      ;;
15223
 
    *)
15224
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15225
 
      ;;
15226
 
    esac
15227
 
  done
15228
 
 
15229
 
  case $lt_echo in
15230
 
  *'\$0 --fallback-echo"')
15231
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15232
 
    ;;
15233
 
  esac
15234
 
 
15235
 
cfgfile="$ofile"
15236
 
 
15237
 
  cat <<__EOF__ >> "$cfgfile"
15238
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15239
 
 
15240
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15241
 
 
15242
 
# Shell to use when invoking shell scripts.
15243
 
SHELL=$lt_SHELL
15244
 
 
15245
 
# Whether or not to build shared libraries.
15246
 
build_libtool_libs=$enable_shared
15247
 
 
15248
 
# Whether or not to build static libraries.
15249
 
build_old_libs=$enable_static
15250
 
 
15251
 
# Whether or not to add -lc for building shared libraries.
15252
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15253
 
 
15254
 
# Whether or not to disallow shared libs when runtime libs are static
15255
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15256
 
 
15257
 
# Whether or not to optimize for fast installation.
15258
 
fast_install=$enable_fast_install
15259
 
 
15260
 
# The host system.
15261
 
host_alias=$host_alias
15262
 
host=$host
15263
 
host_os=$host_os
15264
 
 
15265
 
# The build system.
15266
 
build_alias=$build_alias
15267
 
build=$build
15268
 
build_os=$build_os
15269
 
 
15270
 
# An echo program that does not interpret backslashes.
15271
 
echo=$lt_echo
15272
 
 
15273
 
# The archiver.
15274
 
AR=$lt_AR
15275
 
AR_FLAGS=$lt_AR_FLAGS
15276
 
 
15277
 
# A C compiler.
15278
 
LTCC=$lt_LTCC
15279
 
 
15280
 
# LTCC compiler flags.
15281
 
LTCFLAGS=$lt_LTCFLAGS
15282
 
 
15283
 
# A language-specific compiler.
15284
 
CC=$lt_compiler_CXX
15285
 
 
15286
 
# Is the compiler the GNU C compiler?
15287
 
with_gcc=$GCC_CXX
15288
 
 
15289
 
# An ERE matcher.
15290
 
EGREP=$lt_EGREP
15291
 
 
15292
 
# The linker used to build libraries.
15293
 
LD=$lt_LD_CXX
15294
 
 
15295
 
# Whether we need hard or soft links.
15296
 
LN_S=$lt_LN_S
15297
 
 
15298
 
# A BSD-compatible nm program.
15299
 
NM=$lt_NM
15300
 
 
15301
 
# A symbol stripping program
15302
 
STRIP=$lt_STRIP
15303
 
 
15304
 
# Used to examine libraries when file_magic_cmd begins "file"
15305
 
MAGIC_CMD=$MAGIC_CMD
15306
 
 
15307
 
# Used on cygwin: DLL creation program.
15308
 
DLLTOOL="$DLLTOOL"
15309
 
 
15310
 
# Used on cygwin: object dumper.
15311
 
OBJDUMP="$OBJDUMP"
15312
 
 
15313
 
# Used on cygwin: assembler.
15314
 
AS="$AS"
15315
 
 
15316
 
# The name of the directory that contains temporary libtool files.
15317
 
objdir=$objdir
15318
 
 
15319
 
# How to create reloadable object files.
15320
 
reload_flag=$lt_reload_flag
15321
 
reload_cmds=$lt_reload_cmds
15322
 
 
15323
 
# How to pass a linker flag through the compiler.
15324
 
wl=$lt_lt_prog_compiler_wl_CXX
15325
 
 
15326
 
# Object file suffix (normally "o").
15327
 
objext="$ac_objext"
15328
 
 
15329
 
# Old archive suffix (normally "a").
15330
 
libext="$libext"
15331
 
 
15332
 
# Shared library suffix (normally ".so").
15333
 
shrext_cmds='$shrext_cmds'
15334
 
 
15335
 
# Executable file suffix (normally "").
15336
 
exeext="$exeext"
15337
 
 
15338
 
# Additional compiler flags for building library objects.
15339
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
15340
 
pic_mode=$pic_mode
15341
 
 
15342
 
# What is the maximum length of a command?
15343
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15344
 
 
15345
 
# Does compiler simultaneously support -c and -o options?
15346
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15347
 
 
15348
 
# Must we lock files when doing compilation?
15349
 
need_locks=$lt_need_locks
15350
 
 
15351
 
# Do we need the lib prefix for modules?
15352
 
need_lib_prefix=$need_lib_prefix
15353
 
 
15354
 
# Do we need a version for libraries?
15355
 
need_version=$need_version
15356
 
 
15357
 
# Whether dlopen is supported.
15358
 
dlopen_support=$enable_dlopen
15359
 
 
15360
 
# Whether dlopen of programs is supported.
15361
 
dlopen_self=$enable_dlopen_self
15362
 
 
15363
 
# Whether dlopen of statically linked programs is supported.
15364
 
dlopen_self_static=$enable_dlopen_self_static
15365
 
 
15366
 
# Compiler flag to prevent dynamic linking.
15367
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
15368
 
 
15369
 
# Compiler flag to turn off builtin functions.
15370
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15371
 
 
15372
 
# Compiler flag to allow reflexive dlopens.
15373
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15374
 
 
15375
 
# Compiler flag to generate shared objects directly from archives.
15376
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15377
 
 
15378
 
# Compiler flag to generate thread-safe objects.
15379
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15380
 
 
15381
 
# Library versioning type.
15382
 
version_type=$version_type
15383
 
 
15384
 
# Format of library name prefix.
15385
 
libname_spec=$lt_libname_spec
15386
 
 
15387
 
# List of archive names.  First name is the real one, the rest are links.
15388
 
# The last name is the one that the linker finds with -lNAME.
15389
 
library_names_spec=$lt_library_names_spec
15390
 
 
15391
 
# The coded name of the library, if different from the real name.
15392
 
soname_spec=$lt_soname_spec
15393
 
 
15394
 
# Commands used to build and install an old-style archive.
15395
 
RANLIB=$lt_RANLIB
15396
 
old_archive_cmds=$lt_old_archive_cmds_CXX
15397
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15398
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15399
 
 
15400
 
# Create an old-style archive from a shared archive.
15401
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15402
 
 
15403
 
# Create a temporary old-style archive to link instead of a shared archive.
15404
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15405
 
 
15406
 
# Commands used to build and install a shared archive.
15407
 
archive_cmds=$lt_archive_cmds_CXX
15408
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15409
 
postinstall_cmds=$lt_postinstall_cmds
15410
 
postuninstall_cmds=$lt_postuninstall_cmds
15411
 
 
15412
 
# Commands used to build a loadable module (assumed same as above if empty)
15413
 
module_cmds=$lt_module_cmds_CXX
15414
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15415
 
 
15416
 
# Commands to strip libraries.
15417
 
old_striplib=$lt_old_striplib
15418
 
striplib=$lt_striplib
15419
 
 
15420
 
# Dependencies to place before the objects being linked to create a
15421
 
# shared library.
15422
 
predep_objects=$lt_predep_objects_CXX
15423
 
 
15424
 
# Dependencies to place after the objects being linked to create a
15425
 
# shared library.
15426
 
postdep_objects=$lt_postdep_objects_CXX
15427
 
 
15428
 
# Dependencies to place before the objects being linked to create a
15429
 
# shared library.
15430
 
predeps=$lt_predeps_CXX
15431
 
 
15432
 
# Dependencies to place after the objects being linked to create a
15433
 
# shared library.
15434
 
postdeps=$lt_postdeps_CXX
15435
 
 
15436
 
# The directories searched by this compiler when creating a shared
15437
 
# library
15438
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15439
 
 
15440
 
# The library search path used internally by the compiler when linking
15441
 
# a shared library.
15442
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15443
 
 
15444
 
# Method to check whether dependent libraries are shared objects.
15445
 
deplibs_check_method=$lt_deplibs_check_method
15446
 
 
15447
 
# Command to use when deplibs_check_method == file_magic.
15448
 
file_magic_cmd=$lt_file_magic_cmd
15449
 
 
15450
 
# Flag that allows shared libraries with undefined symbols to be built.
15451
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15452
 
 
15453
 
# Flag that forces no undefined symbols.
15454
 
no_undefined_flag=$lt_no_undefined_flag_CXX
15455
 
 
15456
 
# Commands used to finish a libtool library installation in a directory.
15457
 
finish_cmds=$lt_finish_cmds
15458
 
 
15459
 
# Same as above, but a single script fragment to be evaled but not shown.
15460
 
finish_eval=$lt_finish_eval
15461
 
 
15462
 
# Take the output of nm and produce a listing of raw symbols and C names.
15463
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15464
 
 
15465
 
# Transform the output of nm in a proper C declaration
15466
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15467
 
 
15468
 
# Transform the output of nm in a C name address pair
15469
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15470
 
 
15471
 
# This is the shared library runtime path variable.
15472
 
runpath_var=$runpath_var
15473
 
 
15474
 
# This is the shared library path variable.
15475
 
shlibpath_var=$shlibpath_var
15476
 
 
15477
 
# Is shlibpath searched before the hard-coded library search path?
15478
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15479
 
 
15480
 
# How to hardcode a shared library path into an executable.
15481
 
hardcode_action=$hardcode_action_CXX
15482
 
 
15483
 
# Whether we should hardcode library paths into libraries.
15484
 
hardcode_into_libs=$hardcode_into_libs
15485
 
 
15486
 
# Flag to hardcode \$libdir into a binary during linking.
15487
 
# This must work even if \$libdir does not exist.
15488
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15489
 
 
15490
 
# If ld is used when linking, flag to hardcode \$libdir into
15491
 
# a binary during linking. This must work even if \$libdir does
15492
 
# not exist.
15493
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15494
 
 
15495
 
# Whether we need a single -rpath flag with a separated argument.
15496
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15497
 
 
15498
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15499
 
# resulting binary.
15500
 
hardcode_direct=$hardcode_direct_CXX
15501
 
 
15502
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15503
 
# resulting binary.
15504
 
hardcode_minus_L=$hardcode_minus_L_CXX
15505
 
 
15506
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15507
 
# the resulting binary.
15508
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15509
 
 
15510
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15511
 
# and all subsequent libraries and executables linked against it.
15512
 
hardcode_automatic=$hardcode_automatic_CXX
15513
 
 
15514
 
# Variables whose values should be saved in libtool wrapper scripts and
15515
 
# restored at relink time.
15516
 
variables_saved_for_relink="$variables_saved_for_relink"
15517
 
 
15518
 
# Whether libtool must link a program against all its dependency libraries.
15519
 
link_all_deplibs=$link_all_deplibs_CXX
15520
 
 
15521
 
# Compile-time system search path for libraries
15522
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15523
 
 
15524
 
# Run-time system search path for libraries
15525
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15526
 
 
15527
 
# Fix the shell variable \$srcfile for the compiler.
15528
 
fix_srcfile_path=$lt_fix_srcfile_path
15529
 
 
15530
 
# Set to yes if exported symbols are required.
15531
 
always_export_symbols=$always_export_symbols_CXX
15532
 
 
15533
 
# The commands to list exported symbols.
15534
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15535
 
 
15536
 
# The commands to extract the exported symbol list from a shared archive.
15537
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15538
 
 
15539
 
# Symbols that should not be listed in the preloaded symbols.
15540
 
exclude_expsyms=$lt_exclude_expsyms_CXX
15541
 
 
15542
 
# Symbols that must always be exported.
15543
 
include_expsyms=$lt_include_expsyms_CXX
15544
 
 
15545
 
# ### END LIBTOOL TAG CONFIG: $tagname
15546
 
 
15547
 
__EOF__
15548
 
 
15549
 
 
15550
 
else
15551
 
  # If there is no Makefile yet, we rely on a make rule to execute
15552
 
  # `config.status --recheck' to rerun these tests and create the
15553
 
  # libtool script then.
15554
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15555
 
  if test -f "$ltmain_in"; then
15556
 
    test -f Makefile && make "$ltmain"
15557
 
  fi
15558
 
fi
15559
 
 
15560
 
 
15561
 
ac_ext=c
15562
 
ac_cpp='$CPP $CPPFLAGS'
15563
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15566
 
 
15567
 
CC=$lt_save_CC
15568
 
LDCXX=$LD
15569
 
LD=$lt_save_LD
15570
 
GCC=$lt_save_GCC
15571
 
with_gnu_ldcxx=$with_gnu_ld
15572
 
with_gnu_ld=$lt_save_with_gnu_ld
15573
 
lt_cv_path_LDCXX=$lt_cv_path_LD
15574
 
lt_cv_path_LD=$lt_save_path_LD
15575
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15576
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15577
 
 
15578
 
        else
15579
 
          tagname=""
15580
 
        fi
15581
 
        ;;
15582
 
 
15583
 
      F77)
15584
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
15585
 
 
15586
 
ac_ext=f
15587
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15588
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15589
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15590
 
 
15591
 
 
15592
 
archive_cmds_need_lc_F77=no
15593
 
allow_undefined_flag_F77=
15594
 
always_export_symbols_F77=no
15595
 
archive_expsym_cmds_F77=
15596
 
export_dynamic_flag_spec_F77=
15597
 
hardcode_direct_F77=no
15598
 
hardcode_libdir_flag_spec_F77=
15599
 
hardcode_libdir_flag_spec_ld_F77=
15600
 
hardcode_libdir_separator_F77=
15601
 
hardcode_minus_L_F77=no
15602
 
hardcode_automatic_F77=no
15603
 
module_cmds_F77=
15604
 
module_expsym_cmds_F77=
15605
 
link_all_deplibs_F77=unknown
15606
 
old_archive_cmds_F77=$old_archive_cmds
15607
 
no_undefined_flag_F77=
15608
 
whole_archive_flag_spec_F77=
15609
 
enable_shared_with_static_runtimes_F77=no
15610
 
 
15611
 
# Source file extension for f77 test sources.
15612
 
ac_ext=f
15613
 
 
15614
 
# Object file extension for compiled f77 test sources.
15615
 
objext=o
15616
 
objext_F77=$objext
15617
 
 
15618
 
# Code to be used in simple compile tests
15619
 
lt_simple_compile_test_code="\
15620
 
      subroutine t
15621
 
      return
15622
 
      end
15623
 
"
15624
 
 
15625
 
# Code to be used in simple link tests
15626
 
lt_simple_link_test_code="\
15627
 
      program t
15628
 
      end
15629
 
"
15630
 
 
15631
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15632
 
 
15633
 
# If no C compiler was specified, use CC.
15634
 
LTCC=${LTCC-"$CC"}
15635
 
 
15636
 
# If no C compiler flags were specified, use CFLAGS.
15637
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15638
 
 
15639
 
# Allow CC to be a program name with arguments.
15640
 
compiler=$CC
15641
 
 
15642
 
 
15643
 
# save warnings/boilerplate of simple test code
15644
 
ac_outfile=conftest.$ac_objext
15645
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15646
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15647
 
_lt_compiler_boilerplate=`cat conftest.err`
15648
 
$rm conftest*
15649
 
 
15650
 
ac_outfile=conftest.$ac_objext
15651
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15652
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15653
 
_lt_linker_boilerplate=`cat conftest.err`
15654
 
$rm -r conftest*
15655
 
 
15656
 
 
15657
 
# Allow CC to be a program name with arguments.
15658
 
lt_save_CC="$CC"
15659
 
CC=${F77-"f77"}
15660
 
compiler=$CC
15661
 
compiler_F77=$CC
15662
 
for cc_temp in $compiler""; do
15663
 
  case $cc_temp in
15664
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15665
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15666
 
    \-*) ;;
15667
 
    *) break;;
15668
 
  esac
15669
 
done
15670
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15671
 
 
15672
 
 
15673
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15674
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15675
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15676
 
echo "${ECHO_T}$can_build_shared" >&6; }
15677
 
 
15678
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15679
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15680
 
test "$can_build_shared" = "no" && enable_shared=no
15681
 
 
15682
 
# On AIX, shared libraries and static libraries use the same namespace, and
15683
 
# are all built from PIC.
15684
 
case $host_os in
15685
 
aix3*)
15686
 
  test "$enable_shared" = yes && enable_static=no
15687
 
  if test -n "$RANLIB"; then
15688
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15689
 
    postinstall_cmds='$RANLIB $lib'
15690
 
  fi
15691
 
  ;;
15692
 
aix[4-9]*)
15693
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15694
 
    test "$enable_shared" = yes && enable_static=no
15695
 
  fi
15696
 
  ;;
15697
 
esac
15698
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15699
 
echo "${ECHO_T}$enable_shared" >&6; }
15700
 
 
15701
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15702
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15703
 
# Make sure either enable_shared or enable_static is yes.
15704
 
test "$enable_shared" = yes || enable_static=yes
15705
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15706
 
echo "${ECHO_T}$enable_static" >&6; }
15707
 
 
15708
 
GCC_F77="$G77"
15709
 
LD_F77="$LD"
15710
 
 
15711
 
lt_prog_compiler_wl_F77=
15712
 
lt_prog_compiler_pic_F77=
15713
 
lt_prog_compiler_static_F77=
15714
 
 
15715
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15716
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15717
 
 
15718
 
  if test "$GCC" = yes; then
15719
 
    lt_prog_compiler_wl_F77='-Wl,'
15720
 
    lt_prog_compiler_static_F77='-static'
15721
 
 
15722
 
    case $host_os in
15723
 
      aix*)
15724
 
      # All AIX code is PIC.
15725
 
      if test "$host_cpu" = ia64; then
15726
 
        # AIX 5 now supports IA64 processor
15727
 
        lt_prog_compiler_static_F77='-Bstatic'
15728
 
      fi
15729
 
      ;;
15730
 
 
15731
 
    amigaos*)
15732
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15733
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15734
 
      # like `-m68040'.
15735
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15736
 
      ;;
15737
 
 
15738
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15739
 
      # PIC is the default for these OSes.
15740
 
      ;;
15741
 
 
15742
 
    mingw* | cygwin* | pw32* | os2*)
15743
 
      # This hack is so that the source file can tell whether it is being
15744
 
      # built for inclusion in a dll (and should export symbols for example).
15745
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15746
 
      # (--disable-auto-import) libraries
15747
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15748
 
      ;;
15749
 
 
15750
 
    darwin* | rhapsody*)
15751
 
      # PIC is the default on this platform
15752
 
      # Common symbols not allowed in MH_DYLIB files
15753
 
      lt_prog_compiler_pic_F77='-fno-common'
15754
 
      ;;
15755
 
 
15756
 
    interix[3-9]*)
15757
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15758
 
      # Instead, we relocate shared libraries at runtime.
15759
 
      ;;
15760
 
 
15761
 
    msdosdjgpp*)
15762
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15763
 
      # on systems that don't support them.
15764
 
      lt_prog_compiler_can_build_shared_F77=no
15765
 
      enable_shared=no
15766
 
      ;;
15767
 
 
15768
 
    sysv4*MP*)
15769
 
      if test -d /usr/nec; then
15770
 
        lt_prog_compiler_pic_F77=-Kconform_pic
15771
 
      fi
15772
 
      ;;
15773
 
 
15774
 
    hpux*)
15775
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776
 
      # not for PA HP-UX.
15777
 
      case $host_cpu in
15778
 
      hppa*64*|ia64*)
15779
 
        # +Z the default
15780
 
        ;;
15781
 
      *)
15782
 
        lt_prog_compiler_pic_F77='-fPIC'
15783
 
        ;;
15784
 
      esac
15785
 
      ;;
15786
 
 
15787
 
    *)
15788
 
      lt_prog_compiler_pic_F77='-fPIC'
15789
 
      ;;
15790
 
    esac
15791
 
  else
15792
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15793
 
    case $host_os in
15794
 
    aix*)
15795
 
      lt_prog_compiler_wl_F77='-Wl,'
15796
 
      if test "$host_cpu" = ia64; then
15797
 
        # AIX 5 now supports IA64 processor
15798
 
        lt_prog_compiler_static_F77='-Bstatic'
15799
 
      else
15800
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15801
 
      fi
15802
 
      ;;
15803
 
      darwin*)
15804
 
        # PIC is the default on this platform
15805
 
        # Common symbols not allowed in MH_DYLIB files
15806
 
       case $cc_basename in
15807
 
         xlc*)
15808
 
         lt_prog_compiler_pic_F77='-qnocommon'
15809
 
         lt_prog_compiler_wl_F77='-Wl,'
15810
 
         ;;
15811
 
       esac
15812
 
       ;;
15813
 
 
15814
 
    mingw* | cygwin* | pw32* | os2*)
15815
 
      # This hack is so that the source file can tell whether it is being
15816
 
      # built for inclusion in a dll (and should export symbols for example).
15817
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15818
 
      ;;
15819
 
 
15820
 
    hpux9* | hpux10* | hpux11*)
15821
 
      lt_prog_compiler_wl_F77='-Wl,'
15822
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15823
 
      # not for PA HP-UX.
15824
 
      case $host_cpu in
15825
 
      hppa*64*|ia64*)
15826
 
        # +Z the default
15827
 
        ;;
15828
 
      *)
15829
 
        lt_prog_compiler_pic_F77='+Z'
15830
 
        ;;
15831
 
      esac
15832
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15833
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15834
 
      ;;
15835
 
 
15836
 
    irix5* | irix6* | nonstopux*)
15837
 
      lt_prog_compiler_wl_F77='-Wl,'
15838
 
      # PIC (with -KPIC) is the default.
15839
 
      lt_prog_compiler_static_F77='-non_shared'
15840
 
      ;;
15841
 
 
15842
 
    newsos6)
15843
 
      lt_prog_compiler_pic_F77='-KPIC'
15844
 
      lt_prog_compiler_static_F77='-Bstatic'
15845
 
      ;;
15846
 
 
15847
 
    linux* | k*bsd*-gnu)
15848
 
      case $cc_basename in
15849
 
      icc* | ecc*)
15850
 
        lt_prog_compiler_wl_F77='-Wl,'
15851
 
        lt_prog_compiler_pic_F77='-KPIC'
15852
 
        lt_prog_compiler_static_F77='-static'
15853
 
        ;;
15854
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15855
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15856
 
        # which looks to be a dead project)
15857
 
        lt_prog_compiler_wl_F77='-Wl,'
15858
 
        lt_prog_compiler_pic_F77='-fpic'
15859
 
        lt_prog_compiler_static_F77='-Bstatic'
15860
 
        ;;
15861
 
      ccc*)
15862
 
        lt_prog_compiler_wl_F77='-Wl,'
15863
 
        # All Alpha code is PIC.
15864
 
        lt_prog_compiler_static_F77='-non_shared'
15865
 
        ;;
15866
 
      *)
15867
 
        case `$CC -V 2>&1 | sed 5q` in
15868
 
        *Sun\ C*)
15869
 
          # Sun C 5.9
15870
 
          lt_prog_compiler_pic_F77='-KPIC'
15871
 
          lt_prog_compiler_static_F77='-Bstatic'
15872
 
          lt_prog_compiler_wl_F77='-Wl,'
15873
 
          ;;
15874
 
        *Sun\ F*)
15875
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15876
 
          lt_prog_compiler_pic_F77='-KPIC'
15877
 
          lt_prog_compiler_static_F77='-Bstatic'
15878
 
          lt_prog_compiler_wl_F77=''
15879
 
          ;;
15880
 
        esac
15881
 
        ;;
15882
 
      esac
15883
 
      ;;
15884
 
 
15885
 
    osf3* | osf4* | osf5*)
15886
 
      lt_prog_compiler_wl_F77='-Wl,'
15887
 
      # All OSF/1 code is PIC.
15888
 
      lt_prog_compiler_static_F77='-non_shared'
15889
 
      ;;
15890
 
 
15891
 
    rdos*)
15892
 
      lt_prog_compiler_static_F77='-non_shared'
15893
 
      ;;
15894
 
 
15895
 
    solaris*)
15896
 
      lt_prog_compiler_pic_F77='-KPIC'
15897
 
      lt_prog_compiler_static_F77='-Bstatic'
15898
 
      case $cc_basename in
15899
 
      f77* | f90* | f95*)
15900
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
15901
 
      *)
15902
 
        lt_prog_compiler_wl_F77='-Wl,';;
15903
 
      esac
15904
 
      ;;
15905
 
 
15906
 
    sunos4*)
15907
 
      lt_prog_compiler_wl_F77='-Qoption ld '
15908
 
      lt_prog_compiler_pic_F77='-PIC'
15909
 
      lt_prog_compiler_static_F77='-Bstatic'
15910
 
      ;;
15911
 
 
15912
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15913
 
      lt_prog_compiler_wl_F77='-Wl,'
15914
 
      lt_prog_compiler_pic_F77='-KPIC'
15915
 
      lt_prog_compiler_static_F77='-Bstatic'
15916
 
      ;;
15917
 
 
15918
 
    sysv4*MP*)
15919
 
      if test -d /usr/nec ;then
15920
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
15921
 
        lt_prog_compiler_static_F77='-Bstatic'
15922
 
      fi
15923
 
      ;;
15924
 
 
15925
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15926
 
      lt_prog_compiler_wl_F77='-Wl,'
15927
 
      lt_prog_compiler_pic_F77='-KPIC'
15928
 
      lt_prog_compiler_static_F77='-Bstatic'
15929
 
      ;;
15930
 
 
15931
 
    unicos*)
15932
 
      lt_prog_compiler_wl_F77='-Wl,'
15933
 
      lt_prog_compiler_can_build_shared_F77=no
15934
 
      ;;
15935
 
 
15936
 
    uts4*)
15937
 
      lt_prog_compiler_pic_F77='-pic'
15938
 
      lt_prog_compiler_static_F77='-Bstatic'
15939
 
      ;;
15940
 
 
15941
 
    *)
15942
 
      lt_prog_compiler_can_build_shared_F77=no
15943
 
      ;;
15944
 
    esac
15945
 
  fi
15946
 
 
15947
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15948
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15949
 
 
15950
 
#
15951
 
# Check to make sure the PIC flag actually works.
15952
 
#
15953
 
if test -n "$lt_prog_compiler_pic_F77"; then
15954
 
 
15955
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15956
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15957
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15959
 
else
15960
 
  lt_cv_prog_compiler_pic_works_F77=no
15961
 
  ac_outfile=conftest.$ac_objext
15962
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15963
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15964
 
   # Insert the option either (1) after the last *FLAGS variable, or
15965
 
   # (2) before a word containing "conftest.", or (3) at the end.
15966
 
   # Note that $ac_compile itself does not contain backslashes and begins
15967
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15968
 
   # The option is referenced via a variable to avoid confusing sed.
15969
 
   lt_compile=`echo "$ac_compile" | $SED \
15970
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15971
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15972
 
   -e 's:$: $lt_compiler_flag:'`
15973
 
   (eval echo "\"\$as_me:15973: $lt_compile\"" >&5)
15974
 
   (eval "$lt_compile" 2>conftest.err)
15975
 
   ac_status=$?
15976
 
   cat conftest.err >&5
15977
 
   echo "$as_me:15977: \$? = $ac_status" >&5
15978
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15979
 
     # The compiler can only warn and ignore the option if not recognized
15980
 
     # So say no if there are warnings other than the usual output.
15981
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15982
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15983
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15984
 
       lt_cv_prog_compiler_pic_works_F77=yes
15985
 
     fi
15986
 
   fi
15987
 
   $rm conftest*
15988
 
 
15989
 
fi
15990
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15991
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15992
 
 
15993
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15994
 
    case $lt_prog_compiler_pic_F77 in
15995
 
     "" | " "*) ;;
15996
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15997
 
     esac
15998
 
else
15999
 
    lt_prog_compiler_pic_F77=
16000
 
     lt_prog_compiler_can_build_shared_F77=no
16001
 
fi
16002
 
 
16003
 
fi
16004
 
case $host_os in
16005
 
  # For platforms which do not support PIC, -DPIC is meaningless:
16006
 
  *djgpp*)
16007
 
    lt_prog_compiler_pic_F77=
16008
 
    ;;
16009
 
  *)
16010
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16011
 
    ;;
16012
 
esac
16013
 
 
16014
 
#
16015
 
# Check to make sure the static flag actually works.
16016
 
#
16017
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16018
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16019
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16020
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16022
 
else
16023
 
  lt_cv_prog_compiler_static_works_F77=no
16024
 
   save_LDFLAGS="$LDFLAGS"
16025
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16026
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16027
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16028
 
     # The linker can only warn and ignore the option if not recognized
16029
 
     # So say no if there are warnings
16030
 
     if test -s conftest.err; then
16031
 
       # Append any errors to the config.log.
16032
 
       cat conftest.err 1>&5
16033
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16034
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16035
 
       if diff conftest.exp conftest.er2 >/dev/null; then
16036
 
         lt_cv_prog_compiler_static_works_F77=yes
16037
 
       fi
16038
 
     else
16039
 
       lt_cv_prog_compiler_static_works_F77=yes
16040
 
     fi
16041
 
   fi
16042
 
   $rm -r conftest*
16043
 
   LDFLAGS="$save_LDFLAGS"
16044
 
 
16045
 
fi
16046
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16047
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16048
 
 
16049
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16050
 
    :
16051
 
else
16052
 
    lt_prog_compiler_static_F77=
16053
 
fi
16054
 
 
16055
 
 
16056
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16057
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16058
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16059
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16060
 
else
16061
 
  lt_cv_prog_compiler_c_o_F77=no
16062
 
   $rm -r conftest 2>/dev/null
16063
 
   mkdir conftest
16064
 
   cd conftest
16065
 
   mkdir out
16066
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16067
 
 
16068
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16069
 
   # Insert the option either (1) after the last *FLAGS variable, or
16070
 
   # (2) before a word containing "conftest.", or (3) at the end.
16071
 
   # Note that $ac_compile itself does not contain backslashes and begins
16072
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16073
 
   lt_compile=`echo "$ac_compile" | $SED \
16074
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16075
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16076
 
   -e 's:$: $lt_compiler_flag:'`
16077
 
   (eval echo "\"\$as_me:16077: $lt_compile\"" >&5)
16078
 
   (eval "$lt_compile" 2>out/conftest.err)
16079
 
   ac_status=$?
16080
 
   cat out/conftest.err >&5
16081
 
   echo "$as_me:16081: \$? = $ac_status" >&5
16082
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16083
 
   then
16084
 
     # The compiler can only warn and ignore the option if not recognized
16085
 
     # So say no if there are warnings
16086
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16087
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16088
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16089
 
       lt_cv_prog_compiler_c_o_F77=yes
16090
 
     fi
16091
 
   fi
16092
 
   chmod u+w . 2>&5
16093
 
   $rm conftest*
16094
 
   # SGI C++ compiler will create directory out/ii_files/ for
16095
 
   # template instantiation
16096
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16097
 
   $rm out/* && rmdir out
16098
 
   cd ..
16099
 
   rmdir conftest
16100
 
   $rm conftest*
16101
 
 
16102
 
fi
16103
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16104
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16105
 
 
16106
 
 
16107
 
hard_links="nottested"
16108
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16109
 
  # do not overwrite the value of need_locks provided by the user
16110
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16111
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16112
 
  hard_links=yes
16113
 
  $rm conftest*
16114
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16115
 
  touch conftest.a
16116
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
16117
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16118
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16119
 
echo "${ECHO_T}$hard_links" >&6; }
16120
 
  if test "$hard_links" = no; then
16121
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16122
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16123
 
    need_locks=warn
16124
 
  fi
16125
 
else
16126
 
  need_locks=no
16127
 
fi
16128
 
 
16129
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16130
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16131
 
 
16132
 
  runpath_var=
16133
 
  allow_undefined_flag_F77=
16134
 
  enable_shared_with_static_runtimes_F77=no
16135
 
  archive_cmds_F77=
16136
 
  archive_expsym_cmds_F77=
16137
 
  old_archive_From_new_cmds_F77=
16138
 
  old_archive_from_expsyms_cmds_F77=
16139
 
  export_dynamic_flag_spec_F77=
16140
 
  whole_archive_flag_spec_F77=
16141
 
  thread_safe_flag_spec_F77=
16142
 
  hardcode_libdir_flag_spec_F77=
16143
 
  hardcode_libdir_flag_spec_ld_F77=
16144
 
  hardcode_libdir_separator_F77=
16145
 
  hardcode_direct_F77=no
16146
 
  hardcode_minus_L_F77=no
16147
 
  hardcode_shlibpath_var_F77=unsupported
16148
 
  link_all_deplibs_F77=unknown
16149
 
  hardcode_automatic_F77=no
16150
 
  module_cmds_F77=
16151
 
  module_expsym_cmds_F77=
16152
 
  always_export_symbols_F77=no
16153
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16154
 
  # include_expsyms should be a list of space-separated symbols to be *always*
16155
 
  # included in the symbol list
16156
 
  include_expsyms_F77=
16157
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
16158
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16159
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16160
 
  # as well as any symbol that contains `d'.
16161
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16162
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16163
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
16164
 
  # the symbol is explicitly referenced.  Since portable code cannot
16165
 
  # rely on this symbol name, it's probably fine to never include it in
16166
 
  # preloaded symbol tables.
16167
 
  # Exclude shared library initialization/finalization symbols.
16168
 
  extract_expsyms_cmds=
16169
 
  # Just being paranoid about ensuring that cc_basename is set.
16170
 
  for cc_temp in $compiler""; do
16171
 
  case $cc_temp in
16172
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16173
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16174
 
    \-*) ;;
16175
 
    *) break;;
16176
 
  esac
16177
 
done
16178
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16179
 
 
16180
 
  case $host_os in
16181
 
  cygwin* | mingw* | pw32*)
16182
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16183
 
    # When not using gcc, we currently assume that we are using
16184
 
    # Microsoft Visual C++.
16185
 
    if test "$GCC" != yes; then
16186
 
      with_gnu_ld=no
16187
 
    fi
16188
 
    ;;
16189
 
  interix*)
16190
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16191
 
    with_gnu_ld=yes
16192
 
    ;;
16193
 
  openbsd*)
16194
 
    with_gnu_ld=no
16195
 
    ;;
16196
 
  esac
16197
 
 
16198
 
  ld_shlibs_F77=yes
16199
 
  if test "$with_gnu_ld" = yes; then
16200
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16201
 
    wlarc='${wl}'
16202
 
 
16203
 
    # Set some defaults for GNU ld with shared library support. These
16204
 
    # are reset later if shared libraries are not supported. Putting them
16205
 
    # here allows them to be overridden if necessary.
16206
 
    runpath_var=LD_RUN_PATH
16207
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16208
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16209
 
    # ancient GNU ld didn't support --whole-archive et. al.
16210
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16211
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16212
 
      else
16213
 
        whole_archive_flag_spec_F77=
16214
 
    fi
16215
 
    supports_anon_versioning=no
16216
 
    case `$LD -v 2>/dev/null` in
16217
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16218
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16219
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16220
 
      *\ 2.11.*) ;; # other 2.11 versions
16221
 
      *) supports_anon_versioning=yes ;;
16222
 
    esac
16223
 
 
16224
 
    # See if GNU ld supports shared libraries.
16225
 
    case $host_os in
16226
 
    aix[3-9]*)
16227
 
      # On AIX/PPC, the GNU linker is very broken
16228
 
      if test "$host_cpu" != ia64; then
16229
 
        ld_shlibs_F77=no
16230
 
        cat <<EOF 1>&2
16231
 
 
16232
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16233
 
*** to be unable to reliably create shared libraries on AIX.
16234
 
*** Therefore, libtool is disabling shared libraries support.  If you
16235
 
*** really care for shared libraries, you may want to modify your PATH
16236
 
*** so that a non-GNU linker is found, and then restart.
16237
 
 
16238
 
EOF
16239
 
      fi
16240
 
      ;;
16241
 
 
16242
 
    amigaos*)
16243
 
      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)'
16244
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16245
 
      hardcode_minus_L_F77=yes
16246
 
 
16247
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16248
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16249
 
      # to version 4, is to share data among multiple programs linked
16250
 
      # with the same dynamic library.  Since this doesn't match the
16251
 
      # behavior of shared libraries on other platforms, we can't use
16252
 
      # them.
16253
 
      ld_shlibs_F77=no
16254
 
      ;;
16255
 
 
16256
 
    beos*)
16257
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258
 
        allow_undefined_flag_F77=unsupported
16259
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16260
 
        # support --undefined.  This deserves some investigation.  FIXME
16261
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16262
 
      else
16263
 
        ld_shlibs_F77=no
16264
 
      fi
16265
 
      ;;
16266
 
 
16267
 
    cygwin* | mingw* | pw32*)
16268
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16269
 
      # as there is no search path for DLLs.
16270
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16271
 
      allow_undefined_flag_F77=unsupported
16272
 
      always_export_symbols_F77=no
16273
 
      enable_shared_with_static_runtimes_F77=yes
16274
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16275
 
 
16276
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16277
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16278
 
        # If the export-symbols file already is a .def file (1st line
16279
 
        # is EXPORTS), use it as is; otherwise, prepend...
16280
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281
 
          cp $export_symbols $output_objdir/$soname.def;
16282
 
        else
16283
 
          echo EXPORTS > $output_objdir/$soname.def;
16284
 
          cat $export_symbols >> $output_objdir/$soname.def;
16285
 
        fi~
16286
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16287
 
      else
16288
 
        ld_shlibs_F77=no
16289
 
      fi
16290
 
      ;;
16291
 
 
16292
 
    interix[3-9]*)
16293
 
      hardcode_direct_F77=no
16294
 
      hardcode_shlibpath_var_F77=no
16295
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16296
 
      export_dynamic_flag_spec_F77='${wl}-E'
16297
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16298
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16299
 
      # default) and relocated if they conflict, which is a slow very memory
16300
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16301
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16302
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16303
 
      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'
16304
 
      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'
16305
 
      ;;
16306
 
 
16307
 
    gnu* | linux* | k*bsd*-gnu)
16308
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309
 
        tmp_addflag=
16310
 
        case $cc_basename,$host_cpu in
16311
 
        pgcc*)                          # Portland Group C compiler
16312
 
          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'
16313
 
          tmp_addflag=' $pic_flag'
16314
 
          ;;
16315
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16316
 
          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'
16317
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16318
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16319
 
          tmp_addflag=' -i_dynamic' ;;
16320
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16321
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16322
 
        ifc* | ifort*)                  # Intel Fortran compiler
16323
 
          tmp_addflag=' -nofor_main' ;;
16324
 
        esac
16325
 
        case `$CC -V 2>&1 | sed 5q` in
16326
 
        *Sun\ C*)                       # Sun C 5.9
16327
 
          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'
16328
 
          tmp_sharedflag='-G' ;;
16329
 
        *Sun\ F*)                       # Sun Fortran 8.3
16330
 
          tmp_sharedflag='-G' ;;
16331
 
        *)
16332
 
          tmp_sharedflag='-shared' ;;
16333
 
        esac
16334
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16335
 
 
16336
 
        if test $supports_anon_versioning = yes; then
16337
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16338
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16339
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16340
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16341
 
        fi
16342
 
        link_all_deplibs_F77=no
16343
 
      else
16344
 
        ld_shlibs_F77=no
16345
 
      fi
16346
 
      ;;
16347
 
 
16348
 
    netbsd* | netbsdelf*-gnu)
16349
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16350
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16351
 
        wlarc=
16352
 
      else
16353
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16355
 
      fi
16356
 
      ;;
16357
 
 
16358
 
    solaris*)
16359
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16360
 
        ld_shlibs_F77=no
16361
 
        cat <<EOF 1>&2
16362
 
 
16363
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16364
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16365
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16366
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16367
 
*** your PATH or compiler configuration so that the native linker is
16368
 
*** used, and then restart.
16369
 
 
16370
 
EOF
16371
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16372
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16374
 
      else
16375
 
        ld_shlibs_F77=no
16376
 
      fi
16377
 
      ;;
16378
 
 
16379
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16380
 
      case `$LD -v 2>&1` in
16381
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16382
 
        ld_shlibs_F77=no
16383
 
        cat <<_LT_EOF 1>&2
16384
 
 
16385
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16386
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16387
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16388
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16389
 
*** your PATH or compiler configuration so that the native linker is
16390
 
*** used, and then restart.
16391
 
 
16392
 
_LT_EOF
16393
 
        ;;
16394
 
        *)
16395
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16397
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16398
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16399
 
          else
16400
 
            ld_shlibs_F77=no
16401
 
          fi
16402
 
        ;;
16403
 
      esac
16404
 
      ;;
16405
 
 
16406
 
    sunos4*)
16407
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16408
 
      wlarc=
16409
 
      hardcode_direct_F77=yes
16410
 
      hardcode_shlibpath_var_F77=no
16411
 
      ;;
16412
 
 
16413
 
    *)
16414
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16416
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16417
 
      else
16418
 
        ld_shlibs_F77=no
16419
 
      fi
16420
 
      ;;
16421
 
    esac
16422
 
 
16423
 
    if test "$ld_shlibs_F77" = no; then
16424
 
      runpath_var=
16425
 
      hardcode_libdir_flag_spec_F77=
16426
 
      export_dynamic_flag_spec_F77=
16427
 
      whole_archive_flag_spec_F77=
16428
 
    fi
16429
 
  else
16430
 
    # PORTME fill in a description of your system's linker (not GNU ld)
16431
 
    case $host_os in
16432
 
    aix3*)
16433
 
      allow_undefined_flag_F77=unsupported
16434
 
      always_export_symbols_F77=yes
16435
 
      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'
16436
 
      # Note: this linker hardcodes the directories in LIBPATH if there
16437
 
      # are no directories specified by -L.
16438
 
      hardcode_minus_L_F77=yes
16439
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16440
 
        # Neither direct hardcoding nor static linking is supported with a
16441
 
        # broken collect2.
16442
 
        hardcode_direct_F77=unsupported
16443
 
      fi
16444
 
      ;;
16445
 
 
16446
 
    aix[4-9]*)
16447
 
      if test "$host_cpu" = ia64; then
16448
 
        # On IA64, the linker does run time linking by default, so we don't
16449
 
        # have to do anything special.
16450
 
        aix_use_runtimelinking=no
16451
 
        exp_sym_flag='-Bexport'
16452
 
        no_entry_flag=""
16453
 
      else
16454
 
        # If we're using GNU nm, then we don't want the "-C" option.
16455
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16456
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16457
 
          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'
16458
 
        else
16459
 
          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'
16460
 
        fi
16461
 
        aix_use_runtimelinking=no
16462
 
 
16463
 
        # Test if we are trying to use run time linking or normal
16464
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16465
 
        # need to do runtime linking.
16466
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16467
 
          for ld_flag in $LDFLAGS; do
16468
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16469
 
            aix_use_runtimelinking=yes
16470
 
            break
16471
 
          fi
16472
 
          done
16473
 
          ;;
16474
 
        esac
16475
 
 
16476
 
        exp_sym_flag='-bexport'
16477
 
        no_entry_flag='-bnoentry'
16478
 
      fi
16479
 
 
16480
 
      # When large executables or shared objects are built, AIX ld can
16481
 
      # have problems creating the table of contents.  If linking a library
16482
 
      # or program results in "error TOC overflow" add -mminimal-toc to
16483
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16484
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16485
 
 
16486
 
      archive_cmds_F77=''
16487
 
      hardcode_direct_F77=yes
16488
 
      hardcode_libdir_separator_F77=':'
16489
 
      link_all_deplibs_F77=yes
16490
 
 
16491
 
      if test "$GCC" = yes; then
16492
 
        case $host_os in aix4.[012]|aix4.[012].*)
16493
 
        # We only want to do this on AIX 4.2 and lower, the check
16494
 
        # below for broken collect2 doesn't work under 4.3+
16495
 
          collect2name=`${CC} -print-prog-name=collect2`
16496
 
          if test -f "$collect2name" && \
16497
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16498
 
          then
16499
 
          # We have reworked collect2
16500
 
          :
16501
 
          else
16502
 
          # We have old collect2
16503
 
          hardcode_direct_F77=unsupported
16504
 
          # It fails to find uninstalled libraries when the uninstalled
16505
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
16506
 
          # to unsupported forces relinking
16507
 
          hardcode_minus_L_F77=yes
16508
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
16509
 
          hardcode_libdir_separator_F77=
16510
 
          fi
16511
 
          ;;
16512
 
        esac
16513
 
        shared_flag='-shared'
16514
 
        if test "$aix_use_runtimelinking" = yes; then
16515
 
          shared_flag="$shared_flag "'${wl}-G'
16516
 
        fi
16517
 
      else
16518
 
        # not using gcc
16519
 
        if test "$host_cpu" = ia64; then
16520
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16521
 
        # chokes on -Wl,-G. The following line is correct:
16522
 
          shared_flag='-G'
16523
 
        else
16524
 
          if test "$aix_use_runtimelinking" = yes; then
16525
 
            shared_flag='${wl}-G'
16526
 
          else
16527
 
            shared_flag='${wl}-bM:SRE'
16528
 
          fi
16529
 
        fi
16530
 
      fi
16531
 
 
16532
 
      # It seems that -bexpall does not export symbols beginning with
16533
 
      # underscore (_), so it is better to generate a list of symbols to export.
16534
 
      always_export_symbols_F77=yes
16535
 
      if test "$aix_use_runtimelinking" = yes; then
16536
 
        # Warning - without using the other runtime loading flags (-brtl),
16537
 
        # -berok will link without error, but may produce a broken library.
16538
 
        allow_undefined_flag_F77='-berok'
16539
 
       # Determine the default libpath from the value encoded in an empty executable.
16540
 
       cat >conftest.$ac_ext <<_ACEOF
16541
 
      program main
16542
 
 
16543
 
      end
16544
 
_ACEOF
16545
 
rm -f conftest.$ac_objext conftest$ac_exeext
16546
 
if { (ac_try="$ac_link"
16547
 
case "(($ac_try" in
16548
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549
 
  *) ac_try_echo=$ac_try;;
16550
 
esac
16551
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552
 
  (eval "$ac_link") 2>conftest.er1
16553
 
  ac_status=$?
16554
 
  grep -v '^ *+' conftest.er1 >conftest.err
16555
 
  rm -f conftest.er1
16556
 
  cat conftest.err >&5
16557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558
 
  (exit $ac_status); } && {
16559
 
         test -z "$ac_f77_werror_flag" ||
16560
 
         test ! -s conftest.err
16561
 
       } && test -s conftest$ac_exeext &&
16562
 
       $as_test_x conftest$ac_exeext; then
16563
 
 
16564
 
lt_aix_libpath_sed='
16565
 
    /Import File Strings/,/^$/ {
16566
 
        /^0/ {
16567
 
            s/^0  *\(.*\)$/\1/
16568
 
            p
16569
 
        }
16570
 
    }'
16571
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572
 
# Check for a 64-bit object if we didn't find anything.
16573
 
if test -z "$aix_libpath"; then
16574
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16575
 
fi
16576
 
else
16577
 
  echo "$as_me: failed program was:" >&5
16578
 
sed 's/^/| /' conftest.$ac_ext >&5
16579
 
 
16580
 
 
16581
 
fi
16582
 
 
16583
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584
 
      conftest$ac_exeext conftest.$ac_ext
16585
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16586
 
 
16587
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16588
 
        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"
16589
 
       else
16590
 
        if test "$host_cpu" = ia64; then
16591
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16592
 
          allow_undefined_flag_F77="-z nodefs"
16593
 
          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"
16594
 
        else
16595
 
         # Determine the default libpath from the value encoded in an empty executable.
16596
 
         cat >conftest.$ac_ext <<_ACEOF
16597
 
      program main
16598
 
 
16599
 
      end
16600
 
_ACEOF
16601
 
rm -f conftest.$ac_objext conftest$ac_exeext
16602
 
if { (ac_try="$ac_link"
16603
 
case "(($ac_try" in
16604
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605
 
  *) ac_try_echo=$ac_try;;
16606
 
esac
16607
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608
 
  (eval "$ac_link") 2>conftest.er1
16609
 
  ac_status=$?
16610
 
  grep -v '^ *+' conftest.er1 >conftest.err
16611
 
  rm -f conftest.er1
16612
 
  cat conftest.err >&5
16613
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614
 
  (exit $ac_status); } && {
16615
 
         test -z "$ac_f77_werror_flag" ||
16616
 
         test ! -s conftest.err
16617
 
       } && test -s conftest$ac_exeext &&
16618
 
       $as_test_x conftest$ac_exeext; then
16619
 
 
16620
 
lt_aix_libpath_sed='
16621
 
    /Import File Strings/,/^$/ {
16622
 
        /^0/ {
16623
 
            s/^0  *\(.*\)$/\1/
16624
 
            p
16625
 
        }
16626
 
    }'
16627
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16628
 
# Check for a 64-bit object if we didn't find anything.
16629
 
if test -z "$aix_libpath"; then
16630
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16631
 
fi
16632
 
else
16633
 
  echo "$as_me: failed program was:" >&5
16634
 
sed 's/^/| /' conftest.$ac_ext >&5
16635
 
 
16636
 
 
16637
 
fi
16638
 
 
16639
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640
 
      conftest$ac_exeext conftest.$ac_ext
16641
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16642
 
 
16643
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16644
 
          # Warning - without using the other run time loading flags,
16645
 
          # -berok will link without error, but may produce a broken library.
16646
 
          no_undefined_flag_F77=' ${wl}-bernotok'
16647
 
          allow_undefined_flag_F77=' ${wl}-berok'
16648
 
          # Exported symbols can be pulled into shared objects from archives
16649
 
          whole_archive_flag_spec_F77='$convenience'
16650
 
          archive_cmds_need_lc_F77=yes
16651
 
          # This is similar to how AIX traditionally builds its shared libraries.
16652
 
          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'
16653
 
        fi
16654
 
      fi
16655
 
      ;;
16656
 
 
16657
 
    amigaos*)
16658
 
      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)'
16659
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16660
 
      hardcode_minus_L_F77=yes
16661
 
      # see comment about different semantics on the GNU ld section
16662
 
      ld_shlibs_F77=no
16663
 
      ;;
16664
 
 
16665
 
    bsdi[45]*)
16666
 
      export_dynamic_flag_spec_F77=-rdynamic
16667
 
      ;;
16668
 
 
16669
 
    cygwin* | mingw* | pw32*)
16670
 
      # When not using gcc, we currently assume that we are using
16671
 
      # Microsoft Visual C++.
16672
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16673
 
      # no search path for DLLs.
16674
 
      hardcode_libdir_flag_spec_F77=' '
16675
 
      allow_undefined_flag_F77=unsupported
16676
 
      # Tell ltmain to make .lib files, not .a files.
16677
 
      libext=lib
16678
 
      # Tell ltmain to make .dll files, not .so files.
16679
 
      shrext_cmds=".dll"
16680
 
      # FIXME: Setting linknames here is a bad hack.
16681
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16682
 
      # The linker will automatically build a .lib file if we build a DLL.
16683
 
      old_archive_From_new_cmds_F77='true'
16684
 
      # FIXME: Should let the user specify the lib program.
16685
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16686
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16687
 
      enable_shared_with_static_runtimes_F77=yes
16688
 
      ;;
16689
 
 
16690
 
    darwin* | rhapsody*)
16691
 
      case $host_os in
16692
 
        rhapsody* | darwin1.[012])
16693
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16694
 
         ;;
16695
 
       *) # Darwin 1.3 on
16696
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16697
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16698
 
         else
16699
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16700
 
             10.[012])
16701
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16702
 
               ;;
16703
 
             10.*)
16704
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16705
 
               ;;
16706
 
           esac
16707
 
         fi
16708
 
         ;;
16709
 
      esac
16710
 
      archive_cmds_need_lc_F77=no
16711
 
      hardcode_direct_F77=no
16712
 
      hardcode_automatic_F77=yes
16713
 
      hardcode_shlibpath_var_F77=unsupported
16714
 
      whole_archive_flag_spec_F77=''
16715
 
      link_all_deplibs_F77=yes
16716
 
    if test "$GCC" = yes ; then
16717
 
        output_verbose_link_cmd='echo'
16718
 
        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}"
16719
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16720
 
        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}"
16721
 
        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}"
16722
 
    else
16723
 
      case $cc_basename in
16724
 
        xlc*)
16725
 
         output_verbose_link_cmd='echo'
16726
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16727
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16728
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16729
 
         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}'
16730
 
          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}'
16731
 
          ;;
16732
 
       *)
16733
 
         ld_shlibs_F77=no
16734
 
          ;;
16735
 
      esac
16736
 
    fi
16737
 
      ;;
16738
 
 
16739
 
    dgux*)
16740
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16742
 
      hardcode_shlibpath_var_F77=no
16743
 
      ;;
16744
 
 
16745
 
    freebsd1*)
16746
 
      ld_shlibs_F77=no
16747
 
      ;;
16748
 
 
16749
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16750
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16751
 
    # does not break anything, and helps significantly (at the cost of a little
16752
 
    # extra space).
16753
 
    freebsd2.2*)
16754
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16755
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16756
 
      hardcode_direct_F77=yes
16757
 
      hardcode_shlibpath_var_F77=no
16758
 
      ;;
16759
 
 
16760
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16761
 
    freebsd2*)
16762
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763
 
      hardcode_direct_F77=yes
16764
 
      hardcode_minus_L_F77=yes
16765
 
      hardcode_shlibpath_var_F77=no
16766
 
      ;;
16767
 
 
16768
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16769
 
    freebsd* | dragonfly*)
16770
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16771
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16772
 
      hardcode_direct_F77=yes
16773
 
      hardcode_shlibpath_var_F77=no
16774
 
      ;;
16775
 
 
16776
 
    hpux9*)
16777
 
      if test "$GCC" = yes; then
16778
 
        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'
16779
 
      else
16780
 
        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'
16781
 
      fi
16782
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16783
 
      hardcode_libdir_separator_F77=:
16784
 
      hardcode_direct_F77=yes
16785
 
 
16786
 
      # hardcode_minus_L: Not really in the search PATH,
16787
 
      # but as the default location of the library.
16788
 
      hardcode_minus_L_F77=yes
16789
 
      export_dynamic_flag_spec_F77='${wl}-E'
16790
 
      ;;
16791
 
 
16792
 
    hpux10*)
16793
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16794
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16795
 
      else
16796
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16797
 
      fi
16798
 
      if test "$with_gnu_ld" = no; then
16799
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16800
 
        hardcode_libdir_separator_F77=:
16801
 
 
16802
 
        hardcode_direct_F77=yes
16803
 
        export_dynamic_flag_spec_F77='${wl}-E'
16804
 
 
16805
 
        # hardcode_minus_L: Not really in the search PATH,
16806
 
        # but as the default location of the library.
16807
 
        hardcode_minus_L_F77=yes
16808
 
      fi
16809
 
      ;;
16810
 
 
16811
 
    hpux11*)
16812
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16813
 
        case $host_cpu in
16814
 
        hppa*64*)
16815
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816
 
          ;;
16817
 
        ia64*)
16818
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16819
 
          ;;
16820
 
        *)
16821
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16822
 
          ;;
16823
 
        esac
16824
 
      else
16825
 
        case $host_cpu in
16826
 
        hppa*64*)
16827
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16828
 
          ;;
16829
 
        ia64*)
16830
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16831
 
          ;;
16832
 
        *)
16833
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16834
 
          ;;
16835
 
        esac
16836
 
      fi
16837
 
      if test "$with_gnu_ld" = no; then
16838
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16839
 
        hardcode_libdir_separator_F77=:
16840
 
 
16841
 
        case $host_cpu in
16842
 
        hppa*64*|ia64*)
16843
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16844
 
          hardcode_direct_F77=no
16845
 
          hardcode_shlibpath_var_F77=no
16846
 
          ;;
16847
 
        *)
16848
 
          hardcode_direct_F77=yes
16849
 
          export_dynamic_flag_spec_F77='${wl}-E'
16850
 
 
16851
 
          # hardcode_minus_L: Not really in the search PATH,
16852
 
          # but as the default location of the library.
16853
 
          hardcode_minus_L_F77=yes
16854
 
          ;;
16855
 
        esac
16856
 
      fi
16857
 
      ;;
16858
 
 
16859
 
    irix5* | irix6* | nonstopux*)
16860
 
      if test "$GCC" = yes; then
16861
 
        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'
16862
 
      else
16863
 
        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'
16864
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16865
 
      fi
16866
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16867
 
      hardcode_libdir_separator_F77=:
16868
 
      link_all_deplibs_F77=yes
16869
 
      ;;
16870
 
 
16871
 
    netbsd* | netbsdelf*-gnu)
16872
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16873
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16874
 
      else
16875
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16876
 
      fi
16877
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16878
 
      hardcode_direct_F77=yes
16879
 
      hardcode_shlibpath_var_F77=no
16880
 
      ;;
16881
 
 
16882
 
    newsos6)
16883
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884
 
      hardcode_direct_F77=yes
16885
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16886
 
      hardcode_libdir_separator_F77=:
16887
 
      hardcode_shlibpath_var_F77=no
16888
 
      ;;
16889
 
 
16890
 
    openbsd*)
16891
 
      if test -f /usr/libexec/ld.so; then
16892
 
        hardcode_direct_F77=yes
16893
 
        hardcode_shlibpath_var_F77=no
16894
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16895
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16896
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16897
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16898
 
          export_dynamic_flag_spec_F77='${wl}-E'
16899
 
        else
16900
 
          case $host_os in
16901
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16902
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16903
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
16904
 
             ;;
16905
 
           *)
16906
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16907
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16908
 
             ;;
16909
 
          esac
16910
 
        fi
16911
 
      else
16912
 
        ld_shlibs_F77=no
16913
 
      fi
16914
 
      ;;
16915
 
 
16916
 
    os2*)
16917
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16918
 
      hardcode_minus_L_F77=yes
16919
 
      allow_undefined_flag_F77=unsupported
16920
 
      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'
16921
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16922
 
      ;;
16923
 
 
16924
 
    osf3*)
16925
 
      if test "$GCC" = yes; then
16926
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16927
 
        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'
16928
 
      else
16929
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16930
 
        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'
16931
 
      fi
16932
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16933
 
      hardcode_libdir_separator_F77=:
16934
 
      ;;
16935
 
 
16936
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16937
 
      if test "$GCC" = yes; then
16938
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16939
 
        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'
16940
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16941
 
      else
16942
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16943
 
        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'
16944
 
        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~
16945
 
        $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'
16946
 
 
16947
 
        # Both c and cxx compiler support -rpath directly
16948
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
16949
 
      fi
16950
 
      hardcode_libdir_separator_F77=:
16951
 
      ;;
16952
 
 
16953
 
    solaris*)
16954
 
      no_undefined_flag_F77=' -z text'
16955
 
      if test "$GCC" = yes; then
16956
 
        wlarc='${wl}'
16957
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16959
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16960
 
      else
16961
 
        wlarc=''
16962
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16964
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16965
 
      fi
16966
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16967
 
      hardcode_shlibpath_var_F77=no
16968
 
      case $host_os in
16969
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16970
 
      *)
16971
 
        # The compiler driver will combine and reorder linker options,
16972
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16973
 
        # but is careful enough not to reorder.
16974
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16975
 
        if test "$GCC" = yes; then
16976
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16977
 
        else
16978
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16979
 
        fi
16980
 
        ;;
16981
 
      esac
16982
 
      link_all_deplibs_F77=yes
16983
 
      ;;
16984
 
 
16985
 
    sunos4*)
16986
 
      if test "x$host_vendor" = xsequent; then
16987
 
        # Use $CC to link under sequent, because it throws in some extra .o
16988
 
        # files that make .init and .fini sections work.
16989
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16990
 
      else
16991
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16992
 
      fi
16993
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16994
 
      hardcode_direct_F77=yes
16995
 
      hardcode_minus_L_F77=yes
16996
 
      hardcode_shlibpath_var_F77=no
16997
 
      ;;
16998
 
 
16999
 
    sysv4)
17000
 
      case $host_vendor in
17001
 
        sni)
17002
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003
 
          hardcode_direct_F77=yes # is this really true???
17004
 
        ;;
17005
 
        siemens)
17006
 
          ## LD is ld it makes a PLAMLIB
17007
 
          ## CC just makes a GrossModule.
17008
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17009
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
17010
 
          hardcode_direct_F77=no
17011
 
        ;;
17012
 
        motorola)
17013
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17015
 
        ;;
17016
 
      esac
17017
 
      runpath_var='LD_RUN_PATH'
17018
 
      hardcode_shlibpath_var_F77=no
17019
 
      ;;
17020
 
 
17021
 
    sysv4.3*)
17022
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17023
 
      hardcode_shlibpath_var_F77=no
17024
 
      export_dynamic_flag_spec_F77='-Bexport'
17025
 
      ;;
17026
 
 
17027
 
    sysv4*MP*)
17028
 
      if test -d /usr/nec; then
17029
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17030
 
        hardcode_shlibpath_var_F77=no
17031
 
        runpath_var=LD_RUN_PATH
17032
 
        hardcode_runpath_var=yes
17033
 
        ld_shlibs_F77=yes
17034
 
      fi
17035
 
      ;;
17036
 
 
17037
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17038
 
      no_undefined_flag_F77='${wl}-z,text'
17039
 
      archive_cmds_need_lc_F77=no
17040
 
      hardcode_shlibpath_var_F77=no
17041
 
      runpath_var='LD_RUN_PATH'
17042
 
 
17043
 
      if test "$GCC" = yes; then
17044
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046
 
      else
17047
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17049
 
      fi
17050
 
      ;;
17051
 
 
17052
 
    sysv5* | sco3.2v5* | sco5v6*)
17053
 
      # Note: We can NOT use -z defs as we might desire, because we do not
17054
 
      # link with -lc, and that would cause any symbols used from libc to
17055
 
      # always be unresolved, which means just about no library would
17056
 
      # ever link correctly.  If we're not using GNU ld we use -z text
17057
 
      # though, which does catch some bad symbols but isn't as heavy-handed
17058
 
      # as -z defs.
17059
 
      no_undefined_flag_F77='${wl}-z,text'
17060
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
17061
 
      archive_cmds_need_lc_F77=no
17062
 
      hardcode_shlibpath_var_F77=no
17063
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17064
 
      hardcode_libdir_separator_F77=':'
17065
 
      link_all_deplibs_F77=yes
17066
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
17067
 
      runpath_var='LD_RUN_PATH'
17068
 
 
17069
 
      if test "$GCC" = yes; then
17070
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17072
 
      else
17073
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17075
 
      fi
17076
 
      ;;
17077
 
 
17078
 
    uts4*)
17079
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17080
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
17081
 
      hardcode_shlibpath_var_F77=no
17082
 
      ;;
17083
 
 
17084
 
    *)
17085
 
      ld_shlibs_F77=no
17086
 
      ;;
17087
 
    esac
17088
 
  fi
17089
 
 
17090
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17091
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17092
 
test "$ld_shlibs_F77" = no && can_build_shared=no
17093
 
 
17094
 
#
17095
 
# Do we need to explicitly link libc?
17096
 
#
17097
 
case "x$archive_cmds_need_lc_F77" in
17098
 
x|xyes)
17099
 
  # Assume -lc should be added
17100
 
  archive_cmds_need_lc_F77=yes
17101
 
 
17102
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17103
 
    case $archive_cmds_F77 in
17104
 
    *'~'*)
17105
 
      # FIXME: we may have to deal with multi-command sequences.
17106
 
      ;;
17107
 
    '$CC '*)
17108
 
      # Test whether the compiler implicitly links with -lc since on some
17109
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17110
 
      # to ld, don't add -lc before -lgcc.
17111
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17112
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17113
 
      $rm conftest*
17114
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17115
 
 
17116
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17117
 
  (eval $ac_compile) 2>&5
17118
 
  ac_status=$?
17119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120
 
  (exit $ac_status); } 2>conftest.err; then
17121
 
        soname=conftest
17122
 
        lib=conftest
17123
 
        libobjs=conftest.$ac_objext
17124
 
        deplibs=
17125
 
        wl=$lt_prog_compiler_wl_F77
17126
 
        pic_flag=$lt_prog_compiler_pic_F77
17127
 
        compiler_flags=-v
17128
 
        linker_flags=-v
17129
 
        verstring=
17130
 
        output_objdir=.
17131
 
        libname=conftest
17132
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17133
 
        allow_undefined_flag_F77=
17134
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17135
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17136
 
  ac_status=$?
17137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138
 
  (exit $ac_status); }
17139
 
        then
17140
 
          archive_cmds_need_lc_F77=no
17141
 
        else
17142
 
          archive_cmds_need_lc_F77=yes
17143
 
        fi
17144
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17145
 
      else
17146
 
        cat conftest.err 1>&5
17147
 
      fi
17148
 
      $rm conftest*
17149
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17150
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17151
 
      ;;
17152
 
    esac
17153
 
  fi
17154
 
  ;;
17155
 
esac
17156
 
 
17157
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17158
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17159
 
library_names_spec=
17160
 
libname_spec='lib$name'
17161
 
soname_spec=
17162
 
shrext_cmds=".so"
17163
 
postinstall_cmds=
17164
 
postuninstall_cmds=
17165
 
finish_cmds=
17166
 
finish_eval=
17167
 
shlibpath_var=
17168
 
shlibpath_overrides_runpath=unknown
17169
 
version_type=none
17170
 
dynamic_linker="$host_os ld.so"
17171
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17172
 
 
17173
 
need_lib_prefix=unknown
17174
 
hardcode_into_libs=no
17175
 
 
17176
 
# when you set need_version to no, make sure it does not cause -set_version
17177
 
# flags to be left without arguments
17178
 
need_version=unknown
17179
 
 
17180
 
case $host_os in
17181
 
aix3*)
17182
 
  version_type=linux
17183
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17184
 
  shlibpath_var=LIBPATH
17185
 
 
17186
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17187
 
  soname_spec='${libname}${release}${shared_ext}$major'
17188
 
  ;;
17189
 
 
17190
 
aix[4-9]*)
17191
 
  version_type=linux
17192
 
  need_lib_prefix=no
17193
 
  need_version=no
17194
 
  hardcode_into_libs=yes
17195
 
  if test "$host_cpu" = ia64; then
17196
 
    # AIX 5 supports IA64
17197
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17198
 
    shlibpath_var=LD_LIBRARY_PATH
17199
 
  else
17200
 
    # With GCC up to 2.95.x, collect2 would create an import file
17201
 
    # for dependence libraries.  The import file would start with
17202
 
    # the line `#! .'.  This would cause the generated library to
17203
 
    # depend on `.', always an invalid library.  This was fixed in
17204
 
    # development snapshots of GCC prior to 3.0.
17205
 
    case $host_os in
17206
 
      aix4 | aix4.[01] | aix4.[01].*)
17207
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17208
 
           echo ' yes '
17209
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17210
 
        :
17211
 
      else
17212
 
        can_build_shared=no
17213
 
      fi
17214
 
      ;;
17215
 
    esac
17216
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17217
 
    # soname into executable. Probably we can add versioning support to
17218
 
    # collect2, so additional links can be useful in future.
17219
 
    if test "$aix_use_runtimelinking" = yes; then
17220
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17221
 
      # instead of lib<name>.a to let people know that these are not
17222
 
      # typical AIX shared libraries.
17223
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224
 
    else
17225
 
      # We preserve .a as extension for shared libraries through AIX4.2
17226
 
      # and later when we are not doing run time linking.
17227
 
      library_names_spec='${libname}${release}.a $libname.a'
17228
 
      soname_spec='${libname}${release}${shared_ext}$major'
17229
 
    fi
17230
 
    shlibpath_var=LIBPATH
17231
 
  fi
17232
 
  ;;
17233
 
 
17234
 
amigaos*)
17235
 
  library_names_spec='$libname.ixlibrary $libname.a'
17236
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17237
 
  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'
17238
 
  ;;
17239
 
 
17240
 
beos*)
17241
 
  library_names_spec='${libname}${shared_ext}'
17242
 
  dynamic_linker="$host_os ld.so"
17243
 
  shlibpath_var=LIBRARY_PATH
17244
 
  ;;
17245
 
 
17246
 
bsdi[45]*)
17247
 
  version_type=linux
17248
 
  need_version=no
17249
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250
 
  soname_spec='${libname}${release}${shared_ext}$major'
17251
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17252
 
  shlibpath_var=LD_LIBRARY_PATH
17253
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17254
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17255
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17256
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17257
 
  # libtool to hard-code these into programs
17258
 
  ;;
17259
 
 
17260
 
cygwin* | mingw* | pw32*)
17261
 
  version_type=windows
17262
 
  shrext_cmds=".dll"
17263
 
  need_version=no
17264
 
  need_lib_prefix=no
17265
 
 
17266
 
  case $GCC,$host_os in
17267
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17268
 
    library_names_spec='$libname.dll.a'
17269
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17270
 
    postinstall_cmds='base_file=`basename \${file}`~
17271
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17272
 
      dldir=$destdir/`dirname \$dlpath`~
17273
 
      test -d \$dldir || mkdir -p \$dldir~
17274
 
      $install_prog $dir/$dlname \$dldir/$dlname~
17275
 
      chmod a+x \$dldir/$dlname'
17276
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17277
 
      dlpath=$dir/\$dldll~
17278
 
       $rm \$dlpath'
17279
 
    shlibpath_overrides_runpath=yes
17280
 
 
17281
 
    case $host_os in
17282
 
    cygwin*)
17283
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17284
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17285
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17286
 
      ;;
17287
 
    mingw*)
17288
 
      # MinGW DLLs use traditional 'lib' prefix
17289
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17290
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17291
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17292
 
        # It is most probably a Windows format PATH printed by
17293
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17294
 
        # path with ; separators, and with drive letters. We can handle the
17295
 
        # drive letters (cygwin fileutils understands them), so leave them,
17296
 
        # especially as we might pass files found there to a mingw objdump,
17297
 
        # which wouldn't understand a cygwinified path. Ahh.
17298
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17299
 
      else
17300
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17301
 
      fi
17302
 
      ;;
17303
 
    pw32*)
17304
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17305
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17306
 
      ;;
17307
 
    esac
17308
 
    ;;
17309
 
 
17310
 
  *)
17311
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17312
 
    ;;
17313
 
  esac
17314
 
  dynamic_linker='Win32 ld.exe'
17315
 
  # FIXME: first we should search . and the directory the executable is in
17316
 
  shlibpath_var=PATH
17317
 
  ;;
17318
 
 
17319
 
darwin* | rhapsody*)
17320
 
  dynamic_linker="$host_os dyld"
17321
 
  version_type=darwin
17322
 
  need_lib_prefix=no
17323
 
  need_version=no
17324
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17325
 
  soname_spec='${libname}${release}${major}$shared_ext'
17326
 
  shlibpath_overrides_runpath=yes
17327
 
  shlibpath_var=DYLD_LIBRARY_PATH
17328
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17329
 
 
17330
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17331
 
  ;;
17332
 
 
17333
 
dgux*)
17334
 
  version_type=linux
17335
 
  need_lib_prefix=no
17336
 
  need_version=no
17337
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17338
 
  soname_spec='${libname}${release}${shared_ext}$major'
17339
 
  shlibpath_var=LD_LIBRARY_PATH
17340
 
  ;;
17341
 
 
17342
 
freebsd1*)
17343
 
  dynamic_linker=no
17344
 
  ;;
17345
 
 
17346
 
freebsd* | dragonfly*)
17347
 
  # DragonFly does not have aout.  When/if they implement a new
17348
 
  # versioning mechanism, adjust this.
17349
 
  if test -x /usr/bin/objformat; then
17350
 
    objformat=`/usr/bin/objformat`
17351
 
  else
17352
 
    case $host_os in
17353
 
    freebsd[123]*) objformat=aout ;;
17354
 
    *) objformat=elf ;;
17355
 
    esac
17356
 
  fi
17357
 
  version_type=freebsd-$objformat
17358
 
  case $version_type in
17359
 
    freebsd-elf*)
17360
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17361
 
      need_version=no
17362
 
      need_lib_prefix=no
17363
 
      ;;
17364
 
    freebsd-*)
17365
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17366
 
      need_version=yes
17367
 
      ;;
17368
 
  esac
17369
 
  shlibpath_var=LD_LIBRARY_PATH
17370
 
  case $host_os in
17371
 
  freebsd2*)
17372
 
    shlibpath_overrides_runpath=yes
17373
 
    ;;
17374
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17375
 
    shlibpath_overrides_runpath=yes
17376
 
    hardcode_into_libs=yes
17377
 
    ;;
17378
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17379
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17380
 
    shlibpath_overrides_runpath=no
17381
 
    hardcode_into_libs=yes
17382
 
    ;;
17383
 
  *) # from 4.6 on, and DragonFly
17384
 
    shlibpath_overrides_runpath=yes
17385
 
    hardcode_into_libs=yes
17386
 
    ;;
17387
 
  esac
17388
 
  ;;
17389
 
 
17390
 
gnu*)
17391
 
  version_type=linux
17392
 
  need_lib_prefix=no
17393
 
  need_version=no
17394
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17395
 
  soname_spec='${libname}${release}${shared_ext}$major'
17396
 
  shlibpath_var=LD_LIBRARY_PATH
17397
 
  hardcode_into_libs=yes
17398
 
  ;;
17399
 
 
17400
 
hpux9* | hpux10* | hpux11*)
17401
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17402
 
  # link against other versions.
17403
 
  version_type=sunos
17404
 
  need_lib_prefix=no
17405
 
  need_version=no
17406
 
  case $host_cpu in
17407
 
  ia64*)
17408
 
    shrext_cmds='.so'
17409
 
    hardcode_into_libs=yes
17410
 
    dynamic_linker="$host_os dld.so"
17411
 
    shlibpath_var=LD_LIBRARY_PATH
17412
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17413
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414
 
    soname_spec='${libname}${release}${shared_ext}$major'
17415
 
    if test "X$HPUX_IA64_MODE" = X32; then
17416
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17417
 
    else
17418
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17419
 
    fi
17420
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17421
 
    ;;
17422
 
   hppa*64*)
17423
 
     shrext_cmds='.sl'
17424
 
     hardcode_into_libs=yes
17425
 
     dynamic_linker="$host_os dld.sl"
17426
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17427
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17428
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429
 
     soname_spec='${libname}${release}${shared_ext}$major'
17430
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17431
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17432
 
     ;;
17433
 
   *)
17434
 
    shrext_cmds='.sl'
17435
 
    dynamic_linker="$host_os dld.sl"
17436
 
    shlibpath_var=SHLIB_PATH
17437
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17438
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439
 
    soname_spec='${libname}${release}${shared_ext}$major'
17440
 
    ;;
17441
 
  esac
17442
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17443
 
  postinstall_cmds='chmod 555 $lib'
17444
 
  ;;
17445
 
 
17446
 
interix[3-9]*)
17447
 
  version_type=linux
17448
 
  need_lib_prefix=no
17449
 
  need_version=no
17450
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17451
 
  soname_spec='${libname}${release}${shared_ext}$major'
17452
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17453
 
  shlibpath_var=LD_LIBRARY_PATH
17454
 
  shlibpath_overrides_runpath=no
17455
 
  hardcode_into_libs=yes
17456
 
  ;;
17457
 
 
17458
 
irix5* | irix6* | nonstopux*)
17459
 
  case $host_os in
17460
 
    nonstopux*) version_type=nonstopux ;;
17461
 
    *)
17462
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17463
 
                version_type=linux
17464
 
        else
17465
 
                version_type=irix
17466
 
        fi ;;
17467
 
  esac
17468
 
  need_lib_prefix=no
17469
 
  need_version=no
17470
 
  soname_spec='${libname}${release}${shared_ext}$major'
17471
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17472
 
  case $host_os in
17473
 
  irix5* | nonstopux*)
17474
 
    libsuff= shlibsuff=
17475
 
    ;;
17476
 
  *)
17477
 
    case $LD in # libtool.m4 will add one of these switches to LD
17478
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17479
 
      libsuff= shlibsuff= libmagic=32-bit;;
17480
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17481
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17482
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17483
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17484
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17485
 
    esac
17486
 
    ;;
17487
 
  esac
17488
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17489
 
  shlibpath_overrides_runpath=no
17490
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17491
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17492
 
  hardcode_into_libs=yes
17493
 
  ;;
17494
 
 
17495
 
# No shared lib support for Linux oldld, aout, or coff.
17496
 
linux*oldld* | linux*aout* | linux*coff*)
17497
 
  dynamic_linker=no
17498
 
  ;;
17499
 
 
17500
 
# This must be Linux ELF.
17501
 
linux* | k*bsd*-gnu)
17502
 
  version_type=linux
17503
 
  need_lib_prefix=no
17504
 
  need_version=no
17505
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506
 
  soname_spec='${libname}${release}${shared_ext}$major'
17507
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17508
 
  shlibpath_var=LD_LIBRARY_PATH
17509
 
  shlibpath_overrides_runpath=no
17510
 
  # This implies no fast_install, which is unacceptable.
17511
 
  # Some rework will be needed to allow for fast_install
17512
 
  # before this can be enabled.
17513
 
  hardcode_into_libs=yes
17514
 
 
17515
 
  # Append ld.so.conf contents to the search path
17516
 
  if test -f /etc/ld.so.conf; then
17517
 
    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' ' '`
17518
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17519
 
  fi
17520
 
 
17521
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17522
 
  # powerpc, because MkLinux only supported shared libraries with the
17523
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17524
 
  # most powerpc-linux boxes support dynamic linking these days and
17525
 
  # people can always --disable-shared, the test was removed, and we
17526
 
  # assume the GNU/Linux dynamic linker is in use.
17527
 
  dynamic_linker='GNU/Linux ld.so'
17528
 
  ;;
17529
 
 
17530
 
netbsdelf*-gnu)
17531
 
  version_type=linux
17532
 
  need_lib_prefix=no
17533
 
  need_version=no
17534
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17535
 
  soname_spec='${libname}${release}${shared_ext}$major'
17536
 
  shlibpath_var=LD_LIBRARY_PATH
17537
 
  shlibpath_overrides_runpath=no
17538
 
  hardcode_into_libs=yes
17539
 
  dynamic_linker='NetBSD ld.elf_so'
17540
 
  ;;
17541
 
 
17542
 
netbsd*)
17543
 
  version_type=sunos
17544
 
  need_lib_prefix=no
17545
 
  need_version=no
17546
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17547
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17548
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17549
 
    dynamic_linker='NetBSD (a.out) ld.so'
17550
 
  else
17551
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17552
 
    soname_spec='${libname}${release}${shared_ext}$major'
17553
 
    dynamic_linker='NetBSD ld.elf_so'
17554
 
  fi
17555
 
  shlibpath_var=LD_LIBRARY_PATH
17556
 
  shlibpath_overrides_runpath=yes
17557
 
  hardcode_into_libs=yes
17558
 
  ;;
17559
 
 
17560
 
newsos6)
17561
 
  version_type=linux
17562
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563
 
  shlibpath_var=LD_LIBRARY_PATH
17564
 
  shlibpath_overrides_runpath=yes
17565
 
  ;;
17566
 
 
17567
 
nto-qnx*)
17568
 
  version_type=linux
17569
 
  need_lib_prefix=no
17570
 
  need_version=no
17571
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572
 
  soname_spec='${libname}${release}${shared_ext}$major'
17573
 
  shlibpath_var=LD_LIBRARY_PATH
17574
 
  shlibpath_overrides_runpath=yes
17575
 
  ;;
17576
 
 
17577
 
openbsd*)
17578
 
  version_type=sunos
17579
 
  sys_lib_dlsearch_path_spec="/usr/lib"
17580
 
  need_lib_prefix=no
17581
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17582
 
  case $host_os in
17583
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17584
 
    *)                         need_version=no  ;;
17585
 
  esac
17586
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17588
 
  shlibpath_var=LD_LIBRARY_PATH
17589
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17590
 
    case $host_os in
17591
 
      openbsd2.[89] | openbsd2.[89].*)
17592
 
        shlibpath_overrides_runpath=no
17593
 
        ;;
17594
 
      *)
17595
 
        shlibpath_overrides_runpath=yes
17596
 
        ;;
17597
 
      esac
17598
 
  else
17599
 
    shlibpath_overrides_runpath=yes
17600
 
  fi
17601
 
  ;;
17602
 
 
17603
 
os2*)
17604
 
  libname_spec='$name'
17605
 
  shrext_cmds=".dll"
17606
 
  need_lib_prefix=no
17607
 
  library_names_spec='$libname${shared_ext} $libname.a'
17608
 
  dynamic_linker='OS/2 ld.exe'
17609
 
  shlibpath_var=LIBPATH
17610
 
  ;;
17611
 
 
17612
 
osf3* | osf4* | osf5*)
17613
 
  version_type=osf
17614
 
  need_lib_prefix=no
17615
 
  need_version=no
17616
 
  soname_spec='${libname}${release}${shared_ext}$major'
17617
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618
 
  shlibpath_var=LD_LIBRARY_PATH
17619
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17620
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17621
 
  ;;
17622
 
 
17623
 
rdos*)
17624
 
  dynamic_linker=no
17625
 
  ;;
17626
 
 
17627
 
solaris*)
17628
 
  version_type=linux
17629
 
  need_lib_prefix=no
17630
 
  need_version=no
17631
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632
 
  soname_spec='${libname}${release}${shared_ext}$major'
17633
 
  shlibpath_var=LD_LIBRARY_PATH
17634
 
  shlibpath_overrides_runpath=yes
17635
 
  hardcode_into_libs=yes
17636
 
  # ldd complains unless libraries are executable
17637
 
  postinstall_cmds='chmod +x $lib'
17638
 
  ;;
17639
 
 
17640
 
sunos4*)
17641
 
  version_type=sunos
17642
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17643
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17644
 
  shlibpath_var=LD_LIBRARY_PATH
17645
 
  shlibpath_overrides_runpath=yes
17646
 
  if test "$with_gnu_ld" = yes; then
17647
 
    need_lib_prefix=no
17648
 
  fi
17649
 
  need_version=yes
17650
 
  ;;
17651
 
 
17652
 
sysv4 | sysv4.3*)
17653
 
  version_type=linux
17654
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655
 
  soname_spec='${libname}${release}${shared_ext}$major'
17656
 
  shlibpath_var=LD_LIBRARY_PATH
17657
 
  case $host_vendor in
17658
 
    sni)
17659
 
      shlibpath_overrides_runpath=no
17660
 
      need_lib_prefix=no
17661
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17662
 
      runpath_var=LD_RUN_PATH
17663
 
      ;;
17664
 
    siemens)
17665
 
      need_lib_prefix=no
17666
 
      ;;
17667
 
    motorola)
17668
 
      need_lib_prefix=no
17669
 
      need_version=no
17670
 
      shlibpath_overrides_runpath=no
17671
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17672
 
      ;;
17673
 
  esac
17674
 
  ;;
17675
 
 
17676
 
sysv4*MP*)
17677
 
  if test -d /usr/nec ;then
17678
 
    version_type=linux
17679
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17680
 
    soname_spec='$libname${shared_ext}.$major'
17681
 
    shlibpath_var=LD_LIBRARY_PATH
17682
 
  fi
17683
 
  ;;
17684
 
 
17685
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17686
 
  version_type=freebsd-elf
17687
 
  need_lib_prefix=no
17688
 
  need_version=no
17689
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17690
 
  soname_spec='${libname}${release}${shared_ext}$major'
17691
 
  shlibpath_var=LD_LIBRARY_PATH
17692
 
  hardcode_into_libs=yes
17693
 
  if test "$with_gnu_ld" = yes; then
17694
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17695
 
    shlibpath_overrides_runpath=no
17696
 
  else
17697
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17698
 
    shlibpath_overrides_runpath=yes
17699
 
    case $host_os in
17700
 
      sco3.2v5*)
17701
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17702
 
        ;;
17703
 
    esac
17704
 
  fi
17705
 
  sys_lib_dlsearch_path_spec='/usr/lib'
17706
 
  ;;
17707
 
 
17708
 
uts4*)
17709
 
  version_type=linux
17710
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711
 
  soname_spec='${libname}${release}${shared_ext}$major'
17712
 
  shlibpath_var=LD_LIBRARY_PATH
17713
 
  ;;
17714
 
 
17715
 
*)
17716
 
  dynamic_linker=no
17717
 
  ;;
17718
 
esac
17719
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17720
 
echo "${ECHO_T}$dynamic_linker" >&6; }
17721
 
test "$dynamic_linker" = no && can_build_shared=no
17722
 
 
17723
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17725
 
else
17726
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17727
 
fi
17728
 
 
17729
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17730
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17732
 
else
17733
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17734
 
fi
17735
 
 
17736
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17737
 
 
17738
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17739
 
if test "$GCC" = yes; then
17740
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17741
 
fi
17742
 
 
17743
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17744
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17745
 
hardcode_action_F77=
17746
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
17747
 
   test -n "$runpath_var_F77" || \
17748
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
17749
 
 
17750
 
  # We can hardcode non-existant directories.
17751
 
  if test "$hardcode_direct_F77" != no &&
17752
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17753
 
     # have to relink, otherwise we might link with an installed library
17754
 
     # when we should be linking with a yet-to-be-installed one
17755
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17756
 
     test "$hardcode_minus_L_F77" != no; then
17757
 
    # Linking always hardcodes the temporary library directory.
17758
 
    hardcode_action_F77=relink
17759
 
  else
17760
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17761
 
    hardcode_action_F77=immediate
17762
 
  fi
17763
 
else
17764
 
  # We cannot hardcode anything, or else we can only hardcode existing
17765
 
  # directories.
17766
 
  hardcode_action_F77=unsupported
17767
 
fi
17768
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17769
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17770
 
 
17771
 
if test "$hardcode_action_F77" = relink; then
17772
 
  # Fast installation is not supported
17773
 
  enable_fast_install=no
17774
 
elif test "$shlibpath_overrides_runpath" = yes ||
17775
 
     test "$enable_shared" = no; then
17776
 
  # Fast installation is not necessary
17777
 
  enable_fast_install=needless
17778
 
fi
17779
 
 
17780
 
 
17781
 
# The else clause should only fire when bootstrapping the
17782
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17783
 
# with your package, and you will get complaints that there are
17784
 
# no rules to generate ltmain.sh.
17785
 
if test -f "$ltmain"; then
17786
 
  # See if we are running on zsh, and set the options which allow our commands through
17787
 
  # without removal of \ escapes.
17788
 
  if test -n "${ZSH_VERSION+set}" ; then
17789
 
    setopt NO_GLOB_SUBST
17790
 
  fi
17791
 
  # Now quote all the things that may contain metacharacters while being
17792
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17793
 
  # variables and quote the copies for generation of the libtool script.
17794
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17795
 
    SED SHELL STRIP \
17796
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17797
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17798
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17799
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17800
 
    lt_cv_sys_global_symbol_to_c_name_address \
17801
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17802
 
    old_postinstall_cmds old_postuninstall_cmds \
17803
 
    compiler_F77 \
17804
 
    CC_F77 \
17805
 
    LD_F77 \
17806
 
    lt_prog_compiler_wl_F77 \
17807
 
    lt_prog_compiler_pic_F77 \
17808
 
    lt_prog_compiler_static_F77 \
17809
 
    lt_prog_compiler_no_builtin_flag_F77 \
17810
 
    export_dynamic_flag_spec_F77 \
17811
 
    thread_safe_flag_spec_F77 \
17812
 
    whole_archive_flag_spec_F77 \
17813
 
    enable_shared_with_static_runtimes_F77 \
17814
 
    old_archive_cmds_F77 \
17815
 
    old_archive_from_new_cmds_F77 \
17816
 
    predep_objects_F77 \
17817
 
    postdep_objects_F77 \
17818
 
    predeps_F77 \
17819
 
    postdeps_F77 \
17820
 
    compiler_lib_search_path_F77 \
17821
 
    compiler_lib_search_dirs_F77 \
17822
 
    archive_cmds_F77 \
17823
 
    archive_expsym_cmds_F77 \
17824
 
    postinstall_cmds_F77 \
17825
 
    postuninstall_cmds_F77 \
17826
 
    old_archive_from_expsyms_cmds_F77 \
17827
 
    allow_undefined_flag_F77 \
17828
 
    no_undefined_flag_F77 \
17829
 
    export_symbols_cmds_F77 \
17830
 
    hardcode_libdir_flag_spec_F77 \
17831
 
    hardcode_libdir_flag_spec_ld_F77 \
17832
 
    hardcode_libdir_separator_F77 \
17833
 
    hardcode_automatic_F77 \
17834
 
    module_cmds_F77 \
17835
 
    module_expsym_cmds_F77 \
17836
 
    lt_cv_prog_compiler_c_o_F77 \
17837
 
    fix_srcfile_path_F77 \
17838
 
    exclude_expsyms_F77 \
17839
 
    include_expsyms_F77; do
17840
 
 
17841
 
    case $var in
17842
 
    old_archive_cmds_F77 | \
17843
 
    old_archive_from_new_cmds_F77 | \
17844
 
    archive_cmds_F77 | \
17845
 
    archive_expsym_cmds_F77 | \
17846
 
    module_cmds_F77 | \
17847
 
    module_expsym_cmds_F77 | \
17848
 
    old_archive_from_expsyms_cmds_F77 | \
17849
 
    export_symbols_cmds_F77 | \
17850
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851
 
    postinstall_cmds | postuninstall_cmds | \
17852
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17853
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854
 
      # Double-quote double-evaled strings.
17855
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856
 
      ;;
17857
 
    *)
17858
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17859
 
      ;;
17860
 
    esac
17861
 
  done
17862
 
 
17863
 
  case $lt_echo in
17864
 
  *'\$0 --fallback-echo"')
17865
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17866
 
    ;;
17867
 
  esac
17868
 
 
17869
 
cfgfile="$ofile"
17870
 
 
17871
 
  cat <<__EOF__ >> "$cfgfile"
17872
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17873
 
 
17874
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17875
 
 
17876
 
# Shell to use when invoking shell scripts.
17877
 
SHELL=$lt_SHELL
17878
 
 
17879
 
# Whether or not to build shared libraries.
17880
 
build_libtool_libs=$enable_shared
17881
 
 
17882
 
# Whether or not to build static libraries.
17883
 
build_old_libs=$enable_static
17884
 
 
17885
 
# Whether or not to add -lc for building shared libraries.
17886
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
17887
 
 
17888
 
# Whether or not to disallow shared libs when runtime libs are static
17889
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17890
 
 
17891
 
# Whether or not to optimize for fast installation.
17892
 
fast_install=$enable_fast_install
17893
 
 
17894
 
# The host system.
17895
 
host_alias=$host_alias
17896
 
host=$host
17897
 
host_os=$host_os
17898
 
 
17899
 
# The build system.
17900
 
build_alias=$build_alias
17901
 
build=$build
17902
 
build_os=$build_os
17903
 
 
17904
 
# An echo program that does not interpret backslashes.
17905
 
echo=$lt_echo
17906
 
 
17907
 
# The archiver.
17908
 
AR=$lt_AR
17909
 
AR_FLAGS=$lt_AR_FLAGS
17910
 
 
17911
 
# A C compiler.
17912
 
LTCC=$lt_LTCC
17913
 
 
17914
 
# LTCC compiler flags.
17915
 
LTCFLAGS=$lt_LTCFLAGS
17916
 
 
17917
 
# A language-specific compiler.
17918
 
CC=$lt_compiler_F77
17919
 
 
17920
 
# Is the compiler the GNU C compiler?
17921
 
with_gcc=$GCC_F77
17922
 
 
17923
 
# An ERE matcher.
17924
 
EGREP=$lt_EGREP
17925
 
 
17926
 
# The linker used to build libraries.
17927
 
LD=$lt_LD_F77
17928
 
 
17929
 
# Whether we need hard or soft links.
17930
 
LN_S=$lt_LN_S
17931
 
 
17932
 
# A BSD-compatible nm program.
17933
 
NM=$lt_NM
17934
 
 
17935
 
# A symbol stripping program
17936
 
STRIP=$lt_STRIP
17937
 
 
17938
 
# Used to examine libraries when file_magic_cmd begins "file"
17939
 
MAGIC_CMD=$MAGIC_CMD
17940
 
 
17941
 
# Used on cygwin: DLL creation program.
17942
 
DLLTOOL="$DLLTOOL"
17943
 
 
17944
 
# Used on cygwin: object dumper.
17945
 
OBJDUMP="$OBJDUMP"
17946
 
 
17947
 
# Used on cygwin: assembler.
17948
 
AS="$AS"
17949
 
 
17950
 
# The name of the directory that contains temporary libtool files.
17951
 
objdir=$objdir
17952
 
 
17953
 
# How to create reloadable object files.
17954
 
reload_flag=$lt_reload_flag
17955
 
reload_cmds=$lt_reload_cmds
17956
 
 
17957
 
# How to pass a linker flag through the compiler.
17958
 
wl=$lt_lt_prog_compiler_wl_F77
17959
 
 
17960
 
# Object file suffix (normally "o").
17961
 
objext="$ac_objext"
17962
 
 
17963
 
# Old archive suffix (normally "a").
17964
 
libext="$libext"
17965
 
 
17966
 
# Shared library suffix (normally ".so").
17967
 
shrext_cmds='$shrext_cmds'
17968
 
 
17969
 
# Executable file suffix (normally "").
17970
 
exeext="$exeext"
17971
 
 
17972
 
# Additional compiler flags for building library objects.
17973
 
pic_flag=$lt_lt_prog_compiler_pic_F77
17974
 
pic_mode=$pic_mode
17975
 
 
17976
 
# What is the maximum length of a command?
17977
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17978
 
 
17979
 
# Does compiler simultaneously support -c and -o options?
17980
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17981
 
 
17982
 
# Must we lock files when doing compilation?
17983
 
need_locks=$lt_need_locks
17984
 
 
17985
 
# Do we need the lib prefix for modules?
17986
 
need_lib_prefix=$need_lib_prefix
17987
 
 
17988
 
# Do we need a version for libraries?
17989
 
need_version=$need_version
17990
 
 
17991
 
# Whether dlopen is supported.
17992
 
dlopen_support=$enable_dlopen
17993
 
 
17994
 
# Whether dlopen of programs is supported.
17995
 
dlopen_self=$enable_dlopen_self
17996
 
 
17997
 
# Whether dlopen of statically linked programs is supported.
17998
 
dlopen_self_static=$enable_dlopen_self_static
17999
 
 
18000
 
# Compiler flag to prevent dynamic linking.
18001
 
link_static_flag=$lt_lt_prog_compiler_static_F77
18002
 
 
18003
 
# Compiler flag to turn off builtin functions.
18004
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18005
 
 
18006
 
# Compiler flag to allow reflexive dlopens.
18007
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18008
 
 
18009
 
# Compiler flag to generate shared objects directly from archives.
18010
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18011
 
 
18012
 
# Compiler flag to generate thread-safe objects.
18013
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18014
 
 
18015
 
# Library versioning type.
18016
 
version_type=$version_type
18017
 
 
18018
 
# Format of library name prefix.
18019
 
libname_spec=$lt_libname_spec
18020
 
 
18021
 
# List of archive names.  First name is the real one, the rest are links.
18022
 
# The last name is the one that the linker finds with -lNAME.
18023
 
library_names_spec=$lt_library_names_spec
18024
 
 
18025
 
# The coded name of the library, if different from the real name.
18026
 
soname_spec=$lt_soname_spec
18027
 
 
18028
 
# Commands used to build and install an old-style archive.
18029
 
RANLIB=$lt_RANLIB
18030
 
old_archive_cmds=$lt_old_archive_cmds_F77
18031
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18032
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18033
 
 
18034
 
# Create an old-style archive from a shared archive.
18035
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18036
 
 
18037
 
# Create a temporary old-style archive to link instead of a shared archive.
18038
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18039
 
 
18040
 
# Commands used to build and install a shared archive.
18041
 
archive_cmds=$lt_archive_cmds_F77
18042
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18043
 
postinstall_cmds=$lt_postinstall_cmds
18044
 
postuninstall_cmds=$lt_postuninstall_cmds
18045
 
 
18046
 
# Commands used to build a loadable module (assumed same as above if empty)
18047
 
module_cmds=$lt_module_cmds_F77
18048
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
18049
 
 
18050
 
# Commands to strip libraries.
18051
 
old_striplib=$lt_old_striplib
18052
 
striplib=$lt_striplib
18053
 
 
18054
 
# Dependencies to place before the objects being linked to create a
18055
 
# shared library.
18056
 
predep_objects=$lt_predep_objects_F77
18057
 
 
18058
 
# Dependencies to place after the objects being linked to create a
18059
 
# shared library.
18060
 
postdep_objects=$lt_postdep_objects_F77
18061
 
 
18062
 
# Dependencies to place before the objects being linked to create a
18063
 
# shared library.
18064
 
predeps=$lt_predeps_F77
18065
 
 
18066
 
# Dependencies to place after the objects being linked to create a
18067
 
# shared library.
18068
 
postdeps=$lt_postdeps_F77
18069
 
 
18070
 
# The directories searched by this compiler when creating a shared
18071
 
# library
18072
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18073
 
 
18074
 
# The library search path used internally by the compiler when linking
18075
 
# a shared library.
18076
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18077
 
 
18078
 
# Method to check whether dependent libraries are shared objects.
18079
 
deplibs_check_method=$lt_deplibs_check_method
18080
 
 
18081
 
# Command to use when deplibs_check_method == file_magic.
18082
 
file_magic_cmd=$lt_file_magic_cmd
18083
 
 
18084
 
# Flag that allows shared libraries with undefined symbols to be built.
18085
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
18086
 
 
18087
 
# Flag that forces no undefined symbols.
18088
 
no_undefined_flag=$lt_no_undefined_flag_F77
18089
 
 
18090
 
# Commands used to finish a libtool library installation in a directory.
18091
 
finish_cmds=$lt_finish_cmds
18092
 
 
18093
 
# Same as above, but a single script fragment to be evaled but not shown.
18094
 
finish_eval=$lt_finish_eval
18095
 
 
18096
 
# Take the output of nm and produce a listing of raw symbols and C names.
18097
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18098
 
 
18099
 
# Transform the output of nm in a proper C declaration
18100
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18101
 
 
18102
 
# Transform the output of nm in a C name address pair
18103
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18104
 
 
18105
 
# This is the shared library runtime path variable.
18106
 
runpath_var=$runpath_var
18107
 
 
18108
 
# This is the shared library path variable.
18109
 
shlibpath_var=$shlibpath_var
18110
 
 
18111
 
# Is shlibpath searched before the hard-coded library search path?
18112
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18113
 
 
18114
 
# How to hardcode a shared library path into an executable.
18115
 
hardcode_action=$hardcode_action_F77
18116
 
 
18117
 
# Whether we should hardcode library paths into libraries.
18118
 
hardcode_into_libs=$hardcode_into_libs
18119
 
 
18120
 
# Flag to hardcode \$libdir into a binary during linking.
18121
 
# This must work even if \$libdir does not exist.
18122
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18123
 
 
18124
 
# If ld is used when linking, flag to hardcode \$libdir into
18125
 
# a binary during linking. This must work even if \$libdir does
18126
 
# not exist.
18127
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18128
 
 
18129
 
# Whether we need a single -rpath flag with a separated argument.
18130
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18131
 
 
18132
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18133
 
# resulting binary.
18134
 
hardcode_direct=$hardcode_direct_F77
18135
 
 
18136
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18137
 
# resulting binary.
18138
 
hardcode_minus_L=$hardcode_minus_L_F77
18139
 
 
18140
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18141
 
# the resulting binary.
18142
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18143
 
 
18144
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18145
 
# and all subsequent libraries and executables linked against it.
18146
 
hardcode_automatic=$hardcode_automatic_F77
18147
 
 
18148
 
# Variables whose values should be saved in libtool wrapper scripts and
18149
 
# restored at relink time.
18150
 
variables_saved_for_relink="$variables_saved_for_relink"
18151
 
 
18152
 
# Whether libtool must link a program against all its dependency libraries.
18153
 
link_all_deplibs=$link_all_deplibs_F77
18154
 
 
18155
 
# Compile-time system search path for libraries
18156
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18157
 
 
18158
 
# Run-time system search path for libraries
18159
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18160
 
 
18161
 
# Fix the shell variable \$srcfile for the compiler.
18162
 
fix_srcfile_path=$lt_fix_srcfile_path
18163
 
 
18164
 
# Set to yes if exported symbols are required.
18165
 
always_export_symbols=$always_export_symbols_F77
18166
 
 
18167
 
# The commands to list exported symbols.
18168
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
18169
 
 
18170
 
# The commands to extract the exported symbol list from a shared archive.
18171
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18172
 
 
18173
 
# Symbols that should not be listed in the preloaded symbols.
18174
 
exclude_expsyms=$lt_exclude_expsyms_F77
18175
 
 
18176
 
# Symbols that must always be exported.
18177
 
include_expsyms=$lt_include_expsyms_F77
18178
 
 
18179
 
# ### END LIBTOOL TAG CONFIG: $tagname
18180
 
 
18181
 
__EOF__
18182
 
 
18183
 
 
18184
 
else
18185
 
  # If there is no Makefile yet, we rely on a make rule to execute
18186
 
  # `config.status --recheck' to rerun these tests and create the
18187
 
  # libtool script then.
18188
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18189
 
  if test -f "$ltmain_in"; then
18190
 
    test -f Makefile && make "$ltmain"
18191
 
  fi
18192
 
fi
18193
 
 
18194
 
 
18195
 
ac_ext=c
18196
 
ac_cpp='$CPP $CPPFLAGS'
18197
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18200
 
 
18201
 
CC="$lt_save_CC"
18202
 
 
18203
 
        else
18204
 
          tagname=""
18205
 
        fi
18206
 
        ;;
18207
 
 
18208
 
      GCJ)
18209
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18210
 
 
18211
 
 
18212
 
# Source file extension for Java test sources.
18213
 
ac_ext=java
18214
 
 
18215
 
# Object file extension for compiled Java test sources.
18216
 
objext=o
18217
 
objext_GCJ=$objext
18218
 
 
18219
 
# Code to be used in simple compile tests
18220
 
lt_simple_compile_test_code="class foo {}"
18221
 
 
18222
 
# Code to be used in simple link tests
18223
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18224
 
 
18225
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18226
 
 
18227
 
# If no C compiler was specified, use CC.
18228
 
LTCC=${LTCC-"$CC"}
18229
 
 
18230
 
# If no C compiler flags were specified, use CFLAGS.
18231
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18232
 
 
18233
 
# Allow CC to be a program name with arguments.
18234
 
compiler=$CC
18235
 
 
18236
 
 
18237
 
# save warnings/boilerplate of simple test code
18238
 
ac_outfile=conftest.$ac_objext
18239
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18240
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18241
 
_lt_compiler_boilerplate=`cat conftest.err`
18242
 
$rm conftest*
18243
 
 
18244
 
ac_outfile=conftest.$ac_objext
18245
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18246
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18247
 
_lt_linker_boilerplate=`cat conftest.err`
18248
 
$rm -r conftest*
18249
 
 
18250
 
 
18251
 
# Allow CC to be a program name with arguments.
18252
 
lt_save_CC="$CC"
18253
 
CC=${GCJ-"gcj"}
18254
 
compiler=$CC
18255
 
compiler_GCJ=$CC
18256
 
for cc_temp in $compiler""; do
18257
 
  case $cc_temp in
18258
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18259
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18260
 
    \-*) ;;
18261
 
    *) break;;
18262
 
  esac
18263
 
done
18264
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18265
 
 
18266
 
 
18267
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18268
 
archive_cmds_need_lc_GCJ=no
18269
 
 
18270
 
old_archive_cmds_GCJ=$old_archive_cmds
18271
 
 
18272
 
 
18273
 
lt_prog_compiler_no_builtin_flag_GCJ=
18274
 
 
18275
 
if test "$GCC" = yes; then
18276
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18277
 
 
18278
 
 
18279
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18280
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18281
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18282
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18283
 
else
18284
 
  lt_cv_prog_compiler_rtti_exceptions=no
18285
 
  ac_outfile=conftest.$ac_objext
18286
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18287
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
18288
 
   # Insert the option either (1) after the last *FLAGS variable, or
18289
 
   # (2) before a word containing "conftest.", or (3) at the end.
18290
 
   # Note that $ac_compile itself does not contain backslashes and begins
18291
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18292
 
   # The option is referenced via a variable to avoid confusing sed.
18293
 
   lt_compile=`echo "$ac_compile" | $SED \
18294
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18295
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18296
 
   -e 's:$: $lt_compiler_flag:'`
18297
 
   (eval echo "\"\$as_me:18297: $lt_compile\"" >&5)
18298
 
   (eval "$lt_compile" 2>conftest.err)
18299
 
   ac_status=$?
18300
 
   cat conftest.err >&5
18301
 
   echo "$as_me:18301: \$? = $ac_status" >&5
18302
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
18303
 
     # The compiler can only warn and ignore the option if not recognized
18304
 
     # So say no if there are warnings other than the usual output.
18305
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18306
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18307
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18308
 
       lt_cv_prog_compiler_rtti_exceptions=yes
18309
 
     fi
18310
 
   fi
18311
 
   $rm conftest*
18312
 
 
18313
 
fi
18314
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18315
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18316
 
 
18317
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18318
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18319
 
else
18320
 
    :
18321
 
fi
18322
 
 
18323
 
fi
18324
 
 
18325
 
lt_prog_compiler_wl_GCJ=
18326
 
lt_prog_compiler_pic_GCJ=
18327
 
lt_prog_compiler_static_GCJ=
18328
 
 
18329
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18330
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18331
 
 
18332
 
  if test "$GCC" = yes; then
18333
 
    lt_prog_compiler_wl_GCJ='-Wl,'
18334
 
    lt_prog_compiler_static_GCJ='-static'
18335
 
 
18336
 
    case $host_os in
18337
 
      aix*)
18338
 
      # All AIX code is PIC.
18339
 
      if test "$host_cpu" = ia64; then
18340
 
        # AIX 5 now supports IA64 processor
18341
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18342
 
      fi
18343
 
      ;;
18344
 
 
18345
 
    amigaos*)
18346
 
      # FIXME: we need at least 68020 code to build shared libraries, but
18347
 
      # adding the `-m68020' flag to GCC prevents building anything better,
18348
 
      # like `-m68040'.
18349
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18350
 
      ;;
18351
 
 
18352
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18353
 
      # PIC is the default for these OSes.
18354
 
      ;;
18355
 
 
18356
 
    mingw* | cygwin* | pw32* | os2*)
18357
 
      # This hack is so that the source file can tell whether it is being
18358
 
      # built for inclusion in a dll (and should export symbols for example).
18359
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18360
 
      # (--disable-auto-import) libraries
18361
 
 
18362
 
      ;;
18363
 
 
18364
 
    darwin* | rhapsody*)
18365
 
      # PIC is the default on this platform
18366
 
      # Common symbols not allowed in MH_DYLIB files
18367
 
      lt_prog_compiler_pic_GCJ='-fno-common'
18368
 
      ;;
18369
 
 
18370
 
    interix[3-9]*)
18371
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18372
 
      # Instead, we relocate shared libraries at runtime.
18373
 
      ;;
18374
 
 
18375
 
    msdosdjgpp*)
18376
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
18377
 
      # on systems that don't support them.
18378
 
      lt_prog_compiler_can_build_shared_GCJ=no
18379
 
      enable_shared=no
18380
 
      ;;
18381
 
 
18382
 
    sysv4*MP*)
18383
 
      if test -d /usr/nec; then
18384
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
18385
 
      fi
18386
 
      ;;
18387
 
 
18388
 
    hpux*)
18389
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18390
 
      # not for PA HP-UX.
18391
 
      case $host_cpu in
18392
 
      hppa*64*|ia64*)
18393
 
        # +Z the default
18394
 
        ;;
18395
 
      *)
18396
 
        lt_prog_compiler_pic_GCJ='-fPIC'
18397
 
        ;;
18398
 
      esac
18399
 
      ;;
18400
 
 
18401
 
    *)
18402
 
      lt_prog_compiler_pic_GCJ='-fPIC'
18403
 
      ;;
18404
 
    esac
18405
 
  else
18406
 
    # PORTME Check for flag to pass linker flags through the system compiler.
18407
 
    case $host_os in
18408
 
    aix*)
18409
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18410
 
      if test "$host_cpu" = ia64; then
18411
 
        # AIX 5 now supports IA64 processor
18412
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18413
 
      else
18414
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18415
 
      fi
18416
 
      ;;
18417
 
      darwin*)
18418
 
        # PIC is the default on this platform
18419
 
        # Common symbols not allowed in MH_DYLIB files
18420
 
       case $cc_basename in
18421
 
         xlc*)
18422
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
18423
 
         lt_prog_compiler_wl_GCJ='-Wl,'
18424
 
         ;;
18425
 
       esac
18426
 
       ;;
18427
 
 
18428
 
    mingw* | cygwin* | pw32* | os2*)
18429
 
      # This hack is so that the source file can tell whether it is being
18430
 
      # built for inclusion in a dll (and should export symbols for example).
18431
 
 
18432
 
      ;;
18433
 
 
18434
 
    hpux9* | hpux10* | hpux11*)
18435
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18436
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18437
 
      # not for PA HP-UX.
18438
 
      case $host_cpu in
18439
 
      hppa*64*|ia64*)
18440
 
        # +Z the default
18441
 
        ;;
18442
 
      *)
18443
 
        lt_prog_compiler_pic_GCJ='+Z'
18444
 
        ;;
18445
 
      esac
18446
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18447
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18448
 
      ;;
18449
 
 
18450
 
    irix5* | irix6* | nonstopux*)
18451
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18452
 
      # PIC (with -KPIC) is the default.
18453
 
      lt_prog_compiler_static_GCJ='-non_shared'
18454
 
      ;;
18455
 
 
18456
 
    newsos6)
18457
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18458
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18459
 
      ;;
18460
 
 
18461
 
    linux* | k*bsd*-gnu)
18462
 
      case $cc_basename in
18463
 
      icc* | ecc*)
18464
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18465
 
        lt_prog_compiler_pic_GCJ='-KPIC'
18466
 
        lt_prog_compiler_static_GCJ='-static'
18467
 
        ;;
18468
 
      pgcc* | pgf77* | pgf90* | pgf95*)
18469
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
18470
 
        # which looks to be a dead project)
18471
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18472
 
        lt_prog_compiler_pic_GCJ='-fpic'
18473
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18474
 
        ;;
18475
 
      ccc*)
18476
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18477
 
        # All Alpha code is PIC.
18478
 
        lt_prog_compiler_static_GCJ='-non_shared'
18479
 
        ;;
18480
 
      *)
18481
 
        case `$CC -V 2>&1 | sed 5q` in
18482
 
        *Sun\ C*)
18483
 
          # Sun C 5.9
18484
 
          lt_prog_compiler_pic_GCJ='-KPIC'
18485
 
          lt_prog_compiler_static_GCJ='-Bstatic'
18486
 
          lt_prog_compiler_wl_GCJ='-Wl,'
18487
 
          ;;
18488
 
        *Sun\ F*)
18489
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
18490
 
          lt_prog_compiler_pic_GCJ='-KPIC'
18491
 
          lt_prog_compiler_static_GCJ='-Bstatic'
18492
 
          lt_prog_compiler_wl_GCJ=''
18493
 
          ;;
18494
 
        esac
18495
 
        ;;
18496
 
      esac
18497
 
      ;;
18498
 
 
18499
 
    osf3* | osf4* | osf5*)
18500
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18501
 
      # All OSF/1 code is PIC.
18502
 
      lt_prog_compiler_static_GCJ='-non_shared'
18503
 
      ;;
18504
 
 
18505
 
    rdos*)
18506
 
      lt_prog_compiler_static_GCJ='-non_shared'
18507
 
      ;;
18508
 
 
18509
 
    solaris*)
18510
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18511
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18512
 
      case $cc_basename in
18513
 
      f77* | f90* | f95*)
18514
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18515
 
      *)
18516
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
18517
 
      esac
18518
 
      ;;
18519
 
 
18520
 
    sunos4*)
18521
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
18522
 
      lt_prog_compiler_pic_GCJ='-PIC'
18523
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18524
 
      ;;
18525
 
 
18526
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
18527
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18528
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18529
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18530
 
      ;;
18531
 
 
18532
 
    sysv4*MP*)
18533
 
      if test -d /usr/nec ;then
18534
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
18535
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18536
 
      fi
18537
 
      ;;
18538
 
 
18539
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18540
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18541
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18542
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18543
 
      ;;
18544
 
 
18545
 
    unicos*)
18546
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18547
 
      lt_prog_compiler_can_build_shared_GCJ=no
18548
 
      ;;
18549
 
 
18550
 
    uts4*)
18551
 
      lt_prog_compiler_pic_GCJ='-pic'
18552
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18553
 
      ;;
18554
 
 
18555
 
    *)
18556
 
      lt_prog_compiler_can_build_shared_GCJ=no
18557
 
      ;;
18558
 
    esac
18559
 
  fi
18560
 
 
18561
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18562
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18563
 
 
18564
 
#
18565
 
# Check to make sure the PIC flag actually works.
18566
 
#
18567
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
18568
 
 
18569
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18570
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18571
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18573
 
else
18574
 
  lt_cv_prog_compiler_pic_works_GCJ=no
18575
 
  ac_outfile=conftest.$ac_objext
18576
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18577
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18578
 
   # Insert the option either (1) after the last *FLAGS variable, or
18579
 
   # (2) before a word containing "conftest.", or (3) at the end.
18580
 
   # Note that $ac_compile itself does not contain backslashes and begins
18581
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18582
 
   # The option is referenced via a variable to avoid confusing sed.
18583
 
   lt_compile=`echo "$ac_compile" | $SED \
18584
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18585
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18586
 
   -e 's:$: $lt_compiler_flag:'`
18587
 
   (eval echo "\"\$as_me:18587: $lt_compile\"" >&5)
18588
 
   (eval "$lt_compile" 2>conftest.err)
18589
 
   ac_status=$?
18590
 
   cat conftest.err >&5
18591
 
   echo "$as_me:18591: \$? = $ac_status" >&5
18592
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
18593
 
     # The compiler can only warn and ignore the option if not recognized
18594
 
     # So say no if there are warnings other than the usual output.
18595
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18596
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18597
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18598
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
18599
 
     fi
18600
 
   fi
18601
 
   $rm conftest*
18602
 
 
18603
 
fi
18604
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18605
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18606
 
 
18607
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18608
 
    case $lt_prog_compiler_pic_GCJ in
18609
 
     "" | " "*) ;;
18610
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18611
 
     esac
18612
 
else
18613
 
    lt_prog_compiler_pic_GCJ=
18614
 
     lt_prog_compiler_can_build_shared_GCJ=no
18615
 
fi
18616
 
 
18617
 
fi
18618
 
case $host_os in
18619
 
  # For platforms which do not support PIC, -DPIC is meaningless:
18620
 
  *djgpp*)
18621
 
    lt_prog_compiler_pic_GCJ=
18622
 
    ;;
18623
 
  *)
18624
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18625
 
    ;;
18626
 
esac
18627
 
 
18628
 
#
18629
 
# Check to make sure the static flag actually works.
18630
 
#
18631
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18632
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18633
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18634
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18636
 
else
18637
 
  lt_cv_prog_compiler_static_works_GCJ=no
18638
 
   save_LDFLAGS="$LDFLAGS"
18639
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18640
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18641
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18642
 
     # The linker can only warn and ignore the option if not recognized
18643
 
     # So say no if there are warnings
18644
 
     if test -s conftest.err; then
18645
 
       # Append any errors to the config.log.
18646
 
       cat conftest.err 1>&5
18647
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18648
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18649
 
       if diff conftest.exp conftest.er2 >/dev/null; then
18650
 
         lt_cv_prog_compiler_static_works_GCJ=yes
18651
 
       fi
18652
 
     else
18653
 
       lt_cv_prog_compiler_static_works_GCJ=yes
18654
 
     fi
18655
 
   fi
18656
 
   $rm -r conftest*
18657
 
   LDFLAGS="$save_LDFLAGS"
18658
 
 
18659
 
fi
18660
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18661
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18662
 
 
18663
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18664
 
    :
18665
 
else
18666
 
    lt_prog_compiler_static_GCJ=
18667
 
fi
18668
 
 
18669
 
 
18670
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18671
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18672
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18674
 
else
18675
 
  lt_cv_prog_compiler_c_o_GCJ=no
18676
 
   $rm -r conftest 2>/dev/null
18677
 
   mkdir conftest
18678
 
   cd conftest
18679
 
   mkdir out
18680
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18681
 
 
18682
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
18683
 
   # Insert the option either (1) after the last *FLAGS variable, or
18684
 
   # (2) before a word containing "conftest.", or (3) at the end.
18685
 
   # Note that $ac_compile itself does not contain backslashes and begins
18686
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18687
 
   lt_compile=`echo "$ac_compile" | $SED \
18688
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18689
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18690
 
   -e 's:$: $lt_compiler_flag:'`
18691
 
   (eval echo "\"\$as_me:18691: $lt_compile\"" >&5)
18692
 
   (eval "$lt_compile" 2>out/conftest.err)
18693
 
   ac_status=$?
18694
 
   cat out/conftest.err >&5
18695
 
   echo "$as_me:18695: \$? = $ac_status" >&5
18696
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18697
 
   then
18698
 
     # The compiler can only warn and ignore the option if not recognized
18699
 
     # So say no if there are warnings
18700
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18701
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18702
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18703
 
       lt_cv_prog_compiler_c_o_GCJ=yes
18704
 
     fi
18705
 
   fi
18706
 
   chmod u+w . 2>&5
18707
 
   $rm conftest*
18708
 
   # SGI C++ compiler will create directory out/ii_files/ for
18709
 
   # template instantiation
18710
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18711
 
   $rm out/* && rmdir out
18712
 
   cd ..
18713
 
   rmdir conftest
18714
 
   $rm conftest*
18715
 
 
18716
 
fi
18717
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18718
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18719
 
 
18720
 
 
18721
 
hard_links="nottested"
18722
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18723
 
  # do not overwrite the value of need_locks provided by the user
18724
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18725
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18726
 
  hard_links=yes
18727
 
  $rm conftest*
18728
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18729
 
  touch conftest.a
18730
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
18731
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18732
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
18733
 
echo "${ECHO_T}$hard_links" >&6; }
18734
 
  if test "$hard_links" = no; then
18735
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18736
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18737
 
    need_locks=warn
18738
 
  fi
18739
 
else
18740
 
  need_locks=no
18741
 
fi
18742
 
 
18743
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18744
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18745
 
 
18746
 
  runpath_var=
18747
 
  allow_undefined_flag_GCJ=
18748
 
  enable_shared_with_static_runtimes_GCJ=no
18749
 
  archive_cmds_GCJ=
18750
 
  archive_expsym_cmds_GCJ=
18751
 
  old_archive_From_new_cmds_GCJ=
18752
 
  old_archive_from_expsyms_cmds_GCJ=
18753
 
  export_dynamic_flag_spec_GCJ=
18754
 
  whole_archive_flag_spec_GCJ=
18755
 
  thread_safe_flag_spec_GCJ=
18756
 
  hardcode_libdir_flag_spec_GCJ=
18757
 
  hardcode_libdir_flag_spec_ld_GCJ=
18758
 
  hardcode_libdir_separator_GCJ=
18759
 
  hardcode_direct_GCJ=no
18760
 
  hardcode_minus_L_GCJ=no
18761
 
  hardcode_shlibpath_var_GCJ=unsupported
18762
 
  link_all_deplibs_GCJ=unknown
18763
 
  hardcode_automatic_GCJ=no
18764
 
  module_cmds_GCJ=
18765
 
  module_expsym_cmds_GCJ=
18766
 
  always_export_symbols_GCJ=no
18767
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18768
 
  # include_expsyms should be a list of space-separated symbols to be *always*
18769
 
  # included in the symbol list
18770
 
  include_expsyms_GCJ=
18771
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
18772
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18773
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18774
 
  # as well as any symbol that contains `d'.
18775
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18776
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18777
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
18778
 
  # the symbol is explicitly referenced.  Since portable code cannot
18779
 
  # rely on this symbol name, it's probably fine to never include it in
18780
 
  # preloaded symbol tables.
18781
 
  # Exclude shared library initialization/finalization symbols.
18782
 
  extract_expsyms_cmds=
18783
 
  # Just being paranoid about ensuring that cc_basename is set.
18784
 
  for cc_temp in $compiler""; do
18785
 
  case $cc_temp in
18786
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18787
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18788
 
    \-*) ;;
18789
 
    *) break;;
18790
 
  esac
18791
 
done
18792
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18793
 
 
18794
 
  case $host_os in
18795
 
  cygwin* | mingw* | pw32*)
18796
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18797
 
    # When not using gcc, we currently assume that we are using
18798
 
    # Microsoft Visual C++.
18799
 
    if test "$GCC" != yes; then
18800
 
      with_gnu_ld=no
18801
 
    fi
18802
 
    ;;
18803
 
  interix*)
18804
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
18805
 
    with_gnu_ld=yes
18806
 
    ;;
18807
 
  openbsd*)
18808
 
    with_gnu_ld=no
18809
 
    ;;
18810
 
  esac
18811
 
 
18812
 
  ld_shlibs_GCJ=yes
18813
 
  if test "$with_gnu_ld" = yes; then
18814
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
18815
 
    wlarc='${wl}'
18816
 
 
18817
 
    # Set some defaults for GNU ld with shared library support. These
18818
 
    # are reset later if shared libraries are not supported. Putting them
18819
 
    # here allows them to be overridden if necessary.
18820
 
    runpath_var=LD_RUN_PATH
18821
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18822
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18823
 
    # ancient GNU ld didn't support --whole-archive et. al.
18824
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18825
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18826
 
      else
18827
 
        whole_archive_flag_spec_GCJ=
18828
 
    fi
18829
 
    supports_anon_versioning=no
18830
 
    case `$LD -v 2>/dev/null` in
18831
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18832
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18833
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18834
 
      *\ 2.11.*) ;; # other 2.11 versions
18835
 
      *) supports_anon_versioning=yes ;;
18836
 
    esac
18837
 
 
18838
 
    # See if GNU ld supports shared libraries.
18839
 
    case $host_os in
18840
 
    aix[3-9]*)
18841
 
      # On AIX/PPC, the GNU linker is very broken
18842
 
      if test "$host_cpu" != ia64; then
18843
 
        ld_shlibs_GCJ=no
18844
 
        cat <<EOF 1>&2
18845
 
 
18846
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18847
 
*** to be unable to reliably create shared libraries on AIX.
18848
 
*** Therefore, libtool is disabling shared libraries support.  If you
18849
 
*** really care for shared libraries, you may want to modify your PATH
18850
 
*** so that a non-GNU linker is found, and then restart.
18851
 
 
18852
 
EOF
18853
 
      fi
18854
 
      ;;
18855
 
 
18856
 
    amigaos*)
18857
 
      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)'
18858
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859
 
      hardcode_minus_L_GCJ=yes
18860
 
 
18861
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18862
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
18863
 
      # to version 4, is to share data among multiple programs linked
18864
 
      # with the same dynamic library.  Since this doesn't match the
18865
 
      # behavior of shared libraries on other platforms, we can't use
18866
 
      # them.
18867
 
      ld_shlibs_GCJ=no
18868
 
      ;;
18869
 
 
18870
 
    beos*)
18871
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18872
 
        allow_undefined_flag_GCJ=unsupported
18873
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18874
 
        # support --undefined.  This deserves some investigation.  FIXME
18875
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18876
 
      else
18877
 
        ld_shlibs_GCJ=no
18878
 
      fi
18879
 
      ;;
18880
 
 
18881
 
    cygwin* | mingw* | pw32*)
18882
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18883
 
      # as there is no search path for DLLs.
18884
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18885
 
      allow_undefined_flag_GCJ=unsupported
18886
 
      always_export_symbols_GCJ=no
18887
 
      enable_shared_with_static_runtimes_GCJ=yes
18888
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18889
 
 
18890
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18891
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18892
 
        # If the export-symbols file already is a .def file (1st line
18893
 
        # is EXPORTS), use it as is; otherwise, prepend...
18894
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18895
 
          cp $export_symbols $output_objdir/$soname.def;
18896
 
        else
18897
 
          echo EXPORTS > $output_objdir/$soname.def;
18898
 
          cat $export_symbols >> $output_objdir/$soname.def;
18899
 
        fi~
18900
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18901
 
      else
18902
 
        ld_shlibs_GCJ=no
18903
 
      fi
18904
 
      ;;
18905
 
 
18906
 
    interix[3-9]*)
18907
 
      hardcode_direct_GCJ=no
18908
 
      hardcode_shlibpath_var_GCJ=no
18909
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18910
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18911
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18912
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
18913
 
      # default) and relocated if they conflict, which is a slow very memory
18914
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
18915
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18916
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18917
 
      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'
18918
 
      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'
18919
 
      ;;
18920
 
 
18921
 
    gnu* | linux* | k*bsd*-gnu)
18922
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18923
 
        tmp_addflag=
18924
 
        case $cc_basename,$host_cpu in
18925
 
        pgcc*)                          # Portland Group C compiler
18926
 
          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'
18927
 
          tmp_addflag=' $pic_flag'
18928
 
          ;;
18929
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18930
 
          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'
18931
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
18932
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18933
 
          tmp_addflag=' -i_dynamic' ;;
18934
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18935
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
18936
 
        ifc* | ifort*)                  # Intel Fortran compiler
18937
 
          tmp_addflag=' -nofor_main' ;;
18938
 
        esac
18939
 
        case `$CC -V 2>&1 | sed 5q` in
18940
 
        *Sun\ C*)                       # Sun C 5.9
18941
 
          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'
18942
 
          tmp_sharedflag='-G' ;;
18943
 
        *Sun\ F*)                       # Sun Fortran 8.3
18944
 
          tmp_sharedflag='-G' ;;
18945
 
        *)
18946
 
          tmp_sharedflag='-shared' ;;
18947
 
        esac
18948
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18949
 
 
18950
 
        if test $supports_anon_versioning = yes; then
18951
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18952
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18953
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
18954
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18955
 
        fi
18956
 
        link_all_deplibs_GCJ=no
18957
 
      else
18958
 
        ld_shlibs_GCJ=no
18959
 
      fi
18960
 
      ;;
18961
 
 
18962
 
    netbsd* | netbsdelf*-gnu)
18963
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18964
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18965
 
        wlarc=
18966
 
      else
18967
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18969
 
      fi
18970
 
      ;;
18971
 
 
18972
 
    solaris*)
18973
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18974
 
        ld_shlibs_GCJ=no
18975
 
        cat <<EOF 1>&2
18976
 
 
18977
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18978
 
*** create shared libraries on Solaris systems.  Therefore, libtool
18979
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18980
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
18981
 
*** your PATH or compiler configuration so that the native linker is
18982
 
*** used, and then restart.
18983
 
 
18984
 
EOF
18985
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18986
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18988
 
      else
18989
 
        ld_shlibs_GCJ=no
18990
 
      fi
18991
 
      ;;
18992
 
 
18993
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18994
 
      case `$LD -v 2>&1` in
18995
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18996
 
        ld_shlibs_GCJ=no
18997
 
        cat <<_LT_EOF 1>&2
18998
 
 
18999
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19000
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
19001
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
19002
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19003
 
*** your PATH or compiler configuration so that the native linker is
19004
 
*** used, and then restart.
19005
 
 
19006
 
_LT_EOF
19007
 
        ;;
19008
 
        *)
19009
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19010
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19011
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19012
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19013
 
          else
19014
 
            ld_shlibs_GCJ=no
19015
 
          fi
19016
 
        ;;
19017
 
      esac
19018
 
      ;;
19019
 
 
19020
 
    sunos4*)
19021
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19022
 
      wlarc=
19023
 
      hardcode_direct_GCJ=yes
19024
 
      hardcode_shlibpath_var_GCJ=no
19025
 
      ;;
19026
 
 
19027
 
    *)
19028
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19029
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19030
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19031
 
      else
19032
 
        ld_shlibs_GCJ=no
19033
 
      fi
19034
 
      ;;
19035
 
    esac
19036
 
 
19037
 
    if test "$ld_shlibs_GCJ" = no; then
19038
 
      runpath_var=
19039
 
      hardcode_libdir_flag_spec_GCJ=
19040
 
      export_dynamic_flag_spec_GCJ=
19041
 
      whole_archive_flag_spec_GCJ=
19042
 
    fi
19043
 
  else
19044
 
    # PORTME fill in a description of your system's linker (not GNU ld)
19045
 
    case $host_os in
19046
 
    aix3*)
19047
 
      allow_undefined_flag_GCJ=unsupported
19048
 
      always_export_symbols_GCJ=yes
19049
 
      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'
19050
 
      # Note: this linker hardcodes the directories in LIBPATH if there
19051
 
      # are no directories specified by -L.
19052
 
      hardcode_minus_L_GCJ=yes
19053
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19054
 
        # Neither direct hardcoding nor static linking is supported with a
19055
 
        # broken collect2.
19056
 
        hardcode_direct_GCJ=unsupported
19057
 
      fi
19058
 
      ;;
19059
 
 
19060
 
    aix[4-9]*)
19061
 
      if test "$host_cpu" = ia64; then
19062
 
        # On IA64, the linker does run time linking by default, so we don't
19063
 
        # have to do anything special.
19064
 
        aix_use_runtimelinking=no
19065
 
        exp_sym_flag='-Bexport'
19066
 
        no_entry_flag=""
19067
 
      else
19068
 
        # If we're using GNU nm, then we don't want the "-C" option.
19069
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
19070
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19071
 
          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'
19072
 
        else
19073
 
          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'
19074
 
        fi
19075
 
        aix_use_runtimelinking=no
19076
 
 
19077
 
        # Test if we are trying to use run time linking or normal
19078
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19079
 
        # need to do runtime linking.
19080
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19081
 
          for ld_flag in $LDFLAGS; do
19082
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19083
 
            aix_use_runtimelinking=yes
19084
 
            break
19085
 
          fi
19086
 
          done
19087
 
          ;;
19088
 
        esac
19089
 
 
19090
 
        exp_sym_flag='-bexport'
19091
 
        no_entry_flag='-bnoentry'
19092
 
      fi
19093
 
 
19094
 
      # When large executables or shared objects are built, AIX ld can
19095
 
      # have problems creating the table of contents.  If linking a library
19096
 
      # or program results in "error TOC overflow" add -mminimal-toc to
19097
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19098
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19099
 
 
19100
 
      archive_cmds_GCJ=''
19101
 
      hardcode_direct_GCJ=yes
19102
 
      hardcode_libdir_separator_GCJ=':'
19103
 
      link_all_deplibs_GCJ=yes
19104
 
 
19105
 
      if test "$GCC" = yes; then
19106
 
        case $host_os in aix4.[012]|aix4.[012].*)
19107
 
        # We only want to do this on AIX 4.2 and lower, the check
19108
 
        # below for broken collect2 doesn't work under 4.3+
19109
 
          collect2name=`${CC} -print-prog-name=collect2`
19110
 
          if test -f "$collect2name" && \
19111
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
19112
 
          then
19113
 
          # We have reworked collect2
19114
 
          :
19115
 
          else
19116
 
          # We have old collect2
19117
 
          hardcode_direct_GCJ=unsupported
19118
 
          # It fails to find uninstalled libraries when the uninstalled
19119
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
19120
 
          # to unsupported forces relinking
19121
 
          hardcode_minus_L_GCJ=yes
19122
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
19123
 
          hardcode_libdir_separator_GCJ=
19124
 
          fi
19125
 
          ;;
19126
 
        esac
19127
 
        shared_flag='-shared'
19128
 
        if test "$aix_use_runtimelinking" = yes; then
19129
 
          shared_flag="$shared_flag "'${wl}-G'
19130
 
        fi
19131
 
      else
19132
 
        # not using gcc
19133
 
        if test "$host_cpu" = ia64; then
19134
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19135
 
        # chokes on -Wl,-G. The following line is correct:
19136
 
          shared_flag='-G'
19137
 
        else
19138
 
          if test "$aix_use_runtimelinking" = yes; then
19139
 
            shared_flag='${wl}-G'
19140
 
          else
19141
 
            shared_flag='${wl}-bM:SRE'
19142
 
          fi
19143
 
        fi
19144
 
      fi
19145
 
 
19146
 
      # It seems that -bexpall does not export symbols beginning with
19147
 
      # underscore (_), so it is better to generate a list of symbols to export.
19148
 
      always_export_symbols_GCJ=yes
19149
 
      if test "$aix_use_runtimelinking" = yes; then
19150
 
        # Warning - without using the other runtime loading flags (-brtl),
19151
 
        # -berok will link without error, but may produce a broken library.
19152
 
        allow_undefined_flag_GCJ='-berok'
19153
 
       # Determine the default libpath from the value encoded in an empty executable.
19154
 
       cat >conftest.$ac_ext <<_ACEOF
19155
 
/* confdefs.h.  */
19156
 
_ACEOF
19157
 
cat confdefs.h >>conftest.$ac_ext
19158
 
cat >>conftest.$ac_ext <<_ACEOF
19159
 
/* end confdefs.h.  */
19160
 
 
19161
 
int
19162
 
main ()
19163
 
{
19164
 
 
19165
 
  ;
19166
 
  return 0;
19167
 
}
19168
 
_ACEOF
19169
 
rm -f conftest.$ac_objext conftest$ac_exeext
19170
 
if { (ac_try="$ac_link"
19171
 
case "(($ac_try" in
19172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173
 
  *) ac_try_echo=$ac_try;;
19174
 
esac
19175
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176
 
  (eval "$ac_link") 2>conftest.er1
19177
 
  ac_status=$?
19178
 
  grep -v '^ *+' conftest.er1 >conftest.err
19179
 
  rm -f conftest.er1
19180
 
  cat conftest.err >&5
19181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182
 
  (exit $ac_status); } && {
19183
 
         test -z "$ac_c_werror_flag" ||
19184
 
         test ! -s conftest.err
19185
 
       } && test -s conftest$ac_exeext &&
19186
 
       $as_test_x conftest$ac_exeext; then
19187
 
 
19188
 
lt_aix_libpath_sed='
19189
 
    /Import File Strings/,/^$/ {
19190
 
        /^0/ {
19191
 
            s/^0  *\(.*\)$/\1/
19192
 
            p
19193
 
        }
19194
 
    }'
19195
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19196
 
# Check for a 64-bit object if we didn't find anything.
19197
 
if test -z "$aix_libpath"; then
19198
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19199
 
fi
19200
 
else
19201
 
  echo "$as_me: failed program was:" >&5
19202
 
sed 's/^/| /' conftest.$ac_ext >&5
19203
 
 
19204
 
 
19205
 
fi
19206
 
 
19207
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19208
 
      conftest$ac_exeext conftest.$ac_ext
19209
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19210
 
 
19211
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19212
 
        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"
19213
 
       else
19214
 
        if test "$host_cpu" = ia64; then
19215
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19216
 
          allow_undefined_flag_GCJ="-z nodefs"
19217
 
          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"
19218
 
        else
19219
 
         # Determine the default libpath from the value encoded in an empty executable.
19220
 
         cat >conftest.$ac_ext <<_ACEOF
19221
 
/* confdefs.h.  */
19222
 
_ACEOF
19223
 
cat confdefs.h >>conftest.$ac_ext
19224
 
cat >>conftest.$ac_ext <<_ACEOF
19225
 
/* end confdefs.h.  */
19226
 
 
19227
 
int
19228
 
main ()
19229
 
{
19230
 
 
19231
 
  ;
19232
 
  return 0;
19233
 
}
19234
 
_ACEOF
19235
 
rm -f conftest.$ac_objext conftest$ac_exeext
19236
 
if { (ac_try="$ac_link"
19237
 
case "(($ac_try" in
19238
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239
 
  *) ac_try_echo=$ac_try;;
19240
 
esac
19241
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242
 
  (eval "$ac_link") 2>conftest.er1
19243
 
  ac_status=$?
19244
 
  grep -v '^ *+' conftest.er1 >conftest.err
19245
 
  rm -f conftest.er1
19246
 
  cat conftest.err >&5
19247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
 
  (exit $ac_status); } && {
19249
 
         test -z "$ac_c_werror_flag" ||
19250
 
         test ! -s conftest.err
19251
 
       } && test -s conftest$ac_exeext &&
19252
 
       $as_test_x conftest$ac_exeext; then
19253
 
 
19254
 
lt_aix_libpath_sed='
19255
 
    /Import File Strings/,/^$/ {
19256
 
        /^0/ {
19257
 
            s/^0  *\(.*\)$/\1/
19258
 
            p
19259
 
        }
19260
 
    }'
19261
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19262
 
# Check for a 64-bit object if we didn't find anything.
19263
 
if test -z "$aix_libpath"; then
19264
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19265
 
fi
19266
 
else
19267
 
  echo "$as_me: failed program was:" >&5
19268
 
sed 's/^/| /' conftest.$ac_ext >&5
19269
 
 
19270
 
 
19271
 
fi
19272
 
 
19273
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19274
 
      conftest$ac_exeext conftest.$ac_ext
19275
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19276
 
 
19277
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19278
 
          # Warning - without using the other run time loading flags,
19279
 
          # -berok will link without error, but may produce a broken library.
19280
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
19281
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
19282
 
          # Exported symbols can be pulled into shared objects from archives
19283
 
          whole_archive_flag_spec_GCJ='$convenience'
19284
 
          archive_cmds_need_lc_GCJ=yes
19285
 
          # This is similar to how AIX traditionally builds its shared libraries.
19286
 
          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'
19287
 
        fi
19288
 
      fi
19289
 
      ;;
19290
 
 
19291
 
    amigaos*)
19292
 
      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)'
19293
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19294
 
      hardcode_minus_L_GCJ=yes
19295
 
      # see comment about different semantics on the GNU ld section
19296
 
      ld_shlibs_GCJ=no
19297
 
      ;;
19298
 
 
19299
 
    bsdi[45]*)
19300
 
      export_dynamic_flag_spec_GCJ=-rdynamic
19301
 
      ;;
19302
 
 
19303
 
    cygwin* | mingw* | pw32*)
19304
 
      # When not using gcc, we currently assume that we are using
19305
 
      # Microsoft Visual C++.
19306
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
19307
 
      # no search path for DLLs.
19308
 
      hardcode_libdir_flag_spec_GCJ=' '
19309
 
      allow_undefined_flag_GCJ=unsupported
19310
 
      # Tell ltmain to make .lib files, not .a files.
19311
 
      libext=lib
19312
 
      # Tell ltmain to make .dll files, not .so files.
19313
 
      shrext_cmds=".dll"
19314
 
      # FIXME: Setting linknames here is a bad hack.
19315
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19316
 
      # The linker will automatically build a .lib file if we build a DLL.
19317
 
      old_archive_From_new_cmds_GCJ='true'
19318
 
      # FIXME: Should let the user specify the lib program.
19319
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19320
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19321
 
      enable_shared_with_static_runtimes_GCJ=yes
19322
 
      ;;
19323
 
 
19324
 
    darwin* | rhapsody*)
19325
 
      case $host_os in
19326
 
        rhapsody* | darwin1.[012])
19327
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19328
 
         ;;
19329
 
       *) # Darwin 1.3 on
19330
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19331
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19332
 
         else
19333
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
19334
 
             10.[012])
19335
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19336
 
               ;;
19337
 
             10.*)
19338
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19339
 
               ;;
19340
 
           esac
19341
 
         fi
19342
 
         ;;
19343
 
      esac
19344
 
      archive_cmds_need_lc_GCJ=no
19345
 
      hardcode_direct_GCJ=no
19346
 
      hardcode_automatic_GCJ=yes
19347
 
      hardcode_shlibpath_var_GCJ=unsupported
19348
 
      whole_archive_flag_spec_GCJ=''
19349
 
      link_all_deplibs_GCJ=yes
19350
 
    if test "$GCC" = yes ; then
19351
 
        output_verbose_link_cmd='echo'
19352
 
        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}"
19353
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19354
 
        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}"
19355
 
        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}"
19356
 
    else
19357
 
      case $cc_basename in
19358
 
        xlc*)
19359
 
         output_verbose_link_cmd='echo'
19360
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19361
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19362
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19363
 
         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}'
19364
 
          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}'
19365
 
          ;;
19366
 
       *)
19367
 
         ld_shlibs_GCJ=no
19368
 
          ;;
19369
 
      esac
19370
 
    fi
19371
 
      ;;
19372
 
 
19373
 
    dgux*)
19374
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19375
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19376
 
      hardcode_shlibpath_var_GCJ=no
19377
 
      ;;
19378
 
 
19379
 
    freebsd1*)
19380
 
      ld_shlibs_GCJ=no
19381
 
      ;;
19382
 
 
19383
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19384
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
19385
 
    # does not break anything, and helps significantly (at the cost of a little
19386
 
    # extra space).
19387
 
    freebsd2.2*)
19388
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19389
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19390
 
      hardcode_direct_GCJ=yes
19391
 
      hardcode_shlibpath_var_GCJ=no
19392
 
      ;;
19393
 
 
19394
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19395
 
    freebsd2*)
19396
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19397
 
      hardcode_direct_GCJ=yes
19398
 
      hardcode_minus_L_GCJ=yes
19399
 
      hardcode_shlibpath_var_GCJ=no
19400
 
      ;;
19401
 
 
19402
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19403
 
    freebsd* | dragonfly*)
19404
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19405
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19406
 
      hardcode_direct_GCJ=yes
19407
 
      hardcode_shlibpath_var_GCJ=no
19408
 
      ;;
19409
 
 
19410
 
    hpux9*)
19411
 
      if test "$GCC" = yes; then
19412
 
        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'
19413
 
      else
19414
 
        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'
19415
 
      fi
19416
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19417
 
      hardcode_libdir_separator_GCJ=:
19418
 
      hardcode_direct_GCJ=yes
19419
 
 
19420
 
      # hardcode_minus_L: Not really in the search PATH,
19421
 
      # but as the default location of the library.
19422
 
      hardcode_minus_L_GCJ=yes
19423
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
19424
 
      ;;
19425
 
 
19426
 
    hpux10*)
19427
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19428
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19429
 
      else
19430
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19431
 
      fi
19432
 
      if test "$with_gnu_ld" = no; then
19433
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19434
 
        hardcode_libdir_separator_GCJ=:
19435
 
 
19436
 
        hardcode_direct_GCJ=yes
19437
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
19438
 
 
19439
 
        # hardcode_minus_L: Not really in the search PATH,
19440
 
        # but as the default location of the library.
19441
 
        hardcode_minus_L_GCJ=yes
19442
 
      fi
19443
 
      ;;
19444
 
 
19445
 
    hpux11*)
19446
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19447
 
        case $host_cpu in
19448
 
        hppa*64*)
19449
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19450
 
          ;;
19451
 
        ia64*)
19452
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19453
 
          ;;
19454
 
        *)
19455
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19456
 
          ;;
19457
 
        esac
19458
 
      else
19459
 
        case $host_cpu in
19460
 
        hppa*64*)
19461
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19462
 
          ;;
19463
 
        ia64*)
19464
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19465
 
          ;;
19466
 
        *)
19467
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19468
 
          ;;
19469
 
        esac
19470
 
      fi
19471
 
      if test "$with_gnu_ld" = no; then
19472
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19473
 
        hardcode_libdir_separator_GCJ=:
19474
 
 
19475
 
        case $host_cpu in
19476
 
        hppa*64*|ia64*)
19477
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19478
 
          hardcode_direct_GCJ=no
19479
 
          hardcode_shlibpath_var_GCJ=no
19480
 
          ;;
19481
 
        *)
19482
 
          hardcode_direct_GCJ=yes
19483
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
19484
 
 
19485
 
          # hardcode_minus_L: Not really in the search PATH,
19486
 
          # but as the default location of the library.
19487
 
          hardcode_minus_L_GCJ=yes
19488
 
          ;;
19489
 
        esac
19490
 
      fi
19491
 
      ;;
19492
 
 
19493
 
    irix5* | irix6* | nonstopux*)
19494
 
      if test "$GCC" = yes; then
19495
 
        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'
19496
 
      else
19497
 
        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'
19498
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19499
 
      fi
19500
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19501
 
      hardcode_libdir_separator_GCJ=:
19502
 
      link_all_deplibs_GCJ=yes
19503
 
      ;;
19504
 
 
19505
 
    netbsd* | netbsdelf*-gnu)
19506
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19507
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19508
 
      else
19509
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19510
 
      fi
19511
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19512
 
      hardcode_direct_GCJ=yes
19513
 
      hardcode_shlibpath_var_GCJ=no
19514
 
      ;;
19515
 
 
19516
 
    newsos6)
19517
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518
 
      hardcode_direct_GCJ=yes
19519
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19520
 
      hardcode_libdir_separator_GCJ=:
19521
 
      hardcode_shlibpath_var_GCJ=no
19522
 
      ;;
19523
 
 
19524
 
    openbsd*)
19525
 
      if test -f /usr/libexec/ld.so; then
19526
 
        hardcode_direct_GCJ=yes
19527
 
        hardcode_shlibpath_var_GCJ=no
19528
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19530
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19531
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19532
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
19533
 
        else
19534
 
          case $host_os in
19535
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19536
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19537
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
19538
 
             ;;
19539
 
           *)
19540
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19541
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19542
 
             ;;
19543
 
          esac
19544
 
        fi
19545
 
      else
19546
 
        ld_shlibs_GCJ=no
19547
 
      fi
19548
 
      ;;
19549
 
 
19550
 
    os2*)
19551
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19552
 
      hardcode_minus_L_GCJ=yes
19553
 
      allow_undefined_flag_GCJ=unsupported
19554
 
      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'
19555
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19556
 
      ;;
19557
 
 
19558
 
    osf3*)
19559
 
      if test "$GCC" = yes; then
19560
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19561
 
        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'
19562
 
      else
19563
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
19564
 
        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'
19565
 
      fi
19566
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19567
 
      hardcode_libdir_separator_GCJ=:
19568
 
      ;;
19569
 
 
19570
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
19571
 
      if test "$GCC" = yes; then
19572
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19573
 
        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'
19574
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19575
 
      else
19576
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
19577
 
        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'
19578
 
        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~
19579
 
        $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'
19580
 
 
19581
 
        # Both c and cxx compiler support -rpath directly
19582
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19583
 
      fi
19584
 
      hardcode_libdir_separator_GCJ=:
19585
 
      ;;
19586
 
 
19587
 
    solaris*)
19588
 
      no_undefined_flag_GCJ=' -z text'
19589
 
      if test "$GCC" = yes; then
19590
 
        wlarc='${wl}'
19591
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19593
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19594
 
      else
19595
 
        wlarc=''
19596
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19598
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19599
 
      fi
19600
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19601
 
      hardcode_shlibpath_var_GCJ=no
19602
 
      case $host_os in
19603
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
19604
 
      *)
19605
 
        # The compiler driver will combine and reorder linker options,
19606
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
19607
 
        # but is careful enough not to reorder.
19608
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
19609
 
        if test "$GCC" = yes; then
19610
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19611
 
        else
19612
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19613
 
        fi
19614
 
        ;;
19615
 
      esac
19616
 
      link_all_deplibs_GCJ=yes
19617
 
      ;;
19618
 
 
19619
 
    sunos4*)
19620
 
      if test "x$host_vendor" = xsequent; then
19621
 
        # Use $CC to link under sequent, because it throws in some extra .o
19622
 
        # files that make .init and .fini sections work.
19623
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19624
 
      else
19625
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19626
 
      fi
19627
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19628
 
      hardcode_direct_GCJ=yes
19629
 
      hardcode_minus_L_GCJ=yes
19630
 
      hardcode_shlibpath_var_GCJ=no
19631
 
      ;;
19632
 
 
19633
 
    sysv4)
19634
 
      case $host_vendor in
19635
 
        sni)
19636
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637
 
          hardcode_direct_GCJ=yes # is this really true???
19638
 
        ;;
19639
 
        siemens)
19640
 
          ## LD is ld it makes a PLAMLIB
19641
 
          ## CC just makes a GrossModule.
19642
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19643
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19644
 
          hardcode_direct_GCJ=no
19645
 
        ;;
19646
 
        motorola)
19647
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19649
 
        ;;
19650
 
      esac
19651
 
      runpath_var='LD_RUN_PATH'
19652
 
      hardcode_shlibpath_var_GCJ=no
19653
 
      ;;
19654
 
 
19655
 
    sysv4.3*)
19656
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19657
 
      hardcode_shlibpath_var_GCJ=no
19658
 
      export_dynamic_flag_spec_GCJ='-Bexport'
19659
 
      ;;
19660
 
 
19661
 
    sysv4*MP*)
19662
 
      if test -d /usr/nec; then
19663
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19664
 
        hardcode_shlibpath_var_GCJ=no
19665
 
        runpath_var=LD_RUN_PATH
19666
 
        hardcode_runpath_var=yes
19667
 
        ld_shlibs_GCJ=yes
19668
 
      fi
19669
 
      ;;
19670
 
 
19671
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19672
 
      no_undefined_flag_GCJ='${wl}-z,text'
19673
 
      archive_cmds_need_lc_GCJ=no
19674
 
      hardcode_shlibpath_var_GCJ=no
19675
 
      runpath_var='LD_RUN_PATH'
19676
 
 
19677
 
      if test "$GCC" = yes; then
19678
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19679
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19680
 
      else
19681
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19682
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683
 
      fi
19684
 
      ;;
19685
 
 
19686
 
    sysv5* | sco3.2v5* | sco5v6*)
19687
 
      # Note: We can NOT use -z defs as we might desire, because we do not
19688
 
      # link with -lc, and that would cause any symbols used from libc to
19689
 
      # always be unresolved, which means just about no library would
19690
 
      # ever link correctly.  If we're not using GNU ld we use -z text
19691
 
      # though, which does catch some bad symbols but isn't as heavy-handed
19692
 
      # as -z defs.
19693
 
      no_undefined_flag_GCJ='${wl}-z,text'
19694
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19695
 
      archive_cmds_need_lc_GCJ=no
19696
 
      hardcode_shlibpath_var_GCJ=no
19697
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19698
 
      hardcode_libdir_separator_GCJ=':'
19699
 
      link_all_deplibs_GCJ=yes
19700
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19701
 
      runpath_var='LD_RUN_PATH'
19702
 
 
19703
 
      if test "$GCC" = yes; then
19704
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19705
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19706
 
      else
19707
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19708
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19709
 
      fi
19710
 
      ;;
19711
 
 
19712
 
    uts4*)
19713
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19714
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19715
 
      hardcode_shlibpath_var_GCJ=no
19716
 
      ;;
19717
 
 
19718
 
    *)
19719
 
      ld_shlibs_GCJ=no
19720
 
      ;;
19721
 
    esac
19722
 
  fi
19723
 
 
19724
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19725
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19726
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19727
 
 
19728
 
#
19729
 
# Do we need to explicitly link libc?
19730
 
#
19731
 
case "x$archive_cmds_need_lc_GCJ" in
19732
 
x|xyes)
19733
 
  # Assume -lc should be added
19734
 
  archive_cmds_need_lc_GCJ=yes
19735
 
 
19736
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
19737
 
    case $archive_cmds_GCJ in
19738
 
    *'~'*)
19739
 
      # FIXME: we may have to deal with multi-command sequences.
19740
 
      ;;
19741
 
    '$CC '*)
19742
 
      # Test whether the compiler implicitly links with -lc since on some
19743
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19744
 
      # to ld, don't add -lc before -lgcc.
19745
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19746
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19747
 
      $rm conftest*
19748
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19749
 
 
19750
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751
 
  (eval $ac_compile) 2>&5
19752
 
  ac_status=$?
19753
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754
 
  (exit $ac_status); } 2>conftest.err; then
19755
 
        soname=conftest
19756
 
        lib=conftest
19757
 
        libobjs=conftest.$ac_objext
19758
 
        deplibs=
19759
 
        wl=$lt_prog_compiler_wl_GCJ
19760
 
        pic_flag=$lt_prog_compiler_pic_GCJ
19761
 
        compiler_flags=-v
19762
 
        linker_flags=-v
19763
 
        verstring=
19764
 
        output_objdir=.
19765
 
        libname=conftest
19766
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19767
 
        allow_undefined_flag_GCJ=
19768
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19769
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19770
 
  ac_status=$?
19771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772
 
  (exit $ac_status); }
19773
 
        then
19774
 
          archive_cmds_need_lc_GCJ=no
19775
 
        else
19776
 
          archive_cmds_need_lc_GCJ=yes
19777
 
        fi
19778
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19779
 
      else
19780
 
        cat conftest.err 1>&5
19781
 
      fi
19782
 
      $rm conftest*
19783
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19784
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19785
 
      ;;
19786
 
    esac
19787
 
  fi
19788
 
  ;;
19789
 
esac
19790
 
 
19791
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19792
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19793
 
library_names_spec=
19794
 
libname_spec='lib$name'
19795
 
soname_spec=
19796
 
shrext_cmds=".so"
19797
 
postinstall_cmds=
19798
 
postuninstall_cmds=
19799
 
finish_cmds=
19800
 
finish_eval=
19801
 
shlibpath_var=
19802
 
shlibpath_overrides_runpath=unknown
19803
 
version_type=none
19804
 
dynamic_linker="$host_os ld.so"
19805
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19806
 
 
19807
 
need_lib_prefix=unknown
19808
 
hardcode_into_libs=no
19809
 
 
19810
 
# when you set need_version to no, make sure it does not cause -set_version
19811
 
# flags to be left without arguments
19812
 
need_version=unknown
19813
 
 
19814
 
case $host_os in
19815
 
aix3*)
19816
 
  version_type=linux
19817
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19818
 
  shlibpath_var=LIBPATH
19819
 
 
19820
 
  # AIX 3 has no versioning support, so we append a major version to the name.
19821
 
  soname_spec='${libname}${release}${shared_ext}$major'
19822
 
  ;;
19823
 
 
19824
 
aix[4-9]*)
19825
 
  version_type=linux
19826
 
  need_lib_prefix=no
19827
 
  need_version=no
19828
 
  hardcode_into_libs=yes
19829
 
  if test "$host_cpu" = ia64; then
19830
 
    # AIX 5 supports IA64
19831
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19832
 
    shlibpath_var=LD_LIBRARY_PATH
19833
 
  else
19834
 
    # With GCC up to 2.95.x, collect2 would create an import file
19835
 
    # for dependence libraries.  The import file would start with
19836
 
    # the line `#! .'.  This would cause the generated library to
19837
 
    # depend on `.', always an invalid library.  This was fixed in
19838
 
    # development snapshots of GCC prior to 3.0.
19839
 
    case $host_os in
19840
 
      aix4 | aix4.[01] | aix4.[01].*)
19841
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19842
 
           echo ' yes '
19843
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19844
 
        :
19845
 
      else
19846
 
        can_build_shared=no
19847
 
      fi
19848
 
      ;;
19849
 
    esac
19850
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19851
 
    # soname into executable. Probably we can add versioning support to
19852
 
    # collect2, so additional links can be useful in future.
19853
 
    if test "$aix_use_runtimelinking" = yes; then
19854
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19855
 
      # instead of lib<name>.a to let people know that these are not
19856
 
      # typical AIX shared libraries.
19857
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858
 
    else
19859
 
      # We preserve .a as extension for shared libraries through AIX4.2
19860
 
      # and later when we are not doing run time linking.
19861
 
      library_names_spec='${libname}${release}.a $libname.a'
19862
 
      soname_spec='${libname}${release}${shared_ext}$major'
19863
 
    fi
19864
 
    shlibpath_var=LIBPATH
19865
 
  fi
19866
 
  ;;
19867
 
 
19868
 
amigaos*)
19869
 
  library_names_spec='$libname.ixlibrary $libname.a'
19870
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19871
 
  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'
19872
 
  ;;
19873
 
 
19874
 
beos*)
19875
 
  library_names_spec='${libname}${shared_ext}'
19876
 
  dynamic_linker="$host_os ld.so"
19877
 
  shlibpath_var=LIBRARY_PATH
19878
 
  ;;
19879
 
 
19880
 
bsdi[45]*)
19881
 
  version_type=linux
19882
 
  need_version=no
19883
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19884
 
  soname_spec='${libname}${release}${shared_ext}$major'
19885
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19886
 
  shlibpath_var=LD_LIBRARY_PATH
19887
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19888
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19889
 
  # the default ld.so.conf also contains /usr/contrib/lib and
19890
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19891
 
  # libtool to hard-code these into programs
19892
 
  ;;
19893
 
 
19894
 
cygwin* | mingw* | pw32*)
19895
 
  version_type=windows
19896
 
  shrext_cmds=".dll"
19897
 
  need_version=no
19898
 
  need_lib_prefix=no
19899
 
 
19900
 
  case $GCC,$host_os in
19901
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
19902
 
    library_names_spec='$libname.dll.a'
19903
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19904
 
    postinstall_cmds='base_file=`basename \${file}`~
19905
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19906
 
      dldir=$destdir/`dirname \$dlpath`~
19907
 
      test -d \$dldir || mkdir -p \$dldir~
19908
 
      $install_prog $dir/$dlname \$dldir/$dlname~
19909
 
      chmod a+x \$dldir/$dlname'
19910
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19911
 
      dlpath=$dir/\$dldll~
19912
 
       $rm \$dlpath'
19913
 
    shlibpath_overrides_runpath=yes
19914
 
 
19915
 
    case $host_os in
19916
 
    cygwin*)
19917
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19918
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19919
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19920
 
      ;;
19921
 
    mingw*)
19922
 
      # MinGW DLLs use traditional 'lib' prefix
19923
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19924
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19925
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19926
 
        # It is most probably a Windows format PATH printed by
19927
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19928
 
        # path with ; separators, and with drive letters. We can handle the
19929
 
        # drive letters (cygwin fileutils understands them), so leave them,
19930
 
        # especially as we might pass files found there to a mingw objdump,
19931
 
        # which wouldn't understand a cygwinified path. Ahh.
19932
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19933
 
      else
19934
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19935
 
      fi
19936
 
      ;;
19937
 
    pw32*)
19938
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19939
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19940
 
      ;;
19941
 
    esac
19942
 
    ;;
19943
 
 
19944
 
  *)
19945
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19946
 
    ;;
19947
 
  esac
19948
 
  dynamic_linker='Win32 ld.exe'
19949
 
  # FIXME: first we should search . and the directory the executable is in
19950
 
  shlibpath_var=PATH
19951
 
  ;;
19952
 
 
19953
 
darwin* | rhapsody*)
19954
 
  dynamic_linker="$host_os dyld"
19955
 
  version_type=darwin
19956
 
  need_lib_prefix=no
19957
 
  need_version=no
19958
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19959
 
  soname_spec='${libname}${release}${major}$shared_ext'
19960
 
  shlibpath_overrides_runpath=yes
19961
 
  shlibpath_var=DYLD_LIBRARY_PATH
19962
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19963
 
 
19964
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19965
 
  ;;
19966
 
 
19967
 
dgux*)
19968
 
  version_type=linux
19969
 
  need_lib_prefix=no
19970
 
  need_version=no
19971
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19972
 
  soname_spec='${libname}${release}${shared_ext}$major'
19973
 
  shlibpath_var=LD_LIBRARY_PATH
19974
 
  ;;
19975
 
 
19976
 
freebsd1*)
19977
 
  dynamic_linker=no
19978
 
  ;;
19979
 
 
19980
 
freebsd* | dragonfly*)
19981
 
  # DragonFly does not have aout.  When/if they implement a new
19982
 
  # versioning mechanism, adjust this.
19983
 
  if test -x /usr/bin/objformat; then
19984
 
    objformat=`/usr/bin/objformat`
19985
 
  else
19986
 
    case $host_os in
19987
 
    freebsd[123]*) objformat=aout ;;
19988
 
    *) objformat=elf ;;
19989
 
    esac
19990
 
  fi
19991
 
  version_type=freebsd-$objformat
19992
 
  case $version_type in
19993
 
    freebsd-elf*)
19994
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19995
 
      need_version=no
19996
 
      need_lib_prefix=no
19997
 
      ;;
19998
 
    freebsd-*)
19999
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20000
 
      need_version=yes
20001
 
      ;;
20002
 
  esac
20003
 
  shlibpath_var=LD_LIBRARY_PATH
20004
 
  case $host_os in
20005
 
  freebsd2*)
20006
 
    shlibpath_overrides_runpath=yes
20007
 
    ;;
20008
 
  freebsd3.[01]* | freebsdelf3.[01]*)
20009
 
    shlibpath_overrides_runpath=yes
20010
 
    hardcode_into_libs=yes
20011
 
    ;;
20012
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20013
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20014
 
    shlibpath_overrides_runpath=no
20015
 
    hardcode_into_libs=yes
20016
 
    ;;
20017
 
  *) # from 4.6 on, and DragonFly
20018
 
    shlibpath_overrides_runpath=yes
20019
 
    hardcode_into_libs=yes
20020
 
    ;;
20021
 
  esac
20022
 
  ;;
20023
 
 
20024
 
gnu*)
20025
 
  version_type=linux
20026
 
  need_lib_prefix=no
20027
 
  need_version=no
20028
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20029
 
  soname_spec='${libname}${release}${shared_ext}$major'
20030
 
  shlibpath_var=LD_LIBRARY_PATH
20031
 
  hardcode_into_libs=yes
20032
 
  ;;
20033
 
 
20034
 
hpux9* | hpux10* | hpux11*)
20035
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
20036
 
  # link against other versions.
20037
 
  version_type=sunos
20038
 
  need_lib_prefix=no
20039
 
  need_version=no
20040
 
  case $host_cpu in
20041
 
  ia64*)
20042
 
    shrext_cmds='.so'
20043
 
    hardcode_into_libs=yes
20044
 
    dynamic_linker="$host_os dld.so"
20045
 
    shlibpath_var=LD_LIBRARY_PATH
20046
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20047
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20048
 
    soname_spec='${libname}${release}${shared_ext}$major'
20049
 
    if test "X$HPUX_IA64_MODE" = X32; then
20050
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20051
 
    else
20052
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20053
 
    fi
20054
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20055
 
    ;;
20056
 
   hppa*64*)
20057
 
     shrext_cmds='.sl'
20058
 
     hardcode_into_libs=yes
20059
 
     dynamic_linker="$host_os dld.sl"
20060
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20061
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20062
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063
 
     soname_spec='${libname}${release}${shared_ext}$major'
20064
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20065
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20066
 
     ;;
20067
 
   *)
20068
 
    shrext_cmds='.sl'
20069
 
    dynamic_linker="$host_os dld.sl"
20070
 
    shlibpath_var=SHLIB_PATH
20071
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20072
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20073
 
    soname_spec='${libname}${release}${shared_ext}$major'
20074
 
    ;;
20075
 
  esac
20076
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20077
 
  postinstall_cmds='chmod 555 $lib'
20078
 
  ;;
20079
 
 
20080
 
interix[3-9]*)
20081
 
  version_type=linux
20082
 
  need_lib_prefix=no
20083
 
  need_version=no
20084
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20085
 
  soname_spec='${libname}${release}${shared_ext}$major'
20086
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20087
 
  shlibpath_var=LD_LIBRARY_PATH
20088
 
  shlibpath_overrides_runpath=no
20089
 
  hardcode_into_libs=yes
20090
 
  ;;
20091
 
 
20092
 
irix5* | irix6* | nonstopux*)
20093
 
  case $host_os in
20094
 
    nonstopux*) version_type=nonstopux ;;
20095
 
    *)
20096
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
20097
 
                version_type=linux
20098
 
        else
20099
 
                version_type=irix
20100
 
        fi ;;
20101
 
  esac
20102
 
  need_lib_prefix=no
20103
 
  need_version=no
20104
 
  soname_spec='${libname}${release}${shared_ext}$major'
20105
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20106
 
  case $host_os in
20107
 
  irix5* | nonstopux*)
20108
 
    libsuff= shlibsuff=
20109
 
    ;;
20110
 
  *)
20111
 
    case $LD in # libtool.m4 will add one of these switches to LD
20112
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20113
 
      libsuff= shlibsuff= libmagic=32-bit;;
20114
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20115
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
20116
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20117
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20118
 
    *) libsuff= shlibsuff= libmagic=never-match;;
20119
 
    esac
20120
 
    ;;
20121
 
  esac
20122
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20123
 
  shlibpath_overrides_runpath=no
20124
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20125
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20126
 
  hardcode_into_libs=yes
20127
 
  ;;
20128
 
 
20129
 
# No shared lib support for Linux oldld, aout, or coff.
20130
 
linux*oldld* | linux*aout* | linux*coff*)
20131
 
  dynamic_linker=no
20132
 
  ;;
20133
 
 
20134
 
# This must be Linux ELF.
20135
 
linux* | k*bsd*-gnu)
20136
 
  version_type=linux
20137
 
  need_lib_prefix=no
20138
 
  need_version=no
20139
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140
 
  soname_spec='${libname}${release}${shared_ext}$major'
20141
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20142
 
  shlibpath_var=LD_LIBRARY_PATH
20143
 
  shlibpath_overrides_runpath=no
20144
 
  # This implies no fast_install, which is unacceptable.
20145
 
  # Some rework will be needed to allow for fast_install
20146
 
  # before this can be enabled.
20147
 
  hardcode_into_libs=yes
20148
 
 
20149
 
  # Append ld.so.conf contents to the search path
20150
 
  if test -f /etc/ld.so.conf; then
20151
 
    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' ' '`
20152
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20153
 
  fi
20154
 
 
20155
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
20156
 
  # powerpc, because MkLinux only supported shared libraries with the
20157
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
20158
 
  # most powerpc-linux boxes support dynamic linking these days and
20159
 
  # people can always --disable-shared, the test was removed, and we
20160
 
  # assume the GNU/Linux dynamic linker is in use.
20161
 
  dynamic_linker='GNU/Linux ld.so'
20162
 
  ;;
20163
 
 
20164
 
netbsdelf*-gnu)
20165
 
  version_type=linux
20166
 
  need_lib_prefix=no
20167
 
  need_version=no
20168
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20169
 
  soname_spec='${libname}${release}${shared_ext}$major'
20170
 
  shlibpath_var=LD_LIBRARY_PATH
20171
 
  shlibpath_overrides_runpath=no
20172
 
  hardcode_into_libs=yes
20173
 
  dynamic_linker='NetBSD ld.elf_so'
20174
 
  ;;
20175
 
 
20176
 
netbsd*)
20177
 
  version_type=sunos
20178
 
  need_lib_prefix=no
20179
 
  need_version=no
20180
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20181
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20182
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20183
 
    dynamic_linker='NetBSD (a.out) ld.so'
20184
 
  else
20185
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20186
 
    soname_spec='${libname}${release}${shared_ext}$major'
20187
 
    dynamic_linker='NetBSD ld.elf_so'
20188
 
  fi
20189
 
  shlibpath_var=LD_LIBRARY_PATH
20190
 
  shlibpath_overrides_runpath=yes
20191
 
  hardcode_into_libs=yes
20192
 
  ;;
20193
 
 
20194
 
newsos6)
20195
 
  version_type=linux
20196
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197
 
  shlibpath_var=LD_LIBRARY_PATH
20198
 
  shlibpath_overrides_runpath=yes
20199
 
  ;;
20200
 
 
20201
 
nto-qnx*)
20202
 
  version_type=linux
20203
 
  need_lib_prefix=no
20204
 
  need_version=no
20205
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206
 
  soname_spec='${libname}${release}${shared_ext}$major'
20207
 
  shlibpath_var=LD_LIBRARY_PATH
20208
 
  shlibpath_overrides_runpath=yes
20209
 
  ;;
20210
 
 
20211
 
openbsd*)
20212
 
  version_type=sunos
20213
 
  sys_lib_dlsearch_path_spec="/usr/lib"
20214
 
  need_lib_prefix=no
20215
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20216
 
  case $host_os in
20217
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20218
 
    *)                         need_version=no  ;;
20219
 
  esac
20220
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20221
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20222
 
  shlibpath_var=LD_LIBRARY_PATH
20223
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20224
 
    case $host_os in
20225
 
      openbsd2.[89] | openbsd2.[89].*)
20226
 
        shlibpath_overrides_runpath=no
20227
 
        ;;
20228
 
      *)
20229
 
        shlibpath_overrides_runpath=yes
20230
 
        ;;
20231
 
      esac
20232
 
  else
20233
 
    shlibpath_overrides_runpath=yes
20234
 
  fi
20235
 
  ;;
20236
 
 
20237
 
os2*)
20238
 
  libname_spec='$name'
20239
 
  shrext_cmds=".dll"
20240
 
  need_lib_prefix=no
20241
 
  library_names_spec='$libname${shared_ext} $libname.a'
20242
 
  dynamic_linker='OS/2 ld.exe'
20243
 
  shlibpath_var=LIBPATH
20244
 
  ;;
20245
 
 
20246
 
osf3* | osf4* | osf5*)
20247
 
  version_type=osf
20248
 
  need_lib_prefix=no
20249
 
  need_version=no
20250
 
  soname_spec='${libname}${release}${shared_ext}$major'
20251
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252
 
  shlibpath_var=LD_LIBRARY_PATH
20253
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20254
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20255
 
  ;;
20256
 
 
20257
 
rdos*)
20258
 
  dynamic_linker=no
20259
 
  ;;
20260
 
 
20261
 
solaris*)
20262
 
  version_type=linux
20263
 
  need_lib_prefix=no
20264
 
  need_version=no
20265
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266
 
  soname_spec='${libname}${release}${shared_ext}$major'
20267
 
  shlibpath_var=LD_LIBRARY_PATH
20268
 
  shlibpath_overrides_runpath=yes
20269
 
  hardcode_into_libs=yes
20270
 
  # ldd complains unless libraries are executable
20271
 
  postinstall_cmds='chmod +x $lib'
20272
 
  ;;
20273
 
 
20274
 
sunos4*)
20275
 
  version_type=sunos
20276
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278
 
  shlibpath_var=LD_LIBRARY_PATH
20279
 
  shlibpath_overrides_runpath=yes
20280
 
  if test "$with_gnu_ld" = yes; then
20281
 
    need_lib_prefix=no
20282
 
  fi
20283
 
  need_version=yes
20284
 
  ;;
20285
 
 
20286
 
sysv4 | sysv4.3*)
20287
 
  version_type=linux
20288
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289
 
  soname_spec='${libname}${release}${shared_ext}$major'
20290
 
  shlibpath_var=LD_LIBRARY_PATH
20291
 
  case $host_vendor in
20292
 
    sni)
20293
 
      shlibpath_overrides_runpath=no
20294
 
      need_lib_prefix=no
20295
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
20296
 
      runpath_var=LD_RUN_PATH
20297
 
      ;;
20298
 
    siemens)
20299
 
      need_lib_prefix=no
20300
 
      ;;
20301
 
    motorola)
20302
 
      need_lib_prefix=no
20303
 
      need_version=no
20304
 
      shlibpath_overrides_runpath=no
20305
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20306
 
      ;;
20307
 
  esac
20308
 
  ;;
20309
 
 
20310
 
sysv4*MP*)
20311
 
  if test -d /usr/nec ;then
20312
 
    version_type=linux
20313
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314
 
    soname_spec='$libname${shared_ext}.$major'
20315
 
    shlibpath_var=LD_LIBRARY_PATH
20316
 
  fi
20317
 
  ;;
20318
 
 
20319
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20320
 
  version_type=freebsd-elf
20321
 
  need_lib_prefix=no
20322
 
  need_version=no
20323
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20324
 
  soname_spec='${libname}${release}${shared_ext}$major'
20325
 
  shlibpath_var=LD_LIBRARY_PATH
20326
 
  hardcode_into_libs=yes
20327
 
  if test "$with_gnu_ld" = yes; then
20328
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20329
 
    shlibpath_overrides_runpath=no
20330
 
  else
20331
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20332
 
    shlibpath_overrides_runpath=yes
20333
 
    case $host_os in
20334
 
      sco3.2v5*)
20335
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20336
 
        ;;
20337
 
    esac
20338
 
  fi
20339
 
  sys_lib_dlsearch_path_spec='/usr/lib'
20340
 
  ;;
20341
 
 
20342
 
uts4*)
20343
 
  version_type=linux
20344
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345
 
  soname_spec='${libname}${release}${shared_ext}$major'
20346
 
  shlibpath_var=LD_LIBRARY_PATH
20347
 
  ;;
20348
 
 
20349
 
*)
20350
 
  dynamic_linker=no
20351
 
  ;;
20352
 
esac
20353
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20354
 
echo "${ECHO_T}$dynamic_linker" >&6; }
20355
 
test "$dynamic_linker" = no && can_build_shared=no
20356
 
 
20357
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20359
 
else
20360
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20361
 
fi
20362
 
 
20363
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20364
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20366
 
else
20367
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20368
 
fi
20369
 
 
20370
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20371
 
 
20372
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20373
 
if test "$GCC" = yes; then
20374
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20375
 
fi
20376
 
 
20377
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20378
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20379
 
hardcode_action_GCJ=
20380
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20381
 
   test -n "$runpath_var_GCJ" || \
20382
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20383
 
 
20384
 
  # We can hardcode non-existant directories.
20385
 
  if test "$hardcode_direct_GCJ" != no &&
20386
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20387
 
     # have to relink, otherwise we might link with an installed library
20388
 
     # when we should be linking with a yet-to-be-installed one
20389
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20390
 
     test "$hardcode_minus_L_GCJ" != no; then
20391
 
    # Linking always hardcodes the temporary library directory.
20392
 
    hardcode_action_GCJ=relink
20393
 
  else
20394
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20395
 
    hardcode_action_GCJ=immediate
20396
 
  fi
20397
 
else
20398
 
  # We cannot hardcode anything, or else we can only hardcode existing
20399
 
  # directories.
20400
 
  hardcode_action_GCJ=unsupported
20401
 
fi
20402
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20403
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20404
 
 
20405
 
if test "$hardcode_action_GCJ" = relink; then
20406
 
  # Fast installation is not supported
20407
 
  enable_fast_install=no
20408
 
elif test "$shlibpath_overrides_runpath" = yes ||
20409
 
     test "$enable_shared" = no; then
20410
 
  # Fast installation is not necessary
20411
 
  enable_fast_install=needless
20412
 
fi
20413
 
 
20414
 
 
20415
 
# The else clause should only fire when bootstrapping the
20416
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20417
 
# with your package, and you will get complaints that there are
20418
 
# no rules to generate ltmain.sh.
20419
 
if test -f "$ltmain"; then
20420
 
  # See if we are running on zsh, and set the options which allow our commands through
20421
 
  # without removal of \ escapes.
20422
 
  if test -n "${ZSH_VERSION+set}" ; then
20423
 
    setopt NO_GLOB_SUBST
20424
 
  fi
20425
 
  # Now quote all the things that may contain metacharacters while being
20426
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20427
 
  # variables and quote the copies for generation of the libtool script.
20428
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20429
 
    SED SHELL STRIP \
20430
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20431
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20432
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20433
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20434
 
    lt_cv_sys_global_symbol_to_c_name_address \
20435
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20436
 
    old_postinstall_cmds old_postuninstall_cmds \
20437
 
    compiler_GCJ \
20438
 
    CC_GCJ \
20439
 
    LD_GCJ \
20440
 
    lt_prog_compiler_wl_GCJ \
20441
 
    lt_prog_compiler_pic_GCJ \
20442
 
    lt_prog_compiler_static_GCJ \
20443
 
    lt_prog_compiler_no_builtin_flag_GCJ \
20444
 
    export_dynamic_flag_spec_GCJ \
20445
 
    thread_safe_flag_spec_GCJ \
20446
 
    whole_archive_flag_spec_GCJ \
20447
 
    enable_shared_with_static_runtimes_GCJ \
20448
 
    old_archive_cmds_GCJ \
20449
 
    old_archive_from_new_cmds_GCJ \
20450
 
    predep_objects_GCJ \
20451
 
    postdep_objects_GCJ \
20452
 
    predeps_GCJ \
20453
 
    postdeps_GCJ \
20454
 
    compiler_lib_search_path_GCJ \
20455
 
    compiler_lib_search_dirs_GCJ \
20456
 
    archive_cmds_GCJ \
20457
 
    archive_expsym_cmds_GCJ \
20458
 
    postinstall_cmds_GCJ \
20459
 
    postuninstall_cmds_GCJ \
20460
 
    old_archive_from_expsyms_cmds_GCJ \
20461
 
    allow_undefined_flag_GCJ \
20462
 
    no_undefined_flag_GCJ \
20463
 
    export_symbols_cmds_GCJ \
20464
 
    hardcode_libdir_flag_spec_GCJ \
20465
 
    hardcode_libdir_flag_spec_ld_GCJ \
20466
 
    hardcode_libdir_separator_GCJ \
20467
 
    hardcode_automatic_GCJ \
20468
 
    module_cmds_GCJ \
20469
 
    module_expsym_cmds_GCJ \
20470
 
    lt_cv_prog_compiler_c_o_GCJ \
20471
 
    fix_srcfile_path_GCJ \
20472
 
    exclude_expsyms_GCJ \
20473
 
    include_expsyms_GCJ; do
20474
 
 
20475
 
    case $var in
20476
 
    old_archive_cmds_GCJ | \
20477
 
    old_archive_from_new_cmds_GCJ | \
20478
 
    archive_cmds_GCJ | \
20479
 
    archive_expsym_cmds_GCJ | \
20480
 
    module_cmds_GCJ | \
20481
 
    module_expsym_cmds_GCJ | \
20482
 
    old_archive_from_expsyms_cmds_GCJ | \
20483
 
    export_symbols_cmds_GCJ | \
20484
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20485
 
    postinstall_cmds | postuninstall_cmds | \
20486
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20487
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20488
 
      # Double-quote double-evaled strings.
20489
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20490
 
      ;;
20491
 
    *)
20492
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20493
 
      ;;
20494
 
    esac
20495
 
  done
20496
 
 
20497
 
  case $lt_echo in
20498
 
  *'\$0 --fallback-echo"')
20499
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20500
 
    ;;
20501
 
  esac
20502
 
 
20503
 
cfgfile="$ofile"
20504
 
 
20505
 
  cat <<__EOF__ >> "$cfgfile"
20506
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20507
 
 
20508
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20509
 
 
20510
 
# Shell to use when invoking shell scripts.
20511
 
SHELL=$lt_SHELL
20512
 
 
20513
 
# Whether or not to build shared libraries.
20514
 
build_libtool_libs=$enable_shared
20515
 
 
20516
 
# Whether or not to build static libraries.
20517
 
build_old_libs=$enable_static
20518
 
 
20519
 
# Whether or not to add -lc for building shared libraries.
20520
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20521
 
 
20522
 
# Whether or not to disallow shared libs when runtime libs are static
20523
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20524
 
 
20525
 
# Whether or not to optimize for fast installation.
20526
 
fast_install=$enable_fast_install
20527
 
 
20528
 
# The host system.
20529
 
host_alias=$host_alias
20530
 
host=$host
20531
 
host_os=$host_os
20532
 
 
20533
 
# The build system.
20534
 
build_alias=$build_alias
20535
 
build=$build
20536
 
build_os=$build_os
20537
 
 
20538
 
# An echo program that does not interpret backslashes.
20539
 
echo=$lt_echo
20540
 
 
20541
 
# The archiver.
20542
 
AR=$lt_AR
20543
 
AR_FLAGS=$lt_AR_FLAGS
20544
 
 
20545
 
# A C compiler.
20546
 
LTCC=$lt_LTCC
20547
 
 
20548
 
# LTCC compiler flags.
20549
 
LTCFLAGS=$lt_LTCFLAGS
20550
 
 
20551
 
# A language-specific compiler.
20552
 
CC=$lt_compiler_GCJ
20553
 
 
20554
 
# Is the compiler the GNU C compiler?
20555
 
with_gcc=$GCC_GCJ
20556
 
 
20557
 
# An ERE matcher.
20558
 
EGREP=$lt_EGREP
20559
 
 
20560
 
# The linker used to build libraries.
20561
 
LD=$lt_LD_GCJ
20562
 
 
20563
 
# Whether we need hard or soft links.
20564
 
LN_S=$lt_LN_S
20565
 
 
20566
 
# A BSD-compatible nm program.
20567
 
NM=$lt_NM
20568
 
 
20569
 
# A symbol stripping program
20570
 
STRIP=$lt_STRIP
20571
 
 
20572
 
# Used to examine libraries when file_magic_cmd begins "file"
20573
 
MAGIC_CMD=$MAGIC_CMD
20574
 
 
20575
 
# Used on cygwin: DLL creation program.
20576
 
DLLTOOL="$DLLTOOL"
20577
 
 
20578
 
# Used on cygwin: object dumper.
20579
 
OBJDUMP="$OBJDUMP"
20580
 
 
20581
 
# Used on cygwin: assembler.
20582
 
AS="$AS"
20583
 
 
20584
 
# The name of the directory that contains temporary libtool files.
20585
 
objdir=$objdir
20586
 
 
20587
 
# How to create reloadable object files.
20588
 
reload_flag=$lt_reload_flag
20589
 
reload_cmds=$lt_reload_cmds
20590
 
 
20591
 
# How to pass a linker flag through the compiler.
20592
 
wl=$lt_lt_prog_compiler_wl_GCJ
20593
 
 
20594
 
# Object file suffix (normally "o").
20595
 
objext="$ac_objext"
20596
 
 
20597
 
# Old archive suffix (normally "a").
20598
 
libext="$libext"
20599
 
 
20600
 
# Shared library suffix (normally ".so").
20601
 
shrext_cmds='$shrext_cmds'
20602
 
 
20603
 
# Executable file suffix (normally "").
20604
 
exeext="$exeext"
20605
 
 
20606
 
# Additional compiler flags for building library objects.
20607
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20608
 
pic_mode=$pic_mode
20609
 
 
20610
 
# What is the maximum length of a command?
20611
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20612
 
 
20613
 
# Does compiler simultaneously support -c and -o options?
20614
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20615
 
 
20616
 
# Must we lock files when doing compilation?
20617
 
need_locks=$lt_need_locks
20618
 
 
20619
 
# Do we need the lib prefix for modules?
20620
 
need_lib_prefix=$need_lib_prefix
20621
 
 
20622
 
# Do we need a version for libraries?
20623
 
need_version=$need_version
20624
 
 
20625
 
# Whether dlopen is supported.
20626
 
dlopen_support=$enable_dlopen
20627
 
 
20628
 
# Whether dlopen of programs is supported.
20629
 
dlopen_self=$enable_dlopen_self
20630
 
 
20631
 
# Whether dlopen of statically linked programs is supported.
20632
 
dlopen_self_static=$enable_dlopen_self_static
20633
 
 
20634
 
# Compiler flag to prevent dynamic linking.
20635
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20636
 
 
20637
 
# Compiler flag to turn off builtin functions.
20638
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20639
 
 
20640
 
# Compiler flag to allow reflexive dlopens.
20641
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20642
 
 
20643
 
# Compiler flag to generate shared objects directly from archives.
20644
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20645
 
 
20646
 
# Compiler flag to generate thread-safe objects.
20647
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20648
 
 
20649
 
# Library versioning type.
20650
 
version_type=$version_type
20651
 
 
20652
 
# Format of library name prefix.
20653
 
libname_spec=$lt_libname_spec
20654
 
 
20655
 
# List of archive names.  First name is the real one, the rest are links.
20656
 
# The last name is the one that the linker finds with -lNAME.
20657
 
library_names_spec=$lt_library_names_spec
20658
 
 
20659
 
# The coded name of the library, if different from the real name.
20660
 
soname_spec=$lt_soname_spec
20661
 
 
20662
 
# Commands used to build and install an old-style archive.
20663
 
RANLIB=$lt_RANLIB
20664
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
20665
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20666
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20667
 
 
20668
 
# Create an old-style archive from a shared archive.
20669
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20670
 
 
20671
 
# Create a temporary old-style archive to link instead of a shared archive.
20672
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20673
 
 
20674
 
# Commands used to build and install a shared archive.
20675
 
archive_cmds=$lt_archive_cmds_GCJ
20676
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20677
 
postinstall_cmds=$lt_postinstall_cmds
20678
 
postuninstall_cmds=$lt_postuninstall_cmds
20679
 
 
20680
 
# Commands used to build a loadable module (assumed same as above if empty)
20681
 
module_cmds=$lt_module_cmds_GCJ
20682
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20683
 
 
20684
 
# Commands to strip libraries.
20685
 
old_striplib=$lt_old_striplib
20686
 
striplib=$lt_striplib
20687
 
 
20688
 
# Dependencies to place before the objects being linked to create a
20689
 
# shared library.
20690
 
predep_objects=$lt_predep_objects_GCJ
20691
 
 
20692
 
# Dependencies to place after the objects being linked to create a
20693
 
# shared library.
20694
 
postdep_objects=$lt_postdep_objects_GCJ
20695
 
 
20696
 
# Dependencies to place before the objects being linked to create a
20697
 
# shared library.
20698
 
predeps=$lt_predeps_GCJ
20699
 
 
20700
 
# Dependencies to place after the objects being linked to create a
20701
 
# shared library.
20702
 
postdeps=$lt_postdeps_GCJ
20703
 
 
20704
 
# The directories searched by this compiler when creating a shared
20705
 
# library
20706
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20707
 
 
20708
 
# The library search path used internally by the compiler when linking
20709
 
# a shared library.
20710
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20711
 
 
20712
 
# Method to check whether dependent libraries are shared objects.
20713
 
deplibs_check_method=$lt_deplibs_check_method
20714
 
 
20715
 
# Command to use when deplibs_check_method == file_magic.
20716
 
file_magic_cmd=$lt_file_magic_cmd
20717
 
 
20718
 
# Flag that allows shared libraries with undefined symbols to be built.
20719
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20720
 
 
20721
 
# Flag that forces no undefined symbols.
20722
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
20723
 
 
20724
 
# Commands used to finish a libtool library installation in a directory.
20725
 
finish_cmds=$lt_finish_cmds
20726
 
 
20727
 
# Same as above, but a single script fragment to be evaled but not shown.
20728
 
finish_eval=$lt_finish_eval
20729
 
 
20730
 
# Take the output of nm and produce a listing of raw symbols and C names.
20731
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20732
 
 
20733
 
# Transform the output of nm in a proper C declaration
20734
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20735
 
 
20736
 
# Transform the output of nm in a C name address pair
20737
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20738
 
 
20739
 
# This is the shared library runtime path variable.
20740
 
runpath_var=$runpath_var
20741
 
 
20742
 
# This is the shared library path variable.
20743
 
shlibpath_var=$shlibpath_var
20744
 
 
20745
 
# Is shlibpath searched before the hard-coded library search path?
20746
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20747
 
 
20748
 
# How to hardcode a shared library path into an executable.
20749
 
hardcode_action=$hardcode_action_GCJ
20750
 
 
20751
 
# Whether we should hardcode library paths into libraries.
20752
 
hardcode_into_libs=$hardcode_into_libs
20753
 
 
20754
 
# Flag to hardcode \$libdir into a binary during linking.
20755
 
# This must work even if \$libdir does not exist.
20756
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20757
 
 
20758
 
# If ld is used when linking, flag to hardcode \$libdir into
20759
 
# a binary during linking. This must work even if \$libdir does
20760
 
# not exist.
20761
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20762
 
 
20763
 
# Whether we need a single -rpath flag with a separated argument.
20764
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20765
 
 
20766
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20767
 
# resulting binary.
20768
 
hardcode_direct=$hardcode_direct_GCJ
20769
 
 
20770
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20771
 
# resulting binary.
20772
 
hardcode_minus_L=$hardcode_minus_L_GCJ
20773
 
 
20774
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20775
 
# the resulting binary.
20776
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20777
 
 
20778
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20779
 
# and all subsequent libraries and executables linked against it.
20780
 
hardcode_automatic=$hardcode_automatic_GCJ
20781
 
 
20782
 
# Variables whose values should be saved in libtool wrapper scripts and
20783
 
# restored at relink time.
20784
 
variables_saved_for_relink="$variables_saved_for_relink"
20785
 
 
20786
 
# Whether libtool must link a program against all its dependency libraries.
20787
 
link_all_deplibs=$link_all_deplibs_GCJ
20788
 
 
20789
 
# Compile-time system search path for libraries
20790
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20791
 
 
20792
 
# Run-time system search path for libraries
20793
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20794
 
 
20795
 
# Fix the shell variable \$srcfile for the compiler.
20796
 
fix_srcfile_path=$lt_fix_srcfile_path
20797
 
 
20798
 
# Set to yes if exported symbols are required.
20799
 
always_export_symbols=$always_export_symbols_GCJ
20800
 
 
20801
 
# The commands to list exported symbols.
20802
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20803
 
 
20804
 
# The commands to extract the exported symbol list from a shared archive.
20805
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20806
 
 
20807
 
# Symbols that should not be listed in the preloaded symbols.
20808
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
20809
 
 
20810
 
# Symbols that must always be exported.
20811
 
include_expsyms=$lt_include_expsyms_GCJ
20812
 
 
20813
 
# ### END LIBTOOL TAG CONFIG: $tagname
20814
 
 
20815
 
__EOF__
20816
 
 
20817
 
 
20818
 
else
20819
 
  # If there is no Makefile yet, we rely on a make rule to execute
20820
 
  # `config.status --recheck' to rerun these tests and create the
20821
 
  # libtool script then.
20822
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20823
 
  if test -f "$ltmain_in"; then
20824
 
    test -f Makefile && make "$ltmain"
20825
 
  fi
20826
 
fi
20827
 
 
20828
 
 
20829
 
ac_ext=c
20830
 
ac_cpp='$CPP $CPPFLAGS'
20831
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20834
 
 
20835
 
CC="$lt_save_CC"
20836
 
 
20837
 
        else
20838
 
          tagname=""
20839
 
        fi
20840
 
        ;;
20841
 
 
20842
 
      RC)
20843
 
 
20844
 
 
20845
 
# Source file extension for RC test sources.
20846
 
ac_ext=rc
20847
 
 
20848
 
# Object file extension for compiled RC test sources.
20849
 
objext=o
20850
 
objext_RC=$objext
20851
 
 
20852
 
# Code to be used in simple compile tests
20853
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20854
 
 
20855
 
# Code to be used in simple link tests
20856
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20857
 
 
20858
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20859
 
 
20860
 
# If no C compiler was specified, use CC.
20861
 
LTCC=${LTCC-"$CC"}
20862
 
 
20863
 
# If no C compiler flags were specified, use CFLAGS.
20864
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20865
 
 
20866
 
# Allow CC to be a program name with arguments.
20867
 
compiler=$CC
20868
 
 
20869
 
 
20870
 
# save warnings/boilerplate of simple test code
20871
 
ac_outfile=conftest.$ac_objext
20872
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20873
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20874
 
_lt_compiler_boilerplate=`cat conftest.err`
20875
 
$rm conftest*
20876
 
 
20877
 
ac_outfile=conftest.$ac_objext
20878
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20879
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20880
 
_lt_linker_boilerplate=`cat conftest.err`
20881
 
$rm -r conftest*
20882
 
 
20883
 
 
20884
 
# Allow CC to be a program name with arguments.
20885
 
lt_save_CC="$CC"
20886
 
CC=${RC-"windres"}
20887
 
compiler=$CC
20888
 
compiler_RC=$CC
20889
 
for cc_temp in $compiler""; do
20890
 
  case $cc_temp in
20891
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20892
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20893
 
    \-*) ;;
20894
 
    *) break;;
20895
 
  esac
20896
 
done
20897
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20898
 
 
20899
 
lt_cv_prog_compiler_c_o_RC=yes
20900
 
 
20901
 
# The else clause should only fire when bootstrapping the
20902
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20903
 
# with your package, and you will get complaints that there are
20904
 
# no rules to generate ltmain.sh.
20905
 
if test -f "$ltmain"; then
20906
 
  # See if we are running on zsh, and set the options which allow our commands through
20907
 
  # without removal of \ escapes.
20908
 
  if test -n "${ZSH_VERSION+set}" ; then
20909
 
    setopt NO_GLOB_SUBST
20910
 
  fi
20911
 
  # Now quote all the things that may contain metacharacters while being
20912
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20913
 
  # variables and quote the copies for generation of the libtool script.
20914
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20915
 
    SED SHELL STRIP \
20916
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20917
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20918
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20919
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20920
 
    lt_cv_sys_global_symbol_to_c_name_address \
20921
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20922
 
    old_postinstall_cmds old_postuninstall_cmds \
20923
 
    compiler_RC \
20924
 
    CC_RC \
20925
 
    LD_RC \
20926
 
    lt_prog_compiler_wl_RC \
20927
 
    lt_prog_compiler_pic_RC \
20928
 
    lt_prog_compiler_static_RC \
20929
 
    lt_prog_compiler_no_builtin_flag_RC \
20930
 
    export_dynamic_flag_spec_RC \
20931
 
    thread_safe_flag_spec_RC \
20932
 
    whole_archive_flag_spec_RC \
20933
 
    enable_shared_with_static_runtimes_RC \
20934
 
    old_archive_cmds_RC \
20935
 
    old_archive_from_new_cmds_RC \
20936
 
    predep_objects_RC \
20937
 
    postdep_objects_RC \
20938
 
    predeps_RC \
20939
 
    postdeps_RC \
20940
 
    compiler_lib_search_path_RC \
20941
 
    compiler_lib_search_dirs_RC \
20942
 
    archive_cmds_RC \
20943
 
    archive_expsym_cmds_RC \
20944
 
    postinstall_cmds_RC \
20945
 
    postuninstall_cmds_RC \
20946
 
    old_archive_from_expsyms_cmds_RC \
20947
 
    allow_undefined_flag_RC \
20948
 
    no_undefined_flag_RC \
20949
 
    export_symbols_cmds_RC \
20950
 
    hardcode_libdir_flag_spec_RC \
20951
 
    hardcode_libdir_flag_spec_ld_RC \
20952
 
    hardcode_libdir_separator_RC \
20953
 
    hardcode_automatic_RC \
20954
 
    module_cmds_RC \
20955
 
    module_expsym_cmds_RC \
20956
 
    lt_cv_prog_compiler_c_o_RC \
20957
 
    fix_srcfile_path_RC \
20958
 
    exclude_expsyms_RC \
20959
 
    include_expsyms_RC; do
20960
 
 
20961
 
    case $var in
20962
 
    old_archive_cmds_RC | \
20963
 
    old_archive_from_new_cmds_RC | \
20964
 
    archive_cmds_RC | \
20965
 
    archive_expsym_cmds_RC | \
20966
 
    module_cmds_RC | \
20967
 
    module_expsym_cmds_RC | \
20968
 
    old_archive_from_expsyms_cmds_RC | \
20969
 
    export_symbols_cmds_RC | \
20970
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20971
 
    postinstall_cmds | postuninstall_cmds | \
20972
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20973
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20974
 
      # Double-quote double-evaled strings.
20975
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20976
 
      ;;
20977
 
    *)
20978
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20979
 
      ;;
20980
 
    esac
20981
 
  done
20982
 
 
20983
 
  case $lt_echo in
20984
 
  *'\$0 --fallback-echo"')
20985
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20986
 
    ;;
20987
 
  esac
20988
 
 
20989
 
cfgfile="$ofile"
20990
 
 
20991
 
  cat <<__EOF__ >> "$cfgfile"
20992
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20993
 
 
20994
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20995
 
 
20996
 
# Shell to use when invoking shell scripts.
20997
 
SHELL=$lt_SHELL
20998
 
 
20999
 
# Whether or not to build shared libraries.
21000
 
build_libtool_libs=$enable_shared
21001
 
 
21002
 
# Whether or not to build static libraries.
21003
 
build_old_libs=$enable_static
21004
 
 
21005
 
# Whether or not to add -lc for building shared libraries.
21006
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
21007
 
 
21008
 
# Whether or not to disallow shared libs when runtime libs are static
21009
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21010
 
 
21011
 
# Whether or not to optimize for fast installation.
21012
 
fast_install=$enable_fast_install
21013
 
 
21014
 
# The host system.
21015
 
host_alias=$host_alias
21016
 
host=$host
21017
 
host_os=$host_os
21018
 
 
21019
 
# The build system.
21020
 
build_alias=$build_alias
21021
 
build=$build
21022
 
build_os=$build_os
21023
 
 
21024
 
# An echo program that does not interpret backslashes.
21025
 
echo=$lt_echo
21026
 
 
21027
 
# The archiver.
21028
 
AR=$lt_AR
21029
 
AR_FLAGS=$lt_AR_FLAGS
21030
 
 
21031
 
# A C compiler.
21032
 
LTCC=$lt_LTCC
21033
 
 
21034
 
# LTCC compiler flags.
21035
 
LTCFLAGS=$lt_LTCFLAGS
21036
 
 
21037
 
# A language-specific compiler.
21038
 
CC=$lt_compiler_RC
21039
 
 
21040
 
# Is the compiler the GNU C compiler?
21041
 
with_gcc=$GCC_RC
21042
 
 
21043
 
# An ERE matcher.
21044
 
EGREP=$lt_EGREP
21045
 
 
21046
 
# The linker used to build libraries.
21047
 
LD=$lt_LD_RC
21048
 
 
21049
 
# Whether we need hard or soft links.
21050
 
LN_S=$lt_LN_S
21051
 
 
21052
 
# A BSD-compatible nm program.
21053
 
NM=$lt_NM
21054
 
 
21055
 
# A symbol stripping program
21056
 
STRIP=$lt_STRIP
21057
 
 
21058
 
# Used to examine libraries when file_magic_cmd begins "file"
21059
 
MAGIC_CMD=$MAGIC_CMD
21060
 
 
21061
 
# Used on cygwin: DLL creation program.
21062
 
DLLTOOL="$DLLTOOL"
21063
 
 
21064
 
# Used on cygwin: object dumper.
21065
 
OBJDUMP="$OBJDUMP"
21066
 
 
21067
 
# Used on cygwin: assembler.
21068
 
AS="$AS"
21069
 
 
21070
 
# The name of the directory that contains temporary libtool files.
21071
 
objdir=$objdir
21072
 
 
21073
 
# How to create reloadable object files.
21074
 
reload_flag=$lt_reload_flag
21075
 
reload_cmds=$lt_reload_cmds
21076
 
 
21077
 
# How to pass a linker flag through the compiler.
21078
 
wl=$lt_lt_prog_compiler_wl_RC
21079
 
 
21080
 
# Object file suffix (normally "o").
21081
 
objext="$ac_objext"
21082
 
 
21083
 
# Old archive suffix (normally "a").
21084
 
libext="$libext"
21085
 
 
21086
 
# Shared library suffix (normally ".so").
21087
 
shrext_cmds='$shrext_cmds'
21088
 
 
21089
 
# Executable file suffix (normally "").
21090
 
exeext="$exeext"
21091
 
 
21092
 
# Additional compiler flags for building library objects.
21093
 
pic_flag=$lt_lt_prog_compiler_pic_RC
21094
 
pic_mode=$pic_mode
21095
 
 
21096
 
# What is the maximum length of a command?
21097
 
max_cmd_len=$lt_cv_sys_max_cmd_len
21098
 
 
21099
 
# Does compiler simultaneously support -c and -o options?
21100
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21101
 
 
21102
 
# Must we lock files when doing compilation?
21103
 
need_locks=$lt_need_locks
21104
 
 
21105
 
# Do we need the lib prefix for modules?
21106
 
need_lib_prefix=$need_lib_prefix
21107
 
 
21108
 
# Do we need a version for libraries?
21109
 
need_version=$need_version
21110
 
 
21111
 
# Whether dlopen is supported.
21112
 
dlopen_support=$enable_dlopen
21113
 
 
21114
 
# Whether dlopen of programs is supported.
21115
 
dlopen_self=$enable_dlopen_self
21116
 
 
21117
 
# Whether dlopen of statically linked programs is supported.
21118
 
dlopen_self_static=$enable_dlopen_self_static
21119
 
 
21120
 
# Compiler flag to prevent dynamic linking.
21121
 
link_static_flag=$lt_lt_prog_compiler_static_RC
21122
 
 
21123
 
# Compiler flag to turn off builtin functions.
21124
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21125
 
 
21126
 
# Compiler flag to allow reflexive dlopens.
21127
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21128
 
 
21129
 
# Compiler flag to generate shared objects directly from archives.
21130
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21131
 
 
21132
 
# Compiler flag to generate thread-safe objects.
21133
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21134
 
 
21135
 
# Library versioning type.
21136
 
version_type=$version_type
21137
 
 
21138
 
# Format of library name prefix.
21139
 
libname_spec=$lt_libname_spec
21140
 
 
21141
 
# List of archive names.  First name is the real one, the rest are links.
21142
 
# The last name is the one that the linker finds with -lNAME.
21143
 
library_names_spec=$lt_library_names_spec
21144
 
 
21145
 
# The coded name of the library, if different from the real name.
21146
 
soname_spec=$lt_soname_spec
21147
 
 
21148
 
# Commands used to build and install an old-style archive.
21149
 
RANLIB=$lt_RANLIB
21150
 
old_archive_cmds=$lt_old_archive_cmds_RC
21151
 
old_postinstall_cmds=$lt_old_postinstall_cmds
21152
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21153
 
 
21154
 
# Create an old-style archive from a shared archive.
21155
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21156
 
 
21157
 
# Create a temporary old-style archive to link instead of a shared archive.
21158
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21159
 
 
21160
 
# Commands used to build and install a shared archive.
21161
 
archive_cmds=$lt_archive_cmds_RC
21162
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21163
 
postinstall_cmds=$lt_postinstall_cmds
21164
 
postuninstall_cmds=$lt_postuninstall_cmds
21165
 
 
21166
 
# Commands used to build a loadable module (assumed same as above if empty)
21167
 
module_cmds=$lt_module_cmds_RC
21168
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
21169
 
 
21170
 
# Commands to strip libraries.
21171
 
old_striplib=$lt_old_striplib
21172
 
striplib=$lt_striplib
21173
 
 
21174
 
# Dependencies to place before the objects being linked to create a
21175
 
# shared library.
21176
 
predep_objects=$lt_predep_objects_RC
21177
 
 
21178
 
# Dependencies to place after the objects being linked to create a
21179
 
# shared library.
21180
 
postdep_objects=$lt_postdep_objects_RC
21181
 
 
21182
 
# Dependencies to place before the objects being linked to create a
21183
 
# shared library.
21184
 
predeps=$lt_predeps_RC
21185
 
 
21186
 
# Dependencies to place after the objects being linked to create a
21187
 
# shared library.
21188
 
postdeps=$lt_postdeps_RC
21189
 
 
21190
 
# The directories searched by this compiler when creating a shared
21191
 
# library
21192
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21193
 
 
21194
 
# The library search path used internally by the compiler when linking
21195
 
# a shared library.
21196
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21197
 
 
21198
 
# Method to check whether dependent libraries are shared objects.
21199
 
deplibs_check_method=$lt_deplibs_check_method
21200
 
 
21201
 
# Command to use when deplibs_check_method == file_magic.
21202
 
file_magic_cmd=$lt_file_magic_cmd
21203
 
 
21204
 
# Flag that allows shared libraries with undefined symbols to be built.
21205
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
21206
 
 
21207
 
# Flag that forces no undefined symbols.
21208
 
no_undefined_flag=$lt_no_undefined_flag_RC
21209
 
 
21210
 
# Commands used to finish a libtool library installation in a directory.
21211
 
finish_cmds=$lt_finish_cmds
21212
 
 
21213
 
# Same as above, but a single script fragment to be evaled but not shown.
21214
 
finish_eval=$lt_finish_eval
21215
 
 
21216
 
# Take the output of nm and produce a listing of raw symbols and C names.
21217
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21218
 
 
21219
 
# Transform the output of nm in a proper C declaration
21220
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21221
 
 
21222
 
# Transform the output of nm in a C name address pair
21223
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21224
 
 
21225
 
# This is the shared library runtime path variable.
21226
 
runpath_var=$runpath_var
21227
 
 
21228
 
# This is the shared library path variable.
21229
 
shlibpath_var=$shlibpath_var
21230
 
 
21231
 
# Is shlibpath searched before the hard-coded library search path?
21232
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21233
 
 
21234
 
# How to hardcode a shared library path into an executable.
21235
 
hardcode_action=$hardcode_action_RC
21236
 
 
21237
 
# Whether we should hardcode library paths into libraries.
21238
 
hardcode_into_libs=$hardcode_into_libs
21239
 
 
21240
 
# Flag to hardcode \$libdir into a binary during linking.
21241
 
# This must work even if \$libdir does not exist.
21242
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21243
 
 
21244
 
# If ld is used when linking, flag to hardcode \$libdir into
21245
 
# a binary during linking. This must work even if \$libdir does
21246
 
# not exist.
21247
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21248
 
 
21249
 
# Whether we need a single -rpath flag with a separated argument.
21250
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21251
 
 
21252
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21253
 
# resulting binary.
21254
 
hardcode_direct=$hardcode_direct_RC
21255
 
 
21256
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21257
 
# resulting binary.
21258
 
hardcode_minus_L=$hardcode_minus_L_RC
21259
 
 
21260
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21261
 
# the resulting binary.
21262
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21263
 
 
21264
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
21265
 
# and all subsequent libraries and executables linked against it.
21266
 
hardcode_automatic=$hardcode_automatic_RC
21267
 
 
21268
 
# Variables whose values should be saved in libtool wrapper scripts and
21269
 
# restored at relink time.
21270
 
variables_saved_for_relink="$variables_saved_for_relink"
21271
 
 
21272
 
# Whether libtool must link a program against all its dependency libraries.
21273
 
link_all_deplibs=$link_all_deplibs_RC
21274
 
 
21275
 
# Compile-time system search path for libraries
21276
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21277
 
 
21278
 
# Run-time system search path for libraries
21279
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21280
 
 
21281
 
# Fix the shell variable \$srcfile for the compiler.
21282
 
fix_srcfile_path=$lt_fix_srcfile_path
21283
 
 
21284
 
# Set to yes if exported symbols are required.
21285
 
always_export_symbols=$always_export_symbols_RC
21286
 
 
21287
 
# The commands to list exported symbols.
21288
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
21289
 
 
21290
 
# The commands to extract the exported symbol list from a shared archive.
21291
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21292
 
 
21293
 
# Symbols that should not be listed in the preloaded symbols.
21294
 
exclude_expsyms=$lt_exclude_expsyms_RC
21295
 
 
21296
 
# Symbols that must always be exported.
21297
 
include_expsyms=$lt_include_expsyms_RC
21298
 
 
21299
 
# ### END LIBTOOL TAG CONFIG: $tagname
21300
 
 
21301
 
__EOF__
21302
 
 
21303
 
 
21304
 
else
21305
 
  # If there is no Makefile yet, we rely on a make rule to execute
21306
 
  # `config.status --recheck' to rerun these tests and create the
21307
 
  # libtool script then.
21308
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21309
 
  if test -f "$ltmain_in"; then
21310
 
    test -f Makefile && make "$ltmain"
21311
 
  fi
21312
 
fi
21313
 
 
21314
 
 
21315
 
ac_ext=c
21316
 
ac_cpp='$CPP $CPPFLAGS'
21317
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320
 
 
21321
 
CC="$lt_save_CC"
21322
 
 
21323
 
        ;;
21324
 
 
21325
 
      *)
21326
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21327
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21328
 
   { (exit 1); exit 1; }; }
21329
 
        ;;
21330
 
      esac
21331
 
 
21332
 
      # Append the new tag name to the list of available tags.
21333
 
      if test -n "$tagname" ; then
21334
 
      available_tags="$available_tags $tagname"
21335
 
    fi
21336
 
    fi
21337
 
  done
21338
 
  IFS="$lt_save_ifs"
21339
 
 
21340
 
  # Now substitute the updated list of available tags.
21341
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21342
 
    mv "${ofile}T" "$ofile"
21343
 
    chmod +x "$ofile"
21344
 
  else
21345
 
    rm -f "${ofile}T"
21346
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21347
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21348
 
   { (exit 1); exit 1; }; }
21349
 
  fi
21350
 
fi
21351
 
 
21352
 
 
21353
 
 
21354
 
# This can be used to rebuild libtool when needed
21355
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21356
 
 
21357
 
# Always use our own libtool.
21358
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21359
 
 
21360
 
# Prevent multiple expansion
21361
 
 
21362
 
 
21363
 
 
21364
 
 
21365
 
 
21366
 
 
21367
 
 
21368
 
 
21369
 
 
21370
 
 
21371
 
 
21372
 
 
21373
 
 
21374
 
 
21375
 
 
21376
 
 
21377
 
 
21378
 
 
 
12355
 
 
12356
 
 
12357
 
 
12358
 
 
12359
 
 
12360
 
 
12361
 
 
12362
 
 
12363
 
 
12364
 
 
12365
 
 
12366
 
 
12367
 
 
12368
 
 
12369
 
 
12370
striplib=
 
12371
old_striplib=
 
12372
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12373
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
12374
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12375
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12376
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12377
  { echo "$as_me:$LINENO: result: yes" >&5
 
12378
echo "${ECHO_T}yes" >&6; }
 
12379
else
 
12380
# FIXME - insert some real tests, host_os isn't really good enough
 
12381
  case $host_os in
 
12382
  darwin*)
 
12383
    if test -n "$STRIP" ; then
 
12384
      striplib="$STRIP -x"
 
12385
      old_striplib="$STRIP -S"
 
12386
      { echo "$as_me:$LINENO: result: yes" >&5
 
12387
echo "${ECHO_T}yes" >&6; }
 
12388
    else
 
12389
      { echo "$as_me:$LINENO: result: no" >&5
 
12390
echo "${ECHO_T}no" >&6; }
 
12391
    fi
 
12392
    ;;
 
12393
  *)
 
12394
    { echo "$as_me:$LINENO: result: no" >&5
 
12395
echo "${ECHO_T}no" >&6; }
 
12396
    ;;
 
12397
  esac
 
12398
fi
 
12399
 
 
12400
 
 
12401
 
 
12402
 
 
12403
 
 
12404
 
 
12405
 
 
12406
 
 
12407
 
 
12408
 
 
12409
 
 
12410
 
 
12411
  # Report which library types will actually be built
 
12412
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12413
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
12414
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12415
echo "${ECHO_T}$can_build_shared" >&6; }
 
12416
 
 
12417
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12418
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
12419
  test "$can_build_shared" = "no" && enable_shared=no
 
12420
 
 
12421
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12422
  # are all built from PIC.
 
12423
  case $host_os in
 
12424
  aix3*)
 
12425
    test "$enable_shared" = yes && enable_static=no
 
12426
    if test -n "$RANLIB"; then
 
12427
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12428
      postinstall_cmds='$RANLIB $lib'
 
12429
    fi
 
12430
    ;;
 
12431
 
 
12432
  aix[4-9]*)
 
12433
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12434
      test "$enable_shared" = yes && enable_static=no
 
12435
    fi
 
12436
    ;;
 
12437
  esac
 
12438
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12439
echo "${ECHO_T}$enable_shared" >&6; }
 
12440
 
 
12441
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12442
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
12443
  # Make sure either enable_shared or enable_static is yes.
 
12444
  test "$enable_shared" = yes || enable_static=yes
 
12445
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
12446
echo "${ECHO_T}$enable_static" >&6; }
 
12447
 
 
12448
 
 
12449
 
 
12450
 
 
12451
fi
 
12452
ac_ext=c
 
12453
ac_cpp='$CPP $CPPFLAGS'
 
12454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12457
 
 
12458
CC="$lt_save_CC"
 
12459
 
 
12460
 
 
12461
 
 
12462
 
 
12463
 
 
12464
 
 
12465
 
 
12466
 
 
12467
 
 
12468
 
 
12469
 
 
12470
 
 
12471
 
 
12472
        ac_config_commands="$ac_config_commands libtool"
 
12473
 
 
12474
 
 
12475
 
 
12476
 
 
12477
# Only expand once:
21379
12478
 
21380
12479
 
21381
12480
for ac_prog in flex lex
22774
13873
done
22775
13874
 
22776
13875
 
 
13876
{ echo "$as_me:$LINENO: checking for gcc atomic operations" >&5
 
13877
echo $ECHO_N "checking for gcc atomic operations... $ECHO_C" >&6; }
 
13878
if test "$cross_compiling" = yes; then
 
13879
  { echo "$as_me:$LINENO: result: no" >&5
 
13880
echo "${ECHO_T}no" >&6; }
 
13881
else
 
13882
  cat >conftest.$ac_ext <<_ACEOF
 
13883
/* confdefs.h.  */
 
13884
_ACEOF
 
13885
cat confdefs.h >>conftest.$ac_ext
 
13886
cat >>conftest.$ac_ext <<_ACEOF
 
13887
/* end confdefs.h.  */
 
13888
 
 
13889
        int main() {
 
13890
                volatile int ref = 1;
 
13891
                __sync_fetch_and_add (&ref, 1);
 
13892
                __sync_sub_and_fetch (&ref, 1);
 
13893
                /* Make sure test fails if operations are not supported */
 
13894
                __sync_val_compare_and_swap(&ref, 1, 0);
 
13895
                return ref;
 
13896
        }
 
13897
 
 
13898
_ACEOF
 
13899
rm -f conftest$ac_exeext
 
13900
if { (ac_try="$ac_link"
 
13901
case "(($ac_try" in
 
13902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13903
  *) ac_try_echo=$ac_try;;
 
13904
esac
 
13905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13906
  (eval "$ac_link") 2>&5
 
13907
  ac_status=$?
 
13908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13909
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13910
  { (case "(($ac_try" in
 
13911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13912
  *) ac_try_echo=$ac_try;;
 
13913
esac
 
13914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13915
  (eval "$ac_try") 2>&5
 
13916
  ac_status=$?
 
13917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13918
  (exit $ac_status); }; }; then
 
13919
  { echo "$as_me:$LINENO: result: yes" >&5
 
13920
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
 
13921
#define HAVE_GCC_ATOMIC_OPERATIONS 1
 
13922
_ACEOF
 
13923
 
 
13924
else
 
13925
  echo "$as_me: program exited with status $ac_status" >&5
 
13926
echo "$as_me: failed program was:" >&5
 
13927
sed 's/^/| /' conftest.$ac_ext >&5
 
13928
 
 
13929
( exit $ac_status )
 
13930
{ echo "$as_me:$LINENO: result: no" >&5
 
13931
echo "${ECHO_T}no" >&6; }
 
13932
fi
 
13933
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13934
fi
 
13935
 
 
13936
 
 
13937
 
 
13938
{ echo "$as_me:$LINENO: checking for register_printf_function" >&5
 
13939
echo $ECHO_N "checking for register_printf_function... $ECHO_C" >&6; }
 
13940
if test "${ac_cv_func_register_printf_function+set}" = set; then
 
13941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13942
else
 
13943
  cat >conftest.$ac_ext <<_ACEOF
 
13944
/* confdefs.h.  */
 
13945
_ACEOF
 
13946
cat confdefs.h >>conftest.$ac_ext
 
13947
cat >>conftest.$ac_ext <<_ACEOF
 
13948
/* end confdefs.h.  */
 
13949
/* Define register_printf_function to an innocuous variant, in case <limits.h> declares register_printf_function.
 
13950
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13951
#define register_printf_function innocuous_register_printf_function
 
13952
 
 
13953
/* System header to define __stub macros and hopefully few prototypes,
 
13954
    which can conflict with char register_printf_function (); below.
 
13955
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13956
    <limits.h> exists even on freestanding compilers.  */
 
13957
 
 
13958
#ifdef __STDC__
 
13959
# include <limits.h>
 
13960
#else
 
13961
# include <assert.h>
 
13962
#endif
 
13963
 
 
13964
#undef register_printf_function
 
13965
 
 
13966
/* Override any GCC internal prototype to avoid an error.
 
13967
   Use char because int might match the return type of a GCC
 
13968
   builtin and then its argument prototype would still apply.  */
 
13969
#ifdef __cplusplus
 
13970
extern "C"
 
13971
#endif
 
13972
char register_printf_function ();
 
13973
/* The GNU C library defines this for functions which it implements
 
13974
    to always fail with ENOSYS.  Some functions are actually named
 
13975
    something starting with __ and the normal name is an alias.  */
 
13976
#if defined __stub_register_printf_function || defined __stub___register_printf_function
 
13977
choke me
 
13978
#endif
 
13979
 
 
13980
int
 
13981
main ()
 
13982
{
 
13983
return register_printf_function ();
 
13984
  ;
 
13985
  return 0;
 
13986
}
 
13987
_ACEOF
 
13988
rm -f conftest.$ac_objext conftest$ac_exeext
 
13989
if { (ac_try="$ac_link"
 
13990
case "(($ac_try" in
 
13991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13992
  *) ac_try_echo=$ac_try;;
 
13993
esac
 
13994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13995
  (eval "$ac_link") 2>conftest.er1
 
13996
  ac_status=$?
 
13997
  grep -v '^ *+' conftest.er1 >conftest.err
 
13998
  rm -f conftest.er1
 
13999
  cat conftest.err >&5
 
14000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14001
  (exit $ac_status); } && {
 
14002
         test -z "$ac_c_werror_flag" ||
 
14003
         test ! -s conftest.err
 
14004
       } && test -s conftest$ac_exeext &&
 
14005
       $as_test_x conftest$ac_exeext; then
 
14006
  ac_cv_func_register_printf_function=yes
 
14007
else
 
14008
  echo "$as_me: failed program was:" >&5
 
14009
sed 's/^/| /' conftest.$ac_ext >&5
 
14010
 
 
14011
        ac_cv_func_register_printf_function=no
 
14012
fi
 
14013
 
 
14014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14015
      conftest$ac_exeext conftest.$ac_ext
 
14016
fi
 
14017
{ echo "$as_me:$LINENO: result: $ac_cv_func_register_printf_function" >&5
 
14018
echo "${ECHO_T}$ac_cv_func_register_printf_function" >&6; }
 
14019
if test $ac_cv_func_register_printf_function = yes; then
 
14020
  cat >>confdefs.h <<\_ACEOF
 
14021
#define HAVE_PRINTF_HOOKS 1
 
14022
_ACEOF
 
14023
 
 
14024
else
 
14025
 
 
14026
                { echo "$as_me:$LINENO: printf does not support custom format specifiers!" >&5
 
14027
echo "$as_me: printf does not support custom format specifiers!" >&6;}
 
14028
                { echo "$as_me:$LINENO: checking for main in -lvstr" >&5
 
14029
echo $ECHO_N "checking for main in -lvstr... $ECHO_C" >&6; }
 
14030
if test "${ac_cv_lib_vstr_main+set}" = set; then
 
14031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14032
else
 
14033
  ac_check_lib_save_LIBS=$LIBS
 
14034
LIBS="-lvstr  $LIBS"
 
14035
cat >conftest.$ac_ext <<_ACEOF
 
14036
/* confdefs.h.  */
 
14037
_ACEOF
 
14038
cat confdefs.h >>conftest.$ac_ext
 
14039
cat >>conftest.$ac_ext <<_ACEOF
 
14040
/* end confdefs.h.  */
 
14041
 
 
14042
 
 
14043
int
 
14044
main ()
 
14045
{
 
14046
return main ();
 
14047
  ;
 
14048
  return 0;
 
14049
}
 
14050
_ACEOF
 
14051
rm -f conftest.$ac_objext conftest$ac_exeext
 
14052
if { (ac_try="$ac_link"
 
14053
case "(($ac_try" in
 
14054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14055
  *) ac_try_echo=$ac_try;;
 
14056
esac
 
14057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14058
  (eval "$ac_link") 2>conftest.er1
 
14059
  ac_status=$?
 
14060
  grep -v '^ *+' conftest.er1 >conftest.err
 
14061
  rm -f conftest.er1
 
14062
  cat conftest.err >&5
 
14063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14064
  (exit $ac_status); } && {
 
14065
         test -z "$ac_c_werror_flag" ||
 
14066
         test ! -s conftest.err
 
14067
       } && test -s conftest$ac_exeext &&
 
14068
       $as_test_x conftest$ac_exeext; then
 
14069
  ac_cv_lib_vstr_main=yes
 
14070
else
 
14071
  echo "$as_me: failed program was:" >&5
 
14072
sed 's/^/| /' conftest.$ac_ext >&5
 
14073
 
 
14074
        ac_cv_lib_vstr_main=no
 
14075
fi
 
14076
 
 
14077
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14078
      conftest$ac_exeext conftest.$ac_ext
 
14079
LIBS=$ac_check_lib_save_LIBS
 
14080
fi
 
14081
{ echo "$as_me:$LINENO: result: $ac_cv_lib_vstr_main" >&5
 
14082
echo "${ECHO_T}$ac_cv_lib_vstr_main" >&6; }
 
14083
if test $ac_cv_lib_vstr_main = yes; then
 
14084
  LIBS="$LIBS"; vstr=true
 
14085
else
 
14086
  { { echo "$as_me:$LINENO: error: Vstr string library not found" >&5
 
14087
echo "$as_me: error: Vstr string library not found" >&2;}
 
14088
   { (exit 1); exit 1; }; }
 
14089
fi
 
14090
ac_cv_lib_vstr=ac_cv_lib_vstr_main
 
14091
 
 
14092
 
 
14093
fi
 
14094
 
 
14095
 
22777
14096
if test x$gmp = xtrue; then
22778
14097
        { echo "$as_me:$LINENO: checking for main in -lgmp" >&5
22779
14098
echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6; }
25429
16748
if test x$sha2 = xtrue; then
25430
16749
        libstrongswan_plugins=${libstrongswan_plugins}" sha2"
25431
16750
fi
 
16751
if test x$md4 = xtrue; then
 
16752
        libstrongswan_plugins=${libstrongswan_plugins}" md4"
 
16753
fi
25432
16754
if test x$md5 = xtrue; then
25433
16755
        libstrongswan_plugins=${libstrongswan_plugins}" md5"
25434
16756
fi
25504
16826
  USE_DES_FALSE=
25505
16827
fi
25506
16828
 
 
16829
 if test x$md4 = xtrue; then
 
16830
  USE_MD4_TRUE=
 
16831
  USE_MD4_FALSE='#'
 
16832
else
 
16833
  USE_MD4_TRUE='#'
 
16834
  USE_MD4_FALSE=
 
16835
fi
 
16836
 
25507
16837
 if test x$md5 = xtrue; then
25508
16838
  USE_MD5_TRUE=
25509
16839
  USE_MD5_FALSE='#'
25753
17083
  USE_EAP_AKA_FALSE=
25754
17084
fi
25755
17085
 
 
17086
 if test x$eap_mschapv2 = xtrue; then
 
17087
  USE_EAP_MSCHAPV2_TRUE=
 
17088
  USE_EAP_MSCHAPV2_FALSE='#'
 
17089
else
 
17090
  USE_EAP_MSCHAPV2_TRUE='#'
 
17091
  USE_EAP_MSCHAPV2_FALSE=
 
17092
fi
 
17093
 
 
17094
 if test x$eap_radius = xtrue; then
 
17095
  USE_EAP_RADIUS_TRUE=
 
17096
  USE_EAP_RADIUS_FALSE='#'
 
17097
else
 
17098
  USE_EAP_RADIUS_TRUE='#'
 
17099
  USE_EAP_RADIUS_FALSE=
 
17100
fi
 
17101
 
25756
17102
 if test x$kernel_netlink = xtrue; then
25757
17103
  USE_KERNEL_NETLINK_TRUE=
25758
17104
  USE_KERNEL_NETLINK_FALSE='#'
25898
17244
  USE_PLUTO_FALSE=
25899
17245
fi
25900
17246
 
 
17247
 if test x$threads = xtrue; then
 
17248
  USE_THREADS_TRUE=
 
17249
  USE_THREADS_FALSE='#'
 
17250
else
 
17251
  USE_THREADS_TRUE='#'
 
17252
  USE_THREADS_FALSE=
 
17253
fi
 
17254
 
25901
17255
 if test x$charon = xtrue; then
25902
17256
  USE_CHARON_TRUE=
25903
17257
  USE_CHARON_FALSE='#'
25930
17284
  USE_FILE_CONFIG_FALSE=
25931
17285
fi
25932
17286
 
 
17287
 if test x$vstr = xtrue; then
 
17288
  USE_VSTR_TRUE=
 
17289
  USE_VSTR_FALSE='#'
 
17290
else
 
17291
  USE_VSTR_TRUE='#'
 
17292
  USE_VSTR_FALSE=
 
17293
fi
 
17294
 
25933
17295
 
25934
17296
 
25935
17297
if test x$me = xtrue; then
25946
17308
fi
25947
17309
 
25948
17310
 
25949
 
ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/libstrongswan/Makefile src/libstrongswan/plugins/aes/Makefile src/libstrongswan/plugins/des/Makefile src/libstrongswan/plugins/md5/Makefile src/libstrongswan/plugins/sha1/Makefile src/libstrongswan/plugins/sha2/Makefile src/libstrongswan/plugins/fips_prf/Makefile src/libstrongswan/plugins/gmp/Makefile src/libstrongswan/plugins/random/Makefile src/libstrongswan/plugins/hmac/Makefile src/libstrongswan/plugins/xcbc/Makefile src/libstrongswan/plugins/x509/Makefile src/libstrongswan/plugins/pubkey/Makefile src/libstrongswan/plugins/curl/Makefile src/libstrongswan/plugins/ldap/Makefile src/libstrongswan/plugins/mysql/Makefile src/libstrongswan/plugins/sqlite/Makefile src/libstrongswan/plugins/padlock/Makefile src/libstrongswan/plugins/openssl/Makefile src/libstrongswan/plugins/agent/Makefile src/libstrongswan/fips/Makefile src/libcrypto/Makefile src/libfreeswan/Makefile src/pluto/Makefile src/whack/Makefile src/charon/Makefile src/charon/plugins/eap_aka/Makefile src/charon/plugins/eap_identity/Makefile src/charon/plugins/eap_md5/Makefile src/charon/plugins/eap_gtc/Makefile src/charon/plugins/eap_sim/Makefile src/charon/plugins/eap_sim_file/Makefile src/charon/plugins/kernel_netlink/Makefile src/charon/plugins/kernel_pfkey/Makefile src/charon/plugins/kernel_klips/Makefile src/charon/plugins/smp/Makefile src/charon/plugins/sql/Makefile src/charon/plugins/medsrv/Makefile src/charon/plugins/medcli/Makefile src/charon/plugins/nm/Makefile src/charon/plugins/uci/Makefile src/charon/plugins/stroke/Makefile src/charon/plugins/updown/Makefile src/charon/plugins/unit_tester/Makefile src/charon/plugins/load_tester/Makefile src/stroke/Makefile src/ipsec/Makefile src/starter/Makefile src/_updown/Makefile src/_updown_espmark/Makefile src/_copyright/Makefile src/openac/Makefile src/scepclient/Makefile src/dumm/Makefile src/libfast/Makefile src/manager/Makefile src/medsrv/Makefile scripts/Makefile testing/Makefile"
 
17311
ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/libstrongswan/Makefile src/libstrongswan/plugins/aes/Makefile src/libstrongswan/plugins/des/Makefile src/libstrongswan/plugins/md4/Makefile src/libstrongswan/plugins/md5/Makefile src/libstrongswan/plugins/sha1/Makefile src/libstrongswan/plugins/sha2/Makefile src/libstrongswan/plugins/fips_prf/Makefile src/libstrongswan/plugins/gmp/Makefile src/libstrongswan/plugins/random/Makefile src/libstrongswan/plugins/hmac/Makefile src/libstrongswan/plugins/xcbc/Makefile src/libstrongswan/plugins/x509/Makefile src/libstrongswan/plugins/pubkey/Makefile src/libstrongswan/plugins/curl/Makefile src/libstrongswan/plugins/ldap/Makefile src/libstrongswan/plugins/mysql/Makefile src/libstrongswan/plugins/sqlite/Makefile src/libstrongswan/plugins/padlock/Makefile src/libstrongswan/plugins/openssl/Makefile src/libstrongswan/plugins/agent/Makefile src/libstrongswan/fips/Makefile src/libcrypto/Makefile src/libfreeswan/Makefile src/pluto/Makefile src/whack/Makefile src/charon/Makefile src/charon/plugins/eap_aka/Makefile src/charon/plugins/eap_identity/Makefile src/charon/plugins/eap_md5/Makefile src/charon/plugins/eap_gtc/Makefile src/charon/plugins/eap_sim/Makefile src/charon/plugins/eap_sim_file/Makefile src/charon/plugins/eap_mschapv2/Makefile src/charon/plugins/eap_radius/Makefile src/charon/plugins/kernel_netlink/Makefile src/charon/plugins/kernel_pfkey/Makefile src/charon/plugins/kernel_klips/Makefile src/charon/plugins/smp/Makefile src/charon/plugins/sql/Makefile src/charon/plugins/medsrv/Makefile src/charon/plugins/medcli/Makefile src/charon/plugins/nm/Makefile src/charon/plugins/uci/Makefile src/charon/plugins/stroke/Makefile src/charon/plugins/updown/Makefile src/charon/plugins/unit_tester/Makefile src/charon/plugins/load_tester/Makefile src/stroke/Makefile src/ipsec/Makefile src/starter/Makefile src/_updown/Makefile src/_updown_espmark/Makefile src/_copyright/Makefile src/openac/Makefile src/scepclient/Makefile src/dumm/Makefile src/libfast/Makefile src/manager/Makefile src/medsrv/Makefile scripts/Makefile testing/Makefile"
25950
17312
 
25951
17313
cat >confcache <<\_ACEOF
25952
17314
# This file is a shell script that caches the results of configure
26088
17450
Usually this means the macro was only invoked conditionally." >&2;}
26089
17451
   { (exit 1); exit 1; }; }
26090
17452
fi
26091
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26092
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26093
 
Usually this means the macro was only invoked conditionally." >&5
26094
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26095
 
Usually this means the macro was only invoked conditionally." >&2;}
26096
 
   { (exit 1); exit 1; }; }
26097
 
fi
26098
17453
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26099
17454
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26100
17455
Usually this means the macro was only invoked conditionally." >&5
26130
17485
Usually this means the macro was only invoked conditionally." >&2;}
26131
17486
   { (exit 1); exit 1; }; }
26132
17487
fi
 
17488
if test -z "${USE_MD4_TRUE}" && test -z "${USE_MD4_FALSE}"; then
 
17489
  { { echo "$as_me:$LINENO: error: conditional \"USE_MD4\" was never defined.
 
17490
Usually this means the macro was only invoked conditionally." >&5
 
17491
echo "$as_me: error: conditional \"USE_MD4\" was never defined.
 
17492
Usually this means the macro was only invoked conditionally." >&2;}
 
17493
   { (exit 1); exit 1; }; }
 
17494
fi
26133
17495
if test -z "${USE_MD5_TRUE}" && test -z "${USE_MD5_FALSE}"; then
26134
17496
  { { echo "$as_me:$LINENO: error: conditional \"USE_MD5\" was never defined.
26135
17497
Usually this means the macro was only invoked conditionally." >&5
26347
17709
Usually this means the macro was only invoked conditionally." >&2;}
26348
17710
   { (exit 1); exit 1; }; }
26349
17711
fi
 
17712
if test -z "${USE_EAP_MSCHAPV2_TRUE}" && test -z "${USE_EAP_MSCHAPV2_FALSE}"; then
 
17713
  { { echo "$as_me:$LINENO: error: conditional \"USE_EAP_MSCHAPV2\" was never defined.
 
17714
Usually this means the macro was only invoked conditionally." >&5
 
17715
echo "$as_me: error: conditional \"USE_EAP_MSCHAPV2\" was never defined.
 
17716
Usually this means the macro was only invoked conditionally." >&2;}
 
17717
   { (exit 1); exit 1; }; }
 
17718
fi
 
17719
if test -z "${USE_EAP_RADIUS_TRUE}" && test -z "${USE_EAP_RADIUS_FALSE}"; then
 
17720
  { { echo "$as_me:$LINENO: error: conditional \"USE_EAP_RADIUS\" was never defined.
 
17721
Usually this means the macro was only invoked conditionally." >&5
 
17722
echo "$as_me: error: conditional \"USE_EAP_RADIUS\" was never defined.
 
17723
Usually this means the macro was only invoked conditionally." >&2;}
 
17724
   { (exit 1); exit 1; }; }
 
17725
fi
26350
17726
if test -z "${USE_KERNEL_NETLINK_TRUE}" && test -z "${USE_KERNEL_NETLINK_FALSE}"; then
26351
17727
  { { echo "$as_me:$LINENO: error: conditional \"USE_KERNEL_NETLINK\" was never defined.
26352
17728
Usually this means the macro was only invoked conditionally." >&5
26473
17849
Usually this means the macro was only invoked conditionally." >&2;}
26474
17850
   { (exit 1); exit 1; }; }
26475
17851
fi
 
17852
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
 
17853
  { { echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
 
17854
Usually this means the macro was only invoked conditionally." >&5
 
17855
echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
 
17856
Usually this means the macro was only invoked conditionally." >&2;}
 
17857
   { (exit 1); exit 1; }; }
 
17858
fi
26476
17859
if test -z "${USE_CHARON_TRUE}" && test -z "${USE_CHARON_FALSE}"; then
26477
17860
  { { echo "$as_me:$LINENO: error: conditional \"USE_CHARON\" was never defined.
26478
17861
Usually this means the macro was only invoked conditionally." >&5
26501
17884
Usually this means the macro was only invoked conditionally." >&2;}
26502
17885
   { (exit 1); exit 1; }; }
26503
17886
fi
 
17887
if test -z "${USE_VSTR_TRUE}" && test -z "${USE_VSTR_FALSE}"; then
 
17888
  { { echo "$as_me:$LINENO: error: conditional \"USE_VSTR\" was never defined.
 
17889
Usually this means the macro was only invoked conditionally." >&5
 
17890
echo "$as_me: error: conditional \"USE_VSTR\" was never defined.
 
17891
Usually this means the macro was only invoked conditionally." >&2;}
 
17892
   { (exit 1); exit 1; }; }
 
17893
fi
26504
17894
 
26505
17895
: ${CONFIG_STATUS=./config.status}
26506
17896
ac_clean_files_save=$ac_clean_files
26801
18191
# report actual input values of CONFIG_FILES etc. instead of their
26802
18192
# values after options handling.
26803
18193
ac_log="
26804
 
This file was extended by strongSwan $as_me 4.2.9, which was
 
18194
This file was extended by strongSwan $as_me 4.2.14, which was
26805
18195
generated by GNU Autoconf 2.61.  Invocation command line was
26806
18196
 
26807
18197
  CONFIG_FILES    = $CONFIG_FILES
26848
18238
_ACEOF
26849
18239
cat >>$CONFIG_STATUS <<_ACEOF
26850
18240
ac_cs_version="\\
26851
 
strongSwan config.status 4.2.9
 
18241
strongSwan config.status 4.2.14
26852
18242
configured by $0, generated by GNU Autoconf 2.61,
26853
18243
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26854
18244
 
26945
18335
#
26946
18336
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26947
18337
 
 
18338
 
 
18339
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
18340
# if CDPATH is set.
 
18341
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18342
 
 
18343
sed_quote_subst='$sed_quote_subst'
 
18344
double_quote_subst='$double_quote_subst'
 
18345
delay_variable_subst='$delay_variable_subst'
 
18346
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
18347
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
18348
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
18349
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18350
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
18351
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
18352
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
18353
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
18354
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
18355
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
18356
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
18357
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
18358
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
18359
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
18360
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18361
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18362
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
18363
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
18364
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
18365
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
18366
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
18367
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
18368
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
18369
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
18370
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
18371
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
18372
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18373
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18374
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
18375
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
18376
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
18377
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
18378
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
18379
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
18380
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18381
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18382
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18383
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
18384
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
18385
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
18386
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
18387
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
18388
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
18389
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"`'
 
18390
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"`'
 
18391
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
18392
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
18393
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
18394
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
18395
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18396
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
18397
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
18398
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18399
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
18400
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
18401
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
18402
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
18403
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
18404
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
18405
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
18406
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
18407
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18408
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18409
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
18410
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
18411
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18412
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18413
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
18414
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18415
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18416
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18417
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18418
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18419
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18420
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
18421
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18422
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
18423
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18424
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
18425
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
18426
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
18427
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
18428
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
18429
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18430
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
18431
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
18432
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
18433
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
18434
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
18435
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18436
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
18437
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
18438
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18439
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18440
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
18441
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
18442
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
18443
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
18444
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18445
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
18446
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
18447
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18448
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18449
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18450
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18451
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18452
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
18453
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
18454
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
18455
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18456
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
18457
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
18458
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
18459
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
18460
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
18461
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
18462
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
18463
 
 
18464
LTCC='$LTCC'
 
18465
LTCFLAGS='$LTCFLAGS'
 
18466
compiler='$compiler_DEFAULT'
 
18467
 
 
18468
# Quote evaled strings.
 
18469
for var in SED \
 
18470
GREP \
 
18471
EGREP \
 
18472
FGREP \
 
18473
LD \
 
18474
NM \
 
18475
LN_S \
 
18476
lt_SP2NL \
 
18477
lt_NL2SP \
 
18478
reload_flag \
 
18479
deplibs_check_method \
 
18480
file_magic_cmd \
 
18481
AR \
 
18482
AR_FLAGS \
 
18483
STRIP \
 
18484
RANLIB \
 
18485
CC \
 
18486
CFLAGS \
 
18487
compiler \
 
18488
lt_cv_sys_global_symbol_pipe \
 
18489
lt_cv_sys_global_symbol_to_cdecl \
 
18490
lt_cv_sys_global_symbol_to_c_name_address \
 
18491
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
18492
SHELL \
 
18493
ECHO \
 
18494
lt_prog_compiler_no_builtin_flag \
 
18495
lt_prog_compiler_wl \
 
18496
lt_prog_compiler_pic \
 
18497
lt_prog_compiler_static \
 
18498
lt_cv_prog_compiler_c_o \
 
18499
need_locks \
 
18500
DSYMUTIL \
 
18501
NMEDIT \
 
18502
LIPO \
 
18503
OTOOL \
 
18504
OTOOL64 \
 
18505
shrext_cmds \
 
18506
export_dynamic_flag_spec \
 
18507
whole_archive_flag_spec \
 
18508
compiler_needs_object \
 
18509
with_gnu_ld \
 
18510
allow_undefined_flag \
 
18511
no_undefined_flag \
 
18512
hardcode_libdir_flag_spec \
 
18513
hardcode_libdir_flag_spec_ld \
 
18514
hardcode_libdir_separator \
 
18515
fix_srcfile_path \
 
18516
exclude_expsyms \
 
18517
include_expsyms \
 
18518
file_list_spec \
 
18519
variables_saved_for_relink \
 
18520
libname_spec \
 
18521
library_names_spec \
 
18522
soname_spec \
 
18523
finish_eval \
 
18524
old_striplib \
 
18525
striplib; do
 
18526
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
18527
    *[\\\\\\\`\\"\\\$]*)
 
18528
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
18529
      ;;
 
18530
    *)
 
18531
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18532
      ;;
 
18533
    esac
 
18534
done
 
18535
 
 
18536
# Double-quote double-evaled strings.
 
18537
for var in reload_cmds \
 
18538
old_postinstall_cmds \
 
18539
old_postuninstall_cmds \
 
18540
old_archive_cmds \
 
18541
extract_expsyms_cmds \
 
18542
old_archive_from_new_cmds \
 
18543
old_archive_from_expsyms_cmds \
 
18544
archive_cmds \
 
18545
archive_expsym_cmds \
 
18546
module_cmds \
 
18547
module_expsym_cmds \
 
18548
export_symbols_cmds \
 
18549
prelink_cmds \
 
18550
postinstall_cmds \
 
18551
postuninstall_cmds \
 
18552
finish_cmds \
 
18553
sys_lib_search_path_spec \
 
18554
sys_lib_dlsearch_path_spec; do
 
18555
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
18556
    *[\\\\\\\`\\"\\\$]*)
 
18557
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
18558
      ;;
 
18559
    *)
 
18560
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18561
      ;;
 
18562
    esac
 
18563
done
 
18564
 
 
18565
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
18566
case \$lt_ECHO in
 
18567
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
18568
  ;;
 
18569
esac
 
18570
 
 
18571
ac_aux_dir='$ac_aux_dir'
 
18572
xsi_shell='$xsi_shell'
 
18573
lt_shell_append='$lt_shell_append'
 
18574
 
 
18575
# See if we are running on zsh, and set the options which allow our
 
18576
# commands through without removal of \ escapes INIT.
 
18577
if test -n "\${ZSH_VERSION+set}" ; then
 
18578
   setopt NO_GLOB_SUBST
 
18579
fi
 
18580
 
 
18581
 
 
18582
    PACKAGE='$PACKAGE'
 
18583
    VERSION='$VERSION'
 
18584
    TIMESTAMP='$TIMESTAMP'
 
18585
    RM='$RM'
 
18586
    ofile='$ofile'
 
18587
 
 
18588
 
 
18589
 
 
18590
 
26948
18591
_ACEOF
26949
18592
 
26950
18593
cat >>$CONFIG_STATUS <<\_ACEOF
26954
18597
do
26955
18598
  case $ac_config_target in
26956
18599
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
18600
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26957
18601
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26958
18602
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26959
18603
    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
26960
18604
    "src/libstrongswan/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/Makefile" ;;
26961
18605
    "src/libstrongswan/plugins/aes/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/aes/Makefile" ;;
26962
18606
    "src/libstrongswan/plugins/des/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/des/Makefile" ;;
 
18607
    "src/libstrongswan/plugins/md4/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/md4/Makefile" ;;
26963
18608
    "src/libstrongswan/plugins/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/md5/Makefile" ;;
26964
18609
    "src/libstrongswan/plugins/sha1/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/sha1/Makefile" ;;
26965
18610
    "src/libstrongswan/plugins/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstrongswan/plugins/sha2/Makefile" ;;
26989
18634
    "src/charon/plugins/eap_gtc/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/eap_gtc/Makefile" ;;
26990
18635
    "src/charon/plugins/eap_sim/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/eap_sim/Makefile" ;;
26991
18636
    "src/charon/plugins/eap_sim_file/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/eap_sim_file/Makefile" ;;
 
18637
    "src/charon/plugins/eap_mschapv2/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/eap_mschapv2/Makefile" ;;
 
18638
    "src/charon/plugins/eap_radius/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/eap_radius/Makefile" ;;
26992
18639
    "src/charon/plugins/kernel_netlink/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/kernel_netlink/Makefile" ;;
26993
18640
    "src/charon/plugins/kernel_pfkey/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/kernel_pfkey/Makefile" ;;
26994
18641
    "src/charon/plugins/kernel_klips/Makefile") CONFIG_FILES="$CONFIG_FILES src/charon/plugins/kernel_klips/Makefile" ;;
27169
18816
IPSEC_ROUTING_TABLE_PRIO!$IPSEC_ROUTING_TABLE_PRIO$ac_delim
27170
18817
ipsecuser!$ipsecuser$ac_delim
27171
18818
ipsecgroup!$ipsecgroup$ac_delim
 
18819
LIBTOOL!$LIBTOOL$ac_delim
27172
18820
build!$build$ac_delim
27173
18821
build_cpu!$build_cpu$ac_delim
27174
18822
build_vendor!$build_vendor$ac_delim
27175
18823
build_os!$build_os$ac_delim
 
18824
_ACEOF
 
18825
 
 
18826
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
18827
    break
 
18828
  elif $ac_last_try; then
 
18829
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
18830
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
18831
   { (exit 1); exit 1; }; }
 
18832
  else
 
18833
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
18834
  fi
 
18835
done
 
18836
 
 
18837
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
18838
if test -n "$ac_eof"; then
 
18839
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
18840
  ac_eof=`expr $ac_eof + 1`
 
18841
fi
 
18842
 
 
18843
cat >>$CONFIG_STATUS <<_ACEOF
 
18844
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
18845
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
18846
_ACEOF
 
18847
sed '
 
18848
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
18849
s/^/s,@/; s/!/@,|#_!!_#|/
 
18850
:n
 
18851
t n
 
18852
s/'"$ac_delim"'$/,g/; t
 
18853
s/$/\\/; p
 
18854
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
18855
' >>$CONFIG_STATUS <conf$$subs.sed
 
18856
rm -f conf$$subs.sed
 
18857
cat >>$CONFIG_STATUS <<_ACEOF
 
18858
CEOF$ac_eof
 
18859
_ACEOF
 
18860
 
 
18861
 
 
18862
ac_delim='%!_!# '
 
18863
for ac_last_try in false false false false false :; do
 
18864
  cat >conf$$subs.sed <<_ACEOF
27176
18865
host!$host$ac_delim
27177
 
_ACEOF
27178
 
 
27179
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27180
 
    break
27181
 
  elif $ac_last_try; then
27182
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27183
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27184
 
   { (exit 1); exit 1; }; }
27185
 
  else
27186
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27187
 
  fi
27188
 
done
27189
 
 
27190
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27191
 
if test -n "$ac_eof"; then
27192
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27193
 
  ac_eof=`expr $ac_eof + 1`
27194
 
fi
27195
 
 
27196
 
cat >>$CONFIG_STATUS <<_ACEOF
27197
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27198
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27199
 
_ACEOF
27200
 
sed '
27201
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27202
 
s/^/s,@/; s/!/@,|#_!!_#|/
27203
 
:n
27204
 
t n
27205
 
s/'"$ac_delim"'$/,g/; t
27206
 
s/$/\\/; p
27207
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27208
 
' >>$CONFIG_STATUS <conf$$subs.sed
27209
 
rm -f conf$$subs.sed
27210
 
cat >>$CONFIG_STATUS <<_ACEOF
27211
 
CEOF$ac_eof
27212
 
_ACEOF
27213
 
 
27214
 
 
27215
 
ac_delim='%!_!# '
27216
 
for ac_last_try in false false false false false :; do
27217
 
  cat >conf$$subs.sed <<_ACEOF
27218
18866
host_cpu!$host_cpu$ac_delim
27219
18867
host_vendor!$host_vendor$ac_delim
27220
18868
host_os!$host_os$ac_delim
27221
18869
SED!$SED$ac_delim
 
18870
FGREP!$FGREP$ac_delim
 
18871
LD!$LD$ac_delim
 
18872
DUMPBIN!$DUMPBIN$ac_delim
 
18873
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
18874
NM!$NM$ac_delim
27222
18875
LN_S!$LN_S$ac_delim
27223
 
ECHO!$ECHO$ac_delim
27224
18876
AR!$AR$ac_delim
27225
18877
RANLIB!$RANLIB$ac_delim
 
18878
lt_ECHO!$lt_ECHO$ac_delim
27226
18879
DSYMUTIL!$DSYMUTIL$ac_delim
27227
18880
NMEDIT!$NMEDIT$ac_delim
27228
 
CXX!$CXX$ac_delim
27229
 
CXXFLAGS!$CXXFLAGS$ac_delim
27230
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
27231
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
27232
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27233
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27234
 
CXXCPP!$CXXCPP$ac_delim
27235
 
F77!$F77$ac_delim
27236
 
FFLAGS!$FFLAGS$ac_delim
27237
 
ac_ct_F77!$ac_ct_F77$ac_delim
27238
 
LIBTOOL!$LIBTOOL$ac_delim
 
18881
LIPO!$LIPO$ac_delim
 
18882
OTOOL!$OTOOL$ac_delim
 
18883
OTOOL64!$OTOOL64$ac_delim
27239
18884
LEX!$LEX$ac_delim
27240
18885
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27241
18886
LEXLIB!$LEXLIB$ac_delim
27258
18903
USE_AES_FALSE!$USE_AES_FALSE$ac_delim
27259
18904
USE_DES_TRUE!$USE_DES_TRUE$ac_delim
27260
18905
USE_DES_FALSE!$USE_DES_FALSE$ac_delim
 
18906
USE_MD4_TRUE!$USE_MD4_TRUE$ac_delim
 
18907
USE_MD4_FALSE!$USE_MD4_FALSE$ac_delim
27261
18908
USE_MD5_TRUE!$USE_MD5_TRUE$ac_delim
27262
18909
USE_MD5_FALSE!$USE_MD5_FALSE$ac_delim
27263
18910
USE_SHA1_TRUE!$USE_SHA1_TRUE$ac_delim
27361
19008
USE_EAP_GTC_FALSE!$USE_EAP_GTC_FALSE$ac_delim
27362
19009
USE_EAP_AKA_TRUE!$USE_EAP_AKA_TRUE$ac_delim
27363
19010
USE_EAP_AKA_FALSE!$USE_EAP_AKA_FALSE$ac_delim
 
19011
USE_EAP_MSCHAPV2_TRUE!$USE_EAP_MSCHAPV2_TRUE$ac_delim
 
19012
USE_EAP_MSCHAPV2_FALSE!$USE_EAP_MSCHAPV2_FALSE$ac_delim
 
19013
USE_EAP_RADIUS_TRUE!$USE_EAP_RADIUS_TRUE$ac_delim
 
19014
USE_EAP_RADIUS_FALSE!$USE_EAP_RADIUS_FALSE$ac_delim
27364
19015
USE_KERNEL_NETLINK_TRUE!$USE_KERNEL_NETLINK_TRUE$ac_delim
27365
19016
USE_KERNEL_NETLINK_FALSE!$USE_KERNEL_NETLINK_FALSE$ac_delim
27366
19017
USE_KERNEL_PFKEY_TRUE!$USE_KERNEL_PFKEY_TRUE$ac_delim
27397
19048
USE_CAPABILITIES_FALSE!$USE_CAPABILITIES_FALSE$ac_delim
27398
19049
USE_PLUTO_TRUE!$USE_PLUTO_TRUE$ac_delim
27399
19050
USE_PLUTO_FALSE!$USE_PLUTO_FALSE$ac_delim
 
19051
USE_THREADS_TRUE!$USE_THREADS_TRUE$ac_delim
 
19052
USE_THREADS_FALSE!$USE_THREADS_FALSE$ac_delim
27400
19053
USE_CHARON_TRUE!$USE_CHARON_TRUE$ac_delim
27401
19054
USE_CHARON_FALSE!$USE_CHARON_FALSE$ac_delim
27402
19055
USE_TOOLS_TRUE!$USE_TOOLS_TRUE$ac_delim
27405
19058
USE_LIBSTRONGSWAN_FALSE!$USE_LIBSTRONGSWAN_FALSE$ac_delim
27406
19059
USE_FILE_CONFIG_TRUE!$USE_FILE_CONFIG_TRUE$ac_delim
27407
19060
USE_FILE_CONFIG_FALSE!$USE_FILE_CONFIG_FALSE$ac_delim
 
19061
USE_VSTR_TRUE!$USE_VSTR_TRUE$ac_delim
 
19062
USE_VSTR_FALSE!$USE_VSTR_FALSE$ac_delim
27408
19063
LIBOBJS!$LIBOBJS$ac_delim
27409
19064
LTLIBOBJS!$LTLIBOBJS$ac_delim
27410
19065
_ACEOF
27411
19066
 
27412
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
 
19067
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
27413
19068
    break
27414
19069
  elif $ac_last_try; then
27415
19070
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27845
19500
  done
27846
19501
done
27847
19502
 ;;
 
19503
    "libtool":C)
 
19504
 
 
19505
    # See if we are running on zsh, and set the options which allow our
 
19506
    # commands through without removal of \ escapes.
 
19507
    if test -n "${ZSH_VERSION+set}" ; then
 
19508
      setopt NO_GLOB_SUBST
 
19509
    fi
 
19510
 
 
19511
    cfgfile="${ofile}T"
 
19512
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
19513
    $RM "$cfgfile"
 
19514
 
 
19515
    cat <<_LT_EOF >> "$cfgfile"
 
19516
#! $SHELL
 
19517
 
 
19518
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
19519
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
19520
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19521
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
19522
#
 
19523
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
19524
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
19525
#   Written by Gordon Matzigkeit, 1996
 
19526
#
 
19527
#   This file is part of GNU Libtool.
 
19528
#
 
19529
# GNU Libtool is free software; you can redistribute it and/or
 
19530
# modify it under the terms of the GNU General Public License as
 
19531
# published by the Free Software Foundation; either version 2 of
 
19532
# the License, or (at your option) any later version.
 
19533
#
 
19534
# As a special exception to the GNU General Public License,
 
19535
# if you distribute this file as part of a program or library that
 
19536
# is built using GNU Libtool, you may include this file under the
 
19537
# same distribution terms that you use for the rest of that program.
 
19538
#
 
19539
# GNU Libtool is distributed in the hope that it will be useful,
 
19540
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19541
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19542
# GNU General Public License for more details.
 
19543
#
 
19544
# You should have received a copy of the GNU General Public License
 
19545
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
19546
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
19547
# obtained by writing to the Free Software Foundation, Inc.,
 
19548
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
19549
 
 
19550
 
 
19551
# The names of the tagged configurations supported by this script.
 
19552
available_tags=""
 
19553
 
 
19554
# ### BEGIN LIBTOOL CONFIG
 
19555
 
 
19556
# Which release of libtool.m4 was used?
 
19557
macro_version=$macro_version
 
19558
macro_revision=$macro_revision
 
19559
 
 
19560
# Whether or not to build shared libraries.
 
19561
build_libtool_libs=$enable_shared
 
19562
 
 
19563
# Whether or not to build static libraries.
 
19564
build_old_libs=$enable_static
 
19565
 
 
19566
# What type of objects to build.
 
19567
pic_mode=$pic_mode
 
19568
 
 
19569
# Whether or not to optimize for fast installation.
 
19570
fast_install=$enable_fast_install
 
19571
 
 
19572
# The host system.
 
19573
host_alias=$host_alias
 
19574
host=$host
 
19575
host_os=$host_os
 
19576
 
 
19577
# The build system.
 
19578
build_alias=$build_alias
 
19579
build=$build
 
19580
build_os=$build_os
 
19581
 
 
19582
# A sed program that does not truncate output.
 
19583
SED=$lt_SED
 
19584
 
 
19585
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
19586
Xsed="\$SED -e 1s/^X//"
 
19587
 
 
19588
# A grep program that handles long lines.
 
19589
GREP=$lt_GREP
 
19590
 
 
19591
# An ERE matcher.
 
19592
EGREP=$lt_EGREP
 
19593
 
 
19594
# A literal string matcher.
 
19595
FGREP=$lt_FGREP
 
19596
 
 
19597
# A BSD- or MS-compatible name lister.
 
19598
NM=$lt_NM
 
19599
 
 
19600
# Whether we need soft or hard links.
 
19601
LN_S=$lt_LN_S
 
19602
 
 
19603
# What is the maximum length of a command?
 
19604
max_cmd_len=$max_cmd_len
 
19605
 
 
19606
# Object file suffix (normally "o").
 
19607
objext=$ac_objext
 
19608
 
 
19609
# Executable file suffix (normally "").
 
19610
exeext=$exeext
 
19611
 
 
19612
# whether the shell understands "unset".
 
19613
lt_unset=$lt_unset
 
19614
 
 
19615
# turn spaces into newlines.
 
19616
SP2NL=$lt_lt_SP2NL
 
19617
 
 
19618
# turn newlines into spaces.
 
19619
NL2SP=$lt_lt_NL2SP
 
19620
 
 
19621
# How to create reloadable object files.
 
19622
reload_flag=$lt_reload_flag
 
19623
reload_cmds=$lt_reload_cmds
 
19624
 
 
19625
# Method to check whether dependent libraries are shared objects.
 
19626
deplibs_check_method=$lt_deplibs_check_method
 
19627
 
 
19628
# Command to use when deplibs_check_method == "file_magic".
 
19629
file_magic_cmd=$lt_file_magic_cmd
 
19630
 
 
19631
# The archiver.
 
19632
AR=$lt_AR
 
19633
AR_FLAGS=$lt_AR_FLAGS
 
19634
 
 
19635
# A symbol stripping program.
 
19636
STRIP=$lt_STRIP
 
19637
 
 
19638
# Commands used to install an old-style archive.
 
19639
RANLIB=$lt_RANLIB
 
19640
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19641
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19642
 
 
19643
# A C compiler.
 
19644
LTCC=$lt_CC
 
19645
 
 
19646
# LTCC compiler flags.
 
19647
LTCFLAGS=$lt_CFLAGS
 
19648
 
 
19649
# Take the output of nm and produce a listing of raw symbols and C names.
 
19650
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19651
 
 
19652
# Transform the output of nm in a proper C declaration.
 
19653
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19654
 
 
19655
# Transform the output of nm in a C name address pair.
 
19656
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19657
 
 
19658
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
19659
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
19660
 
 
19661
# The name of the directory that contains temporary libtool files.
 
19662
objdir=$objdir
 
19663
 
 
19664
# Shell to use when invoking shell scripts.
 
19665
SHELL=$lt_SHELL
 
19666
 
 
19667
# An echo program that does not interpret backslashes.
 
19668
ECHO=$lt_ECHO
 
19669
 
 
19670
# Used to examine libraries when file_magic_cmd begins with "file".
 
19671
MAGIC_CMD=$MAGIC_CMD
 
19672
 
 
19673
# Must we lock files when doing compilation?
 
19674
need_locks=$lt_need_locks
 
19675
 
 
19676
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
19677
DSYMUTIL=$lt_DSYMUTIL
 
19678
 
 
19679
# Tool to change global to local symbols on Mac OS X.
 
19680
NMEDIT=$lt_NMEDIT
 
19681
 
 
19682
# Tool to manipulate fat objects and archives on Mac OS X.
 
19683
LIPO=$lt_LIPO
 
19684
 
 
19685
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
19686
OTOOL=$lt_OTOOL
 
19687
 
 
19688
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
19689
OTOOL64=$lt_OTOOL64
 
19690
 
 
19691
# Old archive suffix (normally "a").
 
19692
libext=$libext
 
19693
 
 
19694
# Shared library suffix (normally ".so").
 
19695
shrext_cmds=$lt_shrext_cmds
 
19696
 
 
19697
# The commands to extract the exported symbol list from a shared archive.
 
19698
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19699
 
 
19700
# Variables whose values should be saved in libtool wrapper scripts and
 
19701
# restored at link time.
 
19702
variables_saved_for_relink=$lt_variables_saved_for_relink
 
19703
 
 
19704
# Do we need the "lib" prefix for modules?
 
19705
need_lib_prefix=$need_lib_prefix
 
19706
 
 
19707
# Do we need a version for libraries?
 
19708
need_version=$need_version
 
19709
 
 
19710
# Library versioning type.
 
19711
version_type=$version_type
 
19712
 
 
19713
# Shared library runtime path variable.
 
19714
runpath_var=$runpath_var
 
19715
 
 
19716
# Shared library path variable.
 
19717
shlibpath_var=$shlibpath_var
 
19718
 
 
19719
# Is shlibpath searched before the hard-coded library search path?
 
19720
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19721
 
 
19722
# Format of library name prefix.
 
19723
libname_spec=$lt_libname_spec
 
19724
 
 
19725
# List of archive names.  First name is the real one, the rest are links.
 
19726
# The last name is the one that the linker finds with -lNAME
 
19727
library_names_spec=$lt_library_names_spec
 
19728
 
 
19729
# The coded name of the library, if different from the real name.
 
19730
soname_spec=$lt_soname_spec
 
19731
 
 
19732
# Command to use after installation of a shared archive.
 
19733
postinstall_cmds=$lt_postinstall_cmds
 
19734
 
 
19735
# Command to use after uninstallation of a shared archive.
 
19736
postuninstall_cmds=$lt_postuninstall_cmds
 
19737
 
 
19738
# Commands used to finish a libtool library installation in a directory.
 
19739
finish_cmds=$lt_finish_cmds
 
19740
 
 
19741
# As "finish_cmds", except a single script fragment to be evaled but
 
19742
# not shown.
 
19743
finish_eval=$lt_finish_eval
 
19744
 
 
19745
# Whether we should hardcode library paths into libraries.
 
19746
hardcode_into_libs=$hardcode_into_libs
 
19747
 
 
19748
# Compile-time system search path for libraries.
 
19749
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19750
 
 
19751
# Run-time system search path for libraries.
 
19752
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19753
 
 
19754
# Whether dlopen is supported.
 
19755
dlopen_support=$enable_dlopen
 
19756
 
 
19757
# Whether dlopen of programs is supported.
 
19758
dlopen_self=$enable_dlopen_self
 
19759
 
 
19760
# Whether dlopen of statically linked programs is supported.
 
19761
dlopen_self_static=$enable_dlopen_self_static
 
19762
 
 
19763
# Commands to strip libraries.
 
19764
old_striplib=$lt_old_striplib
 
19765
striplib=$lt_striplib
 
19766
 
 
19767
 
 
19768
# The linker used to build libraries.
 
19769
LD=$lt_LD
 
19770
 
 
19771
# Commands used to build an old-style archive.
 
19772
old_archive_cmds=$lt_old_archive_cmds
 
19773
 
 
19774
# A language specific compiler.
 
19775
CC=$lt_compiler
 
19776
 
 
19777
# Is the compiler the GNU compiler?
 
19778
with_gcc=$GCC
 
19779
 
 
19780
# Compiler flag to turn off builtin functions.
 
19781
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
19782
 
 
19783
# How to pass a linker flag through the compiler.
 
19784
wl=$lt_lt_prog_compiler_wl
 
19785
 
 
19786
# Additional compiler flags for building library objects.
 
19787
pic_flag=$lt_lt_prog_compiler_pic
 
19788
 
 
19789
# Compiler flag to prevent dynamic linking.
 
19790
link_static_flag=$lt_lt_prog_compiler_static
 
19791
 
 
19792
# Does compiler simultaneously support -c and -o options?
 
19793
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
19794
 
 
19795
# Whether or not to add -lc for building shared libraries.
 
19796
build_libtool_need_lc=$archive_cmds_need_lc
 
19797
 
 
19798
# Whether or not to disallow shared libs when runtime libs are static.
 
19799
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
19800
 
 
19801
# Compiler flag to allow reflexive dlopens.
 
19802
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
19803
 
 
19804
# Compiler flag to generate shared objects directly from archives.
 
19805
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
19806
 
 
19807
# Whether the compiler copes with passing no objects directly.
 
19808
compiler_needs_object=$lt_compiler_needs_object
 
19809
 
 
19810
# Create an old-style archive from a shared archive.
 
19811
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
19812
 
 
19813
# Create a temporary old-style archive to link instead of a shared archive.
 
19814
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
19815
 
 
19816
# Commands used to build a shared archive.
 
19817
archive_cmds=$lt_archive_cmds
 
19818
archive_expsym_cmds=$lt_archive_expsym_cmds
 
19819
 
 
19820
# Commands used to build a loadable module if different from building
 
19821
# a shared archive.
 
19822
module_cmds=$lt_module_cmds
 
19823
module_expsym_cmds=$lt_module_expsym_cmds
 
19824
 
 
19825
# Whether we are building with GNU ld or not.
 
19826
with_gnu_ld=$lt_with_gnu_ld
 
19827
 
 
19828
# Flag that allows shared libraries with undefined symbols to be built.
 
19829
allow_undefined_flag=$lt_allow_undefined_flag
 
19830
 
 
19831
# Flag that enforces no undefined symbols.
 
19832
no_undefined_flag=$lt_no_undefined_flag
 
19833
 
 
19834
# Flag to hardcode \$libdir into a binary during linking.
 
19835
# This must work even if \$libdir does not exist
 
19836
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
19837
 
 
19838
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
19839
# during linking.  This must work even if \$libdir does not exist.
 
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
19841
 
 
19842
# Whether we need a single "-rpath" flag with a separated argument.
 
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
19844
 
 
19845
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
19846
# DIR into the resulting binary.
 
19847
hardcode_direct=$hardcode_direct
 
19848
 
 
19849
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
19850
# DIR into the resulting binary and the resulting library dependency is
 
19851
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
19852
# library is relocated.
 
19853
hardcode_direct_absolute=$hardcode_direct_absolute
 
19854
 
 
19855
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
19856
# into the resulting binary.
 
19857
hardcode_minus_L=$hardcode_minus_L
 
19858
 
 
19859
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
19860
# into the resulting binary.
 
19861
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
19862
 
 
19863
# Set to "yes" if building a shared library automatically hardcodes DIR
 
19864
# into the library and all subsequent libraries and executables linked
 
19865
# against it.
 
19866
hardcode_automatic=$hardcode_automatic
 
19867
 
 
19868
# Set to yes if linker adds runtime paths of dependent libraries
 
19869
# to runtime path list.
 
19870
inherit_rpath=$inherit_rpath
 
19871
 
 
19872
# Whether libtool must link a program against all its dependency libraries.
 
19873
link_all_deplibs=$link_all_deplibs
 
19874
 
 
19875
# Fix the shell variable \$srcfile for the compiler.
 
19876
fix_srcfile_path=$lt_fix_srcfile_path
 
19877
 
 
19878
# Set to "yes" if exported symbols are required.
 
19879
always_export_symbols=$always_export_symbols
 
19880
 
 
19881
# The commands to list exported symbols.
 
19882
export_symbols_cmds=$lt_export_symbols_cmds
 
19883
 
 
19884
# Symbols that should not be listed in the preloaded symbols.
 
19885
exclude_expsyms=$lt_exclude_expsyms
 
19886
 
 
19887
# Symbols that must always be exported.
 
19888
include_expsyms=$lt_include_expsyms
 
19889
 
 
19890
# Commands necessary for linking programs (against libraries) with templates.
 
19891
prelink_cmds=$lt_prelink_cmds
 
19892
 
 
19893
# Specify filename containing input files.
 
19894
file_list_spec=$lt_file_list_spec
 
19895
 
 
19896
# How to hardcode a shared library path into an executable.
 
19897
hardcode_action=$hardcode_action
 
19898
 
 
19899
# ### END LIBTOOL CONFIG
 
19900
 
 
19901
_LT_EOF
 
19902
 
 
19903
  case $host_os in
 
19904
  aix3*)
 
19905
    cat <<\_LT_EOF >> "$cfgfile"
 
19906
# AIX sometimes has problems with the GCC collect2 program.  For some
 
19907
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
19908
# vanish in a puff of smoke.
 
19909
if test "X${COLLECT_NAMES+set}" != Xset; then
 
19910
  COLLECT_NAMES=
 
19911
  export COLLECT_NAMES
 
19912
fi
 
19913
_LT_EOF
 
19914
    ;;
 
19915
  esac
 
19916
 
 
19917
 
 
19918
ltmain="$ac_aux_dir/ltmain.sh"
 
19919
 
 
19920
 
 
19921
  # We use sed instead of cat because bash on DJGPP gets confused if
 
19922
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
19923
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
19924
  # is reportedly fixed, but why not run on old versions too?
 
19925
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
19926
    || (rm -f "$cfgfile"; exit 1)
 
19927
 
 
19928
  case $xsi_shell in
 
19929
  yes)
 
19930
    cat << \_LT_EOF >> "$cfgfile"
 
19931
 
 
19932
# func_dirname file append nondir_replacement
 
19933
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
19934
# otherwise set result to NONDIR_REPLACEMENT.
 
19935
func_dirname ()
 
19936
{
 
19937
  case ${1} in
 
19938
    */*) func_dirname_result="${1%/*}${2}" ;;
 
19939
    *  ) func_dirname_result="${3}" ;;
 
19940
  esac
 
19941
}
 
19942
 
 
19943
# func_basename file
 
19944
func_basename ()
 
19945
{
 
19946
  func_basename_result="${1##*/}"
 
19947
}
 
19948
 
 
19949
# func_dirname_and_basename file append nondir_replacement
 
19950
# perform func_basename and func_dirname in a single function
 
19951
# call:
 
19952
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
19953
#             add APPEND to the result, otherwise set result
 
19954
#             to NONDIR_REPLACEMENT.
 
19955
#             value returned in "$func_dirname_result"
 
19956
#   basename: Compute filename of FILE.
 
19957
#             value retuned in "$func_basename_result"
 
19958
# Implementation must be kept synchronized with func_dirname
 
19959
# and func_basename. For efficiency, we do not delegate to
 
19960
# those functions but instead duplicate the functionality here.
 
19961
func_dirname_and_basename ()
 
19962
{
 
19963
  case ${1} in
 
19964
    */*) func_dirname_result="${1%/*}${2}" ;;
 
19965
    *  ) func_dirname_result="${3}" ;;
 
19966
  esac
 
19967
  func_basename_result="${1##*/}"
 
19968
}
 
19969
 
 
19970
# func_stripname prefix suffix name
 
19971
# strip PREFIX and SUFFIX off of NAME.
 
19972
# PREFIX and SUFFIX must not contain globbing or regex special
 
19973
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
19974
# dot (in which case that matches only a dot).
 
19975
func_stripname ()
 
19976
{
 
19977
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
19978
  # positional parameters, so assign one to ordinary parameter first.
 
19979
  func_stripname_result=${3}
 
19980
  func_stripname_result=${func_stripname_result#"${1}"}
 
19981
  func_stripname_result=${func_stripname_result%"${2}"}
 
19982
}
 
19983
 
 
19984
# func_opt_split
 
19985
func_opt_split ()
 
19986
{
 
19987
  func_opt_split_opt=${1%%=*}
 
19988
  func_opt_split_arg=${1#*=}
 
19989
}
 
19990
 
 
19991
# func_lo2o object
 
19992
func_lo2o ()
 
19993
{
 
19994
  case ${1} in
 
19995
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
19996
    *)    func_lo2o_result=${1} ;;
 
19997
  esac
 
19998
}
 
19999
 
 
20000
# func_xform libobj-or-source
 
20001
func_xform ()
 
20002
{
 
20003
  func_xform_result=${1%.*}.lo
 
20004
}
 
20005
 
 
20006
# func_arith arithmetic-term...
 
20007
func_arith ()
 
20008
{
 
20009
  func_arith_result=$(( $* ))
 
20010
}
 
20011
 
 
20012
# func_len string
 
20013
# STRING may not start with a hyphen.
 
20014
func_len ()
 
20015
{
 
20016
  func_len_result=${#1}
 
20017
}
 
20018
 
 
20019
_LT_EOF
 
20020
    ;;
 
20021
  *) # Bourne compatible functions.
 
20022
    cat << \_LT_EOF >> "$cfgfile"
 
20023
 
 
20024
# func_dirname file append nondir_replacement
 
20025
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20026
# otherwise set result to NONDIR_REPLACEMENT.
 
20027
func_dirname ()
 
20028
{
 
20029
  # Extract subdirectory from the argument.
 
20030
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
20031
  if test "X$func_dirname_result" = "X${1}"; then
 
20032
    func_dirname_result="${3}"
 
20033
  else
 
20034
    func_dirname_result="$func_dirname_result${2}"
 
20035
  fi
 
20036
}
 
20037
 
 
20038
# func_basename file
 
20039
func_basename ()
 
20040
{
 
20041
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
20042
}
 
20043
 
 
20044
 
 
20045
# func_stripname prefix suffix name
 
20046
# strip PREFIX and SUFFIX off of NAME.
 
20047
# PREFIX and SUFFIX must not contain globbing or regex special
 
20048
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20049
# dot (in which case that matches only a dot).
 
20050
# func_strip_suffix prefix name
 
20051
func_stripname ()
 
20052
{
 
20053
  case ${2} in
 
20054
    .*) func_stripname_result=`$ECHO "X${3}" \
 
20055
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
20056
    *)  func_stripname_result=`$ECHO "X${3}" \
 
20057
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
20058
  esac
 
20059
}
 
20060
 
 
20061
# sed scripts:
 
20062
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
20063
my_sed_long_arg='1s/^-[^=]*=//'
 
20064
 
 
20065
# func_opt_split
 
20066
func_opt_split ()
 
20067
{
 
20068
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
20069
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
20070
}
 
20071
 
 
20072
# func_lo2o object
 
20073
func_lo2o ()
 
20074
{
 
20075
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
20076
}
 
20077
 
 
20078
# func_xform libobj-or-source
 
20079
func_xform ()
 
20080
{
 
20081
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
20082
}
 
20083
 
 
20084
# func_arith arithmetic-term...
 
20085
func_arith ()
 
20086
{
 
20087
  func_arith_result=`expr "$@"`
 
20088
}
 
20089
 
 
20090
# func_len string
 
20091
# STRING may not start with a hyphen.
 
20092
func_len ()
 
20093
{
 
20094
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
20095
}
 
20096
 
 
20097
_LT_EOF
 
20098
esac
 
20099
 
 
20100
case $lt_shell_append in
 
20101
  yes)
 
20102
    cat << \_LT_EOF >> "$cfgfile"
 
20103
 
 
20104
# func_append var value
 
20105
# Append VALUE to the end of shell variable VAR.
 
20106
func_append ()
 
20107
{
 
20108
  eval "$1+=\$2"
 
20109
}
 
20110
_LT_EOF
 
20111
    ;;
 
20112
  *)
 
20113
    cat << \_LT_EOF >> "$cfgfile"
 
20114
 
 
20115
# func_append var value
 
20116
# Append VALUE to the end of shell variable VAR.
 
20117
func_append ()
 
20118
{
 
20119
  eval "$1=\$$1\$2"
 
20120
}
 
20121
 
 
20122
_LT_EOF
 
20123
    ;;
 
20124
  esac
 
20125
 
 
20126
 
 
20127
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
20128
    || (rm -f "$cfgfile"; exit 1)
 
20129
 
 
20130
  mv -f "$cfgfile" "$ofile" ||
 
20131
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
20132
  chmod +x "$ofile"
 
20133
 
 
20134
 ;;
27848
20135
 
27849
20136
  esac
27850
20137
done # for ac_tag