~ubuntu-branches/ubuntu/maverick/liferea/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2009-03-10 23:47:50 UTC
  • mfrom: (1.2.55 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310234750-lnvjgb81gggwyyd4
Tags: 1.4.26-0ubuntu1
* New upstream bugfix release (lp: #325750).
  - debian/patches/90_autoreconf: refreshed.
* debian/patches/notification_check_for_actions_support:
  - New patch backported from upstream r4468, check for actions support
    in notifications before using them (lp: #328606).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
34
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
35
  fi
36
36
 
37
 
  AC_ARG_WITH(gconf-source, 
38
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
37
  AC_ARG_WITH([gconf-source],
 
38
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
39
                             [Config database for installing schema files.]),
 
40
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
39
41
 
40
42
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
41
43
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
46
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
45
47
  fi
46
48
 
47
 
  AC_ARG_WITH(gconf-schema-file-dir, 
48
 
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
49
  AC_ARG_WITH([gconf-schema-file-dir],
 
50
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
51
                             [Directory for installing schema files.]),
 
52
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
49
53
 
50
54
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
51
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
670
674
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
671
675
 
672
676
 
673
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
674
 
 
675
 
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
676
 
 
677
 
 
678
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
679
 
# -----------------------------------------------------------
680
 
# If this macro is not defined by Autoconf, define it here.
681
 
m4_ifdef([AC_PROVIDE_IFELSE],
682
 
         [],
683
 
         [m4_define([AC_PROVIDE_IFELSE],
684
 
                 [m4_ifdef([AC_PROVIDE_$1],
685
 
                           [$2], [$3])])])
686
 
 
687
 
 
688
 
# AC_PROG_LIBTOOL
689
 
# ---------------
690
 
AC_DEFUN([AC_PROG_LIBTOOL],
691
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
692
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
693
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
694
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
695
 
    [AC_LIBTOOL_CXX],
696
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
697
 
  ])])
698
 
dnl And a similar setup for Fortran 77 support
699
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
700
 
    [AC_LIBTOOL_F77],
701
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
702
 
])])
703
 
 
704
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
705
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
706
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
707
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
708
 
    [AC_LIBTOOL_GCJ],
709
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
710
 
      [AC_LIBTOOL_GCJ],
711
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
712
 
        [AC_LIBTOOL_GCJ],
713
 
      [ifdef([AC_PROG_GCJ],
714
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
715
 
       ifdef([A][M_PROG_GCJ],
716
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
717
 
       ifdef([LT_AC_PROG_GCJ],
718
 
             [define([LT_AC_PROG_GCJ],
719
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
720
 
])])# AC_PROG_LIBTOOL
721
 
 
722
 
 
723
 
# _AC_PROG_LIBTOOL
724
 
# ----------------
725
 
AC_DEFUN([_AC_PROG_LIBTOOL],
726
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
727
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
728
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
729
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
730
 
 
731
 
# This can be used to rebuild libtool when needed
732
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
733
 
 
734
 
# Always use our own libtool.
735
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
736
 
AC_SUBST(LIBTOOL)dnl
737
 
 
738
 
# Prevent multiple expansion
739
 
define([AC_PROG_LIBTOOL], [])
740
 
])# _AC_PROG_LIBTOOL
741
 
 
742
 
 
743
 
# AC_LIBTOOL_SETUP
744
 
# ----------------
745
 
AC_DEFUN([AC_LIBTOOL_SETUP],
746
 
[AC_PREREQ(2.50)dnl
747
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
748
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
749
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
750
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
751
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
752
 
AC_REQUIRE([AC_PROG_CC])dnl
753
 
AC_REQUIRE([AC_PROG_LD])dnl
754
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
755
 
AC_REQUIRE([AC_PROG_NM])dnl
756
 
 
757
 
AC_REQUIRE([AC_PROG_LN_S])dnl
758
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
759
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
760
 
AC_REQUIRE([AC_OBJEXT])dnl
761
 
AC_REQUIRE([AC_EXEEXT])dnl
762
 
dnl
763
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
764
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
765
 
AC_LIBTOOL_OBJDIR
766
 
 
767
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
768
 
_LT_AC_PROG_ECHO_BACKSLASH
769
 
 
770
 
case $host_os in
771
 
aix3*)
772
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
773
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
774
 
  # vanish in a puff of smoke.
775
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
776
 
    COLLECT_NAMES=
777
 
    export COLLECT_NAMES
778
 
  fi
779
 
  ;;
780
 
esac
781
 
 
782
 
# Sed substitution that helps us do robust quoting.  It backslashifies
783
 
# metacharacters that are still active within double-quoted strings.
784
 
Xsed='sed -e 1s/^X//'
785
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
786
 
 
787
 
# Same as above, but do not quote variable references.
788
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
789
 
 
790
 
# Sed substitution to delay expansion of an escaped shell variable in a
791
 
# double_quote_subst'ed string.
792
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
793
 
 
794
 
# Sed substitution to avoid accidental globbing in evaled expressions
795
 
no_glob_subst='s/\*/\\\*/g'
796
 
 
797
 
# Constants:
798
 
rm="rm -f"
799
 
 
800
 
# Global variables:
801
 
default_ofile=libtool
802
 
can_build_shared=yes
803
 
 
804
 
# All known linkers require a `.a' archive for static linking (except MSVC,
805
 
# which needs '.lib').
806
 
libext=a
807
 
ltmain="$ac_aux_dir/ltmain.sh"
808
 
ofile="$default_ofile"
809
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
810
 
 
811
 
AC_CHECK_TOOL(AR, ar, false)
812
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
813
 
AC_CHECK_TOOL(STRIP, strip, :)
814
 
 
815
 
old_CC="$CC"
816
 
old_CFLAGS="$CFLAGS"
817
 
 
818
 
# Set sane defaults for various variables
819
 
test -z "$AR" && AR=ar
820
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
821
 
test -z "$AS" && AS=as
822
 
test -z "$CC" && CC=cc
823
 
test -z "$LTCC" && LTCC=$CC
824
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
825
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
826
 
test -z "$LD" && LD=ld
827
 
test -z "$LN_S" && LN_S="ln -s"
828
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
829
 
test -z "$NM" && NM=nm
830
 
test -z "$SED" && SED=sed
831
 
test -z "$OBJDUMP" && OBJDUMP=objdump
832
 
test -z "$RANLIB" && RANLIB=:
833
 
test -z "$STRIP" && STRIP=:
834
 
test -z "$ac_objext" && ac_objext=o
835
 
 
836
 
# Determine commands to create old-style static archives.
837
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
838
 
old_postinstall_cmds='chmod 644 $oldlib'
839
 
old_postuninstall_cmds=
840
 
 
841
 
if test -n "$RANLIB"; then
842
 
  case $host_os in
843
 
  openbsd*)
844
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
845
 
    ;;
846
 
  *)
847
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
848
 
    ;;
849
 
  esac
850
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
851
 
fi
852
 
 
853
 
_LT_CC_BASENAME([$compiler])
854
 
 
855
 
# Only perform the check for file, if the check method requires it
856
 
case $deplibs_check_method in
857
 
file_magic*)
858
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
859
 
    AC_PATH_MAGIC
860
 
  fi
861
 
  ;;
862
 
esac
863
 
 
864
 
_LT_REQUIRED_DARWIN_CHECKS
865
 
 
866
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
867
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
868
 
enable_win32_dll=yes, enable_win32_dll=no)
869
 
 
870
 
AC_ARG_ENABLE([libtool-lock],
871
 
    [AC_HELP_STRING([--disable-libtool-lock],
872
 
        [avoid locking (might break parallel builds)])])
873
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
874
 
 
875
 
AC_ARG_WITH([pic],
876
 
    [AC_HELP_STRING([--with-pic],
877
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
878
 
    [pic_mode="$withval"],
879
 
    [pic_mode=default])
880
 
test -z "$pic_mode" && pic_mode=default
881
 
 
882
 
# Use C for the default configuration in the libtool script
883
 
tagname=
884
 
AC_LIBTOOL_LANG_C_CONFIG
885
 
_LT_AC_TAGCONFIG
886
 
])# AC_LIBTOOL_SETUP
887
 
 
888
 
 
889
 
# _LT_AC_SYS_COMPILER
890
 
# -------------------
891
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
892
 
[AC_REQUIRE([AC_PROG_CC])dnl
893
 
 
894
 
# If no C compiler was specified, use CC.
895
 
LTCC=${LTCC-"$CC"}
896
 
 
897
 
# If no C compiler flags were specified, use CFLAGS.
898
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
899
 
 
900
 
# Allow CC to be a program name with arguments.
901
 
compiler=$CC
902
 
])# _LT_AC_SYS_COMPILER
903
 
 
904
 
 
905
 
# _LT_CC_BASENAME(CC)
906
 
# -------------------
907
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
908
 
AC_DEFUN([_LT_CC_BASENAME],
909
 
[for cc_temp in $1""; do
910
 
  case $cc_temp in
911
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
912
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
913
 
    \-*) ;;
914
 
    *) break;;
915
 
  esac
916
 
done
917
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
918
 
])
919
 
 
920
 
 
921
 
# _LT_COMPILER_BOILERPLATE
922
 
# ------------------------
923
 
# Check for compiler boilerplate output or warnings with
924
 
# the simple compiler test code.
925
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
926
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
927
 
ac_outfile=conftest.$ac_objext
928
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
929
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
930
 
_lt_compiler_boilerplate=`cat conftest.err`
931
 
$rm conftest*
932
 
])# _LT_COMPILER_BOILERPLATE
933
 
 
934
 
 
935
 
# _LT_LINKER_BOILERPLATE
936
 
# ----------------------
937
 
# Check for linker boilerplate output or warnings with
938
 
# the simple link test code.
939
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
940
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
941
 
ac_outfile=conftest.$ac_objext
942
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
943
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
944
 
_lt_linker_boilerplate=`cat conftest.err`
945
 
$rm -r conftest*
946
 
])# _LT_LINKER_BOILERPLATE
947
 
 
948
 
# _LT_REQUIRED_DARWIN_CHECKS
949
 
# --------------------------
950
 
# Check for some things on darwin
951
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
952
 
  case $host_os in
953
 
    rhapsody* | darwin*)
954
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
955
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
956
 
 
957
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
958
 
      [lt_cv_apple_cc_single_mod=no
959
 
      if test -z "${LT_MULTI_MODULE}"; then
960
 
   # By default we will add the -single_module flag. You can override
961
 
   # by either setting the environment variable LT_MULTI_MODULE
962
 
   # non-empty at configure time, or by adding -multi_module to the
963
 
   # link flags.
964
 
   echo "int foo(void){return 1;}" > conftest.c
965
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
966
 
     -dynamiclib ${wl}-single_module conftest.c
967
 
   if test -f libconftest.dylib; then
968
 
     lt_cv_apple_cc_single_mod=yes
969
 
     rm -rf libconftest.dylib*
970
 
   fi
971
 
   rm conftest.c
972
 
      fi])
973
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
974
 
      [lt_cv_ld_exported_symbols_list],
975
 
      [lt_cv_ld_exported_symbols_list=no
976
 
      save_LDFLAGS=$LDFLAGS
977
 
      echo "_main" > conftest.sym
978
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
979
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
980
 
   [lt_cv_ld_exported_symbols_list=yes],
981
 
   [lt_cv_ld_exported_symbols_list=no])
982
 
   LDFLAGS="$save_LDFLAGS"
983
 
    ])
984
 
    case $host_os in
985
 
    rhapsody* | darwin1.[[0123]])
986
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
987
 
    darwin1.*)
988
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
989
 
    darwin*)
990
 
      # if running on 10.5 or later, the deployment target defaults
991
 
      # to the OS version, if on x86, and 10.4, the deployment
992
 
      # target defaults to 10.4. Don't you love it?
993
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
994
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
995
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
996
 
   10.[[012]]*)
997
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
998
 
   10.*)
999
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1000
 
      esac
1001
 
    ;;
1002
 
  esac
1003
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1004
 
      _lt_dar_single_mod='$single_module'
1005
 
    fi
1006
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1007
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1008
 
    else
1009
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1010
 
    fi
1011
 
    if test "$DSYMUTIL" != ":"; then
1012
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
1013
 
    else
1014
 
      _lt_dsymutil=
1015
 
    fi
1016
 
    ;;
1017
 
  esac
1018
 
])
1019
 
 
1020
 
# _LT_AC_SYS_LIBPATH_AIX
1021
 
# ----------------------
1022
 
# Links a minimal program and checks the executable
1023
 
# for the system default hardcoded library path. In most cases,
1024
 
# this is /usr/lib:/lib, but when the MPI compilers are used
1025
 
# the location of the communication and MPI libs are included too.
1026
 
# If we don't find anything, use the default library path according
1027
 
# to the aix ld manual.
1028
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1029
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1030
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1031
 
lt_aix_libpath_sed='
1032
 
    /Import File Strings/,/^$/ {
1033
 
        /^0/ {
1034
 
            s/^0  *\(.*\)$/\1/
1035
 
            p
1036
 
        }
1037
 
    }'
1038
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1039
 
# Check for a 64-bit object if we didn't find anything.
1040
 
if test -z "$aix_libpath"; then
1041
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1042
 
fi],[])
1043
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1044
 
])# _LT_AC_SYS_LIBPATH_AIX
1045
 
 
1046
 
 
1047
 
# _LT_AC_SHELL_INIT(ARG)
1048
 
# ----------------------
1049
 
AC_DEFUN([_LT_AC_SHELL_INIT],
1050
 
[ifdef([AC_DIVERSION_NOTICE],
1051
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1052
 
         [AC_DIVERT_PUSH(NOTICE)])
1053
 
$1
1054
 
AC_DIVERT_POP
1055
 
])# _LT_AC_SHELL_INIT
1056
 
 
1057
 
 
1058
 
# _LT_AC_PROG_ECHO_BACKSLASH
1059
 
# --------------------------
1060
 
# Add some code to the start of the generated configure script which
1061
 
# will find an echo command which doesn't interpret backslashes.
1062
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1063
 
[_LT_AC_SHELL_INIT([
1064
 
# Check that we are running under the correct shell.
1065
 
SHELL=${CONFIG_SHELL-/bin/sh}
1066
 
 
1067
 
case X$ECHO in
1068
 
X*--fallback-echo)
1069
 
  # Remove one level of quotation (which was required for Make).
1070
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1071
 
  ;;
1072
 
esac
1073
 
 
1074
 
echo=${ECHO-echo}
1075
 
if test "X[$]1" = X--no-reexec; then
1076
 
  # Discard the --no-reexec flag, and continue.
1077
 
  shift
1078
 
elif test "X[$]1" = X--fallback-echo; then
1079
 
  # Avoid inline document here, it may be left over
1080
 
  :
1081
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1082
 
  # Yippee, $echo works!
1083
 
  :
1084
 
else
1085
 
  # Restart under the correct shell.
1086
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1087
 
fi
1088
 
 
1089
 
if test "X[$]1" = X--fallback-echo; then
1090
 
  # used as fallback echo
1091
 
  shift
1092
 
  cat <<EOF
1093
 
[$]*
1094
 
EOF
1095
 
  exit 0
1096
 
fi
1097
 
 
1098
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1099
 
# if CDPATH is set.
1100
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1101
 
 
1102
 
if test -z "$ECHO"; then
1103
 
if test "X${echo_test_string+set}" != Xset; then
1104
 
# find a string as large as possible, as long as the shell can cope with it
1105
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1106
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1107
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1108
 
       echo_test_string=`eval $cmd` &&
1109
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1110
 
    then
1111
 
      break
1112
 
    fi
1113
 
  done
1114
 
fi
1115
 
 
1116
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1117
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1118
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1119
 
  :
1120
 
else
1121
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1122
 
  # backslashes.  This makes it impossible to quote backslashes using
1123
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1124
 
  #
1125
 
  # So, first we look for a working echo in the user's PATH.
1126
 
 
1127
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1128
 
  for dir in $PATH /usr/ucb; do
1129
 
    IFS="$lt_save_ifs"
1130
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1131
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1132
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1133
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1134
 
      echo="$dir/echo"
1135
 
      break
1136
 
    fi
1137
 
  done
1138
 
  IFS="$lt_save_ifs"
1139
 
 
1140
 
  if test "X$echo" = Xecho; then
1141
 
    # We didn't find a better echo, so look for alternatives.
1142
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1143
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1144
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1145
 
      # This shell has a builtin print -r that does the trick.
1146
 
      echo='print -r'
1147
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1148
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1149
 
      # If we have ksh, try running configure again with it.
1150
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1151
 
      export ORIGINAL_CONFIG_SHELL
1152
 
      CONFIG_SHELL=/bin/ksh
1153
 
      export CONFIG_SHELL
1154
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1155
 
    else
1156
 
      # Try using printf.
1157
 
      echo='printf %s\n'
1158
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1159
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1160
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1161
 
        # Cool, printf works
1162
 
        :
1163
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1164
 
           test "X$echo_testing_string" = 'X\t' &&
1165
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1166
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1167
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1168
 
        export CONFIG_SHELL
1169
 
        SHELL="$CONFIG_SHELL"
1170
 
        export SHELL
1171
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1172
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1173
 
           test "X$echo_testing_string" = 'X\t' &&
1174
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1175
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1176
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1177
 
      else
1178
 
        # maybe with a smaller string...
1179
 
        prev=:
1180
 
 
1181
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1182
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1183
 
          then
1184
 
            break
1185
 
          fi
1186
 
          prev="$cmd"
1187
 
        done
1188
 
 
1189
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1190
 
          echo_test_string=`eval $prev`
1191
 
          export echo_test_string
1192
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1193
 
        else
1194
 
          # Oops.  We lost completely, so just stick with echo.
1195
 
          echo=echo
1196
 
        fi
1197
 
      fi
1198
 
    fi
1199
 
  fi
1200
 
fi
1201
 
fi
1202
 
 
1203
 
# Copy echo and quote the copy suitably for passing to libtool from
1204
 
# the Makefile, instead of quoting the original, which is used later.
1205
 
ECHO=$echo
1206
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1207
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1208
 
fi
1209
 
 
1210
 
AC_SUBST(ECHO)
1211
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1212
 
 
1213
 
 
1214
 
# _LT_AC_LOCK
1215
 
# -----------
1216
 
AC_DEFUN([_LT_AC_LOCK],
1217
 
[AC_ARG_ENABLE([libtool-lock],
1218
 
    [AC_HELP_STRING([--disable-libtool-lock],
1219
 
        [avoid locking (might break parallel builds)])])
1220
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1221
 
 
1222
 
# Some flags need to be propagated to the compiler or linker for good
1223
 
# libtool support.
1224
 
case $host in
1225
 
ia64-*-hpux*)
1226
 
  # Find out which ABI we are using.
1227
 
  echo 'int i;' > conftest.$ac_ext
1228
 
  if AC_TRY_EVAL(ac_compile); then
1229
 
    case `/usr/bin/file conftest.$ac_objext` in
1230
 
    *ELF-32*)
1231
 
      HPUX_IA64_MODE="32"
1232
 
      ;;
1233
 
    *ELF-64*)
1234
 
      HPUX_IA64_MODE="64"
1235
 
      ;;
1236
 
    esac
1237
 
  fi
1238
 
  rm -rf conftest*
1239
 
  ;;
1240
 
*-*-irix6*)
1241
 
  # Find out which ABI we are using.
1242
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1243
 
  if AC_TRY_EVAL(ac_compile); then
1244
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1245
 
    case `/usr/bin/file conftest.$ac_objext` in
1246
 
    *32-bit*)
1247
 
      LD="${LD-ld} -melf32bsmip"
1248
 
      ;;
1249
 
    *N32*)
1250
 
      LD="${LD-ld} -melf32bmipn32"
1251
 
      ;;
1252
 
    *64-bit*)
1253
 
      LD="${LD-ld} -melf64bmip"
1254
 
      ;;
1255
 
    esac
1256
 
   else
1257
 
    case `/usr/bin/file conftest.$ac_objext` in
1258
 
    *32-bit*)
1259
 
      LD="${LD-ld} -32"
1260
 
      ;;
1261
 
    *N32*)
1262
 
      LD="${LD-ld} -n32"
1263
 
      ;;
1264
 
    *64-bit*)
1265
 
      LD="${LD-ld} -64"
1266
 
      ;;
1267
 
    esac
1268
 
   fi
1269
 
  fi
1270
 
  rm -rf conftest*
1271
 
  ;;
1272
 
 
1273
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1274
 
s390*-*linux*|sparc*-*linux*)
1275
 
  # Find out which ABI we are using.
1276
 
  echo 'int i;' > conftest.$ac_ext
1277
 
  if AC_TRY_EVAL(ac_compile); then
1278
 
    case `/usr/bin/file conftest.o` in
1279
 
    *32-bit*)
1280
 
      case $host in
1281
 
        x86_64-*kfreebsd*-gnu)
1282
 
          LD="${LD-ld} -m elf_i386_fbsd"
1283
 
          ;;
1284
 
        x86_64-*linux*)
1285
 
          LD="${LD-ld} -m elf_i386"
1286
 
          ;;
1287
 
        ppc64-*linux*|powerpc64-*linux*)
1288
 
          LD="${LD-ld} -m elf32ppclinux"
1289
 
          ;;
1290
 
        s390x-*linux*)
1291
 
          LD="${LD-ld} -m elf_s390"
1292
 
          ;;
1293
 
        sparc64-*linux*)
1294
 
          LD="${LD-ld} -m elf32_sparc"
1295
 
          ;;
1296
 
      esac
1297
 
      ;;
1298
 
    *64-bit*)
1299
 
      case $host in
1300
 
        x86_64-*kfreebsd*-gnu)
1301
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1302
 
          ;;
1303
 
        x86_64-*linux*)
1304
 
          LD="${LD-ld} -m elf_x86_64"
1305
 
          ;;
1306
 
        ppc*-*linux*|powerpc*-*linux*)
1307
 
          LD="${LD-ld} -m elf64ppc"
1308
 
          ;;
1309
 
        s390*-*linux*)
1310
 
          LD="${LD-ld} -m elf64_s390"
1311
 
          ;;
1312
 
        sparc*-*linux*)
1313
 
          LD="${LD-ld} -m elf64_sparc"
1314
 
          ;;
1315
 
      esac
1316
 
      ;;
1317
 
    esac
1318
 
  fi
1319
 
  rm -rf conftest*
1320
 
  ;;
1321
 
 
1322
 
*-*-sco3.2v5*)
1323
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1324
 
  SAVE_CFLAGS="$CFLAGS"
1325
 
  CFLAGS="$CFLAGS -belf"
1326
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1327
 
    [AC_LANG_PUSH(C)
1328
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1329
 
     AC_LANG_POP])
1330
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1331
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1332
 
    CFLAGS="$SAVE_CFLAGS"
1333
 
  fi
1334
 
  ;;
1335
 
sparc*-*solaris*)
1336
 
  # Find out which ABI we are using.
1337
 
  echo 'int i;' > conftest.$ac_ext
1338
 
  if AC_TRY_EVAL(ac_compile); then
1339
 
    case `/usr/bin/file conftest.o` in
1340
 
    *64-bit*)
1341
 
      case $lt_cv_prog_gnu_ld in
1342
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1343
 
      *)
1344
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1345
 
          LD="${LD-ld} -64"
1346
 
        fi
1347
 
        ;;
1348
 
      esac
1349
 
      ;;
1350
 
    esac
1351
 
  fi
1352
 
  rm -rf conftest*
1353
 
  ;;
1354
 
 
1355
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1356
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1357
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1358
 
  AC_CHECK_TOOL(AS, as, false)
1359
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1360
 
  ;;
1361
 
  ])
1362
 
esac
1363
 
 
1364
 
need_locks="$enable_libtool_lock"
1365
 
 
1366
 
])# _LT_AC_LOCK
1367
 
 
1368
 
 
1369
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1370
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1371
 
# ----------------------------------------------------------------
1372
 
# Check whether the given compiler option works
1373
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1374
 
[AC_REQUIRE([LT_AC_PROG_SED])
1375
 
AC_CACHE_CHECK([$1], [$2],
1376
 
  [$2=no
1377
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1378
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1379
 
   lt_compiler_flag="$3"
1380
 
   # Insert the option either (1) after the last *FLAGS variable, or
1381
 
   # (2) before a word containing "conftest.", or (3) at the end.
1382
 
   # Note that $ac_compile itself does not contain backslashes and begins
1383
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1384
 
   # The option is referenced via a variable to avoid confusing sed.
1385
 
   lt_compile=`echo "$ac_compile" | $SED \
1386
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1387
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1388
 
   -e 's:$: $lt_compiler_flag:'`
1389
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1390
 
   (eval "$lt_compile" 2>conftest.err)
1391
 
   ac_status=$?
1392
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
1393
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1394
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
1395
 
     # The compiler can only warn and ignore the option if not recognized
1396
 
     # So say no if there are warnings other than the usual output.
1397
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1398
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1399
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1400
 
       $2=yes
1401
 
     fi
1402
 
   fi
1403
 
   $rm conftest*
1404
 
])
1405
 
 
1406
 
if test x"[$]$2" = xyes; then
1407
 
    ifelse([$5], , :, [$5])
1408
 
else
1409
 
    ifelse([$6], , :, [$6])
1410
 
fi
1411
 
])# AC_LIBTOOL_COMPILER_OPTION
1412
 
 
1413
 
 
1414
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1415
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1416
 
# ------------------------------------------------------------
1417
 
# Check whether the given compiler option works
1418
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1419
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1420
 
AC_CACHE_CHECK([$1], [$2],
1421
 
  [$2=no
1422
 
   save_LDFLAGS="$LDFLAGS"
1423
 
   LDFLAGS="$LDFLAGS $3"
1424
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1425
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1426
 
     # The linker can only warn and ignore the option if not recognized
1427
 
     # So say no if there are warnings
1428
 
     if test -s conftest.err; then
1429
 
       # Append any errors to the config.log.
1430
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1431
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1432
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1433
 
       if diff conftest.exp conftest.er2 >/dev/null; then
1434
 
         $2=yes
1435
 
       fi
1436
 
     else
1437
 
       $2=yes
1438
 
     fi
1439
 
   fi
1440
 
   $rm -r conftest*
1441
 
   LDFLAGS="$save_LDFLAGS"
1442
 
])
1443
 
 
1444
 
if test x"[$]$2" = xyes; then
1445
 
    ifelse([$4], , :, [$4])
1446
 
else
1447
 
    ifelse([$5], , :, [$5])
1448
 
fi
1449
 
])# AC_LIBTOOL_LINKER_OPTION
1450
 
 
1451
 
 
1452
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1453
 
# --------------------------
1454
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1455
 
[# find the maximum length of command line arguments
1456
 
AC_MSG_CHECKING([the maximum length of command line arguments])
1457
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1458
 
  i=0
1459
 
  teststring="ABCD"
1460
 
 
1461
 
  case $build_os in
1462
 
  msdosdjgpp*)
1463
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1464
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1465
 
    # during glob expansion).  Even if it were fixed, the result of this
1466
 
    # check would be larger than it should be.
1467
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1468
 
    ;;
1469
 
 
1470
 
  gnu*)
1471
 
    # Under GNU Hurd, this test is not required because there is
1472
 
    # no limit to the length of command line arguments.
1473
 
    # Libtool will interpret -1 as no limit whatsoever
1474
 
    lt_cv_sys_max_cmd_len=-1;
1475
 
    ;;
1476
 
 
1477
 
  cygwin* | mingw*)
1478
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1479
 
    # about 5 minutes as the teststring grows exponentially.
1480
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
1481
 
    # you end up with a "frozen" computer, even though with patience
1482
 
    # the test eventually succeeds (with a max line length of 256k).
1483
 
    # Instead, let's just punt: use the minimum linelength reported by
1484
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
1485
 
    lt_cv_sys_max_cmd_len=8192;
1486
 
    ;;
1487
 
 
1488
 
  amigaos*)
1489
 
    # On AmigaOS with pdksh, this test takes hours, literally.
1490
 
    # So we just punt and use a minimum line length of 8192.
1491
 
    lt_cv_sys_max_cmd_len=8192;
1492
 
    ;;
1493
 
 
1494
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1495
 
    # This has been around since 386BSD, at least.  Likely further.
1496
 
    if test -x /sbin/sysctl; then
1497
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1498
 
    elif test -x /usr/sbin/sysctl; then
1499
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1500
 
    else
1501
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1502
 
    fi
1503
 
    # And add a safety zone
1504
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1505
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1506
 
    ;;
1507
 
 
1508
 
  interix*)
1509
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1510
 
    lt_cv_sys_max_cmd_len=196608
1511
 
    ;;
1512
 
 
1513
 
  osf*)
1514
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1515
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1516
 
    # nice to cause kernel panics so lets avoid the loop below.
1517
 
    # First set a reasonable default.
1518
 
    lt_cv_sys_max_cmd_len=16384
1519
 
    #
1520
 
    if test -x /sbin/sysconfig; then
1521
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1522
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1523
 
      esac
1524
 
    fi
1525
 
    ;;
1526
 
  sco3.2v5*)
1527
 
    lt_cv_sys_max_cmd_len=102400
1528
 
    ;;
1529
 
  sysv5* | sco5v6* | sysv4.2uw2*)
1530
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1531
 
    if test -n "$kargmax"; then
1532
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1533
 
    else
1534
 
      lt_cv_sys_max_cmd_len=32768
1535
 
    fi
1536
 
    ;;
1537
 
  *)
1538
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1539
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
1540
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1541
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1542
 
    else
1543
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1544
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1545
 
               = "XX$teststring") >/dev/null 2>&1 &&
1546
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1547
 
              lt_cv_sys_max_cmd_len=$new_result &&
1548
 
              test $i != 17 # 1/2 MB should be enough
1549
 
      do
1550
 
        i=`expr $i + 1`
1551
 
        teststring=$teststring$teststring
1552
 
      done
1553
 
      teststring=
1554
 
      # Add a significant safety factor because C++ compilers can tack on massive
1555
 
      # amounts of additional arguments before passing them to the linker.
1556
 
      # It appears as though 1/2 is a usable value.
1557
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1558
 
    fi
1559
 
    ;;
1560
 
  esac
1561
 
])
1562
 
if test -n $lt_cv_sys_max_cmd_len ; then
1563
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1564
 
else
1565
 
  AC_MSG_RESULT(none)
1566
 
fi
1567
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1568
 
 
1569
 
 
1570
 
# _LT_AC_CHECK_DLFCN
1571
 
# ------------------
1572
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1573
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1574
 
])# _LT_AC_CHECK_DLFCN
1575
 
 
1576
 
 
1577
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1578
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1579
 
# ---------------------------------------------------------------------
1580
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1581
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1582
 
if test "$cross_compiling" = yes; then :
1583
 
  [$4]
1584
 
else
1585
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1586
 
  lt_status=$lt_dlunknown
1587
 
  cat > conftest.$ac_ext <<EOF
1588
 
[#line __oline__ "configure"
1589
 
#include "confdefs.h"
1590
 
 
1591
 
#if HAVE_DLFCN_H
1592
 
#include <dlfcn.h>
1593
 
#endif
1594
 
 
1595
 
#include <stdio.h>
1596
 
 
1597
 
#ifdef RTLD_GLOBAL
1598
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
1599
 
#else
1600
 
#  ifdef DL_GLOBAL
1601
 
#    define LT_DLGLOBAL         DL_GLOBAL
1602
 
#  else
1603
 
#    define LT_DLGLOBAL         0
1604
 
#  endif
1605
 
#endif
1606
 
 
1607
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1608
 
   find out it does not work in some platform. */
1609
 
#ifndef LT_DLLAZY_OR_NOW
1610
 
#  ifdef RTLD_LAZY
1611
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
1612
 
#  else
1613
 
#    ifdef DL_LAZY
1614
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
1615
 
#    else
1616
 
#      ifdef RTLD_NOW
1617
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
1618
 
#      else
1619
 
#        ifdef DL_NOW
1620
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
1621
 
#        else
1622
 
#          define LT_DLLAZY_OR_NOW      0
1623
 
#        endif
1624
 
#      endif
1625
 
#    endif
1626
 
#  endif
1627
 
#endif
1628
 
 
1629
 
#ifdef __cplusplus
1630
 
extern "C" void exit (int);
1631
 
#endif
1632
 
 
1633
 
void fnord() { int i=42;}
1634
 
int main ()
1635
 
{
1636
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1637
 
  int status = $lt_dlunknown;
1638
 
 
1639
 
  if (self)
1640
 
    {
1641
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1642
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1643
 
      /* dlclose (self); */
1644
 
    }
1645
 
  else
1646
 
    puts (dlerror ());
1647
 
 
1648
 
    exit (status);
1649
 
}]
1650
 
EOF
1651
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1652
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1653
 
    lt_status=$?
1654
 
    case x$lt_status in
1655
 
      x$lt_dlno_uscore) $1 ;;
1656
 
      x$lt_dlneed_uscore) $2 ;;
1657
 
      x$lt_dlunknown|x*) $3 ;;
1658
 
    esac
1659
 
  else :
1660
 
    # compilation failed
1661
 
    $3
1662
 
  fi
1663
 
fi
1664
 
rm -fr conftest*
1665
 
])# _LT_AC_TRY_DLOPEN_SELF
1666
 
 
1667
 
 
1668
 
# AC_LIBTOOL_DLOPEN_SELF
1669
 
# ----------------------
1670
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1671
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1672
 
if test "x$enable_dlopen" != xyes; then
1673
 
  enable_dlopen=unknown
1674
 
  enable_dlopen_self=unknown
1675
 
  enable_dlopen_self_static=unknown
1676
 
else
1677
 
  lt_cv_dlopen=no
1678
 
  lt_cv_dlopen_libs=
1679
 
 
1680
 
  case $host_os in
1681
 
  beos*)
1682
 
    lt_cv_dlopen="load_add_on"
1683
 
    lt_cv_dlopen_libs=
1684
 
    lt_cv_dlopen_self=yes
1685
 
    ;;
1686
 
 
1687
 
  mingw* | pw32*)
1688
 
    lt_cv_dlopen="LoadLibrary"
1689
 
    lt_cv_dlopen_libs=
1690
 
   ;;
1691
 
 
1692
 
  cygwin*)
1693
 
    lt_cv_dlopen="dlopen"
1694
 
    lt_cv_dlopen_libs=
1695
 
   ;;
1696
 
 
1697
 
  darwin*)
1698
 
  # if libdl is installed we need to link against it
1699
 
    AC_CHECK_LIB([dl], [dlopen],
1700
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1701
 
    lt_cv_dlopen="dyld"
1702
 
    lt_cv_dlopen_libs=
1703
 
    lt_cv_dlopen_self=yes
1704
 
    ])
1705
 
   ;;
1706
 
 
1707
 
  *)
1708
 
    AC_CHECK_FUNC([shl_load],
1709
 
          [lt_cv_dlopen="shl_load"],
1710
 
      [AC_CHECK_LIB([dld], [shl_load],
1711
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1712
 
        [AC_CHECK_FUNC([dlopen],
1713
 
              [lt_cv_dlopen="dlopen"],
1714
 
          [AC_CHECK_LIB([dl], [dlopen],
1715
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1716
 
            [AC_CHECK_LIB([svld], [dlopen],
1717
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1718
 
              [AC_CHECK_LIB([dld], [dld_link],
1719
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1720
 
              ])
1721
 
            ])
1722
 
          ])
1723
 
        ])
1724
 
      ])
1725
 
    ;;
1726
 
  esac
1727
 
 
1728
 
  if test "x$lt_cv_dlopen" != xno; then
1729
 
    enable_dlopen=yes
1730
 
  else
1731
 
    enable_dlopen=no
1732
 
  fi
1733
 
 
1734
 
  case $lt_cv_dlopen in
1735
 
  dlopen)
1736
 
    save_CPPFLAGS="$CPPFLAGS"
1737
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1738
 
 
1739
 
    save_LDFLAGS="$LDFLAGS"
1740
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1741
 
 
1742
 
    save_LIBS="$LIBS"
1743
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
1744
 
 
1745
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
1746
 
          lt_cv_dlopen_self, [dnl
1747
 
          _LT_AC_TRY_DLOPEN_SELF(
1748
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1749
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1750
 
    ])
1751
 
 
1752
 
    if test "x$lt_cv_dlopen_self" = xyes; then
1753
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1754
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1755
 
          lt_cv_dlopen_self_static, [dnl
1756
 
          _LT_AC_TRY_DLOPEN_SELF(
1757
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1758
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1759
 
      ])
1760
 
    fi
1761
 
 
1762
 
    CPPFLAGS="$save_CPPFLAGS"
1763
 
    LDFLAGS="$save_LDFLAGS"
1764
 
    LIBS="$save_LIBS"
1765
 
    ;;
1766
 
  esac
1767
 
 
1768
 
  case $lt_cv_dlopen_self in
1769
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1770
 
  *) enable_dlopen_self=unknown ;;
1771
 
  esac
1772
 
 
1773
 
  case $lt_cv_dlopen_self_static in
1774
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1775
 
  *) enable_dlopen_self_static=unknown ;;
1776
 
  esac
1777
 
fi
1778
 
])# AC_LIBTOOL_DLOPEN_SELF
1779
 
 
1780
 
 
1781
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1782
 
# ---------------------------------
1783
 
# Check to see if options -c and -o are simultaneously supported by compiler
1784
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1785
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1786
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1787
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1788
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1789
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1790
 
   $rm -r conftest 2>/dev/null
1791
 
   mkdir conftest
1792
 
   cd conftest
1793
 
   mkdir out
1794
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1795
 
 
1796
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1797
 
   # Insert the option either (1) after the last *FLAGS variable, or
1798
 
   # (2) before a word containing "conftest.", or (3) at the end.
1799
 
   # Note that $ac_compile itself does not contain backslashes and begins
1800
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1801
 
   lt_compile=`echo "$ac_compile" | $SED \
1802
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1803
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1804
 
   -e 's:$: $lt_compiler_flag:'`
1805
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1806
 
   (eval "$lt_compile" 2>out/conftest.err)
1807
 
   ac_status=$?
1808
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1809
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1810
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1811
 
   then
1812
 
     # The compiler can only warn and ignore the option if not recognized
1813
 
     # So say no if there are warnings
1814
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1815
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1816
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1817
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1818
 
     fi
1819
 
   fi
1820
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1821
 
   $rm conftest*
1822
 
   # SGI C++ compiler will create directory out/ii_files/ for
1823
 
   # template instantiation
1824
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1825
 
   $rm out/* && rmdir out
1826
 
   cd ..
1827
 
   rmdir conftest
1828
 
   $rm conftest*
1829
 
])
1830
 
])# AC_LIBTOOL_PROG_CC_C_O
1831
 
 
1832
 
 
1833
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1834
 
# -----------------------------------------
1835
 
# Check to see if we can do hard links to lock some files if needed
1836
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1837
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
1838
 
 
1839
 
hard_links="nottested"
1840
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1841
 
  # do not overwrite the value of need_locks provided by the user
1842
 
  AC_MSG_CHECKING([if we can lock with hard links])
1843
 
  hard_links=yes
1844
 
  $rm conftest*
1845
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1846
 
  touch conftest.a
1847
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
1848
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1849
 
  AC_MSG_RESULT([$hard_links])
1850
 
  if test "$hard_links" = no; then
1851
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1852
 
    need_locks=warn
1853
 
  fi
1854
 
else
1855
 
  need_locks=no
1856
 
fi
1857
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1858
 
 
1859
 
 
1860
 
# AC_LIBTOOL_OBJDIR
1861
 
# -----------------
1862
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1863
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1864
 
[rm -f .libs 2>/dev/null
1865
 
mkdir .libs 2>/dev/null
1866
 
if test -d .libs; then
1867
 
  lt_cv_objdir=.libs
1868
 
else
1869
 
  # MS-DOS does not allow filenames that begin with a dot.
1870
 
  lt_cv_objdir=_libs
1871
 
fi
1872
 
rmdir .libs 2>/dev/null])
1873
 
objdir=$lt_cv_objdir
1874
 
])# AC_LIBTOOL_OBJDIR
1875
 
 
1876
 
 
1877
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1878
 
# ----------------------------------------------
1879
 
# Check hardcoding attributes.
1880
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1881
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1882
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1883
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1884
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1885
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1886
 
 
1887
 
  # We can hardcode non-existant directories.
1888
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1889
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1890
 
     # have to relink, otherwise we might link with an installed library
1891
 
     # when we should be linking with a yet-to-be-installed one
1892
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1893
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1894
 
    # Linking always hardcodes the temporary library directory.
1895
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
1896
 
  else
1897
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1898
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1899
 
  fi
1900
 
else
1901
 
  # We cannot hardcode anything, or else we can only hardcode existing
1902
 
  # directories.
1903
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1904
 
fi
1905
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1906
 
 
1907
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1908
 
  # Fast installation is not supported
1909
 
  enable_fast_install=no
1910
 
elif test "$shlibpath_overrides_runpath" = yes ||
1911
 
     test "$enable_shared" = no; then
1912
 
  # Fast installation is not necessary
1913
 
  enable_fast_install=needless
1914
 
fi
1915
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1916
 
 
1917
 
 
1918
 
# AC_LIBTOOL_SYS_LIB_STRIP
1919
 
# ------------------------
1920
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1921
 
[striplib=
1922
 
old_striplib=
1923
 
AC_MSG_CHECKING([whether stripping libraries is possible])
1924
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1925
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1926
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1927
 
  AC_MSG_RESULT([yes])
1928
 
else
1929
 
# FIXME - insert some real tests, host_os isn't really good enough
1930
 
  case $host_os in
1931
 
   darwin*)
1932
 
       if test -n "$STRIP" ; then
1933
 
         striplib="$STRIP -x"
1934
 
         old_striplib="$STRIP -S"
1935
 
         AC_MSG_RESULT([yes])
1936
 
       else
1937
 
  AC_MSG_RESULT([no])
1938
 
fi
1939
 
       ;;
1940
 
   *)
1941
 
  AC_MSG_RESULT([no])
1942
 
    ;;
1943
 
  esac
1944
 
fi
1945
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1946
 
 
1947
 
 
1948
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1949
 
# -----------------------------
1950
 
# PORTME Fill in your ld.so characteristics
1951
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1952
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1953
 
AC_MSG_CHECKING([dynamic linker characteristics])
1954
 
library_names_spec=
1955
 
libname_spec='lib$name'
1956
 
soname_spec=
1957
 
shrext_cmds=".so"
1958
 
postinstall_cmds=
1959
 
postuninstall_cmds=
1960
 
finish_cmds=
1961
 
finish_eval=
1962
 
shlibpath_var=
1963
 
shlibpath_overrides_runpath=unknown
1964
 
version_type=none
1965
 
dynamic_linker="$host_os ld.so"
1966
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1967
 
m4_if($1,[],[
1968
 
if test "$GCC" = yes; then
1969
 
  case $host_os in
1970
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1971
 
    *) lt_awk_arg="/^libraries:/" ;;
1972
 
  esac
1973
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1974
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1975
 
    # if the path contains ";" then we assume it to be the separator
1976
 
    # otherwise default to the standard path separator (i.e. ":") - it is
1977
 
    # assumed that no part of a normal pathname contains ";" but that should
1978
 
    # okay in the real world where ";" in dirpaths is itself problematic.
1979
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1980
 
  else
1981
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1982
 
  fi
1983
 
  # Ok, now we have the path, separated by spaces, we can step through it
1984
 
  # and add multilib dir if necessary.
1985
 
  lt_tmp_lt_search_path_spec=
1986
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1987
 
  for lt_sys_path in $lt_search_path_spec; do
1988
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1989
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1990
 
    else
1991
 
      test -d "$lt_sys_path" && \
1992
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1993
 
    fi
1994
 
  done
1995
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1996
 
BEGIN {RS=" "; FS="/|\n";} {
1997
 
  lt_foo="";
1998
 
  lt_count=0;
1999
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
2000
 
    if ($lt_i != "" && $lt_i != ".") {
2001
 
      if ($lt_i == "..") {
2002
 
        lt_count++;
2003
 
      } else {
2004
 
        if (lt_count == 0) {
2005
 
          lt_foo="/" $lt_i lt_foo;
2006
 
        } else {
2007
 
          lt_count--;
2008
 
        }
2009
 
      }
2010
 
    }
2011
 
  }
2012
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2013
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2014
 
}'`
2015
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2016
 
else
2017
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2018
 
fi])
2019
 
need_lib_prefix=unknown
2020
 
hardcode_into_libs=no
2021
 
 
2022
 
# when you set need_version to no, make sure it does not cause -set_version
2023
 
# flags to be left without arguments
2024
 
need_version=unknown
2025
 
 
2026
 
case $host_os in
2027
 
aix3*)
2028
 
  version_type=linux
2029
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2030
 
  shlibpath_var=LIBPATH
2031
 
 
2032
 
  # AIX 3 has no versioning support, so we append a major version to the name.
2033
 
  soname_spec='${libname}${release}${shared_ext}$major'
2034
 
  ;;
2035
 
 
2036
 
aix[[4-9]]*)
2037
 
  version_type=linux
2038
 
  need_lib_prefix=no
2039
 
  need_version=no
2040
 
  hardcode_into_libs=yes
2041
 
  if test "$host_cpu" = ia64; then
2042
 
    # AIX 5 supports IA64
2043
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2044
 
    shlibpath_var=LD_LIBRARY_PATH
2045
 
  else
2046
 
    # With GCC up to 2.95.x, collect2 would create an import file
2047
 
    # for dependence libraries.  The import file would start with
2048
 
    # the line `#! .'.  This would cause the generated library to
2049
 
    # depend on `.', always an invalid library.  This was fixed in
2050
 
    # development snapshots of GCC prior to 3.0.
2051
 
    case $host_os in
2052
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2053
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2054
 
           echo ' yes '
2055
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2056
 
        :
2057
 
      else
2058
 
        can_build_shared=no
2059
 
      fi
2060
 
      ;;
2061
 
    esac
2062
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2063
 
    # soname into executable. Probably we can add versioning support to
2064
 
    # collect2, so additional links can be useful in future.
2065
 
    if test "$aix_use_runtimelinking" = yes; then
2066
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2067
 
      # instead of lib<name>.a to let people know that these are not
2068
 
      # typical AIX shared libraries.
2069
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2070
 
    else
2071
 
      # We preserve .a as extension for shared libraries through AIX4.2
2072
 
      # and later when we are not doing run time linking.
2073
 
      library_names_spec='${libname}${release}.a $libname.a'
2074
 
      soname_spec='${libname}${release}${shared_ext}$major'
2075
 
    fi
2076
 
    shlibpath_var=LIBPATH
2077
 
  fi
2078
 
  ;;
2079
 
 
2080
 
amigaos*)
2081
 
  library_names_spec='$libname.ixlibrary $libname.a'
2082
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2083
 
  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'
2084
 
  ;;
2085
 
 
2086
 
beos*)
2087
 
  library_names_spec='${libname}${shared_ext}'
2088
 
  dynamic_linker="$host_os ld.so"
2089
 
  shlibpath_var=LIBRARY_PATH
2090
 
  ;;
2091
 
 
2092
 
bsdi[[45]]*)
2093
 
  version_type=linux
2094
 
  need_version=no
2095
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2096
 
  soname_spec='${libname}${release}${shared_ext}$major'
2097
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2098
 
  shlibpath_var=LD_LIBRARY_PATH
2099
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2100
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2101
 
  # the default ld.so.conf also contains /usr/contrib/lib and
2102
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2103
 
  # libtool to hard-code these into programs
2104
 
  ;;
2105
 
 
2106
 
cygwin* | mingw* | pw32*)
2107
 
  version_type=windows
2108
 
  shrext_cmds=".dll"
2109
 
  need_version=no
2110
 
  need_lib_prefix=no
2111
 
 
2112
 
  case $GCC,$host_os in
2113
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
2114
 
    library_names_spec='$libname.dll.a'
2115
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2116
 
    postinstall_cmds='base_file=`basename \${file}`~
2117
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2118
 
      dldir=$destdir/`dirname \$dlpath`~
2119
 
      test -d \$dldir || mkdir -p \$dldir~
2120
 
      $install_prog $dir/$dlname \$dldir/$dlname~
2121
 
      chmod a+x \$dldir/$dlname'
2122
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2123
 
      dlpath=$dir/\$dldll~
2124
 
       $rm \$dlpath'
2125
 
    shlibpath_overrides_runpath=yes
2126
 
 
2127
 
    case $host_os in
2128
 
    cygwin*)
2129
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2130
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2131
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2132
 
      ;;
2133
 
    mingw*)
2134
 
      # MinGW DLLs use traditional 'lib' prefix
2135
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2136
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2137
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2138
 
        # It is most probably a Windows format PATH printed by
2139
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2140
 
        # path with ; separators, and with drive letters. We can handle the
2141
 
        # drive letters (cygwin fileutils understands them), so leave them,
2142
 
        # especially as we might pass files found there to a mingw objdump,
2143
 
        # which wouldn't understand a cygwinified path. Ahh.
2144
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2145
 
      else
2146
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2147
 
      fi
2148
 
      ;;
2149
 
    pw32*)
2150
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2151
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2152
 
      ;;
2153
 
    esac
2154
 
    ;;
2155
 
 
2156
 
  *)
2157
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2158
 
    ;;
2159
 
  esac
2160
 
  dynamic_linker='Win32 ld.exe'
2161
 
  # FIXME: first we should search . and the directory the executable is in
2162
 
  shlibpath_var=PATH
2163
 
  ;;
2164
 
 
2165
 
darwin* | rhapsody*)
2166
 
  dynamic_linker="$host_os dyld"
2167
 
  version_type=darwin
2168
 
  need_lib_prefix=no
2169
 
  need_version=no
2170
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2171
 
  soname_spec='${libname}${release}${major}$shared_ext'
2172
 
  shlibpath_overrides_runpath=yes
2173
 
  shlibpath_var=DYLD_LIBRARY_PATH
2174
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2175
 
  m4_if([$1], [],[
2176
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2177
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2178
 
  ;;
2179
 
 
2180
 
dgux*)
2181
 
  version_type=linux
2182
 
  need_lib_prefix=no
2183
 
  need_version=no
2184
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2185
 
  soname_spec='${libname}${release}${shared_ext}$major'
2186
 
  shlibpath_var=LD_LIBRARY_PATH
2187
 
  ;;
2188
 
 
2189
 
freebsd1*)
2190
 
  dynamic_linker=no
2191
 
  ;;
2192
 
 
2193
 
freebsd* | dragonfly*)
2194
 
  # DragonFly does not have aout.  When/if they implement a new
2195
 
  # versioning mechanism, adjust this.
2196
 
  if test -x /usr/bin/objformat; then
2197
 
    objformat=`/usr/bin/objformat`
2198
 
  else
2199
 
    case $host_os in
2200
 
    freebsd[[123]]*) objformat=aout ;;
2201
 
    *) objformat=elf ;;
2202
 
    esac
2203
 
  fi
2204
 
  version_type=freebsd-$objformat
2205
 
  case $version_type in
2206
 
    freebsd-elf*)
2207
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2208
 
      need_version=no
2209
 
      need_lib_prefix=no
2210
 
      ;;
2211
 
    freebsd-*)
2212
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2213
 
      need_version=yes
2214
 
      ;;
2215
 
  esac
2216
 
  shlibpath_var=LD_LIBRARY_PATH
2217
 
  case $host_os in
2218
 
  freebsd2*)
2219
 
    shlibpath_overrides_runpath=yes
2220
 
    ;;
2221
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2222
 
    shlibpath_overrides_runpath=yes
2223
 
    hardcode_into_libs=yes
2224
 
    ;;
2225
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2226
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2227
 
    shlibpath_overrides_runpath=no
2228
 
    hardcode_into_libs=yes
2229
 
    ;;
2230
 
  *) # from 4.6 on, and DragonFly
2231
 
    shlibpath_overrides_runpath=yes
2232
 
    hardcode_into_libs=yes
2233
 
    ;;
2234
 
  esac
2235
 
  ;;
2236
 
 
2237
 
gnu*)
2238
 
  version_type=linux
2239
 
  need_lib_prefix=no
2240
 
  need_version=no
2241
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2242
 
  soname_spec='${libname}${release}${shared_ext}$major'
2243
 
  shlibpath_var=LD_LIBRARY_PATH
2244
 
  hardcode_into_libs=yes
2245
 
  ;;
2246
 
 
2247
 
hpux9* | hpux10* | hpux11*)
2248
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
2249
 
  # link against other versions.
2250
 
  version_type=sunos
2251
 
  need_lib_prefix=no
2252
 
  need_version=no
2253
 
  case $host_cpu in
2254
 
  ia64*)
2255
 
    shrext_cmds='.so'
2256
 
    hardcode_into_libs=yes
2257
 
    dynamic_linker="$host_os dld.so"
2258
 
    shlibpath_var=LD_LIBRARY_PATH
2259
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2260
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2261
 
    soname_spec='${libname}${release}${shared_ext}$major'
2262
 
    if test "X$HPUX_IA64_MODE" = X32; then
2263
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2264
 
    else
2265
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2266
 
    fi
2267
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2268
 
    ;;
2269
 
   hppa*64*)
2270
 
     shrext_cmds='.sl'
2271
 
     hardcode_into_libs=yes
2272
 
     dynamic_linker="$host_os dld.sl"
2273
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2274
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2275
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2276
 
     soname_spec='${libname}${release}${shared_ext}$major'
2277
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2278
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2279
 
     ;;
2280
 
   *)
2281
 
    shrext_cmds='.sl'
2282
 
    dynamic_linker="$host_os dld.sl"
2283
 
    shlibpath_var=SHLIB_PATH
2284
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2285
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2286
 
    soname_spec='${libname}${release}${shared_ext}$major'
2287
 
    ;;
2288
 
  esac
2289
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2290
 
  postinstall_cmds='chmod 555 $lib'
2291
 
  ;;
2292
 
 
2293
 
interix[[3-9]]*)
2294
 
  version_type=linux
2295
 
  need_lib_prefix=no
2296
 
  need_version=no
2297
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2298
 
  soname_spec='${libname}${release}${shared_ext}$major'
2299
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2300
 
  shlibpath_var=LD_LIBRARY_PATH
2301
 
  shlibpath_overrides_runpath=no
2302
 
  hardcode_into_libs=yes
2303
 
  ;;
2304
 
 
2305
 
irix5* | irix6* | nonstopux*)
2306
 
  case $host_os in
2307
 
    nonstopux*) version_type=nonstopux ;;
2308
 
    *)
2309
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
2310
 
                version_type=linux
2311
 
        else
2312
 
                version_type=irix
2313
 
        fi ;;
2314
 
  esac
2315
 
  need_lib_prefix=no
2316
 
  need_version=no
2317
 
  soname_spec='${libname}${release}${shared_ext}$major'
2318
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2319
 
  case $host_os in
2320
 
  irix5* | nonstopux*)
2321
 
    libsuff= shlibsuff=
2322
 
    ;;
2323
 
  *)
2324
 
    case $LD in # libtool.m4 will add one of these switches to LD
2325
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2326
 
      libsuff= shlibsuff= libmagic=32-bit;;
2327
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2328
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2329
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2330
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2331
 
    *) libsuff= shlibsuff= libmagic=never-match;;
2332
 
    esac
2333
 
    ;;
2334
 
  esac
2335
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2336
 
  shlibpath_overrides_runpath=no
2337
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2338
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2339
 
  hardcode_into_libs=yes
2340
 
  ;;
2341
 
 
2342
 
# No shared lib support for Linux oldld, aout, or coff.
2343
 
linux*oldld* | linux*aout* | linux*coff*)
2344
 
  dynamic_linker=no
2345
 
  ;;
2346
 
 
2347
 
# This must be Linux ELF.
2348
 
linux* | k*bsd*-gnu)
2349
 
  version_type=linux
2350
 
  need_lib_prefix=no
2351
 
  need_version=no
2352
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2353
 
  soname_spec='${libname}${release}${shared_ext}$major'
2354
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2355
 
  shlibpath_var=LD_LIBRARY_PATH
2356
 
  shlibpath_overrides_runpath=no
2357
 
  # This implies no fast_install, which is unacceptable.
2358
 
  # Some rework will be needed to allow for fast_install
2359
 
  # before this can be enabled.
2360
 
  hardcode_into_libs=yes
2361
 
 
2362
 
  # Append ld.so.conf contents to the search path
2363
 
  if test -f /etc/ld.so.conf; then
2364
 
    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' ' '`
2365
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2366
 
  fi
2367
 
 
2368
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2369
 
  # powerpc, because MkLinux only supported shared libraries with the
2370
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
2371
 
  # most powerpc-linux boxes support dynamic linking these days and
2372
 
  # people can always --disable-shared, the test was removed, and we
2373
 
  # assume the GNU/Linux dynamic linker is in use.
2374
 
  dynamic_linker='GNU/Linux ld.so'
2375
 
  ;;
2376
 
 
2377
 
netbsdelf*-gnu)
2378
 
  version_type=linux
2379
 
  need_lib_prefix=no
2380
 
  need_version=no
2381
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2382
 
  soname_spec='${libname}${release}${shared_ext}$major'
2383
 
  shlibpath_var=LD_LIBRARY_PATH
2384
 
  shlibpath_overrides_runpath=no
2385
 
  hardcode_into_libs=yes
2386
 
  dynamic_linker='NetBSD ld.elf_so'
2387
 
  ;;
2388
 
 
2389
 
netbsd*)
2390
 
  version_type=sunos
2391
 
  need_lib_prefix=no
2392
 
  need_version=no
2393
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2394
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2395
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2396
 
    dynamic_linker='NetBSD (a.out) ld.so'
2397
 
  else
2398
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2399
 
    soname_spec='${libname}${release}${shared_ext}$major'
2400
 
    dynamic_linker='NetBSD ld.elf_so'
2401
 
  fi
2402
 
  shlibpath_var=LD_LIBRARY_PATH
2403
 
  shlibpath_overrides_runpath=yes
2404
 
  hardcode_into_libs=yes
2405
 
  ;;
2406
 
 
2407
 
newsos6)
2408
 
  version_type=linux
2409
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2410
 
  shlibpath_var=LD_LIBRARY_PATH
2411
 
  shlibpath_overrides_runpath=yes
2412
 
  ;;
2413
 
 
2414
 
nto-qnx*)
2415
 
  version_type=linux
2416
 
  need_lib_prefix=no
2417
 
  need_version=no
2418
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2419
 
  soname_spec='${libname}${release}${shared_ext}$major'
2420
 
  shlibpath_var=LD_LIBRARY_PATH
2421
 
  shlibpath_overrides_runpath=yes
2422
 
  ;;
2423
 
 
2424
 
openbsd*)
2425
 
  version_type=sunos
2426
 
  sys_lib_dlsearch_path_spec="/usr/lib"
2427
 
  need_lib_prefix=no
2428
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2429
 
  case $host_os in
2430
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2431
 
    *)                         need_version=no  ;;
2432
 
  esac
2433
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2434
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2435
 
  shlibpath_var=LD_LIBRARY_PATH
2436
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2437
 
    case $host_os in
2438
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
2439
 
        shlibpath_overrides_runpath=no
2440
 
        ;;
2441
 
      *)
2442
 
        shlibpath_overrides_runpath=yes
2443
 
        ;;
2444
 
      esac
2445
 
  else
2446
 
    shlibpath_overrides_runpath=yes
2447
 
  fi
2448
 
  ;;
2449
 
 
2450
 
os2*)
2451
 
  libname_spec='$name'
2452
 
  shrext_cmds=".dll"
2453
 
  need_lib_prefix=no
2454
 
  library_names_spec='$libname${shared_ext} $libname.a'
2455
 
  dynamic_linker='OS/2 ld.exe'
2456
 
  shlibpath_var=LIBPATH
2457
 
  ;;
2458
 
 
2459
 
osf3* | osf4* | osf5*)
2460
 
  version_type=osf
2461
 
  need_lib_prefix=no
2462
 
  need_version=no
2463
 
  soname_spec='${libname}${release}${shared_ext}$major'
2464
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2465
 
  shlibpath_var=LD_LIBRARY_PATH
2466
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2467
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2468
 
  ;;
2469
 
 
2470
 
rdos*)
2471
 
  dynamic_linker=no
2472
 
  ;;
2473
 
 
2474
 
solaris*)
2475
 
  version_type=linux
2476
 
  need_lib_prefix=no
2477
 
  need_version=no
2478
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2479
 
  soname_spec='${libname}${release}${shared_ext}$major'
2480
 
  shlibpath_var=LD_LIBRARY_PATH
2481
 
  shlibpath_overrides_runpath=yes
2482
 
  hardcode_into_libs=yes
2483
 
  # ldd complains unless libraries are executable
2484
 
  postinstall_cmds='chmod +x $lib'
2485
 
  ;;
2486
 
 
2487
 
sunos4*)
2488
 
  version_type=sunos
2489
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2490
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2491
 
  shlibpath_var=LD_LIBRARY_PATH
2492
 
  shlibpath_overrides_runpath=yes
2493
 
  if test "$with_gnu_ld" = yes; then
2494
 
    need_lib_prefix=no
2495
 
  fi
2496
 
  need_version=yes
2497
 
  ;;
2498
 
 
2499
 
sysv4 | sysv4.3*)
2500
 
  version_type=linux
2501
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2502
 
  soname_spec='${libname}${release}${shared_ext}$major'
2503
 
  shlibpath_var=LD_LIBRARY_PATH
2504
 
  case $host_vendor in
2505
 
    sni)
2506
 
      shlibpath_overrides_runpath=no
2507
 
      need_lib_prefix=no
2508
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2509
 
      runpath_var=LD_RUN_PATH
2510
 
      ;;
2511
 
    siemens)
2512
 
      need_lib_prefix=no
2513
 
      ;;
2514
 
    motorola)
2515
 
      need_lib_prefix=no
2516
 
      need_version=no
2517
 
      shlibpath_overrides_runpath=no
2518
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2519
 
      ;;
2520
 
  esac
2521
 
  ;;
2522
 
 
2523
 
sysv4*MP*)
2524
 
  if test -d /usr/nec ;then
2525
 
    version_type=linux
2526
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2527
 
    soname_spec='$libname${shared_ext}.$major'
2528
 
    shlibpath_var=LD_LIBRARY_PATH
2529
 
  fi
2530
 
  ;;
2531
 
 
2532
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2533
 
  version_type=freebsd-elf
2534
 
  need_lib_prefix=no
2535
 
  need_version=no
2536
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2537
 
  soname_spec='${libname}${release}${shared_ext}$major'
2538
 
  shlibpath_var=LD_LIBRARY_PATH
2539
 
  hardcode_into_libs=yes
2540
 
  if test "$with_gnu_ld" = yes; then
2541
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2542
 
    shlibpath_overrides_runpath=no
2543
 
  else
2544
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2545
 
    shlibpath_overrides_runpath=yes
2546
 
    case $host_os in
2547
 
      sco3.2v5*)
2548
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2549
 
        ;;
2550
 
    esac
2551
 
  fi
2552
 
  sys_lib_dlsearch_path_spec='/usr/lib'
2553
 
  ;;
2554
 
 
2555
 
uts4*)
2556
 
  version_type=linux
2557
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558
 
  soname_spec='${libname}${release}${shared_ext}$major'
2559
 
  shlibpath_var=LD_LIBRARY_PATH
2560
 
  ;;
2561
 
 
2562
 
*)
2563
 
  dynamic_linker=no
2564
 
  ;;
2565
 
esac
2566
 
AC_MSG_RESULT([$dynamic_linker])
2567
 
test "$dynamic_linker" = no && can_build_shared=no
2568
 
 
2569
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2570
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2571
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2572
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2573
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2574
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2575
 
 
2576
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2577
 
if test "$GCC" = yes; then
2578
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2579
 
fi
2580
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2581
 
 
2582
 
 
2583
 
# _LT_AC_TAGCONFIG
2584
 
# ----------------
2585
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2586
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2587
 
AC_ARG_WITH([tags],
2588
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2589
 
        [include additional configurations @<:@automatic@:>@])],
2590
 
    [tagnames="$withval"])
2591
 
 
2592
 
if test -f "$ltmain" && test -n "$tagnames"; then
2593
 
  if test ! -f "${ofile}"; then
2594
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2595
 
  fi
2596
 
 
2597
 
  if test -z "$LTCC"; then
2598
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2599
 
    if test -z "$LTCC"; then
2600
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2601
 
    else
2602
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2603
 
    fi
2604
 
  fi
2605
 
  if test -z "$LTCFLAGS"; then
2606
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2607
 
  fi
2608
 
 
2609
 
  # Extract list of available tagged configurations in $ofile.
2610
 
  # Note that this assumes the entire list is on one line.
2611
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2612
 
 
2613
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614
 
  for tagname in $tagnames; do
2615
 
    IFS="$lt_save_ifs"
2616
 
    # Check whether tagname contains only valid characters
2617
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2618
 
    "") ;;
2619
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2620
 
        ;;
2621
 
    esac
2622
 
 
2623
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2624
 
    then
2625
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2626
 
    fi
2627
 
 
2628
 
    # Update the list of available tags.
2629
 
    if test -n "$tagname"; then
2630
 
      echo appending configuration tag \"$tagname\" to $ofile
2631
 
 
2632
 
      case $tagname in
2633
 
      CXX)
2634
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2635
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2636
 
            (test "X$CXX" != "Xg++"))) ; then
2637
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2638
 
        else
2639
 
          tagname=""
2640
 
        fi
2641
 
        ;;
2642
 
 
2643
 
      F77)
2644
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2645
 
          AC_LIBTOOL_LANG_F77_CONFIG
2646
 
        else
2647
 
          tagname=""
2648
 
        fi
2649
 
        ;;
2650
 
 
2651
 
      GCJ)
2652
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2653
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2654
 
        else
2655
 
          tagname=""
2656
 
        fi
2657
 
        ;;
2658
 
 
2659
 
      RC)
2660
 
        AC_LIBTOOL_LANG_RC_CONFIG
2661
 
        ;;
2662
 
 
2663
 
      *)
2664
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2665
 
        ;;
2666
 
      esac
2667
 
 
2668
 
      # Append the new tag name to the list of available tags.
2669
 
      if test -n "$tagname" ; then
2670
 
      available_tags="$available_tags $tagname"
2671
 
    fi
2672
 
    fi
2673
 
  done
2674
 
  IFS="$lt_save_ifs"
2675
 
 
2676
 
  # Now substitute the updated list of available tags.
2677
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2678
 
    mv "${ofile}T" "$ofile"
2679
 
    chmod +x "$ofile"
2680
 
  else
2681
 
    rm -f "${ofile}T"
2682
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2683
 
  fi
2684
 
fi
2685
 
])# _LT_AC_TAGCONFIG
2686
 
 
2687
 
 
2688
 
# AC_LIBTOOL_DLOPEN
2689
 
# -----------------
2690
 
# enable checks for dlopen support
2691
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2692
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2693
 
])# AC_LIBTOOL_DLOPEN
2694
 
 
2695
 
 
2696
 
# AC_LIBTOOL_WIN32_DLL
2697
 
# --------------------
2698
 
# declare package support for building win32 DLLs
2699
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2700
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2701
 
])# AC_LIBTOOL_WIN32_DLL
2702
 
 
2703
 
 
2704
 
# AC_ENABLE_SHARED([DEFAULT])
2705
 
# ---------------------------
2706
 
# implement the --enable-shared flag
2707
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2708
 
AC_DEFUN([AC_ENABLE_SHARED],
2709
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2710
 
AC_ARG_ENABLE([shared],
2711
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2712
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2713
 
    [p=${PACKAGE-default}
2714
 
    case $enableval in
2715
 
    yes) enable_shared=yes ;;
2716
 
    no) enable_shared=no ;;
2717
 
    *)
2718
 
      enable_shared=no
2719
 
      # Look at the argument we got.  We use all the common list separators.
2720
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2721
 
      for pkg in $enableval; do
2722
 
        IFS="$lt_save_ifs"
2723
 
        if test "X$pkg" = "X$p"; then
2724
 
          enable_shared=yes
2725
 
        fi
2726
 
      done
2727
 
      IFS="$lt_save_ifs"
2728
 
      ;;
2729
 
    esac],
2730
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2731
 
])# AC_ENABLE_SHARED
2732
 
 
2733
 
 
2734
 
# AC_DISABLE_SHARED
2735
 
# -----------------
2736
 
# set the default shared flag to --disable-shared
2737
 
AC_DEFUN([AC_DISABLE_SHARED],
2738
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2739
 
AC_ENABLE_SHARED(no)
2740
 
])# AC_DISABLE_SHARED
2741
 
 
2742
 
 
2743
 
# AC_ENABLE_STATIC([DEFAULT])
2744
 
# ---------------------------
2745
 
# implement the --enable-static flag
2746
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2747
 
AC_DEFUN([AC_ENABLE_STATIC],
2748
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2749
 
AC_ARG_ENABLE([static],
2750
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2751
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2752
 
    [p=${PACKAGE-default}
2753
 
    case $enableval in
2754
 
    yes) enable_static=yes ;;
2755
 
    no) enable_static=no ;;
2756
 
    *)
2757
 
     enable_static=no
2758
 
      # Look at the argument we got.  We use all the common list separators.
2759
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2760
 
      for pkg in $enableval; do
2761
 
        IFS="$lt_save_ifs"
2762
 
        if test "X$pkg" = "X$p"; then
2763
 
          enable_static=yes
2764
 
        fi
2765
 
      done
2766
 
      IFS="$lt_save_ifs"
2767
 
      ;;
2768
 
    esac],
2769
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2770
 
])# AC_ENABLE_STATIC
2771
 
 
2772
 
 
2773
 
# AC_DISABLE_STATIC
2774
 
# -----------------
2775
 
# set the default static flag to --disable-static
2776
 
AC_DEFUN([AC_DISABLE_STATIC],
2777
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2778
 
AC_ENABLE_STATIC(no)
2779
 
])# AC_DISABLE_STATIC
2780
 
 
2781
 
 
2782
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2783
 
# ---------------------------------
2784
 
# implement the --enable-fast-install flag
2785
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2786
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2787
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2788
 
AC_ARG_ENABLE([fast-install],
2789
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2790
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2791
 
    [p=${PACKAGE-default}
2792
 
    case $enableval in
2793
 
    yes) enable_fast_install=yes ;;
2794
 
    no) enable_fast_install=no ;;
2795
 
    *)
2796
 
      enable_fast_install=no
2797
 
      # Look at the argument we got.  We use all the common list separators.
2798
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2799
 
      for pkg in $enableval; do
2800
 
        IFS="$lt_save_ifs"
2801
 
        if test "X$pkg" = "X$p"; then
2802
 
          enable_fast_install=yes
2803
 
        fi
2804
 
      done
2805
 
      IFS="$lt_save_ifs"
2806
 
      ;;
2807
 
    esac],
2808
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2809
 
])# AC_ENABLE_FAST_INSTALL
2810
 
 
2811
 
 
2812
 
# AC_DISABLE_FAST_INSTALL
2813
 
# -----------------------
2814
 
# set the default to --disable-fast-install
2815
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2816
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2817
 
AC_ENABLE_FAST_INSTALL(no)
2818
 
])# AC_DISABLE_FAST_INSTALL
2819
 
 
2820
 
 
2821
 
# AC_LIBTOOL_PICMODE([MODE])
2822
 
# --------------------------
2823
 
# implement the --with-pic flag
2824
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2825
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2826
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2827
 
pic_mode=ifelse($#,1,$1,default)
2828
 
])# AC_LIBTOOL_PICMODE
2829
 
 
2830
 
 
2831
 
# AC_PROG_EGREP
2832
 
# -------------
2833
 
# This is predefined starting with Autoconf 2.54, so this conditional
2834
 
# definition can be removed once we require Autoconf 2.54 or later.
2835
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2836
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2837
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2838
 
    then ac_cv_prog_egrep='grep -E'
2839
 
    else ac_cv_prog_egrep='egrep'
2840
 
    fi])
2841
 
 EGREP=$ac_cv_prog_egrep
2842
 
 AC_SUBST([EGREP])
2843
 
])])
2844
 
 
2845
 
 
2846
 
# AC_PATH_TOOL_PREFIX
2847
 
# -------------------
2848
 
# find a file program which can recognize shared library
2849
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2850
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2851
 
AC_MSG_CHECKING([for $1])
2852
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2853
 
[case $MAGIC_CMD in
2854
 
[[\\/*] |  ?:[\\/]*])
2855
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2856
 
  ;;
2857
 
*)
2858
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
2859
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2860
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
2861
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
2862
 
dnl not every word.  This closes a longstanding sh security hole.
2863
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
2864
 
  for ac_dir in $ac_dummy; do
2865
 
    IFS="$lt_save_ifs"
2866
 
    test -z "$ac_dir" && ac_dir=.
2867
 
    if test -f $ac_dir/$1; then
2868
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2869
 
      if test -n "$file_magic_test_file"; then
2870
 
        case $deplibs_check_method in
2871
 
        "file_magic "*)
2872
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2873
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2874
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2875
 
            $EGREP "$file_magic_regex" > /dev/null; then
2876
 
            :
2877
 
          else
2878
 
            cat <<EOF 1>&2
2879
 
 
2880
 
*** Warning: the command libtool uses to detect shared libraries,
2881
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
2882
 
*** The result is that libtool may fail to recognize shared libraries
2883
 
*** as such.  This will affect the creation of libtool libraries that
2884
 
*** depend on shared libraries, but programs linked with such libtool
2885
 
*** libraries will work regardless of this problem.  Nevertheless, you
2886
 
*** may want to report the problem to your system manager and/or to
2887
 
*** bug-libtool@gnu.org
2888
 
 
2889
 
EOF
2890
 
          fi ;;
2891
 
        esac
2892
 
      fi
2893
 
      break
2894
 
    fi
2895
 
  done
2896
 
  IFS="$lt_save_ifs"
2897
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
2898
 
  ;;
2899
 
esac])
2900
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2901
 
if test -n "$MAGIC_CMD"; then
2902
 
  AC_MSG_RESULT($MAGIC_CMD)
2903
 
else
2904
 
  AC_MSG_RESULT(no)
2905
 
fi
2906
 
])# AC_PATH_TOOL_PREFIX
2907
 
 
2908
 
 
2909
 
# AC_PATH_MAGIC
2910
 
# -------------
2911
 
# find a file program which can recognize a shared library
2912
 
AC_DEFUN([AC_PATH_MAGIC],
2913
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2914
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
2915
 
  if test -n "$ac_tool_prefix"; then
2916
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2917
 
  else
2918
 
    MAGIC_CMD=:
2919
 
  fi
2920
 
fi
2921
 
])# AC_PATH_MAGIC
2922
 
 
2923
 
 
2924
 
# AC_PROG_LD
2925
 
# ----------
2926
 
# find the pathname to the GNU or non-GNU linker
2927
 
AC_DEFUN([AC_PROG_LD],
2928
 
[AC_ARG_WITH([gnu-ld],
2929
 
    [AC_HELP_STRING([--with-gnu-ld],
2930
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2931
 
    [test "$withval" = no || with_gnu_ld=yes],
2932
 
    [with_gnu_ld=no])
2933
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2934
 
AC_REQUIRE([AC_PROG_CC])dnl
2935
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2936
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2937
 
ac_prog=ld
2938
 
if test "$GCC" = yes; then
2939
 
  # Check if gcc -print-prog-name=ld gives a path.
2940
 
  AC_MSG_CHECKING([for ld used by $CC])
2941
 
  case $host in
2942
 
  *-*-mingw*)
2943
 
    # gcc leaves a trailing carriage return which upsets mingw
2944
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2945
 
  *)
2946
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2947
 
  esac
2948
 
  case $ac_prog in
2949
 
    # Accept absolute paths.
2950
 
    [[\\/]]* | ?:[[\\/]]*)
2951
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
2952
 
      # Canonicalize the pathname of ld
2953
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2954
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2955
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2956
 
      done
2957
 
      test -z "$LD" && LD="$ac_prog"
2958
 
      ;;
2959
 
  "")
2960
 
    # If it fails, then pretend we aren't using GCC.
2961
 
    ac_prog=ld
2962
 
    ;;
2963
 
  *)
2964
 
    # If it is relative, then search for the first ld in PATH.
2965
 
    with_gnu_ld=unknown
2966
 
    ;;
2967
 
  esac
2968
 
elif test "$with_gnu_ld" = yes; then
2969
 
  AC_MSG_CHECKING([for GNU ld])
2970
 
else
2971
 
  AC_MSG_CHECKING([for non-GNU ld])
2972
 
fi
2973
 
AC_CACHE_VAL(lt_cv_path_LD,
2974
 
[if test -z "$LD"; then
2975
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2976
 
  for ac_dir in $PATH; do
2977
 
    IFS="$lt_save_ifs"
2978
 
    test -z "$ac_dir" && ac_dir=.
2979
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2980
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
2981
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
2982
 
      # but apparently some variants of GNU ld only accept -v.
2983
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
2984
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2985
 
      *GNU* | *'with BFD'*)
2986
 
        test "$with_gnu_ld" != no && break
2987
 
        ;;
2988
 
      *)
2989
 
        test "$with_gnu_ld" != yes && break
2990
 
        ;;
2991
 
      esac
2992
 
    fi
2993
 
  done
2994
 
  IFS="$lt_save_ifs"
2995
 
else
2996
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2997
 
fi])
2998
 
LD="$lt_cv_path_LD"
2999
 
if test -n "$LD"; then
3000
 
  AC_MSG_RESULT($LD)
3001
 
else
3002
 
  AC_MSG_RESULT(no)
3003
 
fi
3004
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3005
 
AC_PROG_LD_GNU
3006
 
])# AC_PROG_LD
3007
 
 
3008
 
 
3009
 
# AC_PROG_LD_GNU
3010
 
# --------------
3011
 
AC_DEFUN([AC_PROG_LD_GNU],
3012
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3013
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3014
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3015
 
case `$LD -v 2>&1 </dev/null` in
3016
 
*GNU* | *'with BFD'*)
3017
 
  lt_cv_prog_gnu_ld=yes
3018
 
  ;;
3019
 
*)
3020
 
  lt_cv_prog_gnu_ld=no
3021
 
  ;;
3022
 
esac])
3023
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3024
 
])# AC_PROG_LD_GNU
3025
 
 
3026
 
 
3027
 
# AC_PROG_LD_RELOAD_FLAG
3028
 
# ----------------------
3029
 
# find reload flag for linker
3030
 
#   -- PORTME Some linkers may need a different reload flag.
3031
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3032
 
[AC_CACHE_CHECK([for $LD option to reload object files],
3033
 
  lt_cv_ld_reload_flag,
3034
 
  [lt_cv_ld_reload_flag='-r'])
3035
 
reload_flag=$lt_cv_ld_reload_flag
3036
 
case $reload_flag in
3037
 
"" | " "*) ;;
3038
 
*) reload_flag=" $reload_flag" ;;
3039
 
esac
3040
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3041
 
case $host_os in
3042
 
  darwin*)
3043
 
    if test "$GCC" = yes; then
3044
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3045
 
    else
3046
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3047
 
    fi
3048
 
    ;;
3049
 
esac
3050
 
])# AC_PROG_LD_RELOAD_FLAG
3051
 
 
3052
 
 
3053
 
# AC_DEPLIBS_CHECK_METHOD
3054
 
# -----------------------
3055
 
# how to check for library dependencies
3056
 
#  -- PORTME fill in with the dynamic library characteristics
3057
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3058
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
3059
 
lt_cv_deplibs_check_method,
3060
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3061
 
lt_cv_file_magic_test_file=
3062
 
lt_cv_deplibs_check_method='unknown'
3063
 
# Need to set the preceding variable on all platforms that support
3064
 
# interlibrary dependencies.
3065
 
# 'none' -- dependencies not supported.
3066
 
# `unknown' -- same as none, but documents that we really don't know.
3067
 
# 'pass_all' -- all dependencies passed with no checks.
3068
 
# 'test_compile' -- check by making test program.
3069
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3070
 
# which responds to the $file_magic_cmd with a given extended regex.
3071
 
# If you have `file' or equivalent on your system and you're not sure
3072
 
# whether `pass_all' will *always* work, you probably want this one.
3073
 
 
3074
 
case $host_os in
3075
 
aix[[4-9]]*)
3076
 
  lt_cv_deplibs_check_method=pass_all
3077
 
  ;;
3078
 
 
3079
 
beos*)
3080
 
  lt_cv_deplibs_check_method=pass_all
3081
 
  ;;
3082
 
 
3083
 
bsdi[[45]]*)
3084
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3085
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3086
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3087
 
  ;;
3088
 
 
3089
 
cygwin*)
3090
 
  # func_win32_libid is a shell function defined in ltmain.sh
3091
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3092
 
  lt_cv_file_magic_cmd='func_win32_libid'
3093
 
  ;;
3094
 
 
3095
 
mingw* | pw32*)
3096
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
3097
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3098
 
  # unless we find 'file', for example because we are cross-compiling.
3099
 
  if ( file / ) >/dev/null 2>&1; then
3100
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3101
 
    lt_cv_file_magic_cmd='func_win32_libid'
3102
 
  else
3103
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3104
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3105
 
  fi
3106
 
  ;;
3107
 
 
3108
 
darwin* | rhapsody*)
3109
 
  lt_cv_deplibs_check_method=pass_all
3110
 
  ;;
3111
 
 
3112
 
freebsd* | dragonfly*)
3113
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3114
 
    case $host_cpu in
3115
 
    i*86 )
3116
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3117
 
      # Let's accept both of them until this is cleared up.
3118
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3119
 
      lt_cv_file_magic_cmd=/usr/bin/file
3120
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3121
 
      ;;
3122
 
    esac
3123
 
  else
3124
 
    lt_cv_deplibs_check_method=pass_all
3125
 
  fi
3126
 
  ;;
3127
 
 
3128
 
gnu*)
3129
 
  lt_cv_deplibs_check_method=pass_all
3130
 
  ;;
3131
 
 
3132
 
hpux10.20* | hpux11*)
3133
 
  lt_cv_file_magic_cmd=/usr/bin/file
3134
 
  case $host_cpu in
3135
 
  ia64*)
3136
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3137
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3138
 
    ;;
3139
 
  hppa*64*)
3140
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3141
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3142
 
    ;;
3143
 
  *)
3144
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3145
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3146
 
    ;;
3147
 
  esac
3148
 
  ;;
3149
 
 
3150
 
interix[[3-9]]*)
3151
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3152
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3153
 
  ;;
3154
 
 
3155
 
irix5* | irix6* | nonstopux*)
3156
 
  case $LD in
3157
 
  *-32|*"-32 ") libmagic=32-bit;;
3158
 
  *-n32|*"-n32 ") libmagic=N32;;
3159
 
  *-64|*"-64 ") libmagic=64-bit;;
3160
 
  *) libmagic=never-match;;
3161
 
  esac
3162
 
  lt_cv_deplibs_check_method=pass_all
3163
 
  ;;
3164
 
 
3165
 
# This must be Linux ELF.
3166
 
linux* | k*bsd*-gnu)
3167
 
  lt_cv_deplibs_check_method=pass_all
3168
 
  ;;
3169
 
 
3170
 
netbsd* | netbsdelf*-gnu)
3171
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3172
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3173
 
  else
3174
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3175
 
  fi
3176
 
  ;;
3177
 
 
3178
 
newos6*)
3179
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3180
 
  lt_cv_file_magic_cmd=/usr/bin/file
3181
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3182
 
  ;;
3183
 
 
3184
 
nto-qnx*)
3185
 
  lt_cv_deplibs_check_method=unknown
3186
 
  ;;
3187
 
 
3188
 
openbsd*)
3189
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3190
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3191
 
  else
3192
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3193
 
  fi
3194
 
  ;;
3195
 
 
3196
 
osf3* | osf4* | osf5*)
3197
 
  lt_cv_deplibs_check_method=pass_all
3198
 
  ;;
3199
 
 
3200
 
rdos*)
3201
 
  lt_cv_deplibs_check_method=pass_all
3202
 
  ;;
3203
 
 
3204
 
solaris*)
3205
 
  lt_cv_deplibs_check_method=pass_all
3206
 
  ;;
3207
 
 
3208
 
sysv4 | sysv4.3*)
3209
 
  case $host_vendor in
3210
 
  motorola)
3211
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3212
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3213
 
    ;;
3214
 
  ncr)
3215
 
    lt_cv_deplibs_check_method=pass_all
3216
 
    ;;
3217
 
  sequent)
3218
 
    lt_cv_file_magic_cmd='/bin/file'
3219
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3220
 
    ;;
3221
 
  sni)
3222
 
    lt_cv_file_magic_cmd='/bin/file'
3223
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3224
 
    lt_cv_file_magic_test_file=/lib/libc.so
3225
 
    ;;
3226
 
  siemens)
3227
 
    lt_cv_deplibs_check_method=pass_all
3228
 
    ;;
3229
 
  pc)
3230
 
    lt_cv_deplibs_check_method=pass_all
3231
 
    ;;
3232
 
  esac
3233
 
  ;;
3234
 
 
3235
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3236
 
  lt_cv_deplibs_check_method=pass_all
3237
 
  ;;
3238
 
esac
3239
 
])
3240
 
file_magic_cmd=$lt_cv_file_magic_cmd
3241
 
deplibs_check_method=$lt_cv_deplibs_check_method
3242
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3243
 
])# AC_DEPLIBS_CHECK_METHOD
3244
 
 
3245
 
 
3246
 
# AC_PROG_NM
3247
 
# ----------
3248
 
# find the pathname to a BSD-compatible name lister
3249
 
AC_DEFUN([AC_PROG_NM],
3250
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3251
 
[if test -n "$NM"; then
3252
 
  # Let the user override the test.
3253
 
  lt_cv_path_NM="$NM"
3254
 
else
3255
 
  lt_nm_to_check="${ac_tool_prefix}nm"
3256
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3257
 
    lt_nm_to_check="$lt_nm_to_check nm"
3258
 
  fi
3259
 
  for lt_tmp_nm in $lt_nm_to_check; do
3260
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3261
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3262
 
      IFS="$lt_save_ifs"
3263
 
      test -z "$ac_dir" && ac_dir=.
3264
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
3265
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3266
 
        # Check to see if the nm accepts a BSD-compat flag.
3267
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268
 
        #   nm: unknown option "B" ignored
3269
 
        # Tru64's nm complains that /dev/null is an invalid object file
3270
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3271
 
        */dev/null* | *'Invalid file or object type'*)
3272
 
          lt_cv_path_NM="$tmp_nm -B"
3273
 
          break
3274
 
          ;;
3275
 
        *)
3276
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3277
 
          */dev/null*)
3278
 
            lt_cv_path_NM="$tmp_nm -p"
3279
 
            break
3280
 
            ;;
3281
 
          *)
3282
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3283
 
            continue # so that we can try to find one that supports BSD flags
3284
 
            ;;
3285
 
          esac
3286
 
          ;;
3287
 
        esac
3288
 
      fi
3289
 
    done
3290
 
    IFS="$lt_save_ifs"
3291
 
  done
3292
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3293
 
fi])
3294
 
NM="$lt_cv_path_NM"
3295
 
])# AC_PROG_NM
3296
 
 
3297
 
 
3298
 
# AC_CHECK_LIBM
3299
 
# -------------
3300
 
# check for math library
3301
 
AC_DEFUN([AC_CHECK_LIBM],
3302
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3303
 
LIBM=
3304
 
case $host in
3305
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3306
 
  # These system don't have libm, or don't need it
3307
 
  ;;
3308
 
*-ncr-sysv4.3*)
3309
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3310
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3311
 
  ;;
3312
 
*)
3313
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3314
 
  ;;
3315
 
esac
3316
 
])# AC_CHECK_LIBM
3317
 
 
3318
 
 
3319
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3320
 
# -----------------------------------
3321
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3322
 
# LTDLINCL to the include flags for the libltdl header and adds
3323
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3324
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3325
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3326
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3327
 
# (note the single quotes!).  If your package is not flat and you're not
3328
 
# using automake, define top_builddir and top_srcdir appropriately in
3329
 
# the Makefiles.
3330
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3331
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3332
 
  case $enable_ltdl_convenience in
3333
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3334
 
  "") enable_ltdl_convenience=yes
3335
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3336
 
  esac
3337
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3338
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3339
 
  # For backwards non-gettext consistent compatibility...
3340
 
  INCLTDL="$LTDLINCL"
3341
 
])# AC_LIBLTDL_CONVENIENCE
3342
 
 
3343
 
 
3344
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3345
 
# -----------------------------------
3346
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3347
 
# LTDLINCL to the include flags for the libltdl header and adds
3348
 
# --enable-ltdl-install to the configure arguments.  Note that
3349
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3350
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3351
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3352
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3353
 
# flat and you're not using automake, define top_builddir and top_srcdir
3354
 
# appropriately in the Makefiles.
3355
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3356
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3357
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3358
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3359
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3360
 
  [if test x"$enable_ltdl_install" = xno; then
3361
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3362
 
   else
3363
 
     enable_ltdl_install=yes
3364
 
   fi
3365
 
  ])
3366
 
  if test x"$enable_ltdl_install" = x"yes"; then
3367
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3368
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3369
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3370
 
  else
3371
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3372
 
    LIBLTDL="-lltdl"
3373
 
    LTDLINCL=
3374
 
  fi
3375
 
  # For backwards non-gettext consistent compatibility...
3376
 
  INCLTDL="$LTDLINCL"
3377
 
])# AC_LIBLTDL_INSTALLABLE
3378
 
 
3379
 
 
3380
 
# AC_LIBTOOL_CXX
3381
 
# --------------
3382
 
# enable support for C++ libraries
3383
 
AC_DEFUN([AC_LIBTOOL_CXX],
3384
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3385
 
])# AC_LIBTOOL_CXX
3386
 
 
3387
 
 
3388
 
# _LT_AC_LANG_CXX
3389
 
# ---------------
3390
 
AC_DEFUN([_LT_AC_LANG_CXX],
3391
 
[AC_REQUIRE([AC_PROG_CXX])
3392
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3393
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3394
 
])# _LT_AC_LANG_CXX
3395
 
 
3396
 
# _LT_AC_PROG_CXXCPP
3397
 
# ------------------
3398
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3399
 
[
3400
 
AC_REQUIRE([AC_PROG_CXX])
3401
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3402
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3403
 
    (test "X$CXX" != "Xg++"))) ; then
3404
 
  AC_PROG_CXXCPP
3405
 
fi
3406
 
])# _LT_AC_PROG_CXXCPP
3407
 
 
3408
 
# AC_LIBTOOL_F77
3409
 
# --------------
3410
 
# enable support for Fortran 77 libraries
3411
 
AC_DEFUN([AC_LIBTOOL_F77],
3412
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3413
 
])# AC_LIBTOOL_F77
3414
 
 
3415
 
 
3416
 
# _LT_AC_LANG_F77
3417
 
# ---------------
3418
 
AC_DEFUN([_LT_AC_LANG_F77],
3419
 
[AC_REQUIRE([AC_PROG_F77])
3420
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3421
 
])# _LT_AC_LANG_F77
3422
 
 
3423
 
 
3424
 
# AC_LIBTOOL_GCJ
3425
 
# --------------
3426
 
# enable support for GCJ libraries
3427
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3428
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3429
 
])# AC_LIBTOOL_GCJ
3430
 
 
3431
 
 
3432
 
# _LT_AC_LANG_GCJ
3433
 
# ---------------
3434
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3435
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3436
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3437
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3438
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3439
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3440
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3441
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3442
 
])# _LT_AC_LANG_GCJ
3443
 
 
3444
 
 
3445
 
# AC_LIBTOOL_RC
3446
 
# -------------
3447
 
# enable support for Windows resource files
3448
 
AC_DEFUN([AC_LIBTOOL_RC],
3449
 
[AC_REQUIRE([LT_AC_PROG_RC])
3450
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3451
 
])# AC_LIBTOOL_RC
3452
 
 
3453
 
 
3454
 
# AC_LIBTOOL_LANG_C_CONFIG
3455
 
# ------------------------
3456
 
# Ensure that the configuration vars for the C compiler are
3457
 
# suitably defined.  Those variables are subsequently used by
3458
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3459
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3460
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3461
 
[lt_save_CC="$CC"
3462
 
AC_LANG_PUSH(C)
3463
 
 
3464
 
# Source file extension for C test sources.
3465
 
ac_ext=c
3466
 
 
3467
 
# Object file extension for compiled C test sources.
3468
 
objext=o
3469
 
_LT_AC_TAGVAR(objext, $1)=$objext
3470
 
 
3471
 
# Code to be used in simple compile tests
3472
 
lt_simple_compile_test_code="int some_variable = 0;"
3473
 
 
3474
 
# Code to be used in simple link tests
3475
 
lt_simple_link_test_code='int main(){return(0);}'
3476
 
 
3477
 
_LT_AC_SYS_COMPILER
3478
 
 
3479
 
# save warnings/boilerplate of simple test code
3480
 
_LT_COMPILER_BOILERPLATE
3481
 
_LT_LINKER_BOILERPLATE
3482
 
 
3483
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3484
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3485
 
AC_LIBTOOL_PROG_CC_C_O($1)
3486
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3487
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3488
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3489
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3490
 
AC_LIBTOOL_SYS_LIB_STRIP
3491
 
AC_LIBTOOL_DLOPEN_SELF
3492
 
 
3493
 
# Report which library types will actually be built
3494
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3495
 
AC_MSG_RESULT([$can_build_shared])
3496
 
 
3497
 
AC_MSG_CHECKING([whether to build shared libraries])
3498
 
test "$can_build_shared" = "no" && enable_shared=no
3499
 
 
3500
 
# On AIX, shared libraries and static libraries use the same namespace, and
3501
 
# are all built from PIC.
3502
 
case $host_os in
3503
 
aix3*)
3504
 
  test "$enable_shared" = yes && enable_static=no
3505
 
  if test -n "$RANLIB"; then
3506
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3507
 
    postinstall_cmds='$RANLIB $lib'
3508
 
  fi
3509
 
  ;;
3510
 
 
3511
 
aix[[4-9]]*)
3512
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3513
 
    test "$enable_shared" = yes && enable_static=no
3514
 
  fi
3515
 
    ;;
3516
 
esac
3517
 
AC_MSG_RESULT([$enable_shared])
3518
 
 
3519
 
AC_MSG_CHECKING([whether to build static libraries])
3520
 
# Make sure either enable_shared or enable_static is yes.
3521
 
test "$enable_shared" = yes || enable_static=yes
3522
 
AC_MSG_RESULT([$enable_static])
3523
 
 
3524
 
AC_LIBTOOL_CONFIG($1)
3525
 
 
3526
 
AC_LANG_POP
3527
 
CC="$lt_save_CC"
3528
 
])# AC_LIBTOOL_LANG_C_CONFIG
3529
 
 
3530
 
 
3531
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3532
 
# --------------------------
3533
 
# Ensure that the configuration vars for the C compiler are
3534
 
# suitably defined.  Those variables are subsequently used by
3535
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3536
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3537
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3538
 
[AC_LANG_PUSH(C++)
3539
 
AC_REQUIRE([AC_PROG_CXX])
3540
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3541
 
 
3542
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3543
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3544
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3545
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3546
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3547
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3548
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3549
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3550
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3551
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3552
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3553
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3554
 
_LT_AC_TAGVAR(module_cmds, $1)=
3555
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3556
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3557
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3558
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3559
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3560
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3561
 
 
3562
 
# Dependencies to place before and after the object being linked:
3563
 
_LT_AC_TAGVAR(predep_objects, $1)=
3564
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3565
 
_LT_AC_TAGVAR(predeps, $1)=
3566
 
_LT_AC_TAGVAR(postdeps, $1)=
3567
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3568
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3569
 
 
3570
 
# Source file extension for C++ test sources.
3571
 
ac_ext=cpp
3572
 
 
3573
 
# Object file extension for compiled C++ test sources.
3574
 
objext=o
3575
 
_LT_AC_TAGVAR(objext, $1)=$objext
3576
 
 
3577
 
# Code to be used in simple compile tests
3578
 
lt_simple_compile_test_code="int some_variable = 0;"
3579
 
 
3580
 
# Code to be used in simple link tests
3581
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3582
 
 
3583
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3584
 
_LT_AC_SYS_COMPILER
3585
 
 
3586
 
# save warnings/boilerplate of simple test code
3587
 
_LT_COMPILER_BOILERPLATE
3588
 
_LT_LINKER_BOILERPLATE
3589
 
 
3590
 
# Allow CC to be a program name with arguments.
3591
 
lt_save_CC=$CC
3592
 
lt_save_LD=$LD
3593
 
lt_save_GCC=$GCC
3594
 
GCC=$GXX
3595
 
lt_save_with_gnu_ld=$with_gnu_ld
3596
 
lt_save_path_LD=$lt_cv_path_LD
3597
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3598
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3599
 
else
3600
 
  $as_unset lt_cv_prog_gnu_ld
3601
 
fi
3602
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3603
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3604
 
else
3605
 
  $as_unset lt_cv_path_LD
3606
 
fi
3607
 
test -z "${LDCXX+set}" || LD=$LDCXX
3608
 
CC=${CXX-"c++"}
3609
 
compiler=$CC
3610
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3611
 
_LT_CC_BASENAME([$compiler])
3612
 
 
3613
 
# We don't want -fno-exception wen compiling C++ code, so set the
3614
 
# no_builtin_flag separately
3615
 
if test "$GXX" = yes; then
3616
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3617
 
else
3618
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3619
 
fi
3620
 
 
3621
 
if test "$GXX" = yes; then
3622
 
  # Set up default GNU C++ configuration
3623
 
 
3624
 
  AC_PROG_LD
3625
 
 
3626
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3627
 
  # archiving commands below assume that GNU ld is being used.
3628
 
  if test "$with_gnu_ld" = yes; then
3629
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3630
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3631
 
 
3632
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3633
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3634
 
 
3635
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3636
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3637
 
    #     investigate it a little bit more. (MM)
3638
 
    wlarc='${wl}'
3639
 
 
3640
 
    # ancient GNU ld didn't support --whole-archive et. al.
3641
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3642
 
        grep 'no-whole-archive' > /dev/null; then
3643
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3644
 
    else
3645
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3646
 
    fi
3647
 
  else
3648
 
    with_gnu_ld=no
3649
 
    wlarc=
3650
 
 
3651
 
    # A generic and very simple default shared library creation
3652
 
    # command for GNU C++ for the case where it uses the native
3653
 
    # linker, instead of GNU ld.  If possible, this setting should
3654
 
    # overridden to take advantage of the native linker features on
3655
 
    # the platform it is being used on.
3656
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3657
 
  fi
3658
 
 
3659
 
  # Commands to make compiler produce verbose output that lists
3660
 
  # what "hidden" libraries, object files and flags are used when
3661
 
  # linking a shared library.
3662
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3663
 
 
3664
 
else
3665
 
  GXX=no
3666
 
  with_gnu_ld=no
3667
 
  wlarc=
3668
 
fi
3669
 
 
3670
 
# PORTME: fill in a description of your system's C++ link characteristics
3671
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3672
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3673
 
case $host_os in
3674
 
  aix3*)
3675
 
    # FIXME: insert proper C++ library support
3676
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3677
 
    ;;
3678
 
  aix[[4-9]]*)
3679
 
    if test "$host_cpu" = ia64; then
3680
 
      # On IA64, the linker does run time linking by default, so we don't
3681
 
      # have to do anything special.
3682
 
      aix_use_runtimelinking=no
3683
 
      exp_sym_flag='-Bexport'
3684
 
      no_entry_flag=""
3685
 
    else
3686
 
      aix_use_runtimelinking=no
3687
 
 
3688
 
      # Test if we are trying to use run time linking or normal
3689
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3690
 
      # need to do runtime linking.
3691
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3692
 
        for ld_flag in $LDFLAGS; do
3693
 
          case $ld_flag in
3694
 
          *-brtl*)
3695
 
            aix_use_runtimelinking=yes
3696
 
            break
3697
 
            ;;
3698
 
          esac
3699
 
        done
3700
 
        ;;
3701
 
      esac
3702
 
 
3703
 
      exp_sym_flag='-bexport'
3704
 
      no_entry_flag='-bnoentry'
3705
 
    fi
3706
 
 
3707
 
    # When large executables or shared objects are built, AIX ld can
3708
 
    # have problems creating the table of contents.  If linking a library
3709
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3710
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3711
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3712
 
 
3713
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3714
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3715
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3716
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3717
 
 
3718
 
    if test "$GXX" = yes; then
3719
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3720
 
      # We only want to do this on AIX 4.2 and lower, the check
3721
 
      # below for broken collect2 doesn't work under 4.3+
3722
 
        collect2name=`${CC} -print-prog-name=collect2`
3723
 
        if test -f "$collect2name" && \
3724
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3725
 
        then
3726
 
          # We have reworked collect2
3727
 
          :
3728
 
        else
3729
 
          # We have old collect2
3730
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3731
 
          # It fails to find uninstalled libraries when the uninstalled
3732
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3733
 
          # to unsupported forces relinking
3734
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3735
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3736
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3737
 
        fi
3738
 
        ;;
3739
 
      esac
3740
 
      shared_flag='-shared'
3741
 
      if test "$aix_use_runtimelinking" = yes; then
3742
 
        shared_flag="$shared_flag "'${wl}-G'
3743
 
      fi
3744
 
    else
3745
 
      # not using gcc
3746
 
      if test "$host_cpu" = ia64; then
3747
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3748
 
        # chokes on -Wl,-G. The following line is correct:
3749
 
        shared_flag='-G'
3750
 
      else
3751
 
        if test "$aix_use_runtimelinking" = yes; then
3752
 
          shared_flag='${wl}-G'
3753
 
        else
3754
 
          shared_flag='${wl}-bM:SRE'
3755
 
        fi
3756
 
      fi
3757
 
    fi
3758
 
 
3759
 
    # It seems that -bexpall does not export symbols beginning with
3760
 
    # underscore (_), so it is better to generate a list of symbols to export.
3761
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3762
 
    if test "$aix_use_runtimelinking" = yes; then
3763
 
      # Warning - without using the other runtime loading flags (-brtl),
3764
 
      # -berok will link without error, but may produce a broken library.
3765
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3766
 
      # Determine the default libpath from the value encoded in an empty executable.
3767
 
      _LT_AC_SYS_LIBPATH_AIX
3768
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3769
 
 
3770
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3771
 
     else
3772
 
      if test "$host_cpu" = ia64; then
3773
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3774
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3775
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3776
 
      else
3777
 
        # Determine the default libpath from the value encoded in an empty executable.
3778
 
        _LT_AC_SYS_LIBPATH_AIX
3779
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3780
 
        # Warning - without using the other run time loading flags,
3781
 
        # -berok will link without error, but may produce a broken library.
3782
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3783
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3784
 
        # Exported symbols can be pulled into shared objects from archives
3785
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3786
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3787
 
        # This is similar to how AIX traditionally builds its shared libraries.
3788
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
3789
 
      fi
3790
 
    fi
3791
 
    ;;
3792
 
 
3793
 
  beos*)
3794
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3795
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3796
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3797
 
      # support --undefined.  This deserves some investigation.  FIXME
3798
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3799
 
    else
3800
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3801
 
    fi
3802
 
    ;;
3803
 
 
3804
 
  chorus*)
3805
 
    case $cc_basename in
3806
 
      *)
3807
 
        # FIXME: insert proper C++ library support
3808
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3809
 
        ;;
3810
 
    esac
3811
 
    ;;
3812
 
 
3813
 
  cygwin* | mingw* | pw32*)
3814
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3815
 
    # as there is no search path for DLLs.
3816
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3817
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3818
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3819
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3820
 
 
3821
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3822
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3823
 
      # If the export-symbols file already is a .def file (1st line
3824
 
      # is EXPORTS), use it as is; otherwise, prepend...
3825
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3826
 
        cp $export_symbols $output_objdir/$soname.def;
3827
 
      else
3828
 
        echo EXPORTS > $output_objdir/$soname.def;
3829
 
        cat $export_symbols >> $output_objdir/$soname.def;
3830
 
      fi~
3831
 
      $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'
3832
 
    else
3833
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3834
 
    fi
3835
 
  ;;
3836
 
      darwin* | rhapsody*)
3837
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3838
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3839
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3840
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3841
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3842
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3843
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3844
 
      if test "$GXX" = yes ; then
3845
 
      output_verbose_link_cmd='echo'
3846
 
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3847
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3848
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
3849
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
3850
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3851
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$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}"
3852
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
3853
 
      fi
3854
 
      else
3855
 
      case $cc_basename in
3856
 
        xlc*)
3857
 
         output_verbose_link_cmd='echo'
3858
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3859
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3860
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3861
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3862
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3863
 
          ;;
3864
 
       *)
3865
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3866
 
          ;;
3867
 
      esac
3868
 
      fi
3869
 
        ;;
3870
 
 
3871
 
  dgux*)
3872
 
    case $cc_basename in
3873
 
      ec++*)
3874
 
        # FIXME: insert proper C++ library support
3875
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3876
 
        ;;
3877
 
      ghcx*)
3878
 
        # Green Hills C++ Compiler
3879
 
        # FIXME: insert proper C++ library support
3880
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3881
 
        ;;
3882
 
      *)
3883
 
        # FIXME: insert proper C++ library support
3884
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3885
 
        ;;
3886
 
    esac
3887
 
    ;;
3888
 
  freebsd[[12]]*)
3889
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3890
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3891
 
    ;;
3892
 
  freebsd-elf*)
3893
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3894
 
    ;;
3895
 
  freebsd* | dragonfly*)
3896
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3897
 
    # conventions
3898
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3899
 
    ;;
3900
 
  gnu*)
3901
 
    ;;
3902
 
  hpux9*)
3903
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3904
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3905
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3906
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3907
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3908
 
                                # but as the default
3909
 
                                # location of the library.
3910
 
 
3911
 
    case $cc_basename in
3912
 
    CC*)
3913
 
      # FIXME: insert proper C++ library support
3914
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3915
 
      ;;
3916
 
    aCC*)
3917
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3918
 
      # Commands to make compiler produce verbose output that lists
3919
 
      # what "hidden" libraries, object files and flags are used when
3920
 
      # linking a shared library.
3921
 
      #
3922
 
      # There doesn't appear to be a way to prevent this compiler from
3923
 
      # explicitly linking system object files so we need to strip them
3924
 
      # from the output so that they don't get included in the library
3925
 
      # dependencies.
3926
 
      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'
3927
 
      ;;
3928
 
    *)
3929
 
      if test "$GXX" = yes; then
3930
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3931
 
      else
3932
 
        # FIXME: insert proper C++ library support
3933
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3934
 
      fi
3935
 
      ;;
3936
 
    esac
3937
 
    ;;
3938
 
  hpux10*|hpux11*)
3939
 
    if test $with_gnu_ld = no; then
3940
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3941
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3942
 
 
3943
 
      case $host_cpu in
3944
 
      hppa*64*|ia64*) ;;
3945
 
      *)
3946
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3947
 
        ;;
3948
 
      esac
3949
 
    fi
3950
 
    case $host_cpu in
3951
 
    hppa*64*|ia64*)
3952
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3953
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3954
 
      ;;
3955
 
    *)
3956
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3957
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3958
 
                                              # but as the default
3959
 
                                              # location of the library.
3960
 
      ;;
3961
 
    esac
3962
 
 
3963
 
    case $cc_basename in
3964
 
      CC*)
3965
 
        # FIXME: insert proper C++ library support
3966
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3967
 
        ;;
3968
 
      aCC*)
3969
 
        case $host_cpu in
3970
 
        hppa*64*)
3971
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3972
 
          ;;
3973
 
        ia64*)
3974
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3975
 
          ;;
3976
 
        *)
3977
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3978
 
          ;;
3979
 
        esac
3980
 
        # Commands to make compiler produce verbose output that lists
3981
 
        # what "hidden" libraries, object files and flags are used when
3982
 
        # linking a shared library.
3983
 
        #
3984
 
        # There doesn't appear to be a way to prevent this compiler from
3985
 
        # explicitly linking system object files so we need to strip them
3986
 
        # from the output so that they don't get included in the library
3987
 
        # dependencies.
3988
 
        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'
3989
 
        ;;
3990
 
      *)
3991
 
        if test "$GXX" = yes; then
3992
 
          if test $with_gnu_ld = no; then
3993
 
            case $host_cpu in
3994
 
            hppa*64*)
3995
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3996
 
              ;;
3997
 
            ia64*)
3998
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3999
 
              ;;
4000
 
            *)
4001
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4002
 
              ;;
4003
 
            esac
4004
 
          fi
4005
 
        else
4006
 
          # FIXME: insert proper C++ library support
4007
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4008
 
        fi
4009
 
        ;;
4010
 
    esac
4011
 
    ;;
4012
 
  interix[[3-9]]*)
4013
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4014
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4015
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4016
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4017
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4018
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4019
 
    # default) and relocated if they conflict, which is a slow very memory
4020
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4021
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4022
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4023
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4024
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
4025
 
    ;;
4026
 
  irix5* | irix6*)
4027
 
    case $cc_basename in
4028
 
      CC*)
4029
 
        # SGI C++
4030
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4031
 
 
4032
 
        # Archives containing C++ object files must be created using
4033
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4034
 
        # necessary to make sure instantiated templates are included
4035
 
        # in the archive.
4036
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4037
 
        ;;
4038
 
      *)
4039
 
        if test "$GXX" = yes; then
4040
 
          if test "$with_gnu_ld" = no; then
4041
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4042
 
          else
4043
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4044
 
          fi
4045
 
        fi
4046
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4047
 
        ;;
4048
 
    esac
4049
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4050
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4051
 
    ;;
4052
 
  linux* | k*bsd*-gnu)
4053
 
    case $cc_basename in
4054
 
      KCC*)
4055
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4056
 
 
4057
 
        # KCC will only create a shared library if the output file
4058
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4059
 
        # to its proper name (with version) after linking.
4060
 
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
4061
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
4062
 
        # Commands to make compiler produce verbose output that lists
4063
 
        # what "hidden" libraries, object files and flags are used when
4064
 
        # linking a shared library.
4065
 
        #
4066
 
        # There doesn't appear to be a way to prevent this compiler from
4067
 
        # explicitly linking system object files so we need to strip them
4068
 
        # from the output so that they don't get included in the library
4069
 
        # dependencies.
4070
 
        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'
4071
 
 
4072
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4073
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4074
 
 
4075
 
        # Archives containing C++ object files must be created using
4076
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4077
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4078
 
        ;;
4079
 
      icpc*)
4080
 
        # Intel C++
4081
 
        with_gnu_ld=yes
4082
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4083
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4084
 
        # earlier do not add the objects themselves.
4085
 
        case `$CC -V 2>&1` in
4086
 
        *"Version 7."*)
4087
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4088
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4089
 
          ;;
4090
 
        *)  # Version 8.0 or newer
4091
 
          tmp_idyn=
4092
 
          case $host_cpu in
4093
 
            ia64*) tmp_idyn=' -i_dynamic';;
4094
 
          esac
4095
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4096
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4097
 
          ;;
4098
 
        esac
4099
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4100
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4101
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4102
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4103
 
        ;;
4104
 
      pgCC* | pgcpp*)
4105
 
        # Portland Group C++ compiler
4106
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4107
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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'
4108
 
 
4109
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4110
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4111
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4112
 
        ;;
4113
 
      cxx*)
4114
 
        # Compaq C++
4115
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4116
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4117
 
 
4118
 
        runpath_var=LD_RUN_PATH
4119
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4120
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4121
 
 
4122
 
        # Commands to make compiler produce verbose output that lists
4123
 
        # what "hidden" libraries, object files and flags are used when
4124
 
        # linking a shared library.
4125
 
        #
4126
 
        # There doesn't appear to be a way to prevent this compiler from
4127
 
        # explicitly linking system object files so we need to strip them
4128
 
        # from the output so that they don't get included in the library
4129
 
        # dependencies.
4130
 
        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'
4131
 
        ;;
4132
 
      *)
4133
 
        case `$CC -V 2>&1 | sed 5q` in
4134
 
        *Sun\ C*)
4135
 
          # Sun C++ 5.9
4136
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4137
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4138
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4139
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4140
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
4141
 
 
4142
 
          # Not sure whether something based on
4143
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4144
 
          # would be better.
4145
 
          output_verbose_link_cmd='echo'
4146
 
 
4147
 
          # Archives containing C++ object files must be created using
4148
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4149
 
          # necessary to make sure instantiated templates are included
4150
 
          # in the archive.
4151
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4152
 
          ;;
4153
 
        esac
4154
 
        ;;
4155
 
    esac
4156
 
    ;;
4157
 
  lynxos*)
4158
 
    # FIXME: insert proper C++ library support
4159
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4160
 
    ;;
4161
 
  m88k*)
4162
 
    # FIXME: insert proper C++ library support
4163
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4164
 
    ;;
4165
 
  mvs*)
4166
 
    case $cc_basename in
4167
 
      cxx*)
4168
 
        # FIXME: insert proper C++ library support
4169
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4170
 
        ;;
4171
 
      *)
4172
 
        # FIXME: insert proper C++ library support
4173
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4174
 
        ;;
4175
 
    esac
4176
 
    ;;
4177
 
  netbsd* | netbsdelf*-gnu)
4178
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4179
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4180
 
      wlarc=
4181
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4182
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4183
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4184
 
    fi
4185
 
    # Workaround some broken pre-1.5 toolchains
4186
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4187
 
    ;;
4188
 
  openbsd2*)
4189
 
    # C++ shared libraries are fairly broken
4190
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4191
 
    ;;
4192
 
  openbsd*)
4193
 
    if test -f /usr/libexec/ld.so; then
4194
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4195
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4196
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4197
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4198
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4199
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4200
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4201
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4202
 
      fi
4203
 
      output_verbose_link_cmd='echo'
4204
 
    else
4205
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4206
 
    fi
4207
 
    ;;
4208
 
  osf3*)
4209
 
    case $cc_basename in
4210
 
      KCC*)
4211
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4212
 
 
4213
 
        # KCC will only create a shared library if the output file
4214
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4215
 
        # to its proper name (with version) after linking.
4216
 
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
4217
 
 
4218
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4219
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4220
 
 
4221
 
        # Archives containing C++ object files must be created using
4222
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4223
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4224
 
 
4225
 
        ;;
4226
 
      RCC*)
4227
 
        # Rational C++ 2.4.1
4228
 
        # FIXME: insert proper C++ library support
4229
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4230
 
        ;;
4231
 
      cxx*)
4232
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4233
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4234
 
 
4235
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4236
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4237
 
 
4238
 
        # Commands to make compiler produce verbose output that lists
4239
 
        # what "hidden" libraries, object files and flags are used when
4240
 
        # linking a shared library.
4241
 
        #
4242
 
        # There doesn't appear to be a way to prevent this compiler from
4243
 
        # explicitly linking system object files so we need to strip them
4244
 
        # from the output so that they don't get included in the library
4245
 
        # dependencies.
4246
 
        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'
4247
 
        ;;
4248
 
      *)
4249
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4250
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4251
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4252
 
 
4253
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4254
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4255
 
 
4256
 
          # Commands to make compiler produce verbose output that lists
4257
 
          # what "hidden" libraries, object files and flags are used when
4258
 
          # linking a shared library.
4259
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4260
 
 
4261
 
        else
4262
 
          # FIXME: insert proper C++ library support
4263
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4264
 
        fi
4265
 
        ;;
4266
 
    esac
4267
 
    ;;
4268
 
  osf4* | osf5*)
4269
 
    case $cc_basename in
4270
 
      KCC*)
4271
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4272
 
 
4273
 
        # KCC will only create a shared library if the output file
4274
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4275
 
        # to its proper name (with version) after linking.
4276
 
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
4277
 
 
4278
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4279
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4280
 
 
4281
 
        # Archives containing C++ object files must be created using
4282
 
        # the KAI C++ compiler.
4283
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4284
 
        ;;
4285
 
      RCC*)
4286
 
        # Rational C++ 2.4.1
4287
 
        # FIXME: insert proper C++ library support
4288
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4289
 
        ;;
4290
 
      cxx*)
4291
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4292
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4293
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4294
 
          echo "-hidden">> $lib.exp~
4295
 
          $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~
4296
 
          $rm $lib.exp'
4297
 
 
4298
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4299
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4300
 
 
4301
 
        # Commands to make compiler produce verbose output that lists
4302
 
        # what "hidden" libraries, object files and flags are used when
4303
 
        # linking a shared library.
4304
 
        #
4305
 
        # There doesn't appear to be a way to prevent this compiler from
4306
 
        # explicitly linking system object files so we need to strip them
4307
 
        # from the output so that they don't get included in the library
4308
 
        # dependencies.
4309
 
        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'
4310
 
        ;;
4311
 
      *)
4312
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4313
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4314
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$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'
4315
 
 
4316
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4317
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4318
 
 
4319
 
          # Commands to make compiler produce verbose output that lists
4320
 
          # what "hidden" libraries, object files and flags are used when
4321
 
          # linking a shared library.
4322
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4323
 
 
4324
 
        else
4325
 
          # FIXME: insert proper C++ library support
4326
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4327
 
        fi
4328
 
        ;;
4329
 
    esac
4330
 
    ;;
4331
 
  psos*)
4332
 
    # FIXME: insert proper C++ library support
4333
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4334
 
    ;;
4335
 
  sunos4*)
4336
 
    case $cc_basename in
4337
 
      CC*)
4338
 
        # Sun C++ 4.x
4339
 
        # FIXME: insert proper C++ library support
4340
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4341
 
        ;;
4342
 
      lcc*)
4343
 
        # Lucid
4344
 
        # FIXME: insert proper C++ library support
4345
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4346
 
        ;;
4347
 
      *)
4348
 
        # FIXME: insert proper C++ library support
4349
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4350
 
        ;;
4351
 
    esac
4352
 
    ;;
4353
 
  solaris*)
4354
 
    case $cc_basename in
4355
 
      CC*)
4356
 
        # Sun C++ 4.2, 5.x and Centerline C++
4357
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4358
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4359
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4360
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4361
 
        $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'
4362
 
 
4363
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4364
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4365
 
        case $host_os in
4366
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4367
 
          *)
4368
 
            # The compiler driver will combine and reorder linker options,
4369
 
            # but understands `-z linker_flag'.
4370
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4371
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4372
 
            ;;
4373
 
        esac
4374
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4375
 
 
4376
 
        output_verbose_link_cmd='echo'
4377
 
 
4378
 
        # Archives containing C++ object files must be created using
4379
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4380
 
        # necessary to make sure instantiated templates are included
4381
 
        # in the archive.
4382
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4383
 
        ;;
4384
 
      gcx*)
4385
 
        # Green Hills C++ Compiler
4386
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4387
 
 
4388
 
        # The C++ compiler must be used to create the archive.
4389
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4390
 
        ;;
4391
 
      *)
4392
 
        # GNU C++ compiler with Solaris linker
4393
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4394
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4395
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4396
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4397
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4398
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4399
 
 
4400
 
            # Commands to make compiler produce verbose output that lists
4401
 
            # what "hidden" libraries, object files and flags are used when
4402
 
            # linking a shared library.
4403
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4404
 
          else
4405
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4406
 
            # platform.
4407
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4408
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4409
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4410
 
 
4411
 
            # Commands to make compiler produce verbose output that lists
4412
 
            # what "hidden" libraries, object files and flags are used when
4413
 
            # linking a shared library.
4414
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4415
 
          fi
4416
 
 
4417
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4418
 
          case $host_os in
4419
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4420
 
          *)
4421
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4422
 
            ;;
4423
 
          esac
4424
 
        fi
4425
 
        ;;
4426
 
    esac
4427
 
    ;;
4428
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4429
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4430
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4431
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4432
 
    runpath_var='LD_RUN_PATH'
4433
 
 
4434
 
    case $cc_basename in
4435
 
      CC*)
4436
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4437
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4438
 
        ;;
4439
 
      *)
4440
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4441
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4442
 
        ;;
4443
 
    esac
4444
 
    ;;
4445
 
  sysv5* | sco3.2v5* | sco5v6*)
4446
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4447
 
    # link with -lc, and that would cause any symbols used from libc to
4448
 
    # always be unresolved, which means just about no library would
4449
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4450
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4451
 
    # as -z defs.
4452
 
    # For security reasons, it is highly recommended that you always
4453
 
    # use absolute paths for naming shared libraries, and exclude the
4454
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4455
 
    # requires that you compile everything twice, which is a pain.
4456
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4457
 
    # non-empty value in the environment.  Most likely only useful for
4458
 
    # creating official distributions of packages.
4459
 
    # This is a hack until libtool officially supports absolute path
4460
 
    # names for shared libraries.
4461
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4462
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4463
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4464
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4465
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4466
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4467
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4468
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4469
 
    runpath_var='LD_RUN_PATH'
4470
 
 
4471
 
    case $cc_basename in
4472
 
      CC*)
4473
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4474
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4475
 
        ;;
4476
 
      *)
4477
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4478
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4479
 
        ;;
4480
 
    esac
4481
 
    ;;
4482
 
  tandem*)
4483
 
    case $cc_basename in
4484
 
      NCC*)
4485
 
        # NonStop-UX NCC 3.20
4486
 
        # FIXME: insert proper C++ library support
4487
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4488
 
        ;;
4489
 
      *)
4490
 
        # FIXME: insert proper C++ library support
4491
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4492
 
        ;;
4493
 
    esac
4494
 
    ;;
4495
 
  vxworks*)
4496
 
    # FIXME: insert proper C++ library support
4497
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4498
 
    ;;
4499
 
  *)
4500
 
    # FIXME: insert proper C++ library support
4501
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4502
 
    ;;
4503
 
esac
4504
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4505
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4506
 
 
4507
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4508
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4509
 
 
4510
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4511
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4512
 
AC_LIBTOOL_PROG_CC_C_O($1)
4513
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4514
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4515
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4516
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4517
 
 
4518
 
AC_LIBTOOL_CONFIG($1)
4519
 
 
4520
 
AC_LANG_POP
4521
 
CC=$lt_save_CC
4522
 
LDCXX=$LD
4523
 
LD=$lt_save_LD
4524
 
GCC=$lt_save_GCC
4525
 
with_gnu_ldcxx=$with_gnu_ld
4526
 
with_gnu_ld=$lt_save_with_gnu_ld
4527
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4528
 
lt_cv_path_LD=$lt_save_path_LD
4529
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4530
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4531
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4532
 
 
4533
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4534
 
# ------------------------------------
4535
 
# Figure out "hidden" library dependencies from verbose
4536
 
# compiler output when linking a shared library.
4537
 
# Parse the compiler output and extract the necessary
4538
 
# objects, libraries and library flags.
4539
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4540
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4541
 
dnl we can't use the lt_simple_compile_test_code here,
4542
 
dnl because it contains code intended for an executable,
4543
 
dnl not a library.  It's possible we should let each
4544
 
dnl tag define a new lt_????_link_test_code variable,
4545
 
dnl but it's only used here...
4546
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4547
 
int a;
4548
 
void foo (void) { a = 0; }
4549
 
EOF
4550
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4551
 
class Foo
4552
 
{
4553
 
public:
4554
 
  Foo (void) { a = 0; }
4555
 
private:
4556
 
  int a;
4557
 
};
4558
 
EOF
4559
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4560
 
      subroutine foo
4561
 
      implicit none
4562
 
      integer*4 a
4563
 
      a=0
4564
 
      return
4565
 
      end
4566
 
EOF
4567
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4568
 
public class foo {
4569
 
  private int a;
4570
 
  public void bar (void) {
4571
 
    a = 0;
4572
 
  }
4573
 
};
4574
 
EOF
4575
 
])
4576
 
dnl Parse the compiler output and extract the necessary
4577
 
dnl objects, libraries and library flags.
4578
 
if AC_TRY_EVAL(ac_compile); then
4579
 
  # Parse the compiler output and extract the necessary
4580
 
  # objects, libraries and library flags.
4581
 
 
4582
 
  # Sentinel used to keep track of whether or not we are before
4583
 
  # the conftest object file.
4584
 
  pre_test_object_deps_done=no
4585
 
 
4586
 
  # The `*' in the case matches for architectures that use `case' in
4587
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4588
 
  # eval without this substitution.
4589
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4590
 
 
4591
 
  for p in `eval $output_verbose_link_cmd`; do
4592
 
    case $p in
4593
 
 
4594
 
    -L* | -R* | -l*)
4595
 
       # Some compilers place space between "-{L,R}" and the path.
4596
 
       # Remove the space.
4597
 
       if test $p = "-L" \
4598
 
          || test $p = "-R"; then
4599
 
         prev=$p
4600
 
         continue
4601
 
       else
4602
 
         prev=
4603
 
       fi
4604
 
 
4605
 
       if test "$pre_test_object_deps_done" = no; then
4606
 
         case $p in
4607
 
         -L* | -R*)
4608
 
           # Internal compiler library paths should come after those
4609
 
           # provided the user.  The postdeps already come after the
4610
 
           # user supplied libs so there is no need to process them.
4611
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4612
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4613
 
           else
4614
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4615
 
           fi
4616
 
           ;;
4617
 
         # The "-l" case would never come before the object being
4618
 
         # linked, so don't bother handling this case.
4619
 
         esac
4620
 
       else
4621
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4622
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4623
 
         else
4624
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4625
 
         fi
4626
 
       fi
4627
 
       ;;
4628
 
 
4629
 
    *.$objext)
4630
 
       # This assumes that the test object file only shows up
4631
 
       # once in the compiler output.
4632
 
       if test "$p" = "conftest.$objext"; then
4633
 
         pre_test_object_deps_done=yes
4634
 
         continue
4635
 
       fi
4636
 
 
4637
 
       if test "$pre_test_object_deps_done" = no; then
4638
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4639
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4640
 
         else
4641
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4642
 
         fi
4643
 
       else
4644
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4645
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4646
 
         else
4647
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4648
 
         fi
4649
 
       fi
4650
 
       ;;
4651
 
 
4652
 
    *) ;; # Ignore the rest.
4653
 
 
4654
 
    esac
4655
 
  done
4656
 
 
4657
 
  # Clean up.
4658
 
  rm -f a.out a.exe
4659
 
else
4660
 
  echo "libtool.m4: error: problem compiling $1 test program"
4661
 
fi
4662
 
 
4663
 
$rm -f confest.$objext
4664
 
 
4665
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4666
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4667
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4668
 
fi
4669
 
 
4670
 
# PORTME: override above test on systems where it is broken
4671
 
ifelse([$1],[CXX],
4672
 
[case $host_os in
4673
 
interix[[3-9]]*)
4674
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4675
 
  # hack all around it, let's just trust "g++" to DTRT.
4676
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4677
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4678
 
  _LT_AC_TAGVAR(postdeps,$1)=
4679
 
  ;;
4680
 
 
4681
 
linux*)
4682
 
  case `$CC -V 2>&1 | sed 5q` in
4683
 
  *Sun\ C*)
4684
 
    # Sun C++ 5.9
4685
 
    #
4686
 
    # The more standards-conforming stlport4 library is
4687
 
    # incompatible with the Cstd library. Avoid specifying
4688
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4689
 
    # -library=stlport4 depends on it.
4690
 
    case " $CXX $CXXFLAGS " in
4691
 
    *" -library=stlport4 "*)
4692
 
      solaris_use_stlport4=yes
4693
 
      ;;
4694
 
    esac
4695
 
    if test "$solaris_use_stlport4" != yes; then
4696
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4697
 
    fi
4698
 
    ;;
4699
 
  esac
4700
 
  ;;
4701
 
 
4702
 
solaris*)
4703
 
  case $cc_basename in
4704
 
  CC*)
4705
 
    # The more standards-conforming stlport4 library is
4706
 
    # incompatible with the Cstd library. Avoid specifying
4707
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4708
 
    # -library=stlport4 depends on it.
4709
 
    case " $CXX $CXXFLAGS " in
4710
 
    *" -library=stlport4 "*)
4711
 
      solaris_use_stlport4=yes
4712
 
      ;;
4713
 
    esac
4714
 
 
4715
 
    # Adding this requires a known-good setup of shared libraries for
4716
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4717
 
    # archive will be linked into the output, leading to subtle bugs.
4718
 
    if test "$solaris_use_stlport4" != yes; then
4719
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4720
 
    fi
4721
 
    ;;
4722
 
  esac
4723
 
  ;;
4724
 
esac
4725
 
])
4726
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4727
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4728
 
esac
4729
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4730
 
 
4731
 
# AC_LIBTOOL_LANG_F77_CONFIG
4732
 
# --------------------------
4733
 
# Ensure that the configuration vars for the C compiler are
4734
 
# suitably defined.  Those variables are subsequently used by
4735
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4736
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4737
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4738
 
[AC_REQUIRE([AC_PROG_F77])
4739
 
AC_LANG_PUSH(Fortran 77)
4740
 
 
4741
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4742
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4743
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4744
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4745
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4746
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4747
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4748
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4749
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4750
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4751
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4752
 
_LT_AC_TAGVAR(module_cmds, $1)=
4753
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4754
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4755
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4756
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4757
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4758
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4759
 
 
4760
 
# Source file extension for f77 test sources.
4761
 
ac_ext=f
4762
 
 
4763
 
# Object file extension for compiled f77 test sources.
4764
 
objext=o
4765
 
_LT_AC_TAGVAR(objext, $1)=$objext
4766
 
 
4767
 
# Code to be used in simple compile tests
4768
 
lt_simple_compile_test_code="\
4769
 
      subroutine t
4770
 
      return
4771
 
      end
4772
 
"
4773
 
 
4774
 
# Code to be used in simple link tests
4775
 
lt_simple_link_test_code="\
4776
 
      program t
4777
 
      end
4778
 
"
4779
 
 
4780
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4781
 
_LT_AC_SYS_COMPILER
4782
 
 
4783
 
# save warnings/boilerplate of simple test code
4784
 
_LT_COMPILER_BOILERPLATE
4785
 
_LT_LINKER_BOILERPLATE
4786
 
 
4787
 
# Allow CC to be a program name with arguments.
4788
 
lt_save_CC="$CC"
4789
 
CC=${F77-"f77"}
4790
 
compiler=$CC
4791
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4792
 
_LT_CC_BASENAME([$compiler])
4793
 
 
4794
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4795
 
AC_MSG_RESULT([$can_build_shared])
4796
 
 
4797
 
AC_MSG_CHECKING([whether to build shared libraries])
4798
 
test "$can_build_shared" = "no" && enable_shared=no
4799
 
 
4800
 
# On AIX, shared libraries and static libraries use the same namespace, and
4801
 
# are all built from PIC.
4802
 
case $host_os in
4803
 
aix3*)
4804
 
  test "$enable_shared" = yes && enable_static=no
4805
 
  if test -n "$RANLIB"; then
4806
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4807
 
    postinstall_cmds='$RANLIB $lib'
4808
 
  fi
4809
 
  ;;
4810
 
aix[[4-9]]*)
4811
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4812
 
    test "$enable_shared" = yes && enable_static=no
4813
 
  fi
4814
 
  ;;
4815
 
esac
4816
 
AC_MSG_RESULT([$enable_shared])
4817
 
 
4818
 
AC_MSG_CHECKING([whether to build static libraries])
4819
 
# Make sure either enable_shared or enable_static is yes.
4820
 
test "$enable_shared" = yes || enable_static=yes
4821
 
AC_MSG_RESULT([$enable_static])
4822
 
 
4823
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4824
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4825
 
 
4826
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4827
 
AC_LIBTOOL_PROG_CC_C_O($1)
4828
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4829
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4830
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4831
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4832
 
 
4833
 
AC_LIBTOOL_CONFIG($1)
4834
 
 
4835
 
AC_LANG_POP
4836
 
CC="$lt_save_CC"
4837
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4838
 
 
4839
 
 
4840
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4841
 
# --------------------------
4842
 
# Ensure that the configuration vars for the C compiler are
4843
 
# suitably defined.  Those variables are subsequently used by
4844
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4845
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4846
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4847
 
[AC_LANG_SAVE
4848
 
 
4849
 
# Source file extension for Java test sources.
4850
 
ac_ext=java
4851
 
 
4852
 
# Object file extension for compiled Java test sources.
4853
 
objext=o
4854
 
_LT_AC_TAGVAR(objext, $1)=$objext
4855
 
 
4856
 
# Code to be used in simple compile tests
4857
 
lt_simple_compile_test_code="class foo {}"
4858
 
 
4859
 
# Code to be used in simple link tests
4860
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4861
 
 
4862
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4863
 
_LT_AC_SYS_COMPILER
4864
 
 
4865
 
# save warnings/boilerplate of simple test code
4866
 
_LT_COMPILER_BOILERPLATE
4867
 
_LT_LINKER_BOILERPLATE
4868
 
 
4869
 
# Allow CC to be a program name with arguments.
4870
 
lt_save_CC="$CC"
4871
 
CC=${GCJ-"gcj"}
4872
 
compiler=$CC
4873
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4874
 
_LT_CC_BASENAME([$compiler])
4875
 
 
4876
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4877
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4878
 
 
4879
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4880
 
 
4881
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4882
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4883
 
AC_LIBTOOL_PROG_CC_C_O($1)
4884
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4885
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4886
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4887
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4888
 
 
4889
 
AC_LIBTOOL_CONFIG($1)
4890
 
 
4891
 
AC_LANG_RESTORE
4892
 
CC="$lt_save_CC"
4893
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4894
 
 
4895
 
 
4896
 
# AC_LIBTOOL_LANG_RC_CONFIG
4897
 
# -------------------------
4898
 
# Ensure that the configuration vars for the Windows resource compiler are
4899
 
# suitably defined.  Those variables are subsequently used by
4900
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4901
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4902
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4903
 
[AC_LANG_SAVE
4904
 
 
4905
 
# Source file extension for RC test sources.
4906
 
ac_ext=rc
4907
 
 
4908
 
# Object file extension for compiled RC test sources.
4909
 
objext=o
4910
 
_LT_AC_TAGVAR(objext, $1)=$objext
4911
 
 
4912
 
# Code to be used in simple compile tests
4913
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4914
 
 
4915
 
# Code to be used in simple link tests
4916
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4917
 
 
4918
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4919
 
_LT_AC_SYS_COMPILER
4920
 
 
4921
 
# save warnings/boilerplate of simple test code
4922
 
_LT_COMPILER_BOILERPLATE
4923
 
_LT_LINKER_BOILERPLATE
4924
 
 
4925
 
# Allow CC to be a program name with arguments.
4926
 
lt_save_CC="$CC"
4927
 
CC=${RC-"windres"}
4928
 
compiler=$CC
4929
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4930
 
_LT_CC_BASENAME([$compiler])
4931
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4932
 
 
4933
 
AC_LIBTOOL_CONFIG($1)
4934
 
 
4935
 
AC_LANG_RESTORE
4936
 
CC="$lt_save_CC"
4937
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4938
 
 
4939
 
 
4940
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4941
 
# ----------------------------
4942
 
# If TAGNAME is not passed, then create an initial libtool script
4943
 
# with a default configuration from the untagged config vars.  Otherwise
4944
 
# add code to config.status for appending the configuration named by
4945
 
# TAGNAME from the matching tagged config vars.
4946
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4947
 
[# The else clause should only fire when bootstrapping the
4948
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4949
 
# with your package, and you will get complaints that there are
4950
 
# no rules to generate ltmain.sh.
4951
 
if test -f "$ltmain"; then
4952
 
  # See if we are running on zsh, and set the options which allow our commands through
4953
 
  # without removal of \ escapes.
4954
 
  if test -n "${ZSH_VERSION+set}" ; then
4955
 
    setopt NO_GLOB_SUBST
4956
 
  fi
4957
 
  # Now quote all the things that may contain metacharacters while being
4958
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4959
 
  # variables and quote the copies for generation of the libtool script.
4960
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4961
 
    SED SHELL STRIP \
4962
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4963
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4964
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4965
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4966
 
    lt_cv_sys_global_symbol_to_c_name_address \
4967
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4968
 
    old_postinstall_cmds old_postuninstall_cmds \
4969
 
    _LT_AC_TAGVAR(compiler, $1) \
4970
 
    _LT_AC_TAGVAR(CC, $1) \
4971
 
    _LT_AC_TAGVAR(LD, $1) \
4972
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4973
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4974
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4975
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4976
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4977
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4978
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4979
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4980
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4981
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4982
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4983
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4984
 
    _LT_AC_TAGVAR(predeps, $1) \
4985
 
    _LT_AC_TAGVAR(postdeps, $1) \
4986
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4987
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4988
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4989
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4990
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4991
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4992
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4993
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4994
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4995
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4996
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4997
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4998
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4999
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5000
 
    _LT_AC_TAGVAR(module_cmds, $1) \
5001
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5002
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5003
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5004
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5005
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
5006
 
 
5007
 
    case $var in
5008
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5009
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5010
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5011
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5012
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
5013
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5014
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5015
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5016
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5017
 
    postinstall_cmds | postuninstall_cmds | \
5018
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5019
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5020
 
      # Double-quote double-evaled strings.
5021
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5022
 
      ;;
5023
 
    *)
5024
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5025
 
      ;;
5026
 
    esac
5027
 
  done
5028
 
 
5029
 
  case $lt_echo in
5030
 
  *'\[$]0 --fallback-echo"')
5031
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5032
 
    ;;
5033
 
  esac
5034
 
 
5035
 
ifelse([$1], [],
5036
 
  [cfgfile="${ofile}T"
5037
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5038
 
  $rm -f "$cfgfile"
5039
 
  AC_MSG_NOTICE([creating $ofile])],
5040
 
  [cfgfile="$ofile"])
5041
 
 
5042
 
  cat <<__EOF__ >> "$cfgfile"
5043
 
ifelse([$1], [],
5044
 
[#! $SHELL
5045
 
 
5046
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5047
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5048
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5049
 
#
5050
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5051
 
# Free Software Foundation, Inc.
5052
 
#
5053
 
# This file is part of GNU Libtool:
5054
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5055
 
#
5056
 
# This program is free software; you can redistribute it and/or modify
5057
 
# it under the terms of the GNU General Public License as published by
5058
 
# the Free Software Foundation; either version 2 of the License, or
5059
 
# (at your option) any later version.
5060
 
#
5061
 
# This program is distributed in the hope that it will be useful, but
5062
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5063
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5064
 
# General Public License for more details.
5065
 
#
5066
 
# You should have received a copy of the GNU General Public License
5067
 
# along with this program; if not, write to the Free Software
5068
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5069
 
#
5070
 
# As a special exception to the GNU General Public License, if you
5071
 
# distribute this file as part of a program that contains a
5072
 
# configuration script generated by Autoconf, you may include it under
5073
 
# the same distribution terms that you use for the rest of that program.
5074
 
 
5075
 
# A sed program that does not truncate output.
5076
 
SED=$lt_SED
5077
 
 
5078
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5079
 
Xsed="$SED -e 1s/^X//"
5080
 
 
5081
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5082
 
# if CDPATH is set.
5083
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5084
 
 
5085
 
# The names of the tagged configurations supported by this script.
5086
 
available_tags=
5087
 
 
5088
 
# ### BEGIN LIBTOOL CONFIG],
5089
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5090
 
 
5091
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5092
 
 
5093
 
# Shell to use when invoking shell scripts.
5094
 
SHELL=$lt_SHELL
5095
 
 
5096
 
# Whether or not to build shared libraries.
5097
 
build_libtool_libs=$enable_shared
5098
 
 
5099
 
# Whether or not to build static libraries.
5100
 
build_old_libs=$enable_static
5101
 
 
5102
 
# Whether or not to add -lc for building shared libraries.
5103
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5104
 
 
5105
 
# Whether or not to disallow shared libs when runtime libs are static
5106
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5107
 
 
5108
 
# Whether or not to optimize for fast installation.
5109
 
fast_install=$enable_fast_install
5110
 
 
5111
 
# The host system.
5112
 
host_alias=$host_alias
5113
 
host=$host
5114
 
host_os=$host_os
5115
 
 
5116
 
# The build system.
5117
 
build_alias=$build_alias
5118
 
build=$build
5119
 
build_os=$build_os
5120
 
 
5121
 
# An echo program that does not interpret backslashes.
5122
 
echo=$lt_echo
5123
 
 
5124
 
# The archiver.
5125
 
AR=$lt_AR
5126
 
AR_FLAGS=$lt_AR_FLAGS
5127
 
 
5128
 
# A C compiler.
5129
 
LTCC=$lt_LTCC
5130
 
 
5131
 
# LTCC compiler flags.
5132
 
LTCFLAGS=$lt_LTCFLAGS
5133
 
 
5134
 
# A language-specific compiler.
5135
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5136
 
 
5137
 
# Is the compiler the GNU C compiler?
5138
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5139
 
 
5140
 
# An ERE matcher.
5141
 
EGREP=$lt_EGREP
5142
 
 
5143
 
# The linker used to build libraries.
5144
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5145
 
 
5146
 
# Whether we need hard or soft links.
5147
 
LN_S=$lt_LN_S
5148
 
 
5149
 
# A BSD-compatible nm program.
5150
 
NM=$lt_NM
5151
 
 
5152
 
# A symbol stripping program
5153
 
STRIP=$lt_STRIP
5154
 
 
5155
 
# Used to examine libraries when file_magic_cmd begins "file"
5156
 
MAGIC_CMD=$MAGIC_CMD
5157
 
 
5158
 
# Used on cygwin: DLL creation program.
5159
 
DLLTOOL="$DLLTOOL"
5160
 
 
5161
 
# Used on cygwin: object dumper.
5162
 
OBJDUMP="$OBJDUMP"
5163
 
 
5164
 
# Used on cygwin: assembler.
5165
 
AS="$AS"
5166
 
 
5167
 
# The name of the directory that contains temporary libtool files.
5168
 
objdir=$objdir
5169
 
 
5170
 
# How to create reloadable object files.
5171
 
reload_flag=$lt_reload_flag
5172
 
reload_cmds=$lt_reload_cmds
5173
 
 
5174
 
# How to pass a linker flag through the compiler.
5175
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5176
 
 
5177
 
# Object file suffix (normally "o").
5178
 
objext="$ac_objext"
5179
 
 
5180
 
# Old archive suffix (normally "a").
5181
 
libext="$libext"
5182
 
 
5183
 
# Shared library suffix (normally ".so").
5184
 
shrext_cmds='$shrext_cmds'
5185
 
 
5186
 
# Executable file suffix (normally "").
5187
 
exeext="$exeext"
5188
 
 
5189
 
# Additional compiler flags for building library objects.
5190
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5191
 
pic_mode=$pic_mode
5192
 
 
5193
 
# What is the maximum length of a command?
5194
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5195
 
 
5196
 
# Does compiler simultaneously support -c and -o options?
5197
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5198
 
 
5199
 
# Must we lock files when doing compilation?
5200
 
need_locks=$lt_need_locks
5201
 
 
5202
 
# Do we need the lib prefix for modules?
5203
 
need_lib_prefix=$need_lib_prefix
5204
 
 
5205
 
# Do we need a version for libraries?
5206
 
need_version=$need_version
5207
 
 
5208
 
# Whether dlopen is supported.
5209
 
dlopen_support=$enable_dlopen
5210
 
 
5211
 
# Whether dlopen of programs is supported.
5212
 
dlopen_self=$enable_dlopen_self
5213
 
 
5214
 
# Whether dlopen of statically linked programs is supported.
5215
 
dlopen_self_static=$enable_dlopen_self_static
5216
 
 
5217
 
# Compiler flag to prevent dynamic linking.
5218
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5219
 
 
5220
 
# Compiler flag to turn off builtin functions.
5221
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5222
 
 
5223
 
# Compiler flag to allow reflexive dlopens.
5224
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5225
 
 
5226
 
# Compiler flag to generate shared objects directly from archives.
5227
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5228
 
 
5229
 
# Compiler flag to generate thread-safe objects.
5230
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5231
 
 
5232
 
# Library versioning type.
5233
 
version_type=$version_type
5234
 
 
5235
 
# Format of library name prefix.
5236
 
libname_spec=$lt_libname_spec
5237
 
 
5238
 
# List of archive names.  First name is the real one, the rest are links.
5239
 
# The last name is the one that the linker finds with -lNAME.
5240
 
library_names_spec=$lt_library_names_spec
5241
 
 
5242
 
# The coded name of the library, if different from the real name.
5243
 
soname_spec=$lt_soname_spec
5244
 
 
5245
 
# Commands used to build and install an old-style archive.
5246
 
RANLIB=$lt_RANLIB
5247
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5248
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5249
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5250
 
 
5251
 
# Create an old-style archive from a shared archive.
5252
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5253
 
 
5254
 
# Create a temporary old-style archive to link instead of a shared archive.
5255
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5256
 
 
5257
 
# Commands used to build and install a shared archive.
5258
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5259
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5260
 
postinstall_cmds=$lt_postinstall_cmds
5261
 
postuninstall_cmds=$lt_postuninstall_cmds
5262
 
 
5263
 
# Commands used to build a loadable module (assumed same as above if empty)
5264
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5265
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5266
 
 
5267
 
# Commands to strip libraries.
5268
 
old_striplib=$lt_old_striplib
5269
 
striplib=$lt_striplib
5270
 
 
5271
 
# Dependencies to place before the objects being linked to create a
5272
 
# shared library.
5273
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5274
 
 
5275
 
# Dependencies to place after the objects being linked to create a
5276
 
# shared library.
5277
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5278
 
 
5279
 
# Dependencies to place before the objects being linked to create a
5280
 
# shared library.
5281
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5282
 
 
5283
 
# Dependencies to place after the objects being linked to create a
5284
 
# shared library.
5285
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5286
 
 
5287
 
# The directories searched by this compiler when creating a shared
5288
 
# library
5289
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5290
 
 
5291
 
# The library search path used internally by the compiler when linking
5292
 
# a shared library.
5293
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5294
 
 
5295
 
# Method to check whether dependent libraries are shared objects.
5296
 
deplibs_check_method=$lt_deplibs_check_method
5297
 
 
5298
 
# Command to use when deplibs_check_method == file_magic.
5299
 
file_magic_cmd=$lt_file_magic_cmd
5300
 
 
5301
 
# Flag that allows shared libraries with undefined symbols to be built.
5302
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5303
 
 
5304
 
# Flag that forces no undefined symbols.
5305
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5306
 
 
5307
 
# Commands used to finish a libtool library installation in a directory.
5308
 
finish_cmds=$lt_finish_cmds
5309
 
 
5310
 
# Same as above, but a single script fragment to be evaled but not shown.
5311
 
finish_eval=$lt_finish_eval
5312
 
 
5313
 
# Take the output of nm and produce a listing of raw symbols and C names.
5314
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5315
 
 
5316
 
# Transform the output of nm in a proper C declaration
5317
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5318
 
 
5319
 
# Transform the output of nm in a C name address pair
5320
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5321
 
 
5322
 
# This is the shared library runtime path variable.
5323
 
runpath_var=$runpath_var
5324
 
 
5325
 
# This is the shared library path variable.
5326
 
shlibpath_var=$shlibpath_var
5327
 
 
5328
 
# Is shlibpath searched before the hard-coded library search path?
5329
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5330
 
 
5331
 
# How to hardcode a shared library path into an executable.
5332
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5333
 
 
5334
 
# Whether we should hardcode library paths into libraries.
5335
 
hardcode_into_libs=$hardcode_into_libs
5336
 
 
5337
 
# Flag to hardcode \$libdir into a binary during linking.
5338
 
# This must work even if \$libdir does not exist.
5339
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5340
 
 
5341
 
# If ld is used when linking, flag to hardcode \$libdir into
5342
 
# a binary during linking. This must work even if \$libdir does
5343
 
# not exist.
5344
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5345
 
 
5346
 
# Whether we need a single -rpath flag with a separated argument.
5347
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5348
 
 
5349
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5350
 
# resulting binary.
5351
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5352
 
 
5353
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5354
 
# resulting binary.
5355
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5356
 
 
5357
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5358
 
# the resulting binary.
5359
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5360
 
 
5361
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5362
 
# and all subsequent libraries and executables linked against it.
5363
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5364
 
 
5365
 
# Variables whose values should be saved in libtool wrapper scripts and
5366
 
# restored at relink time.
5367
 
variables_saved_for_relink="$variables_saved_for_relink"
5368
 
 
5369
 
# Whether libtool must link a program against all its dependency libraries.
5370
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5371
 
 
5372
 
# Compile-time system search path for libraries
5373
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5374
 
 
5375
 
# Run-time system search path for libraries
5376
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5377
 
 
5378
 
# Fix the shell variable \$srcfile for the compiler.
5379
 
fix_srcfile_path=$lt_fix_srcfile_path
5380
 
 
5381
 
# Set to yes if exported symbols are required.
5382
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5383
 
 
5384
 
# The commands to list exported symbols.
5385
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5386
 
 
5387
 
# The commands to extract the exported symbol list from a shared archive.
5388
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5389
 
 
5390
 
# Symbols that should not be listed in the preloaded symbols.
5391
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5392
 
 
5393
 
# Symbols that must always be exported.
5394
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5395
 
 
5396
 
ifelse([$1],[],
5397
 
[# ### END LIBTOOL CONFIG],
5398
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5399
 
 
5400
 
__EOF__
5401
 
 
5402
 
ifelse([$1],[], [
5403
 
  case $host_os in
5404
 
  aix3*)
5405
 
    cat <<\EOF >> "$cfgfile"
5406
 
 
5407
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5408
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5409
 
# vanish in a puff of smoke.
5410
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5411
 
  COLLECT_NAMES=
5412
 
  export COLLECT_NAMES
5413
 
fi
5414
 
EOF
5415
 
    ;;
5416
 
  esac
5417
 
 
5418
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5419
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5420
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5421
 
  # is reportedly fixed, but why not run on old versions too?
5422
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5423
 
 
5424
 
  mv -f "$cfgfile" "$ofile" || \
5425
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5426
 
  chmod +x "$ofile"
5427
 
])
5428
 
else
5429
 
  # If there is no Makefile yet, we rely on a make rule to execute
5430
 
  # `config.status --recheck' to rerun these tests and create the
5431
 
  # libtool script then.
5432
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5433
 
  if test -f "$ltmain_in"; then
5434
 
    test -f Makefile && make "$ltmain"
5435
 
  fi
5436
 
fi
5437
 
])# AC_LIBTOOL_CONFIG
5438
 
 
5439
 
 
5440
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5441
 
# -------------------------------------------
5442
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5443
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5444
 
 
5445
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5446
 
 
5447
 
if test "$GCC" = yes; then
5448
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5449
 
 
5450
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5451
 
    lt_cv_prog_compiler_rtti_exceptions,
5452
 
    [-fno-rtti -fno-exceptions], [],
5453
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5454
 
fi
5455
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5456
 
 
5457
 
 
5458
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5459
 
# ---------------------------------
5460
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5461
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5462
 
AC_REQUIRE([LT_AC_PROG_SED])
5463
 
AC_REQUIRE([AC_PROG_NM])
5464
 
AC_REQUIRE([AC_OBJEXT])
5465
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5466
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5467
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5468
 
[
5469
 
# These are sane defaults that work on at least a few old systems.
5470
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5471
 
 
5472
 
# Character class describing NM global symbol codes.
5473
 
symcode='[[BCDEGRST]]'
5474
 
 
5475
 
# Regexp to match symbols that can be accessed directly from C.
5476
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5477
 
 
5478
 
# Transform an extracted symbol line into a proper C declaration
5479
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5480
 
 
5481
 
# Transform an extracted symbol line into symbol name and symbol address
5482
 
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'"
5483
 
 
5484
 
# Define system-specific variables.
5485
 
case $host_os in
5486
 
aix*)
5487
 
  symcode='[[BCDT]]'
5488
 
  ;;
5489
 
cygwin* | mingw* | pw32*)
5490
 
  symcode='[[ABCDGISTW]]'
5491
 
  ;;
5492
 
hpux*) # Its linker distinguishes data from code symbols
5493
 
  if test "$host_cpu" = ia64; then
5494
 
    symcode='[[ABCDEGRST]]'
5495
 
  fi
5496
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5497
 
  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'"
5498
 
  ;;
5499
 
linux* | k*bsd*-gnu)
5500
 
  if test "$host_cpu" = ia64; then
5501
 
    symcode='[[ABCDGIRSTW]]'
5502
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503
 
    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'"
5504
 
  fi
5505
 
  ;;
5506
 
irix* | nonstopux*)
5507
 
  symcode='[[BCDEGRST]]'
5508
 
  ;;
5509
 
osf*)
5510
 
  symcode='[[BCDEGQRST]]'
5511
 
  ;;
5512
 
solaris*)
5513
 
  symcode='[[BDRT]]'
5514
 
  ;;
5515
 
sco3.2v5*)
5516
 
  symcode='[[DT]]'
5517
 
  ;;
5518
 
sysv4.2uw2*)
5519
 
  symcode='[[DT]]'
5520
 
  ;;
5521
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5522
 
  symcode='[[ABDT]]'
5523
 
  ;;
5524
 
sysv4)
5525
 
  symcode='[[DFNSTU]]'
5526
 
  ;;
5527
 
esac
5528
 
 
5529
 
# Handle CRLF in mingw tool chain
5530
 
opt_cr=
5531
 
case $build_os in
5532
 
mingw*)
5533
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5534
 
  ;;
5535
 
esac
5536
 
 
5537
 
# If we're using GNU nm, then use its standard symbol codes.
5538
 
case `$NM -V 2>&1` in
5539
 
*GNU* | *'with BFD'*)
5540
 
  symcode='[[ABCDGIRSTW]]' ;;
5541
 
esac
5542
 
 
5543
 
# Try without a prefix undercore, then with it.
5544
 
for ac_symprfx in "" "_"; do
5545
 
 
5546
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5547
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5548
 
 
5549
 
  # Write the raw and C identifiers.
5550
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5551
 
 
5552
 
  # Check to see that the pipe works correctly.
5553
 
  pipe_works=no
5554
 
 
5555
 
  rm -f conftest*
5556
 
  cat > conftest.$ac_ext <<EOF
5557
 
#ifdef __cplusplus
5558
 
extern "C" {
5559
 
#endif
5560
 
char nm_test_var;
5561
 
void nm_test_func(){}
5562
 
#ifdef __cplusplus
5563
 
}
5564
 
#endif
5565
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5566
 
EOF
5567
 
 
5568
 
  if AC_TRY_EVAL(ac_compile); then
5569
 
    # Now try to grab the symbols.
5570
 
    nlist=conftest.nm
5571
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5572
 
      # Try sorting and uniquifying the output.
5573
 
      if sort "$nlist" | uniq > "$nlist"T; then
5574
 
        mv -f "$nlist"T "$nlist"
5575
 
      else
5576
 
        rm -f "$nlist"T
5577
 
      fi
5578
 
 
5579
 
      # Make sure that we snagged all the symbols we need.
5580
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5581
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5582
 
          cat <<EOF > conftest.$ac_ext
5583
 
#ifdef __cplusplus
5584
 
extern "C" {
5585
 
#endif
5586
 
 
5587
 
EOF
5588
 
          # Now generate the symbol file.
5589
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5590
 
 
5591
 
          cat <<EOF >> conftest.$ac_ext
5592
 
#if defined (__STDC__) && __STDC__
5593
 
# define lt_ptr_t void *
5594
 
#else
5595
 
# define lt_ptr_t char *
5596
 
# define const
5597
 
#endif
5598
 
 
5599
 
/* The mapping between symbol names and symbols. */
5600
 
const struct {
5601
 
  const char *name;
5602
 
  lt_ptr_t address;
5603
 
}
5604
 
lt_preloaded_symbols[[]] =
5605
 
{
5606
 
EOF
5607
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5608
 
          cat <<\EOF >> conftest.$ac_ext
5609
 
  {0, (lt_ptr_t) 0}
5610
 
};
5611
 
 
5612
 
#ifdef __cplusplus
5613
 
}
5614
 
#endif
5615
 
EOF
5616
 
          # Now try linking the two files.
5617
 
          mv conftest.$ac_objext conftstm.$ac_objext
5618
 
          lt_save_LIBS="$LIBS"
5619
 
          lt_save_CFLAGS="$CFLAGS"
5620
 
          LIBS="conftstm.$ac_objext"
5621
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5622
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5623
 
            pipe_works=yes
5624
 
          fi
5625
 
          LIBS="$lt_save_LIBS"
5626
 
          CFLAGS="$lt_save_CFLAGS"
5627
 
        else
5628
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5629
 
        fi
5630
 
      else
5631
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5632
 
      fi
5633
 
    else
5634
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5635
 
    fi
5636
 
  else
5637
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5638
 
    cat conftest.$ac_ext >&5
5639
 
  fi
5640
 
  rm -rf conftest* conftst*
5641
 
 
5642
 
  # Do not use the global_symbol_pipe unless it works.
5643
 
  if test "$pipe_works" = yes; then
5644
 
    break
5645
 
  else
5646
 
    lt_cv_sys_global_symbol_pipe=
5647
 
  fi
5648
 
done
5649
 
])
5650
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5651
 
  lt_cv_sys_global_symbol_to_cdecl=
5652
 
fi
5653
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5654
 
  AC_MSG_RESULT(failed)
5655
 
else
5656
 
  AC_MSG_RESULT(ok)
5657
 
fi
5658
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5659
 
 
5660
 
 
5661
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5662
 
# ---------------------------------------
5663
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5664
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5665
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5666
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5667
 
 
5668
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
5669
 
 ifelse([$1],[CXX],[
5670
 
  # C++ specific cases for pic, static, wl, etc.
5671
 
  if test "$GXX" = yes; then
5672
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5673
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5674
 
 
5675
 
    case $host_os in
5676
 
    aix*)
5677
 
      # All AIX code is PIC.
5678
 
      if test "$host_cpu" = ia64; then
5679
 
        # AIX 5 now supports IA64 processor
5680
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5681
 
      fi
5682
 
      ;;
5683
 
    amigaos*)
5684
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5685
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5686
 
      # like `-m68040'.
5687
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5688
 
      ;;
5689
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5690
 
      # PIC is the default for these OSes.
5691
 
      ;;
5692
 
    mingw* | cygwin* | os2* | pw32*)
5693
 
      # This hack is so that the source file can tell whether it is being
5694
 
      # built for inclusion in a dll (and should export symbols for example).
5695
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5696
 
      # (--disable-auto-import) libraries
5697
 
      m4_if([$1], [GCJ], [],
5698
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5699
 
      ;;
5700
 
    darwin* | rhapsody*)
5701
 
      # PIC is the default on this platform
5702
 
      # Common symbols not allowed in MH_DYLIB files
5703
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5704
 
      ;;
5705
 
    *djgpp*)
5706
 
      # DJGPP does not support shared libraries at all
5707
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5708
 
      ;;
5709
 
    interix[[3-9]]*)
5710
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5711
 
      # Instead, we relocate shared libraries at runtime.
5712
 
      ;;
5713
 
    sysv4*MP*)
5714
 
      if test -d /usr/nec; then
5715
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5716
 
      fi
5717
 
      ;;
5718
 
    hpux*)
5719
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5720
 
      # not for PA HP-UX.
5721
 
      case $host_cpu in
5722
 
      hppa*64*|ia64*)
5723
 
        ;;
5724
 
      *)
5725
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5726
 
        ;;
5727
 
      esac
5728
 
      ;;
5729
 
    *)
5730
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5731
 
      ;;
5732
 
    esac
5733
 
  else
5734
 
    case $host_os in
5735
 
      aix[[4-9]]*)
5736
 
        # All AIX code is PIC.
5737
 
        if test "$host_cpu" = ia64; then
5738
 
          # AIX 5 now supports IA64 processor
5739
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5740
 
        else
5741
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5742
 
        fi
5743
 
        ;;
5744
 
      chorus*)
5745
 
        case $cc_basename in
5746
 
        cxch68*)
5747
 
          # Green Hills C++ Compiler
5748
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
5749
 
          ;;
5750
 
        esac
5751
 
        ;;
5752
 
       darwin*)
5753
 
         # PIC is the default on this platform
5754
 
         # Common symbols not allowed in MH_DYLIB files
5755
 
         case $cc_basename in
5756
 
           xlc*)
5757
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5758
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5759
 
           ;;
5760
 
         esac
5761
 
       ;;
5762
 
      dgux*)
5763
 
        case $cc_basename in
5764
 
          ec++*)
5765
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5766
 
            ;;
5767
 
          ghcx*)
5768
 
            # Green Hills C++ Compiler
5769
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5770
 
            ;;
5771
 
          *)
5772
 
            ;;
5773
 
        esac
5774
 
        ;;
5775
 
      freebsd* | dragonfly*)
5776
 
        # FreeBSD uses GNU C++
5777
 
        ;;
5778
 
      hpux9* | hpux10* | hpux11*)
5779
 
        case $cc_basename in
5780
 
          CC*)
5781
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5782
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5783
 
            if test "$host_cpu" != ia64; then
5784
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5785
 
            fi
5786
 
            ;;
5787
 
          aCC*)
5788
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5789
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5790
 
            case $host_cpu in
5791
 
            hppa*64*|ia64*)
5792
 
              # +Z the default
5793
 
              ;;
5794
 
            *)
5795
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5796
 
              ;;
5797
 
            esac
5798
 
            ;;
5799
 
          *)
5800
 
            ;;
5801
 
        esac
5802
 
        ;;
5803
 
      interix*)
5804
 
        # This is c89, which is MS Visual C++ (no shared libs)
5805
 
        # Anyone wants to do a port?
5806
 
        ;;
5807
 
      irix5* | irix6* | nonstopux*)
5808
 
        case $cc_basename in
5809
 
          CC*)
5810
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5811
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5812
 
            # CC pic flag -KPIC is the default.
5813
 
            ;;
5814
 
          *)
5815
 
            ;;
5816
 
        esac
5817
 
        ;;
5818
 
      linux* | k*bsd*-gnu)
5819
 
        case $cc_basename in
5820
 
          KCC*)
5821
 
            # KAI C++ Compiler
5822
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5823
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5824
 
            ;;
5825
 
          icpc* | ecpc*)
5826
 
            # Intel C++
5827
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5828
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5829
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5830
 
            ;;
5831
 
          pgCC* | pgcpp*)
5832
 
            # Portland Group C++ compiler.
5833
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5834
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5835
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5836
 
            ;;
5837
 
          cxx*)
5838
 
            # Compaq C++
5839
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5840
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5841
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5842
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5843
 
            ;;
5844
 
          *)
5845
 
            case `$CC -V 2>&1 | sed 5q` in
5846
 
            *Sun\ C*)
5847
 
              # Sun C++ 5.9
5848
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5849
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5850
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5851
 
              ;;
5852
 
            esac
5853
 
            ;;
5854
 
        esac
5855
 
        ;;
5856
 
      lynxos*)
5857
 
        ;;
5858
 
      m88k*)
5859
 
        ;;
5860
 
      mvs*)
5861
 
        case $cc_basename in
5862
 
          cxx*)
5863
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5864
 
            ;;
5865
 
          *)
5866
 
            ;;
5867
 
        esac
5868
 
        ;;
5869
 
      netbsd* | netbsdelf*-gnu)
5870
 
        ;;
5871
 
      osf3* | osf4* | osf5*)
5872
 
        case $cc_basename in
5873
 
          KCC*)
5874
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5875
 
            ;;
5876
 
          RCC*)
5877
 
            # Rational C++ 2.4.1
5878
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5879
 
            ;;
5880
 
          cxx*)
5881
 
            # Digital/Compaq C++
5882
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5883
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5884
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5885
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5886
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5887
 
            ;;
5888
 
          *)
5889
 
            ;;
5890
 
        esac
5891
 
        ;;
5892
 
      psos*)
5893
 
        ;;
5894
 
      solaris*)
5895
 
        case $cc_basename in
5896
 
          CC*)
5897
 
            # Sun C++ 4.2, 5.x and Centerline C++
5898
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5899
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5900
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5901
 
            ;;
5902
 
          gcx*)
5903
 
            # Green Hills C++ Compiler
5904
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5905
 
            ;;
5906
 
          *)
5907
 
            ;;
5908
 
        esac
5909
 
        ;;
5910
 
      sunos4*)
5911
 
        case $cc_basename in
5912
 
          CC*)
5913
 
            # Sun C++ 4.x
5914
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5915
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5916
 
            ;;
5917
 
          lcc*)
5918
 
            # Lucid
5919
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5920
 
            ;;
5921
 
          *)
5922
 
            ;;
5923
 
        esac
5924
 
        ;;
5925
 
      tandem*)
5926
 
        case $cc_basename in
5927
 
          NCC*)
5928
 
            # NonStop-UX NCC 3.20
5929
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5930
 
            ;;
5931
 
          *)
5932
 
            ;;
5933
 
        esac
5934
 
        ;;
5935
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5936
 
        case $cc_basename in
5937
 
          CC*)
5938
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5939
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5940
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5941
 
            ;;
5942
 
        esac
5943
 
        ;;
5944
 
      vxworks*)
5945
 
        ;;
5946
 
      *)
5947
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5948
 
        ;;
5949
 
    esac
5950
 
  fi
5951
 
],
5952
 
[
5953
 
  if test "$GCC" = yes; then
5954
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5955
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5956
 
 
5957
 
    case $host_os in
5958
 
      aix*)
5959
 
      # All AIX code is PIC.
5960
 
      if test "$host_cpu" = ia64; then
5961
 
        # AIX 5 now supports IA64 processor
5962
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5963
 
      fi
5964
 
      ;;
5965
 
 
5966
 
    amigaos*)
5967
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5968
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5969
 
      # like `-m68040'.
5970
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5971
 
      ;;
5972
 
 
5973
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5974
 
      # PIC is the default for these OSes.
5975
 
      ;;
5976
 
 
5977
 
    mingw* | cygwin* | pw32* | os2*)
5978
 
      # This hack is so that the source file can tell whether it is being
5979
 
      # built for inclusion in a dll (and should export symbols for example).
5980
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5981
 
      # (--disable-auto-import) libraries
5982
 
      m4_if([$1], [GCJ], [],
5983
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5984
 
      ;;
5985
 
 
5986
 
    darwin* | rhapsody*)
5987
 
      # PIC is the default on this platform
5988
 
      # Common symbols not allowed in MH_DYLIB files
5989
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5990
 
      ;;
5991
 
 
5992
 
    interix[[3-9]]*)
5993
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5994
 
      # Instead, we relocate shared libraries at runtime.
5995
 
      ;;
5996
 
 
5997
 
    msdosdjgpp*)
5998
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5999
 
      # on systems that don't support them.
6000
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6001
 
      enable_shared=no
6002
 
      ;;
6003
 
 
6004
 
    sysv4*MP*)
6005
 
      if test -d /usr/nec; then
6006
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6007
 
      fi
6008
 
      ;;
6009
 
 
6010
 
    hpux*)
6011
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6012
 
      # not for PA HP-UX.
6013
 
      case $host_cpu in
6014
 
      hppa*64*|ia64*)
6015
 
        # +Z the default
6016
 
        ;;
6017
 
      *)
6018
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6019
 
        ;;
6020
 
      esac
6021
 
      ;;
6022
 
 
6023
 
    *)
6024
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6025
 
      ;;
6026
 
    esac
6027
 
  else
6028
 
    # PORTME Check for flag to pass linker flags through the system compiler.
6029
 
    case $host_os in
6030
 
    aix*)
6031
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6032
 
      if test "$host_cpu" = ia64; then
6033
 
        # AIX 5 now supports IA64 processor
6034
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6035
 
      else
6036
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6037
 
      fi
6038
 
      ;;
6039
 
      darwin*)
6040
 
        # PIC is the default on this platform
6041
 
        # Common symbols not allowed in MH_DYLIB files
6042
 
       case $cc_basename in
6043
 
         xlc*)
6044
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6045
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6046
 
         ;;
6047
 
       esac
6048
 
       ;;
6049
 
 
6050
 
    mingw* | cygwin* | pw32* | os2*)
6051
 
      # This hack is so that the source file can tell whether it is being
6052
 
      # built for inclusion in a dll (and should export symbols for example).
6053
 
      m4_if([$1], [GCJ], [],
6054
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6055
 
      ;;
6056
 
 
6057
 
    hpux9* | hpux10* | hpux11*)
6058
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6059
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6060
 
      # not for PA HP-UX.
6061
 
      case $host_cpu in
6062
 
      hppa*64*|ia64*)
6063
 
        # +Z the default
6064
 
        ;;
6065
 
      *)
6066
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6067
 
        ;;
6068
 
      esac
6069
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6070
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6071
 
      ;;
6072
 
 
6073
 
    irix5* | irix6* | nonstopux*)
6074
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6075
 
      # PIC (with -KPIC) is the default.
6076
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6077
 
      ;;
6078
 
 
6079
 
    newsos6)
6080
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6081
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6082
 
      ;;
6083
 
 
6084
 
    linux* | k*bsd*-gnu)
6085
 
      case $cc_basename in
6086
 
      icc* | ecc*)
6087
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6088
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6089
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6090
 
        ;;
6091
 
      pgcc* | pgf77* | pgf90* | pgf95*)
6092
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
6093
 
        # which looks to be a dead project)
6094
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6095
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6096
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6097
 
        ;;
6098
 
      ccc*)
6099
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6100
 
        # All Alpha code is PIC.
6101
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6102
 
        ;;
6103
 
      *)
6104
 
        case `$CC -V 2>&1 | sed 5q` in
6105
 
        *Sun\ C*)
6106
 
          # Sun C 5.9
6107
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6108
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6109
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
 
          ;;
6111
 
        *Sun\ F*)
6112
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6113
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6114
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6115
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6116
 
          ;;
6117
 
        esac
6118
 
        ;;
6119
 
      esac
6120
 
      ;;
6121
 
 
6122
 
    osf3* | osf4* | osf5*)
6123
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6124
 
      # All OSF/1 code is PIC.
6125
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6126
 
      ;;
6127
 
 
6128
 
    rdos*)
6129
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6130
 
      ;;
6131
 
 
6132
 
    solaris*)
6133
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6134
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6135
 
      case $cc_basename in
6136
 
      f77* | f90* | f95*)
6137
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6138
 
      *)
6139
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6140
 
      esac
6141
 
      ;;
6142
 
 
6143
 
    sunos4*)
6144
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6145
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6146
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6147
 
      ;;
6148
 
 
6149
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
6150
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6152
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6153
 
      ;;
6154
 
 
6155
 
    sysv4*MP*)
6156
 
      if test -d /usr/nec ;then
6157
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6158
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6159
 
      fi
6160
 
      ;;
6161
 
 
6162
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6163
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6164
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6165
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6166
 
      ;;
6167
 
 
6168
 
    unicos*)
6169
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6170
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6171
 
      ;;
6172
 
 
6173
 
    uts4*)
6174
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6175
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6176
 
      ;;
6177
 
 
6178
 
    *)
6179
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6180
 
      ;;
6181
 
    esac
6182
 
  fi
6183
 
])
6184
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6185
 
 
6186
 
#
6187
 
# Check to make sure the PIC flag actually works.
6188
 
#
6189
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6190
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6191
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6192
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6193
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6194
 
     "" | " "*) ;;
6195
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6196
 
     esac],
6197
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6198
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6199
 
fi
6200
 
case $host_os in
6201
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6202
 
  *djgpp*)
6203
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6204
 
    ;;
6205
 
  *)
6206
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6207
 
    ;;
6208
 
esac
6209
 
 
6210
 
#
6211
 
# Check to make sure the static flag actually works.
6212
 
#
6213
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6214
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6215
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6216
 
  $lt_tmp_static_flag,
6217
 
  [],
6218
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6219
 
])
6220
 
 
6221
 
 
6222
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6223
 
# ------------------------------------
6224
 
# See if the linker supports building shared libraries.
6225
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6226
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6227
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6228
 
ifelse([$1],[CXX],[
6229
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6230
 
  case $host_os in
6231
 
  aix[[4-9]]*)
6232
 
    # If we're using GNU nm, then we don't want the "-C" option.
6233
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6234
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6235
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6236
 
    else
6237
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6238
 
    fi
6239
 
    ;;
6240
 
  pw32*)
6241
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6242
 
  ;;
6243
 
  cygwin* | mingw*)
6244
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
6245
 
  ;;
6246
 
  linux* | k*bsd*-gnu)
6247
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6248
 
  ;;
6249
 
  *)
6250
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6251
 
  ;;
6252
 
  esac
6253
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6254
 
],[
6255
 
  runpath_var=
6256
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6257
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6258
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6259
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6260
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6261
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6262
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6263
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6264
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6265
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6266
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6267
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6268
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6269
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6270
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6271
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6272
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6273
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6274
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6275
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6276
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6277
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6278
 
  # included in the symbol list
6279
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
6280
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6281
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6282
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6283
 
  # as well as any symbol that contains `d'.
6284
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6285
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6286
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6287
 
  # the symbol is explicitly referenced.  Since portable code cannot
6288
 
  # rely on this symbol name, it's probably fine to never include it in
6289
 
  # preloaded symbol tables.
6290
 
  # Exclude shared library initialization/finalization symbols.
6291
 
dnl Note also adjust exclude_expsyms for C++ above.
6292
 
  extract_expsyms_cmds=
6293
 
  # Just being paranoid about ensuring that cc_basename is set.
6294
 
  _LT_CC_BASENAME([$compiler])
6295
 
  case $host_os in
6296
 
  cygwin* | mingw* | pw32*)
6297
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6298
 
    # When not using gcc, we currently assume that we are using
6299
 
    # Microsoft Visual C++.
6300
 
    if test "$GCC" != yes; then
6301
 
      with_gnu_ld=no
6302
 
    fi
6303
 
    ;;
6304
 
  interix*)
6305
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6306
 
    with_gnu_ld=yes
6307
 
    ;;
6308
 
  openbsd*)
6309
 
    with_gnu_ld=no
6310
 
    ;;
6311
 
  esac
6312
 
 
6313
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6314
 
  if test "$with_gnu_ld" = yes; then
6315
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6316
 
    wlarc='${wl}'
6317
 
 
6318
 
    # Set some defaults for GNU ld with shared library support. These
6319
 
    # are reset later if shared libraries are not supported. Putting them
6320
 
    # here allows them to be overridden if necessary.
6321
 
    runpath_var=LD_RUN_PATH
6322
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6323
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6324
 
    # ancient GNU ld didn't support --whole-archive et. al.
6325
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6326
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6327
 
      else
6328
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6329
 
    fi
6330
 
    supports_anon_versioning=no
6331
 
    case `$LD -v 2>/dev/null` in
6332
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6333
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6334
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6335
 
      *\ 2.11.*) ;; # other 2.11 versions
6336
 
      *) supports_anon_versioning=yes ;;
6337
 
    esac
6338
 
 
6339
 
    # See if GNU ld supports shared libraries.
6340
 
    case $host_os in
6341
 
    aix[[3-9]]*)
6342
 
      # On AIX/PPC, the GNU linker is very broken
6343
 
      if test "$host_cpu" != ia64; then
6344
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6345
 
        cat <<EOF 1>&2
6346
 
 
6347
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6348
 
*** to be unable to reliably create shared libraries on AIX.
6349
 
*** Therefore, libtool is disabling shared libraries support.  If you
6350
 
*** really care for shared libraries, you may want to modify your PATH
6351
 
*** so that a non-GNU linker is found, and then restart.
6352
 
 
6353
 
EOF
6354
 
      fi
6355
 
      ;;
6356
 
 
6357
 
    amigaos*)
6358
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
6359
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6360
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6361
 
 
6362
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6363
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6364
 
      # to version 4, is to share data among multiple programs linked
6365
 
      # with the same dynamic library.  Since this doesn't match the
6366
 
      # behavior of shared libraries on other platforms, we can't use
6367
 
      # them.
6368
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6369
 
      ;;
6370
 
 
6371
 
    beos*)
6372
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6373
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6374
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6375
 
        # support --undefined.  This deserves some investigation.  FIXME
6376
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6377
 
      else
6378
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6379
 
      fi
6380
 
      ;;
6381
 
 
6382
 
    cygwin* | mingw* | pw32*)
6383
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6384
 
      # as there is no search path for DLLs.
6385
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6386
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6387
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6388
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6389
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6390
 
 
6391
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6392
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6393
 
        # If the export-symbols file already is a .def file (1st line
6394
 
        # is EXPORTS), use it as is; otherwise, prepend...
6395
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6396
 
          cp $export_symbols $output_objdir/$soname.def;
6397
 
        else
6398
 
          echo EXPORTS > $output_objdir/$soname.def;
6399
 
          cat $export_symbols >> $output_objdir/$soname.def;
6400
 
        fi~
6401
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6402
 
      else
6403
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6404
 
      fi
6405
 
      ;;
6406
 
 
6407
 
    interix[[3-9]]*)
6408
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6409
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6410
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6411
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6412
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6413
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6414
 
      # default) and relocated if they conflict, which is a slow very memory
6415
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
6416
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6417
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6418
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6419
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
6420
 
      ;;
6421
 
 
6422
 
    gnu* | linux* | k*bsd*-gnu)
6423
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6424
 
        tmp_addflag=
6425
 
        case $cc_basename,$host_cpu in
6426
 
        pgcc*)                          # Portland Group C compiler
6427
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6428
 
          tmp_addflag=' $pic_flag'
6429
 
          ;;
6430
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6431
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6432
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
6433
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6434
 
          tmp_addflag=' -i_dynamic' ;;
6435
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6436
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6437
 
        ifc* | ifort*)                  # Intel Fortran compiler
6438
 
          tmp_addflag=' -nofor_main' ;;
6439
 
        esac
6440
 
        case `$CC -V 2>&1 | sed 5q` in
6441
 
        *Sun\ C*)                       # Sun C 5.9
6442
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
6443
 
          tmp_sharedflag='-G' ;;
6444
 
        *Sun\ F*)                       # Sun Fortran 8.3
6445
 
          tmp_sharedflag='-G' ;;
6446
 
        *)
6447
 
          tmp_sharedflag='-shared' ;;
6448
 
        esac
6449
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6450
 
 
6451
 
        if test $supports_anon_versioning = yes; then
6452
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6453
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6454
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6455
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6456
 
        fi
6457
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6458
 
      else
6459
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6460
 
      fi
6461
 
      ;;
6462
 
 
6463
 
    netbsd* | netbsdelf*-gnu)
6464
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6465
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6466
 
        wlarc=
6467
 
      else
6468
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6469
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6470
 
      fi
6471
 
      ;;
6472
 
 
6473
 
    solaris*)
6474
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6475
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6476
 
        cat <<EOF 1>&2
6477
 
 
6478
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6479
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6480
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6481
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6482
 
*** your PATH or compiler configuration so that the native linker is
6483
 
*** used, and then restart.
6484
 
 
6485
 
EOF
6486
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6487
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6488
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6489
 
      else
6490
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6491
 
      fi
6492
 
      ;;
6493
 
 
6494
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6495
 
      case `$LD -v 2>&1` in
6496
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6497
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6498
 
        cat <<_LT_EOF 1>&2
6499
 
 
6500
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6501
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
6502
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6503
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6504
 
*** your PATH or compiler configuration so that the native linker is
6505
 
*** used, and then restart.
6506
 
 
6507
 
_LT_EOF
6508
 
        ;;
6509
 
        *)
6510
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6511
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6512
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6513
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6514
 
          else
6515
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
6516
 
          fi
6517
 
        ;;
6518
 
      esac
6519
 
      ;;
6520
 
 
6521
 
    sunos4*)
6522
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6523
 
      wlarc=
6524
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6525
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6526
 
      ;;
6527
 
 
6528
 
    *)
6529
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6530
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6531
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6532
 
      else
6533
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6534
 
      fi
6535
 
      ;;
6536
 
    esac
6537
 
 
6538
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6539
 
      runpath_var=
6540
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6541
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6542
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6543
 
    fi
6544
 
  else
6545
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6546
 
    case $host_os in
6547
 
    aix3*)
6548
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6549
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6550
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6551
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6552
 
      # are no directories specified by -L.
6553
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6554
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6555
 
        # Neither direct hardcoding nor static linking is supported with a
6556
 
        # broken collect2.
6557
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6558
 
      fi
6559
 
      ;;
6560
 
 
6561
 
    aix[[4-9]]*)
6562
 
      if test "$host_cpu" = ia64; then
6563
 
        # On IA64, the linker does run time linking by default, so we don't
6564
 
        # have to do anything special.
6565
 
        aix_use_runtimelinking=no
6566
 
        exp_sym_flag='-Bexport'
6567
 
        no_entry_flag=""
6568
 
      else
6569
 
        # If we're using GNU nm, then we don't want the "-C" option.
6570
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6571
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6572
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6573
 
        else
6574
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6575
 
        fi
6576
 
        aix_use_runtimelinking=no
6577
 
 
6578
 
        # Test if we are trying to use run time linking or normal
6579
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6580
 
        # need to do runtime linking.
6581
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6582
 
          for ld_flag in $LDFLAGS; do
6583
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6584
 
            aix_use_runtimelinking=yes
6585
 
            break
6586
 
          fi
6587
 
          done
6588
 
          ;;
6589
 
        esac
6590
 
 
6591
 
        exp_sym_flag='-bexport'
6592
 
        no_entry_flag='-bnoentry'
6593
 
      fi
6594
 
 
6595
 
      # When large executables or shared objects are built, AIX ld can
6596
 
      # have problems creating the table of contents.  If linking a library
6597
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6598
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6599
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6600
 
 
6601
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6602
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6603
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6604
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6605
 
 
6606
 
      if test "$GCC" = yes; then
6607
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6608
 
        # We only want to do this on AIX 4.2 and lower, the check
6609
 
        # below for broken collect2 doesn't work under 4.3+
6610
 
          collect2name=`${CC} -print-prog-name=collect2`
6611
 
          if test -f "$collect2name" && \
6612
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6613
 
          then
6614
 
          # We have reworked collect2
6615
 
          :
6616
 
          else
6617
 
          # We have old collect2
6618
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6619
 
          # It fails to find uninstalled libraries when the uninstalled
6620
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6621
 
          # to unsupported forces relinking
6622
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6623
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6624
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6625
 
          fi
6626
 
          ;;
6627
 
        esac
6628
 
        shared_flag='-shared'
6629
 
        if test "$aix_use_runtimelinking" = yes; then
6630
 
          shared_flag="$shared_flag "'${wl}-G'
6631
 
        fi
6632
 
      else
6633
 
        # not using gcc
6634
 
        if test "$host_cpu" = ia64; then
6635
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6636
 
        # chokes on -Wl,-G. The following line is correct:
6637
 
          shared_flag='-G'
6638
 
        else
6639
 
          if test "$aix_use_runtimelinking" = yes; then
6640
 
            shared_flag='${wl}-G'
6641
 
          else
6642
 
            shared_flag='${wl}-bM:SRE'
6643
 
          fi
6644
 
        fi
6645
 
      fi
6646
 
 
6647
 
      # It seems that -bexpall does not export symbols beginning with
6648
 
      # underscore (_), so it is better to generate a list of symbols to export.
6649
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6650
 
      if test "$aix_use_runtimelinking" = yes; then
6651
 
        # Warning - without using the other runtime loading flags (-brtl),
6652
 
        # -berok will link without error, but may produce a broken library.
6653
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6654
 
       # Determine the default libpath from the value encoded in an empty executable.
6655
 
       _LT_AC_SYS_LIBPATH_AIX
6656
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6657
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
6658
 
       else
6659
 
        if test "$host_cpu" = ia64; then
6660
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6661
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6662
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
6663
 
        else
6664
 
         # Determine the default libpath from the value encoded in an empty executable.
6665
 
         _LT_AC_SYS_LIBPATH_AIX
6666
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6667
 
          # Warning - without using the other run time loading flags,
6668
 
          # -berok will link without error, but may produce a broken library.
6669
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6670
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6671
 
          # Exported symbols can be pulled into shared objects from archives
6672
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6673
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6674
 
          # This is similar to how AIX traditionally builds its shared libraries.
6675
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
6676
 
        fi
6677
 
      fi
6678
 
      ;;
6679
 
 
6680
 
    amigaos*)
6681
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
6682
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6683
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6684
 
      # see comment about different semantics on the GNU ld section
6685
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6686
 
      ;;
6687
 
 
6688
 
    bsdi[[45]]*)
6689
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6690
 
      ;;
6691
 
 
6692
 
    cygwin* | mingw* | pw32*)
6693
 
      # When not using gcc, we currently assume that we are using
6694
 
      # Microsoft Visual C++.
6695
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6696
 
      # no search path for DLLs.
6697
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6698
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6699
 
      # Tell ltmain to make .lib files, not .a files.
6700
 
      libext=lib
6701
 
      # Tell ltmain to make .dll files, not .so files.
6702
 
      shrext_cmds=".dll"
6703
 
      # FIXME: Setting linknames here is a bad hack.
6704
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6705
 
      # The linker will automatically build a .lib file if we build a DLL.
6706
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6707
 
      # FIXME: Should let the user specify the lib program.
6708
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6709
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6710
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6711
 
      ;;
6712
 
 
6713
 
    darwin* | rhapsody*)
6714
 
      case $host_os in
6715
 
        rhapsody* | darwin1.[[012]])
6716
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6717
 
         ;;
6718
 
       *) # Darwin 1.3 on
6719
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6720
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6721
 
         else
6722
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6723
 
             10.[[012]])
6724
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6725
 
               ;;
6726
 
             10.*)
6727
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6728
 
               ;;
6729
 
           esac
6730
 
         fi
6731
 
         ;;
6732
 
      esac
6733
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6734
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6735
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6736
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6737
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6738
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6739
 
    if test "$GCC" = yes ; then
6740
 
        output_verbose_link_cmd='echo'
6741
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6742
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6743
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
6744
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
6745
 
    else
6746
 
      case $cc_basename in
6747
 
        xlc*)
6748
 
         output_verbose_link_cmd='echo'
6749
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6750
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6751
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6752
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
6753
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6754
 
          ;;
6755
 
       *)
6756
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6757
 
          ;;
6758
 
      esac
6759
 
    fi
6760
 
      ;;
6761
 
 
6762
 
    dgux*)
6763
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6764
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6765
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6766
 
      ;;
6767
 
 
6768
 
    freebsd1*)
6769
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6770
 
      ;;
6771
 
 
6772
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6773
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6774
 
    # does not break anything, and helps significantly (at the cost of a little
6775
 
    # extra space).
6776
 
    freebsd2.2*)
6777
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6778
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6779
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6780
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6781
 
      ;;
6782
 
 
6783
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6784
 
    freebsd2*)
6785
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6786
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6787
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6788
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6789
 
      ;;
6790
 
 
6791
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6792
 
    freebsd* | dragonfly*)
6793
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6794
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6795
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6796
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6797
 
      ;;
6798
 
 
6799
 
    hpux9*)
6800
 
      if test "$GCC" = yes; then
6801
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6802
 
      else
6803
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6804
 
      fi
6805
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6806
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6807
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6808
 
 
6809
 
      # hardcode_minus_L: Not really in the search PATH,
6810
 
      # but as the default location of the library.
6811
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6812
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6813
 
      ;;
6814
 
 
6815
 
    hpux10*)
6816
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6817
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6818
 
      else
6819
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6820
 
      fi
6821
 
      if test "$with_gnu_ld" = no; then
6822
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6823
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6824
 
 
6825
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6826
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6827
 
 
6828
 
        # hardcode_minus_L: Not really in the search PATH,
6829
 
        # but as the default location of the library.
6830
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6831
 
      fi
6832
 
      ;;
6833
 
 
6834
 
    hpux11*)
6835
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6836
 
        case $host_cpu in
6837
 
        hppa*64*)
6838
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6839
 
          ;;
6840
 
        ia64*)
6841
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6842
 
          ;;
6843
 
        *)
6844
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6845
 
          ;;
6846
 
        esac
6847
 
      else
6848
 
        case $host_cpu in
6849
 
        hppa*64*)
6850
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6851
 
          ;;
6852
 
        ia64*)
6853
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6854
 
          ;;
6855
 
        *)
6856
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6857
 
          ;;
6858
 
        esac
6859
 
      fi
6860
 
      if test "$with_gnu_ld" = no; then
6861
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6862
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6863
 
 
6864
 
        case $host_cpu in
6865
 
        hppa*64*|ia64*)
6866
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6867
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6868
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6869
 
          ;;
6870
 
        *)
6871
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6872
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6873
 
 
6874
 
          # hardcode_minus_L: Not really in the search PATH,
6875
 
          # but as the default location of the library.
6876
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6877
 
          ;;
6878
 
        esac
6879
 
      fi
6880
 
      ;;
6881
 
 
6882
 
    irix5* | irix6* | nonstopux*)
6883
 
      if test "$GCC" = yes; then
6884
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6885
 
      else
6886
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6887
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6888
 
      fi
6889
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6890
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6891
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6892
 
      ;;
6893
 
 
6894
 
    netbsd* | netbsdelf*-gnu)
6895
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6896
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6897
 
      else
6898
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6899
 
      fi
6900
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6901
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6902
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6903
 
      ;;
6904
 
 
6905
 
    newsos6)
6906
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6908
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6909
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6910
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6911
 
      ;;
6912
 
 
6913
 
    openbsd*)
6914
 
      if test -f /usr/libexec/ld.so; then
6915
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6916
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6917
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6918
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6919
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6920
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6921
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6922
 
        else
6923
 
          case $host_os in
6924
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6925
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6926
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6927
 
             ;;
6928
 
           *)
6929
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6930
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6931
 
             ;;
6932
 
          esac
6933
 
        fi
6934
 
      else
6935
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6936
 
      fi
6937
 
      ;;
6938
 
 
6939
 
    os2*)
6940
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6941
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6942
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6943
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6944
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6945
 
      ;;
6946
 
 
6947
 
    osf3*)
6948
 
      if test "$GCC" = yes; then
6949
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6950
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6951
 
      else
6952
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6953
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6954
 
      fi
6955
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6956
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6957
 
      ;;
6958
 
 
6959
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6960
 
      if test "$GCC" = yes; then
6961
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6962
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6963
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6964
 
      else
6965
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6966
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6967
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6968
 
        $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'
6969
 
 
6970
 
        # Both c and cxx compiler support -rpath directly
6971
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6972
 
      fi
6973
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6974
 
      ;;
6975
 
 
6976
 
    solaris*)
6977
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6978
 
      if test "$GCC" = yes; then
6979
 
        wlarc='${wl}'
6980
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6981
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6982
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6983
 
      else
6984
 
        wlarc=''
6985
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6987
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6988
 
      fi
6989
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6990
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6991
 
      case $host_os in
6992
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6993
 
      *)
6994
 
        # The compiler driver will combine and reorder linker options,
6995
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6996
 
        # but is careful enough not to reorder.
6997
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6998
 
        if test "$GCC" = yes; then
6999
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7000
 
        else
7001
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7002
 
        fi
7003
 
        ;;
7004
 
      esac
7005
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7006
 
      ;;
7007
 
 
7008
 
    sunos4*)
7009
 
      if test "x$host_vendor" = xsequent; then
7010
 
        # Use $CC to link under sequent, because it throws in some extra .o
7011
 
        # files that make .init and .fini sections work.
7012
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7013
 
      else
7014
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7015
 
      fi
7016
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7017
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7018
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7019
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7020
 
      ;;
7021
 
 
7022
 
    sysv4)
7023
 
      case $host_vendor in
7024
 
        sni)
7025
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7027
 
        ;;
7028
 
        siemens)
7029
 
          ## LD is ld it makes a PLAMLIB
7030
 
          ## CC just makes a GrossModule.
7031
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7032
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7033
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
7034
 
        ;;
7035
 
        motorola)
7036
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7037
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7038
 
        ;;
7039
 
      esac
7040
 
      runpath_var='LD_RUN_PATH'
7041
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7042
 
      ;;
7043
 
 
7044
 
    sysv4.3*)
7045
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7046
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7047
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7048
 
      ;;
7049
 
 
7050
 
    sysv4*MP*)
7051
 
      if test -d /usr/nec; then
7052
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7053
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7054
 
        runpath_var=LD_RUN_PATH
7055
 
        hardcode_runpath_var=yes
7056
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7057
 
      fi
7058
 
      ;;
7059
 
 
7060
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7061
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7062
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7063
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7064
 
      runpath_var='LD_RUN_PATH'
7065
 
 
7066
 
      if test "$GCC" = yes; then
7067
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7068
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7069
 
      else
7070
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7071
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7072
 
      fi
7073
 
      ;;
7074
 
 
7075
 
    sysv5* | sco3.2v5* | sco5v6*)
7076
 
      # Note: We can NOT use -z defs as we might desire, because we do not
7077
 
      # link with -lc, and that would cause any symbols used from libc to
7078
 
      # always be unresolved, which means just about no library would
7079
 
      # ever link correctly.  If we're not using GNU ld we use -z text
7080
 
      # though, which does catch some bad symbols but isn't as heavy-handed
7081
 
      # as -z defs.
7082
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7083
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7084
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7085
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7086
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7087
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7088
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7089
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7090
 
      runpath_var='LD_RUN_PATH'
7091
 
 
7092
 
      if test "$GCC" = yes; then
7093
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7094
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7095
 
      else
7096
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7097
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7098
 
      fi
7099
 
      ;;
7100
 
 
7101
 
    uts4*)
7102
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7103
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7104
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7105
 
      ;;
7106
 
 
7107
 
    *)
7108
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7109
 
      ;;
7110
 
    esac
7111
 
  fi
7112
 
])
7113
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7114
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7115
 
 
7116
 
#
7117
 
# Do we need to explicitly link libc?
7118
 
#
7119
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7120
 
x|xyes)
7121
 
  # Assume -lc should be added
7122
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7123
 
 
7124
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7125
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
7126
 
    *'~'*)
7127
 
      # FIXME: we may have to deal with multi-command sequences.
7128
 
      ;;
7129
 
    '$CC '*)
7130
 
      # Test whether the compiler implicitly links with -lc since on some
7131
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7132
 
      # to ld, don't add -lc before -lgcc.
7133
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7134
 
      $rm conftest*
7135
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7136
 
 
7137
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7138
 
        soname=conftest
7139
 
        lib=conftest
7140
 
        libobjs=conftest.$ac_objext
7141
 
        deplibs=
7142
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7143
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7144
 
        compiler_flags=-v
7145
 
        linker_flags=-v
7146
 
        verstring=
7147
 
        output_objdir=.
7148
 
        libname=conftest
7149
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7150
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7151
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7152
 
        then
7153
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7154
 
        else
7155
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7156
 
        fi
7157
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7158
 
      else
7159
 
        cat conftest.err 1>&5
7160
 
      fi
7161
 
      $rm conftest*
7162
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7163
 
      ;;
7164
 
    esac
7165
 
  fi
7166
 
  ;;
7167
 
esac
7168
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7169
 
 
7170
 
 
7171
 
# _LT_AC_FILE_LTDLL_C
7172
 
# -------------------
7173
 
# Be careful that the start marker always follows a newline.
7174
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7175
 
# /* ltdll.c starts here */
7176
 
# #define WIN32_LEAN_AND_MEAN
7177
 
# #include <windows.h>
7178
 
# #undef WIN32_LEAN_AND_MEAN
7179
 
# #include <stdio.h>
7180
 
#
7181
 
# #ifndef __CYGWIN__
7182
 
# #  ifdef __CYGWIN32__
7183
 
# #    define __CYGWIN__ __CYGWIN32__
7184
 
# #  endif
7185
 
# #endif
7186
 
#
7187
 
# #ifdef __cplusplus
7188
 
# extern "C" {
7189
 
# #endif
7190
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7191
 
# #ifdef __cplusplus
7192
 
# }
7193
 
# #endif
7194
 
#
7195
 
# #ifdef __CYGWIN__
7196
 
# #include <cygwin/cygwin_dll.h>
7197
 
# DECLARE_CYGWIN_DLL( DllMain );
7198
 
# #endif
7199
 
# HINSTANCE __hDllInstance_base;
7200
 
#
7201
 
# BOOL APIENTRY
7202
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7203
 
# {
7204
 
#   __hDllInstance_base = hInst;
7205
 
#   return TRUE;
7206
 
# }
7207
 
# /* ltdll.c ends here */
7208
 
])# _LT_AC_FILE_LTDLL_C
7209
 
 
7210
 
 
7211
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7212
 
# ---------------------------------
7213
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7214
 
 
7215
 
 
7216
 
# old names
7217
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7218
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7219
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7220
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7221
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7222
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7223
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7224
 
 
7225
 
# This is just to silence aclocal about the macro not being used
7226
 
ifelse([AC_DISABLE_FAST_INSTALL])
7227
 
 
7228
 
AC_DEFUN([LT_AC_PROG_GCJ],
7229
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7230
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7231
 
  AC_SUBST(GCJFLAGS)
7232
 
])
7233
 
 
7234
 
AC_DEFUN([LT_AC_PROG_RC],
7235
 
[AC_CHECK_TOOL(RC, windres, no)
7236
 
])
7237
 
 
7238
 
 
7239
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7240
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7241
 
 
7242
 
# _AS_TEST_PREPARE
7243
 
# ----------------
7244
 
m4_ifndef([_AS_TEST_PREPARE],
7245
 
[m4_defun([_AS_TEST_PREPARE],
7246
 
[if test -x / >/dev/null 2>&1; then
7247
 
  as_executable_p='test -x'
7248
 
else
7249
 
  as_executable_p='test -f'
7250
 
fi
7251
 
])])# _AS_TEST_PREPARE
7252
 
 
7253
 
# AS_EXECUTABLE_P
7254
 
# ---------------
7255
 
# Check whether a file is executable.
7256
 
m4_ifndef([AS_EXECUTABLE_P],
7257
 
[m4_defun([AS_EXECUTABLE_P],
7258
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7259
 
$as_executable_p $1[]dnl
7260
 
])])# AS_EXECUTABLE_P
7261
 
 
7262
 
# NOTE: This macro has been submitted for inclusion into   #
7263
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7264
 
#  a released version of Autoconf we should remove this    #
7265
 
#  macro and use it instead.                               #
7266
 
# LT_AC_PROG_SED
7267
 
# --------------
7268
 
# Check for a fully-functional sed program, that truncates
7269
 
# as few characters as possible.  Prefer GNU sed if found.
7270
 
AC_DEFUN([LT_AC_PROG_SED],
7271
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
7272
 
AC_CACHE_VAL(lt_cv_path_SED,
7273
 
[# Loop through the user's path and test for sed and gsed.
7274
 
# Then use that list of sed's as ones to test for truncation.
7275
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276
 
for as_dir in $PATH
7277
 
do
7278
 
  IFS=$as_save_IFS
7279
 
  test -z "$as_dir" && as_dir=.
7280
 
  for lt_ac_prog in sed gsed; do
7281
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7282
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7283
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7284
 
      fi
7285
 
    done
7286
 
  done
7287
 
done
7288
 
IFS=$as_save_IFS
7289
 
lt_ac_max=0
7290
 
lt_ac_count=0
7291
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7292
 
# along with /bin/sed that truncates output.
7293
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7294
 
  test ! -f $lt_ac_sed && continue
7295
 
  cat /dev/null > conftest.in
7296
 
  lt_ac_count=0
7297
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7298
 
  # Check for GNU sed and select it if it is found.
7299
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7300
 
    lt_cv_path_SED=$lt_ac_sed
7301
 
    break
7302
 
  fi
7303
 
  while true; do
7304
 
    cat conftest.in conftest.in >conftest.tmp
7305
 
    mv conftest.tmp conftest.in
7306
 
    cp conftest.in conftest.nl
7307
 
    echo >>conftest.nl
7308
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7309
 
    cmp -s conftest.out conftest.nl || break
7310
 
    # 10000 chars as input seems more than enough
7311
 
    test $lt_ac_count -gt 10 && break
7312
 
    lt_ac_count=`expr $lt_ac_count + 1`
7313
 
    if test $lt_ac_count -gt $lt_ac_max; then
7314
 
      lt_ac_max=$lt_ac_count
7315
 
      lt_cv_path_SED=$lt_ac_sed
7316
 
    fi
7317
 
  done
7318
 
done
7319
 
])
7320
 
SED=$lt_cv_path_SED
7321
 
AC_SUBST([SED])
7322
 
AC_MSG_RESULT([$SED])
7323
 
])
7324
 
 
7325
677
# nls.m4 serial 3 (gettext-0.15)
7326
678
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
7327
679
dnl This file is free software; the Free Software Foundation
7512
864
fi[]dnl
7513
865
])# PKG_CHECK_MODULES
7514
866
 
7515
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
867
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7516
868
#
7517
869
# This file is free software; the Free Software Foundation
7518
870
# gives unlimited permission to copy and/or distribute it,
7527
879
[am__api_version='1.10'
7528
880
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7529
881
dnl require some minimum version.  Point them to the right macro.
7530
 
m4_if([$1], [1.10.1], [],
 
882
m4_if([$1], [1.10.2], [],
7531
883
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7532
884
])
7533
885
 
7541
893
# AM_SET_CURRENT_AUTOMAKE_VERSION
7542
894
# -------------------------------
7543
895
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7544
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
896
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7545
897
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7546
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
898
[AM_AUTOMAKE_VERSION([1.10.2])dnl
7547
899
m4_ifndef([AC_AUTOCONF_VERSION],
7548
900
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7549
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
901
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7550
902
 
7551
903
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7552
904
 
7819
1171
 
7820
1172
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7821
1173
 
7822
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1174
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7823
1175
# Free Software Foundation, Inc.
7824
1176
#
7825
1177
# This file is free software; the Free Software Foundation
7826
1178
# gives unlimited permission to copy and/or distribute it,
7827
1179
# with or without modifications, as long as this notice is preserved.
7828
1180
 
7829
 
#serial 3
 
1181
#serial 4
7830
1182
 
7831
1183
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7832
1184
# ------------------------------
7833
1185
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7834
 
[for mf in $CONFIG_FILES; do
 
1186
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
1187
# are listed without --file.  Let's play safe and only enable the eval
 
1188
# if we detect the quoting.
 
1189
case $CONFIG_FILES in
 
1190
*\'*) eval set x "$CONFIG_FILES" ;;
 
1191
*)   set x $CONFIG_FILES ;;
 
1192
esac
 
1193
shift
 
1194
for mf
 
1195
do
7835
1196
  # Strip MF so we end up with the name of the file.
7836
1197
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7837
1198
  # Check whether this is an Automake generated Makefile or not.
8140
1501
rm -f confinc confmf
8141
1502
])
8142
1503
 
8143
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
1504
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
8144
1505
# Free Software Foundation, Inc.
8145
1506
#
8146
1507
# This file is free software; the Free Software Foundation
8147
1508
# gives unlimited permission to copy and/or distribute it,
8148
1509
# with or without modifications, as long as this notice is preserved.
8149
1510
 
8150
 
# serial 5
 
1511
# serial 6
8151
1512
 
8152
1513
# AM_PROG_CC_C_O
8153
1514
# --------------
8159
1520
# FIXME: we rely on the cache variable name because
8160
1521
# there is no other way.
8161
1522
set dummy $CC
8162
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
8163
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
1523
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1524
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
1525
if test "$am_t" != yes; then
8164
1526
   # Losing compiler, so override with the script.
8165
1527
   # FIXME: It is wrong to rewrite CC.
8166
1528
   # But if we don't then we get into trouble of one sort or another.
8238
1600
 
8239
1601
# Helper functions for option handling.                     -*- Autoconf -*-
8240
1602
 
8241
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1603
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
8242
1604
#
8243
1605
# This file is free software; the Free Software Foundation
8244
1606
# gives unlimited permission to copy and/or distribute it,
8245
1607
# with or without modifications, as long as this notice is preserved.
8246
1608
 
8247
 
# serial 3
 
1609
# serial 4
8248
1610
 
8249
1611
# _AM_MANGLE_OPTION(NAME)
8250
1612
# -----------------------
8261
1623
# ----------------------------------
8262
1624
# OPTIONS is a space-separated list of Automake options.
8263
1625
AC_DEFUN([_AM_SET_OPTIONS],
8264
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1626
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8265
1627
 
8266
1628
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8267
1629
# -------------------------------------------
8458
1820
]) # _AM_PROG_TAR
8459
1821
 
8460
1822
m4_include([m4/gecko.m4])
 
1823
m4_include([m4/libtool.m4])
 
1824
m4_include([m4/ltoptions.m4])
 
1825
m4_include([m4/ltsugar.m4])
 
1826
m4_include([m4/ltversion.m4])
 
1827
m4_include([m4/lt~obsolete.m4])