~ubuntu-branches/ubuntu/wily/libxfcegui4/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2009-01-27 00:09:37 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20090127000937-dz4un194rlaxur94
Tags: 4.5.99.1-0ubuntu1
* Merged new upstream from pkg-xfce UNRELEASED, remaining Ubuntu changes:
  - debian/control:
    - set VCS to point at LP vs. pkg-xfce
* This package can be safely synced across once Debian uploads this package

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'.])])
495
495
 
496
496
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
497
497
# serial 40 IT_PROG_INTLTOOL
498
 
AC_DEFUN([IT_PROG_INTLTOOL], [
499
 
AC_PREREQ([2.50])dnl
500
 
AC_REQUIRE([AM_NLS])dnl
 
498
AC_DEFUN([IT_PROG_INTLTOOL],
 
499
[AC_PREREQ([2.50])dnl
501
500
 
502
501
case "$am__api_version" in
503
502
    1.[01234])
570
569
AC_PATH_PROG(XGETTEXT, xgettext)
571
570
AC_PATH_PROG(MSGMERGE, msgmerge)
572
571
AC_PATH_PROG(MSGFMT, msgfmt)
573
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
574
572
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
575
573
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
576
574
fi
642
640
dnl of config.status.
643
641
AC_CONFIG_COMMANDS_PRE([
644
642
  AC_CONFIG_COMMANDS([$1/stamp-it], [
645
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
646
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
647
 
    fi
648
643
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
649
644
    >"$1/stamp-it.tmp"
650
645
    [sed '/^#/d
653
648
        '"s|^|  $ac_top_srcdir/|" \
654
649
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
655
650
    ]
 
651
    if test ! -f "$1/Makefile"; then
 
652
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
653
    fi
 
654
    mv "$1/Makefile" "$1/Makefile.tmp"
656
655
    [sed '/^POTFILES =/,/[^\\]$/ {
657
656
                /^POTFILES =/!d
658
657
                r $1/POTFILES
659
658
          }
660
 
         ' "$1/Makefile.in" >"$1/Makefile"]
 
659
         ' "$1/Makefile.tmp" >"$1/Makefile"]
661
660
    rm -f "$1/Makefile.tmp"
662
661
    mv "$1/stamp-it.tmp" "$1/stamp-it"
663
662
  ])
664
663
])dnl
665
664
])
666
665
 
 
666
 
667
667
# deprecated macros
668
668
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
669
669
# A hint is needed for aclocal from Automake <= 1.9.4:
671
671
 
672
672
 
673
673
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
674
 
#
675
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
676
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
677
 
#   Written by Gordon Matzigkeit, 1996
678
 
#
679
 
# This file is free software; the Free Software Foundation gives
680
 
# unlimited permission to copy and/or distribute it, with or without
681
 
# modifications, as long as this notice is preserved.
682
 
 
683
 
m4_define([_LT_COPYING], [dnl
684
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
685
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
686
 
#   Written by Gordon Matzigkeit, 1996
687
 
#
688
 
#   This file is part of GNU Libtool.
689
 
#
690
 
# GNU Libtool is free software; you can redistribute it and/or
691
 
# modify it under the terms of the GNU General Public License as
692
 
# published by the Free Software Foundation; either version 2 of
693
 
# the License, or (at your option) any later version.
694
 
#
695
 
# As a special exception to the GNU General Public License,
696
 
# if you distribute this file as part of a program or library that
697
 
# is built using GNU Libtool, you may include this file under the
698
 
# same distribution terms that you use for the rest of that program.
699
 
#
700
 
# GNU Libtool is distributed in the hope that it will be useful,
701
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
702
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
703
 
# GNU General Public License for more details.
704
 
#
705
 
# You should have received a copy of the GNU General Public License
706
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
707
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
708
 
# obtained by writing to the Free Software Foundation, Inc.,
709
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
710
 
])
711
 
 
712
 
# serial 56 LT_INIT
713
 
 
714
 
 
715
 
# LT_PREREQ(VERSION)
716
 
# ------------------
717
 
# Complain and exit if this libtool version is less that VERSION.
718
 
m4_defun([LT_PREREQ],
719
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
720
 
       [m4_default([$3],
721
 
                   [m4_fatal([Libtool version $1 or higher is required],
722
 
                             63)])],
723
 
       [$2])])
724
 
 
725
 
 
726
 
# _LT_CHECK_BUILDDIR
727
 
# ------------------
728
 
# Complain if the absolute build directory name contains unusual characters
729
 
m4_defun([_LT_CHECK_BUILDDIR],
730
 
[case `pwd` in
731
 
  *\ * | *\     *)
732
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
733
 
esac
734
 
])
735
 
 
736
 
 
737
 
# LT_INIT([OPTIONS])
738
 
# ------------------
739
 
AC_DEFUN([LT_INIT],
740
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
741
 
AC_BEFORE([$0], [LT_LANG])dnl
742
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
743
 
AC_BEFORE([$0], [LTDL_INIT])dnl
744
 
m4_require([_LT_CHECK_BUILDDIR])dnl
745
 
 
746
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
747
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
748
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
749
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
750
 
dnl unless we require an AC_DEFUNed macro:
751
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
752
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
753
 
AC_REQUIRE([LTVERSION_VERSION])dnl
754
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
755
 
m4_require([_LT_PROG_LTMAIN])dnl
756
 
 
757
 
dnl Parse OPTIONS
758
 
_LT_SET_OPTIONS([$0], [$1])
 
674
 
 
675
# serial 52 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
759
730
 
760
731
# This can be used to rebuild libtool when needed
761
 
LIBTOOL_DEPS="$ltmain"
 
732
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
762
733
 
763
734
# Always use our own libtool.
764
735
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
765
736
AC_SUBST(LIBTOOL)dnl
766
737
 
767
 
_LT_SETUP
768
 
 
769
 
# Only expand once:
770
 
m4_define([LT_INIT])
771
 
])# LT_INIT
772
 
 
773
 
# Old names:
774
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
775
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
776
 
dnl aclocal-1.4 backwards compatibility:
777
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
778
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
779
 
 
780
 
 
781
 
# _LT_CC_BASENAME(CC)
782
 
# -------------------
783
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
784
 
m4_defun([_LT_CC_BASENAME],
785
 
[for cc_temp in $1""; do
786
 
  case $cc_temp in
787
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
788
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
789
 
    \-*) ;;
790
 
    *) break;;
791
 
  esac
792
 
done
793
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
794
 
])
795
 
 
796
 
 
797
 
# _LT_FILEUTILS_DEFAULTS
798
 
# ----------------------
799
 
# It is okay to use these file commands and assume they have been set
800
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
801
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
802
 
[: ${CP="cp -f"}
803
 
: ${MV="mv -f"}
804
 
: ${RM="rm -f"}
805
 
])# _LT_FILEUTILS_DEFAULTS
806
 
 
807
 
 
808
 
# _LT_SETUP
809
 
# ---------
810
 
m4_defun([_LT_SETUP],
811
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
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
812
751
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
813
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
814
 
_LT_DECL([], [host], [0])dnl
815
 
_LT_DECL([], [host_os], [0])dnl
816
 
dnl
817
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
818
 
_LT_DECL([], [build], [0])dnl
819
 
_LT_DECL([], [build_os], [0])dnl
820
 
dnl
821
752
AC_REQUIRE([AC_PROG_CC])dnl
822
 
AC_REQUIRE([LT_PATH_LD])dnl
823
 
AC_REQUIRE([LT_PATH_NM])dnl
824
 
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
 
825
757
AC_REQUIRE([AC_PROG_LN_S])dnl
826
 
test -z "$LN_S" && LN_S="ln -s"
827
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
828
 
dnl
829
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
830
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
831
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
832
 
dnl
833
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
834
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
835
 
m4_require([_LT_CMD_RELOAD])dnl
836
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
837
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
838
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
839
 
 
840
 
_LT_CONFIG_LIBTOOL_INIT([
841
 
# See if we are running on zsh, and set the options which allow our
842
 
# commands through without removal of \ escapes INIT.
843
 
if test -n "\${ZSH_VERSION+set}" ; then
844
 
   setopt NO_GLOB_SUBST
845
 
fi
846
 
])
847
 
if test -n "${ZSH_VERSION+set}" ; then
848
 
   setopt NO_GLOB_SUBST
849
 
fi
850
 
 
851
 
_LT_CHECK_OBJDIR
852
 
 
853
 
m4_require([_LT_TAG_COMPILER])dnl
854
 
_LT_PROG_ECHO_BACKSLASH
 
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
855
769
 
856
770
case $host_os in
857
771
aix3*)
867
781
 
868
782
# Sed substitution that helps us do robust quoting.  It backslashifies
869
783
# metacharacters that are still active within double-quoted strings.
870
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
784
Xsed='sed -e 1s/^X//'
 
785
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
871
786
 
872
787
# Same as above, but do not quote variable references.
873
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
788
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
874
789
 
875
790
# Sed substitution to delay expansion of an escaped shell variable in a
876
791
# double_quote_subst'ed string.
877
792
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
878
793
 
879
 
# Sed substitution to delay expansion of an escaped single quote.
880
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
881
 
 
882
794
# Sed substitution to avoid accidental globbing in evaled expressions
883
795
no_glob_subst='s/\*/\\\*/g'
884
796
 
 
797
# Constants:
 
798
rm="rm -f"
 
799
 
885
800
# Global variables:
886
 
ofile=libtool
 
801
default_ofile=libtool
887
802
can_build_shared=yes
888
803
 
889
804
# All known linkers require a `.a' archive for static linking (except MSVC,
890
805
# which needs '.lib').
891
806
libext=a
892
 
 
 
807
ltmain="$ac_aux_dir/ltmain.sh"
 
808
ofile="$default_ofile"
893
809
with_gnu_ld="$lt_cv_prog_gnu_ld"
894
810
 
 
811
AC_CHECK_TOOL(AR, ar, false)
 
812
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
813
AC_CHECK_TOOL(STRIP, strip, :)
 
814
 
895
815
old_CC="$CC"
896
816
old_CFLAGS="$CFLAGS"
897
817
 
898
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
899
822
test -z "$CC" && CC=cc
900
823
test -z "$LTCC" && LTCC=$CC
901
824
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
825
test -z "$DLLTOOL" && DLLTOOL=dlltool
902
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=:
903
834
test -z "$ac_objext" && ac_objext=o
904
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
 
905
853
_LT_CC_BASENAME([$compiler])
906
854
 
907
855
# Only perform the check for file, if the check method requires it
908
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
909
856
case $deplibs_check_method in
910
857
file_magic*)
911
858
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
912
 
    _LT_PATH_MAGIC
 
859
    AC_PATH_MAGIC
913
860
  fi
914
861
  ;;
915
862
esac
916
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
 
917
882
# Use C for the default configuration in the libtool script
918
 
LT_SUPPORTED_TAG([CC])
919
 
_LT_LANG_C_CONFIG
920
 
_LT_LANG_DEFAULT_CONFIG
921
 
_LT_CONFIG_COMMANDS
922
 
])# _LT_SETUP
923
 
 
924
 
 
925
 
# _LT_PROG_LTMAIN
926
 
# ---------------
927
 
# Note that this code is called both from `configure', and `config.status'
928
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
929
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
930
 
# so we pass a copy along to make sure it has a sensible value anyway.
931
 
m4_defun([_LT_PROG_LTMAIN],
932
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
933
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
934
 
ltmain="$ac_aux_dir/ltmain.sh"
935
 
])# _LT_PROG_LTMAIN
936
 
 
937
 
 
938
 
 
939
 
# So that we can recreate a full libtool script including additional
940
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
941
 
# in macros and then make a single call at the end using the `libtool'
942
 
# label.
943
 
 
944
 
 
945
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
946
 
# ----------------------------------------
947
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
948
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
949
 
[m4_ifval([$1],
950
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
951
 
                     [$1
952
 
])])])
953
 
 
954
 
# Initialize.
955
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
956
 
 
957
 
 
958
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
959
 
# ------------------------------
960
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
961
 
m4_define([_LT_CONFIG_LIBTOOL],
962
 
[m4_ifval([$1],
963
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
964
 
                     [$1
965
 
])])])
966
 
 
967
 
# Initialize.
968
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
969
 
 
970
 
 
971
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
972
 
# -----------------------------------------------------
973
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
974
 
[_LT_CONFIG_LIBTOOL([$1])
975
 
_LT_CONFIG_LIBTOOL_INIT([$2])
976
 
])
977
 
 
978
 
 
979
 
# _LT_FORMAT_COMMENT([COMMENT])
980
 
# -----------------------------
981
 
# Add leading comment marks to the start of each line, and a trailing
982
 
# full-stop to the whole comment if one is not present already.
983
 
m4_define([_LT_FORMAT_COMMENT],
984
 
[m4_ifval([$1], [
985
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
986
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
987
 
)])
988
 
 
989
 
 
990
 
 
991
 
 
992
 
 
993
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
994
 
# -------------------------------------------------------------------
995
 
# CONFIGNAME is the name given to the value in the libtool script.
996
 
# VARNAME is the (base) name used in the configure script.
997
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
998
 
# VARNAME.  Any other value will be used directly.
999
 
m4_define([_LT_DECL],
1000
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1001
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1002
 
        [m4_ifval([$1], [$1], [$2])])
1003
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1004
 
    m4_ifval([$4],
1005
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1006
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
1007
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
1008
 
])
1009
 
 
1010
 
 
1011
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1012
 
# --------------------------------------------------------
1013
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1014
 
 
1015
 
 
1016
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1017
 
# ------------------------------------------------
1018
 
m4_define([lt_decl_tag_varnames],
1019
 
[_lt_decl_filter([tagged?], [yes], $@)])
1020
 
 
1021
 
 
1022
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1023
 
# ---------------------------------------------------------
1024
 
m4_define([_lt_decl_filter],
1025
 
[m4_case([$#],
1026
 
  [0], [m4_fatal([$0: too few arguments: $#])],
1027
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1028
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1029
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1030
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1031
 
])
1032
 
 
1033
 
 
1034
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1035
 
# --------------------------------------------------
1036
 
m4_define([lt_decl_quote_varnames],
1037
 
[_lt_decl_filter([value], [1], $@)])
1038
 
 
1039
 
 
1040
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1041
 
# ---------------------------------------------------
1042
 
m4_define([lt_decl_dquote_varnames],
1043
 
[_lt_decl_filter([value], [2], $@)])
1044
 
 
1045
 
 
1046
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1047
 
# ---------------------------------------------------
1048
 
m4_define([lt_decl_varnames_tagged],
1049
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1050
 
     m4_quote(m4_if([$2], [],
1051
 
                     m4_quote(lt_decl_tag_varnames),
1052
 
                  m4_quote(m4_shift($@)))),
1053
 
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1054
 
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1055
 
 
1056
 
 
1057
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1058
 
# ------------------------------------------------
1059
 
m4_define([lt_decl_all_varnames],
1060
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1061
 
     m4_if([$2], [],
1062
 
           m4_quote(lt_decl_varnames),
1063
 
        m4_quote(m4_shift($@))))[]dnl
1064
 
])
1065
 
m4_define([_lt_decl_all_varnames],
1066
 
[lt_join($@, lt_decl_varnames_tagged([$1],
1067
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1068
 
])
1069
 
 
1070
 
 
1071
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1072
 
# ------------------------------------
1073
 
# Quote a variable value, and forward it to `config.status' so that its
1074
 
# declaration there will have the same value as in `configure'.  VARNAME
1075
 
# must have a single quote delimited value for this to work.
1076
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
1077
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1078
 
 
1079
 
 
1080
 
# _LT_CONFIG_STATUS_DECLARATIONS
1081
 
# ------------------------------
1082
 
# We delimit libtool config variables with single quotes, so when
1083
 
# we write them to config.status, we have to be sure to quote all
1084
 
# embedded single quotes properly.  In configure, this macro expands
1085
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1086
 
#
1087
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1088
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1089
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1090
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1091
 
 
1092
 
 
1093
 
# _LT_LIBTOOL_TAGS
1094
 
# ----------------
1095
 
# Output comment and list of tags supported by the script
1096
 
m4_defun([_LT_LIBTOOL_TAGS],
1097
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1098
 
available_tags="_LT_TAGS"dnl
1099
 
])
1100
 
 
1101
 
 
1102
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1103
 
# -----------------------------------
1104
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
1105
 
# expand to a commented shell variable setting:
1106
 
#
1107
 
#    # Some comment about what VAR is for.
1108
 
#    visible_name=$lt_internal_name
1109
 
m4_define([_LT_LIBTOOL_DECLARE],
1110
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1111
 
                                           [description])))[]dnl
1112
 
m4_pushdef([_libtool_name],
1113
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1114
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1115
 
    [0], [_libtool_name=[$]$1],
1116
 
    [1], [_libtool_name=$lt_[]$1],
1117
 
    [2], [_libtool_name=$lt_[]$1],
1118
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1119
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1120
 
])
1121
 
 
1122
 
 
1123
 
# _LT_LIBTOOL_CONFIG_VARS
1124
 
# -----------------------
1125
 
# Produce commented declarations of non-tagged libtool config variables
1126
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1127
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1128
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1129
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1130
 
[m4_foreach([_lt_var],
1131
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1132
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1133
 
 
1134
 
 
1135
 
# _LT_LIBTOOL_TAG_VARS(TAG)
1136
 
# -------------------------
1137
 
m4_define([_LT_LIBTOOL_TAG_VARS],
1138
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1139
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1140
 
 
1141
 
 
1142
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
1143
 
# ------------------------------
1144
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1145
 
 
1146
 
 
1147
 
# _LT_CONFIG_COMMANDS
 
883
tagname=
 
884
AC_LIBTOOL_LANG_C_CONFIG
 
885
_LT_AC_TAGCONFIG
 
886
])# AC_LIBTOOL_SETUP
 
887
 
 
888
 
 
889
# _LT_AC_SYS_COMPILER
1148
890
# -------------------
1149
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1150
 
# variables for single and double quote escaping we saved from calls
1151
 
# to _LT_DECL, we can put quote escaped variables declarations
1152
 
# into `config.status', and then the shell code to quote escape them in
1153
 
# for loops in `config.status'.  Finally, any additional code accumulated
1154
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1155
 
m4_defun([_LT_CONFIG_COMMANDS],
1156
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1157
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
1158
 
        dnl instead of duplicating it all over again into config.status,
1159
 
        dnl then we will have config.status run $CONFIG_LT later, so it
1160
 
        dnl needs to know what name is stored there:
1161
 
        [AC_CONFIG_COMMANDS([libtool],
1162
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1163
 
    dnl If the libtool generation code is destined for config.status,
1164
 
    dnl expand the accumulated commands and init code now:
1165
 
    [AC_CONFIG_COMMANDS([libtool],
1166
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1167
 
])#_LT_CONFIG_COMMANDS
1168
 
 
1169
 
 
1170
 
# Initialize.
1171
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1172
 
[
1173
 
 
1174
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1175
 
# if CDPATH is set.
1176
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1177
 
 
1178
 
sed_quote_subst='$sed_quote_subst'
1179
 
double_quote_subst='$double_quote_subst'
1180
 
delay_variable_subst='$delay_variable_subst'
1181
 
_LT_CONFIG_STATUS_DECLARATIONS
1182
 
LTCC='$LTCC'
1183
 
LTCFLAGS='$LTCFLAGS'
1184
 
compiler='$compiler_DEFAULT'
1185
 
 
1186
 
# Quote evaled strings.
1187
 
for var in lt_decl_all_varnames([[ \
1188
 
]], lt_decl_quote_varnames); do
1189
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1190
 
    *[[\\\\\\\`\\"\\\$]]*)
1191
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1192
 
      ;;
1193
 
    *)
1194
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1195
 
      ;;
1196
 
    esac
1197
 
done
1198
 
 
1199
 
# Double-quote double-evaled strings.
1200
 
for var in lt_decl_all_varnames([[ \
1201
 
]], lt_decl_dquote_varnames); do
1202
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1203
 
    *[[\\\\\\\`\\"\\\$]]*)
1204
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1205
 
      ;;
1206
 
    *)
1207
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1208
 
      ;;
1209
 
    esac
1210
 
done
1211
 
 
1212
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1213
 
case \$lt_ECHO in
1214
 
*'\\\[$]0 --fallback-echo"')dnl "
1215
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1216
 
  ;;
1217
 
esac
1218
 
 
1219
 
_LT_OUTPUT_LIBTOOL_INIT
1220
 
])
1221
 
 
1222
 
 
1223
 
# LT_OUTPUT
1224
 
# ---------
1225
 
# This macro allows early generation of the libtool script (before
1226
 
# AC_OUTPUT is called), incase it is used in configure for compilation
1227
 
# tests.
1228
 
AC_DEFUN([LT_OUTPUT],
1229
 
[: ${CONFIG_LT=./config.lt}
1230
 
AC_MSG_NOTICE([creating $CONFIG_LT])
1231
 
cat >"$CONFIG_LT" <<_LTEOF
1232
 
#! $SHELL
1233
 
# Generated by $as_me.
1234
 
# Run this file to recreate a libtool stub with the current configuration.
1235
 
 
1236
 
lt_cl_silent=false
1237
 
SHELL=\${CONFIG_SHELL-$SHELL}
1238
 
_LTEOF
1239
 
 
1240
 
cat >>"$CONFIG_LT" <<\_LTEOF
1241
 
AS_SHELL_SANITIZE
1242
 
_AS_PREPARE
1243
 
 
1244
 
exec AS_MESSAGE_FD>&1
1245
 
exec AS_MESSAGE_LOG_FD>>config.log
1246
 
{
1247
 
  echo
1248
 
  AS_BOX([Running $as_me.])
1249
 
} >&AS_MESSAGE_LOG_FD
1250
 
 
1251
 
lt_cl_help="\
1252
 
\`$as_me' creates a local libtool stub from the current configuration,
1253
 
for use in further configure time tests before the real libtool is
1254
 
generated.
1255
 
 
1256
 
Usage: $[0] [[OPTIONS]]
1257
 
 
1258
 
  -h, --help      print this help, then exit
1259
 
  -V, --version   print version number, then exit
1260
 
  -q, --quiet     do not print progress messages
1261
 
  -d, --debug     don't remove temporary files
1262
 
 
1263
 
Report bugs to <bug-libtool@gnu.org>."
1264
 
 
1265
 
lt_cl_version="\
1266
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1267
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1268
 
configured by $[0], generated by m4_PACKAGE_STRING.
1269
 
 
1270
 
Copyright (C) 2008 Free Software Foundation, Inc.
1271
 
This config.lt script is free software; the Free Software Foundation
1272
 
gives unlimited permision to copy, distribute and modify it."
1273
 
 
1274
 
while test $[#] != 0
1275
 
do
1276
 
  case $[1] in
1277
 
    --version | --v* | -V )
1278
 
      echo "$lt_cl_version"; exit 0 ;;
1279
 
    --help | --h* | -h )
1280
 
      echo "$lt_cl_help"; exit 0 ;;
1281
 
    --debug | --d* | -d )
1282
 
      debug=: ;;
1283
 
    --quiet | --q* | --silent | --s* | -q )
1284
 
      lt_cl_silent=: ;;
1285
 
 
1286
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1287
 
Try \`$[0] --help' for more information.]) ;;
1288
 
 
1289
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1290
 
Try \`$[0] --help' for more information.]) ;;
1291
 
  esac
1292
 
  shift
1293
 
done
1294
 
 
1295
 
if $lt_cl_silent; then
1296
 
  exec AS_MESSAGE_FD>/dev/null
1297
 
fi
1298
 
_LTEOF
1299
 
 
1300
 
cat >>"$CONFIG_LT" <<_LTEOF
1301
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1302
 
_LTEOF
1303
 
 
1304
 
cat >>"$CONFIG_LT" <<\_LTEOF
1305
 
AC_MSG_NOTICE([creating $ofile])
1306
 
_LT_OUTPUT_LIBTOOL_COMMANDS
1307
 
AS_EXIT(0)
1308
 
_LTEOF
1309
 
chmod +x "$CONFIG_LT"
1310
 
 
1311
 
# configure is writing to config.log, but config.lt does its own redirection,
1312
 
# appending to config.log, which fails on DOS, as config.log is still kept
1313
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1314
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
1315
 
if test "$no_create" != yes; then
1316
 
  lt_cl_success=:
1317
 
  test "$silent" = yes &&
1318
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1319
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1320
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1321
 
  exec AS_MESSAGE_LOG_FD>>config.log
1322
 
  $lt_cl_success || AS_EXIT(1)
1323
 
fi
1324
 
])# LT_OUTPUT
1325
 
 
1326
 
 
1327
 
# _LT_CONFIG(TAG)
1328
 
# ---------------
1329
 
# If TAG is the built-in tag, create an initial libtool script with a
1330
 
# default configuration from the untagged config vars.  Otherwise add code
1331
 
# to config.status for appending the configuration named by TAG from the
1332
 
# matching tagged config vars.
1333
 
m4_defun([_LT_CONFIG],
1334
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1335
 
_LT_CONFIG_SAVE_COMMANDS([
1336
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1337
 
  m4_if(_LT_TAG, [C], [
1338
 
    # See if we are running on zsh, and set the options which allow our
1339
 
    # commands through without removal of \ escapes.
1340
 
    if test -n "${ZSH_VERSION+set}" ; then
1341
 
      setopt NO_GLOB_SUBST
1342
 
    fi
1343
 
 
1344
 
    cfgfile="${ofile}T"
1345
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1346
 
    $RM "$cfgfile"
1347
 
 
1348
 
    cat <<_LT_EOF >> "$cfgfile"
1349
 
#! $SHELL
1350
 
 
1351
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1352
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1353
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1354
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1355
 
#
1356
 
_LT_COPYING
1357
 
_LT_LIBTOOL_TAGS
1358
 
 
1359
 
# ### BEGIN LIBTOOL CONFIG
1360
 
_LT_LIBTOOL_CONFIG_VARS
1361
 
_LT_LIBTOOL_TAG_VARS
1362
 
# ### END LIBTOOL CONFIG
1363
 
 
1364
 
_LT_EOF
1365
 
 
1366
 
  case $host_os in
1367
 
  aix3*)
1368
 
    cat <<\_LT_EOF >> "$cfgfile"
1369
 
# AIX sometimes has problems with the GCC collect2 program.  For some
1370
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
1371
 
# vanish in a puff of smoke.
1372
 
if test "X${COLLECT_NAMES+set}" != Xset; then
1373
 
  COLLECT_NAMES=
1374
 
  export COLLECT_NAMES
1375
 
fi
1376
 
_LT_EOF
1377
 
    ;;
1378
 
  esac
1379
 
 
1380
 
  _LT_PROG_LTMAIN
1381
 
 
1382
 
  # We use sed instead of cat because bash on DJGPP gets confused if
1383
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1384
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
1385
 
  # is reportedly fixed, but why not run on old versions too?
1386
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1387
 
    || (rm -f "$cfgfile"; exit 1)
1388
 
 
1389
 
  _LT_PROG_XSI_SHELLFNS
1390
 
 
1391
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1392
 
    || (rm -f "$cfgfile"; exit 1)
1393
 
 
1394
 
  mv -f "$cfgfile" "$ofile" ||
1395
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1396
 
  chmod +x "$ofile"
1397
 
],
1398
 
[cat <<_LT_EOF >> "$ofile"
1399
 
 
1400
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1401
 
dnl in a comment (ie after a #).
1402
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
1403
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1404
 
# ### END LIBTOOL TAG CONFIG: $1
1405
 
_LT_EOF
1406
 
])dnl /m4_if
1407
 
],
1408
 
[m4_if([$1], [], [
1409
 
    PACKAGE='$PACKAGE'
1410
 
    VERSION='$VERSION'
1411
 
    TIMESTAMP='$TIMESTAMP'
1412
 
    RM='$RM'
1413
 
    ofile='$ofile'], [])
1414
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
1415
 
])# _LT_CONFIG
1416
 
 
1417
 
 
1418
 
# LT_SUPPORTED_TAG(TAG)
1419
 
# ---------------------
1420
 
# Trace this macro to discover what tags are supported by the libtool
1421
 
# --tag option, using:
1422
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1423
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
1424
 
 
1425
 
 
1426
 
# C support is built-in for now
1427
 
m4_define([_LT_LANG_C_enabled], [])
1428
 
m4_define([_LT_TAGS], [])
1429
 
 
1430
 
 
1431
 
# LT_LANG(LANG)
1432
 
# -------------
1433
 
# Enable libtool support for the given language if not already enabled.
1434
 
AC_DEFUN([LT_LANG],
1435
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1436
 
m4_case([$1],
1437
 
  [C],                  [_LT_LANG(C)],
1438
 
  [C++],                [_LT_LANG(CXX)],
1439
 
  [Java],               [_LT_LANG(GCJ)],
1440
 
  [Fortran 77],         [_LT_LANG(F77)],
1441
 
  [Fortran],            [_LT_LANG(FC)],
1442
 
  [Windows Resource],   [_LT_LANG(RC)],
1443
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1444
 
    [_LT_LANG($1)],
1445
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1446
 
])# LT_LANG
1447
 
 
1448
 
 
1449
 
# _LT_LANG(LANGNAME)
1450
 
# ------------------
1451
 
m4_defun([_LT_LANG],
1452
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1453
 
  [LT_SUPPORTED_TAG([$1])dnl
1454
 
  m4_append([_LT_TAGS], [$1 ])dnl
1455
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1456
 
  _LT_LANG_$1_CONFIG($1)])dnl
1457
 
])# _LT_LANG
1458
 
 
1459
 
 
1460
 
# _LT_LANG_DEFAULT_CONFIG
1461
 
# -----------------------
1462
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1463
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1464
 
  [LT_LANG(CXX)],
1465
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1466
 
 
1467
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
1468
 
  [LT_LANG(F77)],
1469
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1470
 
 
1471
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
1472
 
  [LT_LANG(FC)],
1473
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1474
 
 
1475
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1476
 
dnl pulling things in needlessly.
1477
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1478
 
  [LT_LANG(GCJ)],
1479
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1480
 
    [LT_LANG(GCJ)],
1481
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1482
 
      [LT_LANG(GCJ)],
1483
 
      [m4_ifdef([AC_PROG_GCJ],
1484
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1485
 
       m4_ifdef([A][M_PROG_GCJ],
1486
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1487
 
       m4_ifdef([LT_PROG_GCJ],
1488
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1489
 
 
1490
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
1491
 
  [LT_LANG(RC)],
1492
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1493
 
])# _LT_LANG_DEFAULT_CONFIG
1494
 
 
1495
 
# Obsolete macros:
1496
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1497
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1498
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1499
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1500
 
dnl aclocal-1.4 backwards compatibility:
1501
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1502
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1503
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1504
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1505
 
 
1506
 
 
1507
 
# _LT_TAG_COMPILER
1508
 
# ----------------
1509
 
m4_defun([_LT_TAG_COMPILER],
 
891
AC_DEFUN([_LT_AC_SYS_COMPILER],
1510
892
[AC_REQUIRE([AC_PROG_CC])dnl
1511
893
 
1512
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1513
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1514
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1515
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1516
 
 
1517
894
# If no C compiler was specified, use CC.
1518
895
LTCC=${LTCC-"$CC"}
1519
896
 
1522
899
 
1523
900
# Allow CC to be a program name with arguments.
1524
901
compiler=$CC
1525
 
])# _LT_TAG_COMPILER
 
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
])
1526
919
 
1527
920
 
1528
921
# _LT_COMPILER_BOILERPLATE
1529
922
# ------------------------
1530
923
# Check for compiler boilerplate output or warnings with
1531
924
# the simple compiler test code.
1532
 
m4_defun([_LT_COMPILER_BOILERPLATE],
1533
 
[m4_require([_LT_DECL_SED])dnl
 
925
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
926
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1534
927
ac_outfile=conftest.$ac_objext
1535
928
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1536
929
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1537
930
_lt_compiler_boilerplate=`cat conftest.err`
1538
 
$RM conftest*
 
931
$rm conftest*
1539
932
])# _LT_COMPILER_BOILERPLATE
1540
933
 
1541
934
 
1543
936
# ----------------------
1544
937
# Check for linker boilerplate output or warnings with
1545
938
# the simple link test code.
1546
 
m4_defun([_LT_LINKER_BOILERPLATE],
1547
 
[m4_require([_LT_DECL_SED])dnl
 
939
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
940
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1548
941
ac_outfile=conftest.$ac_objext
1549
942
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1550
943
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1551
944
_lt_linker_boilerplate=`cat conftest.err`
1552
 
$RM -r conftest*
 
945
$rm -r conftest*
1553
946
])# _LT_LINKER_BOILERPLATE
1554
947
 
1555
948
# _LT_REQUIRED_DARWIN_CHECKS
1556
 
# -------------------------
1557
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
949
# --------------------------
 
950
# Check for some things on darwin
 
951
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1558
952
  case $host_os in
1559
953
    rhapsody* | darwin*)
1560
954
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1561
955
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1562
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1563
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1564
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1565
 
    _LT_DECL([], [DSYMUTIL], [1],
1566
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1567
 
    _LT_DECL([], [NMEDIT], [1],
1568
 
      [Tool to change global to local symbols on Mac OS X])
1569
 
    _LT_DECL([], [LIPO], [1],
1570
 
      [Tool to manipulate fat objects and archives on Mac OS X])
1571
 
    _LT_DECL([], [OTOOL], [1],
1572
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1573
 
    _LT_DECL([], [OTOOL64], [1],
1574
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1575
956
 
1576
957
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1577
958
      [lt_cv_apple_cc_single_mod=no
1578
959
      if test -z "${LT_MULTI_MODULE}"; then
1579
 
        # By default we will add the -single_module flag. You can override
1580
 
        # by either setting the environment variable LT_MULTI_MODULE
1581
 
        # non-empty at configure time, or by adding -multi_module to the
1582
 
        # link flags.
1583
 
        rm -rf libconftest.dylib*
1584
 
        echo "int foo(void){return 1;}" > conftest.c
1585
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1586
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1587
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1588
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1589
 
        _lt_result=$?
1590
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1591
 
          lt_cv_apple_cc_single_mod=yes
1592
 
        else
1593
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
1594
 
        fi
1595
 
        rm -rf libconftest.dylib*
1596
 
        rm -f conftest.*
 
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
1597
972
      fi])
1598
973
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1599
974
      [lt_cv_ld_exported_symbols_list],
1602
977
      echo "_main" > conftest.sym
1603
978
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1604
979
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1605
 
        [lt_cv_ld_exported_symbols_list=yes],
1606
 
        [lt_cv_ld_exported_symbols_list=no])
1607
 
        LDFLAGS="$save_LDFLAGS"
 
980
   [lt_cv_ld_exported_symbols_list=yes],
 
981
   [lt_cv_ld_exported_symbols_list=no])
 
982
   LDFLAGS="$save_LDFLAGS"
1608
983
    ])
1609
984
    case $host_os in
1610
 
    rhapsody* | darwin1.[[012]])
 
985
    rhapsody* | darwin1.[[0123]])
1611
986
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1612
987
    darwin1.*)
1613
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1614
 
    darwin*) # darwin 5.x on 
 
988
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
989
    darwin*)
1615
990
      # if running on 10.5 or later, the deployment target defaults
1616
991
      # to the OS version, if on x86, and 10.4, the deployment
1617
 
      # target defaults to 10.4. Don't you love it? 
 
992
      # target defaults to 10.4. Don't you love it?
1618
993
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1619
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1620
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1621
 
        10.[[012]]*)
1622
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1623
 
        10.*)
1624
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
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' ;;
1625
1000
      esac
1626
1001
    ;;
1627
1002
  esac
1631
1006
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1632
1007
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1633
1008
    else
1634
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
1009
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1635
1010
    fi
1636
1011
    if test "$DSYMUTIL" != ":"; then
1637
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
1012
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
1638
1013
    else
1639
1014
      _lt_dsymutil=
1640
1015
    fi
1642
1017
  esac
1643
1018
])
1644
1019
 
1645
 
 
1646
 
# _LT_DARWIN_LINKER_FEATURES
1647
 
# --------------------------
1648
 
# Checks for linker and compiler features on darwin
1649
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1650
 
[
1651
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1652
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1653
 
  _LT_TAGVAR(hardcode_direct, $1)=no
1654
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1655
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1656
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1657
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1658
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1659
 
  if test "$GCC" = "yes"; then
1660
 
    output_verbose_link_cmd=echo
1661
 
    _LT_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}"
1662
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1663
 
    _LT_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}"
1664
 
    _LT_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}"
1665
 
    m4_if([$1], [CXX],
1666
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1667
 
      _LT_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}"
1668
 
      _LT_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}"
1669
 
    fi
1670
 
],[])
1671
 
  else
1672
 
  _LT_TAGVAR(ld_shlibs, $1)=no
1673
 
  fi
1674
 
])
1675
 
 
1676
 
# _LT_SYS_MODULE_PATH_AIX
1677
 
# -----------------------
 
1020
# _LT_AC_SYS_LIBPATH_AIX
 
1021
# ----------------------
1678
1022
# Links a minimal program and checks the executable
1679
1023
# for the system default hardcoded library path. In most cases,
1680
1024
# this is /usr/lib:/lib, but when the MPI compilers are used
1681
1025
# the location of the communication and MPI libs are included too.
1682
1026
# If we don't find anything, use the default library path according
1683
1027
# to the aix ld manual.
1684
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1685
 
[m4_require([_LT_DECL_SED])dnl
 
1028
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1029
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1686
1030
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1687
1031
lt_aix_libpath_sed='
1688
1032
    /Import File Strings/,/^$/ {
1697
1041
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1698
1042
fi],[])
1699
1043
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1700
 
])# _LT_SYS_MODULE_PATH_AIX
1701
 
 
1702
 
 
1703
 
# _LT_SHELL_INIT(ARG)
1704
 
# -------------------
1705
 
m4_define([_LT_SHELL_INIT],
 
1044
])# _LT_AC_SYS_LIBPATH_AIX
 
1045
 
 
1046
 
 
1047
# _LT_AC_SHELL_INIT(ARG)
 
1048
# ----------------------
 
1049
AC_DEFUN([_LT_AC_SHELL_INIT],
1706
1050
[ifdef([AC_DIVERSION_NOTICE],
1707
1051
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1708
1052
         [AC_DIVERT_PUSH(NOTICE)])
1709
1053
$1
1710
1054
AC_DIVERT_POP
1711
 
])# _LT_SHELL_INIT
1712
 
 
1713
 
 
1714
 
# _LT_PROG_ECHO_BACKSLASH
1715
 
# -----------------------
 
1055
])# _LT_AC_SHELL_INIT
 
1056
 
 
1057
 
 
1058
# _LT_AC_PROG_ECHO_BACKSLASH
 
1059
# --------------------------
1716
1060
# Add some code to the start of the generated configure script which
1717
1061
# will find an echo command which doesn't interpret backslashes.
1718
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1719
 
[_LT_SHELL_INIT([
 
1062
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
1063
[_LT_AC_SHELL_INIT([
1720
1064
# Check that we are running under the correct shell.
1721
1065
SHELL=${CONFIG_SHELL-/bin/sh}
1722
1066
 
1723
 
case X$lt_ECHO in
 
1067
case X$ECHO in
1724
1068
X*--fallback-echo)
1725
1069
  # Remove one level of quotation (which was required for Make).
1726
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1070
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1727
1071
  ;;
1728
1072
esac
1729
1073
 
1730
 
ECHO=${lt_ECHO-echo}
 
1074
echo=${ECHO-echo}
1731
1075
if test "X[$]1" = X--no-reexec; then
1732
1076
  # Discard the --no-reexec flag, and continue.
1733
1077
  shift
1734
1078
elif test "X[$]1" = X--fallback-echo; then
1735
1079
  # Avoid inline document here, it may be left over
1736
1080
  :
1737
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1738
 
  # Yippee, $ECHO works!
 
1081
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
1082
  # Yippee, $echo works!
1739
1083
  :
1740
1084
else
1741
1085
  # Restart under the correct shell.
1745
1089
if test "X[$]1" = X--fallback-echo; then
1746
1090
  # used as fallback echo
1747
1091
  shift
1748
 
  cat <<_LT_EOF
 
1092
  cat <<EOF
1749
1093
[$]*
1750
 
_LT_EOF
 
1094
EOF
1751
1095
  exit 0
1752
1096
fi
1753
1097
 
1755
1099
# if CDPATH is set.
1756
1100
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1757
1101
 
1758
 
if test -z "$lt_ECHO"; then
1759
 
  if test "X${echo_test_string+set}" != Xset; then
1760
 
    # find a string as large as possible, as long as the shell can cope with it
1761
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1762
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1763
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1764
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1765
 
      then
1766
 
        break
1767
 
      fi
1768
 
    done
1769
 
  fi
1770
 
 
1771
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1772
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1773
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1774
 
    :
1775
 
  else
1776
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1777
 
    # backslashes.  This makes it impossible to quote backslashes using
1778
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1779
 
    #
1780
 
    # So, first we look for a working echo in the user's PATH.
1781
 
 
1782
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1783
 
    for dir in $PATH /usr/ucb; do
1784
 
      IFS="$lt_save_ifs"
1785
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1786
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1787
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1788
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1789
 
        ECHO="$dir/echo"
1790
 
        break
1791
 
      fi
1792
 
    done
 
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
1793
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"
1794
1139
 
1795
 
    if test "X$ECHO" = Xecho; then
1796
 
      # We didn't find a better echo, so look for alternatives.
1797
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1798
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1799
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1800
 
        # This shell has a builtin print -r that does the trick.
1801
 
        ECHO='print -r'
1802
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1803
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1804
 
        # If we have ksh, try running configure again with it.
1805
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1806
 
        export ORIGINAL_CONFIG_SHELL
1807
 
        CONFIG_SHELL=/bin/ksh
1808
 
        export CONFIG_SHELL
1809
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
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"
1810
1177
      else
1811
 
        # Try using printf.
1812
 
        ECHO='printf %s\n'
1813
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1814
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1815
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1816
 
          # Cool, printf works
1817
 
          :
1818
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1819
 
             test "X$echo_testing_string" = 'X\t' &&
1820
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1821
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1822
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1823
 
          export CONFIG_SHELL
1824
 
          SHELL="$CONFIG_SHELL"
1825
 
          export SHELL
1826
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1827
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1828
 
             test "X$echo_testing_string" = 'X\t' &&
1829
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1830
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1831
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1832
 
        else
1833
 
          # maybe with a smaller string...
1834
 
          prev=:
1835
 
 
1836
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1837
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1838
 
            then
1839
 
              break
1840
 
            fi
1841
 
            prev="$cmd"
1842
 
          done
1843
 
 
1844
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1845
 
            echo_test_string=`eval $prev`
1846
 
            export echo_test_string
1847
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1848
 
          else
1849
 
            # Oops.  We lost completely, so just stick with echo.
1850
 
            ECHO=echo
 
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
1851
1185
          fi
1852
 
        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
1853
1197
      fi
1854
1198
    fi
1855
1199
  fi
1856
1200
fi
 
1201
fi
1857
1202
 
1858
1203
# Copy echo and quote the copy suitably for passing to libtool from
1859
1204
# the Makefile, instead of quoting the original, which is used later.
1860
 
lt_ECHO=$ECHO
1861
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1862
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1205
ECHO=$echo
 
1206
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1207
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1863
1208
fi
1864
1209
 
1865
 
AC_SUBST(lt_ECHO)
1866
 
])
1867
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1868
 
_LT_DECL([], [ECHO], [1],
1869
 
    [An echo program that does not interpret backslashes])
1870
 
])# _LT_PROG_ECHO_BACKSLASH
1871
 
 
1872
 
 
1873
 
# _LT_ENABLE_LOCK
1874
 
# ---------------
1875
 
m4_defun([_LT_ENABLE_LOCK],
 
1210
AC_SUBST(ECHO)
 
1211
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1212
 
 
1213
 
 
1214
# _LT_AC_LOCK
 
1215
# -----------
 
1216
AC_DEFUN([_LT_AC_LOCK],
1876
1217
[AC_ARG_ENABLE([libtool-lock],
1877
 
  [AS_HELP_STRING([--disable-libtool-lock],
1878
 
    [avoid locking (might break parallel builds)])])
 
1218
    [AC_HELP_STRING([--disable-libtool-lock],
 
1219
        [avoid locking (might break parallel builds)])])
1879
1220
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1880
1221
 
1881
1222
# Some flags need to be propagated to the compiler or linker for good
1886
1227
  echo 'int i;' > conftest.$ac_ext
1887
1228
  if AC_TRY_EVAL(ac_compile); then
1888
1229
    case `/usr/bin/file conftest.$ac_objext` in
1889
 
      *ELF-32*)
1890
 
        HPUX_IA64_MODE="32"
1891
 
        ;;
1892
 
      *ELF-64*)
1893
 
        HPUX_IA64_MODE="64"
1894
 
        ;;
 
1230
    *ELF-32*)
 
1231
      HPUX_IA64_MODE="32"
 
1232
      ;;
 
1233
    *ELF-64*)
 
1234
      HPUX_IA64_MODE="64"
 
1235
      ;;
1895
1236
    esac
1896
1237
  fi
1897
1238
  rm -rf conftest*
1900
1241
  # Find out which ABI we are using.
1901
1242
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1902
1243
  if AC_TRY_EVAL(ac_compile); then
1903
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
1904
 
      case `/usr/bin/file conftest.$ac_objext` in
1905
 
        *32-bit*)
1906
 
          LD="${LD-ld} -melf32bsmip"
1907
 
          ;;
1908
 
        *N32*)
1909
 
          LD="${LD-ld} -melf32bmipn32"
1910
 
          ;;
1911
 
        *64-bit*)
1912
 
          LD="${LD-ld} -melf64bmip"
1913
 
        ;;
1914
 
      esac
1915
 
    else
1916
 
      case `/usr/bin/file conftest.$ac_objext` in
1917
 
        *32-bit*)
1918
 
          LD="${LD-ld} -32"
1919
 
          ;;
1920
 
        *N32*)
1921
 
          LD="${LD-ld} -n32"
1922
 
          ;;
1923
 
        *64-bit*)
1924
 
          LD="${LD-ld} -64"
1925
 
          ;;
1926
 
      esac
1927
 
    fi
 
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
1928
1269
  fi
1929
1270
  rm -rf conftest*
1930
1271
  ;;
1931
1272
 
1932
1273
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1933
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
1274
s390*-*linux*|sparc*-*linux*)
1934
1275
  # Find out which ABI we are using.
1935
1276
  echo 'int i;' > conftest.$ac_ext
1936
1277
  if AC_TRY_EVAL(ac_compile); then
1937
1278
    case `/usr/bin/file conftest.o` in
1938
 
      *32-bit*)
1939
 
        case $host in
1940
 
          x86_64-*kfreebsd*-gnu)
1941
 
            LD="${LD-ld} -m elf_i386_fbsd"
1942
 
            ;;
1943
 
          x86_64-*linux*)
1944
 
            LD="${LD-ld} -m elf_i386"
1945
 
            ;;
1946
 
          ppc64-*linux*|powerpc64-*linux*)
1947
 
            LD="${LD-ld} -m elf32ppclinux"
1948
 
            ;;
1949
 
          s390x-*linux*)
1950
 
            LD="${LD-ld} -m elf_s390"
1951
 
            ;;
1952
 
          sparc64-*linux*)
1953
 
            LD="${LD-ld} -m elf32_sparc"
1954
 
            ;;
1955
 
        esac
1956
 
        ;;
1957
 
      *64-bit*)
1958
 
        case $host in
1959
 
          x86_64-*kfreebsd*-gnu)
1960
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
1961
 
            ;;
1962
 
          x86_64-*linux*)
1963
 
            LD="${LD-ld} -m elf_x86_64"
1964
 
            ;;
1965
 
          ppc*-*linux*|powerpc*-*linux*)
1966
 
            LD="${LD-ld} -m elf64ppc"
1967
 
            ;;
1968
 
          s390*-*linux*|s390*-*tpf*)
1969
 
            LD="${LD-ld} -m elf64_s390"
1970
 
            ;;
1971
 
          sparc*-*linux*)
1972
 
            LD="${LD-ld} -m elf64_sparc"
1973
 
            ;;
1974
 
        esac
1975
 
        ;;
 
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
      ;;
1976
1317
    esac
1977
1318
  fi
1978
1319
  rm -rf conftest*
1984
1325
  CFLAGS="$CFLAGS -belf"
1985
1326
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1986
1327
    [AC_LANG_PUSH(C)
1987
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1328
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1988
1329
     AC_LANG_POP])
1989
1330
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1990
1331
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2000
1341
      case $lt_cv_prog_gnu_ld in
2001
1342
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2002
1343
      *)
2003
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1344
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2004
1345
          LD="${LD-ld} -64"
2005
1346
        fi
2006
1347
        ;;
2010
1351
  fi
2011
1352
  rm -rf conftest*
2012
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
  ])
2013
1362
esac
2014
1363
 
2015
1364
need_locks="$enable_libtool_lock"
2016
 
])# _LT_ENABLE_LOCK
2017
 
 
2018
 
 
2019
 
# _LT_CMD_OLD_ARCHIVE
2020
 
# -------------------
2021
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
2022
 
[AC_CHECK_TOOL(AR, ar, false)
2023
 
test -z "$AR" && AR=ar
2024
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2025
 
_LT_DECL([], [AR], [1], [The archiver])
2026
 
_LT_DECL([], [AR_FLAGS], [1])
2027
 
 
2028
 
AC_CHECK_TOOL(STRIP, strip, :)
2029
 
test -z "$STRIP" && STRIP=:
2030
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2031
 
 
2032
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2033
 
test -z "$RANLIB" && RANLIB=:
2034
 
_LT_DECL([], [RANLIB], [1],
2035
 
    [Commands used to install an old-style archive])
2036
 
 
2037
 
# Determine commands to create old-style static archives.
2038
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2039
 
old_postinstall_cmds='chmod 644 $oldlib'
2040
 
old_postuninstall_cmds=
2041
 
 
2042
 
if test -n "$RANLIB"; then
2043
 
  case $host_os in
2044
 
  openbsd*)
2045
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2046
 
    ;;
2047
 
  *)
2048
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2049
 
    ;;
2050
 
  esac
2051
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2052
 
fi
2053
 
_LT_DECL([], [old_postinstall_cmds], [2])
2054
 
_LT_DECL([], [old_postuninstall_cmds], [2])
2055
 
_LT_TAGDECL([], [old_archive_cmds], [2],
2056
 
    [Commands used to build an old-style archive])
2057
 
])# _LT_CMD_OLD_ARCHIVE
2058
 
 
2059
 
 
2060
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1365
 
 
1366
])# _LT_AC_LOCK
 
1367
 
 
1368
 
 
1369
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2061
1370
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2062
1371
# ----------------------------------------------------------------
2063
1372
# Check whether the given compiler option works
2064
 
AC_DEFUN([_LT_COMPILER_OPTION],
2065
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2066
 
m4_require([_LT_DECL_SED])dnl
 
1373
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1374
[AC_REQUIRE([LT_AC_PROG_SED])
2067
1375
AC_CACHE_CHECK([$1], [$2],
2068
1376
  [$2=no
2069
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1377
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2070
1378
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2071
1379
   lt_compiler_flag="$3"
2072
1380
   # Insert the option either (1) after the last *FLAGS variable, or
2086
1394
   if (exit $ac_status) && test -s "$ac_outfile"; then
2087
1395
     # The compiler can only warn and ignore the option if not recognized
2088
1396
     # So say no if there are warnings other than the usual output.
2089
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1397
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2090
1398
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2091
1399
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2092
1400
       $2=yes
2093
1401
     fi
2094
1402
   fi
2095
 
   $RM conftest*
 
1403
   $rm conftest*
2096
1404
])
2097
1405
 
2098
1406
if test x"[$]$2" = xyes; then
2099
 
    m4_if([$5], , :, [$5])
 
1407
    ifelse([$5], , :, [$5])
2100
1408
else
2101
 
    m4_if([$6], , :, [$6])
 
1409
    ifelse([$6], , :, [$6])
2102
1410
fi
2103
 
])# _LT_COMPILER_OPTION
2104
 
 
2105
 
# Old name:
2106
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2107
 
dnl aclocal-1.4 backwards compatibility:
2108
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2109
 
 
2110
 
 
2111
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2112
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2113
 
# ----------------------------------------------------
2114
 
# Check whether the given linker option works
2115
 
AC_DEFUN([_LT_LINKER_OPTION],
2116
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2117
 
m4_require([_LT_DECL_SED])dnl
 
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
2118
1420
AC_CACHE_CHECK([$1], [$2],
2119
1421
  [$2=no
2120
1422
   save_LDFLAGS="$LDFLAGS"
2126
1428
     if test -s conftest.err; then
2127
1429
       # Append any errors to the config.log.
2128
1430
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2129
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1431
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2130
1432
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2131
1433
       if diff conftest.exp conftest.er2 >/dev/null; then
2132
1434
         $2=yes
2135
1437
       $2=yes
2136
1438
     fi
2137
1439
   fi
2138
 
   $RM -r conftest*
 
1440
   $rm -r conftest*
2139
1441
   LDFLAGS="$save_LDFLAGS"
2140
1442
])
2141
1443
 
2142
1444
if test x"[$]$2" = xyes; then
2143
 
    m4_if([$4], , :, [$4])
 
1445
    ifelse([$4], , :, [$4])
2144
1446
else
2145
 
    m4_if([$5], , :, [$5])
 
1447
    ifelse([$5], , :, [$5])
2146
1448
fi
2147
 
])# _LT_LINKER_OPTION
2148
 
 
2149
 
# Old name:
2150
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2151
 
dnl aclocal-1.4 backwards compatibility:
2152
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2153
 
 
2154
 
 
2155
 
# LT_CMD_MAX_LEN
2156
 
#---------------
2157
 
AC_DEFUN([LT_CMD_MAX_LEN],
2158
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2159
 
# find the maximum length of command line arguments
 
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
2160
1456
AC_MSG_CHECKING([the maximum length of command line arguments])
2161
1457
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2162
1458
  i=0
2233
1529
  sysv5* | sco5v6* | sysv4.2uw2*)
2234
1530
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2235
1531
    if test -n "$kargmax"; then
2236
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
1532
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
2237
1533
    else
2238
1534
      lt_cv_sys_max_cmd_len=32768
2239
1535
    fi
2244
1540
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2245
1541
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2246
1542
    else
2247
 
      # Make teststring a little bigger before we do anything with it.
2248
 
      # a 1K string should be a reasonable start.
2249
 
      for i in 1 2 3 4 5 6 7 8 ; do
2250
 
        teststring=$teststring$teststring
2251
 
      done
2252
1543
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2253
 
      # If test is not a shell built-in, we'll probably end up computing a
2254
 
      # maximum length that is only half of the actual maximum length, but
2255
 
      # we can't tell.
2256
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2257
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
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 &&
2258
1548
              test $i != 17 # 1/2 MB should be enough
2259
1549
      do
2260
1550
        i=`expr $i + 1`
2261
1551
        teststring=$teststring$teststring
2262
1552
      done
2263
 
      # Only check the string length outside the loop.
2264
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2265
1553
      teststring=
2266
 
      # Add a significant safety factor because C++ compilers can tack on
2267
 
      # massive amounts of additional arguments before passing them to the
2268
 
      # linker.  It appears as though 1/2 is a usable value.
 
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.
2269
1557
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2270
1558
    fi
2271
1559
    ;;
2276
1564
else
2277
1565
  AC_MSG_RESULT(none)
2278
1566
fi
2279
 
max_cmd_len=$lt_cv_sys_max_cmd_len
2280
 
_LT_DECL([], [max_cmd_len], [0],
2281
 
    [What is the maximum length of a command?])
2282
 
])# LT_CMD_MAX_LEN
2283
 
 
2284
 
# Old name:
2285
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2286
 
dnl aclocal-1.4 backwards compatibility:
2287
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2288
 
 
2289
 
 
2290
 
# _LT_HEADER_DLFCN
2291
 
# ----------------
2292
 
m4_defun([_LT_HEADER_DLFCN],
2293
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2294
 
])# _LT_HEADER_DLFCN
2295
 
 
2296
 
 
2297
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2298
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2299
 
# ----------------------------------------------------------------
2300
 
m4_defun([_LT_TRY_DLOPEN_SELF],
2301
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
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
2302
1582
if test "$cross_compiling" = yes; then :
2303
1583
  [$4]
2304
1584
else
2305
1585
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2306
1586
  lt_status=$lt_dlunknown
2307
 
  cat > conftest.$ac_ext <<_LT_EOF
 
1587
  cat > conftest.$ac_ext <<EOF
2308
1588
[#line __oline__ "configure"
2309
1589
#include "confdefs.h"
2310
1590
 
2367
1647
 
2368
1648
    exit (status);
2369
1649
}]
2370
 
_LT_EOF
 
1650
EOF
2371
1651
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2372
1652
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2373
1653
    lt_status=$?
2382
1662
  fi
2383
1663
fi
2384
1664
rm -fr conftest*
2385
 
])# _LT_TRY_DLOPEN_SELF
2386
 
 
2387
 
 
2388
 
# LT_SYS_DLOPEN_SELF
2389
 
# ------------------
2390
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2391
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
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
2392
1672
if test "x$enable_dlopen" != xyes; then
2393
1673
  enable_dlopen=unknown
2394
1674
  enable_dlopen_self=unknown
2407
1687
  mingw* | pw32*)
2408
1688
    lt_cv_dlopen="LoadLibrary"
2409
1689
    lt_cv_dlopen_libs=
2410
 
    ;;
 
1690
   ;;
2411
1691
 
2412
1692
  cygwin*)
2413
1693
    lt_cv_dlopen="dlopen"
2414
1694
    lt_cv_dlopen_libs=
2415
 
    ;;
 
1695
   ;;
2416
1696
 
2417
1697
  darwin*)
2418
1698
  # if libdl is installed we need to link against it
2422
1702
    lt_cv_dlopen_libs=
2423
1703
    lt_cv_dlopen_self=yes
2424
1704
    ])
2425
 
    ;;
 
1705
   ;;
2426
1706
 
2427
1707
  *)
2428
1708
    AC_CHECK_FUNC([shl_load],
2464
1744
 
2465
1745
    AC_CACHE_CHECK([whether a program can dlopen itself],
2466
1746
          lt_cv_dlopen_self, [dnl
2467
 
          _LT_TRY_DLOPEN_SELF(
 
1747
          _LT_AC_TRY_DLOPEN_SELF(
2468
1748
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2469
1749
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2470
1750
    ])
2472
1752
    if test "x$lt_cv_dlopen_self" = xyes; then
2473
1753
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2474
1754
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2475
 
          lt_cv_dlopen_self_static, [dnl
2476
 
          _LT_TRY_DLOPEN_SELF(
 
1755
          lt_cv_dlopen_self_static, [dnl
 
1756
          _LT_AC_TRY_DLOPEN_SELF(
2477
1757
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2478
1758
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2479
1759
      ])
2495
1775
  *) enable_dlopen_self_static=unknown ;;
2496
1776
  esac
2497
1777
fi
2498
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2499
 
         [Whether dlopen is supported])
2500
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2501
 
         [Whether dlopen of programs is supported])
2502
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2503
 
         [Whether dlopen of statically linked programs is supported])
2504
 
])# LT_SYS_DLOPEN_SELF
2505
 
 
2506
 
# Old name:
2507
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2508
 
dnl aclocal-1.4 backwards compatibility:
2509
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2510
 
 
2511
 
 
2512
 
# _LT_COMPILER_C_O([TAGNAME])
2513
 
# ---------------------------
2514
 
# Check to see if options -c and -o are simultaneously supported by compiler.
2515
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2516
 
m4_defun([_LT_COMPILER_C_O],
2517
 
[m4_require([_LT_DECL_SED])dnl
2518
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2519
 
m4_require([_LT_TAG_COMPILER])dnl
 
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
2520
1787
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2521
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2522
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2523
 
   $RM -r conftest 2>/dev/null
 
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
2524
1791
   mkdir conftest
2525
1792
   cd conftest
2526
1793
   mkdir out
2544
1811
   then
2545
1812
     # The compiler can only warn and ignore the option if not recognized
2546
1813
     # So say no if there are warnings
2547
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1814
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2548
1815
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2549
1816
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2550
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1817
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2551
1818
     fi
2552
1819
   fi
2553
1820
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2554
 
   $RM conftest*
 
1821
   $rm conftest*
2555
1822
   # SGI C++ compiler will create directory out/ii_files/ for
2556
1823
   # template instantiation
2557
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2558
 
   $RM out/* && rmdir out
 
1824
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1825
   $rm out/* && rmdir out
2559
1826
   cd ..
2560
 
   $RM -r conftest
2561
 
   $RM conftest*
 
1827
   rmdir conftest
 
1828
   $rm conftest*
2562
1829
])
2563
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2564
 
        [Does compiler simultaneously support -c and -o options?])
2565
 
])# _LT_COMPILER_C_O
2566
 
 
2567
 
 
2568
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2569
 
# ----------------------------------
 
1830
])# AC_LIBTOOL_PROG_CC_C_O
 
1831
 
 
1832
 
 
1833
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1834
# -----------------------------------------
2570
1835
# Check to see if we can do hard links to lock some files if needed
2571
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
2572
 
[m4_require([_LT_ENABLE_LOCK])dnl
2573
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2574
 
_LT_COMPILER_C_O([$1])
 
1836
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1837
[AC_REQUIRE([_LT_AC_LOCK])dnl
2575
1838
 
2576
1839
hard_links="nottested"
2577
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1840
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2578
1841
  # do not overwrite the value of need_locks provided by the user
2579
1842
  AC_MSG_CHECKING([if we can lock with hard links])
2580
1843
  hard_links=yes
2581
 
  $RM conftest*
 
1844
  $rm conftest*
2582
1845
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2583
1846
  touch conftest.a
2584
1847
  ln conftest.a conftest.b 2>&5 || hard_links=no
2591
1854
else
2592
1855
  need_locks=no
2593
1856
fi
2594
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2595
 
])# _LT_COMPILER_FILE_LOCKS
2596
 
 
2597
 
 
2598
 
# _LT_CHECK_OBJDIR
2599
 
# ----------------
2600
 
m4_defun([_LT_CHECK_OBJDIR],
 
1857
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1858
 
 
1859
 
 
1860
# AC_LIBTOOL_OBJDIR
 
1861
# -----------------
 
1862
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2601
1863
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2602
1864
[rm -f .libs 2>/dev/null
2603
1865
mkdir .libs 2>/dev/null
2609
1871
fi
2610
1872
rmdir .libs 2>/dev/null])
2611
1873
objdir=$lt_cv_objdir
2612
 
_LT_DECL([], [objdir], [0],
2613
 
         [The name of the directory that contains temporary libtool files])dnl
2614
 
m4_pattern_allow([LT_OBJDIR])dnl
2615
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2616
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2617
 
])# _LT_CHECK_OBJDIR
2618
 
 
2619
 
 
2620
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2621
 
# --------------------------------------
 
1874
])# AC_LIBTOOL_OBJDIR
 
1875
 
 
1876
 
 
1877
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1878
# ----------------------------------------------
2622
1879
# Check hardcoding attributes.
2623
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
1880
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2624
1881
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2625
 
_LT_TAGVAR(hardcode_action, $1)=
2626
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2627
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2628
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
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
2629
1886
 
2630
 
  # We can hardcode non-existent directories.
2631
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
1887
  # We can hardcode non-existant directories.
 
1888
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2632
1889
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2633
1890
     # have to relink, otherwise we might link with an installed library
2634
1891
     # when we should be linking with a yet-to-be-installed one
2635
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2636
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1892
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1893
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2637
1894
    # Linking always hardcodes the temporary library directory.
2638
 
    _LT_TAGVAR(hardcode_action, $1)=relink
 
1895
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2639
1896
  else
2640
1897
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2641
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
1898
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2642
1899
  fi
2643
1900
else
2644
1901
  # We cannot hardcode anything, or else we can only hardcode existing
2645
1902
  # directories.
2646
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
1903
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2647
1904
fi
2648
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
1905
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2649
1906
 
2650
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2651
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
1907
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2652
1908
  # Fast installation is not supported
2653
1909
  enable_fast_install=no
2654
1910
elif test "$shlibpath_overrides_runpath" = yes ||
2656
1912
  # Fast installation is not necessary
2657
1913
  enable_fast_install=needless
2658
1914
fi
2659
 
_LT_TAGDECL([], [hardcode_action], [0],
2660
 
    [How to hardcode a shared library path into an executable])
2661
 
])# _LT_LINKER_HARDCODE_LIBPATH
2662
 
 
2663
 
 
2664
 
# _LT_CMD_STRIPLIB
2665
 
# ----------------
2666
 
m4_defun([_LT_CMD_STRIPLIB],
2667
 
[m4_require([_LT_DECL_EGREP])
2668
 
striplib=
 
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=
2669
1922
old_striplib=
2670
1923
AC_MSG_CHECKING([whether stripping libraries is possible])
2671
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
1924
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2672
1925
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2673
1926
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2674
1927
  AC_MSG_RESULT([yes])
2675
1928
else
2676
1929
# FIXME - insert some real tests, host_os isn't really good enough
2677
1930
  case $host_os in
2678
 
  darwin*)
2679
 
    if test -n "$STRIP" ; then
2680
 
      striplib="$STRIP -x"
2681
 
      old_striplib="$STRIP -S"
2682
 
      AC_MSG_RESULT([yes])
2683
 
    else
2684
 
      AC_MSG_RESULT([no])
2685
 
    fi
2686
 
    ;;
2687
 
  *)
2688
 
    AC_MSG_RESULT([no])
 
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])
2689
1942
    ;;
2690
1943
  esac
2691
1944
fi
2692
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2693
 
_LT_DECL([], [striplib], [1])
2694
 
])# _LT_CMD_STRIPLIB
2695
 
 
2696
 
 
2697
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
1945
])# AC_LIBTOOL_SYS_LIB_STRIP
 
1946
 
 
1947
 
 
1948
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2698
1949
# -----------------------------
2699
1950
# PORTME Fill in your ld.so characteristics
2700
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2701
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2702
 
m4_require([_LT_DECL_EGREP])dnl
2703
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2704
 
m4_require([_LT_DECL_SED])dnl
 
1951
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1952
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2705
1953
AC_MSG_CHECKING([dynamic linker characteristics])
2706
 
m4_if([$1],
2707
 
        [], [
 
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,[],[
2708
1968
if test "$GCC" = yes; then
2709
1969
  case $host_os in
2710
1970
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2711
1971
    *) lt_awk_arg="/^libraries:/" ;;
2712
1972
  esac
2713
1973
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2714
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
1974
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2715
1975
    # if the path contains ";" then we assume it to be the separator
2716
1976
    # otherwise default to the standard path separator (i.e. ":") - it is
2717
1977
    # assumed that no part of a normal pathname contains ";" but that should
2718
1978
    # okay in the real world where ";" in dirpaths is itself problematic.
2719
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
1979
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2720
1980
  else
2721
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1981
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2722
1982
  fi
2723
1983
  # Ok, now we have the path, separated by spaces, we can step through it
2724
1984
  # and add multilib dir if necessary.
2732
1992
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2733
1993
    fi
2734
1994
  done
2735
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
1995
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2736
1996
BEGIN {RS=" "; FS="/|\n";} {
2737
1997
  lt_foo="";
2738
1998
  lt_count=0;
2752
2012
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2753
2013
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2754
2014
}'`
2755
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2015
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2756
2016
else
2757
2017
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2758
2018
fi])
2759
 
library_names_spec=
2760
 
libname_spec='lib$name'
2761
 
soname_spec=
2762
 
shrext_cmds=".so"
2763
 
postinstall_cmds=
2764
 
postuninstall_cmds=
2765
 
finish_cmds=
2766
 
finish_eval=
2767
 
shlibpath_var=
2768
 
shlibpath_overrides_runpath=unknown
2769
 
version_type=none
2770
 
dynamic_linker="$host_os ld.so"
2771
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2772
2019
need_lib_prefix=unknown
2773
2020
hardcode_into_libs=no
2774
2021
 
2805
2052
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2806
2053
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2807
2054
           echo ' yes '
2808
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
2055
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2809
2056
        :
2810
2057
      else
2811
2058
        can_build_shared=no
2831
2078
  ;;
2832
2079
 
2833
2080
amigaos*)
2834
 
  case $host_cpu in
2835
 
  powerpc)
2836
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2837
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2838
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2839
 
    ;;
2840
 
  m68k)
2841
 
    library_names_spec='$libname.ixlibrary $libname.a'
2842
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2843
 
    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'
2844
 
    ;;
2845
 
  esac
 
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'
2846
2084
  ;;
2847
2085
 
2848
2086
beos*)
2876
2114
    library_names_spec='$libname.dll.a'
2877
2115
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2878
2116
    postinstall_cmds='base_file=`basename \${file}`~
2879
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2117
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2880
2118
      dldir=$destdir/`dirname \$dlpath`~
2881
2119
      test -d \$dldir || mkdir -p \$dldir~
2882
2120
      $install_prog $dir/$dlname \$dldir/$dlname~
2883
 
      chmod a+x \$dldir/$dlname~
2884
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2885
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2886
 
      fi'
 
2121
      chmod a+x \$dldir/$dlname'
2887
2122
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2888
2123
      dlpath=$dir/\$dldll~
2889
 
       $RM \$dlpath'
 
2124
       $rm \$dlpath'
2890
2125
    shlibpath_overrides_runpath=yes
2891
2126
 
2892
2127
    case $host_os in
2898
2133
    mingw*)
2899
2134
      # MinGW DLLs use traditional 'lib' prefix
2900
2135
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2901
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2902
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
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
2903
2138
        # It is most probably a Windows format PATH printed by
2904
2139
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2905
2140
        # path with ; separators, and with drive letters. We can handle the
2906
2141
        # drive letters (cygwin fileutils understands them), so leave them,
2907
2142
        # especially as we might pass files found there to a mingw objdump,
2908
2143
        # which wouldn't understand a cygwinified path. Ahh.
2909
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2144
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2910
2145
      else
2911
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2146
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2912
2147
      fi
2913
2148
      ;;
2914
2149
    pw32*)
2932
2167
  version_type=darwin
2933
2168
  need_lib_prefix=no
2934
2169
  need_version=no
2935
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2170
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2936
2171
  soname_spec='${libname}${release}${major}$shared_ext'
2937
2172
  shlibpath_overrides_runpath=yes
2938
2173
  shlibpath_var=DYLD_LIBRARY_PATH
2939
2174
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2940
 
m4_if([$1], [],[
2941
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
2175
  m4_if([$1], [],[
 
2176
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2942
2177
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2943
2178
  ;;
2944
2179
 
3031
2266
    fi
3032
2267
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3033
2268
    ;;
3034
 
  hppa*64*)
3035
 
    shrext_cmds='.sl'
3036
 
    hardcode_into_libs=yes
3037
 
    dynamic_linker="$host_os dld.sl"
3038
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3039
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3040
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3041
 
    soname_spec='${libname}${release}${shared_ext}$major'
3042
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3043
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3044
 
    ;;
3045
 
  *)
 
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
   *)
3046
2281
    shrext_cmds='.sl'
3047
2282
    dynamic_linker="$host_os dld.sl"
3048
2283
    shlibpath_var=SHLIB_PATH
3119
2354
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3120
2355
  shlibpath_var=LD_LIBRARY_PATH
3121
2356
  shlibpath_overrides_runpath=no
3122
 
  # Some binutils ld are patched to set DT_RUNPATH
3123
 
  save_LDFLAGS=$LDFLAGS
3124
 
  save_libdir=$libdir
3125
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3126
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3127
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3128
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3129
 
       [shlibpath_overrides_runpath=yes])])
3130
 
  LDFLAGS=$save_LDFLAGS
3131
 
  libdir=$save_libdir
3132
 
 
3133
2357
  # This implies no fast_install, which is unacceptable.
3134
2358
  # Some rework will be needed to allow for fast_install
3135
2359
  # before this can be enabled.
3137
2361
 
3138
2362
  # Append ld.so.conf contents to the search path
3139
2363
  if test -f /etc/ld.so.conf; then
3140
 
    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' ' '`
 
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' ' '`
3141
2365
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3142
2366
  fi
3143
2367
 
3150
2374
  dynamic_linker='GNU/Linux ld.so'
3151
2375
  ;;
3152
2376
 
3153
 
netbsdelf*-gnu)
3154
 
  version_type=linux
3155
 
  need_lib_prefix=no
3156
 
  need_version=no
3157
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3158
 
  soname_spec='${libname}${release}${shared_ext}$major'
3159
 
  shlibpath_var=LD_LIBRARY_PATH
3160
 
  shlibpath_overrides_runpath=no
3161
 
  hardcode_into_libs=yes
3162
 
  dynamic_linker='NetBSD ld.elf_so'
3163
 
  ;;
3164
 
 
3165
2377
netbsd*)
3166
2378
  version_type=sunos
3167
2379
  need_lib_prefix=no
3168
2380
  need_version=no
3169
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
2381
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3170
2382
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3171
2383
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3172
2384
    dynamic_linker='NetBSD (a.out) ld.so'
3187
2399
  shlibpath_overrides_runpath=yes
3188
2400
  ;;
3189
2401
 
3190
 
*nto* | *qnx*)
3191
 
  version_type=qnx
 
2402
nto-qnx*)
 
2403
  version_type=linux
3192
2404
  need_lib_prefix=no
3193
2405
  need_version=no
3194
2406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3195
2407
  soname_spec='${libname}${release}${shared_ext}$major'
3196
2408
  shlibpath_var=LD_LIBRARY_PATH
3197
 
  shlibpath_overrides_runpath=no
3198
 
  hardcode_into_libs=yes
3199
 
  dynamic_linker='ldqnx.so'
 
2409
  shlibpath_overrides_runpath=yes
3200
2410
  ;;
3201
2411
 
3202
2412
openbsd*)
3205
2415
  need_lib_prefix=no
3206
2416
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3207
2417
  case $host_os in
3208
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
3209
 
    *)                          need_version=no  ;;
 
2418
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2419
    *)                         need_version=no  ;;
3210
2420
  esac
3211
2421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3212
2422
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3213
2423
  shlibpath_var=LD_LIBRARY_PATH
3214
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2424
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3215
2425
    case $host_os in
3216
2426
      openbsd2.[[89]] | openbsd2.[[89]].*)
3217
2427
        shlibpath_overrides_runpath=no
3283
2493
    sni)
3284
2494
      shlibpath_overrides_runpath=no
3285
2495
      need_lib_prefix=no
 
2496
      export_dynamic_flag_spec='${wl}-Blargedynsym'
3286
2497
      runpath_var=LD_RUN_PATH
3287
2498
      ;;
3288
2499
    siemens)
3313
2524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3314
2525
  soname_spec='${libname}${release}${shared_ext}$major'
3315
2526
  shlibpath_var=LD_LIBRARY_PATH
3316
 
  shlibpath_overrides_runpath=yes
3317
2527
  hardcode_into_libs=yes
3318
2528
  if test "$with_gnu_ld" = yes; then
3319
2529
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
2530
    shlibpath_overrides_runpath=no
3320
2531
  else
3321
2532
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
2533
    shlibpath_overrides_runpath=yes
3322
2534
    case $host_os in
3323
2535
      sco3.2v5*)
3324
2536
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3328
2540
  sys_lib_dlsearch_path_spec='/usr/lib'
3329
2541
  ;;
3330
2542
 
3331
 
tpf*)
3332
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3333
 
  version_type=linux
3334
 
  need_lib_prefix=no
3335
 
  need_version=no
3336
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3337
 
  shlibpath_var=LD_LIBRARY_PATH
3338
 
  shlibpath_overrides_runpath=no
3339
 
  hardcode_into_libs=yes
3340
 
  ;;
3341
 
 
3342
2543
uts4*)
3343
2544
  version_type=linux
3344
2545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3353
2554
AC_MSG_RESULT([$dynamic_linker])
3354
2555
test "$dynamic_linker" = no && can_build_shared=no
3355
2556
 
 
2557
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2558
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2559
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2560
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2561
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2562
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2563
 
3356
2564
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3357
2565
if test "$GCC" = yes; then
3358
2566
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3359
2567
fi
3360
 
 
3361
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3362
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3363
 
fi
3364
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3365
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3366
 
fi
3367
 
 
3368
 
_LT_DECL([], [variables_saved_for_relink], [1],
3369
 
    [Variables whose values should be saved in libtool wrapper scripts and
3370
 
    restored at link time])
3371
 
_LT_DECL([], [need_lib_prefix], [0],
3372
 
    [Do we need the "lib" prefix for modules?])
3373
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3374
 
_LT_DECL([], [version_type], [0], [Library versioning type])
3375
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3376
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3377
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3378
 
    [Is shlibpath searched before the hard-coded library search path?])
3379
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3380
 
_LT_DECL([], [library_names_spec], [1],
3381
 
    [[List of archive names.  First name is the real one, the rest are links.
3382
 
    The last name is the one that the linker finds with -lNAME]])
3383
 
_LT_DECL([], [soname_spec], [1],
3384
 
    [[The coded name of the library, if different from the real name]])
3385
 
_LT_DECL([], [postinstall_cmds], [2],
3386
 
    [Command to use after installation of a shared archive])
3387
 
_LT_DECL([], [postuninstall_cmds], [2],
3388
 
    [Command to use after uninstallation of a shared archive])
3389
 
_LT_DECL([], [finish_cmds], [2],
3390
 
    [Commands used to finish a libtool library installation in a directory])
3391
 
_LT_DECL([], [finish_eval], [1],
3392
 
    [[As "finish_cmds", except a single script fragment to be evaled but
3393
 
    not shown]])
3394
 
_LT_DECL([], [hardcode_into_libs], [0],
3395
 
    [Whether we should hardcode library paths into libraries])
3396
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
3397
 
    [Compile-time system search path for libraries])
3398
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3399
 
    [Run-time system search path for libraries])
3400
 
])# _LT_SYS_DYNAMIC_LINKER
3401
 
 
3402
 
 
3403
 
# _LT_PATH_TOOL_PREFIX(TOOL)
 
2568
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2569
 
 
2570
 
 
2571
# _LT_AC_TAGCONFIG
 
2572
# ----------------
 
2573
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2574
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2575
AC_ARG_WITH([tags],
 
2576
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2577
        [include additional configurations @<:@automatic@:>@])],
 
2578
    [tagnames="$withval"])
 
2579
 
 
2580
if test -f "$ltmain" && test -n "$tagnames"; then
 
2581
  if test ! -f "${ofile}"; then
 
2582
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2583
  fi
 
2584
 
 
2585
  if test -z "$LTCC"; then
 
2586
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2587
    if test -z "$LTCC"; then
 
2588
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
2589
    else
 
2590
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2591
    fi
 
2592
  fi
 
2593
  if test -z "$LTCFLAGS"; then
 
2594
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
2595
  fi
 
2596
 
 
2597
  # Extract list of available tagged configurations in $ofile.
 
2598
  # Note that this assumes the entire list is on one line.
 
2599
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2600
 
 
2601
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2602
  for tagname in $tagnames; do
 
2603
    IFS="$lt_save_ifs"
 
2604
    # Check whether tagname contains only valid characters
 
2605
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2606
    "") ;;
 
2607
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2608
        ;;
 
2609
    esac
 
2610
 
 
2611
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2612
    then
 
2613
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2614
    fi
 
2615
 
 
2616
    # Update the list of available tags.
 
2617
    if test -n "$tagname"; then
 
2618
      echo appending configuration tag \"$tagname\" to $ofile
 
2619
 
 
2620
      case $tagname in
 
2621
      CXX)
 
2622
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2623
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2624
            (test "X$CXX" != "Xg++"))) ; then
 
2625
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2626
        else
 
2627
          tagname=""
 
2628
        fi
 
2629
        ;;
 
2630
 
 
2631
      F77)
 
2632
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2633
          AC_LIBTOOL_LANG_F77_CONFIG
 
2634
        else
 
2635
          tagname=""
 
2636
        fi
 
2637
        ;;
 
2638
 
 
2639
      GCJ)
 
2640
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2641
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2642
        else
 
2643
          tagname=""
 
2644
        fi
 
2645
        ;;
 
2646
 
 
2647
      RC)
 
2648
        AC_LIBTOOL_LANG_RC_CONFIG
 
2649
        ;;
 
2650
 
 
2651
      *)
 
2652
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2653
        ;;
 
2654
      esac
 
2655
 
 
2656
      # Append the new tag name to the list of available tags.
 
2657
      if test -n "$tagname" ; then
 
2658
      available_tags="$available_tags $tagname"
 
2659
    fi
 
2660
    fi
 
2661
  done
 
2662
  IFS="$lt_save_ifs"
 
2663
 
 
2664
  # Now substitute the updated list of available tags.
 
2665
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2666
    mv "${ofile}T" "$ofile"
 
2667
    chmod +x "$ofile"
 
2668
  else
 
2669
    rm -f "${ofile}T"
 
2670
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2671
  fi
 
2672
fi
 
2673
])# _LT_AC_TAGCONFIG
 
2674
 
 
2675
 
 
2676
# AC_LIBTOOL_DLOPEN
 
2677
# -----------------
 
2678
# enable checks for dlopen support
 
2679
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2680
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2681
])# AC_LIBTOOL_DLOPEN
 
2682
 
 
2683
 
 
2684
# AC_LIBTOOL_WIN32_DLL
 
2685
# --------------------
 
2686
# declare package support for building win32 DLLs
 
2687
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2688
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2689
])# AC_LIBTOOL_WIN32_DLL
 
2690
 
 
2691
 
 
2692
# AC_ENABLE_SHARED([DEFAULT])
 
2693
# ---------------------------
 
2694
# implement the --enable-shared flag
 
2695
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2696
AC_DEFUN([AC_ENABLE_SHARED],
 
2697
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
2698
AC_ARG_ENABLE([shared],
 
2699
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
2700
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
2701
    [p=${PACKAGE-default}
 
2702
    case $enableval in
 
2703
    yes) enable_shared=yes ;;
 
2704
    no) enable_shared=no ;;
 
2705
    *)
 
2706
      enable_shared=no
 
2707
      # Look at the argument we got.  We use all the common list separators.
 
2708
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2709
      for pkg in $enableval; do
 
2710
        IFS="$lt_save_ifs"
 
2711
        if test "X$pkg" = "X$p"; then
 
2712
          enable_shared=yes
 
2713
        fi
 
2714
      done
 
2715
      IFS="$lt_save_ifs"
 
2716
      ;;
 
2717
    esac],
 
2718
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
2719
])# AC_ENABLE_SHARED
 
2720
 
 
2721
 
 
2722
# AC_DISABLE_SHARED
 
2723
# -----------------
 
2724
# set the default shared flag to --disable-shared
 
2725
AC_DEFUN([AC_DISABLE_SHARED],
 
2726
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2727
AC_ENABLE_SHARED(no)
 
2728
])# AC_DISABLE_SHARED
 
2729
 
 
2730
 
 
2731
# AC_ENABLE_STATIC([DEFAULT])
 
2732
# ---------------------------
 
2733
# implement the --enable-static flag
 
2734
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2735
AC_DEFUN([AC_ENABLE_STATIC],
 
2736
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
2737
AC_ARG_ENABLE([static],
 
2738
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
2739
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
2740
    [p=${PACKAGE-default}
 
2741
    case $enableval in
 
2742
    yes) enable_static=yes ;;
 
2743
    no) enable_static=no ;;
 
2744
    *)
 
2745
     enable_static=no
 
2746
      # Look at the argument we got.  We use all the common list separators.
 
2747
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2748
      for pkg in $enableval; do
 
2749
        IFS="$lt_save_ifs"
 
2750
        if test "X$pkg" = "X$p"; then
 
2751
          enable_static=yes
 
2752
        fi
 
2753
      done
 
2754
      IFS="$lt_save_ifs"
 
2755
      ;;
 
2756
    esac],
 
2757
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2758
])# AC_ENABLE_STATIC
 
2759
 
 
2760
 
 
2761
# AC_DISABLE_STATIC
 
2762
# -----------------
 
2763
# set the default static flag to --disable-static
 
2764
AC_DEFUN([AC_DISABLE_STATIC],
 
2765
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2766
AC_ENABLE_STATIC(no)
 
2767
])# AC_DISABLE_STATIC
 
2768
 
 
2769
 
 
2770
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2771
# ---------------------------------
 
2772
# implement the --enable-fast-install flag
 
2773
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2774
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
2775
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
2776
AC_ARG_ENABLE([fast-install],
 
2777
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2778
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2779
    [p=${PACKAGE-default}
 
2780
    case $enableval in
 
2781
    yes) enable_fast_install=yes ;;
 
2782
    no) enable_fast_install=no ;;
 
2783
    *)
 
2784
      enable_fast_install=no
 
2785
      # Look at the argument we got.  We use all the common list separators.
 
2786
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2787
      for pkg in $enableval; do
 
2788
        IFS="$lt_save_ifs"
 
2789
        if test "X$pkg" = "X$p"; then
 
2790
          enable_fast_install=yes
 
2791
        fi
 
2792
      done
 
2793
      IFS="$lt_save_ifs"
 
2794
      ;;
 
2795
    esac],
 
2796
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2797
])# AC_ENABLE_FAST_INSTALL
 
2798
 
 
2799
 
 
2800
# AC_DISABLE_FAST_INSTALL
 
2801
# -----------------------
 
2802
# set the default to --disable-fast-install
 
2803
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
2804
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2805
AC_ENABLE_FAST_INSTALL(no)
 
2806
])# AC_DISABLE_FAST_INSTALL
 
2807
 
 
2808
 
 
2809
# AC_LIBTOOL_PICMODE([MODE])
3404
2810
# --------------------------
 
2811
# implement the --with-pic flag
 
2812
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
2813
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
2814
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2815
pic_mode=ifelse($#,1,$1,default)
 
2816
])# AC_LIBTOOL_PICMODE
 
2817
 
 
2818
 
 
2819
# AC_PROG_EGREP
 
2820
# -------------
 
2821
# This is predefined starting with Autoconf 2.54, so this conditional
 
2822
# definition can be removed once we require Autoconf 2.54 or later.
 
2823
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2824
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2825
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2826
    then ac_cv_prog_egrep='grep -E'
 
2827
    else ac_cv_prog_egrep='egrep'
 
2828
    fi])
 
2829
 EGREP=$ac_cv_prog_egrep
 
2830
 AC_SUBST([EGREP])
 
2831
])])
 
2832
 
 
2833
 
 
2834
# AC_PATH_TOOL_PREFIX
 
2835
# -------------------
3405
2836
# find a file program which can recognize shared library
3406
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3407
 
[m4_require([_LT_DECL_EGREP])dnl
 
2837
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
2838
[AC_REQUIRE([AC_PROG_EGREP])dnl
3408
2839
AC_MSG_CHECKING([for $1])
3409
2840
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3410
2841
[case $MAGIC_CMD in
3417
2848
dnl $ac_dummy forces splitting on constant user-supplied paths.
3418
2849
dnl POSIX.2 word splitting is done only on the output of word expansions,
3419
2850
dnl not every word.  This closes a longstanding sh security hole.
3420
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
2851
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3421
2852
  for ac_dir in $ac_dummy; do
3422
2853
    IFS="$lt_save_ifs"
3423
2854
    test -z "$ac_dir" && ac_dir=.
3432
2863
            $EGREP "$file_magic_regex" > /dev/null; then
3433
2864
            :
3434
2865
          else
3435
 
            cat <<_LT_EOF 1>&2
 
2866
            cat <<EOF 1>&2
3436
2867
 
3437
2868
*** Warning: the command libtool uses to detect shared libraries,
3438
2869
*** $file_magic_cmd, produces output that libtool cannot recognize.
3443
2874
*** may want to report the problem to your system manager and/or to
3444
2875
*** bug-libtool@gnu.org
3445
2876
 
3446
 
_LT_EOF
 
2877
EOF
3447
2878
          fi ;;
3448
2879
        esac
3449
2880
      fi
3460
2891
else
3461
2892
  AC_MSG_RESULT(no)
3462
2893
fi
3463
 
_LT_DECL([], [MAGIC_CMD], [0],
3464
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3465
 
])# _LT_PATH_TOOL_PREFIX
3466
 
 
3467
 
# Old name:
3468
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3469
 
dnl aclocal-1.4 backwards compatibility:
3470
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3471
 
 
3472
 
 
3473
 
# _LT_PATH_MAGIC
3474
 
# --------------
 
2894
])# AC_PATH_TOOL_PREFIX
 
2895
 
 
2896
 
 
2897
# AC_PATH_MAGIC
 
2898
# -------------
3475
2899
# find a file program which can recognize a shared library
3476
 
m4_defun([_LT_PATH_MAGIC],
3477
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2900
AC_DEFUN([AC_PATH_MAGIC],
 
2901
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3478
2902
if test -z "$lt_cv_path_MAGIC_CMD"; then
3479
2903
  if test -n "$ac_tool_prefix"; then
3480
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2904
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3481
2905
  else
3482
2906
    MAGIC_CMD=:
3483
2907
  fi
3484
2908
fi
3485
 
])# _LT_PATH_MAGIC
3486
 
 
3487
 
 
3488
 
# LT_PATH_LD
 
2909
])# AC_PATH_MAGIC
 
2910
 
 
2911
 
 
2912
# AC_PROG_LD
3489
2913
# ----------
3490
2914
# find the pathname to the GNU or non-GNU linker
3491
 
AC_DEFUN([LT_PATH_LD],
3492
 
[AC_REQUIRE([AC_PROG_CC])dnl
3493
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3494
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3495
 
m4_require([_LT_DECL_SED])dnl
3496
 
m4_require([_LT_DECL_EGREP])dnl
3497
 
 
3498
 
AC_ARG_WITH([gnu-ld],
3499
 
    [AS_HELP_STRING([--with-gnu-ld],
 
2915
AC_DEFUN([AC_PROG_LD],
 
2916
[AC_ARG_WITH([gnu-ld],
 
2917
    [AC_HELP_STRING([--with-gnu-ld],
3500
2918
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3501
2919
    [test "$withval" = no || with_gnu_ld=yes],
3502
 
    [with_gnu_ld=no])dnl
3503
 
 
 
2920
    [with_gnu_ld=no])
 
2921
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2922
AC_REQUIRE([AC_PROG_CC])dnl
 
2923
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2924
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3504
2925
ac_prog=ld
3505
2926
if test "$GCC" = yes; then
3506
2927
  # Check if gcc -print-prog-name=ld gives a path.
3517
2938
    [[\\/]]* | ?:[[\\/]]*)
3518
2939
      re_direlt='/[[^/]][[^/]]*/\.\./'
3519
2940
      # Canonicalize the pathname of ld
3520
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3521
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3522
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
2941
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2942
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2943
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3523
2944
      done
3524
2945
      test -z "$LD" && LD="$ac_prog"
3525
2946
      ;;
3569
2990
  AC_MSG_RESULT(no)
3570
2991
fi
3571
2992
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3572
 
_LT_PATH_LD_GNU
3573
 
AC_SUBST([LD])
3574
 
 
3575
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3576
 
])# LT_PATH_LD
3577
 
 
3578
 
# Old names:
3579
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3580
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3581
 
dnl aclocal-1.4 backwards compatibility:
3582
 
dnl AC_DEFUN([AM_PROG_LD], [])
3583
 
dnl AC_DEFUN([AC_PROG_LD], [])
3584
 
 
3585
 
 
3586
 
# _LT_PATH_LD_GNU
3587
 
#- --------------
3588
 
m4_defun([_LT_PATH_LD_GNU],
3589
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2993
AC_PROG_LD_GNU
 
2994
])# AC_PROG_LD
 
2995
 
 
2996
 
 
2997
# AC_PROG_LD_GNU
 
2998
# --------------
 
2999
AC_DEFUN([AC_PROG_LD_GNU],
 
3000
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3001
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3590
3002
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3591
3003
case `$LD -v 2>&1 </dev/null` in
3592
3004
*GNU* | *'with BFD'*)
3597
3009
  ;;
3598
3010
esac])
3599
3011
with_gnu_ld=$lt_cv_prog_gnu_ld
3600
 
])# _LT_PATH_LD_GNU
3601
 
 
3602
 
 
3603
 
# _LT_CMD_RELOAD
3604
 
# --------------
 
3012
])# AC_PROG_LD_GNU
 
3013
 
 
3014
 
 
3015
# AC_PROG_LD_RELOAD_FLAG
 
3016
# ----------------------
3605
3017
# find reload flag for linker
3606
3018
#   -- PORTME Some linkers may need a different reload flag.
3607
 
m4_defun([_LT_CMD_RELOAD],
 
3019
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3608
3020
[AC_CACHE_CHECK([for $LD option to reload object files],
3609
3021
  lt_cv_ld_reload_flag,
3610
3022
  [lt_cv_ld_reload_flag='-r'])
3623
3035
    fi
3624
3036
    ;;
3625
3037
esac
3626
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3627
 
_LT_DECL([], [reload_cmds], [2])dnl
3628
 
])# _LT_CMD_RELOAD
3629
 
 
3630
 
 
3631
 
# _LT_CHECK_MAGIC_METHOD
3632
 
# ----------------------
 
3038
])# AC_PROG_LD_RELOAD_FLAG
 
3039
 
 
3040
 
 
3041
# AC_DEPLIBS_CHECK_METHOD
 
3042
# -----------------------
3633
3043
# how to check for library dependencies
3634
3044
#  -- PORTME fill in with the dynamic library characteristics
3635
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
3636
 
[m4_require([_LT_DECL_EGREP])
3637
 
AC_CACHE_CHECK([how to recognize dependent libraries],
 
3045
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
3046
[AC_CACHE_CHECK([how to recognize dependent libraries],
3638
3047
lt_cv_deplibs_check_method,
3639
3048
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3640
3049
lt_cv_file_magic_test_file=
3689
3098
  ;;
3690
3099
 
3691
3100
freebsd* | dragonfly*)
3692
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3101
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693
3102
    case $host_cpu in
3694
3103
    i*86 )
3695
3104
      # Not sure whether the presence of OpenBSD here was a mistake.
3746
3155
  lt_cv_deplibs_check_method=pass_all
3747
3156
  ;;
3748
3157
 
3749
 
netbsd* | netbsdelf*-gnu)
3750
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3158
netbsd*)
 
3159
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3751
3160
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3752
3161
  else
3753
3162
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3760
3169
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3761
3170
  ;;
3762
3171
 
3763
 
*nto* | *qnx*)
3764
 
  lt_cv_deplibs_check_method=pass_all
 
3172
nto-qnx*)
 
3173
  lt_cv_deplibs_check_method=unknown
3765
3174
  ;;
3766
3175
 
3767
3176
openbsd*)
3768
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3177
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3769
3178
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3770
3179
  else
3771
3180
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3784
3193
  lt_cv_deplibs_check_method=pass_all
3785
3194
  ;;
3786
3195
 
3787
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3788
 
  lt_cv_deplibs_check_method=pass_all
3789
 
  ;;
3790
 
 
3791
3196
sysv4 | sysv4.3*)
3792
3197
  case $host_vendor in
3793
3198
  motorola)
3815
3220
  esac
3816
3221
  ;;
3817
3222
 
3818
 
tpf*)
 
3223
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3819
3224
  lt_cv_deplibs_check_method=pass_all
3820
3225
  ;;
3821
3226
esac
3823
3228
file_magic_cmd=$lt_cv_file_magic_cmd
3824
3229
deplibs_check_method=$lt_cv_deplibs_check_method
3825
3230
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3826
 
 
3827
 
_LT_DECL([], [deplibs_check_method], [1],
3828
 
    [Method to check whether dependent libraries are shared objects])
3829
 
_LT_DECL([], [file_magic_cmd], [1],
3830
 
    [Command to use when deplibs_check_method == "file_magic"])
3831
 
])# _LT_CHECK_MAGIC_METHOD
3832
 
 
3833
 
 
3834
 
# LT_PATH_NM
 
3231
])# AC_DEPLIBS_CHECK_METHOD
 
3232
 
 
3233
 
 
3234
# AC_PROG_NM
3835
3235
# ----------
3836
 
# find the pathname to a BSD- or MS-compatible name lister
3837
 
AC_DEFUN([LT_PATH_NM],
3838
 
[AC_REQUIRE([AC_PROG_CC])dnl
3839
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
3236
# find the pathname to a BSD-compatible name lister
 
3237
AC_DEFUN([AC_PROG_NM],
 
3238
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3840
3239
[if test -n "$NM"; then
3841
3240
  # Let the user override the test.
3842
3241
  lt_cv_path_NM="$NM"
3878
3277
    done
3879
3278
    IFS="$lt_save_ifs"
3880
3279
  done
3881
 
  : ${lt_cv_path_NM=no}
 
3280
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3882
3281
fi])
3883
 
if test "$lt_cv_path_NM" != "no"; then
3884
 
  NM="$lt_cv_path_NM"
3885
 
else
3886
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
3887
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3888
 
  AC_SUBST([DUMPBIN])
3889
 
  if test "$DUMPBIN" != ":"; then
3890
 
    NM="$DUMPBIN"
3891
 
  fi
3892
 
fi
3893
 
test -z "$NM" && NM=nm
3894
 
AC_SUBST([NM])
3895
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3896
 
 
3897
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3898
 
  [lt_cv_nm_interface="BSD nm"
3899
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3900
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3901
 
  (eval "$ac_compile" 2>conftest.err)
3902
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3903
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3904
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3905
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3906
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3907
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
3908
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3909
 
    lt_cv_nm_interface="MS dumpbin"
3910
 
  fi
3911
 
  rm -f conftest*])
3912
 
])# LT_PATH_NM
3913
 
 
3914
 
# Old names:
3915
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3916
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3917
 
dnl aclocal-1.4 backwards compatibility:
3918
 
dnl AC_DEFUN([AM_PROG_NM], [])
3919
 
dnl AC_DEFUN([AC_PROG_NM], [])
3920
 
 
3921
 
 
3922
 
# LT_LIB_M
3923
 
# --------
 
3282
NM="$lt_cv_path_NM"
 
3283
])# AC_PROG_NM
 
3284
 
 
3285
 
 
3286
# AC_CHECK_LIBM
 
3287
# -------------
3924
3288
# check for math library
3925
 
AC_DEFUN([LT_LIB_M],
 
3289
AC_DEFUN([AC_CHECK_LIBM],
3926
3290
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3927
3291
LIBM=
3928
3292
case $host in
3937
3301
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3938
3302
  ;;
3939
3303
esac
3940
 
AC_SUBST([LIBM])
3941
 
])# LT_LIB_M
3942
 
 
3943
 
# Old name:
3944
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3945
 
dnl aclocal-1.4 backwards compatibility:
3946
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3947
 
 
3948
 
 
3949
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
3950
 
# -------------------------------
3951
 
m4_defun([_LT_COMPILER_NO_RTTI],
3952
 
[m4_require([_LT_TAG_COMPILER])dnl
3953
 
 
3954
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3304
])# AC_CHECK_LIBM
 
3305
 
 
3306
 
 
3307
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3308
# -----------------------------------
 
3309
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3310
# LTDLINCL to the include flags for the libltdl header and adds
 
3311
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3312
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3313
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3314
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3315
# (note the single quotes!).  If your package is not flat and you're not
 
3316
# using automake, define top_builddir and top_srcdir appropriately in
 
3317
# the Makefiles.
 
3318
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3319
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3320
  case $enable_ltdl_convenience in
 
3321
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3322
  "") enable_ltdl_convenience=yes
 
3323
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3324
  esac
 
3325
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3326
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3327
  # For backwards non-gettext consistent compatibility...
 
3328
  INCLTDL="$LTDLINCL"
 
3329
])# AC_LIBLTDL_CONVENIENCE
 
3330
 
 
3331
 
 
3332
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3333
# -----------------------------------
 
3334
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3335
# LTDLINCL to the include flags for the libltdl header and adds
 
3336
# --enable-ltdl-install to the configure arguments.  Note that
 
3337
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3338
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3339
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3340
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3341
# flat and you're not using automake, define top_builddir and top_srcdir
 
3342
# appropriately in the Makefiles.
 
3343
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3344
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3345
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3346
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3347
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3348
  [if test x"$enable_ltdl_install" = xno; then
 
3349
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3350
   else
 
3351
     enable_ltdl_install=yes
 
3352
   fi
 
3353
  ])
 
3354
  if test x"$enable_ltdl_install" = x"yes"; then
 
3355
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
3356
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
3357
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3358
  else
 
3359
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
3360
    LIBLTDL="-lltdl"
 
3361
    LTDLINCL=
 
3362
  fi
 
3363
  # For backwards non-gettext consistent compatibility...
 
3364
  INCLTDL="$LTDLINCL"
 
3365
])# AC_LIBLTDL_INSTALLABLE
 
3366
 
 
3367
 
 
3368
# AC_LIBTOOL_CXX
 
3369
# --------------
 
3370
# enable support for C++ libraries
 
3371
AC_DEFUN([AC_LIBTOOL_CXX],
 
3372
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3373
])# AC_LIBTOOL_CXX
 
3374
 
 
3375
 
 
3376
# _LT_AC_LANG_CXX
 
3377
# ---------------
 
3378
AC_DEFUN([_LT_AC_LANG_CXX],
 
3379
[AC_REQUIRE([AC_PROG_CXX])
 
3380
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3381
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
3382
])# _LT_AC_LANG_CXX
 
3383
 
 
3384
# _LT_AC_PROG_CXXCPP
 
3385
# ------------------
 
3386
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3387
[
 
3388
AC_REQUIRE([AC_PROG_CXX])
 
3389
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3390
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3391
    (test "X$CXX" != "Xg++"))) ; then
 
3392
  AC_PROG_CXXCPP
 
3393
fi
 
3394
])# _LT_AC_PROG_CXXCPP
 
3395
 
 
3396
# AC_LIBTOOL_F77
 
3397
# --------------
 
3398
# enable support for Fortran 77 libraries
 
3399
AC_DEFUN([AC_LIBTOOL_F77],
 
3400
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3401
])# AC_LIBTOOL_F77
 
3402
 
 
3403
 
 
3404
# _LT_AC_LANG_F77
 
3405
# ---------------
 
3406
AC_DEFUN([_LT_AC_LANG_F77],
 
3407
[AC_REQUIRE([AC_PROG_F77])
 
3408
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
3409
])# _LT_AC_LANG_F77
 
3410
 
 
3411
 
 
3412
# AC_LIBTOOL_GCJ
 
3413
# --------------
 
3414
# enable support for GCJ libraries
 
3415
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3416
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3417
])# AC_LIBTOOL_GCJ
 
3418
 
 
3419
 
 
3420
# _LT_AC_LANG_GCJ
 
3421
# ---------------
 
3422
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3423
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3424
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3425
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3426
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3427
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3428
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3429
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
3430
])# _LT_AC_LANG_GCJ
 
3431
 
 
3432
 
 
3433
# AC_LIBTOOL_RC
 
3434
# -------------
 
3435
# enable support for Windows resource files
 
3436
AC_DEFUN([AC_LIBTOOL_RC],
 
3437
[AC_REQUIRE([LT_AC_PROG_RC])
 
3438
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
3439
])# AC_LIBTOOL_RC
 
3440
 
 
3441
 
 
3442
# AC_LIBTOOL_LANG_C_CONFIG
 
3443
# ------------------------
 
3444
# Ensure that the configuration vars for the C compiler are
 
3445
# suitably defined.  Those variables are subsequently used by
 
3446
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3447
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3448
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3449
[lt_save_CC="$CC"
 
3450
AC_LANG_PUSH(C)
 
3451
 
 
3452
# Source file extension for C test sources.
 
3453
ac_ext=c
 
3454
 
 
3455
# Object file extension for compiled C test sources.
 
3456
objext=o
 
3457
_LT_AC_TAGVAR(objext, $1)=$objext
 
3458
 
 
3459
# Code to be used in simple compile tests
 
3460
lt_simple_compile_test_code="int some_variable = 0;"
 
3461
 
 
3462
# Code to be used in simple link tests
 
3463
lt_simple_link_test_code='int main(){return(0);}'
 
3464
 
 
3465
_LT_AC_SYS_COMPILER
 
3466
 
 
3467
# save warnings/boilerplate of simple test code
 
3468
_LT_COMPILER_BOILERPLATE
 
3469
_LT_LINKER_BOILERPLATE
 
3470
 
 
3471
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3472
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3473
AC_LIBTOOL_PROG_CC_C_O($1)
 
3474
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3475
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3476
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3477
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3478
AC_LIBTOOL_SYS_LIB_STRIP
 
3479
AC_LIBTOOL_DLOPEN_SELF
 
3480
 
 
3481
# Report which library types will actually be built
 
3482
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3483
AC_MSG_RESULT([$can_build_shared])
 
3484
 
 
3485
AC_MSG_CHECKING([whether to build shared libraries])
 
3486
test "$can_build_shared" = "no" && enable_shared=no
 
3487
 
 
3488
# On AIX, shared libraries and static libraries use the same namespace, and
 
3489
# are all built from PIC.
 
3490
case $host_os in
 
3491
aix3*)
 
3492
  test "$enable_shared" = yes && enable_static=no
 
3493
  if test -n "$RANLIB"; then
 
3494
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3495
    postinstall_cmds='$RANLIB $lib'
 
3496
  fi
 
3497
  ;;
 
3498
 
 
3499
aix[[4-9]]*)
 
3500
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3501
    test "$enable_shared" = yes && enable_static=no
 
3502
  fi
 
3503
    ;;
 
3504
esac
 
3505
AC_MSG_RESULT([$enable_shared])
 
3506
 
 
3507
AC_MSG_CHECKING([whether to build static libraries])
 
3508
# Make sure either enable_shared or enable_static is yes.
 
3509
test "$enable_shared" = yes || enable_static=yes
 
3510
AC_MSG_RESULT([$enable_static])
 
3511
 
 
3512
AC_LIBTOOL_CONFIG($1)
 
3513
 
 
3514
AC_LANG_POP
 
3515
CC="$lt_save_CC"
 
3516
])# AC_LIBTOOL_LANG_C_CONFIG
 
3517
 
 
3518
 
 
3519
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3520
# --------------------------
 
3521
# Ensure that the configuration vars for the C compiler are
 
3522
# suitably defined.  Those variables are subsequently used by
 
3523
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3524
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3525
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3526
[AC_LANG_PUSH(C++)
 
3527
AC_REQUIRE([AC_PROG_CXX])
 
3528
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3529
 
 
3530
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3531
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3532
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3533
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3534
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3535
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3536
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3537
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3538
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3539
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3540
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3541
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3542
_LT_AC_TAGVAR(module_cmds, $1)=
 
3543
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3544
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3545
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3546
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3547
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3548
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3549
 
 
3550
# Dependencies to place before and after the object being linked:
 
3551
_LT_AC_TAGVAR(predep_objects, $1)=
 
3552
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3553
_LT_AC_TAGVAR(predeps, $1)=
 
3554
_LT_AC_TAGVAR(postdeps, $1)=
 
3555
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3556
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
3557
 
 
3558
# Source file extension for C++ test sources.
 
3559
ac_ext=cpp
 
3560
 
 
3561
# Object file extension for compiled C++ test sources.
 
3562
objext=o
 
3563
_LT_AC_TAGVAR(objext, $1)=$objext
 
3564
 
 
3565
# Code to be used in simple compile tests
 
3566
lt_simple_compile_test_code="int some_variable = 0;"
 
3567
 
 
3568
# Code to be used in simple link tests
 
3569
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
3570
 
 
3571
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3572
_LT_AC_SYS_COMPILER
 
3573
 
 
3574
# save warnings/boilerplate of simple test code
 
3575
_LT_COMPILER_BOILERPLATE
 
3576
_LT_LINKER_BOILERPLATE
 
3577
 
 
3578
# Allow CC to be a program name with arguments.
 
3579
lt_save_CC=$CC
 
3580
lt_save_LD=$LD
 
3581
lt_save_GCC=$GCC
 
3582
GCC=$GXX
 
3583
lt_save_with_gnu_ld=$with_gnu_ld
 
3584
lt_save_path_LD=$lt_cv_path_LD
 
3585
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3586
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3587
else
 
3588
  $as_unset lt_cv_prog_gnu_ld
 
3589
fi
 
3590
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3591
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3592
else
 
3593
  $as_unset lt_cv_path_LD
 
3594
fi
 
3595
test -z "${LDCXX+set}" || LD=$LDCXX
 
3596
CC=${CXX-"c++"}
 
3597
compiler=$CC
 
3598
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3599
_LT_CC_BASENAME([$compiler])
 
3600
 
 
3601
# We don't want -fno-exception wen compiling C++ code, so set the
 
3602
# no_builtin_flag separately
 
3603
if test "$GXX" = yes; then
 
3604
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3605
else
 
3606
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3607
fi
 
3608
 
 
3609
if test "$GXX" = yes; then
 
3610
  # Set up default GNU C++ configuration
 
3611
 
 
3612
  AC_PROG_LD
 
3613
 
 
3614
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3615
  # archiving commands below assume that GNU ld is being used.
 
3616
  if test "$with_gnu_ld" = yes; then
 
3617
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3618
    _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'
 
3619
 
 
3620
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3621
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3622
 
 
3623
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3624
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3625
    #     investigate it a little bit more. (MM)
 
3626
    wlarc='${wl}'
 
3627
 
 
3628
    # ancient GNU ld didn't support --whole-archive et. al.
 
3629
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3630
        grep 'no-whole-archive' > /dev/null; then
 
3631
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3632
    else
 
3633
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3634
    fi
 
3635
  else
 
3636
    with_gnu_ld=no
 
3637
    wlarc=
 
3638
 
 
3639
    # A generic and very simple default shared library creation
 
3640
    # command for GNU C++ for the case where it uses the native
 
3641
    # linker, instead of GNU ld.  If possible, this setting should
 
3642
    # overridden to take advantage of the native linker features on
 
3643
    # the platform it is being used on.
 
3644
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3645
  fi
 
3646
 
 
3647
  # Commands to make compiler produce verbose output that lists
 
3648
  # what "hidden" libraries, object files and flags are used when
 
3649
  # linking a shared library.
 
3650
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3651
 
 
3652
else
 
3653
  GXX=no
 
3654
  with_gnu_ld=no
 
3655
  wlarc=
 
3656
fi
 
3657
 
 
3658
# PORTME: fill in a description of your system's C++ link characteristics
 
3659
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3660
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3661
case $host_os in
 
3662
  aix3*)
 
3663
    # FIXME: insert proper C++ library support
 
3664
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3665
    ;;
 
3666
  aix[[4-9]]*)
 
3667
    if test "$host_cpu" = ia64; then
 
3668
      # On IA64, the linker does run time linking by default, so we don't
 
3669
      # have to do anything special.
 
3670
      aix_use_runtimelinking=no
 
3671
      exp_sym_flag='-Bexport'
 
3672
      no_entry_flag=""
 
3673
    else
 
3674
      aix_use_runtimelinking=no
 
3675
 
 
3676
      # Test if we are trying to use run time linking or normal
 
3677
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3678
      # need to do runtime linking.
 
3679
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
3680
        for ld_flag in $LDFLAGS; do
 
3681
          case $ld_flag in
 
3682
          *-brtl*)
 
3683
            aix_use_runtimelinking=yes
 
3684
            break
 
3685
            ;;
 
3686
          esac
 
3687
        done
 
3688
        ;;
 
3689
      esac
 
3690
 
 
3691
      exp_sym_flag='-bexport'
 
3692
      no_entry_flag='-bnoentry'
 
3693
    fi
 
3694
 
 
3695
    # When large executables or shared objects are built, AIX ld can
 
3696
    # have problems creating the table of contents.  If linking a library
 
3697
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3698
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3699
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3700
 
 
3701
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3702
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3703
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3704
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3705
 
 
3706
    if test "$GXX" = yes; then
 
3707
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
3708
      # We only want to do this on AIX 4.2 and lower, the check
 
3709
      # below for broken collect2 doesn't work under 4.3+
 
3710
        collect2name=`${CC} -print-prog-name=collect2`
 
3711
        if test -f "$collect2name" && \
 
3712
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3713
        then
 
3714
          # We have reworked collect2
 
3715
          :
 
3716
        else
 
3717
          # We have old collect2
 
3718
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
3719
          # It fails to find uninstalled libraries when the uninstalled
 
3720
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
3721
          # to unsupported forces relinking
 
3722
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
3723
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3724
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3725
        fi
 
3726
        ;;
 
3727
      esac
 
3728
      shared_flag='-shared'
 
3729
      if test "$aix_use_runtimelinking" = yes; then
 
3730
        shared_flag="$shared_flag "'${wl}-G'
 
3731
      fi
 
3732
    else
 
3733
      # not using gcc
 
3734
      if test "$host_cpu" = ia64; then
 
3735
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
3736
        # chokes on -Wl,-G. The following line is correct:
 
3737
        shared_flag='-G'
 
3738
      else
 
3739
        if test "$aix_use_runtimelinking" = yes; then
 
3740
          shared_flag='${wl}-G'
 
3741
        else
 
3742
          shared_flag='${wl}-bM:SRE'
 
3743
        fi
 
3744
      fi
 
3745
    fi
 
3746
 
 
3747
    # It seems that -bexpall does not export symbols beginning with
 
3748
    # underscore (_), so it is better to generate a list of symbols to export.
 
3749
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3750
    if test "$aix_use_runtimelinking" = yes; then
 
3751
      # Warning - without using the other runtime loading flags (-brtl),
 
3752
      # -berok will link without error, but may produce a broken library.
 
3753
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
3754
      # Determine the default libpath from the value encoded in an empty executable.
 
3755
      _LT_AC_SYS_LIBPATH_AIX
 
3756
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3757
 
 
3758
      _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"
 
3759
     else
 
3760
      if test "$host_cpu" = ia64; then
 
3761
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3762
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3763
        _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"
 
3764
      else
 
3765
        # Determine the default libpath from the value encoded in an empty executable.
 
3766
        _LT_AC_SYS_LIBPATH_AIX
 
3767
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3768
        # Warning - without using the other run time loading flags,
 
3769
        # -berok will link without error, but may produce a broken library.
 
3770
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3771
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3772
        # Exported symbols can be pulled into shared objects from archives
 
3773
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
3774
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3775
        # This is similar to how AIX traditionally builds its shared libraries.
 
3776
        _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'
 
3777
      fi
 
3778
    fi
 
3779
    ;;
 
3780
 
 
3781
  beos*)
 
3782
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3783
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3784
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3785
      # support --undefined.  This deserves some investigation.  FIXME
 
3786
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3787
    else
 
3788
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3789
    fi
 
3790
    ;;
 
3791
 
 
3792
  chorus*)
 
3793
    case $cc_basename in
 
3794
      *)
 
3795
        # FIXME: insert proper C++ library support
 
3796
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3797
        ;;
 
3798
    esac
 
3799
    ;;
 
3800
 
 
3801
  cygwin* | mingw* | pw32*)
 
3802
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3803
    # as there is no search path for DLLs.
 
3804
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3805
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3806
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3807
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3808
 
 
3809
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3810
      _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'
 
3811
      # If the export-symbols file already is a .def file (1st line
 
3812
      # is EXPORTS), use it as is; otherwise, prepend...
 
3813
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3814
        cp $export_symbols $output_objdir/$soname.def;
 
3815
      else
 
3816
        echo EXPORTS > $output_objdir/$soname.def;
 
3817
        cat $export_symbols >> $output_objdir/$soname.def;
 
3818
      fi~
 
3819
      $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'
 
3820
    else
 
3821
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3822
    fi
 
3823
  ;;
 
3824
      darwin* | rhapsody*)
 
3825
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3826
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3827
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3828
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3829
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3830
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3831
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3832
      if test "$GXX" = yes ; then
 
3833
      output_verbose_link_cmd='echo'
 
3834
      _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}"
 
3835
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3836
      _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}"
 
3837
      _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}"
 
3838
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3839
        _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}"
 
3840
        _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}"
 
3841
      fi
 
3842
      else
 
3843
      case $cc_basename in
 
3844
        xlc*)
 
3845
         output_verbose_link_cmd='echo'
 
3846
          _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'
 
3847
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3848
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3849
          _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}'
 
3850
          _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}'
 
3851
          ;;
 
3852
       *)
 
3853
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3854
          ;;
 
3855
      esac
 
3856
      fi
 
3857
        ;;
 
3858
 
 
3859
  dgux*)
 
3860
    case $cc_basename in
 
3861
      ec++*)
 
3862
        # FIXME: insert proper C++ library support
 
3863
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3864
        ;;
 
3865
      ghcx*)
 
3866
        # Green Hills C++ Compiler
 
3867
        # FIXME: insert proper C++ library support
 
3868
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3869
        ;;
 
3870
      *)
 
3871
        # FIXME: insert proper C++ library support
 
3872
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3873
        ;;
 
3874
    esac
 
3875
    ;;
 
3876
  freebsd[[12]]*)
 
3877
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3878
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3879
    ;;
 
3880
  freebsd-elf*)
 
3881
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3882
    ;;
 
3883
  freebsd* | dragonfly*)
 
3884
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3885
    # conventions
 
3886
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3887
    ;;
 
3888
  gnu*)
 
3889
    ;;
 
3890
  hpux9*)
 
3891
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3892
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3893
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3894
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3895
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3896
                                # but as the default
 
3897
                                # location of the library.
 
3898
 
 
3899
    case $cc_basename in
 
3900
    CC*)
 
3901
      # FIXME: insert proper C++ library support
 
3902
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3903
      ;;
 
3904
    aCC*)
 
3905
      _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'
 
3906
      # Commands to make compiler produce verbose output that lists
 
3907
      # what "hidden" libraries, object files and flags are used when
 
3908
      # linking a shared library.
 
3909
      #
 
3910
      # There doesn't appear to be a way to prevent this compiler from
 
3911
      # explicitly linking system object files so we need to strip them
 
3912
      # from the output so that they don't get included in the library
 
3913
      # dependencies.
 
3914
      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'
 
3915
      ;;
 
3916
    *)
 
3917
      if test "$GXX" = yes; then
 
3918
        _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'
 
3919
      else
 
3920
        # FIXME: insert proper C++ library support
 
3921
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3922
      fi
 
3923
      ;;
 
3924
    esac
 
3925
    ;;
 
3926
  hpux10*|hpux11*)
 
3927
    if test $with_gnu_ld = no; then
 
3928
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3929
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3930
 
 
3931
      case $host_cpu in
 
3932
      hppa*64*|ia64*) ;;
 
3933
      *)
 
3934
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3935
        ;;
 
3936
      esac
 
3937
    fi
 
3938
    case $host_cpu in
 
3939
    hppa*64*|ia64*)
 
3940
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3941
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3942
      ;;
 
3943
    *)
 
3944
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3945
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3946
                                              # but as the default
 
3947
                                              # location of the library.
 
3948
      ;;
 
3949
    esac
 
3950
 
 
3951
    case $cc_basename in
 
3952
      CC*)
 
3953
        # FIXME: insert proper C++ library support
 
3954
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3955
        ;;
 
3956
      aCC*)
 
3957
        case $host_cpu in
 
3958
        hppa*64*)
 
3959
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3960
          ;;
 
3961
        ia64*)
 
3962
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3963
          ;;
 
3964
        *)
 
3965
          _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'
 
3966
          ;;
 
3967
        esac
 
3968
        # Commands to make compiler produce verbose output that lists
 
3969
        # what "hidden" libraries, object files and flags are used when
 
3970
        # linking a shared library.
 
3971
        #
 
3972
        # There doesn't appear to be a way to prevent this compiler from
 
3973
        # explicitly linking system object files so we need to strip them
 
3974
        # from the output so that they don't get included in the library
 
3975
        # dependencies.
 
3976
        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'
 
3977
        ;;
 
3978
      *)
 
3979
        if test "$GXX" = yes; then
 
3980
          if test $with_gnu_ld = no; then
 
3981
            case $host_cpu in
 
3982
            hppa*64*)
 
3983
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3984
              ;;
 
3985
            ia64*)
 
3986
              _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'
 
3987
              ;;
 
3988
            *)
 
3989
              _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'
 
3990
              ;;
 
3991
            esac
 
3992
          fi
 
3993
        else
 
3994
          # FIXME: insert proper C++ library support
 
3995
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3996
        fi
 
3997
        ;;
 
3998
    esac
 
3999
    ;;
 
4000
  interix[[3-9]]*)
 
4001
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4002
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4003
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4004
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4005
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
4006
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
4007
    # default) and relocated if they conflict, which is a slow very memory
 
4008
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
4009
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
4010
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
4011
    _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'
 
4012
    _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'
 
4013
    ;;
 
4014
  irix5* | irix6*)
 
4015
    case $cc_basename in
 
4016
      CC*)
 
4017
        # SGI C++
 
4018
        _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'
 
4019
 
 
4020
        # Archives containing C++ object files must be created using
 
4021
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
4022
        # necessary to make sure instantiated templates are included
 
4023
        # in the archive.
 
4024
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
4025
        ;;
 
4026
      *)
 
4027
        if test "$GXX" = yes; then
 
4028
          if test "$with_gnu_ld" = no; then
 
4029
            _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'
 
4030
          else
 
4031
            _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'
 
4032
          fi
 
4033
        fi
 
4034
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4035
        ;;
 
4036
    esac
 
4037
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4038
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4039
    ;;
 
4040
  linux* | k*bsd*-gnu)
 
4041
    case $cc_basename in
 
4042
      KCC*)
 
4043
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4044
 
 
4045
        # KCC will only create a shared library if the output file
 
4046
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4047
        # to its proper name (with version) after linking.
 
4048
        _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'
 
4049
        _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'
 
4050
        # Commands to make compiler produce verbose output that lists
 
4051
        # what "hidden" libraries, object files and flags are used when
 
4052
        # linking a shared library.
 
4053
        #
 
4054
        # There doesn't appear to be a way to prevent this compiler from
 
4055
        # explicitly linking system object files so we need to strip them
 
4056
        # from the output so that they don't get included in the library
 
4057
        # dependencies.
 
4058
        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'
 
4059
 
 
4060
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4061
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4062
 
 
4063
        # Archives containing C++ object files must be created using
 
4064
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4065
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4066
        ;;
 
4067
      icpc*)
 
4068
        # Intel C++
 
4069
        with_gnu_ld=yes
 
4070
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4071
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4072
        # earlier do not add the objects themselves.
 
4073
        case `$CC -V 2>&1` in
 
4074
        *"Version 7."*)
 
4075
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4076
          _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'
 
4077
          ;;
 
4078
        *)  # Version 8.0 or newer
 
4079
          tmp_idyn=
 
4080
          case $host_cpu in
 
4081
            ia64*) tmp_idyn=' -i_dynamic';;
 
4082
          esac
 
4083
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4084
          _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'
 
4085
          ;;
 
4086
        esac
 
4087
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4088
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4089
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4090
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4091
        ;;
 
4092
      pgCC* | pgcpp*)
 
4093
        # Portland Group C++ compiler
 
4094
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4095
        _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'
 
4096
 
 
4097
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4098
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4099
        _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'
 
4100
        ;;
 
4101
      cxx*)
 
4102
        # Compaq C++
 
4103
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4104
        _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'
 
4105
 
 
4106
        runpath_var=LD_RUN_PATH
 
4107
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4108
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4109
 
 
4110
        # Commands to make compiler produce verbose output that lists
 
4111
        # what "hidden" libraries, object files and flags are used when
 
4112
        # linking a shared library.
 
4113
        #
 
4114
        # There doesn't appear to be a way to prevent this compiler from
 
4115
        # explicitly linking system object files so we need to strip them
 
4116
        # from the output so that they don't get included in the library
 
4117
        # dependencies.
 
4118
        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'
 
4119
        ;;
 
4120
      *)
 
4121
        case `$CC -V 2>&1 | sed 5q` in
 
4122
        *Sun\ C*)
 
4123
          # Sun C++ 5.9
 
4124
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4125
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4126
          _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'
 
4127
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4128
          _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'
 
4129
 
 
4130
          # Not sure whether something based on
 
4131
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4132
          # would be better.
 
4133
          output_verbose_link_cmd='echo'
 
4134
 
 
4135
          # Archives containing C++ object files must be created using
 
4136
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4137
          # necessary to make sure instantiated templates are included
 
4138
          # in the archive.
 
4139
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4140
          ;;
 
4141
        esac
 
4142
        ;;
 
4143
    esac
 
4144
    ;;
 
4145
  lynxos*)
 
4146
    # FIXME: insert proper C++ library support
 
4147
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4148
    ;;
 
4149
  m88k*)
 
4150
    # FIXME: insert proper C++ library support
 
4151
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4152
    ;;
 
4153
  mvs*)
 
4154
    case $cc_basename in
 
4155
      cxx*)
 
4156
        # FIXME: insert proper C++ library support
 
4157
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4158
        ;;
 
4159
      *)
 
4160
        # FIXME: insert proper C++ library support
 
4161
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4162
        ;;
 
4163
    esac
 
4164
    ;;
 
4165
  netbsd*)
 
4166
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4167
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4168
      wlarc=
 
4169
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4170
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4171
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4172
    fi
 
4173
    # Workaround some broken pre-1.5 toolchains
 
4174
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4175
    ;;
 
4176
  openbsd2*)
 
4177
    # C++ shared libraries are fairly broken
 
4178
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4179
    ;;
 
4180
  openbsd*)
 
4181
    if test -f /usr/libexec/ld.so; then
 
4182
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4183
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4184
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4185
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4186
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4187
        _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'
 
4188
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4189
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4190
      fi
 
4191
      output_verbose_link_cmd='echo'
 
4192
    else
 
4193
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4194
    fi
 
4195
    ;;
 
4196
  osf3*)
 
4197
    case $cc_basename in
 
4198
      KCC*)
 
4199
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4200
 
 
4201
        # KCC will only create a shared library if the output file
 
4202
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4203
        # to its proper name (with version) after linking.
 
4204
        _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'
 
4205
 
 
4206
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4207
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4208
 
 
4209
        # Archives containing C++ object files must be created using
 
4210
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4211
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4212
 
 
4213
        ;;
 
4214
      RCC*)
 
4215
        # Rational C++ 2.4.1
 
4216
        # FIXME: insert proper C++ library support
 
4217
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4218
        ;;
 
4219
      cxx*)
 
4220
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4221
        _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'
 
4222
 
 
4223
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4224
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4225
 
 
4226
        # Commands to make compiler produce verbose output that lists
 
4227
        # what "hidden" libraries, object files and flags are used when
 
4228
        # linking a shared library.
 
4229
        #
 
4230
        # There doesn't appear to be a way to prevent this compiler from
 
4231
        # explicitly linking system object files so we need to strip them
 
4232
        # from the output so that they don't get included in the library
 
4233
        # dependencies.
 
4234
        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'
 
4235
        ;;
 
4236
      *)
 
4237
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4238
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4239
          _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'
 
4240
 
 
4241
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4242
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4243
 
 
4244
          # Commands to make compiler produce verbose output that lists
 
4245
          # what "hidden" libraries, object files and flags are used when
 
4246
          # linking a shared library.
 
4247
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4248
 
 
4249
        else
 
4250
          # FIXME: insert proper C++ library support
 
4251
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4252
        fi
 
4253
        ;;
 
4254
    esac
 
4255
    ;;
 
4256
  osf4* | osf5*)
 
4257
    case $cc_basename in
 
4258
      KCC*)
 
4259
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4260
 
 
4261
        # KCC will only create a shared library if the output file
 
4262
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4263
        # to its proper name (with version) after linking.
 
4264
        _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'
 
4265
 
 
4266
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4267
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4268
 
 
4269
        # Archives containing C++ object files must be created using
 
4270
        # the KAI C++ compiler.
 
4271
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4272
        ;;
 
4273
      RCC*)
 
4274
        # Rational C++ 2.4.1
 
4275
        # FIXME: insert proper C++ library support
 
4276
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4277
        ;;
 
4278
      cxx*)
 
4279
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4280
        _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'
 
4281
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4282
          echo "-hidden">> $lib.exp~
 
4283
          $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~
 
4284
          $rm $lib.exp'
 
4285
 
 
4286
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4287
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4288
 
 
4289
        # Commands to make compiler produce verbose output that lists
 
4290
        # what "hidden" libraries, object files and flags are used when
 
4291
        # linking a shared library.
 
4292
        #
 
4293
        # There doesn't appear to be a way to prevent this compiler from
 
4294
        # explicitly linking system object files so we need to strip them
 
4295
        # from the output so that they don't get included in the library
 
4296
        # dependencies.
 
4297
        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'
 
4298
        ;;
 
4299
      *)
 
4300
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4301
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4302
         _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'
 
4303
 
 
4304
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4305
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4306
 
 
4307
          # Commands to make compiler produce verbose output that lists
 
4308
          # what "hidden" libraries, object files and flags are used when
 
4309
          # linking a shared library.
 
4310
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4311
 
 
4312
        else
 
4313
          # FIXME: insert proper C++ library support
 
4314
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4315
        fi
 
4316
        ;;
 
4317
    esac
 
4318
    ;;
 
4319
  psos*)
 
4320
    # FIXME: insert proper C++ library support
 
4321
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4322
    ;;
 
4323
  sunos4*)
 
4324
    case $cc_basename in
 
4325
      CC*)
 
4326
        # Sun C++ 4.x
 
4327
        # FIXME: insert proper C++ library support
 
4328
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4329
        ;;
 
4330
      lcc*)
 
4331
        # Lucid
 
4332
        # FIXME: insert proper C++ library support
 
4333
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4334
        ;;
 
4335
      *)
 
4336
        # FIXME: insert proper C++ library support
 
4337
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4338
        ;;
 
4339
    esac
 
4340
    ;;
 
4341
  solaris*)
 
4342
    case $cc_basename in
 
4343
      CC*)
 
4344
        # Sun C++ 4.2, 5.x and Centerline C++
 
4345
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
4346
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4347
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4348
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4349
        $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'
 
4350
 
 
4351
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4352
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4353
        case $host_os in
 
4354
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4355
          *)
 
4356
            # The compiler driver will combine and reorder linker options,
 
4357
            # but understands `-z linker_flag'.
 
4358
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4359
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
4360
            ;;
 
4361
        esac
 
4362
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4363
 
 
4364
        output_verbose_link_cmd='echo'
 
4365
 
 
4366
        # Archives containing C++ object files must be created using
 
4367
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4368
        # necessary to make sure instantiated templates are included
 
4369
        # in the archive.
 
4370
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4371
        ;;
 
4372
      gcx*)
 
4373
        # Green Hills C++ Compiler
 
4374
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4375
 
 
4376
        # The C++ compiler must be used to create the archive.
 
4377
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4378
        ;;
 
4379
      *)
 
4380
        # GNU C++ compiler with Solaris linker
 
4381
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4382
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4383
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4384
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4385
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4386
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4387
 
 
4388
            # Commands to make compiler produce verbose output that lists
 
4389
            # what "hidden" libraries, object files and flags are used when
 
4390
            # linking a shared library.
 
4391
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4392
          else
 
4393
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4394
            # platform.
 
4395
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4396
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4397
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4398
 
 
4399
            # Commands to make compiler produce verbose output that lists
 
4400
            # what "hidden" libraries, object files and flags are used when
 
4401
            # linking a shared library.
 
4402
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4403
          fi
 
4404
 
 
4405
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4406
          case $host_os in
 
4407
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4408
          *)
 
4409
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4410
            ;;
 
4411
          esac
 
4412
        fi
 
4413
        ;;
 
4414
    esac
 
4415
    ;;
 
4416
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
4417
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4418
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4419
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4420
    runpath_var='LD_RUN_PATH'
 
4421
 
 
4422
    case $cc_basename in
 
4423
      CC*)
 
4424
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4425
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4426
        ;;
 
4427
      *)
 
4428
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4429
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4430
        ;;
 
4431
    esac
 
4432
    ;;
 
4433
  sysv5* | sco3.2v5* | sco5v6*)
 
4434
    # Note: We can NOT use -z defs as we might desire, because we do not
 
4435
    # link with -lc, and that would cause any symbols used from libc to
 
4436
    # always be unresolved, which means just about no library would
 
4437
    # ever link correctly.  If we're not using GNU ld we use -z text
 
4438
    # though, which does catch some bad symbols but isn't as heavy-handed
 
4439
    # as -z defs.
 
4440
    # For security reasons, it is highly recommended that you always
 
4441
    # use absolute paths for naming shared libraries, and exclude the
 
4442
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
4443
    # requires that you compile everything twice, which is a pain.
 
4444
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
4445
    # non-empty value in the environment.  Most likely only useful for
 
4446
    # creating official distributions of packages.
 
4447
    # This is a hack until libtool officially supports absolute path
 
4448
    # names for shared libraries.
 
4449
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4450
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
4451
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4452
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4453
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
4454
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4455
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4456
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
4457
    runpath_var='LD_RUN_PATH'
 
4458
 
 
4459
    case $cc_basename in
 
4460
      CC*)
 
4461
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4462
        _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'
 
4463
        ;;
 
4464
      *)
 
4465
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4466
        _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'
 
4467
        ;;
 
4468
    esac
 
4469
    ;;
 
4470
  tandem*)
 
4471
    case $cc_basename in
 
4472
      NCC*)
 
4473
        # NonStop-UX NCC 3.20
 
4474
        # FIXME: insert proper C++ library support
 
4475
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4476
        ;;
 
4477
      *)
 
4478
        # FIXME: insert proper C++ library support
 
4479
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4480
        ;;
 
4481
    esac
 
4482
    ;;
 
4483
  vxworks*)
 
4484
    # FIXME: insert proper C++ library support
 
4485
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4486
    ;;
 
4487
  *)
 
4488
    # FIXME: insert proper C++ library support
 
4489
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4490
    ;;
 
4491
esac
 
4492
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4493
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4494
 
 
4495
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4496
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4497
 
 
4498
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4499
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4500
AC_LIBTOOL_PROG_CC_C_O($1)
 
4501
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4502
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4503
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4504
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4505
 
 
4506
AC_LIBTOOL_CONFIG($1)
 
4507
 
 
4508
AC_LANG_POP
 
4509
CC=$lt_save_CC
 
4510
LDCXX=$LD
 
4511
LD=$lt_save_LD
 
4512
GCC=$lt_save_GCC
 
4513
with_gnu_ldcxx=$with_gnu_ld
 
4514
with_gnu_ld=$lt_save_with_gnu_ld
 
4515
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4516
lt_cv_path_LD=$lt_save_path_LD
 
4517
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4518
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4519
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4520
 
 
4521
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4522
# ------------------------------------
 
4523
# Figure out "hidden" library dependencies from verbose
 
4524
# compiler output when linking a shared library.
 
4525
# Parse the compiler output and extract the necessary
 
4526
# objects, libraries and library flags.
 
4527
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4528
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4529
dnl we can't use the lt_simple_compile_test_code here,
 
4530
dnl because it contains code intended for an executable,
 
4531
dnl not a library.  It's possible we should let each
 
4532
dnl tag define a new lt_????_link_test_code variable,
 
4533
dnl but it's only used here...
 
4534
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4535
int a;
 
4536
void foo (void) { a = 0; }
 
4537
EOF
 
4538
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4539
class Foo
 
4540
{
 
4541
public:
 
4542
  Foo (void) { a = 0; }
 
4543
private:
 
4544
  int a;
 
4545
};
 
4546
EOF
 
4547
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4548
      subroutine foo
 
4549
      implicit none
 
4550
      integer*4 a
 
4551
      a=0
 
4552
      return
 
4553
      end
 
4554
EOF
 
4555
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4556
public class foo {
 
4557
  private int a;
 
4558
  public void bar (void) {
 
4559
    a = 0;
 
4560
  }
 
4561
};
 
4562
EOF
 
4563
])
 
4564
dnl Parse the compiler output and extract the necessary
 
4565
dnl objects, libraries and library flags.
 
4566
if AC_TRY_EVAL(ac_compile); then
 
4567
  # Parse the compiler output and extract the necessary
 
4568
  # objects, libraries and library flags.
 
4569
 
 
4570
  # Sentinel used to keep track of whether or not we are before
 
4571
  # the conftest object file.
 
4572
  pre_test_object_deps_done=no
 
4573
 
 
4574
  # The `*' in the case matches for architectures that use `case' in
 
4575
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4576
  # eval without this substitution.
 
4577
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
4578
 
 
4579
  for p in `eval $output_verbose_link_cmd`; do
 
4580
    case $p in
 
4581
 
 
4582
    -L* | -R* | -l*)
 
4583
       # Some compilers place space between "-{L,R}" and the path.
 
4584
       # Remove the space.
 
4585
       if test $p = "-L" \
 
4586
          || test $p = "-R"; then
 
4587
         prev=$p
 
4588
         continue
 
4589
       else
 
4590
         prev=
 
4591
       fi
 
4592
 
 
4593
       if test "$pre_test_object_deps_done" = no; then
 
4594
         case $p in
 
4595
         -L* | -R*)
 
4596
           # Internal compiler library paths should come after those
 
4597
           # provided the user.  The postdeps already come after the
 
4598
           # user supplied libs so there is no need to process them.
 
4599
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4600
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4601
           else
 
4602
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4603
           fi
 
4604
           ;;
 
4605
         # The "-l" case would never come before the object being
 
4606
         # linked, so don't bother handling this case.
 
4607
         esac
 
4608
       else
 
4609
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4610
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4611
         else
 
4612
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4613
         fi
 
4614
       fi
 
4615
       ;;
 
4616
 
 
4617
    *.$objext)
 
4618
       # This assumes that the test object file only shows up
 
4619
       # once in the compiler output.
 
4620
       if test "$p" = "conftest.$objext"; then
 
4621
         pre_test_object_deps_done=yes
 
4622
         continue
 
4623
       fi
 
4624
 
 
4625
       if test "$pre_test_object_deps_done" = no; then
 
4626
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4627
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4628
         else
 
4629
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4630
         fi
 
4631
       else
 
4632
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4633
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4634
         else
 
4635
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4636
         fi
 
4637
       fi
 
4638
       ;;
 
4639
 
 
4640
    *) ;; # Ignore the rest.
 
4641
 
 
4642
    esac
 
4643
  done
 
4644
 
 
4645
  # Clean up.
 
4646
  rm -f a.out a.exe
 
4647
else
 
4648
  echo "libtool.m4: error: problem compiling $1 test program"
 
4649
fi
 
4650
 
 
4651
$rm -f confest.$objext
 
4652
 
 
4653
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4654
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4655
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4656
fi
 
4657
 
 
4658
# PORTME: override above test on systems where it is broken
 
4659
ifelse([$1],[CXX],
 
4660
[case $host_os in
 
4661
interix[[3-9]]*)
 
4662
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4663
  # hack all around it, let's just trust "g++" to DTRT.
 
4664
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4665
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4666
  _LT_AC_TAGVAR(postdeps,$1)=
 
4667
  ;;
 
4668
 
 
4669
linux*)
 
4670
  case `$CC -V 2>&1 | sed 5q` in
 
4671
  *Sun\ C*)
 
4672
    # Sun C++ 5.9
 
4673
    #
 
4674
    # The more standards-conforming stlport4 library is
 
4675
    # incompatible with the Cstd library. Avoid specifying
 
4676
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4677
    # -library=stlport4 depends on it.
 
4678
    case " $CXX $CXXFLAGS " in
 
4679
    *" -library=stlport4 "*)
 
4680
      solaris_use_stlport4=yes
 
4681
      ;;
 
4682
    esac
 
4683
    if test "$solaris_use_stlport4" != yes; then
 
4684
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4685
    fi
 
4686
    ;;
 
4687
  esac
 
4688
  ;;
 
4689
 
 
4690
solaris*)
 
4691
  case $cc_basename in
 
4692
  CC*)
 
4693
    # The more standards-conforming stlport4 library is
 
4694
    # incompatible with the Cstd library. Avoid specifying
 
4695
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4696
    # -library=stlport4 depends on it.
 
4697
    case " $CXX $CXXFLAGS " in
 
4698
    *" -library=stlport4 "*)
 
4699
      solaris_use_stlport4=yes
 
4700
      ;;
 
4701
    esac
 
4702
 
 
4703
    # Adding this requires a known-good setup of shared libraries for
 
4704
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4705
    # archive will be linked into the output, leading to subtle bugs.
 
4706
    if test "$solaris_use_stlport4" != yes; then
 
4707
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4708
    fi
 
4709
    ;;
 
4710
  esac
 
4711
  ;;
 
4712
esac
 
4713
])
 
4714
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4715
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4716
esac
 
4717
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4718
 
 
4719
# AC_LIBTOOL_LANG_F77_CONFIG
 
4720
# --------------------------
 
4721
# Ensure that the configuration vars for the C compiler are
 
4722
# suitably defined.  Those variables are subsequently used by
 
4723
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4724
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4725
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4726
[AC_REQUIRE([AC_PROG_F77])
 
4727
AC_LANG_PUSH(Fortran 77)
 
4728
 
 
4729
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4730
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4731
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4732
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4733
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4734
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4736
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4737
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4738
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4739
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4740
_LT_AC_TAGVAR(module_cmds, $1)=
 
4741
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4742
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4743
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4744
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4745
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4746
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4747
 
 
4748
# Source file extension for f77 test sources.
 
4749
ac_ext=f
 
4750
 
 
4751
# Object file extension for compiled f77 test sources.
 
4752
objext=o
 
4753
_LT_AC_TAGVAR(objext, $1)=$objext
 
4754
 
 
4755
# Code to be used in simple compile tests
 
4756
lt_simple_compile_test_code="\
 
4757
      subroutine t
 
4758
      return
 
4759
      end
 
4760
"
 
4761
 
 
4762
# Code to be used in simple link tests
 
4763
lt_simple_link_test_code="\
 
4764
      program t
 
4765
      end
 
4766
"
 
4767
 
 
4768
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4769
_LT_AC_SYS_COMPILER
 
4770
 
 
4771
# save warnings/boilerplate of simple test code
 
4772
_LT_COMPILER_BOILERPLATE
 
4773
_LT_LINKER_BOILERPLATE
 
4774
 
 
4775
# Allow CC to be a program name with arguments.
 
4776
lt_save_CC="$CC"
 
4777
CC=${F77-"f77"}
 
4778
compiler=$CC
 
4779
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4780
_LT_CC_BASENAME([$compiler])
 
4781
 
 
4782
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4783
AC_MSG_RESULT([$can_build_shared])
 
4784
 
 
4785
AC_MSG_CHECKING([whether to build shared libraries])
 
4786
test "$can_build_shared" = "no" && enable_shared=no
 
4787
 
 
4788
# On AIX, shared libraries and static libraries use the same namespace, and
 
4789
# are all built from PIC.
 
4790
case $host_os in
 
4791
aix3*)
 
4792
  test "$enable_shared" = yes && enable_static=no
 
4793
  if test -n "$RANLIB"; then
 
4794
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4795
    postinstall_cmds='$RANLIB $lib'
 
4796
  fi
 
4797
  ;;
 
4798
aix[[4-9]]*)
 
4799
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4800
    test "$enable_shared" = yes && enable_static=no
 
4801
  fi
 
4802
  ;;
 
4803
esac
 
4804
AC_MSG_RESULT([$enable_shared])
 
4805
 
 
4806
AC_MSG_CHECKING([whether to build static libraries])
 
4807
# Make sure either enable_shared or enable_static is yes.
 
4808
test "$enable_shared" = yes || enable_static=yes
 
4809
AC_MSG_RESULT([$enable_static])
 
4810
 
 
4811
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
4812
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4813
 
 
4814
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4815
AC_LIBTOOL_PROG_CC_C_O($1)
 
4816
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4817
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4818
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4819
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4820
 
 
4821
AC_LIBTOOL_CONFIG($1)
 
4822
 
 
4823
AC_LANG_POP
 
4824
CC="$lt_save_CC"
 
4825
])# AC_LIBTOOL_LANG_F77_CONFIG
 
4826
 
 
4827
 
 
4828
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4829
# --------------------------
 
4830
# Ensure that the configuration vars for the C compiler are
 
4831
# suitably defined.  Those variables are subsequently used by
 
4832
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4833
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
4834
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
4835
[AC_LANG_SAVE
 
4836
 
 
4837
# Source file extension for Java test sources.
 
4838
ac_ext=java
 
4839
 
 
4840
# Object file extension for compiled Java test sources.
 
4841
objext=o
 
4842
_LT_AC_TAGVAR(objext, $1)=$objext
 
4843
 
 
4844
# Code to be used in simple compile tests
 
4845
lt_simple_compile_test_code="class foo {}"
 
4846
 
 
4847
# Code to be used in simple link tests
 
4848
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
4849
 
 
4850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4851
_LT_AC_SYS_COMPILER
 
4852
 
 
4853
# save warnings/boilerplate of simple test code
 
4854
_LT_COMPILER_BOILERPLATE
 
4855
_LT_LINKER_BOILERPLATE
 
4856
 
 
4857
# Allow CC to be a program name with arguments.
 
4858
lt_save_CC="$CC"
 
4859
CC=${GCJ-"gcj"}
 
4860
compiler=$CC
 
4861
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4862
_LT_CC_BASENAME([$compiler])
 
4863
 
 
4864
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
4865
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4866
 
 
4867
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4868
 
 
4869
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4870
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4871
AC_LIBTOOL_PROG_CC_C_O($1)
 
4872
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4873
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4874
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4875
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4876
 
 
4877
AC_LIBTOOL_CONFIG($1)
 
4878
 
 
4879
AC_LANG_RESTORE
 
4880
CC="$lt_save_CC"
 
4881
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4882
 
 
4883
 
 
4884
# AC_LIBTOOL_LANG_RC_CONFIG
 
4885
# -------------------------
 
4886
# Ensure that the configuration vars for the Windows resource compiler are
 
4887
# suitably defined.  Those variables are subsequently used by
 
4888
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4889
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
4890
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
4891
[AC_LANG_SAVE
 
4892
 
 
4893
# Source file extension for RC test sources.
 
4894
ac_ext=rc
 
4895
 
 
4896
# Object file extension for compiled RC test sources.
 
4897
objext=o
 
4898
_LT_AC_TAGVAR(objext, $1)=$objext
 
4899
 
 
4900
# Code to be used in simple compile tests
 
4901
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
4902
 
 
4903
# Code to be used in simple link tests
 
4904
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
4905
 
 
4906
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4907
_LT_AC_SYS_COMPILER
 
4908
 
 
4909
# save warnings/boilerplate of simple test code
 
4910
_LT_COMPILER_BOILERPLATE
 
4911
_LT_LINKER_BOILERPLATE
 
4912
 
 
4913
# Allow CC to be a program name with arguments.
 
4914
lt_save_CC="$CC"
 
4915
CC=${RC-"windres"}
 
4916
compiler=$CC
 
4917
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4918
_LT_CC_BASENAME([$compiler])
 
4919
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4920
 
 
4921
AC_LIBTOOL_CONFIG($1)
 
4922
 
 
4923
AC_LANG_RESTORE
 
4924
CC="$lt_save_CC"
 
4925
])# AC_LIBTOOL_LANG_RC_CONFIG
 
4926
 
 
4927
 
 
4928
# AC_LIBTOOL_CONFIG([TAGNAME])
 
4929
# ----------------------------
 
4930
# If TAGNAME is not passed, then create an initial libtool script
 
4931
# with a default configuration from the untagged config vars.  Otherwise
 
4932
# add code to config.status for appending the configuration named by
 
4933
# TAGNAME from the matching tagged config vars.
 
4934
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
4935
[# The else clause should only fire when bootstrapping the
 
4936
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4937
# with your package, and you will get complaints that there are
 
4938
# no rules to generate ltmain.sh.
 
4939
if test -f "$ltmain"; then
 
4940
  # See if we are running on zsh, and set the options which allow our commands through
 
4941
  # without removal of \ escapes.
 
4942
  if test -n "${ZSH_VERSION+set}" ; then
 
4943
    setopt NO_GLOB_SUBST
 
4944
  fi
 
4945
  # Now quote all the things that may contain metacharacters while being
 
4946
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4947
  # variables and quote the copies for generation of the libtool script.
 
4948
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
4949
    SED SHELL STRIP \
 
4950
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4951
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4952
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4953
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4954
    lt_cv_sys_global_symbol_to_c_name_address \
 
4955
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4956
    old_postinstall_cmds old_postuninstall_cmds \
 
4957
    _LT_AC_TAGVAR(compiler, $1) \
 
4958
    _LT_AC_TAGVAR(CC, $1) \
 
4959
    _LT_AC_TAGVAR(LD, $1) \
 
4960
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
4961
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
4962
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
4963
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
4964
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
4965
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
4966
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
4967
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
4968
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
4969
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
4970
    _LT_AC_TAGVAR(predep_objects, $1) \
 
4971
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
4972
    _LT_AC_TAGVAR(predeps, $1) \
 
4973
    _LT_AC_TAGVAR(postdeps, $1) \
 
4974
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4975
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
 
4976
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
4977
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
4978
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
4979
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
4980
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
4981
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
4982
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
4983
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
4984
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
4985
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
4986
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
4987
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
4988
    _LT_AC_TAGVAR(module_cmds, $1) \
 
4989
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
4990
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4991
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
 
4992
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
4993
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
4994
 
 
4995
    case $var in
 
4996
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
4997
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
4998
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
4999
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
5000
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
5001
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
5002
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
5003
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
5004
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
5005
    postinstall_cmds | postuninstall_cmds | \
 
5006
    old_postinstall_cmds | old_postuninstall_cmds | \
 
5007
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
5008
      # Double-quote double-evaled strings.
 
5009
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
5010
      ;;
 
5011
    *)
 
5012
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
5013
      ;;
 
5014
    esac
 
5015
  done
 
5016
 
 
5017
  case $lt_echo in
 
5018
  *'\[$]0 --fallback-echo"')
 
5019
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
5020
    ;;
 
5021
  esac
 
5022
 
 
5023
ifelse([$1], [],
 
5024
  [cfgfile="${ofile}T"
 
5025
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
5026
  $rm -f "$cfgfile"
 
5027
  AC_MSG_NOTICE([creating $ofile])],
 
5028
  [cfgfile="$ofile"])
 
5029
 
 
5030
  cat <<__EOF__ >> "$cfgfile"
 
5031
ifelse([$1], [],
 
5032
[#! $SHELL
 
5033
 
 
5034
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
5035
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
5036
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
5037
#
 
5038
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5039
# Free Software Foundation, Inc.
 
5040
#
 
5041
# This file is part of GNU Libtool:
 
5042
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
5043
#
 
5044
# This program is free software; you can redistribute it and/or modify
 
5045
# it under the terms of the GNU General Public License as published by
 
5046
# the Free Software Foundation; either version 2 of the License, or
 
5047
# (at your option) any later version.
 
5048
#
 
5049
# This program is distributed in the hope that it will be useful, but
 
5050
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
5051
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
5052
# General Public License for more details.
 
5053
#
 
5054
# You should have received a copy of the GNU General Public License
 
5055
# along with this program; if not, write to the Free Software
 
5056
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
5057
#
 
5058
# As a special exception to the GNU General Public License, if you
 
5059
# distribute this file as part of a program that contains a
 
5060
# configuration script generated by Autoconf, you may include it under
 
5061
# the same distribution terms that you use for the rest of that program.
 
5062
 
 
5063
# A sed program that does not truncate output.
 
5064
SED=$lt_SED
 
5065
 
 
5066
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
5067
Xsed="$SED -e 1s/^X//"
 
5068
 
 
5069
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
5070
# if CDPATH is set.
 
5071
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5072
 
 
5073
# The names of the tagged configurations supported by this script.
 
5074
available_tags=
 
5075
 
 
5076
# ### BEGIN LIBTOOL CONFIG],
 
5077
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
5078
 
 
5079
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5080
 
 
5081
# Shell to use when invoking shell scripts.
 
5082
SHELL=$lt_SHELL
 
5083
 
 
5084
# Whether or not to build shared libraries.
 
5085
build_libtool_libs=$enable_shared
 
5086
 
 
5087
# Whether or not to build static libraries.
 
5088
build_old_libs=$enable_static
 
5089
 
 
5090
# Whether or not to add -lc for building shared libraries.
 
5091
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
5092
 
 
5093
# Whether or not to disallow shared libs when runtime libs are static
 
5094
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
5095
 
 
5096
# Whether or not to optimize for fast installation.
 
5097
fast_install=$enable_fast_install
 
5098
 
 
5099
# The host system.
 
5100
host_alias=$host_alias
 
5101
host=$host
 
5102
host_os=$host_os
 
5103
 
 
5104
# The build system.
 
5105
build_alias=$build_alias
 
5106
build=$build
 
5107
build_os=$build_os
 
5108
 
 
5109
# An echo program that does not interpret backslashes.
 
5110
echo=$lt_echo
 
5111
 
 
5112
# The archiver.
 
5113
AR=$lt_AR
 
5114
AR_FLAGS=$lt_AR_FLAGS
 
5115
 
 
5116
# A C compiler.
 
5117
LTCC=$lt_LTCC
 
5118
 
 
5119
# LTCC compiler flags.
 
5120
LTCFLAGS=$lt_LTCFLAGS
 
5121
 
 
5122
# A language-specific compiler.
 
5123
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
5124
 
 
5125
# Is the compiler the GNU C compiler?
 
5126
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
5127
 
 
5128
# An ERE matcher.
 
5129
EGREP=$lt_EGREP
 
5130
 
 
5131
# The linker used to build libraries.
 
5132
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
5133
 
 
5134
# Whether we need hard or soft links.
 
5135
LN_S=$lt_LN_S
 
5136
 
 
5137
# A BSD-compatible nm program.
 
5138
NM=$lt_NM
 
5139
 
 
5140
# A symbol stripping program
 
5141
STRIP=$lt_STRIP
 
5142
 
 
5143
# Used to examine libraries when file_magic_cmd begins "file"
 
5144
MAGIC_CMD=$MAGIC_CMD
 
5145
 
 
5146
# Used on cygwin: DLL creation program.
 
5147
DLLTOOL="$DLLTOOL"
 
5148
 
 
5149
# Used on cygwin: object dumper.
 
5150
OBJDUMP="$OBJDUMP"
 
5151
 
 
5152
# Used on cygwin: assembler.
 
5153
AS="$AS"
 
5154
 
 
5155
# The name of the directory that contains temporary libtool files.
 
5156
objdir=$objdir
 
5157
 
 
5158
# How to create reloadable object files.
 
5159
reload_flag=$lt_reload_flag
 
5160
reload_cmds=$lt_reload_cmds
 
5161
 
 
5162
# How to pass a linker flag through the compiler.
 
5163
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5164
 
 
5165
# Object file suffix (normally "o").
 
5166
objext="$ac_objext"
 
5167
 
 
5168
# Old archive suffix (normally "a").
 
5169
libext="$libext"
 
5170
 
 
5171
# Shared library suffix (normally ".so").
 
5172
shrext_cmds='$shrext_cmds'
 
5173
 
 
5174
# Executable file suffix (normally "").
 
5175
exeext="$exeext"
 
5176
 
 
5177
# Additional compiler flags for building library objects.
 
5178
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5179
pic_mode=$pic_mode
 
5180
 
 
5181
# What is the maximum length of a command?
 
5182
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5183
 
 
5184
# Does compiler simultaneously support -c and -o options?
 
5185
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5186
 
 
5187
# Must we lock files when doing compilation?
 
5188
need_locks=$lt_need_locks
 
5189
 
 
5190
# Do we need the lib prefix for modules?
 
5191
need_lib_prefix=$need_lib_prefix
 
5192
 
 
5193
# Do we need a version for libraries?
 
5194
need_version=$need_version
 
5195
 
 
5196
# Whether dlopen is supported.
 
5197
dlopen_support=$enable_dlopen
 
5198
 
 
5199
# Whether dlopen of programs is supported.
 
5200
dlopen_self=$enable_dlopen_self
 
5201
 
 
5202
# Whether dlopen of statically linked programs is supported.
 
5203
dlopen_self_static=$enable_dlopen_self_static
 
5204
 
 
5205
# Compiler flag to prevent dynamic linking.
 
5206
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5207
 
 
5208
# Compiler flag to turn off builtin functions.
 
5209
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5210
 
 
5211
# Compiler flag to allow reflexive dlopens.
 
5212
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5213
 
 
5214
# Compiler flag to generate shared objects directly from archives.
 
5215
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5216
 
 
5217
# Compiler flag to generate thread-safe objects.
 
5218
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5219
 
 
5220
# Library versioning type.
 
5221
version_type=$version_type
 
5222
 
 
5223
# Format of library name prefix.
 
5224
libname_spec=$lt_libname_spec
 
5225
 
 
5226
# List of archive names.  First name is the real one, the rest are links.
 
5227
# The last name is the one that the linker finds with -lNAME.
 
5228
library_names_spec=$lt_library_names_spec
 
5229
 
 
5230
# The coded name of the library, if different from the real name.
 
5231
soname_spec=$lt_soname_spec
 
5232
 
 
5233
# Commands used to build and install an old-style archive.
 
5234
RANLIB=$lt_RANLIB
 
5235
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5236
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5237
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5238
 
 
5239
# Create an old-style archive from a shared archive.
 
5240
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5241
 
 
5242
# Create a temporary old-style archive to link instead of a shared archive.
 
5243
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5244
 
 
5245
# Commands used to build and install a shared archive.
 
5246
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5247
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5248
postinstall_cmds=$lt_postinstall_cmds
 
5249
postuninstall_cmds=$lt_postuninstall_cmds
 
5250
 
 
5251
# Commands used to build a loadable module (assumed same as above if empty)
 
5252
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5253
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5254
 
 
5255
# Commands to strip libraries.
 
5256
old_striplib=$lt_old_striplib
 
5257
striplib=$lt_striplib
 
5258
 
 
5259
# Dependencies to place before the objects being linked to create a
 
5260
# shared library.
 
5261
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5262
 
 
5263
# Dependencies to place after the objects being linked to create a
 
5264
# shared library.
 
5265
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5266
 
 
5267
# Dependencies to place before the objects being linked to create a
 
5268
# shared library.
 
5269
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5270
 
 
5271
# Dependencies to place after the objects being linked to create a
 
5272
# shared library.
 
5273
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5274
 
 
5275
# The directories searched by this compiler when creating a shared
 
5276
# library
 
5277
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5278
 
 
5279
# The library search path used internally by the compiler when linking
 
5280
# a shared library.
 
5281
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5282
 
 
5283
# Method to check whether dependent libraries are shared objects.
 
5284
deplibs_check_method=$lt_deplibs_check_method
 
5285
 
 
5286
# Command to use when deplibs_check_method == file_magic.
 
5287
file_magic_cmd=$lt_file_magic_cmd
 
5288
 
 
5289
# Flag that allows shared libraries with undefined symbols to be built.
 
5290
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5291
 
 
5292
# Flag that forces no undefined symbols.
 
5293
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5294
 
 
5295
# Commands used to finish a libtool library installation in a directory.
 
5296
finish_cmds=$lt_finish_cmds
 
5297
 
 
5298
# Same as above, but a single script fragment to be evaled but not shown.
 
5299
finish_eval=$lt_finish_eval
 
5300
 
 
5301
# Take the output of nm and produce a listing of raw symbols and C names.
 
5302
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5303
 
 
5304
# Transform the output of nm in a proper C declaration
 
5305
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5306
 
 
5307
# Transform the output of nm in a C name address pair
 
5308
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5309
 
 
5310
# This is the shared library runtime path variable.
 
5311
runpath_var=$runpath_var
 
5312
 
 
5313
# This is the shared library path variable.
 
5314
shlibpath_var=$shlibpath_var
 
5315
 
 
5316
# Is shlibpath searched before the hard-coded library search path?
 
5317
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5318
 
 
5319
# How to hardcode a shared library path into an executable.
 
5320
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5321
 
 
5322
# Whether we should hardcode library paths into libraries.
 
5323
hardcode_into_libs=$hardcode_into_libs
 
5324
 
 
5325
# Flag to hardcode \$libdir into a binary during linking.
 
5326
# This must work even if \$libdir does not exist.
 
5327
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5328
 
 
5329
# If ld is used when linking, flag to hardcode \$libdir into
 
5330
# a binary during linking. This must work even if \$libdir does
 
5331
# not exist.
 
5332
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5333
 
 
5334
# Whether we need a single -rpath flag with a separated argument.
 
5335
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5336
 
 
5337
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5338
# resulting binary.
 
5339
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5340
 
 
5341
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5342
# resulting binary.
 
5343
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5344
 
 
5345
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5346
# the resulting binary.
 
5347
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5348
 
 
5349
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5350
# and all subsequent libraries and executables linked against it.
 
5351
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5352
 
 
5353
# Variables whose values should be saved in libtool wrapper scripts and
 
5354
# restored at relink time.
 
5355
variables_saved_for_relink="$variables_saved_for_relink"
 
5356
 
 
5357
# Whether libtool must link a program against all its dependency libraries.
 
5358
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5359
 
 
5360
# Compile-time system search path for libraries
 
5361
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5362
 
 
5363
# Run-time system search path for libraries
 
5364
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5365
 
 
5366
# Fix the shell variable \$srcfile for the compiler.
 
5367
fix_srcfile_path=$lt_fix_srcfile_path
 
5368
 
 
5369
# Set to yes if exported symbols are required.
 
5370
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5371
 
 
5372
# The commands to list exported symbols.
 
5373
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5374
 
 
5375
# The commands to extract the exported symbol list from a shared archive.
 
5376
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5377
 
 
5378
# Symbols that should not be listed in the preloaded symbols.
 
5379
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5380
 
 
5381
# Symbols that must always be exported.
 
5382
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5383
 
 
5384
ifelse([$1],[],
 
5385
[# ### END LIBTOOL CONFIG],
 
5386
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5387
 
 
5388
__EOF__
 
5389
 
 
5390
ifelse([$1],[], [
 
5391
  case $host_os in
 
5392
  aix3*)
 
5393
    cat <<\EOF >> "$cfgfile"
 
5394
 
 
5395
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5396
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5397
# vanish in a puff of smoke.
 
5398
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5399
  COLLECT_NAMES=
 
5400
  export COLLECT_NAMES
 
5401
fi
 
5402
EOF
 
5403
    ;;
 
5404
  esac
 
5405
 
 
5406
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5407
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5408
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5409
  # is reportedly fixed, but why not run on old versions too?
 
5410
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5411
 
 
5412
  mv -f "$cfgfile" "$ofile" || \
 
5413
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5414
  chmod +x "$ofile"
 
5415
])
 
5416
else
 
5417
  # If there is no Makefile yet, we rely on a make rule to execute
 
5418
  # `config.status --recheck' to rerun these tests and create the
 
5419
  # libtool script then.
 
5420
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5421
  if test -f "$ltmain_in"; then
 
5422
    test -f Makefile && make "$ltmain"
 
5423
  fi
 
5424
fi
 
5425
])# AC_LIBTOOL_CONFIG
 
5426
 
 
5427
 
 
5428
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5429
# -------------------------------------------
 
5430
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5431
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5432
 
 
5433
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3955
5434
 
3956
5435
if test "$GCC" = yes; then
3957
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5436
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3958
5437
 
3959
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5438
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3960
5439
    lt_cv_prog_compiler_rtti_exceptions,
3961
5440
    [-fno-rtti -fno-exceptions], [],
3962
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5441
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3963
5442
fi
3964
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3965
 
        [Compiler flag to turn off builtin functions])
3966
 
])# _LT_COMPILER_NO_RTTI
3967
 
 
3968
 
 
3969
 
# _LT_CMD_GLOBAL_SYMBOLS
3970
 
# ----------------------
3971
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3972
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3973
 
AC_REQUIRE([AC_PROG_CC])dnl
3974
 
AC_REQUIRE([LT_PATH_NM])dnl
3975
 
AC_REQUIRE([LT_PATH_LD])dnl
3976
 
m4_require([_LT_DECL_SED])dnl
3977
 
m4_require([_LT_DECL_EGREP])dnl
3978
 
m4_require([_LT_TAG_COMPILER])dnl
3979
 
 
 
5443
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5444
 
 
5445
 
 
5446
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5447
# ---------------------------------
 
5448
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5449
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5450
AC_REQUIRE([LT_AC_PROG_SED])
 
5451
AC_REQUIRE([AC_PROG_NM])
 
5452
AC_REQUIRE([AC_OBJEXT])
3980
5453
# Check for command to grab the raw symbol name followed by C symbol from nm.
3981
5454
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3982
5455
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3990
5463
# Regexp to match symbols that can be accessed directly from C.
3991
5464
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3992
5465
 
 
5466
# Transform an extracted symbol line into a proper C declaration
 
5467
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5468
 
 
5469
# Transform an extracted symbol line into symbol name and symbol address
 
5470
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'"
 
5471
 
3993
5472
# Define system-specific variables.
3994
5473
case $host_os in
3995
5474
aix*)
3998
5477
cygwin* | mingw* | pw32*)
3999
5478
  symcode='[[ABCDGISTW]]'
4000
5479
  ;;
4001
 
hpux*)
 
5480
hpux*) # Its linker distinguishes data from code symbols
4002
5481
  if test "$host_cpu" = ia64; then
4003
5482
    symcode='[[ABCDEGRST]]'
4004
5483
  fi
 
5484
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5485
  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'"
 
5486
  ;;
 
5487
linux* | k*bsd*-gnu)
 
5488
  if test "$host_cpu" = ia64; then
 
5489
    symcode='[[ABCDGIRSTW]]'
 
5490
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5491
    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'"
 
5492
  fi
4005
5493
  ;;
4006
5494
irix* | nonstopux*)
4007
5495
  symcode='[[BCDEGRST]]'
4026
5514
  ;;
4027
5515
esac
4028
5516
 
4029
 
# If we're using GNU nm, then use its standard symbol codes.
4030
 
case `$NM -V 2>&1` in
4031
 
*GNU* | *'with BFD'*)
4032
 
  symcode='[[ABCDGIRSTW]]' ;;
4033
 
esac
4034
 
 
4035
 
# Transform an extracted symbol line into a proper C declaration.
4036
 
# Some systems (esp. on ia64) link data and code symbols differently,
4037
 
# so use this general approach.
4038
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4039
 
 
4040
 
# Transform an extracted symbol line into symbol name and symbol address
4041
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4042
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4043
 
 
4044
5517
# Handle CRLF in mingw tool chain
4045
5518
opt_cr=
4046
5519
case $build_os in
4047
5520
mingw*)
4048
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5521
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4049
5522
  ;;
4050
5523
esac
4051
5524
 
4052
 
# Try without a prefix underscore, then with it.
 
5525
# If we're using GNU nm, then use its standard symbol codes.
 
5526
case `$NM -V 2>&1` in
 
5527
*GNU* | *'with BFD'*)
 
5528
  symcode='[[ABCDGIRSTW]]' ;;
 
5529
esac
 
5530
 
 
5531
# Try without a prefix undercore, then with it.
4053
5532
for ac_symprfx in "" "_"; do
4054
5533
 
4055
5534
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4056
5535
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4057
5536
 
4058
5537
  # Write the raw and C identifiers.
4059
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4060
 
    # Fake it for dumpbin and say T for any non-static function
4061
 
    # and D for any global variable.
4062
 
    # Also find C++ and __fastcall symbols from MSVC++,
4063
 
    # which start with @ or ?.
4064
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4065
 
"     {last_section=section; section=\$ 3};"\
4066
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4067
 
"     \$ 0!~/External *\|/{next};"\
4068
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4069
 
"     {if(hide[section]) next};"\
4070
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4071
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4072
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4073
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4074
 
"     ' prfx=^$ac_symprfx]"
4075
 
  else
4076
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4077
 
  fi
 
5538
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4078
5539
 
4079
5540
  # Check to see that the pipe works correctly.
4080
5541
  pipe_works=no
4081
5542
 
4082
5543
  rm -f conftest*
4083
 
  cat > conftest.$ac_ext <<_LT_EOF
 
5544
  cat > conftest.$ac_ext <<EOF
4084
5545
#ifdef __cplusplus
4085
5546
extern "C" {
4086
5547
#endif
4087
5548
char nm_test_var;
4088
 
void nm_test_func(void);
4089
 
void nm_test_func(void){}
 
5549
void nm_test_func(){}
4090
5550
#ifdef __cplusplus
4091
5551
}
4092
5552
#endif
4093
5553
int main(){nm_test_var='a';nm_test_func();return(0);}
4094
 
_LT_EOF
 
5554
EOF
4095
5555
 
4096
5556
  if AC_TRY_EVAL(ac_compile); then
4097
5557
    # Now try to grab the symbols.
4105
5565
      fi
4106
5566
 
4107
5567
      # Make sure that we snagged all the symbols we need.
4108
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4109
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4110
 
          cat <<_LT_EOF > conftest.$ac_ext
 
5568
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5569
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5570
          cat <<EOF > conftest.$ac_ext
4111
5571
#ifdef __cplusplus
4112
5572
extern "C" {
4113
5573
#endif
4114
5574
 
4115
 
_LT_EOF
 
5575
EOF
4116
5576
          # Now generate the symbol file.
4117
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4118
 
 
4119
 
          cat <<_LT_EOF >> conftest.$ac_ext
4120
 
 
4121
 
/* The mapping between symbol names and symbols.  */
 
5577
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5578
 
 
5579
          cat <<EOF >> conftest.$ac_ext
 
5580
#if defined (__STDC__) && __STDC__
 
5581
# define lt_ptr_t void *
 
5582
#else
 
5583
# define lt_ptr_t char *
 
5584
# define const
 
5585
#endif
 
5586
 
 
5587
/* The mapping between symbol names and symbols. */
4122
5588
const struct {
4123
5589
  const char *name;
4124
 
  void       *address;
 
5590
  lt_ptr_t address;
4125
5591
}
4126
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
5592
lt_preloaded_symbols[[]] =
4127
5593
{
4128
 
  { "@PROGRAM@", (void *) 0 },
4129
 
_LT_EOF
4130
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4131
 
          cat <<\_LT_EOF >> conftest.$ac_ext
4132
 
  {0, (void *) 0}
 
5594
EOF
 
5595
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5596
          cat <<\EOF >> conftest.$ac_ext
 
5597
  {0, (lt_ptr_t) 0}
4133
5598
};
4134
5599
 
4135
 
/* This works around a problem in FreeBSD linker */
4136
 
#ifdef FREEBSD_WORKAROUND
4137
 
static const void *lt_preloaded_setup() {
4138
 
  return lt__PROGRAM__LTX_preloaded_symbols;
4139
 
}
4140
 
#endif
4141
 
 
4142
5600
#ifdef __cplusplus
4143
5601
}
4144
5602
#endif
4145
 
_LT_EOF
 
5603
EOF
4146
5604
          # Now try linking the two files.
4147
5605
          mv conftest.$ac_objext conftstm.$ac_objext
4148
5606
          lt_save_LIBS="$LIBS"
4149
5607
          lt_save_CFLAGS="$CFLAGS"
4150
5608
          LIBS="conftstm.$ac_objext"
4151
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5609
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4152
5610
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4153
5611
            pipe_works=yes
4154
5612
          fi
4185
5643
else
4186
5644
  AC_MSG_RESULT(ok)
4187
5645
fi
4188
 
 
4189
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4190
 
    [Take the output of nm and produce a listing of raw symbols and C names])
4191
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4192
 
    [Transform the output of nm in a proper C declaration])
4193
 
_LT_DECL([global_symbol_to_c_name_address],
4194
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4195
 
    [Transform the output of nm in a C name address pair])
4196
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4197
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4198
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
4199
 
]) # _LT_CMD_GLOBAL_SYMBOLS
4200
 
 
4201
 
 
4202
 
# _LT_COMPILER_PIC([TAGNAME])
4203
 
# ---------------------------
4204
 
m4_defun([_LT_COMPILER_PIC],
4205
 
[m4_require([_LT_TAG_COMPILER])dnl
4206
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4207
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4208
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5646
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5647
 
 
5648
 
 
5649
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5650
# ---------------------------------------
 
5651
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5652
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5653
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5654
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4209
5655
 
4210
5656
AC_MSG_CHECKING([for $compiler option to produce PIC])
4211
 
m4_if([$1], [CXX], [
 
5657
 ifelse([$1],[CXX],[
4212
5658
  # C++ specific cases for pic, static, wl, etc.
4213
5659
  if test "$GXX" = yes; then
4214
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4215
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5660
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5661
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4216
5662
 
4217
5663
    case $host_os in
4218
5664
    aix*)
4219
5665
      # All AIX code is PIC.
4220
5666
      if test "$host_cpu" = ia64; then
4221
5667
        # AIX 5 now supports IA64 processor
4222
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5668
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4223
5669
      fi
4224
5670
      ;;
4225
 
 
4226
5671
    amigaos*)
4227
 
      case $host_cpu in
4228
 
      powerpc)
4229
 
            # see comment about AmigaOS4 .so support
4230
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4231
 
        ;;
4232
 
      m68k)
4233
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4234
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4235
 
            # like `-m68040'.
4236
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4237
 
        ;;
4238
 
      esac
 
5672
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5673
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5674
      # like `-m68040'.
 
5675
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4239
5676
      ;;
4240
 
 
4241
5677
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4242
5678
      # PIC is the default for these OSes.
4243
5679
      ;;
4247
5683
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4248
5684
      # (--disable-auto-import) libraries
4249
5685
      m4_if([$1], [GCJ], [],
4250
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5686
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4251
5687
      ;;
4252
5688
    darwin* | rhapsody*)
4253
5689
      # PIC is the default on this platform
4254
5690
      # Common symbols not allowed in MH_DYLIB files
4255
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5691
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4256
5692
      ;;
4257
5693
    *djgpp*)
4258
5694
      # DJGPP does not support shared libraries at all
4259
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5695
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4260
5696
      ;;
4261
5697
    interix[[3-9]]*)
4262
5698
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4264
5700
      ;;
4265
5701
    sysv4*MP*)
4266
5702
      if test -d /usr/nec; then
4267
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5703
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4268
5704
      fi
4269
5705
      ;;
4270
5706
    hpux*)
4274
5710
      hppa*64*|ia64*)
4275
5711
        ;;
4276
5712
      *)
4277
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5713
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4278
5714
        ;;
4279
5715
      esac
4280
5716
      ;;
4281
 
    *qnx* | *nto*)
4282
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4283
 
      # it will coredump.
4284
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4285
 
      ;;
4286
5717
    *)
4287
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5718
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4288
5719
      ;;
4289
5720
    esac
4290
5721
  else
4293
5724
        # All AIX code is PIC.
4294
5725
        if test "$host_cpu" = ia64; then
4295
5726
          # AIX 5 now supports IA64 processor
4296
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5727
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4297
5728
        else
4298
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5729
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4299
5730
        fi
4300
5731
        ;;
4301
5732
      chorus*)
4302
5733
        case $cc_basename in
4303
5734
        cxch68*)
4304
5735
          # Green Hills C++ Compiler
4305
 
          # _LT_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"
 
5736
          # _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"
4306
5737
          ;;
4307
5738
        esac
4308
5739
        ;;
 
5740
       darwin*)
 
5741
         # PIC is the default on this platform
 
5742
         # Common symbols not allowed in MH_DYLIB files
 
5743
         case $cc_basename in
 
5744
           xlc*)
 
5745
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5746
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5747
           ;;
 
5748
         esac
 
5749
       ;;
4309
5750
      dgux*)
4310
5751
        case $cc_basename in
4311
5752
          ec++*)
4312
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5753
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4313
5754
            ;;
4314
5755
          ghcx*)
4315
5756
            # Green Hills C++ Compiler
4316
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5757
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4317
5758
            ;;
4318
5759
          *)
4319
5760
            ;;
4325
5766
      hpux9* | hpux10* | hpux11*)
4326
5767
        case $cc_basename in
4327
5768
          CC*)
4328
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4329
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5769
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5770
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4330
5771
            if test "$host_cpu" != ia64; then
4331
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5772
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4332
5773
            fi
4333
5774
            ;;
4334
5775
          aCC*)
4335
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4336
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5776
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5777
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4337
5778
            case $host_cpu in
4338
5779
            hppa*64*|ia64*)
4339
5780
              # +Z the default
4340
5781
              ;;
4341
5782
            *)
4342
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5783
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4343
5784
              ;;
4344
5785
            esac
4345
5786
            ;;
4354
5795
      irix5* | irix6* | nonstopux*)
4355
5796
        case $cc_basename in
4356
5797
          CC*)
4357
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4358
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5798
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5799
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4359
5800
            # CC pic flag -KPIC is the default.
4360
5801
            ;;
4361
5802
          *)
4366
5807
        case $cc_basename in
4367
5808
          KCC*)
4368
5809
            # KAI C++ Compiler
4369
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4370
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5810
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5811
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4371
5812
            ;;
4372
 
          icpc* | ecpc* )
 
5813
          icpc* | ecpc*)
4373
5814
            # Intel C++
4374
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4375
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4376
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5815
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5816
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5817
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4377
5818
            ;;
4378
5819
          pgCC* | pgcpp*)
4379
 
            # Portland Group C++ compiler
4380
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4381
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4382
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5820
            # Portland Group C++ compiler.
 
5821
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5822
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5823
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4383
5824
            ;;
4384
5825
          cxx*)
4385
5826
            # Compaq C++
4386
5827
            # Make sure the PIC flag is empty.  It appears that all Alpha
4387
5828
            # Linux and Compaq Tru64 Unix objects are PIC.
4388
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4389
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4390
 
            ;;
4391
 
          xlc* | xlC*)
4392
 
            # IBM XL 8.0 on PPC
4393
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4394
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4395
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5829
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5830
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4396
5831
            ;;
4397
5832
          *)
4398
5833
            case `$CC -V 2>&1 | sed 5q` in
4399
5834
            *Sun\ C*)
4400
5835
              # Sun C++ 5.9
4401
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4402
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4403
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5836
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5837
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5838
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4404
5839
              ;;
4405
5840
            esac
4406
5841
            ;;
4413
5848
      mvs*)
4414
5849
        case $cc_basename in
4415
5850
          cxx*)
4416
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5851
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4417
5852
            ;;
4418
5853
          *)
4419
5854
            ;;
4420
5855
        esac
4421
5856
        ;;
4422
 
      netbsd* | netbsdelf*-gnu)
 
5857
      netbsd*)
4423
5858
        ;;
4424
 
      *qnx* | *nto*)
4425
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4426
 
        # it will coredump.
4427
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4428
 
        ;;
4429
5859
      osf3* | osf4* | osf5*)
4430
5860
        case $cc_basename in
4431
5861
          KCC*)
4432
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5862
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4433
5863
            ;;
4434
5864
          RCC*)
4435
5865
            # Rational C++ 2.4.1
4436
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5866
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4437
5867
            ;;
4438
5868
          cxx*)
4439
5869
            # Digital/Compaq C++
4440
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5870
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4441
5871
            # Make sure the PIC flag is empty.  It appears that all Alpha
4442
5872
            # Linux and Compaq Tru64 Unix objects are PIC.
4443
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4444
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5873
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5874
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4445
5875
            ;;
4446
5876
          *)
4447
5877
            ;;
4453
5883
        case $cc_basename in
4454
5884
          CC*)
4455
5885
            # Sun C++ 4.2, 5.x and Centerline C++
4456
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4457
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4458
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5886
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5887
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5888
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4459
5889
            ;;
4460
5890
          gcx*)
4461
5891
            # Green Hills C++ Compiler
4462
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5892
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4463
5893
            ;;
4464
5894
          *)
4465
5895
            ;;
4469
5899
        case $cc_basename in
4470
5900
          CC*)
4471
5901
            # Sun C++ 4.x
4472
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4473
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5902
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5903
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4474
5904
            ;;
4475
5905
          lcc*)
4476
5906
            # Lucid
4477
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5907
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5908
            ;;
 
5909
          *)
 
5910
            ;;
 
5911
        esac
 
5912
        ;;
 
5913
      tandem*)
 
5914
        case $cc_basename in
 
5915
          NCC*)
 
5916
            # NonStop-UX NCC 3.20
 
5917
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4478
5918
            ;;
4479
5919
          *)
4480
5920
            ;;
4483
5923
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4484
5924
        case $cc_basename in
4485
5925
          CC*)
4486
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4487
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4488
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4489
 
            ;;
4490
 
        esac
4491
 
        ;;
4492
 
      tandem*)
4493
 
        case $cc_basename in
4494
 
          NCC*)
4495
 
            # NonStop-UX NCC 3.20
4496
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4497
 
            ;;
4498
 
          *)
 
5926
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5927
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5928
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4499
5929
            ;;
4500
5930
        esac
4501
5931
        ;;
4502
5932
      vxworks*)
4503
5933
        ;;
4504
5934
      *)
4505
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5935
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4506
5936
        ;;
4507
5937
    esac
4508
5938
  fi
4509
5939
],
4510
5940
[
4511
5941
  if test "$GCC" = yes; then
4512
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4513
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5942
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5943
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4514
5944
 
4515
5945
    case $host_os in
4516
5946
      aix*)
4517
5947
      # All AIX code is PIC.
4518
5948
      if test "$host_cpu" = ia64; then
4519
5949
        # AIX 5 now supports IA64 processor
4520
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5950
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4521
5951
      fi
4522
5952
      ;;
4523
5953
 
4524
5954
    amigaos*)
4525
 
      case $host_cpu in
4526
 
      powerpc)
4527
 
            # see comment about AmigaOS4 .so support
4528
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4529
 
        ;;
4530
 
      m68k)
4531
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4532
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4533
 
            # like `-m68040'.
4534
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4535
 
        ;;
4536
 
      esac
 
5955
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5956
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5957
      # like `-m68040'.
 
5958
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4537
5959
      ;;
4538
5960
 
4539
5961
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4546
5968
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4547
5969
      # (--disable-auto-import) libraries
4548
5970
      m4_if([$1], [GCJ], [],
4549
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5971
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4550
5972
      ;;
4551
5973
 
4552
5974
    darwin* | rhapsody*)
4553
5975
      # PIC is the default on this platform
4554
5976
      # Common symbols not allowed in MH_DYLIB files
4555
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4556
 
      ;;
4557
 
 
4558
 
    hpux*)
4559
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4560
 
      # not for PA HP-UX.
4561
 
      case $host_cpu in
4562
 
      hppa*64*|ia64*)
4563
 
        # +Z the default
4564
 
        ;;
4565
 
      *)
4566
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4567
 
        ;;
4568
 
      esac
 
5977
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4569
5978
      ;;
4570
5979
 
4571
5980
    interix[[3-9]]*)
4576
5985
    msdosdjgpp*)
4577
5986
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4578
5987
      # on systems that don't support them.
4579
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5988
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4580
5989
      enable_shared=no
4581
5990
      ;;
4582
5991
 
4583
 
    *nto* | *qnx*)
4584
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4585
 
      # it will coredump.
4586
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4587
 
      ;;
4588
 
 
4589
5992
    sysv4*MP*)
4590
5993
      if test -d /usr/nec; then
4591
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5994
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4592
5995
      fi
4593
5996
      ;;
4594
5997
 
 
5998
    hpux*)
 
5999
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6000
      # not for PA HP-UX.
 
6001
      case $host_cpu in
 
6002
      hppa*64*|ia64*)
 
6003
        # +Z the default
 
6004
        ;;
 
6005
      *)
 
6006
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6007
        ;;
 
6008
      esac
 
6009
      ;;
 
6010
 
4595
6011
    *)
4596
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6012
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4597
6013
      ;;
4598
6014
    esac
4599
6015
  else
4600
6016
    # PORTME Check for flag to pass linker flags through the system compiler.
4601
6017
    case $host_os in
4602
6018
    aix*)
4603
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6019
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4604
6020
      if test "$host_cpu" = ia64; then
4605
6021
        # AIX 5 now supports IA64 processor
4606
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6022
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4607
6023
      else
4608
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6024
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4609
6025
      fi
4610
6026
      ;;
 
6027
      darwin*)
 
6028
        # PIC is the default on this platform
 
6029
        # Common symbols not allowed in MH_DYLIB files
 
6030
       case $cc_basename in
 
6031
         xlc*)
 
6032
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6033
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6034
         ;;
 
6035
       esac
 
6036
       ;;
4611
6037
 
4612
6038
    mingw* | cygwin* | pw32* | os2*)
4613
6039
      # This hack is so that the source file can tell whether it is being
4614
6040
      # built for inclusion in a dll (and should export symbols for example).
4615
6041
      m4_if([$1], [GCJ], [],
4616
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6042
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4617
6043
      ;;
4618
6044
 
4619
6045
    hpux9* | hpux10* | hpux11*)
4620
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6046
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4621
6047
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4622
6048
      # not for PA HP-UX.
4623
6049
      case $host_cpu in
4625
6051
        # +Z the default
4626
6052
        ;;
4627
6053
      *)
4628
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6054
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4629
6055
        ;;
4630
6056
      esac
4631
6057
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4632
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6058
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4633
6059
      ;;
4634
6060
 
4635
6061
    irix5* | irix6* | nonstopux*)
4636
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6062
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4637
6063
      # PIC (with -KPIC) is the default.
4638
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6064
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6065
      ;;
 
6066
 
 
6067
    newsos6)
 
6068
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6069
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4639
6070
      ;;
4640
6071
 
4641
6072
    linux* | k*bsd*-gnu)
4642
6073
      case $cc_basename in
4643
 
      icc* | ecc* | ifort*)
4644
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4645
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4646
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6074
      icc* | ecc*)
 
6075
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6076
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6077
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4647
6078
        ;;
4648
6079
      pgcc* | pgf77* | pgf90* | pgf95*)
4649
6080
        # Portland Group compilers (*not* the Pentium gcc compiler,
4650
6081
        # which looks to be a dead project)
4651
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4653
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6082
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6083
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6084
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4654
6085
        ;;
4655
6086
      ccc*)
4656
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6087
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4657
6088
        # All Alpha code is PIC.
4658
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6089
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4659
6090
        ;;
4660
 
      xl*)
4661
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
4662
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4663
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4664
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4665
 
        ;;
4666
6091
      *)
4667
 
        case `$CC -V 2>&1 | sed 5q` in
 
6092
        case `$CC -V 2>&1 | sed 5q` in
4668
6093
        *Sun\ C*)
4669
6094
          # Sun C 5.9
4670
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4671
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4672
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6095
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6096
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6097
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4673
6098
          ;;
4674
6099
        *Sun\ F*)
4675
6100
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4676
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4677
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4678
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6101
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6102
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6103
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4679
6104
          ;;
4680
6105
        esac
4681
6106
        ;;
4682
6107
      esac
4683
6108
      ;;
4684
6109
 
4685
 
    newsos6)
4686
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4687
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4688
 
      ;;
4689
 
 
4690
 
    *nto* | *qnx*)
4691
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4692
 
      # it will coredump.
4693
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4694
 
      ;;
4695
 
 
4696
6110
    osf3* | osf4* | osf5*)
4697
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6111
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4698
6112
      # All OSF/1 code is PIC.
4699
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6113
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4700
6114
      ;;
4701
6115
 
4702
6116
    rdos*)
4703
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6117
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4704
6118
      ;;
4705
6119
 
4706
6120
    solaris*)
4707
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4708
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6121
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6122
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4709
6123
      case $cc_basename in
4710
6124
      f77* | f90* | f95*)
4711
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6125
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4712
6126
      *)
4713
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6127
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4714
6128
      esac
4715
6129
      ;;
4716
6130
 
4717
6131
    sunos4*)
4718
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4719
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4720
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6132
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6133
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6134
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721
6135
      ;;
4722
6136
 
4723
6137
    sysv4 | sysv4.2uw2* | sysv4.3*)
4724
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4726
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6138
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6139
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6140
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4727
6141
      ;;
4728
6142
 
4729
6143
    sysv4*MP*)
4730
6144
      if test -d /usr/nec ;then
4731
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4732
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6145
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6146
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4733
6147
      fi
4734
6148
      ;;
4735
6149
 
4736
6150
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4737
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4738
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4739
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6151
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6152
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6153
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4740
6154
      ;;
4741
6155
 
4742
6156
    unicos*)
4743
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6157
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6158
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4745
6159
      ;;
4746
6160
 
4747
6161
    uts4*)
4748
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4749
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6162
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6163
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4750
6164
      ;;
4751
6165
 
4752
6166
    *)
4753
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6167
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4754
6168
      ;;
4755
6169
    esac
4756
6170
  fi
4757
6171
])
4758
 
case $host_os in
4759
 
  # For platforms which do not support PIC, -DPIC is meaningless:
4760
 
  *djgpp*)
4761
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4762
 
    ;;
4763
 
  *)
4764
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4765
 
    ;;
4766
 
esac
4767
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4768
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4769
 
        [How to pass a linker flag through the compiler])
 
6172
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4770
6173
 
4771
6174
#
4772
6175
# Check to make sure the PIC flag actually works.
4773
6176
#
4774
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4775
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4776
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4777
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4778
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 
6177
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6178
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6179
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
 
6180
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
6181
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4779
6182
     "" | " "*) ;;
4780
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6183
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4781
6184
     esac],
4782
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4783
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6185
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6186
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4784
6187
fi
4785
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4786
 
        [Additional compiler flags for building library objects])
 
6188
case $host_os in
 
6189
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6190
  *djgpp*)
 
6191
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6192
    ;;
 
6193
  *)
 
6194
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
6195
    ;;
 
6196
esac
4787
6197
 
4788
6198
#
4789
6199
# Check to make sure the static flag actually works.
4790
6200
#
4791
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4792
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4793
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
6201
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6202
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6203
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4794
6204
  $lt_tmp_static_flag,
4795
6205
  [],
4796
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4797
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4798
 
        [Compiler flag to prevent dynamic linking])
4799
 
])# _LT_COMPILER_PIC
4800
 
 
4801
 
 
4802
 
# _LT_LINKER_SHLIBS([TAGNAME])
4803
 
# ----------------------------
 
6206
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
6207
])
 
6208
 
 
6209
 
 
6210
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
6211
# ------------------------------------
4804
6212
# See if the linker supports building shared libraries.
4805
 
m4_defun([_LT_LINKER_SHLIBS],
4806
 
[AC_REQUIRE([LT_PATH_LD])dnl
4807
 
AC_REQUIRE([LT_PATH_NM])dnl
4808
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4809
 
m4_require([_LT_DECL_EGREP])dnl
4810
 
m4_require([_LT_DECL_SED])dnl
4811
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4812
 
m4_require([_LT_TAG_COMPILER])dnl
 
6213
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
6214
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4813
6215
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4814
 
m4_if([$1], [CXX], [
4815
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6216
ifelse([$1],[CXX],[
 
6217
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4816
6218
  case $host_os in
4817
6219
  aix[[4-9]]*)
4818
6220
    # If we're using GNU nm, then we don't want the "-C" option.
4819
6221
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4820
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4821
 
      _LT_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'
 
6222
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6223
      _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'
4822
6224
    else
4823
 
      _LT_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'
 
6225
      _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'
4824
6226
    fi
4825
6227
    ;;
4826
6228
  pw32*)
4827
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6229
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4828
6230
  ;;
4829
6231
  cygwin* | mingw*)
4830
 
    _LT_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'
4831
 
  ;;
4832
 
  linux* | k*bsd*-gnu)
4833
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
6232
    _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'
4834
6233
  ;;
4835
6234
  *)
4836
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6235
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4837
6236
  ;;
4838
6237
  esac
4839
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4840
 
], [
 
6238
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6239
],[
4841
6240
  runpath_var=
4842
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
4843
 
  _LT_TAGVAR(always_export_symbols, $1)=no
4844
 
  _LT_TAGVAR(archive_cmds, $1)=
4845
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4846
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
4847
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4848
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4849
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4850
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
4851
 
  _LT_TAGVAR(hardcode_direct, $1)=no
4852
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4853
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4854
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4855
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4856
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4857
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4858
 
  _LT_TAGVAR(inherit_rpath, $1)=no
4859
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4860
 
  _LT_TAGVAR(module_cmds, $1)=
4861
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
4862
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4863
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4864
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4865
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6241
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6242
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6243
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
6244
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
6245
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
6246
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6247
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6248
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6249
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
6250
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6251
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6252
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6253
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6254
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6255
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6256
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
6257
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
6258
  _LT_AC_TAGVAR(module_cmds, $1)=
 
6259
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
6260
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6261
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4866
6262
  # include_expsyms should be a list of space-separated symbols to be *always*
4867
6263
  # included in the symbol list
4868
 
  _LT_TAGVAR(include_expsyms, $1)=
 
6264
  _LT_AC_TAGVAR(include_expsyms, $1)=
4869
6265
  # exclude_expsyms can be an extended regexp of symbols to exclude
4870
6266
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4871
6267
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4872
6268
  # as well as any symbol that contains `d'.
4873
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6269
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4874
6270
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4875
6271
  # platforms (ab)use it in PIC code, but their linkers get confused if
4876
6272
  # the symbol is explicitly referenced.  Since portable code cannot
4879
6275
  # Exclude shared library initialization/finalization symbols.
4880
6276
dnl Note also adjust exclude_expsyms for C++ above.
4881
6277
  extract_expsyms_cmds=
4882
 
 
 
6278
  # Just being paranoid about ensuring that cc_basename is set.
 
6279
  _LT_CC_BASENAME([$compiler])
4883
6280
  case $host_os in
4884
6281
  cygwin* | mingw* | pw32*)
4885
6282
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4898
6295
    ;;
4899
6296
  esac
4900
6297
 
4901
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
6298
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4902
6299
  if test "$with_gnu_ld" = yes; then
4903
6300
    # If archive_cmds runs LD, not CC, wlarc should be empty
4904
6301
    wlarc='${wl}'
4907
6304
    # are reset later if shared libraries are not supported. Putting them
4908
6305
    # here allows them to be overridden if necessary.
4909
6306
    runpath_var=LD_RUN_PATH
4910
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4911
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6307
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6308
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4912
6309
    # ancient GNU ld didn't support --whole-archive et. al.
4913
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4914
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4915
 
    else
4916
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6310
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6311
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6312
      else
 
6313
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4917
6314
    fi
4918
6315
    supports_anon_versioning=no
4919
 
    case `$LD -v 2>&1` in
 
6316
    case `$LD -v 2>/dev/null` in
4920
6317
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4921
6318
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4922
6319
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4929
6326
    aix[[3-9]]*)
4930
6327
      # On AIX/PPC, the GNU linker is very broken
4931
6328
      if test "$host_cpu" != ia64; then
4932
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4933
 
        cat <<_LT_EOF 1>&2
 
6329
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6330
        cat <<EOF 1>&2
4934
6331
 
4935
6332
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4936
6333
*** to be unable to reliably create shared libraries on AIX.
4938
6335
*** really care for shared libraries, you may want to modify your PATH
4939
6336
*** so that a non-GNU linker is found, and then restart.
4940
6337
 
4941
 
_LT_EOF
 
6338
EOF
4942
6339
      fi
4943
6340
      ;;
4944
6341
 
4945
6342
    amigaos*)
4946
 
      case $host_cpu in
4947
 
      powerpc)
4948
 
            # see comment about AmigaOS4 .so support
4949
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4950
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4951
 
        ;;
4952
 
      m68k)
4953
 
            _LT_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)'
4954
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4955
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4956
 
        ;;
4957
 
      esac
 
6343
      _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)'
 
6344
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6345
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6346
 
 
6347
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6348
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6349
      # to version 4, is to share data among multiple programs linked
 
6350
      # with the same dynamic library.  Since this doesn't match the
 
6351
      # behavior of shared libraries on other platforms, we can't use
 
6352
      # them.
 
6353
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4958
6354
      ;;
4959
6355
 
4960
6356
    beos*)
4961
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4962
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6357
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6358
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4963
6359
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4964
6360
        # support --undefined.  This deserves some investigation.  FIXME
4965
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6361
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4966
6362
      else
4967
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6363
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4968
6364
      fi
4969
6365
      ;;
4970
6366
 
4971
6367
    cygwin* | mingw* | pw32*)
4972
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6368
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4973
6369
      # as there is no search path for DLLs.
4974
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4975
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4976
 
      _LT_TAGVAR(always_export_symbols, $1)=no
4977
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4978
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
6370
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6371
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6372
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6373
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6374
      _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'
4979
6375
 
4980
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4981
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6376
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6377
        _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'
4982
6378
        # If the export-symbols file already is a .def file (1st line
4983
6379
        # is EXPORTS), use it as is; otherwise, prepend...
4984
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6380
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4985
6381
          cp $export_symbols $output_objdir/$soname.def;
4986
6382
        else
4987
6383
          echo EXPORTS > $output_objdir/$soname.def;
4989
6385
        fi~
4990
6386
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4991
6387
      else
4992
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6388
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4993
6389
      fi
4994
6390
      ;;
4995
6391
 
4996
6392
    interix[[3-9]]*)
4997
 
      _LT_TAGVAR(hardcode_direct, $1)=no
4998
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4999
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5000
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6393
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6394
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6395
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6396
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5001
6397
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5002
6398
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5003
6399
      # default) and relocated if they conflict, which is a slow very memory
5004
6400
      # consuming and fragmenting process.  To avoid this, we pick a random,
5005
6401
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5006
6402
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5007
 
      _LT_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'
5008
 
      _LT_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'
 
6403
      _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'
 
6404
      _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'
5009
6405
      ;;
5010
6406
 
5011
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
5012
 
      tmp_diet=no
5013
 
      if test "$host_os" = linux-dietlibc; then
5014
 
        case $cc_basename in
5015
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
5016
 
        esac
5017
 
      fi
5018
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5019
 
         && test "$tmp_diet" = no
5020
 
      then
 
6407
    gnu* | linux* | k*bsd*-gnu)
 
6408
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5021
6409
        tmp_addflag=
5022
 
        tmp_sharedflag='-shared'
5023
6410
        case $cc_basename,$host_cpu in
5024
 
        pgcc*)                          # Portland Group C compiler
5025
 
          _LT_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'
 
6411
        pgcc*)                          # Portland Group C compiler
 
6412
          _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'
5026
6413
          tmp_addflag=' $pic_flag'
5027
6414
          ;;
5028
6415
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5029
 
          _LT_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'
 
6416
          _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'
5030
6417
          tmp_addflag=' $pic_flag -Mnomain' ;;
5031
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
6418
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5032
6419
          tmp_addflag=' -i_dynamic' ;;
5033
6420
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5034
6421
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5035
6422
        ifc* | ifort*)                  # Intel Fortran compiler
5036
6423
          tmp_addflag=' -nofor_main' ;;
5037
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5038
 
          tmp_sharedflag='-qmkshrobj'
5039
 
          tmp_addflag= ;;
5040
6424
        esac
5041
6425
        case `$CC -V 2>&1 | sed 5q` in
5042
6426
        *Sun\ C*)                       # Sun C 5.9
5043
 
          _LT_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'
5044
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6427
          _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'
5045
6428
          tmp_sharedflag='-G' ;;
5046
6429
        *Sun\ F*)                       # Sun Fortran 8.3
5047
6430
          tmp_sharedflag='-G' ;;
5048
 
        esac
5049
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5050
 
 
5051
 
        if test "x$supports_anon_versioning" = xyes; then
5052
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5053
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5054
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
5055
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5056
 
        fi
5057
 
 
5058
 
        case $cc_basename in
5059
 
        xlf*)
5060
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5061
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5062
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5063
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5064
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5065
 
          if test "x$supports_anon_versioning" = xyes; then
5066
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5067
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5068
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
5069
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5070
 
          fi
5071
 
          ;;
5072
 
        esac
 
6431
        *)
 
6432
          tmp_sharedflag='-shared' ;;
 
6433
        esac
 
6434
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6435
 
 
6436
        if test $supports_anon_versioning = yes; then
 
6437
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6438
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6439
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6440
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6441
        fi
5073
6442
      else
5074
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6443
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5075
6444
      fi
5076
6445
      ;;
5077
6446
 
5078
 
    netbsd* | netbsdelf*-gnu)
5079
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5080
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6447
    netbsd*)
 
6448
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6449
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5081
6450
        wlarc=
5082
6451
      else
5083
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5084
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6452
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6453
        _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'
5085
6454
      fi
5086
6455
      ;;
5087
6456
 
5088
6457
    solaris*)
5089
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5090
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5091
 
        cat <<_LT_EOF 1>&2
 
6458
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6459
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6460
        cat <<EOF 1>&2
5092
6461
 
5093
6462
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5094
6463
*** create shared libraries on Solaris systems.  Therefore, libtool
5097
6466
*** your PATH or compiler configuration so that the native linker is
5098
6467
*** used, and then restart.
5099
6468
 
5100
 
_LT_EOF
5101
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5102
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5103
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6469
EOF
 
6470
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6471
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6472
        _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'
5104
6473
      else
5105
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6474
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5106
6475
      fi
5107
6476
      ;;
5108
6477
 
5109
6478
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5110
6479
      case `$LD -v 2>&1` in
5111
6480
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5112
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6481
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5113
6482
        cat <<_LT_EOF 1>&2
5114
6483
 
5115
6484
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5122
6491
_LT_EOF
5123
6492
        ;;
5124
6493
        *)
5125
 
          # For security reasons, it is highly recommended that you always
5126
 
          # use absolute paths for naming shared libraries, and exclude the
5127
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
5128
 
          # requires that you compile everything twice, which is a pain.
5129
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5130
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5131
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5132
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6494
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6495
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6496
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6497
            _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'
5133
6498
          else
5134
 
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6499
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5135
6500
          fi
5136
6501
        ;;
5137
6502
      esac
5138
6503
      ;;
5139
6504
 
5140
6505
    sunos4*)
5141
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6506
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5142
6507
      wlarc=
5143
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5144
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6508
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6509
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5145
6510
      ;;
5146
6511
 
5147
6512
    *)
5148
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5149
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5150
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6513
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6514
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6515
        _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'
5151
6516
      else
5152
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6517
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5153
6518
      fi
5154
6519
      ;;
5155
6520
    esac
5156
6521
 
5157
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
6522
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5158
6523
      runpath_var=
5159
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5160
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5161
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6524
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6525
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6526
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5162
6527
    fi
5163
6528
  else
5164
6529
    # PORTME fill in a description of your system's linker (not GNU ld)
5165
6530
    case $host_os in
5166
6531
    aix3*)
5167
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5168
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5169
 
      _LT_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'
 
6532
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6533
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6534
      _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'
5170
6535
      # Note: this linker hardcodes the directories in LIBPATH if there
5171
6536
      # are no directories specified by -L.
5172
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6537
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5173
6538
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5174
6539
        # Neither direct hardcoding nor static linking is supported with a
5175
6540
        # broken collect2.
5176
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6541
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5177
6542
      fi
5178
6543
      ;;
5179
6544
 
5187
6552
      else
5188
6553
        # If we're using GNU nm, then we don't want the "-C" option.
5189
6554
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5190
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5191
 
          _LT_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'
 
6555
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6556
          _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'
5192
6557
        else
5193
 
          _LT_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'
 
6558
          _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'
5194
6559
        fi
5195
6560
        aix_use_runtimelinking=no
5196
6561
 
5199
6564
        # need to do runtime linking.
5200
6565
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5201
6566
          for ld_flag in $LDFLAGS; do
5202
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5203
 
            aix_use_runtimelinking=yes
5204
 
            break
5205
 
          fi
 
6567
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6568
            aix_use_runtimelinking=yes
 
6569
            break
 
6570
          fi
5206
6571
          done
5207
6572
          ;;
5208
6573
        esac
5217
6582
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5218
6583
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5219
6584
 
5220
 
      _LT_TAGVAR(archive_cmds, $1)=''
5221
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5222
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5223
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5224
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5225
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6585
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6586
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6587
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6588
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5226
6589
 
5227
6590
      if test "$GCC" = yes; then
5228
6591
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5229
6592
        # We only want to do this on AIX 4.2 and lower, the check
5230
6593
        # below for broken collect2 doesn't work under 4.3+
5231
6594
          collect2name=`${CC} -print-prog-name=collect2`
5232
 
          if test -f "$collect2name" &&
5233
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6595
          if test -f "$collect2name" && \
 
6596
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5234
6597
          then
5235
 
          # We have reworked collect2
5236
 
          :
 
6598
          # We have reworked collect2
 
6599
          :
5237
6600
          else
5238
 
          # We have old collect2
5239
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
5240
 
          # It fails to find uninstalled libraries when the uninstalled
5241
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5242
 
          # to unsupported forces relinking
5243
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5244
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5245
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6601
          # We have old collect2
 
6602
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6603
          # It fails to find uninstalled libraries when the uninstalled
 
6604
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6605
          # to unsupported forces relinking
 
6606
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6607
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6608
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5246
6609
          fi
5247
6610
          ;;
5248
6611
        esac
5250
6613
        if test "$aix_use_runtimelinking" = yes; then
5251
6614
          shared_flag="$shared_flag "'${wl}-G'
5252
6615
        fi
5253
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
5254
6616
      else
5255
6617
        # not using gcc
5256
6618
        if test "$host_cpu" = ia64; then
5257
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5258
 
        # chokes on -Wl,-G. The following line is correct:
 
6619
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6620
        # chokes on -Wl,-G. The following line is correct:
5259
6621
          shared_flag='-G'
5260
6622
        else
5261
6623
          if test "$aix_use_runtimelinking" = yes; then
5268
6630
 
5269
6631
      # It seems that -bexpall does not export symbols beginning with
5270
6632
      # underscore (_), so it is better to generate a list of symbols to export.
5271
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6633
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5272
6634
      if test "$aix_use_runtimelinking" = yes; then
5273
6635
        # Warning - without using the other runtime loading flags (-brtl),
5274
6636
        # -berok will link without error, but may produce a broken library.
5275
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5276
 
        # Determine the default libpath from the value encoded in an
5277
 
        # empty executable.
5278
 
        _LT_SYS_MODULE_PATH_AIX
5279
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5280
 
        _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5281
 
      else
 
6637
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6638
       # Determine the default libpath from the value encoded in an empty executable.
 
6639
       _LT_AC_SYS_LIBPATH_AIX
 
6640
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6641
        _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"
 
6642
       else
5282
6643
        if test "$host_cpu" = ia64; then
5283
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5284
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5285
 
          _LT_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"
 
6644
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6645
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6646
          _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"
5286
6647
        else
5287
 
         # Determine the default libpath from the value encoded in an
5288
 
         # empty executable.
5289
 
         _LT_SYS_MODULE_PATH_AIX
5290
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6648
         # Determine the default libpath from the value encoded in an empty executable.
 
6649
         _LT_AC_SYS_LIBPATH_AIX
 
6650
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5291
6651
          # Warning - without using the other run time loading flags,
5292
6652
          # -berok will link without error, but may produce a broken library.
5293
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5294
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6653
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6654
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5295
6655
          # Exported symbols can be pulled into shared objects from archives
5296
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5297
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6656
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6657
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5298
6658
          # This is similar to how AIX traditionally builds its shared libraries.
5299
 
          _LT_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'
 
6659
          _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'
5300
6660
        fi
5301
6661
      fi
5302
6662
      ;;
5303
6663
 
5304
6664
    amigaos*)
5305
 
      case $host_cpu in
5306
 
      powerpc)
5307
 
            # see comment about AmigaOS4 .so support
5308
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5309
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5310
 
        ;;
5311
 
      m68k)
5312
 
            _LT_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)'
5313
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5314
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5315
 
        ;;
5316
 
      esac
 
6665
      _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)'
 
6666
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6667
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6668
      # see comment about different semantics on the GNU ld section
 
6669
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5317
6670
      ;;
5318
6671
 
5319
6672
    bsdi[[45]]*)
5320
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6673
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5321
6674
      ;;
5322
6675
 
5323
6676
    cygwin* | mingw* | pw32*)
5325
6678
      # Microsoft Visual C++.
5326
6679
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5327
6680
      # no search path for DLLs.
5328
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5329
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6681
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6682
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5330
6683
      # Tell ltmain to make .lib files, not .a files.
5331
6684
      libext=lib
5332
6685
      # Tell ltmain to make .dll files, not .so files.
5333
6686
      shrext_cmds=".dll"
5334
6687
      # FIXME: Setting linknames here is a bad hack.
5335
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6688
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5336
6689
      # The linker will automatically build a .lib file if we build a DLL.
5337
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6690
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5338
6691
      # FIXME: Should let the user specify the lib program.
5339
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5340
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5341
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6692
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6693
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6694
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
6695
      ;;
5343
6696
 
5344
6697
    darwin* | rhapsody*)
5345
 
      _LT_DARWIN_LINKER_FEATURES($1)
 
6698
      case $host_os in
 
6699
        rhapsody* | darwin1.[[012]])
 
6700
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6701
         ;;
 
6702
       *) # Darwin 1.3 on
 
6703
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6704
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6705
         else
 
6706
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6707
             10.[[012]])
 
6708
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6709
               ;;
 
6710
             10.*)
 
6711
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6712
               ;;
 
6713
           esac
 
6714
         fi
 
6715
         ;;
 
6716
      esac
 
6717
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6718
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6719
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6720
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6721
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6722
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6723
    if test "$GCC" = yes ; then
 
6724
        output_verbose_link_cmd='echo'
 
6725
        _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}"
 
6726
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6727
        _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}"
 
6728
        _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}"
 
6729
    else
 
6730
      case $cc_basename in
 
6731
        xlc*)
 
6732
         output_verbose_link_cmd='echo'
 
6733
         _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'
 
6734
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6735
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6736
         _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}'
 
6737
          _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}'
 
6738
          ;;
 
6739
       *)
 
6740
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6741
          ;;
 
6742
      esac
 
6743
    fi
5346
6744
      ;;
5347
6745
 
5348
6746
    dgux*)
5349
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5350
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5351
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6747
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6748
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6749
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5352
6750
      ;;
5353
6751
 
5354
6752
    freebsd1*)
5355
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6753
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5356
6754
      ;;
5357
6755
 
5358
6756
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5360
6758
    # does not break anything, and helps significantly (at the cost of a little
5361
6759
    # extra space).
5362
6760
    freebsd2.2*)
5363
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5364
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5365
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5366
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6761
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6762
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6763
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6764
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5367
6765
      ;;
5368
6766
 
5369
6767
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5370
6768
    freebsd2*)
5371
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5372
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5373
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5374
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6769
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6770
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6771
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6772
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5375
6773
      ;;
5376
6774
 
5377
6775
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5378
6776
    freebsd* | dragonfly*)
5379
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5380
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5381
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5382
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6777
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
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
5383
6781
      ;;
5384
6782
 
5385
6783
    hpux9*)
5386
6784
      if test "$GCC" = yes; then
5387
 
        _LT_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'
 
6785
        _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'
5388
6786
      else
5389
 
        _LT_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'
 
6787
        _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'
5390
6788
      fi
5391
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5392
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5393
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6789
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6790
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6791
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5394
6792
 
5395
6793
      # hardcode_minus_L: Not really in the search PATH,
5396
6794
      # but as the default location of the library.
5397
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5398
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6795
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6796
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5399
6797
      ;;
5400
6798
 
5401
6799
    hpux10*)
5402
6800
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5403
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6801
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5404
6802
      else
5405
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6803
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5406
6804
      fi
5407
6805
      if test "$with_gnu_ld" = no; then
5408
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5409
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5410
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5411
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5412
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5413
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6806
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6807
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6808
 
 
6809
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6810
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6811
 
5414
6812
        # hardcode_minus_L: Not really in the search PATH,
5415
6813
        # but as the default location of the library.
5416
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6814
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5417
6815
      fi
5418
6816
      ;;
5419
6817
 
5421
6819
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5422
6820
        case $host_cpu in
5423
6821
        hppa*64*)
5424
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6822
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5425
6823
          ;;
5426
6824
        ia64*)
5427
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6825
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5428
6826
          ;;
5429
6827
        *)
5430
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6828
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5431
6829
          ;;
5432
6830
        esac
5433
6831
      else
5434
6832
        case $host_cpu in
5435
6833
        hppa*64*)
5436
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6834
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5437
6835
          ;;
5438
6836
        ia64*)
5439
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6837
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5440
6838
          ;;
5441
6839
        *)
5442
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6840
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5443
6841
          ;;
5444
6842
        esac
5445
6843
      fi
5446
6844
      if test "$with_gnu_ld" = no; then
5447
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5448
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6845
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6846
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5449
6847
 
5450
6848
        case $host_cpu in
5451
6849
        hppa*64*|ia64*)
5452
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5453
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6850
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6851
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6852
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5454
6853
          ;;
5455
6854
        *)
5456
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
5457
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5458
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6855
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6856
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5459
6857
 
5460
6858
          # hardcode_minus_L: Not really in the search PATH,
5461
6859
          # but as the default location of the library.
5462
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6860
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5463
6861
          ;;
5464
6862
        esac
5465
6863
      fi
5467
6865
 
5468
6866
    irix5* | irix6* | nonstopux*)
5469
6867
      if test "$GCC" = yes; then
5470
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5471
 
        # Try to use the -exported_symbol ld option, if it does not
5472
 
        # work, assume that -exports_file does not work either and
5473
 
        # implicitly export all symbols.
5474
 
        save_LDFLAGS="$LDFLAGS"
5475
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5476
 
        AC_LINK_IFELSE(int foo(void) {},
5477
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5478
 
        )
5479
 
        LDFLAGS="$save_LDFLAGS"
 
6868
        _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'
5480
6869
      else
5481
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5482
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
6870
        _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'
 
6871
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5483
6872
      fi
5484
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5485
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5486
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5487
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
5488
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6873
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6874
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6875
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5489
6876
      ;;
5490
6877
 
5491
 
    netbsd* | netbsdelf*-gnu)
5492
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5493
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6878
    netbsd*)
 
6879
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6880
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5494
6881
      else
5495
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6882
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5496
6883
      fi
5497
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5498
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5499
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6884
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6885
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6886
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5500
6887
      ;;
5501
6888
 
5502
6889
    newsos6)
5503
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5504
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5505
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5506
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5507
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5508
 
      ;;
5509
 
 
5510
 
    *nto* | *qnx*)
 
6890
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6891
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6892
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6893
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6894
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5511
6895
      ;;
5512
6896
 
5513
6897
    openbsd*)
5514
6898
      if test -f /usr/libexec/ld.so; then
5515
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5516
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5517
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5518
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5520
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5521
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5522
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6899
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6900
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6901
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6902
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6903
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6904
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6905
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5523
6906
        else
5524
6907
          case $host_os in
5525
6908
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5526
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5527
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6909
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6910
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5528
6911
             ;;
5529
6912
           *)
5530
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5531
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6913
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6914
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5532
6915
             ;;
5533
6916
          esac
5534
 
        fi
 
6917
        fi
5535
6918
      else
5536
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6919
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5537
6920
      fi
5538
6921
      ;;
5539
6922
 
5540
6923
    os2*)
5541
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5542
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5543
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5544
 
      _LT_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'
5545
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6924
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6925
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6926
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6927
      _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'
 
6928
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5546
6929
      ;;
5547
6930
 
5548
6931
    osf3*)
5549
6932
      if test "$GCC" = yes; then
5550
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5551
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6933
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6934
        _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'
5552
6935
      else
5553
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5554
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6936
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6937
        _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'
5555
6938
      fi
5556
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5557
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5558
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6939
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6940
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5559
6941
      ;;
5560
6942
 
5561
6943
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5562
6944
      if test "$GCC" = yes; then
5563
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5564
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5565
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6945
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6946
        _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'
 
6947
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5566
6948
      else
5567
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5568
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5569
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5570
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6949
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6950
        _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'
 
6951
        _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~
 
6952
        $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'
5571
6953
 
5572
6954
        # Both c and cxx compiler support -rpath directly
5573
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6955
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5574
6956
      fi
5575
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5576
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6957
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5577
6958
      ;;
5578
6959
 
5579
6960
    solaris*)
5580
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
6961
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5581
6962
      if test "$GCC" = yes; then
5582
6963
        wlarc='${wl}'
5583
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5584
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5585
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6964
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6965
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6966
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5586
6967
      else
5587
 
        case `$CC -V 2>&1` in
5588
 
        *"Compilers 5.0"*)
5589
 
          wlarc=''
5590
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5591
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5592
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5593
 
          ;;
5594
 
        *)
5595
 
          wlarc='${wl}'
5596
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5597
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5598
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5599
 
          ;;
5600
 
        esac
 
6968
        wlarc=''
 
6969
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6970
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6971
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5601
6972
      fi
5602
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5603
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6973
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6974
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5604
6975
      case $host_os in
5605
6976
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5606
6977
      *)
5607
6978
        # The compiler driver will combine and reorder linker options,
5608
6979
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
5609
6980
        # but is careful enough not to reorder.
5610
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6981
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5611
6982
        if test "$GCC" = yes; then
5612
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6983
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5613
6984
        else
5614
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6985
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5615
6986
        fi
5616
6987
        ;;
5617
6988
      esac
5618
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6989
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5619
6990
      ;;
5620
6991
 
5621
6992
    sunos4*)
5622
6993
      if test "x$host_vendor" = xsequent; then
5623
6994
        # Use $CC to link under sequent, because it throws in some extra .o
5624
6995
        # files that make .init and .fini sections work.
5625
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6996
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5626
6997
      else
5627
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6998
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5628
6999
      fi
5629
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5630
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5631
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5632
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7000
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7001
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7002
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7003
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5633
7004
      ;;
5634
7005
 
5635
7006
    sysv4)
5636
7007
      case $host_vendor in
5637
7008
        sni)
5638
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5639
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
7009
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7010
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5640
7011
        ;;
5641
7012
        siemens)
5642
7013
          ## LD is ld it makes a PLAMLIB
5643
7014
          ## CC just makes a GrossModule.
5644
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5645
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5646
 
          _LT_TAGVAR(hardcode_direct, $1)=no
 
7015
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7016
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
7017
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5647
7018
        ;;
5648
7019
        motorola)
5649
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5650
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
7020
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7021
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5651
7022
        ;;
5652
7023
      esac
5653
7024
      runpath_var='LD_RUN_PATH'
5654
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7025
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5655
7026
      ;;
5656
7027
 
5657
7028
    sysv4.3*)
5658
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5659
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5660
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
7029
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7030
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7031
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5661
7032
      ;;
5662
7033
 
5663
7034
    sysv4*MP*)
5664
7035
      if test -d /usr/nec; then
5665
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5666
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7036
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7037
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5667
7038
        runpath_var=LD_RUN_PATH
5668
7039
        hardcode_runpath_var=yes
5669
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7040
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5670
7041
      fi
5671
7042
      ;;
5672
7043
 
5673
7044
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5674
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5675
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5676
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7045
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7046
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7047
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5677
7048
      runpath_var='LD_RUN_PATH'
5678
7049
 
5679
7050
      if test "$GCC" = yes; then
5680
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5681
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7051
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7052
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5682
7053
      else
5683
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5684
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7054
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7055
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5685
7056
      fi
5686
7057
      ;;
5687
7058
 
5692
7063
      # ever link correctly.  If we're not using GNU ld we use -z text
5693
7064
      # though, which does catch some bad symbols but isn't as heavy-handed
5694
7065
      # as -z defs.
5695
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5696
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5697
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5698
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5699
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5700
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5701
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5702
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7066
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7067
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7068
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7069
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7070
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7071
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7072
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7073
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5703
7074
      runpath_var='LD_RUN_PATH'
5704
7075
 
5705
7076
      if test "$GCC" = yes; then
5706
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5707
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7077
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7078
        _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'
5708
7079
      else
5709
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5710
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7080
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7081
        _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'
5711
7082
      fi
5712
7083
      ;;
5713
7084
 
5714
7085
    uts4*)
5715
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5716
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5717
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7086
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7087
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7088
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5718
7089
      ;;
5719
7090
 
5720
7091
    *)
5721
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
7092
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5722
7093
      ;;
5723
7094
    esac
5724
 
 
5725
 
    if test x$host_vendor = xsni; then
5726
 
      case $host in
5727
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5728
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5729
 
        ;;
5730
 
      esac
5731
 
    fi
5732
7095
  fi
5733
7096
])
5734
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5735
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5736
 
 
5737
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5738
 
 
5739
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5740
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5741
 
_LT_DECL([], [extract_expsyms_cmds], [2],
5742
 
    [The commands to extract the exported symbol list from a shared archive])
 
7097
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
7098
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5743
7099
 
5744
7100
#
5745
7101
# Do we need to explicitly link libc?
5746
7102
#
5747
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
7103
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5748
7104
x|xyes)
5749
7105
  # Assume -lc should be added
5750
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7106
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5751
7107
 
5752
7108
  if test "$enable_shared" = yes && test "$GCC" = yes; then
5753
 
    case $_LT_TAGVAR(archive_cmds, $1) in
 
7109
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
5754
7110
    *'~'*)
5755
7111
      # FIXME: we may have to deal with multi-command sequences.
5756
7112
      ;;
5759
7115
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5760
7116
      # to ld, don't add -lc before -lgcc.
5761
7117
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5762
 
      $RM conftest*
 
7118
      $rm conftest*
5763
7119
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5764
7120
 
5765
7121
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5767
7123
        lib=conftest
5768
7124
        libobjs=conftest.$ac_objext
5769
7125
        deplibs=
5770
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5771
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
7126
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7127
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5772
7128
        compiler_flags=-v
5773
7129
        linker_flags=-v
5774
7130
        verstring=
5775
7131
        output_objdir=.
5776
7132
        libname=conftest
5777
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5778
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5779
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
7133
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
7134
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7135
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5780
7136
        then
5781
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7137
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5782
7138
        else
5783
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7139
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5784
7140
        fi
5785
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7141
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5786
7142
      else
5787
7143
        cat conftest.err 1>&5
5788
7144
      fi
5789
 
      $RM conftest*
5790
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
7145
      $rm conftest*
 
7146
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5791
7147
      ;;
5792
7148
    esac
5793
7149
  fi
5794
7150
  ;;
5795
7151
esac
5796
 
 
5797
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5798
 
    [Whether or not to add -lc for building shared libraries])
5799
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5800
 
    [enable_shared_with_static_runtimes], [0],
5801
 
    [Whether or not to disallow shared libs when runtime libs are static])
5802
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5803
 
    [Compiler flag to allow reflexive dlopens])
5804
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5805
 
    [Compiler flag to generate shared objects directly from archives])
5806
 
_LT_TAGDECL([], [compiler_needs_object], [1],
5807
 
    [Whether the compiler copes with passing no objects directly])
5808
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5809
 
    [Create an old-style archive from a shared archive])
5810
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5811
 
    [Create a temporary old-style archive to link instead of a shared archive])
5812
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5813
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5814
 
_LT_TAGDECL([], [module_cmds], [2],
5815
 
    [Commands used to build a loadable module if different from building
5816
 
    a shared archive.])
5817
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
5818
 
_LT_TAGDECL([], [with_gnu_ld], [1],
5819
 
    [Whether we are building with GNU ld or not])
5820
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
5821
 
    [Flag that allows shared libraries with undefined symbols to be built])
5822
 
_LT_TAGDECL([], [no_undefined_flag], [1],
5823
 
    [Flag that enforces no undefined symbols])
5824
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5825
 
    [Flag to hardcode $libdir into a binary during linking.
5826
 
    This must work even if $libdir does not exist])
5827
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5828
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5829
 
    during linking.  This must work even if $libdir does not exist]])
5830
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5831
 
    [Whether we need a single "-rpath" flag with a separated argument])
5832
 
_LT_TAGDECL([], [hardcode_direct], [0],
5833
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5834
 
    DIR into the resulting binary])
5835
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5836
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5837
 
    DIR into the resulting binary and the resulting library dependency is
5838
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5839
 
    library is relocated])
5840
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
5841
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5842
 
    into the resulting binary])
5843
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5844
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5845
 
    into the resulting binary])
5846
 
_LT_TAGDECL([], [hardcode_automatic], [0],
5847
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
5848
 
    into the library and all subsequent libraries and executables linked
5849
 
    against it])
5850
 
_LT_TAGDECL([], [inherit_rpath], [0],
5851
 
    [Set to yes if linker adds runtime paths of dependent libraries
5852
 
    to runtime path list])
5853
 
_LT_TAGDECL([], [link_all_deplibs], [0],
5854
 
    [Whether libtool must link a program against all its dependency libraries])
5855
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5856
 
    [Fix the shell variable $srcfile for the compiler])
5857
 
_LT_TAGDECL([], [always_export_symbols], [0],
5858
 
    [Set to "yes" if exported symbols are required])
5859
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
5860
 
    [The commands to list exported symbols])
5861
 
_LT_TAGDECL([], [exclude_expsyms], [1],
5862
 
    [Symbols that should not be listed in the preloaded symbols])
5863
 
_LT_TAGDECL([], [include_expsyms], [1],
5864
 
    [Symbols that must always be exported])
5865
 
_LT_TAGDECL([], [prelink_cmds], [2],
5866
 
    [Commands necessary for linking programs (against libraries) with templates])
5867
 
_LT_TAGDECL([], [file_list_spec], [1],
5868
 
    [Specify filename containing input files])
5869
 
dnl FIXME: Not yet implemented
5870
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5871
 
dnl    [Compiler flag to generate thread safe objects])
5872
 
])# _LT_LINKER_SHLIBS
5873
 
 
5874
 
 
5875
 
# _LT_LANG_C_CONFIG([TAG])
5876
 
# ------------------------
5877
 
# Ensure that the configuration variables for a C compiler are suitably
5878
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5879
 
# the compiler configuration to `libtool'.
5880
 
m4_defun([_LT_LANG_C_CONFIG],
5881
 
[m4_require([_LT_DECL_EGREP])dnl
5882
 
lt_save_CC="$CC"
5883
 
AC_LANG_PUSH(C)
5884
 
 
5885
 
# Source file extension for C test sources.
5886
 
ac_ext=c
5887
 
 
5888
 
# Object file extension for compiled C test sources.
5889
 
objext=o
5890
 
_LT_TAGVAR(objext, $1)=$objext
5891
 
 
5892
 
# Code to be used in simple compile tests
5893
 
lt_simple_compile_test_code="int some_variable = 0;"
5894
 
 
5895
 
# Code to be used in simple link tests
5896
 
lt_simple_link_test_code='int main(){return(0);}'
5897
 
 
5898
 
_LT_TAG_COMPILER
5899
 
# Save the default compiler, since it gets overwritten when the other
5900
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5901
 
compiler_DEFAULT=$CC
5902
 
 
5903
 
# save warnings/boilerplate of simple test code
5904
 
_LT_COMPILER_BOILERPLATE
5905
 
_LT_LINKER_BOILERPLATE
5906
 
 
5907
 
if test -n "$compiler"; then
5908
 
  _LT_COMPILER_NO_RTTI($1)
5909
 
  _LT_COMPILER_PIC($1)
5910
 
  _LT_COMPILER_C_O($1)
5911
 
  _LT_COMPILER_FILE_LOCKS($1)
5912
 
  _LT_LINKER_SHLIBS($1)
5913
 
  _LT_SYS_DYNAMIC_LINKER($1)
5914
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
5915
 
  LT_SYS_DLOPEN_SELF
5916
 
  _LT_CMD_STRIPLIB
5917
 
 
5918
 
  # Report which library types will actually be built
5919
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
5920
 
  AC_MSG_RESULT([$can_build_shared])
5921
 
 
5922
 
  AC_MSG_CHECKING([whether to build shared libraries])
5923
 
  test "$can_build_shared" = "no" && enable_shared=no
5924
 
 
5925
 
  # On AIX, shared libraries and static libraries use the same namespace, and
5926
 
  # are all built from PIC.
5927
 
  case $host_os in
5928
 
  aix3*)
5929
 
    test "$enable_shared" = yes && enable_static=no
5930
 
    if test -n "$RANLIB"; then
5931
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5932
 
      postinstall_cmds='$RANLIB $lib'
5933
 
    fi
5934
 
    ;;
5935
 
 
5936
 
  aix[[4-9]]*)
5937
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5938
 
      test "$enable_shared" = yes && enable_static=no
5939
 
    fi
5940
 
    ;;
5941
 
  esac
5942
 
  AC_MSG_RESULT([$enable_shared])
5943
 
 
5944
 
  AC_MSG_CHECKING([whether to build static libraries])
5945
 
  # Make sure either enable_shared or enable_static is yes.
5946
 
  test "$enable_shared" = yes || enable_static=yes
5947
 
  AC_MSG_RESULT([$enable_static])
5948
 
 
5949
 
  _LT_CONFIG($1)
5950
 
fi
5951
 
AC_LANG_POP
5952
 
CC="$lt_save_CC"
5953
 
])# _LT_LANG_C_CONFIG
5954
 
 
5955
 
 
5956
 
# _LT_PROG_CXX
5957
 
# ------------
5958
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5959
 
# compiler, we have our own version here.
5960
 
m4_defun([_LT_PROG_CXX],
5961
 
[
5962
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5963
 
AC_PROG_CXX
5964
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5965
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5966
 
    (test "X$CXX" != "Xg++"))) ; then
5967
 
  AC_PROG_CXXCPP
5968
 
else
5969
 
  _lt_caught_CXX_error=yes
5970
 
fi
5971
 
popdef([AC_MSG_ERROR])
5972
 
])# _LT_PROG_CXX
5973
 
 
5974
 
dnl aclocal-1.4 backwards compatibility:
5975
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5976
 
 
5977
 
 
5978
 
# _LT_LANG_CXX_CONFIG([TAG])
5979
 
# --------------------------
5980
 
# Ensure that the configuration variables for a C++ compiler are suitably
5981
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5982
 
# the compiler configuration to `libtool'.
5983
 
m4_defun([_LT_LANG_CXX_CONFIG],
5984
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5985
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5986
 
m4_require([_LT_DECL_EGREP])dnl
5987
 
 
5988
 
AC_LANG_PUSH(C++)
5989
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5990
 
_LT_TAGVAR(allow_undefined_flag, $1)=
5991
 
_LT_TAGVAR(always_export_symbols, $1)=no
5992
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
5993
 
_LT_TAGVAR(compiler_needs_object, $1)=no
5994
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5995
 
_LT_TAGVAR(hardcode_direct, $1)=no
5996
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5997
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5998
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5999
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6000
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6001
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6002
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6003
 
_LT_TAGVAR(inherit_rpath, $1)=no
6004
 
_LT_TAGVAR(module_cmds, $1)=
6005
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6006
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6007
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6008
 
_LT_TAGVAR(no_undefined_flag, $1)=
6009
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6010
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6011
 
 
6012
 
# Source file extension for C++ test sources.
6013
 
ac_ext=cpp
6014
 
 
6015
 
# Object file extension for compiled C++ test sources.
6016
 
objext=o
6017
 
_LT_TAGVAR(objext, $1)=$objext
6018
 
 
6019
 
# No sense in running all these tests if we already determined that
6020
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
6021
 
# are currently assumed to apply to all compilers on this platform,
6022
 
# and will be corrupted by setting them based on a non-working compiler.
6023
 
if test "$_lt_caught_CXX_error" != yes; then
6024
 
  # Code to be used in simple compile tests
6025
 
  lt_simple_compile_test_code="int some_variable = 0;"
6026
 
 
6027
 
  # Code to be used in simple link tests
6028
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6029
 
 
6030
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6031
 
  _LT_TAG_COMPILER
6032
 
 
6033
 
  # save warnings/boilerplate of simple test code
6034
 
  _LT_COMPILER_BOILERPLATE
6035
 
  _LT_LINKER_BOILERPLATE
6036
 
 
6037
 
  # Allow CC to be a program name with arguments.
6038
 
  lt_save_CC=$CC
6039
 
  lt_save_LD=$LD
6040
 
  lt_save_GCC=$GCC
6041
 
  GCC=$GXX
6042
 
  lt_save_with_gnu_ld=$with_gnu_ld
6043
 
  lt_save_path_LD=$lt_cv_path_LD
6044
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6045
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6046
 
  else
6047
 
    $as_unset lt_cv_prog_gnu_ld
6048
 
  fi
6049
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
6050
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
6051
 
  else
6052
 
    $as_unset lt_cv_path_LD
6053
 
  fi
6054
 
  test -z "${LDCXX+set}" || LD=$LDCXX
6055
 
  CC=${CXX-"c++"}
6056
 
  compiler=$CC
6057
 
  _LT_TAGVAR(compiler, $1)=$CC
6058
 
  _LT_CC_BASENAME([$compiler])
6059
 
 
6060
 
  if test -n "$compiler"; then
6061
 
    # We don't want -fno-exception when compiling C++ code, so set the
6062
 
    # no_builtin_flag separately
6063
 
    if test "$GXX" = yes; then
6064
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6065
 
    else
6066
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6067
 
    fi
6068
 
 
6069
 
    if test "$GXX" = yes; then
6070
 
      # Set up default GNU C++ configuration
6071
 
 
6072
 
      LT_PATH_LD
6073
 
 
6074
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6075
 
      # archiving commands below assume that GNU ld is being used.
6076
 
      if test "$with_gnu_ld" = yes; then
6077
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6078
 
        _LT_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'
6079
 
 
6080
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6081
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6082
 
 
6083
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
6084
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6085
 
        #     investigate it a little bit more. (MM)
6086
 
        wlarc='${wl}'
6087
 
 
6088
 
        # ancient GNU ld didn't support --whole-archive et. al.
6089
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6090
 
          $GREP 'no-whole-archive' > /dev/null; then
6091
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6092
 
        else
6093
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6094
 
        fi
6095
 
      else
6096
 
        with_gnu_ld=no
6097
 
        wlarc=
6098
 
 
6099
 
        # A generic and very simple default shared library creation
6100
 
        # command for GNU C++ for the case where it uses the native
6101
 
        # linker, instead of GNU ld.  If possible, this setting should
6102
 
        # overridden to take advantage of the native linker features on
6103
 
        # the platform it is being used on.
6104
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6105
 
      fi
6106
 
 
6107
 
      # Commands to make compiler produce verbose output that lists
6108
 
      # what "hidden" libraries, object files and flags are used when
6109
 
      # linking a shared library.
6110
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6111
 
 
6112
 
    else
6113
 
      GXX=no
6114
 
      with_gnu_ld=no
6115
 
      wlarc=
6116
 
    fi
6117
 
 
6118
 
    # PORTME: fill in a description of your system's C++ link characteristics
6119
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6120
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
6121
 
    case $host_os in
6122
 
      aix3*)
6123
 
        # FIXME: insert proper C++ library support
6124
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6125
 
        ;;
6126
 
      aix[[4-9]]*)
6127
 
        if test "$host_cpu" = ia64; then
6128
 
          # On IA64, the linker does run time linking by default, so we don't
6129
 
          # have to do anything special.
6130
 
          aix_use_runtimelinking=no
6131
 
          exp_sym_flag='-Bexport'
6132
 
          no_entry_flag=""
6133
 
        else
6134
 
          aix_use_runtimelinking=no
6135
 
 
6136
 
          # Test if we are trying to use run time linking or normal
6137
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6138
 
          # need to do runtime linking.
6139
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6140
 
            for ld_flag in $LDFLAGS; do
6141
 
              case $ld_flag in
6142
 
              *-brtl*)
6143
 
                aix_use_runtimelinking=yes
6144
 
                break
6145
 
                ;;
6146
 
              esac
6147
 
            done
6148
 
            ;;
6149
 
          esac
6150
 
 
6151
 
          exp_sym_flag='-bexport'
6152
 
          no_entry_flag='-bnoentry'
6153
 
        fi
6154
 
 
6155
 
        # When large executables or shared objects are built, AIX ld can
6156
 
        # have problems creating the table of contents.  If linking a library
6157
 
        # or program results in "error TOC overflow" add -mminimal-toc to
6158
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6159
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6160
 
 
6161
 
        _LT_TAGVAR(archive_cmds, $1)=''
6162
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6163
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6164
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6165
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6166
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6167
 
 
6168
 
        if test "$GXX" = yes; then
6169
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6170
 
          # We only want to do this on AIX 4.2 and lower, the check
6171
 
          # below for broken collect2 doesn't work under 4.3+
6172
 
          collect2name=`${CC} -print-prog-name=collect2`
6173
 
          if test -f "$collect2name" &&
6174
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6175
 
          then
6176
 
            # We have reworked collect2
6177
 
            :
6178
 
          else
6179
 
            # We have old collect2
6180
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
6181
 
            # It fails to find uninstalled libraries when the uninstalled
6182
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
6183
 
            # to unsupported forces relinking
6184
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6185
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6186
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
6187
 
          fi
6188
 
          esac
6189
 
          shared_flag='-shared'
6190
 
          if test "$aix_use_runtimelinking" = yes; then
6191
 
            shared_flag="$shared_flag "'${wl}-G'
6192
 
          fi
6193
 
        else
6194
 
          # not using gcc
6195
 
          if test "$host_cpu" = ia64; then
6196
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6197
 
          # chokes on -Wl,-G. The following line is correct:
6198
 
          shared_flag='-G'
6199
 
          else
6200
 
            if test "$aix_use_runtimelinking" = yes; then
6201
 
              shared_flag='${wl}-G'
6202
 
            else
6203
 
              shared_flag='${wl}-bM:SRE'
6204
 
            fi
6205
 
          fi
6206
 
        fi
6207
 
 
6208
 
        # It seems that -bexpall does not export symbols beginning with
6209
 
        # underscore (_), so it is better to generate a list of symbols to
6210
 
        # export.
6211
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6212
 
        if test "$aix_use_runtimelinking" = yes; then
6213
 
          # Warning - without using the other runtime loading flags (-brtl),
6214
 
          # -berok will link without error, but may produce a broken library.
6215
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6216
 
          # Determine the default libpath from the value encoded in an empty
6217
 
          # executable.
6218
 
          _LT_SYS_MODULE_PATH_AIX
6219
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6220
 
 
6221
 
          _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6222
 
        else
6223
 
          if test "$host_cpu" = ia64; then
6224
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6225
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6226
 
            _LT_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"
6227
 
          else
6228
 
            # Determine the default libpath from the value encoded in an
6229
 
            # empty executable.
6230
 
            _LT_SYS_MODULE_PATH_AIX
6231
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6232
 
            # Warning - without using the other run time loading flags,
6233
 
            # -berok will link without error, but may produce a broken library.
6234
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6235
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6236
 
            # Exported symbols can be pulled into shared objects from archives
6237
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6238
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6239
 
            # This is similar to how AIX traditionally builds its shared
6240
 
            # libraries.
6241
 
            _LT_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'
6242
 
          fi
6243
 
        fi
6244
 
        ;;
6245
 
 
6246
 
      beos*)
6247
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6248
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6249
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6250
 
          # support --undefined.  This deserves some investigation.  FIXME
6251
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6252
 
        else
6253
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6254
 
        fi
6255
 
        ;;
6256
 
 
6257
 
      chorus*)
6258
 
        case $cc_basename in
6259
 
          *)
6260
 
          # FIXME: insert proper C++ library support
6261
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6262
 
          ;;
6263
 
        esac
6264
 
        ;;
6265
 
 
6266
 
      cygwin* | mingw* | pw32*)
6267
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6268
 
        # as there is no search path for DLLs.
6269
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6270
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6271
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6272
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6273
 
 
6274
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6275
 
          _LT_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'
6276
 
          # If the export-symbols file already is a .def file (1st line
6277
 
          # is EXPORTS), use it as is; otherwise, prepend...
6278
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6279
 
            cp $export_symbols $output_objdir/$soname.def;
6280
 
          else
6281
 
            echo EXPORTS > $output_objdir/$soname.def;
6282
 
            cat $export_symbols >> $output_objdir/$soname.def;
6283
 
          fi~
6284
 
          $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'
6285
 
        else
6286
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6287
 
        fi
6288
 
        ;;
6289
 
      darwin* | rhapsody*)
6290
 
        _LT_DARWIN_LINKER_FEATURES($1)
6291
 
        ;;
6292
 
 
6293
 
      dgux*)
6294
 
        case $cc_basename in
6295
 
          ec++*)
6296
 
            # FIXME: insert proper C++ library support
6297
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6298
 
            ;;
6299
 
          ghcx*)
6300
 
            # Green Hills C++ Compiler
6301
 
            # FIXME: insert proper C++ library support
6302
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6303
 
            ;;
6304
 
          *)
6305
 
            # FIXME: insert proper C++ library support
6306
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6307
 
            ;;
6308
 
        esac
6309
 
        ;;
6310
 
 
6311
 
      freebsd[[12]]*)
6312
 
        # C++ shared libraries reported to be fairly broken before
6313
 
        # switch to ELF
6314
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6315
 
        ;;
6316
 
 
6317
 
      freebsd-elf*)
6318
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6319
 
        ;;
6320
 
 
6321
 
      freebsd* | dragonfly*)
6322
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6323
 
        # conventions
6324
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6325
 
        ;;
6326
 
 
6327
 
      gnu*)
6328
 
        ;;
6329
 
 
6330
 
      hpux9*)
6331
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6332
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6333
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6334
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6335
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6336
 
                                             # but as the default
6337
 
                                             # location of the library.
6338
 
 
6339
 
        case $cc_basename in
6340
 
          CC*)
6341
 
            # FIXME: insert proper C++ library support
6342
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6343
 
            ;;
6344
 
          aCC*)
6345
 
            _LT_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'
6346
 
            # Commands to make compiler produce verbose output that lists
6347
 
            # what "hidden" libraries, object files and flags are used when
6348
 
            # linking a shared library.
6349
 
            #
6350
 
            # There doesn't appear to be a way to prevent this compiler from
6351
 
            # explicitly linking system object files so we need to strip them
6352
 
            # from the output so that they don't get included in the library
6353
 
            # dependencies.
6354
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6355
 
            ;;
6356
 
          *)
6357
 
            if test "$GXX" = yes; then
6358
 
              _LT_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'
6359
 
            else
6360
 
              # FIXME: insert proper C++ library support
6361
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6362
 
            fi
6363
 
            ;;
6364
 
        esac
6365
 
        ;;
6366
 
 
6367
 
      hpux10*|hpux11*)
6368
 
        if test $with_gnu_ld = no; then
6369
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6370
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6371
 
 
6372
 
          case $host_cpu in
6373
 
            hppa*64*|ia64*)
6374
 
              ;;
6375
 
            *)
6376
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6377
 
              ;;
6378
 
          esac
6379
 
        fi
6380
 
        case $host_cpu in
6381
 
          hppa*64*|ia64*)
6382
 
            _LT_TAGVAR(hardcode_direct, $1)=no
6383
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6384
 
            ;;
6385
 
          *)
6386
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
6387
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6388
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6389
 
                                                 # but as the default
6390
 
                                                 # location of the library.
6391
 
            ;;
6392
 
        esac
6393
 
 
6394
 
        case $cc_basename in
6395
 
          CC*)
6396
 
            # FIXME: insert proper C++ library support
6397
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6398
 
            ;;
6399
 
          aCC*)
6400
 
            case $host_cpu in
6401
 
              hppa*64*)
6402
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6403
 
                ;;
6404
 
              ia64*)
6405
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6406
 
                ;;
6407
 
              *)
6408
 
                _LT_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'
6409
 
                ;;
6410
 
            esac
6411
 
            # Commands to make compiler produce verbose output that lists
6412
 
            # what "hidden" libraries, object files and flags are used when
6413
 
            # linking a shared library.
6414
 
            #
6415
 
            # There doesn't appear to be a way to prevent this compiler from
6416
 
            # explicitly linking system object files so we need to strip them
6417
 
            # from the output so that they don't get included in the library
6418
 
            # dependencies.
6419
 
            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 "X$list" | $Xsed'
6420
 
            ;;
6421
 
          *)
6422
 
            if test "$GXX" = yes; then
6423
 
              if test $with_gnu_ld = no; then
6424
 
                case $host_cpu in
6425
 
                  hppa*64*)
6426
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6427
 
                    ;;
6428
 
                  ia64*)
6429
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6430
 
                    ;;
6431
 
                  *)
6432
 
                    _LT_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'
6433
 
                    ;;
6434
 
                esac
6435
 
              fi
6436
 
            else
6437
 
              # FIXME: insert proper C++ library support
6438
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6439
 
            fi
6440
 
            ;;
6441
 
        esac
6442
 
        ;;
6443
 
 
6444
 
      interix[[3-9]]*)
6445
 
        _LT_TAGVAR(hardcode_direct, $1)=no
6446
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6447
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6448
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6449
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6450
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
6451
 
        # default) and relocated if they conflict, which is a slow very memory
6452
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
6453
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6454
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6455
 
        _LT_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'
6456
 
        _LT_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'
6457
 
        ;;
6458
 
      irix5* | irix6*)
6459
 
        case $cc_basename in
6460
 
          CC*)
6461
 
            # SGI C++
6462
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6463
 
 
6464
 
            # Archives containing C++ object files must be created using
6465
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6466
 
            # necessary to make sure instantiated templates are included
6467
 
            # in the archive.
6468
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6469
 
            ;;
6470
 
          *)
6471
 
            if test "$GXX" = yes; then
6472
 
              if test "$with_gnu_ld" = no; then
6473
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6474
 
              else
6475
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6476
 
              fi
6477
 
            fi
6478
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6479
 
            ;;
6480
 
        esac
6481
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6482
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6483
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
6484
 
        ;;
6485
 
 
6486
 
      linux* | k*bsd*-gnu)
6487
 
        case $cc_basename in
6488
 
          KCC*)
6489
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6490
 
 
6491
 
            # KCC will only create a shared library if the output file
6492
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6493
 
            # to its proper name (with version) after linking.
6494
 
            _LT_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'
6495
 
            _LT_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'
6496
 
            # Commands to make compiler produce verbose output that lists
6497
 
            # what "hidden" libraries, object files and flags are used when
6498
 
            # linking a shared library.
6499
 
            #
6500
 
            # There doesn't appear to be a way to prevent this compiler from
6501
 
            # explicitly linking system object files so we need to strip them
6502
 
            # from the output so that they don't get included in the library
6503
 
            # dependencies.
6504
 
            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 "X$list" | $Xsed'
6505
 
 
6506
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6507
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6508
 
 
6509
 
            # Archives containing C++ object files must be created using
6510
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6511
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6512
 
            ;;
6513
 
          icpc* | ecpc* )
6514
 
            # Intel C++
6515
 
            with_gnu_ld=yes
6516
 
            # version 8.0 and above of icpc choke on multiply defined symbols
6517
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
6518
 
            # earlier do not add the objects themselves.
6519
 
            case `$CC -V 2>&1` in
6520
 
              *"Version 7."*)
6521
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6522
 
                _LT_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'
6523
 
                ;;
6524
 
              *)  # Version 8.0 or newer
6525
 
                tmp_idyn=
6526
 
                case $host_cpu in
6527
 
                  ia64*) tmp_idyn=' -i_dynamic';;
6528
 
                esac
6529
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6530
 
                _LT_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'
6531
 
                ;;
6532
 
            esac
6533
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6534
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6535
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6536
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6537
 
            ;;
6538
 
          pgCC* | pgcpp*)
6539
 
            # Portland Group C++ compiler
6540
 
            case `$CC -V` in
6541
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6542
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6543
 
                rm -rf $tpldir~
6544
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6545
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6546
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6547
 
                rm -rf $tpldir~
6548
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6549
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6550
 
                $RANLIB $oldlib'
6551
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6552
 
                rm -rf $tpldir~
6553
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6554
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6555
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6556
 
                rm -rf $tpldir~
6557
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6558
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6559
 
              ;;
6560
 
            *) # Version 6 will use weak symbols
6561
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6562
 
              _LT_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'
6563
 
              ;;
6564
 
            esac
6565
 
 
6566
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6567
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6568
 
            _LT_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'
6569
 
            ;;
6570
 
          cxx*)
6571
 
            # Compaq C++
6572
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6573
 
            _LT_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'
6574
 
 
6575
 
            runpath_var=LD_RUN_PATH
6576
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6577
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6578
 
 
6579
 
            # Commands to make compiler produce verbose output that lists
6580
 
            # what "hidden" libraries, object files and flags are used when
6581
 
            # linking a shared library.
6582
 
            #
6583
 
            # There doesn't appear to be a way to prevent this compiler from
6584
 
            # explicitly linking system object files so we need to strip them
6585
 
            # from the output so that they don't get included in the library
6586
 
            # dependencies.
6587
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6588
 
            ;;
6589
 
          xl*)
6590
 
            # IBM XL 8.0 on PPC, with GNU ld
6591
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6592
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6593
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6594
 
            if test "x$supports_anon_versioning" = xyes; then
6595
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6596
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6597
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
6598
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6599
 
            fi
6600
 
            ;;
6601
 
          *)
6602
 
            case `$CC -V 2>&1 | sed 5q` in
6603
 
            *Sun\ C*)
6604
 
              # Sun C++ 5.9
6605
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6606
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6607
 
              _LT_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'
6608
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6609
 
              _LT_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'
6610
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6611
 
 
6612
 
              # Not sure whether something based on
6613
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6614
 
              # would be better.
6615
 
              output_verbose_link_cmd='echo'
6616
 
 
6617
 
              # Archives containing C++ object files must be created using
6618
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6619
 
              # necessary to make sure instantiated templates are included
6620
 
              # in the archive.
6621
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6622
 
              ;;
6623
 
            esac
6624
 
            ;;
6625
 
        esac
6626
 
        ;;
6627
 
 
6628
 
      lynxos*)
6629
 
        # FIXME: insert proper C++ library support
6630
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6631
 
        ;;
6632
 
 
6633
 
      m88k*)
6634
 
        # FIXME: insert proper C++ library support
6635
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6636
 
        ;;
6637
 
 
6638
 
      mvs*)
6639
 
        case $cc_basename in
6640
 
          cxx*)
6641
 
            # FIXME: insert proper C++ library support
6642
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6643
 
            ;;
6644
 
          *)
6645
 
            # FIXME: insert proper C++ library support
6646
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6647
 
            ;;
6648
 
        esac
6649
 
        ;;
6650
 
 
6651
 
      netbsd*)
6652
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6653
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6654
 
          wlarc=
6655
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6656
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6657
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6658
 
        fi
6659
 
        # Workaround some broken pre-1.5 toolchains
6660
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6661
 
        ;;
6662
 
 
6663
 
      *nto* | *qnx*)
6664
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6665
 
        ;;
6666
 
 
6667
 
      openbsd2*)
6668
 
        # C++ shared libraries are fairly broken
6669
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6670
 
        ;;
6671
 
 
6672
 
      openbsd*)
6673
 
        if test -f /usr/libexec/ld.so; then
6674
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6675
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6676
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6677
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6678
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6679
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6680
 
            _LT_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'
6681
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6682
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6683
 
          fi
6684
 
          output_verbose_link_cmd=echo
6685
 
        else
6686
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6687
 
        fi
6688
 
        ;;
6689
 
 
6690
 
      osf3* | osf4* | osf5*)
6691
 
        case $cc_basename in
6692
 
          KCC*)
6693
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6694
 
 
6695
 
            # KCC will only create a shared library if the output file
6696
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6697
 
            # to its proper name (with version) after linking.
6698
 
            _LT_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'
6699
 
 
6700
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6701
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6702
 
 
6703
 
            # Archives containing C++ object files must be created using
6704
 
            # the KAI C++ compiler.
6705
 
            case $host in
6706
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6707
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6708
 
            esac
6709
 
            ;;
6710
 
          RCC*)
6711
 
            # Rational C++ 2.4.1
6712
 
            # FIXME: insert proper C++ library support
6713
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6714
 
            ;;
6715
 
          cxx*)
6716
 
            case $host in
6717
 
              osf3*)
6718
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6719
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6720
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6721
 
                ;;
6722
 
              *)
6723
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6724
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6725
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6726
 
                  echo "-hidden">> $lib.exp~
6727
 
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6728
 
                  $RM $lib.exp'
6729
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6730
 
                ;;
6731
 
            esac
6732
 
 
6733
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6734
 
 
6735
 
            # Commands to make compiler produce verbose output that lists
6736
 
            # what "hidden" libraries, object files and flags are used when
6737
 
            # linking a shared library.
6738
 
            #
6739
 
            # There doesn't appear to be a way to prevent this compiler from
6740
 
            # explicitly linking system object files so we need to strip them
6741
 
            # from the output so that they don't get included in the library
6742
 
            # dependencies.
6743
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6744
 
            ;;
6745
 
          *)
6746
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6747
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6748
 
              case $host in
6749
 
                osf3*)
6750
 
                  _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6751
 
                  ;;
6752
 
                *)
6753
 
                  _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6754
 
                  ;;
6755
 
              esac
6756
 
 
6757
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6758
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6759
 
 
6760
 
              # Commands to make compiler produce verbose output that lists
6761
 
              # what "hidden" libraries, object files and flags are used when
6762
 
              # linking a shared library.
6763
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6764
 
 
6765
 
            else
6766
 
              # FIXME: insert proper C++ library support
6767
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6768
 
            fi
6769
 
            ;;
6770
 
        esac
6771
 
        ;;
6772
 
 
6773
 
      psos*)
6774
 
        # FIXME: insert proper C++ library support
6775
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6776
 
        ;;
6777
 
 
6778
 
      sunos4*)
6779
 
        case $cc_basename in
6780
 
          CC*)
6781
 
            # Sun C++ 4.x
6782
 
            # FIXME: insert proper C++ library support
6783
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6784
 
            ;;
6785
 
          lcc*)
6786
 
            # Lucid
6787
 
            # FIXME: insert proper C++ library support
6788
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6789
 
            ;;
6790
 
          *)
6791
 
            # FIXME: insert proper C++ library support
6792
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6793
 
            ;;
6794
 
        esac
6795
 
        ;;
6796
 
 
6797
 
      solaris*)
6798
 
        case $cc_basename in
6799
 
          CC*)
6800
 
            # Sun C++ 4.2, 5.x and Centerline C++
6801
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6802
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6803
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6804
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6805
 
              $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'
6806
 
 
6807
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6808
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6809
 
            case $host_os in
6810
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6811
 
              *)
6812
 
                # The compiler driver will combine and reorder linker options,
6813
 
                # but understands `-z linker_flag'.
6814
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
6815
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6816
 
                ;;
6817
 
            esac
6818
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6819
 
 
6820
 
            output_verbose_link_cmd='echo'
6821
 
 
6822
 
            # Archives containing C++ object files must be created using
6823
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6824
 
            # necessary to make sure instantiated templates are included
6825
 
            # in the archive.
6826
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6827
 
            ;;
6828
 
          gcx*)
6829
 
            # Green Hills C++ Compiler
6830
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6831
 
 
6832
 
            # The C++ compiler must be used to create the archive.
6833
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6834
 
            ;;
6835
 
          *)
6836
 
            # GNU C++ compiler with Solaris linker
6837
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6838
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6839
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6840
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6841
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6842
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6843
 
 
6844
 
                # Commands to make compiler produce verbose output that lists
6845
 
                # what "hidden" libraries, object files and flags are used when
6846
 
                # linking a shared library.
6847
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6848
 
              else
6849
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6850
 
                # platform.
6851
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6852
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6853
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6854
 
 
6855
 
                # Commands to make compiler produce verbose output that lists
6856
 
                # what "hidden" libraries, object files and flags are used when
6857
 
                # linking a shared library.
6858
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6859
 
              fi
6860
 
 
6861
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6862
 
              case $host_os in
6863
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6864
 
                *)
6865
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6866
 
                  ;;
6867
 
              esac
6868
 
            fi
6869
 
            ;;
6870
 
        esac
6871
 
        ;;
6872
 
 
6873
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6874
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6875
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6876
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6877
 
      runpath_var='LD_RUN_PATH'
6878
 
 
6879
 
      case $cc_basename in
6880
 
        CC*)
6881
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6882
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6883
 
          ;;
6884
 
        *)
6885
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6886
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6887
 
          ;;
6888
 
      esac
6889
 
      ;;
6890
 
 
6891
 
      sysv5* | sco3.2v5* | sco5v6*)
6892
 
        # Note: We can NOT use -z defs as we might desire, because we do not
6893
 
        # link with -lc, and that would cause any symbols used from libc to
6894
 
        # always be unresolved, which means just about no library would
6895
 
        # ever link correctly.  If we're not using GNU ld we use -z text
6896
 
        # though, which does catch some bad symbols but isn't as heavy-handed
6897
 
        # as -z defs.
6898
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6899
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6900
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6901
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6902
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6903
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6904
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6905
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6906
 
        runpath_var='LD_RUN_PATH'
6907
 
 
6908
 
        case $cc_basename in
6909
 
          CC*)
6910
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6911
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6912
 
            ;;
6913
 
          *)
6914
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6915
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6916
 
            ;;
6917
 
        esac
6918
 
      ;;
6919
 
 
6920
 
      tandem*)
6921
 
        case $cc_basename in
6922
 
          NCC*)
6923
 
            # NonStop-UX NCC 3.20
6924
 
            # FIXME: insert proper C++ library support
6925
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6926
 
            ;;
6927
 
          *)
6928
 
            # FIXME: insert proper C++ library support
6929
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6930
 
            ;;
6931
 
        esac
6932
 
        ;;
6933
 
 
6934
 
      vxworks*)
6935
 
        # FIXME: insert proper C++ library support
6936
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6937
 
        ;;
6938
 
 
6939
 
      *)
6940
 
        # FIXME: insert proper C++ library support
6941
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6942
 
        ;;
6943
 
    esac
6944
 
 
6945
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6946
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6947
 
 
6948
 
    _LT_TAGVAR(GCC, $1)="$GXX"
6949
 
    _LT_TAGVAR(LD, $1)="$LD"
6950
 
 
6951
 
    ## CAVEAT EMPTOR:
6952
 
    ## There is no encapsulation within the following macros, do not change
6953
 
    ## the running order or otherwise move them around unless you know exactly
6954
 
    ## what you are doing...
6955
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
6956
 
    _LT_COMPILER_PIC($1)
6957
 
    _LT_COMPILER_C_O($1)
6958
 
    _LT_COMPILER_FILE_LOCKS($1)
6959
 
    _LT_LINKER_SHLIBS($1)
6960
 
    _LT_SYS_DYNAMIC_LINKER($1)
6961
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6962
 
 
6963
 
    _LT_CONFIG($1)
6964
 
  fi # test -n "$compiler"
6965
 
 
6966
 
  CC=$lt_save_CC
6967
 
  LDCXX=$LD
6968
 
  LD=$lt_save_LD
6969
 
  GCC=$lt_save_GCC
6970
 
  with_gnu_ld=$lt_save_with_gnu_ld
6971
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
6972
 
  lt_cv_path_LD=$lt_save_path_LD
6973
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6974
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6975
 
fi # test "$_lt_caught_CXX_error" != yes
6976
 
 
6977
 
AC_LANG_POP
6978
 
])# _LT_LANG_CXX_CONFIG
6979
 
 
6980
 
 
6981
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
7152
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
7153
 
 
7154
 
 
7155
# _LT_AC_FILE_LTDLL_C
 
7156
# -------------------
 
7157
# Be careful that the start marker always follows a newline.
 
7158
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
7159
# /* ltdll.c starts here */
 
7160
# #define WIN32_LEAN_AND_MEAN
 
7161
# #include <windows.h>
 
7162
# #undef WIN32_LEAN_AND_MEAN
 
7163
# #include <stdio.h>
 
7164
#
 
7165
# #ifndef __CYGWIN__
 
7166
# #  ifdef __CYGWIN32__
 
7167
# #    define __CYGWIN__ __CYGWIN32__
 
7168
# #  endif
 
7169
# #endif
 
7170
#
 
7171
# #ifdef __cplusplus
 
7172
# extern "C" {
 
7173
# #endif
 
7174
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7175
# #ifdef __cplusplus
 
7176
# }
 
7177
# #endif
 
7178
#
 
7179
# #ifdef __CYGWIN__
 
7180
# #include <cygwin/cygwin_dll.h>
 
7181
# DECLARE_CYGWIN_DLL( DllMain );
 
7182
# #endif
 
7183
# HINSTANCE __hDllInstance_base;
 
7184
#
 
7185
# BOOL APIENTRY
 
7186
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7187
# {
 
7188
#   __hDllInstance_base = hInst;
 
7189
#   return TRUE;
 
7190
# }
 
7191
# /* ltdll.c ends here */
 
7192
])# _LT_AC_FILE_LTDLL_C
 
7193
 
 
7194
 
 
7195
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6982
7196
# ---------------------------------
6983
 
# Figure out "hidden" library dependencies from verbose
6984
 
# compiler output when linking a shared library.
6985
 
# Parse the compiler output and extract the necessary
6986
 
# objects, libraries and library flags.
6987
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6988
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6989
 
# Dependencies to place before and after the object being linked:
6990
 
_LT_TAGVAR(predep_objects, $1)=
6991
 
_LT_TAGVAR(postdep_objects, $1)=
6992
 
_LT_TAGVAR(predeps, $1)=
6993
 
_LT_TAGVAR(postdeps, $1)=
6994
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
6995
 
 
6996
 
dnl we can't use the lt_simple_compile_test_code here,
6997
 
dnl because it contains code intended for an executable,
6998
 
dnl not a library.  It's possible we should let each
6999
 
dnl tag define a new lt_????_link_test_code variable,
7000
 
dnl but it's only used here...
7001
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7002
 
int a;
7003
 
void foo (void) { a = 0; }
7004
 
_LT_EOF
7005
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7006
 
class Foo
7007
 
{
7008
 
public:
7009
 
  Foo (void) { a = 0; }
7010
 
private:
7011
 
  int a;
7012
 
};
7013
 
_LT_EOF
7014
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7015
 
      subroutine foo
7016
 
      implicit none
7017
 
      integer*4 a
7018
 
      a=0
7019
 
      return
7020
 
      end
7021
 
_LT_EOF
7022
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7023
 
      subroutine foo
7024
 
      implicit none
7025
 
      integer a
7026
 
      a=0
7027
 
      return
7028
 
      end
7029
 
_LT_EOF
7030
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7031
 
public class foo {
7032
 
  private int a;
7033
 
  public void bar (void) {
7034
 
    a = 0;
7035
 
  }
7036
 
};
7037
 
_LT_EOF
7038
 
])
7039
 
dnl Parse the compiler output and extract the necessary
7040
 
dnl objects, libraries and library flags.
7041
 
if AC_TRY_EVAL(ac_compile); then
7042
 
  # Parse the compiler output and extract the necessary
7043
 
  # objects, libraries and library flags.
7044
 
 
7045
 
  # Sentinel used to keep track of whether or not we are before
7046
 
  # the conftest object file.
7047
 
  pre_test_object_deps_done=no
7048
 
 
7049
 
  for p in `eval "$output_verbose_link_cmd"`; do
7050
 
    case $p in
7051
 
 
7052
 
    -L* | -R* | -l*)
7053
 
       # Some compilers place space between "-{L,R}" and the path.
7054
 
       # Remove the space.
7055
 
       if test $p = "-L" ||
7056
 
          test $p = "-R"; then
7057
 
         prev=$p
7058
 
         continue
7059
 
       else
7060
 
         prev=
7061
 
       fi
7062
 
 
7063
 
       if test "$pre_test_object_deps_done" = no; then
7064
 
         case $p in
7065
 
         -L* | -R*)
7066
 
           # Internal compiler library paths should come after those
7067
 
           # provided the user.  The postdeps already come after the
7068
 
           # user supplied libs so there is no need to process them.
7069
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7070
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7071
 
           else
7072
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7073
 
           fi
7074
 
           ;;
7075
 
         # The "-l" case would never come before the object being
7076
 
         # linked, so don't bother handling this case.
7077
 
         esac
7078
 
       else
7079
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7080
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7081
 
         else
7082
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7083
 
         fi
7084
 
       fi
7085
 
       ;;
7086
 
 
7087
 
    *.$objext)
7088
 
       # This assumes that the test object file only shows up
7089
 
       # once in the compiler output.
7090
 
       if test "$p" = "conftest.$objext"; then
7091
 
         pre_test_object_deps_done=yes
7092
 
         continue
7093
 
       fi
7094
 
 
7095
 
       if test "$pre_test_object_deps_done" = no; then
7096
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7097
 
           _LT_TAGVAR(predep_objects, $1)="$p"
7098
 
         else
7099
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7100
 
         fi
7101
 
       else
7102
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7103
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
7104
 
         else
7105
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7106
 
         fi
7107
 
       fi
7108
 
       ;;
7109
 
 
7110
 
    *) ;; # Ignore the rest.
7111
 
 
7112
 
    esac
7113
 
  done
7114
 
 
7115
 
  # Clean up.
7116
 
  rm -f a.out a.exe
 
7197
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
7198
 
 
7199
 
 
7200
# old names
 
7201
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
7202
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
7203
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
7204
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7205
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7206
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
7207
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
7208
 
 
7209
# This is just to silence aclocal about the macro not being used
 
7210
ifelse([AC_DISABLE_FAST_INSTALL])
 
7211
 
 
7212
AC_DEFUN([LT_AC_PROG_GCJ],
 
7213
[AC_CHECK_TOOL(GCJ, gcj, no)
 
7214
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7215
  AC_SUBST(GCJFLAGS)
 
7216
])
 
7217
 
 
7218
AC_DEFUN([LT_AC_PROG_RC],
 
7219
[AC_CHECK_TOOL(RC, windres, no)
 
7220
])
 
7221
 
 
7222
 
 
7223
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7224
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7225
 
 
7226
# _AS_TEST_PREPARE
 
7227
# ----------------
 
7228
m4_ifndef([_AS_TEST_PREPARE],
 
7229
[m4_defun([_AS_TEST_PREPARE],
 
7230
[if test -x / >/dev/null 2>&1; then
 
7231
  as_executable_p='test -x'
7117
7232
else
7118
 
  echo "libtool.m4: error: problem compiling $1 test program"
7119
 
fi
7120
 
 
7121
 
$RM -f confest.$objext
7122
 
 
7123
 
# PORTME: override above test on systems where it is broken
7124
 
m4_if([$1], [CXX],
7125
 
[case $host_os in
7126
 
interix[[3-9]]*)
7127
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7128
 
  # hack all around it, let's just trust "g++" to DTRT.
7129
 
  _LT_TAGVAR(predep_objects,$1)=
7130
 
  _LT_TAGVAR(postdep_objects,$1)=
7131
 
  _LT_TAGVAR(postdeps,$1)=
7132
 
  ;;
7133
 
 
7134
 
linux*)
7135
 
  case `$CC -V 2>&1 | sed 5q` in
7136
 
  *Sun\ C*)
7137
 
    # Sun C++ 5.9
7138
 
 
7139
 
    # The more standards-conforming stlport4 library is
7140
 
    # incompatible with the Cstd library. Avoid specifying
7141
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7142
 
    # -library=stlport4 depends on it.
7143
 
    case " $CXX $CXXFLAGS " in
7144
 
    *" -library=stlport4 "*)
7145
 
      solaris_use_stlport4=yes
7146
 
      ;;
7147
 
    esac
7148
 
 
7149
 
    if test "$solaris_use_stlport4" != yes; then
7150
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7151
 
    fi
7152
 
    ;;
7153
 
  esac
7154
 
  ;;
7155
 
 
7156
 
solaris*)
7157
 
  case $cc_basename in
7158
 
  CC*)
7159
 
    # The more standards-conforming stlport4 library is
7160
 
    # incompatible with the Cstd library. Avoid specifying
7161
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7162
 
    # -library=stlport4 depends on it.
7163
 
    case " $CXX $CXXFLAGS " in
7164
 
    *" -library=stlport4 "*)
7165
 
      solaris_use_stlport4=yes
7166
 
      ;;
7167
 
    esac
7168
 
 
7169
 
    # Adding this requires a known-good setup of shared libraries for
7170
 
    # Sun compiler versions before 5.6, else PIC objects from an old
7171
 
    # archive will be linked into the output, leading to subtle bugs.
7172
 
    if test "$solaris_use_stlport4" != yes; then
7173
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7174
 
    fi
7175
 
    ;;
7176
 
  esac
7177
 
  ;;
7178
 
esac
7179
 
])
7180
 
 
7181
 
case " $_LT_TAGVAR(postdeps, $1) " in
7182
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7183
 
esac
7184
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7185
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7186
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7187
 
fi
7188
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7189
 
    [The directories searched by this compiler when creating a shared library])
7190
 
_LT_TAGDECL([], [predep_objects], [1],
7191
 
    [Dependencies to place before and after the objects being linked to
7192
 
    create a shared library])
7193
 
_LT_TAGDECL([], [postdep_objects], [1])
7194
 
_LT_TAGDECL([], [predeps], [1])
7195
 
_LT_TAGDECL([], [postdeps], [1])
7196
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7197
 
    [The library search path used internally by the compiler when linking
7198
 
    a shared library])
7199
 
])# _LT_SYS_HIDDEN_LIBDEPS
7200
 
 
7201
 
 
7202
 
# _LT_PROG_F77
7203
 
# ------------
7204
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7205
 
# if there is no fortran compiler, we have our own version here.
7206
 
m4_defun([_LT_PROG_F77],
7207
 
[
7208
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7209
 
AC_PROG_F77
7210
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7211
 
  _lt_disable_F77=yes
7212
 
fi
7213
 
popdef([AC_MSG_ERROR])
7214
 
])# _LT_PROG_F77
7215
 
 
7216
 
dnl aclocal-1.4 backwards compatibility:
7217
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7218
 
 
7219
 
 
7220
 
# _LT_LANG_F77_CONFIG([TAG])
7221
 
# --------------------------
7222
 
# Ensure that the configuration variables for a Fortran 77 compiler are
7223
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7224
 
# to write the compiler configuration to `libtool'.
7225
 
m4_defun([_LT_LANG_F77_CONFIG],
7226
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7227
 
AC_LANG_PUSH(Fortran 77)
7228
 
 
7229
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7230
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7231
 
_LT_TAGVAR(always_export_symbols, $1)=no
7232
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7233
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7234
 
_LT_TAGVAR(hardcode_direct, $1)=no
7235
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7236
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7237
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7238
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7239
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7240
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7241
 
_LT_TAGVAR(inherit_rpath, $1)=no
7242
 
_LT_TAGVAR(module_cmds, $1)=
7243
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7244
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7245
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7246
 
_LT_TAGVAR(no_undefined_flag, $1)=
7247
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7248
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7249
 
 
7250
 
# Source file extension for f77 test sources.
7251
 
ac_ext=f
7252
 
 
7253
 
# Object file extension for compiled f77 test sources.
7254
 
objext=o
7255
 
_LT_TAGVAR(objext, $1)=$objext
7256
 
 
7257
 
# No sense in running all these tests if we already determined that
7258
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
7259
 
# are currently assumed to apply to all compilers on this platform,
7260
 
# and will be corrupted by setting them based on a non-working compiler.
7261
 
if test "$_lt_disable_F77" != yes; then
7262
 
  # Code to be used in simple compile tests
7263
 
  lt_simple_compile_test_code="\
7264
 
      subroutine t
7265
 
      return
7266
 
      end
7267
 
"
7268
 
 
7269
 
  # Code to be used in simple link tests
7270
 
  lt_simple_link_test_code="\
7271
 
      program t
7272
 
      end
7273
 
"
7274
 
 
7275
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7276
 
  _LT_TAG_COMPILER
7277
 
 
7278
 
  # save warnings/boilerplate of simple test code
7279
 
  _LT_COMPILER_BOILERPLATE
7280
 
  _LT_LINKER_BOILERPLATE
7281
 
 
7282
 
  # Allow CC to be a program name with arguments.
7283
 
  lt_save_CC="$CC"
7284
 
  lt_save_GCC=$GCC
7285
 
  CC=${F77-"f77"}
7286
 
  compiler=$CC
7287
 
  _LT_TAGVAR(compiler, $1)=$CC
7288
 
  _LT_CC_BASENAME([$compiler])
7289
 
  GCC=$G77
7290
 
  if test -n "$compiler"; then
7291
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7292
 
    AC_MSG_RESULT([$can_build_shared])
7293
 
 
7294
 
    AC_MSG_CHECKING([whether to build shared libraries])
7295
 
    test "$can_build_shared" = "no" && enable_shared=no
7296
 
 
7297
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7298
 
    # are all built from PIC.
7299
 
    case $host_os in
7300
 
      aix3*)
7301
 
        test "$enable_shared" = yes && enable_static=no
7302
 
        if test -n "$RANLIB"; then
7303
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7304
 
          postinstall_cmds='$RANLIB $lib'
7305
 
        fi
7306
 
        ;;
7307
 
      aix[[4-9]]*)
7308
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7309
 
          test "$enable_shared" = yes && enable_static=no
7310
 
        fi
7311
 
        ;;
7312
 
    esac
7313
 
    AC_MSG_RESULT([$enable_shared])
7314
 
 
7315
 
    AC_MSG_CHECKING([whether to build static libraries])
7316
 
    # Make sure either enable_shared or enable_static is yes.
7317
 
    test "$enable_shared" = yes || enable_static=yes
7318
 
    AC_MSG_RESULT([$enable_static])
7319
 
 
7320
 
    _LT_TAGVAR(GCC, $1)="$G77"
7321
 
    _LT_TAGVAR(LD, $1)="$LD"
7322
 
 
7323
 
    ## CAVEAT EMPTOR:
7324
 
    ## There is no encapsulation within the following macros, do not change
7325
 
    ## the running order or otherwise move them around unless you know exactly
7326
 
    ## what you are doing...
7327
 
    _LT_COMPILER_PIC($1)
7328
 
    _LT_COMPILER_C_O($1)
7329
 
    _LT_COMPILER_FILE_LOCKS($1)
7330
 
    _LT_LINKER_SHLIBS($1)
7331
 
    _LT_SYS_DYNAMIC_LINKER($1)
7332
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7333
 
 
7334
 
    _LT_CONFIG($1)
7335
 
  fi # test -n "$compiler"
7336
 
 
7337
 
  GCC=$lt_save_GCC
7338
 
  CC="$lt_save_CC"
7339
 
fi # test "$_lt_disable_F77" != yes
7340
 
 
7341
 
AC_LANG_POP
7342
 
])# _LT_LANG_F77_CONFIG
7343
 
 
7344
 
 
7345
 
# _LT_PROG_FC
7346
 
# -----------
7347
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7348
 
# if there is no fortran compiler, we have our own version here.
7349
 
m4_defun([_LT_PROG_FC],
7350
 
[
7351
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7352
 
AC_PROG_FC
7353
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7354
 
  _lt_disable_FC=yes
7355
 
fi
7356
 
popdef([AC_MSG_ERROR])
7357
 
])# _LT_PROG_FC
7358
 
 
7359
 
dnl aclocal-1.4 backwards compatibility:
7360
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7361
 
 
7362
 
 
7363
 
# _LT_LANG_FC_CONFIG([TAG])
7364
 
# -------------------------
7365
 
# Ensure that the configuration variables for a Fortran compiler are
7366
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7367
 
# to write the compiler configuration to `libtool'.
7368
 
m4_defun([_LT_LANG_FC_CONFIG],
7369
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7370
 
AC_LANG_PUSH(Fortran)
7371
 
 
7372
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7373
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7374
 
_LT_TAGVAR(always_export_symbols, $1)=no
7375
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7376
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7377
 
_LT_TAGVAR(hardcode_direct, $1)=no
7378
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7379
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7380
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7381
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7382
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7383
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7384
 
_LT_TAGVAR(inherit_rpath, $1)=no
7385
 
_LT_TAGVAR(module_cmds, $1)=
7386
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7387
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7388
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7389
 
_LT_TAGVAR(no_undefined_flag, $1)=
7390
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7391
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7392
 
 
7393
 
# Source file extension for fc test sources.
7394
 
ac_ext=${ac_fc_srcext-f}
7395
 
 
7396
 
# Object file extension for compiled fc test sources.
7397
 
objext=o
7398
 
_LT_TAGVAR(objext, $1)=$objext
7399
 
 
7400
 
# No sense in running all these tests if we already determined that
7401
 
# the FC compiler isn't working.  Some variables (like enable_shared)
7402
 
# are currently assumed to apply to all compilers on this platform,
7403
 
# and will be corrupted by setting them based on a non-working compiler.
7404
 
if test "$_lt_disable_FC" != yes; then
7405
 
  # Code to be used in simple compile tests
7406
 
  lt_simple_compile_test_code="\
7407
 
      subroutine t
7408
 
      return
7409
 
      end
7410
 
"
7411
 
 
7412
 
  # Code to be used in simple link tests
7413
 
  lt_simple_link_test_code="\
7414
 
      program t
7415
 
      end
7416
 
"
7417
 
 
7418
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7419
 
  _LT_TAG_COMPILER
7420
 
 
7421
 
  # save warnings/boilerplate of simple test code
7422
 
  _LT_COMPILER_BOILERPLATE
7423
 
  _LT_LINKER_BOILERPLATE
7424
 
 
7425
 
  # Allow CC to be a program name with arguments.
7426
 
  lt_save_CC="$CC"
7427
 
  lt_save_GCC=$GCC
7428
 
  CC=${FC-"f95"}
7429
 
  compiler=$CC
7430
 
  GCC=$ac_cv_fc_compiler_gnu
7431
 
 
7432
 
  _LT_TAGVAR(compiler, $1)=$CC
7433
 
  _LT_CC_BASENAME([$compiler])
7434
 
 
7435
 
  if test -n "$compiler"; then
7436
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7437
 
    AC_MSG_RESULT([$can_build_shared])
7438
 
 
7439
 
    AC_MSG_CHECKING([whether to build shared libraries])
7440
 
    test "$can_build_shared" = "no" && enable_shared=no
7441
 
 
7442
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7443
 
    # are all built from PIC.
7444
 
    case $host_os in
7445
 
      aix3*)
7446
 
        test "$enable_shared" = yes && enable_static=no
7447
 
        if test -n "$RANLIB"; then
7448
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7449
 
          postinstall_cmds='$RANLIB $lib'
7450
 
        fi
7451
 
        ;;
7452
 
      aix[[4-9]]*)
7453
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7454
 
          test "$enable_shared" = yes && enable_static=no
7455
 
        fi
7456
 
        ;;
7457
 
    esac
7458
 
    AC_MSG_RESULT([$enable_shared])
7459
 
 
7460
 
    AC_MSG_CHECKING([whether to build static libraries])
7461
 
    # Make sure either enable_shared or enable_static is yes.
7462
 
    test "$enable_shared" = yes || enable_static=yes
7463
 
    AC_MSG_RESULT([$enable_static])
7464
 
 
7465
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7466
 
    _LT_TAGVAR(LD, $1)="$LD"
7467
 
 
7468
 
    ## CAVEAT EMPTOR:
7469
 
    ## There is no encapsulation within the following macros, do not change
7470
 
    ## the running order or otherwise move them around unless you know exactly
7471
 
    ## what you are doing...
7472
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7473
 
    _LT_COMPILER_PIC($1)
7474
 
    _LT_COMPILER_C_O($1)
7475
 
    _LT_COMPILER_FILE_LOCKS($1)
7476
 
    _LT_LINKER_SHLIBS($1)
7477
 
    _LT_SYS_DYNAMIC_LINKER($1)
7478
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7479
 
 
7480
 
    _LT_CONFIG($1)
7481
 
  fi # test -n "$compiler"
7482
 
 
7483
 
  GCC=$lt_save_GCC
7484
 
  CC="$lt_save_CC"
7485
 
fi # test "$_lt_disable_FC" != yes
7486
 
 
7487
 
AC_LANG_POP
7488
 
])# _LT_LANG_FC_CONFIG
7489
 
 
7490
 
 
7491
 
# _LT_LANG_GCJ_CONFIG([TAG])
7492
 
# --------------------------
7493
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
7494
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7495
 
# to write the compiler configuration to `libtool'.
7496
 
m4_defun([_LT_LANG_GCJ_CONFIG],
7497
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
7498
 
AC_LANG_SAVE
7499
 
 
7500
 
# Source file extension for Java test sources.
7501
 
ac_ext=java
7502
 
 
7503
 
# Object file extension for compiled Java test sources.
7504
 
objext=o
7505
 
_LT_TAGVAR(objext, $1)=$objext
7506
 
 
7507
 
# Code to be used in simple compile tests
7508
 
lt_simple_compile_test_code="class foo {}"
7509
 
 
7510
 
# Code to be used in simple link tests
7511
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7512
 
 
7513
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7514
 
_LT_TAG_COMPILER
7515
 
 
7516
 
# save warnings/boilerplate of simple test code
7517
 
_LT_COMPILER_BOILERPLATE
7518
 
_LT_LINKER_BOILERPLATE
7519
 
 
7520
 
# Allow CC to be a program name with arguments.
7521
 
lt_save_CC="$CC"
7522
 
lt_save_GCC=$GCC
7523
 
GCC=yes
7524
 
CC=${GCJ-"gcj"}
7525
 
compiler=$CC
7526
 
_LT_TAGVAR(compiler, $1)=$CC
7527
 
_LT_TAGVAR(LD, $1)="$LD"
7528
 
_LT_CC_BASENAME([$compiler])
7529
 
 
7530
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7531
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7532
 
 
7533
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7534
 
 
7535
 
if test -n "$compiler"; then
7536
 
  _LT_COMPILER_NO_RTTI($1)
7537
 
  _LT_COMPILER_PIC($1)
7538
 
  _LT_COMPILER_C_O($1)
7539
 
  _LT_COMPILER_FILE_LOCKS($1)
7540
 
  _LT_LINKER_SHLIBS($1)
7541
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7542
 
 
7543
 
  _LT_CONFIG($1)
7544
 
fi
7545
 
 
7546
 
AC_LANG_RESTORE
7547
 
 
7548
 
GCC=$lt_save_GCC
7549
 
CC="$lt_save_CC"
7550
 
])# _LT_LANG_GCJ_CONFIG
7551
 
 
7552
 
 
7553
 
# _LT_LANG_RC_CONFIG([TAG])
7554
 
# -------------------------
7555
 
# Ensure that the configuration variables for the Windows resource compiler
7556
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7557
 
# to write the compiler configuration to `libtool'.
7558
 
m4_defun([_LT_LANG_RC_CONFIG],
7559
 
[AC_REQUIRE([LT_PROG_RC])dnl
7560
 
AC_LANG_SAVE
7561
 
 
7562
 
# Source file extension for RC test sources.
7563
 
ac_ext=rc
7564
 
 
7565
 
# Object file extension for compiled RC test sources.
7566
 
objext=o
7567
 
_LT_TAGVAR(objext, $1)=$objext
7568
 
 
7569
 
# Code to be used in simple compile tests
7570
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7571
 
 
7572
 
# Code to be used in simple link tests
7573
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7574
 
 
7575
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7576
 
_LT_TAG_COMPILER
7577
 
 
7578
 
# save warnings/boilerplate of simple test code
7579
 
_LT_COMPILER_BOILERPLATE
7580
 
_LT_LINKER_BOILERPLATE
7581
 
 
7582
 
# Allow CC to be a program name with arguments.
7583
 
lt_save_CC="$CC"
7584
 
lt_save_GCC=$GCC
7585
 
GCC=
7586
 
CC=${RC-"windres"}
7587
 
compiler=$CC
7588
 
_LT_TAGVAR(compiler, $1)=$CC
7589
 
_LT_CC_BASENAME([$compiler])
7590
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7591
 
 
7592
 
if test -n "$compiler"; then
7593
 
  :
7594
 
  _LT_CONFIG($1)
7595
 
fi
7596
 
 
7597
 
GCC=$lt_save_GCC
7598
 
AC_LANG_RESTORE
7599
 
CC="$lt_save_CC"
7600
 
])# _LT_LANG_RC_CONFIG
7601
 
 
7602
 
 
7603
 
# LT_PROG_GCJ
7604
 
# -----------
7605
 
AC_DEFUN([LT_PROG_GCJ],
7606
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7607
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7608
 
    [AC_CHECK_TOOL(GCJ, gcj,)
7609
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7610
 
      AC_SUBST(GCJFLAGS)])])[]dnl
7611
 
])
7612
 
 
7613
 
# Old name:
7614
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7615
 
dnl aclocal-1.4 backwards compatibility:
7616
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7617
 
 
7618
 
 
7619
 
# LT_PROG_RC
7620
 
# ----------
7621
 
AC_DEFUN([LT_PROG_RC],
7622
 
[AC_CHECK_TOOL(RC, windres,)
7623
 
])
7624
 
 
7625
 
# Old name:
7626
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7627
 
dnl aclocal-1.4 backwards compatibility:
7628
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7629
 
 
7630
 
 
7631
 
# _LT_DECL_EGREP
7632
 
# --------------
7633
 
# If we don't have a new enough Autoconf to choose the best grep
7634
 
# available, choose the one first in the user's PATH.
7635
 
m4_defun([_LT_DECL_EGREP],
7636
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
7637
 
AC_REQUIRE([AC_PROG_FGREP])dnl
7638
 
test -z "$GREP" && GREP=grep
7639
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7640
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7641
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7642
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7643
 
AC_SUBST([GREP])
7644
 
])
7645
 
 
7646
 
 
7647
 
# _LT_DECL_SED
7648
 
# ------------
7649
 
# Check for a fully-functional sed program, that truncates
7650
 
# as few characters as possible.  Prefer GNU sed if found.
7651
 
m4_defun([_LT_DECL_SED],
7652
 
[AC_PROG_SED
7653
 
test -z "$SED" && SED=sed
7654
 
Xsed="$SED -e 1s/^X//"
7655
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7656
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7657
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7658
 
])# _LT_DECL_SED
7659
 
 
7660
 
m4_ifndef([AC_PROG_SED], [
 
7233
  as_executable_p='test -f'
 
7234
fi
 
7235
])])# _AS_TEST_PREPARE
 
7236
 
 
7237
# AS_EXECUTABLE_P
 
7238
# ---------------
 
7239
# Check whether a file is executable.
 
7240
m4_ifndef([AS_EXECUTABLE_P],
 
7241
[m4_defun([AS_EXECUTABLE_P],
 
7242
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7243
$as_executable_p $1[]dnl
 
7244
])])# AS_EXECUTABLE_P
 
7245
 
7661
7246
# NOTE: This macro has been submitted for inclusion into   #
7662
7247
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7663
7248
#  a released version of Autoconf we should remove this    #
7664
7249
#  macro and use it instead.                               #
7665
 
 
7666
 
m4_defun([AC_PROG_SED],
 
7250
# LT_AC_PROG_SED
 
7251
# --------------
 
7252
# Check for a fully-functional sed program, that truncates
 
7253
# as few characters as possible.  Prefer GNU sed if found.
 
7254
AC_DEFUN([LT_AC_PROG_SED],
7667
7255
[AC_MSG_CHECKING([for a sed that does not truncate output])
7668
7256
AC_CACHE_VAL(lt_cv_path_SED,
7669
7257
[# Loop through the user's path and test for sed and gsed.
7675
7263
  test -z "$as_dir" && as_dir=.
7676
7264
  for lt_ac_prog in sed gsed; do
7677
7265
    for ac_exec_ext in '' $ac_executable_extensions; do
7678
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7266
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7679
7267
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7680
7268
      fi
7681
7269
    done
7716
7304
SED=$lt_cv_path_SED
7717
7305
AC_SUBST([SED])
7718
7306
AC_MSG_RESULT([$SED])
7719
 
])#AC_PROG_SED
7720
 
])#m4_ifndef
7721
 
 
7722
 
# Old name:
7723
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7724
 
dnl aclocal-1.4 backwards compatibility:
7725
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7726
 
 
7727
 
 
7728
 
# _LT_CHECK_SHELL_FEATURES
7729
 
# ------------------------
7730
 
# Find out whether the shell is Bourne or XSI compatible,
7731
 
# or has some other useful features.
7732
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
7733
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7734
 
# Try some XSI features
7735
 
xsi_shell=no
7736
 
( _lt_dummy="a/b/c"
7737
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7738
 
      = c,a/b,, \
7739
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
7740
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7741
 
  && xsi_shell=yes
7742
 
AC_MSG_RESULT([$xsi_shell])
7743
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7744
 
 
7745
 
AC_MSG_CHECKING([whether the shell understands "+="])
7746
 
lt_shell_append=no
7747
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7748
 
    >/dev/null 2>&1 \
7749
 
  && lt_shell_append=yes
7750
 
AC_MSG_RESULT([$lt_shell_append])
7751
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7752
 
 
7753
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7754
 
  lt_unset=unset
7755
 
else
7756
 
  lt_unset=false
7757
 
fi
7758
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7759
 
 
7760
 
# test EBCDIC or ASCII
7761
 
case `echo X|tr X '\101'` in
7762
 
 A) # ASCII based system
7763
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7764
 
  lt_SP2NL='tr \040 \012'
7765
 
  lt_NL2SP='tr \015\012 \040\040'
7766
 
  ;;
7767
 
 *) # EBCDIC based system
7768
 
  lt_SP2NL='tr \100 \n'
7769
 
  lt_NL2SP='tr \r\n \100\100'
7770
 
  ;;
7771
 
esac
7772
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7773
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7774
 
])# _LT_CHECK_SHELL_FEATURES
7775
 
 
7776
 
 
7777
 
# _LT_PROG_XSI_SHELLFNS
7778
 
# ---------------------
7779
 
# Bourne and XSI compatible variants of some useful shell functions.
7780
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7781
 
[case $xsi_shell in
7782
 
  yes)
7783
 
    cat << \_LT_EOF >> "$cfgfile"
7784
 
 
7785
 
# func_dirname file append nondir_replacement
7786
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7787
 
# otherwise set result to NONDIR_REPLACEMENT.
7788
 
func_dirname ()
7789
 
{
7790
 
  case ${1} in
7791
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7792
 
    *  ) func_dirname_result="${3}" ;;
7793
 
  esac
7794
 
}
7795
 
 
7796
 
# func_basename file
7797
 
func_basename ()
7798
 
{
7799
 
  func_basename_result="${1##*/}"
7800
 
}
7801
 
 
7802
 
# func_dirname_and_basename file append nondir_replacement
7803
 
# perform func_basename and func_dirname in a single function
7804
 
# call:
7805
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7806
 
#             add APPEND to the result, otherwise set result
7807
 
#             to NONDIR_REPLACEMENT.
7808
 
#             value returned in "$func_dirname_result"
7809
 
#   basename: Compute filename of FILE.
7810
 
#             value retuned in "$func_basename_result"
7811
 
# Implementation must be kept synchronized with func_dirname
7812
 
# and func_basename. For efficiency, we do not delegate to
7813
 
# those functions but instead duplicate the functionality here.
7814
 
func_dirname_and_basename ()
7815
 
{
7816
 
  case ${1} in
7817
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7818
 
    *  ) func_dirname_result="${3}" ;;
7819
 
  esac
7820
 
  func_basename_result="${1##*/}"
7821
 
}
7822
 
 
7823
 
# func_stripname prefix suffix name
7824
 
# strip PREFIX and SUFFIX off of NAME.
7825
 
# PREFIX and SUFFIX must not contain globbing or regex special
7826
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7827
 
# dot (in which case that matches only a dot).
7828
 
func_stripname ()
7829
 
{
7830
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7831
 
  # positional parameters, so assign one to ordinary parameter first.
7832
 
  func_stripname_result=${3}
7833
 
  func_stripname_result=${func_stripname_result#"${1}"}
7834
 
  func_stripname_result=${func_stripname_result%"${2}"}
7835
 
}
7836
 
 
7837
 
# func_opt_split
7838
 
func_opt_split ()
7839
 
{
7840
 
  func_opt_split_opt=${1%%=*}
7841
 
  func_opt_split_arg=${1#*=}
7842
 
}
7843
 
 
7844
 
# func_lo2o object
7845
 
func_lo2o ()
7846
 
{
7847
 
  case ${1} in
7848
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7849
 
    *)    func_lo2o_result=${1} ;;
7850
 
  esac
7851
 
}
7852
 
 
7853
 
# func_xform libobj-or-source
7854
 
func_xform ()
7855
 
{
7856
 
  func_xform_result=${1%.*}.lo
7857
 
}
7858
 
 
7859
 
# func_arith arithmetic-term...
7860
 
func_arith ()
7861
 
{
7862
 
  func_arith_result=$(( $[*] ))
7863
 
}
7864
 
 
7865
 
# func_len string
7866
 
# STRING may not start with a hyphen.
7867
 
func_len ()
7868
 
{
7869
 
  func_len_result=${#1}
7870
 
}
7871
 
 
7872
 
_LT_EOF
7873
 
    ;;
7874
 
  *) # Bourne compatible functions.
7875
 
    cat << \_LT_EOF >> "$cfgfile"
7876
 
 
7877
 
# func_dirname file append nondir_replacement
7878
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7879
 
# otherwise set result to NONDIR_REPLACEMENT.
7880
 
func_dirname ()
7881
 
{
7882
 
  # Extract subdirectory from the argument.
7883
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7884
 
  if test "X$func_dirname_result" = "X${1}"; then
7885
 
    func_dirname_result="${3}"
7886
 
  else
7887
 
    func_dirname_result="$func_dirname_result${2}"
7888
 
  fi
7889
 
}
7890
 
 
7891
 
# func_basename file
7892
 
func_basename ()
7893
 
{
7894
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7895
 
}
7896
 
 
7897
 
dnl func_dirname_and_basename
7898
 
dnl A portable version of this function is already defined in general.m4sh
7899
 
dnl so there is no need for it here.
7900
 
 
7901
 
# func_stripname prefix suffix name
7902
 
# strip PREFIX and SUFFIX off of NAME.
7903
 
# PREFIX and SUFFIX must not contain globbing or regex special
7904
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7905
 
# dot (in which case that matches only a dot).
7906
 
# func_strip_suffix prefix name
7907
 
func_stripname ()
7908
 
{
7909
 
  case ${2} in
7910
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7911
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7912
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7913
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7914
 
  esac
7915
 
}
7916
 
 
7917
 
# sed scripts:
7918
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7919
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7920
 
 
7921
 
# func_opt_split
7922
 
func_opt_split ()
7923
 
{
7924
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7925
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7926
 
}
7927
 
 
7928
 
# func_lo2o object
7929
 
func_lo2o ()
7930
 
{
7931
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7932
 
}
7933
 
 
7934
 
# func_xform libobj-or-source
7935
 
func_xform ()
7936
 
{
7937
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7938
 
}
7939
 
 
7940
 
# func_arith arithmetic-term...
7941
 
func_arith ()
7942
 
{
7943
 
  func_arith_result=`expr "$[@]"`
7944
 
}
7945
 
 
7946
 
# func_len string
7947
 
# STRING may not start with a hyphen.
7948
 
func_len ()
7949
 
{
7950
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7951
 
}
7952
 
 
7953
 
_LT_EOF
7954
 
esac
7955
 
 
7956
 
case $lt_shell_append in
7957
 
  yes)
7958
 
    cat << \_LT_EOF >> "$cfgfile"
7959
 
 
7960
 
# func_append var value
7961
 
# Append VALUE to the end of shell variable VAR.
7962
 
func_append ()
7963
 
{
7964
 
  eval "$[1]+=\$[2]"
7965
 
}
7966
 
_LT_EOF
7967
 
    ;;
7968
 
  *)
7969
 
    cat << \_LT_EOF >> "$cfgfile"
7970
 
 
7971
 
# func_append var value
7972
 
# Append VALUE to the end of shell variable VAR.
7973
 
func_append ()
7974
 
{
7975
 
  eval "$[1]=\$$[1]\$[2]"
7976
 
}
7977
 
 
7978
 
_LT_EOF
7979
 
    ;;
7980
 
  esac
7981
 
])
7982
 
 
7983
 
# Helper functions for option handling.                    -*- Autoconf -*-
7984
 
#
7985
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7986
 
#   Written by Gary V. Vaughan, 2004
7987
 
#
7988
 
# This file is free software; the Free Software Foundation gives
7989
 
# unlimited permission to copy and/or distribute it, with or without
7990
 
# modifications, as long as this notice is preserved.
7991
 
 
7992
 
# serial 6 ltoptions.m4
7993
 
 
7994
 
# This is to help aclocal find these macros, as it can't see m4_define.
7995
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7996
 
 
7997
 
 
7998
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7999
 
# ------------------------------------------
8000
 
m4_define([_LT_MANGLE_OPTION],
8001
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8002
 
 
8003
 
 
8004
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8005
 
# ---------------------------------------
8006
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8007
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8008
 
# saved as a flag.
8009
 
m4_define([_LT_SET_OPTION],
8010
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8011
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8012
 
        _LT_MANGLE_DEFUN([$1], [$2]),
8013
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8014
 
])
8015
 
 
8016
 
 
8017
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8018
 
# ------------------------------------------------------------
8019
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8020
 
m4_define([_LT_IF_OPTION],
8021
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8022
 
 
8023
 
 
8024
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8025
 
# -------------------------------------------------------
8026
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8027
 
# are set.
8028
 
m4_define([_LT_UNLESS_OPTIONS],
8029
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8030
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8031
 
                      [m4_define([$0_found])])])[]dnl
8032
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8033
 
])[]dnl
8034
 
])
8035
 
 
8036
 
 
8037
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8038
 
# ----------------------------------------
8039
 
# OPTION-LIST is a space-separated list of Libtool options associated
8040
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8041
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8042
 
# the unknown option and exit.
8043
 
m4_defun([_LT_SET_OPTIONS],
8044
 
[# Set options
8045
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8046
 
    [_LT_SET_OPTION([$1], _LT_Option)])
8047
 
 
8048
 
m4_if([$1],[LT_INIT],[
8049
 
  dnl
8050
 
  dnl Simply set some default values (i.e off) if boolean options were not
8051
 
  dnl specified:
8052
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8053
 
  ])
8054
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8055
 
  ])
8056
 
  dnl
8057
 
  dnl If no reference was made to various pairs of opposing options, then
8058
 
  dnl we run the default mode handler for the pair.  For example, if neither
8059
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8060
 
  dnl archives by default:
8061
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8062
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8063
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8064
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8065
 
                   [_LT_ENABLE_FAST_INSTALL])
8066
 
  ])
8067
 
])# _LT_SET_OPTIONS
8068
 
 
8069
 
 
8070
 
 
8071
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8072
 
# -----------------------------------------
8073
 
m4_define([_LT_MANGLE_DEFUN],
8074
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8075
 
 
8076
 
 
8077
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8078
 
# -----------------------------------------------
8079
 
m4_define([LT_OPTION_DEFINE],
8080
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8081
 
])# LT_OPTION_DEFINE
8082
 
 
8083
 
 
8084
 
# dlopen
8085
 
# ------
8086
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8087
 
])
8088
 
 
8089
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8090
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
8091
 
AC_DIAGNOSE([obsolete],
8092
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8093
 
put the `dlopen' option into LT_INIT's first parameter.])
8094
 
])
8095
 
 
8096
 
dnl aclocal-1.4 backwards compatibility:
8097
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8098
 
 
8099
 
 
8100
 
# win32-dll
8101
 
# ---------
8102
 
# Declare package support for building win32 dll's.
8103
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8104
 
[enable_win32_dll=yes
8105
 
 
8106
 
case $host in
8107
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8108
 
  AC_CHECK_TOOL(AS, as, false)
8109
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8110
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8111
 
  ;;
8112
 
esac
8113
 
 
8114
 
test -z "$AS" && AS=as
8115
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8116
 
 
8117
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8118
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8119
 
 
8120
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8121
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8122
 
])# win32-dll
8123
 
 
8124
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8125
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8126
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
8127
 
AC_DIAGNOSE([obsolete],
8128
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8129
 
put the `win32-dll' option into LT_INIT's first parameter.])
8130
 
])
8131
 
 
8132
 
dnl aclocal-1.4 backwards compatibility:
8133
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8134
 
 
8135
 
 
8136
 
# _LT_ENABLE_SHARED([DEFAULT])
8137
 
# ----------------------------
8138
 
# implement the --enable-shared flag, and supports the `shared' and
8139
 
# `disable-shared' LT_INIT options.
8140
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8141
 
m4_define([_LT_ENABLE_SHARED],
8142
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8143
 
AC_ARG_ENABLE([shared],
8144
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8145
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8146
 
    [p=${PACKAGE-default}
8147
 
    case $enableval in
8148
 
    yes) enable_shared=yes ;;
8149
 
    no) enable_shared=no ;;
8150
 
    *)
8151
 
      enable_shared=no
8152
 
      # Look at the argument we got.  We use all the common list separators.
8153
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8154
 
      for pkg in $enableval; do
8155
 
        IFS="$lt_save_ifs"
8156
 
        if test "X$pkg" = "X$p"; then
8157
 
          enable_shared=yes
8158
 
        fi
8159
 
      done
8160
 
      IFS="$lt_save_ifs"
8161
 
      ;;
8162
 
    esac],
8163
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8164
 
 
8165
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8166
 
        [Whether or not to build shared libraries])
8167
 
])# _LT_ENABLE_SHARED
8168
 
 
8169
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8170
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8171
 
 
8172
 
# Old names:
8173
 
AC_DEFUN([AC_ENABLE_SHARED],
8174
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8175
 
])
8176
 
 
8177
 
AC_DEFUN([AC_DISABLE_SHARED],
8178
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8179
 
])
8180
 
 
8181
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8182
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8183
 
 
8184
 
dnl aclocal-1.4 backwards compatibility:
8185
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8186
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8187
 
 
8188
 
 
8189
 
 
8190
 
# _LT_ENABLE_STATIC([DEFAULT])
8191
 
# ----------------------------
8192
 
# implement the --enable-static flag, and support the `static' and
8193
 
# `disable-static' LT_INIT options.
8194
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8195
 
m4_define([_LT_ENABLE_STATIC],
8196
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8197
 
AC_ARG_ENABLE([static],
8198
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8199
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8200
 
    [p=${PACKAGE-default}
8201
 
    case $enableval in
8202
 
    yes) enable_static=yes ;;
8203
 
    no) enable_static=no ;;
8204
 
    *)
8205
 
     enable_static=no
8206
 
      # Look at the argument we got.  We use all the common list separators.
8207
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208
 
      for pkg in $enableval; do
8209
 
        IFS="$lt_save_ifs"
8210
 
        if test "X$pkg" = "X$p"; then
8211
 
          enable_static=yes
8212
 
        fi
8213
 
      done
8214
 
      IFS="$lt_save_ifs"
8215
 
      ;;
8216
 
    esac],
8217
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8218
 
 
8219
 
    _LT_DECL([build_old_libs], [enable_static], [0],
8220
 
        [Whether or not to build static libraries])
8221
 
])# _LT_ENABLE_STATIC
8222
 
 
8223
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8224
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8225
 
 
8226
 
# Old names:
8227
 
AC_DEFUN([AC_ENABLE_STATIC],
8228
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8229
 
])
8230
 
 
8231
 
AC_DEFUN([AC_DISABLE_STATIC],
8232
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
8233
 
])
8234
 
 
8235
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8236
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8237
 
 
8238
 
dnl aclocal-1.4 backwards compatibility:
8239
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8240
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8241
 
 
8242
 
 
8243
 
 
8244
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8245
 
# ----------------------------------
8246
 
# implement the --enable-fast-install flag, and support the `fast-install'
8247
 
# and `disable-fast-install' LT_INIT options.
8248
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8249
 
m4_define([_LT_ENABLE_FAST_INSTALL],
8250
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8251
 
AC_ARG_ENABLE([fast-install],
8252
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8253
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8254
 
    [p=${PACKAGE-default}
8255
 
    case $enableval in
8256
 
    yes) enable_fast_install=yes ;;
8257
 
    no) enable_fast_install=no ;;
8258
 
    *)
8259
 
      enable_fast_install=no
8260
 
      # Look at the argument we got.  We use all the common list separators.
8261
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8262
 
      for pkg in $enableval; do
8263
 
        IFS="$lt_save_ifs"
8264
 
        if test "X$pkg" = "X$p"; then
8265
 
          enable_fast_install=yes
8266
 
        fi
8267
 
      done
8268
 
      IFS="$lt_save_ifs"
8269
 
      ;;
8270
 
    esac],
8271
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8272
 
 
8273
 
_LT_DECL([fast_install], [enable_fast_install], [0],
8274
 
         [Whether or not to optimize for fast installation])dnl
8275
 
])# _LT_ENABLE_FAST_INSTALL
8276
 
 
8277
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8278
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8279
 
 
8280
 
# Old names:
8281
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8282
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8283
 
AC_DIAGNOSE([obsolete],
8284
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8285
 
the `fast-install' option into LT_INIT's first parameter.])
8286
 
])
8287
 
 
8288
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8289
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8290
 
AC_DIAGNOSE([obsolete],
8291
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8292
 
the `disable-fast-install' option into LT_INIT's first parameter.])
8293
 
])
8294
 
 
8295
 
dnl aclocal-1.4 backwards compatibility:
8296
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8297
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8298
 
 
8299
 
 
8300
 
# _LT_WITH_PIC([MODE])
8301
 
# --------------------
8302
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8303
 
# LT_INIT options.
8304
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8305
 
m4_define([_LT_WITH_PIC],
8306
 
[AC_ARG_WITH([pic],
8307
 
    [AS_HELP_STRING([--with-pic],
8308
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8309
 
    [pic_mode="$withval"],
8310
 
    [pic_mode=default])
8311
 
 
8312
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8313
 
 
8314
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8315
 
])# _LT_WITH_PIC
8316
 
 
8317
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8318
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8319
 
 
8320
 
# Old name:
8321
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
8322
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
8323
 
AC_DIAGNOSE([obsolete],
8324
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8325
 
put the `pic-only' option into LT_INIT's first parameter.])
8326
 
])
8327
 
 
8328
 
dnl aclocal-1.4 backwards compatibility:
8329
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8330
 
 
8331
 
 
8332
 
m4_define([_LTDL_MODE], [])
8333
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8334
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
8335
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8336
 
                 [m4_define([_LTDL_MODE], [recursive])])
8337
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8338
 
                 [m4_define([_LTDL_MODE], [subproject])])
8339
 
 
8340
 
m4_define([_LTDL_TYPE], [])
8341
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8342
 
                 [m4_define([_LTDL_TYPE], [installable])])
8343
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8344
 
                 [m4_define([_LTDL_TYPE], [convenience])])
8345
 
 
8346
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8347
 
#
8348
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8349
 
#   Written by Gary V. Vaughan, 2004
8350
 
#
8351
 
# This file is free software; the Free Software Foundation gives
8352
 
# unlimited permission to copy and/or distribute it, with or without
8353
 
# modifications, as long as this notice is preserved.
8354
 
 
8355
 
# serial 5 ltsugar.m4
8356
 
 
8357
 
# This is to help aclocal find these macros, as it can't see m4_define.
8358
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8359
 
 
8360
 
 
8361
 
# lt_join(SEP, ARG1, [ARG2...])
8362
 
# -----------------------------
8363
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8364
 
# associated separator.
8365
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8366
 
# versions in m4sugar had bugs.
8367
 
m4_define([lt_join],
8368
 
[m4_if([$#], [1], [],
8369
 
       [$#], [2], [[$2]],
8370
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8371
 
m4_define([_lt_join],
8372
 
[m4_if([$#$2], [2], [],
8373
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8374
 
 
8375
 
 
8376
 
# lt_car(LIST)
8377
 
# lt_cdr(LIST)
8378
 
# ------------
8379
 
# Manipulate m4 lists.
8380
 
# These macros are necessary as long as will still need to support
8381
 
# Autoconf-2.59 which quotes differently.
8382
 
m4_define([lt_car], [[$1]])
8383
 
m4_define([lt_cdr],
8384
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8385
 
       [$#], 1, [],
8386
 
       [m4_dquote(m4_shift($@))])])
8387
 
m4_define([lt_unquote], $1)
8388
 
 
8389
 
 
8390
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8391
 
# ------------------------------------------
8392
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8393
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8394
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8395
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8396
 
# than defined and empty).
8397
 
#
8398
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8399
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8400
 
m4_define([lt_append],
8401
 
[m4_define([$1],
8402
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8403
 
 
8404
 
 
8405
 
 
8406
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8407
 
# ----------------------------------------------------------
8408
 
# Produce a SEP delimited list of all paired combinations of elements of
8409
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8410
 
# has the form PREFIXmINFIXSUFFIXn.
8411
 
m4_define([lt_combine],
8412
 
[m4_if([$2], [], [],
8413
 
  [m4_if([$4], [], [],
8414
 
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
8415
 
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8416
 
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8417
 
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8418
 
])
8419
 
 
8420
 
 
8421
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8422
 
# -----------------------------------------------------------------------
8423
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8424
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8425
 
m4_define([lt_if_append_uniq],
8426
 
[m4_ifdef([$1],
8427
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8428
 
                 [lt_append([$1], [$2], [$3])$4],
8429
 
                 [$5])],
8430
 
          [lt_append([$1], [$2], [$3])$4])])
8431
 
 
8432
 
 
8433
 
# lt_dict_add(DICT, KEY, VALUE)
8434
 
# -----------------------------
8435
 
m4_define([lt_dict_add],
8436
 
[m4_define([$1($2)], [$3])])
8437
 
 
8438
 
 
8439
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8440
 
# --------------------------------------------
8441
 
m4_define([lt_dict_add_subkey],
8442
 
[m4_define([$1($2:$3)], [$4])])
8443
 
 
8444
 
 
8445
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8446
 
# ----------------------------------
8447
 
m4_define([lt_dict_fetch],
8448
 
[m4_ifval([$3],
8449
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8450
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8451
 
 
8452
 
 
8453
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8454
 
# -----------------------------------------------------------------
8455
 
m4_define([lt_if_dict_fetch],
8456
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8457
 
        [$5],
8458
 
    [$6])])
8459
 
 
8460
 
 
8461
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8462
 
# --------------------------------------------------------------
8463
 
m4_define([lt_dict_filter],
8464
 
[m4_if([$5], [], [],
8465
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8466
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8467
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8468
 
])
8469
 
 
8470
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
8471
 
#
8472
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
8473
 
#   Written by Scott James Remnant, 2004
8474
 
#
8475
 
# This file is free software; the Free Software Foundation gives
8476
 
# unlimited permission to copy and/or distribute it, with or without
8477
 
# modifications, as long as this notice is preserved.
8478
 
 
8479
 
# Generated from ltversion.in.
8480
 
 
8481
 
# serial 2976 ltversion.m4
8482
 
# This file is part of GNU Libtool
8483
 
 
8484
 
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8485
 
m4_define([LT_PACKAGE_REVISION], [1.2976])
8486
 
 
8487
 
AC_DEFUN([LTVERSION_VERSION],
8488
 
[macro_version='2.2.4'
8489
 
macro_revision='1.2976'
8490
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8491
 
_LT_DECL(, macro_revision, 0)
8492
 
])
8493
 
 
8494
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8495
 
#
8496
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8497
 
#   Written by Scott James Remnant, 2004.
8498
 
#
8499
 
# This file is free software; the Free Software Foundation gives
8500
 
# unlimited permission to copy and/or distribute it, with or without
8501
 
# modifications, as long as this notice is preserved.
8502
 
 
8503
 
# serial 4 lt~obsolete.m4
8504
 
 
8505
 
# These exist entirely to fool aclocal when bootstrapping libtool.
8506
 
#
8507
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8508
 
# which have later been changed to m4_define as they aren't part of the
8509
 
# exported API, or moved to Autoconf or Automake where they belong.
8510
 
#
8511
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8512
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8513
 
# using a macro with the same name in our local m4/libtool.m4 it'll
8514
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8515
 
# and doesn't know about Autoconf macros at all.)
8516
 
#
8517
 
# So we provide this file, which has a silly filename so it's always
8518
 
# included after everything else.  This provides aclocal with the
8519
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8520
 
# because those macros already exist, or will be overwritten later.
8521
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8522
 
#
8523
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8524
 
# Yes, that means every name once taken will need to remain here until
8525
 
# we give up compatibility with versions before 1.7, at which point
8526
 
# we need to keep only those names which we still refer to.
8527
 
 
8528
 
# This is to help aclocal find these macros, as it can't see m4_define.
8529
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8530
 
 
8531
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8532
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8533
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8534
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8535
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8536
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8537
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8538
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8539
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8540
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8541
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8542
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8543
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8544
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8545
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8546
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8547
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8548
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8549
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8550
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8551
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8552
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8553
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8554
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8555
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8556
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8557
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8558
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8559
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8560
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8561
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8562
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8563
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8564
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8565
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8566
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8567
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8568
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8569
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8570
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8571
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8572
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8573
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8574
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8575
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8576
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8577
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8578
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8579
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8580
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8581
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8582
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8583
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8584
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8585
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8586
 
 
8587
 
# nls.m4 serial 3 (gettext-0.15)
8588
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8589
 
dnl This file is free software; the Free Software Foundation
8590
 
dnl gives unlimited permission to copy and/or distribute it,
8591
 
dnl with or without modifications, as long as this notice is preserved.
8592
 
dnl
8593
 
dnl This file can can be used in projects which are not available under
8594
 
dnl the GNU General Public License or the GNU Library General Public
8595
 
dnl License but which still want to provide support for the GNU gettext
8596
 
dnl functionality.
8597
 
dnl Please note that the actual code of the GNU gettext library is covered
8598
 
dnl by the GNU Library General Public License, and the rest of the GNU
8599
 
dnl gettext package package is covered by the GNU General Public License.
8600
 
dnl They are *not* in the public domain.
8601
 
 
8602
 
dnl Authors:
8603
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8604
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8605
 
 
8606
 
AC_PREREQ(2.50)
8607
 
 
8608
 
AC_DEFUN([AM_NLS],
8609
 
[
8610
 
  AC_MSG_CHECKING([whether NLS is requested])
8611
 
  dnl Default is enabled NLS
8612
 
  AC_ARG_ENABLE(nls,
8613
 
    [  --disable-nls           do not use Native Language Support],
8614
 
    USE_NLS=$enableval, USE_NLS=yes)
8615
 
  AC_MSG_RESULT($USE_NLS)
8616
 
  AC_SUBST(USE_NLS)
8617
7307
])
8618
7308
 
8619
7309
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8684
7374
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8685
7375
# ---------------------------------------------
8686
7376
m4_define([_PKG_CONFIG],
8687
 
[if test -n "$PKG_CONFIG"; then
8688
 
    if test -n "$$1"; then
8689
 
        pkg_cv_[]$1="$$1"
8690
 
    else
8691
 
        PKG_CHECK_EXISTS([$3],
8692
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8693
 
                         [pkg_failed=yes])
8694
 
    fi
8695
 
else
8696
 
        pkg_failed=untried
 
7377
[if test -n "$$1"; then
 
7378
    pkg_cv_[]$1="$$1"
 
7379
 elif test -n "$PKG_CONFIG"; then
 
7380
    PKG_CHECK_EXISTS([$3],
 
7381
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
7382
                     [pkg_failed=yes])
 
7383
 else
 
7384
    pkg_failed=untried
8697
7385
fi[]dnl
8698
7386
])# _PKG_CONFIG
8699
7387
 
8737
7425
if test $pkg_failed = yes; then
8738
7426
        _PKG_SHORT_ERRORS_SUPPORTED
8739
7427
        if test $_pkg_short_errors_supported = yes; then
8740
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
7428
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
8741
7429
        else 
8742
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
7430
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
8743
7431
        fi
8744
7432
        # Put the nasty error message in config.log where it belongs
8745
7433
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8774
7462
fi[]dnl
8775
7463
])# PKG_CHECK_MODULES
8776
7464
 
8777
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
7465
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8778
7466
#
8779
7467
# This file is free software; the Free Software Foundation
8780
7468
# gives unlimited permission to copy and/or distribute it,
8789
7477
[am__api_version='1.10'
8790
7478
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8791
7479
dnl require some minimum version.  Point them to the right macro.
8792
 
m4_if([$1], [1.10.1], [],
 
7480
m4_if([$1], [1.10.2], [],
8793
7481
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8794
7482
])
8795
7483
 
8803
7491
# AM_SET_CURRENT_AUTOMAKE_VERSION
8804
7492
# -------------------------------
8805
7493
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8806
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
7494
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8807
7495
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8808
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
7496
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8809
7497
m4_ifndef([AC_AUTOCONF_VERSION],
8810
7498
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8811
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
7499
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8812
7500
 
8813
7501
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8814
7502
 
9058
7746
 
9059
7747
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9060
7748
 
9061
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7749
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9062
7750
# Free Software Foundation, Inc.
9063
7751
#
9064
7752
# This file is free software; the Free Software Foundation
9065
7753
# gives unlimited permission to copy and/or distribute it,
9066
7754
# with or without modifications, as long as this notice is preserved.
9067
7755
 
9068
 
#serial 3
 
7756
#serial 4
9069
7757
 
9070
7758
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9071
7759
# ------------------------------
9072
7760
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9073
 
[for mf in $CONFIG_FILES; do
 
7761
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
7762
# are listed without --file.  Let's play safe and only enable the eval
 
7763
# if we detect the quoting.
 
7764
case $CONFIG_FILES in
 
7765
*\'*) eval set x "$CONFIG_FILES" ;;
 
7766
*)   set x $CONFIG_FILES ;;
 
7767
esac
 
7768
shift
 
7769
for mf
 
7770
do
9074
7771
  # Strip MF so we end up with the name of the file.
9075
7772
  mf=`echo "$mf" | sed -e 's/:.*$//'`
9076
7773
  # Check whether this is an Automake generated Makefile or not.
9443
8140
 
9444
8141
# Helper functions for option handling.                     -*- Autoconf -*-
9445
8142
 
9446
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8143
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9447
8144
#
9448
8145
# This file is free software; the Free Software Foundation
9449
8146
# gives unlimited permission to copy and/or distribute it,
9450
8147
# with or without modifications, as long as this notice is preserved.
9451
8148
 
9452
 
# serial 3
 
8149
# serial 4
9453
8150
 
9454
8151
# _AM_MANGLE_OPTION(NAME)
9455
8152
# -----------------------
9466
8163
# ----------------------------------
9467
8164
# OPTIONS is a space-separated list of Automake options.
9468
8165
AC_DEFUN([_AM_SET_OPTIONS],
9469
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8166
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9470
8167
 
9471
8168
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9472
8169
# -------------------------------------------
9662
8359
AC_SUBST([am__untar])
9663
8360
]) # _AM_PROG_TAR
9664
8361
 
9665
 
dnl $Id: xdt-depends.m4 21591 2006-05-08 09:10:26Z benny $
 
8362
dnl $Id$
9666
8363
dnl
9667
8364
dnl Copyright (c) 2002-2006
9668
8365
dnl         The Xfce development team. All rights reserved.
10092
8789
])
10093
8790
 
10094
8791
 
10095
 
dnl $Id: xdt-i18n.m4 24486 2007-01-15 17:47:49Z benny $
 
8792
dnl $Id$
10096
8793
dnl
10097
8794
dnl Copyright (c) 2002-2006
10098
8795
dnl         The Xfce development team. All rights reserved.