~ubuntu-branches/ubuntu/lucid/gajim/lucid-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Maia Kozheva
  • Date: 2009-11-25 08:32:36 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: sikon@maia-desktop-20091125083236-hkxrujhn3amehuve
Merged new upstream release 0.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
452
452
fi])
453
453
 
454
454
 
455
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
456
 
#
457
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
458
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
459
 
#   Written by Gordon Matzigkeit, 1996
460
 
#
461
 
# This file is free software; the Free Software Foundation gives
462
 
# unlimited permission to copy and/or distribute it, with or without
463
 
# modifications, as long as this notice is preserved.
464
 
 
465
 
m4_define([_LT_COPYING], [dnl
466
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
467
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
468
 
#   Written by Gordon Matzigkeit, 1996
469
 
#
470
 
#   This file is part of GNU Libtool.
471
 
#
472
 
# GNU Libtool is free software; you can redistribute it and/or
473
 
# modify it under the terms of the GNU General Public License as
474
 
# published by the Free Software Foundation; either version 2 of
475
 
# the License, or (at your option) any later version.
476
 
#
477
 
# As a special exception to the GNU General Public License,
478
 
# if you distribute this file as part of a program or library that
479
 
# is built using GNU Libtool, you may include this file under the
480
 
# same distribution terms that you use for the rest of that program.
481
 
#
482
 
# GNU Libtool is distributed in the hope that it will be useful,
483
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
484
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
485
 
# GNU General Public License for more details.
486
 
#
487
 
# You should have received a copy of the GNU General Public License
488
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
489
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
490
 
# obtained by writing to the Free Software Foundation, Inc.,
491
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
492
 
])
493
 
 
494
 
# serial 56 LT_INIT
495
 
 
496
 
 
497
 
# LT_PREREQ(VERSION)
498
 
# ------------------
499
 
# Complain and exit if this libtool version is less that VERSION.
500
 
m4_defun([LT_PREREQ],
501
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
502
 
       [m4_default([$3],
503
 
                   [m4_fatal([Libtool version $1 or higher is required],
504
 
                             63)])],
505
 
       [$2])])
506
 
 
507
 
 
508
 
# _LT_CHECK_BUILDDIR
509
 
# ------------------
510
 
# Complain if the absolute build directory name contains unusual characters
511
 
m4_defun([_LT_CHECK_BUILDDIR],
512
 
[case `pwd` in
513
 
  *\ * | *\     *)
514
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
515
 
esac
516
 
])
517
 
 
518
 
 
519
 
# LT_INIT([OPTIONS])
520
 
# ------------------
521
 
AC_DEFUN([LT_INIT],
522
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
523
 
AC_BEFORE([$0], [LT_LANG])dnl
524
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
525
 
AC_BEFORE([$0], [LTDL_INIT])dnl
526
 
m4_require([_LT_CHECK_BUILDDIR])dnl
527
 
 
528
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
529
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
530
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
531
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
532
 
dnl unless we require an AC_DEFUNed macro:
533
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
534
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
535
 
AC_REQUIRE([LTVERSION_VERSION])dnl
536
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
537
 
m4_require([_LT_PROG_LTMAIN])dnl
538
 
 
539
 
dnl Parse OPTIONS
540
 
_LT_SET_OPTIONS([$0], [$1])
541
 
 
542
 
# This can be used to rebuild libtool when needed
543
 
LIBTOOL_DEPS="$ltmain"
544
 
 
545
 
# Always use our own libtool.
546
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
547
 
AC_SUBST(LIBTOOL)dnl
548
 
 
549
 
_LT_SETUP
550
 
 
551
 
# Only expand once:
552
 
m4_define([LT_INIT])
553
 
])# LT_INIT
554
 
 
555
 
# Old names:
556
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
557
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
558
 
dnl aclocal-1.4 backwards compatibility:
559
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
560
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
561
 
 
562
 
 
563
 
# _LT_CC_BASENAME(CC)
564
 
# -------------------
565
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
566
 
m4_defun([_LT_CC_BASENAME],
567
 
[for cc_temp in $1""; do
568
 
  case $cc_temp in
569
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
570
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
571
 
    \-*) ;;
572
 
    *) break;;
573
 
  esac
574
 
done
575
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
576
 
])
577
 
 
578
 
 
579
 
# _LT_FILEUTILS_DEFAULTS
580
 
# ----------------------
581
 
# It is okay to use these file commands and assume they have been set
582
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
583
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
584
 
[: ${CP="cp -f"}
585
 
: ${MV="mv -f"}
586
 
: ${RM="rm -f"}
587
 
])# _LT_FILEUTILS_DEFAULTS
588
 
 
589
 
 
590
 
# _LT_SETUP
591
 
# ---------
592
 
m4_defun([_LT_SETUP],
593
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
594
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
595
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
596
 
_LT_DECL([], [host], [0])dnl
597
 
_LT_DECL([], [host_os], [0])dnl
598
 
dnl
599
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
600
 
_LT_DECL([], [build], [0])dnl
601
 
_LT_DECL([], [build_os], [0])dnl
602
 
dnl
603
 
AC_REQUIRE([AC_PROG_CC])dnl
604
 
AC_REQUIRE([LT_PATH_LD])dnl
605
 
AC_REQUIRE([LT_PATH_NM])dnl
606
 
dnl
607
 
AC_REQUIRE([AC_PROG_LN_S])dnl
608
 
test -z "$LN_S" && LN_S="ln -s"
609
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
610
 
dnl
611
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
612
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
613
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
614
 
dnl
615
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
616
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
617
 
m4_require([_LT_CMD_RELOAD])dnl
618
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
619
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
620
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
621
 
 
622
 
_LT_CONFIG_LIBTOOL_INIT([
623
 
# See if we are running on zsh, and set the options which allow our
624
 
# commands through without removal of \ escapes INIT.
625
 
if test -n "\${ZSH_VERSION+set}" ; then
626
 
   setopt NO_GLOB_SUBST
627
 
fi
628
 
])
629
 
if test -n "${ZSH_VERSION+set}" ; then
630
 
   setopt NO_GLOB_SUBST
631
 
fi
632
 
 
633
 
_LT_CHECK_OBJDIR
634
 
 
635
 
m4_require([_LT_TAG_COMPILER])dnl
636
 
_LT_PROG_ECHO_BACKSLASH
637
 
 
638
 
case $host_os in
639
 
aix3*)
640
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
641
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
642
 
  # vanish in a puff of smoke.
643
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
644
 
    COLLECT_NAMES=
645
 
    export COLLECT_NAMES
646
 
  fi
647
 
  ;;
648
 
esac
649
 
 
650
 
# Sed substitution that helps us do robust quoting.  It backslashifies
651
 
# metacharacters that are still active within double-quoted strings.
652
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
653
 
 
654
 
# Same as above, but do not quote variable references.
655
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
656
 
 
657
 
# Sed substitution to delay expansion of an escaped shell variable in a
658
 
# double_quote_subst'ed string.
659
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
660
 
 
661
 
# Sed substitution to delay expansion of an escaped single quote.
662
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
663
 
 
664
 
# Sed substitution to avoid accidental globbing in evaled expressions
665
 
no_glob_subst='s/\*/\\\*/g'
666
 
 
667
 
# Global variables:
668
 
ofile=libtool
669
 
can_build_shared=yes
670
 
 
671
 
# All known linkers require a `.a' archive for static linking (except MSVC,
672
 
# which needs '.lib').
673
 
libext=a
674
 
 
675
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
676
 
 
677
 
old_CC="$CC"
678
 
old_CFLAGS="$CFLAGS"
679
 
 
680
 
# Set sane defaults for various variables
681
 
test -z "$CC" && CC=cc
682
 
test -z "$LTCC" && LTCC=$CC
683
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
684
 
test -z "$LD" && LD=ld
685
 
test -z "$ac_objext" && ac_objext=o
686
 
 
687
 
_LT_CC_BASENAME([$compiler])
688
 
 
689
 
# Only perform the check for file, if the check method requires it
690
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
691
 
case $deplibs_check_method in
692
 
file_magic*)
693
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
694
 
    _LT_PATH_MAGIC
695
 
  fi
696
 
  ;;
697
 
esac
698
 
 
699
 
# Use C for the default configuration in the libtool script
700
 
LT_SUPPORTED_TAG([CC])
701
 
_LT_LANG_C_CONFIG
702
 
_LT_LANG_DEFAULT_CONFIG
703
 
_LT_CONFIG_COMMANDS
704
 
])# _LT_SETUP
705
 
 
706
 
 
707
 
# _LT_PROG_LTMAIN
708
 
# ---------------
709
 
# Note that this code is called both from `configure', and `config.status'
710
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
711
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
712
 
# so we pass a copy along to make sure it has a sensible value anyway.
713
 
m4_defun([_LT_PROG_LTMAIN],
714
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
715
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
716
 
ltmain="$ac_aux_dir/ltmain.sh"
717
 
])# _LT_PROG_LTMAIN
718
 
 
719
 
 
720
 
 
721
 
# So that we can recreate a full libtool script including additional
722
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
723
 
# in macros and then make a single call at the end using the `libtool'
724
 
# label.
725
 
 
726
 
 
727
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
728
 
# ----------------------------------------
729
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
730
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
731
 
[m4_ifval([$1],
732
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
733
 
                     [$1
734
 
])])])
735
 
 
736
 
# Initialize.
737
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
738
 
 
739
 
 
740
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
741
 
# ------------------------------
742
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
743
 
m4_define([_LT_CONFIG_LIBTOOL],
744
 
[m4_ifval([$1],
745
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
746
 
                     [$1
747
 
])])])
748
 
 
749
 
# Initialize.
750
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
751
 
 
752
 
 
753
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
754
 
# -----------------------------------------------------
755
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
756
 
[_LT_CONFIG_LIBTOOL([$1])
757
 
_LT_CONFIG_LIBTOOL_INIT([$2])
758
 
])
759
 
 
760
 
 
761
 
# _LT_FORMAT_COMMENT([COMMENT])
762
 
# -----------------------------
763
 
# Add leading comment marks to the start of each line, and a trailing
764
 
# full-stop to the whole comment if one is not present already.
765
 
m4_define([_LT_FORMAT_COMMENT],
766
 
[m4_ifval([$1], [
767
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
768
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
769
 
)])
770
 
 
771
 
 
772
 
 
773
 
 
774
 
 
775
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
776
 
# -------------------------------------------------------------------
777
 
# CONFIGNAME is the name given to the value in the libtool script.
778
 
# VARNAME is the (base) name used in the configure script.
779
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
780
 
# VARNAME.  Any other value will be used directly.
781
 
m4_define([_LT_DECL],
782
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
783
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
784
 
        [m4_ifval([$1], [$1], [$2])])
785
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
786
 
    m4_ifval([$4],
787
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
788
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
789
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
790
 
])
791
 
 
792
 
 
793
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
794
 
# --------------------------------------------------------
795
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
796
 
 
797
 
 
798
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
799
 
# ------------------------------------------------
800
 
m4_define([lt_decl_tag_varnames],
801
 
[_lt_decl_filter([tagged?], [yes], $@)])
802
 
 
803
 
 
804
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
805
 
# ---------------------------------------------------------
806
 
m4_define([_lt_decl_filter],
807
 
[m4_case([$#],
808
 
  [0], [m4_fatal([$0: too few arguments: $#])],
809
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
810
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
811
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
812
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
813
 
])
814
 
 
815
 
 
816
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
817
 
# --------------------------------------------------
818
 
m4_define([lt_decl_quote_varnames],
819
 
[_lt_decl_filter([value], [1], $@)])
820
 
 
821
 
 
822
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
823
 
# ---------------------------------------------------
824
 
m4_define([lt_decl_dquote_varnames],
825
 
[_lt_decl_filter([value], [2], $@)])
826
 
 
827
 
 
828
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
829
 
# ---------------------------------------------------
830
 
m4_define([lt_decl_varnames_tagged],
831
 
[m4_assert([$# <= 2])dnl
832
 
_$0(m4_quote(m4_default([$1], [[, ]])),
833
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
834
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
835
 
m4_define([_lt_decl_varnames_tagged],
836
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
837
 
 
838
 
 
839
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
840
 
# ------------------------------------------------
841
 
m4_define([lt_decl_all_varnames],
842
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
843
 
     m4_if([$2], [],
844
 
           m4_quote(lt_decl_varnames),
845
 
        m4_quote(m4_shift($@))))[]dnl
846
 
])
847
 
m4_define([_lt_decl_all_varnames],
848
 
[lt_join($@, lt_decl_varnames_tagged([$1],
849
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
850
 
])
851
 
 
852
 
 
853
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
854
 
# ------------------------------------
855
 
# Quote a variable value, and forward it to `config.status' so that its
856
 
# declaration there will have the same value as in `configure'.  VARNAME
857
 
# must have a single quote delimited value for this to work.
858
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
859
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
860
 
 
861
 
 
862
 
# _LT_CONFIG_STATUS_DECLARATIONS
863
 
# ------------------------------
864
 
# We delimit libtool config variables with single quotes, so when
865
 
# we write them to config.status, we have to be sure to quote all
866
 
# embedded single quotes properly.  In configure, this macro expands
867
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
868
 
#
869
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
870
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
871
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
872
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
873
 
 
874
 
 
875
 
# _LT_LIBTOOL_TAGS
876
 
# ----------------
877
 
# Output comment and list of tags supported by the script
878
 
m4_defun([_LT_LIBTOOL_TAGS],
879
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
880
 
available_tags="_LT_TAGS"dnl
881
 
])
882
 
 
883
 
 
884
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
885
 
# -----------------------------------
886
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
887
 
# expand to a commented shell variable setting:
888
 
#
889
 
#    # Some comment about what VAR is for.
890
 
#    visible_name=$lt_internal_name
891
 
m4_define([_LT_LIBTOOL_DECLARE],
892
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
893
 
                                           [description])))[]dnl
894
 
m4_pushdef([_libtool_name],
895
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
896
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
897
 
    [0], [_libtool_name=[$]$1],
898
 
    [1], [_libtool_name=$lt_[]$1],
899
 
    [2], [_libtool_name=$lt_[]$1],
900
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
901
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
902
 
])
903
 
 
904
 
 
905
 
# _LT_LIBTOOL_CONFIG_VARS
906
 
# -----------------------
907
 
# Produce commented declarations of non-tagged libtool config variables
908
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
909
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
910
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
911
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
912
 
[m4_foreach([_lt_var],
913
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
914
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
915
 
 
916
 
 
917
 
# _LT_LIBTOOL_TAG_VARS(TAG)
918
 
# -------------------------
919
 
m4_define([_LT_LIBTOOL_TAG_VARS],
920
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
921
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
922
 
 
923
 
 
924
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
925
 
# ------------------------------
926
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
927
 
 
928
 
 
929
 
# _LT_CONFIG_COMMANDS
930
 
# -------------------
931
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
932
 
# variables for single and double quote escaping we saved from calls
933
 
# to _LT_DECL, we can put quote escaped variables declarations
934
 
# into `config.status', and then the shell code to quote escape them in
935
 
# for loops in `config.status'.  Finally, any additional code accumulated
936
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
937
 
m4_defun([_LT_CONFIG_COMMANDS],
938
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
939
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
940
 
        dnl instead of duplicating it all over again into config.status,
941
 
        dnl then we will have config.status run $CONFIG_LT later, so it
942
 
        dnl needs to know what name is stored there:
943
 
        [AC_CONFIG_COMMANDS([libtool],
944
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
945
 
    dnl If the libtool generation code is destined for config.status,
946
 
    dnl expand the accumulated commands and init code now:
947
 
    [AC_CONFIG_COMMANDS([libtool],
948
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
949
 
])#_LT_CONFIG_COMMANDS
950
 
 
951
 
 
952
 
# Initialize.
953
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
954
 
[
955
 
 
956
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
957
 
# if CDPATH is set.
958
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
959
 
 
960
 
sed_quote_subst='$sed_quote_subst'
961
 
double_quote_subst='$double_quote_subst'
962
 
delay_variable_subst='$delay_variable_subst'
963
 
_LT_CONFIG_STATUS_DECLARATIONS
964
 
LTCC='$LTCC'
965
 
LTCFLAGS='$LTCFLAGS'
966
 
compiler='$compiler_DEFAULT'
967
 
 
968
 
# Quote evaled strings.
969
 
for var in lt_decl_all_varnames([[ \
970
 
]], lt_decl_quote_varnames); do
971
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
972
 
    *[[\\\\\\\`\\"\\\$]]*)
973
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
974
 
      ;;
975
 
    *)
976
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
977
 
      ;;
978
 
    esac
979
 
done
980
 
 
981
 
# Double-quote double-evaled strings.
982
 
for var in lt_decl_all_varnames([[ \
983
 
]], lt_decl_dquote_varnames); do
984
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
985
 
    *[[\\\\\\\`\\"\\\$]]*)
986
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
987
 
      ;;
988
 
    *)
989
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
990
 
      ;;
991
 
    esac
992
 
done
993
 
 
994
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
995
 
case \$lt_ECHO in
996
 
*'\\\[$]0 --fallback-echo"')dnl "
997
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
998
 
  ;;
999
 
esac
1000
 
 
1001
 
_LT_OUTPUT_LIBTOOL_INIT
1002
 
])
1003
 
 
1004
 
 
1005
 
# LT_OUTPUT
1006
 
# ---------
1007
 
# This macro allows early generation of the libtool script (before
1008
 
# AC_OUTPUT is called), incase it is used in configure for compilation
1009
 
# tests.
1010
 
AC_DEFUN([LT_OUTPUT],
1011
 
[: ${CONFIG_LT=./config.lt}
1012
 
AC_MSG_NOTICE([creating $CONFIG_LT])
1013
 
cat >"$CONFIG_LT" <<_LTEOF
1014
 
#! $SHELL
1015
 
# Generated by $as_me.
1016
 
# Run this file to recreate a libtool stub with the current configuration.
1017
 
 
1018
 
lt_cl_silent=false
1019
 
SHELL=\${CONFIG_SHELL-$SHELL}
1020
 
_LTEOF
1021
 
 
1022
 
cat >>"$CONFIG_LT" <<\_LTEOF
1023
 
AS_SHELL_SANITIZE
1024
 
_AS_PREPARE
1025
 
 
1026
 
exec AS_MESSAGE_FD>&1
1027
 
exec AS_MESSAGE_LOG_FD>>config.log
1028
 
{
1029
 
  echo
1030
 
  AS_BOX([Running $as_me.])
1031
 
} >&AS_MESSAGE_LOG_FD
1032
 
 
1033
 
lt_cl_help="\
1034
 
\`$as_me' creates a local libtool stub from the current configuration,
1035
 
for use in further configure time tests before the real libtool is
1036
 
generated.
1037
 
 
1038
 
Usage: $[0] [[OPTIONS]]
1039
 
 
1040
 
  -h, --help      print this help, then exit
1041
 
  -V, --version   print version number, then exit
1042
 
  -q, --quiet     do not print progress messages
1043
 
  -d, --debug     don't remove temporary files
1044
 
 
1045
 
Report bugs to <bug-libtool@gnu.org>."
1046
 
 
1047
 
lt_cl_version="\
1048
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1049
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1050
 
configured by $[0], generated by m4_PACKAGE_STRING.
1051
 
 
1052
 
Copyright (C) 2008 Free Software Foundation, Inc.
1053
 
This config.lt script is free software; the Free Software Foundation
1054
 
gives unlimited permision to copy, distribute and modify it."
1055
 
 
1056
 
while test $[#] != 0
1057
 
do
1058
 
  case $[1] in
1059
 
    --version | --v* | -V )
1060
 
      echo "$lt_cl_version"; exit 0 ;;
1061
 
    --help | --h* | -h )
1062
 
      echo "$lt_cl_help"; exit 0 ;;
1063
 
    --debug | --d* | -d )
1064
 
      debug=: ;;
1065
 
    --quiet | --q* | --silent | --s* | -q )
1066
 
      lt_cl_silent=: ;;
1067
 
 
1068
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1069
 
Try \`$[0] --help' for more information.]) ;;
1070
 
 
1071
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1072
 
Try \`$[0] --help' for more information.]) ;;
1073
 
  esac
1074
 
  shift
1075
 
done
1076
 
 
1077
 
if $lt_cl_silent; then
1078
 
  exec AS_MESSAGE_FD>/dev/null
1079
 
fi
1080
 
_LTEOF
1081
 
 
1082
 
cat >>"$CONFIG_LT" <<_LTEOF
1083
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1084
 
_LTEOF
1085
 
 
1086
 
cat >>"$CONFIG_LT" <<\_LTEOF
1087
 
AC_MSG_NOTICE([creating $ofile])
1088
 
_LT_OUTPUT_LIBTOOL_COMMANDS
1089
 
AS_EXIT(0)
1090
 
_LTEOF
1091
 
chmod +x "$CONFIG_LT"
1092
 
 
1093
 
# configure is writing to config.log, but config.lt does its own redirection,
1094
 
# appending to config.log, which fails on DOS, as config.log is still kept
1095
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1096
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
1097
 
if test "$no_create" != yes; then
1098
 
  lt_cl_success=:
1099
 
  test "$silent" = yes &&
1100
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1101
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1102
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1103
 
  exec AS_MESSAGE_LOG_FD>>config.log
1104
 
  $lt_cl_success || AS_EXIT(1)
1105
 
fi
1106
 
])# LT_OUTPUT
1107
 
 
1108
 
 
1109
 
# _LT_CONFIG(TAG)
1110
 
# ---------------
1111
 
# If TAG is the built-in tag, create an initial libtool script with a
1112
 
# default configuration from the untagged config vars.  Otherwise add code
1113
 
# to config.status for appending the configuration named by TAG from the
1114
 
# matching tagged config vars.
1115
 
m4_defun([_LT_CONFIG],
1116
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1117
 
_LT_CONFIG_SAVE_COMMANDS([
1118
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1119
 
  m4_if(_LT_TAG, [C], [
1120
 
    # See if we are running on zsh, and set the options which allow our
1121
 
    # commands through without removal of \ escapes.
1122
 
    if test -n "${ZSH_VERSION+set}" ; then
1123
 
      setopt NO_GLOB_SUBST
1124
 
    fi
1125
 
 
1126
 
    cfgfile="${ofile}T"
1127
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1128
 
    $RM "$cfgfile"
1129
 
 
1130
 
    cat <<_LT_EOF >> "$cfgfile"
1131
 
#! $SHELL
1132
 
 
1133
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1134
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1135
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1136
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1137
 
#
1138
 
_LT_COPYING
1139
 
_LT_LIBTOOL_TAGS
1140
 
 
1141
 
# ### BEGIN LIBTOOL CONFIG
1142
 
_LT_LIBTOOL_CONFIG_VARS
1143
 
_LT_LIBTOOL_TAG_VARS
1144
 
# ### END LIBTOOL CONFIG
1145
 
 
1146
 
_LT_EOF
1147
 
 
1148
 
  case $host_os in
1149
 
  aix3*)
1150
 
    cat <<\_LT_EOF >> "$cfgfile"
1151
 
# AIX sometimes has problems with the GCC collect2 program.  For some
1152
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
1153
 
# vanish in a puff of smoke.
1154
 
if test "X${COLLECT_NAMES+set}" != Xset; then
1155
 
  COLLECT_NAMES=
1156
 
  export COLLECT_NAMES
1157
 
fi
1158
 
_LT_EOF
1159
 
    ;;
1160
 
  esac
1161
 
 
1162
 
  _LT_PROG_LTMAIN
1163
 
 
1164
 
  # We use sed instead of cat because bash on DJGPP gets confused if
1165
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1166
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
1167
 
  # is reportedly fixed, but why not run on old versions too?
1168
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1169
 
    || (rm -f "$cfgfile"; exit 1)
1170
 
 
1171
 
  _LT_PROG_XSI_SHELLFNS
1172
 
 
1173
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1174
 
    || (rm -f "$cfgfile"; exit 1)
1175
 
 
1176
 
  mv -f "$cfgfile" "$ofile" ||
1177
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1178
 
  chmod +x "$ofile"
1179
 
],
1180
 
[cat <<_LT_EOF >> "$ofile"
1181
 
 
1182
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1183
 
dnl in a comment (ie after a #).
1184
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
1185
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1186
 
# ### END LIBTOOL TAG CONFIG: $1
1187
 
_LT_EOF
1188
 
])dnl /m4_if
1189
 
],
1190
 
[m4_if([$1], [], [
1191
 
    PACKAGE='$PACKAGE'
1192
 
    VERSION='$VERSION'
1193
 
    TIMESTAMP='$TIMESTAMP'
1194
 
    RM='$RM'
1195
 
    ofile='$ofile'], [])
1196
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
1197
 
])# _LT_CONFIG
1198
 
 
1199
 
 
1200
 
# LT_SUPPORTED_TAG(TAG)
1201
 
# ---------------------
1202
 
# Trace this macro to discover what tags are supported by the libtool
1203
 
# --tag option, using:
1204
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1205
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
1206
 
 
1207
 
 
1208
 
# C support is built-in for now
1209
 
m4_define([_LT_LANG_C_enabled], [])
1210
 
m4_define([_LT_TAGS], [])
1211
 
 
1212
 
 
1213
 
# LT_LANG(LANG)
1214
 
# -------------
1215
 
# Enable libtool support for the given language if not already enabled.
1216
 
AC_DEFUN([LT_LANG],
1217
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1218
 
m4_case([$1],
1219
 
  [C],                  [_LT_LANG(C)],
1220
 
  [C++],                [_LT_LANG(CXX)],
1221
 
  [Java],               [_LT_LANG(GCJ)],
1222
 
  [Fortran 77],         [_LT_LANG(F77)],
1223
 
  [Fortran],            [_LT_LANG(FC)],
1224
 
  [Windows Resource],   [_LT_LANG(RC)],
1225
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1226
 
    [_LT_LANG($1)],
1227
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1228
 
])# LT_LANG
1229
 
 
1230
 
 
1231
 
# _LT_LANG(LANGNAME)
1232
 
# ------------------
1233
 
m4_defun([_LT_LANG],
1234
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1235
 
  [LT_SUPPORTED_TAG([$1])dnl
1236
 
  m4_append([_LT_TAGS], [$1 ])dnl
1237
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1238
 
  _LT_LANG_$1_CONFIG($1)])dnl
1239
 
])# _LT_LANG
1240
 
 
1241
 
 
1242
 
# _LT_LANG_DEFAULT_CONFIG
1243
 
# -----------------------
1244
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1245
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1246
 
  [LT_LANG(CXX)],
1247
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1248
 
 
1249
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
1250
 
  [LT_LANG(F77)],
1251
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1252
 
 
1253
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
1254
 
  [LT_LANG(FC)],
1255
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1256
 
 
1257
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1258
 
dnl pulling things in needlessly.
1259
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1260
 
  [LT_LANG(GCJ)],
1261
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1262
 
    [LT_LANG(GCJ)],
1263
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1264
 
      [LT_LANG(GCJ)],
1265
 
      [m4_ifdef([AC_PROG_GCJ],
1266
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1267
 
       m4_ifdef([A][M_PROG_GCJ],
1268
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1269
 
       m4_ifdef([LT_PROG_GCJ],
1270
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1271
 
 
1272
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
1273
 
  [LT_LANG(RC)],
1274
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1275
 
])# _LT_LANG_DEFAULT_CONFIG
1276
 
 
1277
 
# Obsolete macros:
1278
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1279
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1280
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1281
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1282
 
dnl aclocal-1.4 backwards compatibility:
1283
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1284
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1285
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1286
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1287
 
 
1288
 
 
1289
 
# _LT_TAG_COMPILER
1290
 
# ----------------
1291
 
m4_defun([_LT_TAG_COMPILER],
1292
 
[AC_REQUIRE([AC_PROG_CC])dnl
1293
 
 
1294
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1295
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1296
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1297
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1298
 
 
1299
 
# If no C compiler was specified, use CC.
1300
 
LTCC=${LTCC-"$CC"}
1301
 
 
1302
 
# If no C compiler flags were specified, use CFLAGS.
1303
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1304
 
 
1305
 
# Allow CC to be a program name with arguments.
1306
 
compiler=$CC
1307
 
])# _LT_TAG_COMPILER
1308
 
 
1309
 
 
1310
 
# _LT_COMPILER_BOILERPLATE
1311
 
# ------------------------
1312
 
# Check for compiler boilerplate output or warnings with
1313
 
# the simple compiler test code.
1314
 
m4_defun([_LT_COMPILER_BOILERPLATE],
1315
 
[m4_require([_LT_DECL_SED])dnl
1316
 
ac_outfile=conftest.$ac_objext
1317
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1318
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1319
 
_lt_compiler_boilerplate=`cat conftest.err`
1320
 
$RM conftest*
1321
 
])# _LT_COMPILER_BOILERPLATE
1322
 
 
1323
 
 
1324
 
# _LT_LINKER_BOILERPLATE
1325
 
# ----------------------
1326
 
# Check for linker boilerplate output or warnings with
1327
 
# the simple link test code.
1328
 
m4_defun([_LT_LINKER_BOILERPLATE],
1329
 
[m4_require([_LT_DECL_SED])dnl
1330
 
ac_outfile=conftest.$ac_objext
1331
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1332
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1333
 
_lt_linker_boilerplate=`cat conftest.err`
1334
 
$RM -r conftest*
1335
 
])# _LT_LINKER_BOILERPLATE
1336
 
 
1337
 
# _LT_REQUIRED_DARWIN_CHECKS
1338
 
# -------------------------
1339
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1340
 
  case $host_os in
1341
 
    rhapsody* | darwin*)
1342
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1343
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1344
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1345
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1346
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1347
 
    _LT_DECL([], [DSYMUTIL], [1],
1348
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1349
 
    _LT_DECL([], [NMEDIT], [1],
1350
 
      [Tool to change global to local symbols on Mac OS X])
1351
 
    _LT_DECL([], [LIPO], [1],
1352
 
      [Tool to manipulate fat objects and archives on Mac OS X])
1353
 
    _LT_DECL([], [OTOOL], [1],
1354
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1355
 
    _LT_DECL([], [OTOOL64], [1],
1356
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1357
 
 
1358
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1359
 
      [lt_cv_apple_cc_single_mod=no
1360
 
      if test -z "${LT_MULTI_MODULE}"; then
1361
 
        # By default we will add the -single_module flag. You can override
1362
 
        # by either setting the environment variable LT_MULTI_MODULE
1363
 
        # non-empty at configure time, or by adding -multi_module to the
1364
 
        # link flags.
1365
 
        rm -rf libconftest.dylib*
1366
 
        echo "int foo(void){return 1;}" > conftest.c
1367
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1368
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1369
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1370
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1371
 
        _lt_result=$?
1372
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1373
 
          lt_cv_apple_cc_single_mod=yes
1374
 
        else
1375
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
1376
 
        fi
1377
 
        rm -rf libconftest.dylib*
1378
 
        rm -f conftest.*
1379
 
      fi])
1380
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1381
 
      [lt_cv_ld_exported_symbols_list],
1382
 
      [lt_cv_ld_exported_symbols_list=no
1383
 
      save_LDFLAGS=$LDFLAGS
1384
 
      echo "_main" > conftest.sym
1385
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1386
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1387
 
        [lt_cv_ld_exported_symbols_list=yes],
1388
 
        [lt_cv_ld_exported_symbols_list=no])
1389
 
        LDFLAGS="$save_LDFLAGS"
1390
 
    ])
1391
 
    case $host_os in
1392
 
    rhapsody* | darwin1.[[012]])
1393
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1394
 
    darwin1.*)
1395
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1396
 
    darwin*) # darwin 5.x on
1397
 
      # if running on 10.5 or later, the deployment target defaults
1398
 
      # to the OS version, if on x86, and 10.4, the deployment
1399
 
      # target defaults to 10.4. Don't you love it?
1400
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1401
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1402
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1403
 
        10.[[012]]*)
1404
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1405
 
        10.*)
1406
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1407
 
      esac
1408
 
    ;;
1409
 
  esac
1410
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1411
 
      _lt_dar_single_mod='$single_module'
1412
 
    fi
1413
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1414
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1415
 
    else
1416
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1417
 
    fi
1418
 
    if test "$DSYMUTIL" != ":"; then
1419
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1420
 
    else
1421
 
      _lt_dsymutil=
1422
 
    fi
1423
 
    ;;
1424
 
  esac
1425
 
])
1426
 
 
1427
 
 
1428
 
# _LT_DARWIN_LINKER_FEATURES
1429
 
# --------------------------
1430
 
# Checks for linker and compiler features on darwin
1431
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1432
 
[
1433
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1434
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1435
 
  _LT_TAGVAR(hardcode_direct, $1)=no
1436
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1437
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1438
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1439
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1440
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1441
 
  case $cc_basename in
1442
 
     ifort*) _lt_dar_can_shared=yes ;;
1443
 
     *) _lt_dar_can_shared=$GCC ;;
1444
 
  esac
1445
 
  if test "$_lt_dar_can_shared" = "yes"; then
1446
 
    output_verbose_link_cmd=echo
1447
 
    _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}"
1448
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1449
 
    _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}"
1450
 
    _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}"
1451
 
    m4_if([$1], [CXX],
1452
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1453
 
      _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}"
1454
 
      _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}"
1455
 
    fi
1456
 
],[])
1457
 
  else
1458
 
  _LT_TAGVAR(ld_shlibs, $1)=no
1459
 
  fi
1460
 
])
1461
 
 
1462
 
# _LT_SYS_MODULE_PATH_AIX
1463
 
# -----------------------
1464
 
# Links a minimal program and checks the executable
1465
 
# for the system default hardcoded library path. In most cases,
1466
 
# this is /usr/lib:/lib, but when the MPI compilers are used
1467
 
# the location of the communication and MPI libs are included too.
1468
 
# If we don't find anything, use the default library path according
1469
 
# to the aix ld manual.
1470
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1471
 
[m4_require([_LT_DECL_SED])dnl
1472
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1473
 
lt_aix_libpath_sed='
1474
 
    /Import File Strings/,/^$/ {
1475
 
        /^0/ {
1476
 
            s/^0  *\(.*\)$/\1/
1477
 
            p
1478
 
        }
1479
 
    }'
1480
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1481
 
# Check for a 64-bit object if we didn't find anything.
1482
 
if test -z "$aix_libpath"; then
1483
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1484
 
fi],[])
1485
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1486
 
])# _LT_SYS_MODULE_PATH_AIX
1487
 
 
1488
 
 
1489
 
# _LT_SHELL_INIT(ARG)
1490
 
# -------------------
1491
 
m4_define([_LT_SHELL_INIT],
1492
 
[ifdef([AC_DIVERSION_NOTICE],
1493
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1494
 
         [AC_DIVERT_PUSH(NOTICE)])
1495
 
$1
1496
 
AC_DIVERT_POP
1497
 
])# _LT_SHELL_INIT
1498
 
 
1499
 
 
1500
 
# _LT_PROG_ECHO_BACKSLASH
1501
 
# -----------------------
1502
 
# Add some code to the start of the generated configure script which
1503
 
# will find an echo command which doesn't interpret backslashes.
1504
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1505
 
[_LT_SHELL_INIT([
1506
 
# Check that we are running under the correct shell.
1507
 
SHELL=${CONFIG_SHELL-/bin/sh}
1508
 
 
1509
 
case X$lt_ECHO in
1510
 
X*--fallback-echo)
1511
 
  # Remove one level of quotation (which was required for Make).
1512
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1513
 
  ;;
1514
 
esac
1515
 
 
1516
 
ECHO=${lt_ECHO-echo}
1517
 
if test "X[$]1" = X--no-reexec; then
1518
 
  # Discard the --no-reexec flag, and continue.
1519
 
  shift
1520
 
elif test "X[$]1" = X--fallback-echo; then
1521
 
  # Avoid inline document here, it may be left over
1522
 
  :
1523
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1524
 
  # Yippee, $ECHO works!
1525
 
  :
1526
 
else
1527
 
  # Restart under the correct shell.
1528
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1529
 
fi
1530
 
 
1531
 
if test "X[$]1" = X--fallback-echo; then
1532
 
  # used as fallback echo
1533
 
  shift
1534
 
  cat <<_LT_EOF
1535
 
[$]*
1536
 
_LT_EOF
1537
 
  exit 0
1538
 
fi
1539
 
 
1540
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1541
 
# if CDPATH is set.
1542
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1543
 
 
1544
 
if test -z "$lt_ECHO"; then
1545
 
  if test "X${echo_test_string+set}" != Xset; then
1546
 
    # find a string as large as possible, as long as the shell can cope with it
1547
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1548
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1549
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1550
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1551
 
      then
1552
 
        break
1553
 
      fi
1554
 
    done
1555
 
  fi
1556
 
 
1557
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1558
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1559
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1560
 
    :
1561
 
  else
1562
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1563
 
    # backslashes.  This makes it impossible to quote backslashes using
1564
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1565
 
    #
1566
 
    # So, first we look for a working echo in the user's PATH.
1567
 
 
1568
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1569
 
    for dir in $PATH /usr/ucb; do
1570
 
      IFS="$lt_save_ifs"
1571
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1572
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1573
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1574
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1575
 
        ECHO="$dir/echo"
1576
 
        break
1577
 
      fi
1578
 
    done
1579
 
    IFS="$lt_save_ifs"
1580
 
 
1581
 
    if test "X$ECHO" = Xecho; then
1582
 
      # We didn't find a better echo, so look for alternatives.
1583
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1584
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1585
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1586
 
        # This shell has a builtin print -r that does the trick.
1587
 
        ECHO='print -r'
1588
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1589
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1590
 
        # If we have ksh, try running configure again with it.
1591
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1592
 
        export ORIGINAL_CONFIG_SHELL
1593
 
        CONFIG_SHELL=/bin/ksh
1594
 
        export CONFIG_SHELL
1595
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1596
 
      else
1597
 
        # Try using printf.
1598
 
        ECHO='printf %s\n'
1599
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1600
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1601
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1602
 
          # Cool, printf works
1603
 
          :
1604
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1605
 
             test "X$echo_testing_string" = 'X\t' &&
1606
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1607
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1608
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1609
 
          export CONFIG_SHELL
1610
 
          SHELL="$CONFIG_SHELL"
1611
 
          export SHELL
1612
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1613
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1614
 
             test "X$echo_testing_string" = 'X\t' &&
1615
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1616
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1617
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1618
 
        else
1619
 
          # maybe with a smaller string...
1620
 
          prev=:
1621
 
 
1622
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1623
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1624
 
            then
1625
 
              break
1626
 
            fi
1627
 
            prev="$cmd"
1628
 
          done
1629
 
 
1630
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1631
 
            echo_test_string=`eval $prev`
1632
 
            export echo_test_string
1633
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1634
 
          else
1635
 
            # Oops.  We lost completely, so just stick with echo.
1636
 
            ECHO=echo
1637
 
          fi
1638
 
        fi
1639
 
      fi
1640
 
    fi
1641
 
  fi
1642
 
fi
1643
 
 
1644
 
# Copy echo and quote the copy suitably for passing to libtool from
1645
 
# the Makefile, instead of quoting the original, which is used later.
1646
 
lt_ECHO=$ECHO
1647
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1648
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1649
 
fi
1650
 
 
1651
 
AC_SUBST(lt_ECHO)
1652
 
])
1653
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1654
 
_LT_DECL([], [ECHO], [1],
1655
 
    [An echo program that does not interpret backslashes])
1656
 
])# _LT_PROG_ECHO_BACKSLASH
1657
 
 
1658
 
 
1659
 
# _LT_ENABLE_LOCK
1660
 
# ---------------
1661
 
m4_defun([_LT_ENABLE_LOCK],
1662
 
[AC_ARG_ENABLE([libtool-lock],
1663
 
  [AS_HELP_STRING([--disable-libtool-lock],
1664
 
    [avoid locking (might break parallel builds)])])
1665
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1666
 
 
1667
 
# Some flags need to be propagated to the compiler or linker for good
1668
 
# libtool support.
1669
 
case $host in
1670
 
ia64-*-hpux*)
1671
 
  # Find out which ABI we are using.
1672
 
  echo 'int i;' > conftest.$ac_ext
1673
 
  if AC_TRY_EVAL(ac_compile); then
1674
 
    case `/usr/bin/file conftest.$ac_objext` in
1675
 
      *ELF-32*)
1676
 
        HPUX_IA64_MODE="32"
1677
 
        ;;
1678
 
      *ELF-64*)
1679
 
        HPUX_IA64_MODE="64"
1680
 
        ;;
1681
 
    esac
1682
 
  fi
1683
 
  rm -rf conftest*
1684
 
  ;;
1685
 
*-*-irix6*)
1686
 
  # Find out which ABI we are using.
1687
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1688
 
  if AC_TRY_EVAL(ac_compile); then
1689
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
1690
 
      case `/usr/bin/file conftest.$ac_objext` in
1691
 
        *32-bit*)
1692
 
          LD="${LD-ld} -melf32bsmip"
1693
 
          ;;
1694
 
        *N32*)
1695
 
          LD="${LD-ld} -melf32bmipn32"
1696
 
          ;;
1697
 
        *64-bit*)
1698
 
          LD="${LD-ld} -melf64bmip"
1699
 
        ;;
1700
 
      esac
1701
 
    else
1702
 
      case `/usr/bin/file conftest.$ac_objext` in
1703
 
        *32-bit*)
1704
 
          LD="${LD-ld} -32"
1705
 
          ;;
1706
 
        *N32*)
1707
 
          LD="${LD-ld} -n32"
1708
 
          ;;
1709
 
        *64-bit*)
1710
 
          LD="${LD-ld} -64"
1711
 
          ;;
1712
 
      esac
1713
 
    fi
1714
 
  fi
1715
 
  rm -rf conftest*
1716
 
  ;;
1717
 
 
1718
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1719
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1720
 
  # Find out which ABI we are using.
1721
 
  echo 'int i;' > conftest.$ac_ext
1722
 
  if AC_TRY_EVAL(ac_compile); then
1723
 
    case `/usr/bin/file conftest.o` in
1724
 
      *32-bit*)
1725
 
        case $host in
1726
 
          x86_64-*kfreebsd*-gnu)
1727
 
            LD="${LD-ld} -m elf_i386_fbsd"
1728
 
            ;;
1729
 
          x86_64-*linux*)
1730
 
            LD="${LD-ld} -m elf_i386"
1731
 
            ;;
1732
 
          ppc64-*linux*|powerpc64-*linux*)
1733
 
            LD="${LD-ld} -m elf32ppclinux"
1734
 
            ;;
1735
 
          s390x-*linux*)
1736
 
            LD="${LD-ld} -m elf_s390"
1737
 
            ;;
1738
 
          sparc64-*linux*)
1739
 
            LD="${LD-ld} -m elf32_sparc"
1740
 
            ;;
1741
 
        esac
1742
 
        ;;
1743
 
      *64-bit*)
1744
 
        case $host in
1745
 
          x86_64-*kfreebsd*-gnu)
1746
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
1747
 
            ;;
1748
 
          x86_64-*linux*)
1749
 
            LD="${LD-ld} -m elf_x86_64"
1750
 
            ;;
1751
 
          ppc*-*linux*|powerpc*-*linux*)
1752
 
            LD="${LD-ld} -m elf64ppc"
1753
 
            ;;
1754
 
          s390*-*linux*|s390*-*tpf*)
1755
 
            LD="${LD-ld} -m elf64_s390"
1756
 
            ;;
1757
 
          sparc*-*linux*)
1758
 
            LD="${LD-ld} -m elf64_sparc"
1759
 
            ;;
1760
 
        esac
1761
 
        ;;
1762
 
    esac
1763
 
  fi
1764
 
  rm -rf conftest*
1765
 
  ;;
1766
 
 
1767
 
*-*-sco3.2v5*)
1768
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1769
 
  SAVE_CFLAGS="$CFLAGS"
1770
 
  CFLAGS="$CFLAGS -belf"
1771
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1772
 
    [AC_LANG_PUSH(C)
1773
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1774
 
     AC_LANG_POP])
1775
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1776
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1777
 
    CFLAGS="$SAVE_CFLAGS"
1778
 
  fi
1779
 
  ;;
1780
 
sparc*-*solaris*)
1781
 
  # Find out which ABI we are using.
1782
 
  echo 'int i;' > conftest.$ac_ext
1783
 
  if AC_TRY_EVAL(ac_compile); then
1784
 
    case `/usr/bin/file conftest.o` in
1785
 
    *64-bit*)
1786
 
      case $lt_cv_prog_gnu_ld in
1787
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1788
 
      *)
1789
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1790
 
          LD="${LD-ld} -64"
1791
 
        fi
1792
 
        ;;
1793
 
      esac
1794
 
      ;;
1795
 
    esac
1796
 
  fi
1797
 
  rm -rf conftest*
1798
 
  ;;
1799
 
esac
1800
 
 
1801
 
need_locks="$enable_libtool_lock"
1802
 
])# _LT_ENABLE_LOCK
1803
 
 
1804
 
 
1805
 
# _LT_CMD_OLD_ARCHIVE
1806
 
# -------------------
1807
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
1808
 
[AC_CHECK_TOOL(AR, ar, false)
1809
 
test -z "$AR" && AR=ar
1810
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1811
 
_LT_DECL([], [AR], [1], [The archiver])
1812
 
_LT_DECL([], [AR_FLAGS], [1])
1813
 
 
1814
 
AC_CHECK_TOOL(STRIP, strip, :)
1815
 
test -z "$STRIP" && STRIP=:
1816
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1817
 
 
1818
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1819
 
test -z "$RANLIB" && RANLIB=:
1820
 
_LT_DECL([], [RANLIB], [1],
1821
 
    [Commands used to install an old-style archive])
1822
 
 
1823
 
# Determine commands to create old-style static archives.
1824
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1825
 
old_postinstall_cmds='chmod 644 $oldlib'
1826
 
old_postuninstall_cmds=
1827
 
 
1828
 
if test -n "$RANLIB"; then
1829
 
  case $host_os in
1830
 
  openbsd*)
1831
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1832
 
    ;;
1833
 
  *)
1834
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1835
 
    ;;
1836
 
  esac
1837
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1838
 
fi
1839
 
_LT_DECL([], [old_postinstall_cmds], [2])
1840
 
_LT_DECL([], [old_postuninstall_cmds], [2])
1841
 
_LT_TAGDECL([], [old_archive_cmds], [2],
1842
 
    [Commands used to build an old-style archive])
1843
 
])# _LT_CMD_OLD_ARCHIVE
1844
 
 
1845
 
 
1846
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1847
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1848
 
# ----------------------------------------------------------------
1849
 
# Check whether the given compiler option works
1850
 
AC_DEFUN([_LT_COMPILER_OPTION],
1851
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852
 
m4_require([_LT_DECL_SED])dnl
1853
 
AC_CACHE_CHECK([$1], [$2],
1854
 
  [$2=no
1855
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1856
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1857
 
   lt_compiler_flag="$3"
1858
 
   # Insert the option either (1) after the last *FLAGS variable, or
1859
 
   # (2) before a word containing "conftest.", or (3) at the end.
1860
 
   # Note that $ac_compile itself does not contain backslashes and begins
1861
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1862
 
   # The option is referenced via a variable to avoid confusing sed.
1863
 
   lt_compile=`echo "$ac_compile" | $SED \
1864
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1865
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1866
 
   -e 's:$: $lt_compiler_flag:'`
1867
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1868
 
   (eval "$lt_compile" 2>conftest.err)
1869
 
   ac_status=$?
1870
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
1871
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1872
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
1873
 
     # The compiler can only warn and ignore the option if not recognized
1874
 
     # So say no if there are warnings other than the usual output.
1875
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1876
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1877
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1878
 
       $2=yes
1879
 
     fi
1880
 
   fi
1881
 
   $RM conftest*
1882
 
])
1883
 
 
1884
 
if test x"[$]$2" = xyes; then
1885
 
    m4_if([$5], , :, [$5])
1886
 
else
1887
 
    m4_if([$6], , :, [$6])
1888
 
fi
1889
 
])# _LT_COMPILER_OPTION
1890
 
 
1891
 
# Old name:
1892
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1893
 
dnl aclocal-1.4 backwards compatibility:
1894
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1895
 
 
1896
 
 
1897
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1898
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1899
 
# ----------------------------------------------------
1900
 
# Check whether the given linker option works
1901
 
AC_DEFUN([_LT_LINKER_OPTION],
1902
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1903
 
m4_require([_LT_DECL_SED])dnl
1904
 
AC_CACHE_CHECK([$1], [$2],
1905
 
  [$2=no
1906
 
   save_LDFLAGS="$LDFLAGS"
1907
 
   LDFLAGS="$LDFLAGS $3"
1908
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1909
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1910
 
     # The linker can only warn and ignore the option if not recognized
1911
 
     # So say no if there are warnings
1912
 
     if test -s conftest.err; then
1913
 
       # Append any errors to the config.log.
1914
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1915
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1916
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1917
 
       if diff conftest.exp conftest.er2 >/dev/null; then
1918
 
         $2=yes
1919
 
       fi
1920
 
     else
1921
 
       $2=yes
1922
 
     fi
1923
 
   fi
1924
 
   $RM -r conftest*
1925
 
   LDFLAGS="$save_LDFLAGS"
1926
 
])
1927
 
 
1928
 
if test x"[$]$2" = xyes; then
1929
 
    m4_if([$4], , :, [$4])
1930
 
else
1931
 
    m4_if([$5], , :, [$5])
1932
 
fi
1933
 
])# _LT_LINKER_OPTION
1934
 
 
1935
 
# Old name:
1936
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1937
 
dnl aclocal-1.4 backwards compatibility:
1938
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1939
 
 
1940
 
 
1941
 
# LT_CMD_MAX_LEN
1942
 
#---------------
1943
 
AC_DEFUN([LT_CMD_MAX_LEN],
1944
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1945
 
# find the maximum length of command line arguments
1946
 
AC_MSG_CHECKING([the maximum length of command line arguments])
1947
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1948
 
  i=0
1949
 
  teststring="ABCD"
1950
 
 
1951
 
  case $build_os in
1952
 
  msdosdjgpp*)
1953
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1954
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1955
 
    # during glob expansion).  Even if it were fixed, the result of this
1956
 
    # check would be larger than it should be.
1957
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1958
 
    ;;
1959
 
 
1960
 
  gnu*)
1961
 
    # Under GNU Hurd, this test is not required because there is
1962
 
    # no limit to the length of command line arguments.
1963
 
    # Libtool will interpret -1 as no limit whatsoever
1964
 
    lt_cv_sys_max_cmd_len=-1;
1965
 
    ;;
1966
 
 
1967
 
  cygwin* | mingw* | cegcc*)
1968
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1969
 
    # about 5 minutes as the teststring grows exponentially.
1970
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
1971
 
    # you end up with a "frozen" computer, even though with patience
1972
 
    # the test eventually succeeds (with a max line length of 256k).
1973
 
    # Instead, let's just punt: use the minimum linelength reported by
1974
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
1975
 
    lt_cv_sys_max_cmd_len=8192;
1976
 
    ;;
1977
 
 
1978
 
  amigaos*)
1979
 
    # On AmigaOS with pdksh, this test takes hours, literally.
1980
 
    # So we just punt and use a minimum line length of 8192.
1981
 
    lt_cv_sys_max_cmd_len=8192;
1982
 
    ;;
1983
 
 
1984
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1985
 
    # This has been around since 386BSD, at least.  Likely further.
1986
 
    if test -x /sbin/sysctl; then
1987
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1988
 
    elif test -x /usr/sbin/sysctl; then
1989
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1990
 
    else
1991
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1992
 
    fi
1993
 
    # And add a safety zone
1994
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1995
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1996
 
    ;;
1997
 
 
1998
 
  interix*)
1999
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
2000
 
    lt_cv_sys_max_cmd_len=196608
2001
 
    ;;
2002
 
 
2003
 
  osf*)
2004
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2005
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2006
 
    # nice to cause kernel panics so lets avoid the loop below.
2007
 
    # First set a reasonable default.
2008
 
    lt_cv_sys_max_cmd_len=16384
2009
 
    #
2010
 
    if test -x /sbin/sysconfig; then
2011
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2012
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
2013
 
      esac
2014
 
    fi
2015
 
    ;;
2016
 
  sco3.2v5*)
2017
 
    lt_cv_sys_max_cmd_len=102400
2018
 
    ;;
2019
 
  sysv5* | sco5v6* | sysv4.2uw2*)
2020
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2021
 
    if test -n "$kargmax"; then
2022
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
2023
 
    else
2024
 
      lt_cv_sys_max_cmd_len=32768
2025
 
    fi
2026
 
    ;;
2027
 
  *)
2028
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2029
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
2030
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2031
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2032
 
    else
2033
 
      # Make teststring a little bigger before we do anything with it.
2034
 
      # a 1K string should be a reasonable start.
2035
 
      for i in 1 2 3 4 5 6 7 8 ; do
2036
 
        teststring=$teststring$teststring
2037
 
      done
2038
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2039
 
      # If test is not a shell built-in, we'll probably end up computing a
2040
 
      # maximum length that is only half of the actual maximum length, but
2041
 
      # we can't tell.
2042
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2043
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2044
 
              test $i != 17 # 1/2 MB should be enough
2045
 
      do
2046
 
        i=`expr $i + 1`
2047
 
        teststring=$teststring$teststring
2048
 
      done
2049
 
      # Only check the string length outside the loop.
2050
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2051
 
      teststring=
2052
 
      # Add a significant safety factor because C++ compilers can tack on
2053
 
      # massive amounts of additional arguments before passing them to the
2054
 
      # linker.  It appears as though 1/2 is a usable value.
2055
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2056
 
    fi
2057
 
    ;;
2058
 
  esac
2059
 
])
2060
 
if test -n $lt_cv_sys_max_cmd_len ; then
2061
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2062
 
else
2063
 
  AC_MSG_RESULT(none)
2064
 
fi
2065
 
max_cmd_len=$lt_cv_sys_max_cmd_len
2066
 
_LT_DECL([], [max_cmd_len], [0],
2067
 
    [What is the maximum length of a command?])
2068
 
])# LT_CMD_MAX_LEN
2069
 
 
2070
 
# Old name:
2071
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2072
 
dnl aclocal-1.4 backwards compatibility:
2073
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2074
 
 
2075
 
 
2076
 
# _LT_HEADER_DLFCN
2077
 
# ----------------
2078
 
m4_defun([_LT_HEADER_DLFCN],
2079
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2080
 
])# _LT_HEADER_DLFCN
2081
 
 
2082
 
 
2083
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2084
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2085
 
# ----------------------------------------------------------------
2086
 
m4_defun([_LT_TRY_DLOPEN_SELF],
2087
 
[m4_require([_LT_HEADER_DLFCN])dnl
2088
 
if test "$cross_compiling" = yes; then :
2089
 
  [$4]
2090
 
else
2091
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2092
 
  lt_status=$lt_dlunknown
2093
 
  cat > conftest.$ac_ext <<_LT_EOF
2094
 
[#line __oline__ "configure"
2095
 
#include "confdefs.h"
2096
 
 
2097
 
#if HAVE_DLFCN_H
2098
 
#include <dlfcn.h>
2099
 
#endif
2100
 
 
2101
 
#include <stdio.h>
2102
 
 
2103
 
#ifdef RTLD_GLOBAL
2104
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
2105
 
#else
2106
 
#  ifdef DL_GLOBAL
2107
 
#    define LT_DLGLOBAL         DL_GLOBAL
2108
 
#  else
2109
 
#    define LT_DLGLOBAL         0
2110
 
#  endif
2111
 
#endif
2112
 
 
2113
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2114
 
   find out it does not work in some platform. */
2115
 
#ifndef LT_DLLAZY_OR_NOW
2116
 
#  ifdef RTLD_LAZY
2117
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
2118
 
#  else
2119
 
#    ifdef DL_LAZY
2120
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
2121
 
#    else
2122
 
#      ifdef RTLD_NOW
2123
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
2124
 
#      else
2125
 
#        ifdef DL_NOW
2126
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
2127
 
#        else
2128
 
#          define LT_DLLAZY_OR_NOW      0
2129
 
#        endif
2130
 
#      endif
2131
 
#    endif
2132
 
#  endif
2133
 
#endif
2134
 
 
2135
 
void fnord() { int i=42;}
2136
 
int main ()
2137
 
{
2138
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2139
 
  int status = $lt_dlunknown;
2140
 
 
2141
 
  if (self)
2142
 
    {
2143
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2144
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2145
 
      /* dlclose (self); */
2146
 
    }
2147
 
  else
2148
 
    puts (dlerror ());
2149
 
 
2150
 
  return status;
2151
 
}]
2152
 
_LT_EOF
2153
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2154
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2155
 
    lt_status=$?
2156
 
    case x$lt_status in
2157
 
      x$lt_dlno_uscore) $1 ;;
2158
 
      x$lt_dlneed_uscore) $2 ;;
2159
 
      x$lt_dlunknown|x*) $3 ;;
2160
 
    esac
2161
 
  else :
2162
 
    # compilation failed
2163
 
    $3
2164
 
  fi
2165
 
fi
2166
 
rm -fr conftest*
2167
 
])# _LT_TRY_DLOPEN_SELF
2168
 
 
2169
 
 
2170
 
# LT_SYS_DLOPEN_SELF
2171
 
# ------------------
2172
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2173
 
[m4_require([_LT_HEADER_DLFCN])dnl
2174
 
if test "x$enable_dlopen" != xyes; then
2175
 
  enable_dlopen=unknown
2176
 
  enable_dlopen_self=unknown
2177
 
  enable_dlopen_self_static=unknown
2178
 
else
2179
 
  lt_cv_dlopen=no
2180
 
  lt_cv_dlopen_libs=
2181
 
 
2182
 
  case $host_os in
2183
 
  beos*)
2184
 
    lt_cv_dlopen="load_add_on"
2185
 
    lt_cv_dlopen_libs=
2186
 
    lt_cv_dlopen_self=yes
2187
 
    ;;
2188
 
 
2189
 
  mingw* | pw32* | cegcc*)
2190
 
    lt_cv_dlopen="LoadLibrary"
2191
 
    lt_cv_dlopen_libs=
2192
 
    ;;
2193
 
 
2194
 
  cygwin*)
2195
 
    lt_cv_dlopen="dlopen"
2196
 
    lt_cv_dlopen_libs=
2197
 
    ;;
2198
 
 
2199
 
  darwin*)
2200
 
  # if libdl is installed we need to link against it
2201
 
    AC_CHECK_LIB([dl], [dlopen],
2202
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2203
 
    lt_cv_dlopen="dyld"
2204
 
    lt_cv_dlopen_libs=
2205
 
    lt_cv_dlopen_self=yes
2206
 
    ])
2207
 
    ;;
2208
 
 
2209
 
  *)
2210
 
    AC_CHECK_FUNC([shl_load],
2211
 
          [lt_cv_dlopen="shl_load"],
2212
 
      [AC_CHECK_LIB([dld], [shl_load],
2213
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2214
 
        [AC_CHECK_FUNC([dlopen],
2215
 
              [lt_cv_dlopen="dlopen"],
2216
 
          [AC_CHECK_LIB([dl], [dlopen],
2217
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2218
 
            [AC_CHECK_LIB([svld], [dlopen],
2219
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2220
 
              [AC_CHECK_LIB([dld], [dld_link],
2221
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2222
 
              ])
2223
 
            ])
2224
 
          ])
2225
 
        ])
2226
 
      ])
2227
 
    ;;
2228
 
  esac
2229
 
 
2230
 
  if test "x$lt_cv_dlopen" != xno; then
2231
 
    enable_dlopen=yes
2232
 
  else
2233
 
    enable_dlopen=no
2234
 
  fi
2235
 
 
2236
 
  case $lt_cv_dlopen in
2237
 
  dlopen)
2238
 
    save_CPPFLAGS="$CPPFLAGS"
2239
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2240
 
 
2241
 
    save_LDFLAGS="$LDFLAGS"
2242
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2243
 
 
2244
 
    save_LIBS="$LIBS"
2245
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
2246
 
 
2247
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
2248
 
          lt_cv_dlopen_self, [dnl
2249
 
          _LT_TRY_DLOPEN_SELF(
2250
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2251
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2252
 
    ])
2253
 
 
2254
 
    if test "x$lt_cv_dlopen_self" = xyes; then
2255
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2256
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2257
 
          lt_cv_dlopen_self_static, [dnl
2258
 
          _LT_TRY_DLOPEN_SELF(
2259
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2260
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2261
 
      ])
2262
 
    fi
2263
 
 
2264
 
    CPPFLAGS="$save_CPPFLAGS"
2265
 
    LDFLAGS="$save_LDFLAGS"
2266
 
    LIBS="$save_LIBS"
2267
 
    ;;
2268
 
  esac
2269
 
 
2270
 
  case $lt_cv_dlopen_self in
2271
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2272
 
  *) enable_dlopen_self=unknown ;;
2273
 
  esac
2274
 
 
2275
 
  case $lt_cv_dlopen_self_static in
2276
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2277
 
  *) enable_dlopen_self_static=unknown ;;
2278
 
  esac
2279
 
fi
2280
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2281
 
         [Whether dlopen is supported])
2282
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2283
 
         [Whether dlopen of programs is supported])
2284
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2285
 
         [Whether dlopen of statically linked programs is supported])
2286
 
])# LT_SYS_DLOPEN_SELF
2287
 
 
2288
 
# Old name:
2289
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2290
 
dnl aclocal-1.4 backwards compatibility:
2291
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2292
 
 
2293
 
 
2294
 
# _LT_COMPILER_C_O([TAGNAME])
2295
 
# ---------------------------
2296
 
# Check to see if options -c and -o are simultaneously supported by compiler.
2297
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2298
 
m4_defun([_LT_COMPILER_C_O],
2299
 
[m4_require([_LT_DECL_SED])dnl
2300
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2301
 
m4_require([_LT_TAG_COMPILER])dnl
2302
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2303
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2304
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2305
 
   $RM -r conftest 2>/dev/null
2306
 
   mkdir conftest
2307
 
   cd conftest
2308
 
   mkdir out
2309
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2310
 
 
2311
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2312
 
   # Insert the option either (1) after the last *FLAGS variable, or
2313
 
   # (2) before a word containing "conftest.", or (3) at the end.
2314
 
   # Note that $ac_compile itself does not contain backslashes and begins
2315
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2316
 
   lt_compile=`echo "$ac_compile" | $SED \
2317
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2318
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2319
 
   -e 's:$: $lt_compiler_flag:'`
2320
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2321
 
   (eval "$lt_compile" 2>out/conftest.err)
2322
 
   ac_status=$?
2323
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2324
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2325
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2326
 
   then
2327
 
     # The compiler can only warn and ignore the option if not recognized
2328
 
     # So say no if there are warnings
2329
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2330
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2331
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2332
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2333
 
     fi
2334
 
   fi
2335
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2336
 
   $RM conftest*
2337
 
   # SGI C++ compiler will create directory out/ii_files/ for
2338
 
   # template instantiation
2339
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2340
 
   $RM out/* && rmdir out
2341
 
   cd ..
2342
 
   $RM -r conftest
2343
 
   $RM conftest*
2344
 
])
2345
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2346
 
        [Does compiler simultaneously support -c and -o options?])
2347
 
])# _LT_COMPILER_C_O
2348
 
 
2349
 
 
2350
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2351
 
# ----------------------------------
2352
 
# Check to see if we can do hard links to lock some files if needed
2353
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
2354
 
[m4_require([_LT_ENABLE_LOCK])dnl
2355
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2356
 
_LT_COMPILER_C_O([$1])
2357
 
 
2358
 
hard_links="nottested"
2359
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2360
 
  # do not overwrite the value of need_locks provided by the user
2361
 
  AC_MSG_CHECKING([if we can lock with hard links])
2362
 
  hard_links=yes
2363
 
  $RM conftest*
2364
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2365
 
  touch conftest.a
2366
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
2367
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2368
 
  AC_MSG_RESULT([$hard_links])
2369
 
  if test "$hard_links" = no; then
2370
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2371
 
    need_locks=warn
2372
 
  fi
2373
 
else
2374
 
  need_locks=no
2375
 
fi
2376
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2377
 
])# _LT_COMPILER_FILE_LOCKS
2378
 
 
2379
 
 
2380
 
# _LT_CHECK_OBJDIR
2381
 
# ----------------
2382
 
m4_defun([_LT_CHECK_OBJDIR],
2383
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2384
 
[rm -f .libs 2>/dev/null
2385
 
mkdir .libs 2>/dev/null
2386
 
if test -d .libs; then
2387
 
  lt_cv_objdir=.libs
2388
 
else
2389
 
  # MS-DOS does not allow filenames that begin with a dot.
2390
 
  lt_cv_objdir=_libs
2391
 
fi
2392
 
rmdir .libs 2>/dev/null])
2393
 
objdir=$lt_cv_objdir
2394
 
_LT_DECL([], [objdir], [0],
2395
 
         [The name of the directory that contains temporary libtool files])dnl
2396
 
m4_pattern_allow([LT_OBJDIR])dnl
2397
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2398
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2399
 
])# _LT_CHECK_OBJDIR
2400
 
 
2401
 
 
2402
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2403
 
# --------------------------------------
2404
 
# Check hardcoding attributes.
2405
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2406
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2407
 
_LT_TAGVAR(hardcode_action, $1)=
2408
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2409
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2410
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2411
 
 
2412
 
  # We can hardcode non-existent directories.
2413
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2414
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2415
 
     # have to relink, otherwise we might link with an installed library
2416
 
     # when we should be linking with a yet-to-be-installed one
2417
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2418
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2419
 
    # Linking always hardcodes the temporary library directory.
2420
 
    _LT_TAGVAR(hardcode_action, $1)=relink
2421
 
  else
2422
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2423
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
2424
 
  fi
2425
 
else
2426
 
  # We cannot hardcode anything, or else we can only hardcode existing
2427
 
  # directories.
2428
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
2429
 
fi
2430
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2431
 
 
2432
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2433
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2434
 
  # Fast installation is not supported
2435
 
  enable_fast_install=no
2436
 
elif test "$shlibpath_overrides_runpath" = yes ||
2437
 
     test "$enable_shared" = no; then
2438
 
  # Fast installation is not necessary
2439
 
  enable_fast_install=needless
2440
 
fi
2441
 
_LT_TAGDECL([], [hardcode_action], [0],
2442
 
    [How to hardcode a shared library path into an executable])
2443
 
])# _LT_LINKER_HARDCODE_LIBPATH
2444
 
 
2445
 
 
2446
 
# _LT_CMD_STRIPLIB
2447
 
# ----------------
2448
 
m4_defun([_LT_CMD_STRIPLIB],
2449
 
[m4_require([_LT_DECL_EGREP])
2450
 
striplib=
2451
 
old_striplib=
2452
 
AC_MSG_CHECKING([whether stripping libraries is possible])
2453
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2454
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2455
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2456
 
  AC_MSG_RESULT([yes])
2457
 
else
2458
 
# FIXME - insert some real tests, host_os isn't really good enough
2459
 
  case $host_os in
2460
 
  darwin*)
2461
 
    if test -n "$STRIP" ; then
2462
 
      striplib="$STRIP -x"
2463
 
      old_striplib="$STRIP -S"
2464
 
      AC_MSG_RESULT([yes])
2465
 
    else
2466
 
      AC_MSG_RESULT([no])
2467
 
    fi
2468
 
    ;;
2469
 
  *)
2470
 
    AC_MSG_RESULT([no])
2471
 
    ;;
2472
 
  esac
2473
 
fi
2474
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2475
 
_LT_DECL([], [striplib], [1])
2476
 
])# _LT_CMD_STRIPLIB
2477
 
 
2478
 
 
2479
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
2480
 
# -----------------------------
2481
 
# PORTME Fill in your ld.so characteristics
2482
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2483
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2484
 
m4_require([_LT_DECL_EGREP])dnl
2485
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2486
 
m4_require([_LT_DECL_OBJDUMP])dnl
2487
 
m4_require([_LT_DECL_SED])dnl
2488
 
AC_MSG_CHECKING([dynamic linker characteristics])
2489
 
m4_if([$1],
2490
 
        [], [
2491
 
if test "$GCC" = yes; then
2492
 
  case $host_os in
2493
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2494
 
    *) lt_awk_arg="/^libraries:/" ;;
2495
 
  esac
2496
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2497
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2498
 
    # if the path contains ";" then we assume it to be the separator
2499
 
    # otherwise default to the standard path separator (i.e. ":") - it is
2500
 
    # assumed that no part of a normal pathname contains ";" but that should
2501
 
    # okay in the real world where ";" in dirpaths is itself problematic.
2502
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2503
 
  else
2504
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2505
 
  fi
2506
 
  # Ok, now we have the path, separated by spaces, we can step through it
2507
 
  # and add multilib dir if necessary.
2508
 
  lt_tmp_lt_search_path_spec=
2509
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2510
 
  for lt_sys_path in $lt_search_path_spec; do
2511
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2512
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2513
 
    else
2514
 
      test -d "$lt_sys_path" && \
2515
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2516
 
    fi
2517
 
  done
2518
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2519
 
BEGIN {RS=" "; FS="/|\n";} {
2520
 
  lt_foo="";
2521
 
  lt_count=0;
2522
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
2523
 
    if ($lt_i != "" && $lt_i != ".") {
2524
 
      if ($lt_i == "..") {
2525
 
        lt_count++;
2526
 
      } else {
2527
 
        if (lt_count == 0) {
2528
 
          lt_foo="/" $lt_i lt_foo;
2529
 
        } else {
2530
 
          lt_count--;
2531
 
        }
2532
 
      }
2533
 
    }
2534
 
  }
2535
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2536
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2537
 
}'`
2538
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2539
 
else
2540
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2541
 
fi])
2542
 
library_names_spec=
2543
 
libname_spec='lib$name'
2544
 
soname_spec=
2545
 
shrext_cmds=".so"
2546
 
postinstall_cmds=
2547
 
postuninstall_cmds=
2548
 
finish_cmds=
2549
 
finish_eval=
2550
 
shlibpath_var=
2551
 
shlibpath_overrides_runpath=unknown
2552
 
version_type=none
2553
 
dynamic_linker="$host_os ld.so"
2554
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2555
 
need_lib_prefix=unknown
2556
 
hardcode_into_libs=no
2557
 
 
2558
 
# when you set need_version to no, make sure it does not cause -set_version
2559
 
# flags to be left without arguments
2560
 
need_version=unknown
2561
 
 
2562
 
case $host_os in
2563
 
aix3*)
2564
 
  version_type=linux
2565
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2566
 
  shlibpath_var=LIBPATH
2567
 
 
2568
 
  # AIX 3 has no versioning support, so we append a major version to the name.
2569
 
  soname_spec='${libname}${release}${shared_ext}$major'
2570
 
  ;;
2571
 
 
2572
 
aix[[4-9]]*)
2573
 
  version_type=linux
2574
 
  need_lib_prefix=no
2575
 
  need_version=no
2576
 
  hardcode_into_libs=yes
2577
 
  if test "$host_cpu" = ia64; then
2578
 
    # AIX 5 supports IA64
2579
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2580
 
    shlibpath_var=LD_LIBRARY_PATH
2581
 
  else
2582
 
    # With GCC up to 2.95.x, collect2 would create an import file
2583
 
    # for dependence libraries.  The import file would start with
2584
 
    # the line `#! .'.  This would cause the generated library to
2585
 
    # depend on `.', always an invalid library.  This was fixed in
2586
 
    # development snapshots of GCC prior to 3.0.
2587
 
    case $host_os in
2588
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2589
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2590
 
           echo ' yes '
2591
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2592
 
        :
2593
 
      else
2594
 
        can_build_shared=no
2595
 
      fi
2596
 
      ;;
2597
 
    esac
2598
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2599
 
    # soname into executable. Probably we can add versioning support to
2600
 
    # collect2, so additional links can be useful in future.
2601
 
    if test "$aix_use_runtimelinking" = yes; then
2602
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2603
 
      # instead of lib<name>.a to let people know that these are not
2604
 
      # typical AIX shared libraries.
2605
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2606
 
    else
2607
 
      # We preserve .a as extension for shared libraries through AIX4.2
2608
 
      # and later when we are not doing run time linking.
2609
 
      library_names_spec='${libname}${release}.a $libname.a'
2610
 
      soname_spec='${libname}${release}${shared_ext}$major'
2611
 
    fi
2612
 
    shlibpath_var=LIBPATH
2613
 
  fi
2614
 
  ;;
2615
 
 
2616
 
amigaos*)
2617
 
  case $host_cpu in
2618
 
  powerpc)
2619
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2620
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2621
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2622
 
    ;;
2623
 
  m68k)
2624
 
    library_names_spec='$libname.ixlibrary $libname.a'
2625
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2626
 
    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'
2627
 
    ;;
2628
 
  esac
2629
 
  ;;
2630
 
 
2631
 
beos*)
2632
 
  library_names_spec='${libname}${shared_ext}'
2633
 
  dynamic_linker="$host_os ld.so"
2634
 
  shlibpath_var=LIBRARY_PATH
2635
 
  ;;
2636
 
 
2637
 
bsdi[[45]]*)
2638
 
  version_type=linux
2639
 
  need_version=no
2640
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2641
 
  soname_spec='${libname}${release}${shared_ext}$major'
2642
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2643
 
  shlibpath_var=LD_LIBRARY_PATH
2644
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2645
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2646
 
  # the default ld.so.conf also contains /usr/contrib/lib and
2647
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2648
 
  # libtool to hard-code these into programs
2649
 
  ;;
2650
 
 
2651
 
cygwin* | mingw* | pw32* | cegcc*)
2652
 
  version_type=windows
2653
 
  shrext_cmds=".dll"
2654
 
  need_version=no
2655
 
  need_lib_prefix=no
2656
 
 
2657
 
  case $GCC,$host_os in
2658
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2659
 
    library_names_spec='$libname.dll.a'
2660
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2661
 
    postinstall_cmds='base_file=`basename \${file}`~
2662
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2663
 
      dldir=$destdir/`dirname \$dlpath`~
2664
 
      test -d \$dldir || mkdir -p \$dldir~
2665
 
      $install_prog $dir/$dlname \$dldir/$dlname~
2666
 
      chmod a+x \$dldir/$dlname~
2667
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2668
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2669
 
      fi'
2670
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2671
 
      dlpath=$dir/\$dldll~
2672
 
       $RM \$dlpath'
2673
 
    shlibpath_overrides_runpath=yes
2674
 
 
2675
 
    case $host_os in
2676
 
    cygwin*)
2677
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2678
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2679
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2680
 
      ;;
2681
 
    mingw* | cegcc*)
2682
 
      # MinGW DLLs use traditional 'lib' prefix
2683
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2684
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2685
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2686
 
        # It is most probably a Windows format PATH printed by
2687
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2688
 
        # path with ; separators, and with drive letters. We can handle the
2689
 
        # drive letters (cygwin fileutils understands them), so leave them,
2690
 
        # especially as we might pass files found there to a mingw objdump,
2691
 
        # which wouldn't understand a cygwinified path. Ahh.
2692
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2693
 
      else
2694
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2695
 
      fi
2696
 
      ;;
2697
 
    pw32*)
2698
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2699
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2700
 
      ;;
2701
 
    esac
2702
 
    ;;
2703
 
 
2704
 
  *)
2705
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2706
 
    ;;
2707
 
  esac
2708
 
  dynamic_linker='Win32 ld.exe'
2709
 
  # FIXME: first we should search . and the directory the executable is in
2710
 
  shlibpath_var=PATH
2711
 
  ;;
2712
 
 
2713
 
darwin* | rhapsody*)
2714
 
  dynamic_linker="$host_os dyld"
2715
 
  version_type=darwin
2716
 
  need_lib_prefix=no
2717
 
  need_version=no
2718
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2719
 
  soname_spec='${libname}${release}${major}$shared_ext'
2720
 
  shlibpath_overrides_runpath=yes
2721
 
  shlibpath_var=DYLD_LIBRARY_PATH
2722
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2723
 
m4_if([$1], [],[
2724
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2725
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2726
 
  ;;
2727
 
 
2728
 
dgux*)
2729
 
  version_type=linux
2730
 
  need_lib_prefix=no
2731
 
  need_version=no
2732
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2733
 
  soname_spec='${libname}${release}${shared_ext}$major'
2734
 
  shlibpath_var=LD_LIBRARY_PATH
2735
 
  ;;
2736
 
 
2737
 
freebsd1*)
2738
 
  dynamic_linker=no
2739
 
  ;;
2740
 
 
2741
 
freebsd* | dragonfly*)
2742
 
  # DragonFly does not have aout.  When/if they implement a new
2743
 
  # versioning mechanism, adjust this.
2744
 
  if test -x /usr/bin/objformat; then
2745
 
    objformat=`/usr/bin/objformat`
2746
 
  else
2747
 
    case $host_os in
2748
 
    freebsd[[123]]*) objformat=aout ;;
2749
 
    *) objformat=elf ;;
2750
 
    esac
2751
 
  fi
2752
 
  version_type=freebsd-$objformat
2753
 
  case $version_type in
2754
 
    freebsd-elf*)
2755
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2756
 
      need_version=no
2757
 
      need_lib_prefix=no
2758
 
      ;;
2759
 
    freebsd-*)
2760
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2761
 
      need_version=yes
2762
 
      ;;
2763
 
  esac
2764
 
  shlibpath_var=LD_LIBRARY_PATH
2765
 
  case $host_os in
2766
 
  freebsd2*)
2767
 
    shlibpath_overrides_runpath=yes
2768
 
    ;;
2769
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2770
 
    shlibpath_overrides_runpath=yes
2771
 
    hardcode_into_libs=yes
2772
 
    ;;
2773
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2774
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2775
 
    shlibpath_overrides_runpath=no
2776
 
    hardcode_into_libs=yes
2777
 
    ;;
2778
 
  *) # from 4.6 on, and DragonFly
2779
 
    shlibpath_overrides_runpath=yes
2780
 
    hardcode_into_libs=yes
2781
 
    ;;
2782
 
  esac
2783
 
  ;;
2784
 
 
2785
 
gnu*)
2786
 
  version_type=linux
2787
 
  need_lib_prefix=no
2788
 
  need_version=no
2789
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2790
 
  soname_spec='${libname}${release}${shared_ext}$major'
2791
 
  shlibpath_var=LD_LIBRARY_PATH
2792
 
  hardcode_into_libs=yes
2793
 
  ;;
2794
 
 
2795
 
hpux9* | hpux10* | hpux11*)
2796
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
2797
 
  # link against other versions.
2798
 
  version_type=sunos
2799
 
  need_lib_prefix=no
2800
 
  need_version=no
2801
 
  case $host_cpu in
2802
 
  ia64*)
2803
 
    shrext_cmds='.so'
2804
 
    hardcode_into_libs=yes
2805
 
    dynamic_linker="$host_os dld.so"
2806
 
    shlibpath_var=LD_LIBRARY_PATH
2807
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2808
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2809
 
    soname_spec='${libname}${release}${shared_ext}$major'
2810
 
    if test "X$HPUX_IA64_MODE" = X32; then
2811
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2812
 
    else
2813
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2814
 
    fi
2815
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2816
 
    ;;
2817
 
  hppa*64*)
2818
 
    shrext_cmds='.sl'
2819
 
    hardcode_into_libs=yes
2820
 
    dynamic_linker="$host_os dld.sl"
2821
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2822
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2823
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2824
 
    soname_spec='${libname}${release}${shared_ext}$major'
2825
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2826
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2827
 
    ;;
2828
 
  *)
2829
 
    shrext_cmds='.sl'
2830
 
    dynamic_linker="$host_os dld.sl"
2831
 
    shlibpath_var=SHLIB_PATH
2832
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2833
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2834
 
    soname_spec='${libname}${release}${shared_ext}$major'
2835
 
    ;;
2836
 
  esac
2837
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2838
 
  postinstall_cmds='chmod 555 $lib'
2839
 
  ;;
2840
 
 
2841
 
interix[[3-9]]*)
2842
 
  version_type=linux
2843
 
  need_lib_prefix=no
2844
 
  need_version=no
2845
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2846
 
  soname_spec='${libname}${release}${shared_ext}$major'
2847
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2848
 
  shlibpath_var=LD_LIBRARY_PATH
2849
 
  shlibpath_overrides_runpath=no
2850
 
  hardcode_into_libs=yes
2851
 
  ;;
2852
 
 
2853
 
irix5* | irix6* | nonstopux*)
2854
 
  case $host_os in
2855
 
    nonstopux*) version_type=nonstopux ;;
2856
 
    *)
2857
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
2858
 
                version_type=linux
2859
 
        else
2860
 
                version_type=irix
2861
 
        fi ;;
2862
 
  esac
2863
 
  need_lib_prefix=no
2864
 
  need_version=no
2865
 
  soname_spec='${libname}${release}${shared_ext}$major'
2866
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2867
 
  case $host_os in
2868
 
  irix5* | nonstopux*)
2869
 
    libsuff= shlibsuff=
2870
 
    ;;
2871
 
  *)
2872
 
    case $LD in # libtool.m4 will add one of these switches to LD
2873
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2874
 
      libsuff= shlibsuff= libmagic=32-bit;;
2875
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2876
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2877
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2878
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2879
 
    *) libsuff= shlibsuff= libmagic=never-match;;
2880
 
    esac
2881
 
    ;;
2882
 
  esac
2883
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2884
 
  shlibpath_overrides_runpath=no
2885
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2886
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2887
 
  hardcode_into_libs=yes
2888
 
  ;;
2889
 
 
2890
 
# No shared lib support for Linux oldld, aout, or coff.
2891
 
linux*oldld* | linux*aout* | linux*coff*)
2892
 
  dynamic_linker=no
2893
 
  ;;
2894
 
 
2895
 
# This must be Linux ELF.
2896
 
linux* | k*bsd*-gnu)
2897
 
  version_type=linux
2898
 
  need_lib_prefix=no
2899
 
  need_version=no
2900
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2901
 
  soname_spec='${libname}${release}${shared_ext}$major'
2902
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2903
 
  shlibpath_var=LD_LIBRARY_PATH
2904
 
  shlibpath_overrides_runpath=no
2905
 
  # Some binutils ld are patched to set DT_RUNPATH
2906
 
  save_LDFLAGS=$LDFLAGS
2907
 
  save_libdir=$libdir
2908
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2909
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2910
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2911
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2912
 
       [shlibpath_overrides_runpath=yes])])
2913
 
  LDFLAGS=$save_LDFLAGS
2914
 
  libdir=$save_libdir
2915
 
 
2916
 
  # This implies no fast_install, which is unacceptable.
2917
 
  # Some rework will be needed to allow for fast_install
2918
 
  # before this can be enabled.
2919
 
  hardcode_into_libs=yes
2920
 
 
2921
 
  # Append ld.so.conf contents to the search path
2922
 
  if test -f /etc/ld.so.conf; then
2923
 
    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' ' '`
2924
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2925
 
  fi
2926
 
 
2927
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2928
 
  # powerpc, because MkLinux only supported shared libraries with the
2929
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
2930
 
  # most powerpc-linux boxes support dynamic linking these days and
2931
 
  # people can always --disable-shared, the test was removed, and we
2932
 
  # assume the GNU/Linux dynamic linker is in use.
2933
 
  dynamic_linker='GNU/Linux ld.so'
2934
 
  ;;
2935
 
 
2936
 
netbsdelf*-gnu)
2937
 
  version_type=linux
2938
 
  need_lib_prefix=no
2939
 
  need_version=no
2940
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2941
 
  soname_spec='${libname}${release}${shared_ext}$major'
2942
 
  shlibpath_var=LD_LIBRARY_PATH
2943
 
  shlibpath_overrides_runpath=no
2944
 
  hardcode_into_libs=yes
2945
 
  dynamic_linker='NetBSD ld.elf_so'
2946
 
  ;;
2947
 
 
2948
 
netbsd*)
2949
 
  version_type=sunos
2950
 
  need_lib_prefix=no
2951
 
  need_version=no
2952
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2953
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2954
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2955
 
    dynamic_linker='NetBSD (a.out) ld.so'
2956
 
  else
2957
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2958
 
    soname_spec='${libname}${release}${shared_ext}$major'
2959
 
    dynamic_linker='NetBSD ld.elf_so'
2960
 
  fi
2961
 
  shlibpath_var=LD_LIBRARY_PATH
2962
 
  shlibpath_overrides_runpath=yes
2963
 
  hardcode_into_libs=yes
2964
 
  ;;
2965
 
 
2966
 
newsos6)
2967
 
  version_type=linux
2968
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2969
 
  shlibpath_var=LD_LIBRARY_PATH
2970
 
  shlibpath_overrides_runpath=yes
2971
 
  ;;
2972
 
 
2973
 
*nto* | *qnx*)
2974
 
  version_type=qnx
2975
 
  need_lib_prefix=no
2976
 
  need_version=no
2977
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2978
 
  soname_spec='${libname}${release}${shared_ext}$major'
2979
 
  shlibpath_var=LD_LIBRARY_PATH
2980
 
  shlibpath_overrides_runpath=no
2981
 
  hardcode_into_libs=yes
2982
 
  dynamic_linker='ldqnx.so'
2983
 
  ;;
2984
 
 
2985
 
openbsd*)
2986
 
  version_type=sunos
2987
 
  sys_lib_dlsearch_path_spec="/usr/lib"
2988
 
  need_lib_prefix=no
2989
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2990
 
  case $host_os in
2991
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
2992
 
    *)                          need_version=no  ;;
2993
 
  esac
2994
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2995
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2996
 
  shlibpath_var=LD_LIBRARY_PATH
2997
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2998
 
    case $host_os in
2999
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
3000
 
        shlibpath_overrides_runpath=no
3001
 
        ;;
3002
 
      *)
3003
 
        shlibpath_overrides_runpath=yes
3004
 
        ;;
3005
 
      esac
3006
 
  else
3007
 
    shlibpath_overrides_runpath=yes
3008
 
  fi
3009
 
  ;;
3010
 
 
3011
 
os2*)
3012
 
  libname_spec='$name'
3013
 
  shrext_cmds=".dll"
3014
 
  need_lib_prefix=no
3015
 
  library_names_spec='$libname${shared_ext} $libname.a'
3016
 
  dynamic_linker='OS/2 ld.exe'
3017
 
  shlibpath_var=LIBPATH
3018
 
  ;;
3019
 
 
3020
 
osf3* | osf4* | osf5*)
3021
 
  version_type=osf
3022
 
  need_lib_prefix=no
3023
 
  need_version=no
3024
 
  soname_spec='${libname}${release}${shared_ext}$major'
3025
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3026
 
  shlibpath_var=LD_LIBRARY_PATH
3027
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3028
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3029
 
  ;;
3030
 
 
3031
 
rdos*)
3032
 
  dynamic_linker=no
3033
 
  ;;
3034
 
 
3035
 
solaris*)
3036
 
  version_type=linux
3037
 
  need_lib_prefix=no
3038
 
  need_version=no
3039
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3040
 
  soname_spec='${libname}${release}${shared_ext}$major'
3041
 
  shlibpath_var=LD_LIBRARY_PATH
3042
 
  shlibpath_overrides_runpath=yes
3043
 
  hardcode_into_libs=yes
3044
 
  # ldd complains unless libraries are executable
3045
 
  postinstall_cmds='chmod +x $lib'
3046
 
  ;;
3047
 
 
3048
 
sunos4*)
3049
 
  version_type=sunos
3050
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3051
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3052
 
  shlibpath_var=LD_LIBRARY_PATH
3053
 
  shlibpath_overrides_runpath=yes
3054
 
  if test "$with_gnu_ld" = yes; then
3055
 
    need_lib_prefix=no
3056
 
  fi
3057
 
  need_version=yes
3058
 
  ;;
3059
 
 
3060
 
sysv4 | sysv4.3*)
3061
 
  version_type=linux
3062
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3063
 
  soname_spec='${libname}${release}${shared_ext}$major'
3064
 
  shlibpath_var=LD_LIBRARY_PATH
3065
 
  case $host_vendor in
3066
 
    sni)
3067
 
      shlibpath_overrides_runpath=no
3068
 
      need_lib_prefix=no
3069
 
      runpath_var=LD_RUN_PATH
3070
 
      ;;
3071
 
    siemens)
3072
 
      need_lib_prefix=no
3073
 
      ;;
3074
 
    motorola)
3075
 
      need_lib_prefix=no
3076
 
      need_version=no
3077
 
      shlibpath_overrides_runpath=no
3078
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3079
 
      ;;
3080
 
  esac
3081
 
  ;;
3082
 
 
3083
 
sysv4*MP*)
3084
 
  if test -d /usr/nec ;then
3085
 
    version_type=linux
3086
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3087
 
    soname_spec='$libname${shared_ext}.$major'
3088
 
    shlibpath_var=LD_LIBRARY_PATH
3089
 
  fi
3090
 
  ;;
3091
 
 
3092
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3093
 
  version_type=freebsd-elf
3094
 
  need_lib_prefix=no
3095
 
  need_version=no
3096
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3097
 
  soname_spec='${libname}${release}${shared_ext}$major'
3098
 
  shlibpath_var=LD_LIBRARY_PATH
3099
 
  shlibpath_overrides_runpath=yes
3100
 
  hardcode_into_libs=yes
3101
 
  if test "$with_gnu_ld" = yes; then
3102
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3103
 
  else
3104
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3105
 
    case $host_os in
3106
 
      sco3.2v5*)
3107
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3108
 
        ;;
3109
 
    esac
3110
 
  fi
3111
 
  sys_lib_dlsearch_path_spec='/usr/lib'
3112
 
  ;;
3113
 
 
3114
 
tpf*)
3115
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3116
 
  version_type=linux
3117
 
  need_lib_prefix=no
3118
 
  need_version=no
3119
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3120
 
  shlibpath_var=LD_LIBRARY_PATH
3121
 
  shlibpath_overrides_runpath=no
3122
 
  hardcode_into_libs=yes
3123
 
  ;;
3124
 
 
3125
 
uts4*)
3126
 
  version_type=linux
3127
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3128
 
  soname_spec='${libname}${release}${shared_ext}$major'
3129
 
  shlibpath_var=LD_LIBRARY_PATH
3130
 
  ;;
3131
 
 
3132
 
*)
3133
 
  dynamic_linker=no
3134
 
  ;;
3135
 
esac
3136
 
AC_MSG_RESULT([$dynamic_linker])
3137
 
test "$dynamic_linker" = no && can_build_shared=no
3138
 
 
3139
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3140
 
if test "$GCC" = yes; then
3141
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3142
 
fi
3143
 
 
3144
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3145
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3146
 
fi
3147
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3148
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3149
 
fi
3150
 
 
3151
 
_LT_DECL([], [variables_saved_for_relink], [1],
3152
 
    [Variables whose values should be saved in libtool wrapper scripts and
3153
 
    restored at link time])
3154
 
_LT_DECL([], [need_lib_prefix], [0],
3155
 
    [Do we need the "lib" prefix for modules?])
3156
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3157
 
_LT_DECL([], [version_type], [0], [Library versioning type])
3158
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3159
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3160
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3161
 
    [Is shlibpath searched before the hard-coded library search path?])
3162
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3163
 
_LT_DECL([], [library_names_spec], [1],
3164
 
    [[List of archive names.  First name is the real one, the rest are links.
3165
 
    The last name is the one that the linker finds with -lNAME]])
3166
 
_LT_DECL([], [soname_spec], [1],
3167
 
    [[The coded name of the library, if different from the real name]])
3168
 
_LT_DECL([], [postinstall_cmds], [2],
3169
 
    [Command to use after installation of a shared archive])
3170
 
_LT_DECL([], [postuninstall_cmds], [2],
3171
 
    [Command to use after uninstallation of a shared archive])
3172
 
_LT_DECL([], [finish_cmds], [2],
3173
 
    [Commands used to finish a libtool library installation in a directory])
3174
 
_LT_DECL([], [finish_eval], [1],
3175
 
    [[As "finish_cmds", except a single script fragment to be evaled but
3176
 
    not shown]])
3177
 
_LT_DECL([], [hardcode_into_libs], [0],
3178
 
    [Whether we should hardcode library paths into libraries])
3179
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
3180
 
    [Compile-time system search path for libraries])
3181
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3182
 
    [Run-time system search path for libraries])
3183
 
])# _LT_SYS_DYNAMIC_LINKER
3184
 
 
3185
 
 
3186
 
# _LT_PATH_TOOL_PREFIX(TOOL)
3187
 
# --------------------------
3188
 
# find a file program which can recognize shared library
3189
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3190
 
[m4_require([_LT_DECL_EGREP])dnl
3191
 
AC_MSG_CHECKING([for $1])
3192
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3193
 
[case $MAGIC_CMD in
3194
 
[[\\/*] |  ?:[\\/]*])
3195
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3196
 
  ;;
3197
 
*)
3198
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3199
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3200
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
3201
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
3202
 
dnl not every word.  This closes a longstanding sh security hole.
3203
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
3204
 
  for ac_dir in $ac_dummy; do
3205
 
    IFS="$lt_save_ifs"
3206
 
    test -z "$ac_dir" && ac_dir=.
3207
 
    if test -f $ac_dir/$1; then
3208
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3209
 
      if test -n "$file_magic_test_file"; then
3210
 
        case $deplibs_check_method in
3211
 
        "file_magic "*)
3212
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3213
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3214
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3215
 
            $EGREP "$file_magic_regex" > /dev/null; then
3216
 
            :
3217
 
          else
3218
 
            cat <<_LT_EOF 1>&2
3219
 
 
3220
 
*** Warning: the command libtool uses to detect shared libraries,
3221
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3222
 
*** The result is that libtool may fail to recognize shared libraries
3223
 
*** as such.  This will affect the creation of libtool libraries that
3224
 
*** depend on shared libraries, but programs linked with such libtool
3225
 
*** libraries will work regardless of this problem.  Nevertheless, you
3226
 
*** may want to report the problem to your system manager and/or to
3227
 
*** bug-libtool@gnu.org
3228
 
 
3229
 
_LT_EOF
3230
 
          fi ;;
3231
 
        esac
3232
 
      fi
3233
 
      break
3234
 
    fi
3235
 
  done
3236
 
  IFS="$lt_save_ifs"
3237
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3238
 
  ;;
3239
 
esac])
3240
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3241
 
if test -n "$MAGIC_CMD"; then
3242
 
  AC_MSG_RESULT($MAGIC_CMD)
3243
 
else
3244
 
  AC_MSG_RESULT(no)
3245
 
fi
3246
 
_LT_DECL([], [MAGIC_CMD], [0],
3247
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3248
 
])# _LT_PATH_TOOL_PREFIX
3249
 
 
3250
 
# Old name:
3251
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3252
 
dnl aclocal-1.4 backwards compatibility:
3253
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3254
 
 
3255
 
 
3256
 
# _LT_PATH_MAGIC
3257
 
# --------------
3258
 
# find a file program which can recognize a shared library
3259
 
m4_defun([_LT_PATH_MAGIC],
3260
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3261
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3262
 
  if test -n "$ac_tool_prefix"; then
3263
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3264
 
  else
3265
 
    MAGIC_CMD=:
3266
 
  fi
3267
 
fi
3268
 
])# _LT_PATH_MAGIC
3269
 
 
3270
 
 
3271
 
# LT_PATH_LD
3272
 
# ----------
3273
 
# find the pathname to the GNU or non-GNU linker
3274
 
AC_DEFUN([LT_PATH_LD],
3275
 
[AC_REQUIRE([AC_PROG_CC])dnl
3276
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3277
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3278
 
m4_require([_LT_DECL_SED])dnl
3279
 
m4_require([_LT_DECL_EGREP])dnl
3280
 
 
3281
 
AC_ARG_WITH([gnu-ld],
3282
 
    [AS_HELP_STRING([--with-gnu-ld],
3283
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3284
 
    [test "$withval" = no || with_gnu_ld=yes],
3285
 
    [with_gnu_ld=no])dnl
3286
 
 
3287
 
ac_prog=ld
3288
 
if test "$GCC" = yes; then
3289
 
  # Check if gcc -print-prog-name=ld gives a path.
3290
 
  AC_MSG_CHECKING([for ld used by $CC])
3291
 
  case $host in
3292
 
  *-*-mingw*)
3293
 
    # gcc leaves a trailing carriage return which upsets mingw
3294
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3295
 
  *)
3296
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3297
 
  esac
3298
 
  case $ac_prog in
3299
 
    # Accept absolute paths.
3300
 
    [[\\/]]* | ?:[[\\/]]*)
3301
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
3302
 
      # Canonicalize the pathname of ld
3303
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3304
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3305
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3306
 
      done
3307
 
      test -z "$LD" && LD="$ac_prog"
3308
 
      ;;
3309
 
  "")
3310
 
    # If it fails, then pretend we aren't using GCC.
3311
 
    ac_prog=ld
3312
 
    ;;
3313
 
  *)
3314
 
    # If it is relative, then search for the first ld in PATH.
3315
 
    with_gnu_ld=unknown
3316
 
    ;;
3317
 
  esac
3318
 
elif test "$with_gnu_ld" = yes; then
3319
 
  AC_MSG_CHECKING([for GNU ld])
3320
 
else
3321
 
  AC_MSG_CHECKING([for non-GNU ld])
3322
 
fi
3323
 
AC_CACHE_VAL(lt_cv_path_LD,
3324
 
[if test -z "$LD"; then
3325
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3326
 
  for ac_dir in $PATH; do
3327
 
    IFS="$lt_save_ifs"
3328
 
    test -z "$ac_dir" && ac_dir=.
3329
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3330
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3331
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3332
 
      # but apparently some variants of GNU ld only accept -v.
3333
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3334
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3335
 
      *GNU* | *'with BFD'*)
3336
 
        test "$with_gnu_ld" != no && break
3337
 
        ;;
3338
 
      *)
3339
 
        test "$with_gnu_ld" != yes && break
3340
 
        ;;
3341
 
      esac
3342
 
    fi
3343
 
  done
3344
 
  IFS="$lt_save_ifs"
3345
 
else
3346
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3347
 
fi])
3348
 
LD="$lt_cv_path_LD"
3349
 
if test -n "$LD"; then
3350
 
  AC_MSG_RESULT($LD)
3351
 
else
3352
 
  AC_MSG_RESULT(no)
3353
 
fi
3354
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3355
 
_LT_PATH_LD_GNU
3356
 
AC_SUBST([LD])
3357
 
 
3358
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3359
 
])# LT_PATH_LD
3360
 
 
3361
 
# Old names:
3362
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3363
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3364
 
dnl aclocal-1.4 backwards compatibility:
3365
 
dnl AC_DEFUN([AM_PROG_LD], [])
3366
 
dnl AC_DEFUN([AC_PROG_LD], [])
3367
 
 
3368
 
 
3369
 
# _LT_PATH_LD_GNU
3370
 
#- --------------
3371
 
m4_defun([_LT_PATH_LD_GNU],
3372
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3373
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3374
 
case `$LD -v 2>&1 </dev/null` in
3375
 
*GNU* | *'with BFD'*)
3376
 
  lt_cv_prog_gnu_ld=yes
3377
 
  ;;
3378
 
*)
3379
 
  lt_cv_prog_gnu_ld=no
3380
 
  ;;
3381
 
esac])
3382
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3383
 
])# _LT_PATH_LD_GNU
3384
 
 
3385
 
 
3386
 
# _LT_CMD_RELOAD
3387
 
# --------------
3388
 
# find reload flag for linker
3389
 
#   -- PORTME Some linkers may need a different reload flag.
3390
 
m4_defun([_LT_CMD_RELOAD],
3391
 
[AC_CACHE_CHECK([for $LD option to reload object files],
3392
 
  lt_cv_ld_reload_flag,
3393
 
  [lt_cv_ld_reload_flag='-r'])
3394
 
reload_flag=$lt_cv_ld_reload_flag
3395
 
case $reload_flag in
3396
 
"" | " "*) ;;
3397
 
*) reload_flag=" $reload_flag" ;;
3398
 
esac
3399
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3400
 
case $host_os in
3401
 
  darwin*)
3402
 
    if test "$GCC" = yes; then
3403
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3404
 
    else
3405
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406
 
    fi
3407
 
    ;;
3408
 
esac
3409
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3410
 
_LT_DECL([], [reload_cmds], [2])dnl
3411
 
])# _LT_CMD_RELOAD
3412
 
 
3413
 
 
3414
 
# _LT_CHECK_MAGIC_METHOD
3415
 
# ----------------------
3416
 
# how to check for library dependencies
3417
 
#  -- PORTME fill in with the dynamic library characteristics
3418
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
3419
 
[m4_require([_LT_DECL_EGREP])
3420
 
m4_require([_LT_DECL_OBJDUMP])
3421
 
AC_CACHE_CHECK([how to recognize dependent libraries],
3422
 
lt_cv_deplibs_check_method,
3423
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3424
 
lt_cv_file_magic_test_file=
3425
 
lt_cv_deplibs_check_method='unknown'
3426
 
# Need to set the preceding variable on all platforms that support
3427
 
# interlibrary dependencies.
3428
 
# 'none' -- dependencies not supported.
3429
 
# `unknown' -- same as none, but documents that we really don't know.
3430
 
# 'pass_all' -- all dependencies passed with no checks.
3431
 
# 'test_compile' -- check by making test program.
3432
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3433
 
# which responds to the $file_magic_cmd with a given extended regex.
3434
 
# If you have `file' or equivalent on your system and you're not sure
3435
 
# whether `pass_all' will *always* work, you probably want this one.
3436
 
 
3437
 
case $host_os in
3438
 
aix[[4-9]]*)
3439
 
  lt_cv_deplibs_check_method=pass_all
3440
 
  ;;
3441
 
 
3442
 
beos*)
3443
 
  lt_cv_deplibs_check_method=pass_all
3444
 
  ;;
3445
 
 
3446
 
bsdi[[45]]*)
3447
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3448
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3449
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3450
 
  ;;
3451
 
 
3452
 
cygwin*)
3453
 
  # func_win32_libid is a shell function defined in ltmain.sh
3454
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3455
 
  lt_cv_file_magic_cmd='func_win32_libid'
3456
 
  ;;
3457
 
 
3458
 
mingw* | pw32*)
3459
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
3460
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3461
 
  # unless we find 'file', for example because we are cross-compiling.
3462
 
  if ( file / ) >/dev/null 2>&1; then
3463
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3464
 
    lt_cv_file_magic_cmd='func_win32_libid'
3465
 
  else
3466
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3467
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3468
 
  fi
3469
 
  ;;
3470
 
 
3471
 
cegcc)
3472
 
  # use the weaker test based on 'objdump'. See mingw*.
3473
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3474
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3475
 
  ;;
3476
 
 
3477
 
darwin* | rhapsody*)
3478
 
  lt_cv_deplibs_check_method=pass_all
3479
 
  ;;
3480
 
 
3481
 
freebsd* | dragonfly*)
3482
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3483
 
    case $host_cpu in
3484
 
    i*86 )
3485
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3486
 
      # Let's accept both of them until this is cleared up.
3487
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3488
 
      lt_cv_file_magic_cmd=/usr/bin/file
3489
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3490
 
      ;;
3491
 
    esac
3492
 
  else
3493
 
    lt_cv_deplibs_check_method=pass_all
3494
 
  fi
3495
 
  ;;
3496
 
 
3497
 
gnu*)
3498
 
  lt_cv_deplibs_check_method=pass_all
3499
 
  ;;
3500
 
 
3501
 
hpux10.20* | hpux11*)
3502
 
  lt_cv_file_magic_cmd=/usr/bin/file
3503
 
  case $host_cpu in
3504
 
  ia64*)
3505
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3506
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3507
 
    ;;
3508
 
  hppa*64*)
3509
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3510
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3511
 
    ;;
3512
 
  *)
3513
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3514
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3515
 
    ;;
3516
 
  esac
3517
 
  ;;
3518
 
 
3519
 
interix[[3-9]]*)
3520
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3521
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3522
 
  ;;
3523
 
 
3524
 
irix5* | irix6* | nonstopux*)
3525
 
  case $LD in
3526
 
  *-32|*"-32 ") libmagic=32-bit;;
3527
 
  *-n32|*"-n32 ") libmagic=N32;;
3528
 
  *-64|*"-64 ") libmagic=64-bit;;
3529
 
  *) libmagic=never-match;;
3530
 
  esac
3531
 
  lt_cv_deplibs_check_method=pass_all
3532
 
  ;;
3533
 
 
3534
 
# This must be Linux ELF.
3535
 
linux* | k*bsd*-gnu)
3536
 
  lt_cv_deplibs_check_method=pass_all
3537
 
  ;;
3538
 
 
3539
 
netbsd* | netbsdelf*-gnu)
3540
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3541
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3542
 
  else
3543
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3544
 
  fi
3545
 
  ;;
3546
 
 
3547
 
newos6*)
3548
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3549
 
  lt_cv_file_magic_cmd=/usr/bin/file
3550
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3551
 
  ;;
3552
 
 
3553
 
*nto* | *qnx*)
3554
 
  lt_cv_deplibs_check_method=pass_all
3555
 
  ;;
3556
 
 
3557
 
openbsd*)
3558
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3559
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3560
 
  else
3561
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3562
 
  fi
3563
 
  ;;
3564
 
 
3565
 
osf3* | osf4* | osf5*)
3566
 
  lt_cv_deplibs_check_method=pass_all
3567
 
  ;;
3568
 
 
3569
 
rdos*)
3570
 
  lt_cv_deplibs_check_method=pass_all
3571
 
  ;;
3572
 
 
3573
 
solaris*)
3574
 
  lt_cv_deplibs_check_method=pass_all
3575
 
  ;;
3576
 
 
3577
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3578
 
  lt_cv_deplibs_check_method=pass_all
3579
 
  ;;
3580
 
 
3581
 
sysv4 | sysv4.3*)
3582
 
  case $host_vendor in
3583
 
  motorola)
3584
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3585
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3586
 
    ;;
3587
 
  ncr)
3588
 
    lt_cv_deplibs_check_method=pass_all
3589
 
    ;;
3590
 
  sequent)
3591
 
    lt_cv_file_magic_cmd='/bin/file'
3592
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3593
 
    ;;
3594
 
  sni)
3595
 
    lt_cv_file_magic_cmd='/bin/file'
3596
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3597
 
    lt_cv_file_magic_test_file=/lib/libc.so
3598
 
    ;;
3599
 
  siemens)
3600
 
    lt_cv_deplibs_check_method=pass_all
3601
 
    ;;
3602
 
  pc)
3603
 
    lt_cv_deplibs_check_method=pass_all
3604
 
    ;;
3605
 
  esac
3606
 
  ;;
3607
 
 
3608
 
tpf*)
3609
 
  lt_cv_deplibs_check_method=pass_all
3610
 
  ;;
3611
 
esac
3612
 
])
3613
 
file_magic_cmd=$lt_cv_file_magic_cmd
3614
 
deplibs_check_method=$lt_cv_deplibs_check_method
3615
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3616
 
 
3617
 
_LT_DECL([], [deplibs_check_method], [1],
3618
 
    [Method to check whether dependent libraries are shared objects])
3619
 
_LT_DECL([], [file_magic_cmd], [1],
3620
 
    [Command to use when deplibs_check_method == "file_magic"])
3621
 
])# _LT_CHECK_MAGIC_METHOD
3622
 
 
3623
 
 
3624
 
# LT_PATH_NM
3625
 
# ----------
3626
 
# find the pathname to a BSD- or MS-compatible name lister
3627
 
AC_DEFUN([LT_PATH_NM],
3628
 
[AC_REQUIRE([AC_PROG_CC])dnl
3629
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3630
 
[if test -n "$NM"; then
3631
 
  # Let the user override the test.
3632
 
  lt_cv_path_NM="$NM"
3633
 
else
3634
 
  lt_nm_to_check="${ac_tool_prefix}nm"
3635
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3636
 
    lt_nm_to_check="$lt_nm_to_check nm"
3637
 
  fi
3638
 
  for lt_tmp_nm in $lt_nm_to_check; do
3639
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3640
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3641
 
      IFS="$lt_save_ifs"
3642
 
      test -z "$ac_dir" && ac_dir=.
3643
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
3644
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3645
 
        # Check to see if the nm accepts a BSD-compat flag.
3646
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3647
 
        #   nm: unknown option "B" ignored
3648
 
        # Tru64's nm complains that /dev/null is an invalid object file
3649
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3650
 
        */dev/null* | *'Invalid file or object type'*)
3651
 
          lt_cv_path_NM="$tmp_nm -B"
3652
 
          break
3653
 
          ;;
3654
 
        *)
3655
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3656
 
          */dev/null*)
3657
 
            lt_cv_path_NM="$tmp_nm -p"
3658
 
            break
3659
 
            ;;
3660
 
          *)
3661
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3662
 
            continue # so that we can try to find one that supports BSD flags
3663
 
            ;;
3664
 
          esac
3665
 
          ;;
3666
 
        esac
3667
 
      fi
3668
 
    done
3669
 
    IFS="$lt_save_ifs"
3670
 
  done
3671
 
  : ${lt_cv_path_NM=no}
3672
 
fi])
3673
 
if test "$lt_cv_path_NM" != "no"; then
3674
 
  NM="$lt_cv_path_NM"
3675
 
else
3676
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
3677
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3678
 
  AC_SUBST([DUMPBIN])
3679
 
  if test "$DUMPBIN" != ":"; then
3680
 
    NM="$DUMPBIN"
3681
 
  fi
3682
 
fi
3683
 
test -z "$NM" && NM=nm
3684
 
AC_SUBST([NM])
3685
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3686
 
 
3687
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3688
 
  [lt_cv_nm_interface="BSD nm"
3689
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3690
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3691
 
  (eval "$ac_compile" 2>conftest.err)
3692
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3693
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3694
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3695
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3696
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3697
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
3698
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3699
 
    lt_cv_nm_interface="MS dumpbin"
3700
 
  fi
3701
 
  rm -f conftest*])
3702
 
])# LT_PATH_NM
3703
 
 
3704
 
# Old names:
3705
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3706
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3707
 
dnl aclocal-1.4 backwards compatibility:
3708
 
dnl AC_DEFUN([AM_PROG_NM], [])
3709
 
dnl AC_DEFUN([AC_PROG_NM], [])
3710
 
 
3711
 
 
3712
 
# LT_LIB_M
3713
 
# --------
3714
 
# check for math library
3715
 
AC_DEFUN([LT_LIB_M],
3716
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3717
 
LIBM=
3718
 
case $host in
3719
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3720
 
  # These system don't have libm, or don't need it
3721
 
  ;;
3722
 
*-ncr-sysv4.3*)
3723
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3724
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3725
 
  ;;
3726
 
*)
3727
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3728
 
  ;;
3729
 
esac
3730
 
AC_SUBST([LIBM])
3731
 
])# LT_LIB_M
3732
 
 
3733
 
# Old name:
3734
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3735
 
dnl aclocal-1.4 backwards compatibility:
3736
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3737
 
 
3738
 
 
3739
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
3740
 
# -------------------------------
3741
 
m4_defun([_LT_COMPILER_NO_RTTI],
3742
 
[m4_require([_LT_TAG_COMPILER])dnl
3743
 
 
3744
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3745
 
 
3746
 
if test "$GCC" = yes; then
3747
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3748
 
 
3749
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3750
 
    lt_cv_prog_compiler_rtti_exceptions,
3751
 
    [-fno-rtti -fno-exceptions], [],
3752
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3753
 
fi
3754
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3755
 
        [Compiler flag to turn off builtin functions])
3756
 
])# _LT_COMPILER_NO_RTTI
3757
 
 
3758
 
 
3759
 
# _LT_CMD_GLOBAL_SYMBOLS
3760
 
# ----------------------
3761
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3762
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3763
 
AC_REQUIRE([AC_PROG_CC])dnl
3764
 
AC_REQUIRE([LT_PATH_NM])dnl
3765
 
AC_REQUIRE([LT_PATH_LD])dnl
3766
 
m4_require([_LT_DECL_SED])dnl
3767
 
m4_require([_LT_DECL_EGREP])dnl
3768
 
m4_require([_LT_TAG_COMPILER])dnl
3769
 
 
3770
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
3771
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3772
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3773
 
[
3774
 
# These are sane defaults that work on at least a few old systems.
3775
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3776
 
 
3777
 
# Character class describing NM global symbol codes.
3778
 
symcode='[[BCDEGRST]]'
3779
 
 
3780
 
# Regexp to match symbols that can be accessed directly from C.
3781
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3782
 
 
3783
 
# Define system-specific variables.
3784
 
case $host_os in
3785
 
aix*)
3786
 
  symcode='[[BCDT]]'
3787
 
  ;;
3788
 
cygwin* | mingw* | pw32* | cegcc*)
3789
 
  symcode='[[ABCDGISTW]]'
3790
 
  ;;
3791
 
hpux*)
3792
 
  if test "$host_cpu" = ia64; then
3793
 
    symcode='[[ABCDEGRST]]'
3794
 
  fi
3795
 
  ;;
3796
 
irix* | nonstopux*)
3797
 
  symcode='[[BCDEGRST]]'
3798
 
  ;;
3799
 
osf*)
3800
 
  symcode='[[BCDEGQRST]]'
3801
 
  ;;
3802
 
solaris*)
3803
 
  symcode='[[BDRT]]'
3804
 
  ;;
3805
 
sco3.2v5*)
3806
 
  symcode='[[DT]]'
3807
 
  ;;
3808
 
sysv4.2uw2*)
3809
 
  symcode='[[DT]]'
3810
 
  ;;
3811
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
3812
 
  symcode='[[ABDT]]'
3813
 
  ;;
3814
 
sysv4)
3815
 
  symcode='[[DFNSTU]]'
3816
 
  ;;
3817
 
esac
3818
 
 
3819
 
# If we're using GNU nm, then use its standard symbol codes.
3820
 
case `$NM -V 2>&1` in
3821
 
*GNU* | *'with BFD'*)
3822
 
  symcode='[[ABCDGIRSTW]]' ;;
3823
 
esac
3824
 
 
3825
 
# Transform an extracted symbol line into a proper C declaration.
3826
 
# Some systems (esp. on ia64) link data and code symbols differently,
3827
 
# so use this general approach.
3828
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3829
 
 
3830
 
# Transform an extracted symbol line into symbol name and symbol address
3831
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3832
 
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'"
3833
 
 
3834
 
# Handle CRLF in mingw tool chain
3835
 
opt_cr=
3836
 
case $build_os in
3837
 
mingw*)
3838
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3839
 
  ;;
3840
 
esac
3841
 
 
3842
 
# Try without a prefix underscore, then with it.
3843
 
for ac_symprfx in "" "_"; do
3844
 
 
3845
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3846
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
3847
 
 
3848
 
  # Write the raw and C identifiers.
3849
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3850
 
    # Fake it for dumpbin and say T for any non-static function
3851
 
    # and D for any global variable.
3852
 
    # Also find C++ and __fastcall symbols from MSVC++,
3853
 
    # which start with @ or ?.
3854
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3855
 
"     {last_section=section; section=\$ 3};"\
3856
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3857
 
"     \$ 0!~/External *\|/{next};"\
3858
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3859
 
"     {if(hide[section]) next};"\
3860
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3861
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3862
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3863
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3864
 
"     ' prfx=^$ac_symprfx]"
3865
 
  else
3866
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3867
 
  fi
3868
 
 
3869
 
  # Check to see that the pipe works correctly.
3870
 
  pipe_works=no
3871
 
 
3872
 
  rm -f conftest*
3873
 
  cat > conftest.$ac_ext <<_LT_EOF
3874
 
#ifdef __cplusplus
3875
 
extern "C" {
3876
 
#endif
3877
 
char nm_test_var;
3878
 
void nm_test_func(void);
3879
 
void nm_test_func(void){}
3880
 
#ifdef __cplusplus
3881
 
}
3882
 
#endif
3883
 
int main(){nm_test_var='a';nm_test_func();return(0);}
3884
 
_LT_EOF
3885
 
 
3886
 
  if AC_TRY_EVAL(ac_compile); then
3887
 
    # Now try to grab the symbols.
3888
 
    nlist=conftest.nm
3889
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3890
 
      # Try sorting and uniquifying the output.
3891
 
      if sort "$nlist" | uniq > "$nlist"T; then
3892
 
        mv -f "$nlist"T "$nlist"
3893
 
      else
3894
 
        rm -f "$nlist"T
3895
 
      fi
3896
 
 
3897
 
      # Make sure that we snagged all the symbols we need.
3898
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3899
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3900
 
          cat <<_LT_EOF > conftest.$ac_ext
3901
 
#ifdef __cplusplus
3902
 
extern "C" {
3903
 
#endif
3904
 
 
3905
 
_LT_EOF
3906
 
          # Now generate the symbol file.
3907
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3908
 
 
3909
 
          cat <<_LT_EOF >> conftest.$ac_ext
3910
 
 
3911
 
/* The mapping between symbol names and symbols.  */
3912
 
const struct {
3913
 
  const char *name;
3914
 
  void       *address;
3915
 
}
3916
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
3917
 
{
3918
 
  { "@PROGRAM@", (void *) 0 },
3919
 
_LT_EOF
3920
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3921
 
          cat <<\_LT_EOF >> conftest.$ac_ext
3922
 
  {0, (void *) 0}
3923
 
};
3924
 
 
3925
 
/* This works around a problem in FreeBSD linker */
3926
 
#ifdef FREEBSD_WORKAROUND
3927
 
static const void *lt_preloaded_setup() {
3928
 
  return lt__PROGRAM__LTX_preloaded_symbols;
3929
 
}
3930
 
#endif
3931
 
 
3932
 
#ifdef __cplusplus
3933
 
}
3934
 
#endif
3935
 
_LT_EOF
3936
 
          # Now try linking the two files.
3937
 
          mv conftest.$ac_objext conftstm.$ac_objext
3938
 
          lt_save_LIBS="$LIBS"
3939
 
          lt_save_CFLAGS="$CFLAGS"
3940
 
          LIBS="conftstm.$ac_objext"
3941
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3942
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3943
 
            pipe_works=yes
3944
 
          fi
3945
 
          LIBS="$lt_save_LIBS"
3946
 
          CFLAGS="$lt_save_CFLAGS"
3947
 
        else
3948
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3949
 
        fi
3950
 
      else
3951
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3952
 
      fi
3953
 
    else
3954
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3955
 
    fi
3956
 
  else
3957
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3958
 
    cat conftest.$ac_ext >&5
3959
 
  fi
3960
 
  rm -rf conftest* conftst*
3961
 
 
3962
 
  # Do not use the global_symbol_pipe unless it works.
3963
 
  if test "$pipe_works" = yes; then
3964
 
    break
3965
 
  else
3966
 
    lt_cv_sys_global_symbol_pipe=
3967
 
  fi
3968
 
done
3969
 
])
3970
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3971
 
  lt_cv_sys_global_symbol_to_cdecl=
3972
 
fi
3973
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3974
 
  AC_MSG_RESULT(failed)
3975
 
else
3976
 
  AC_MSG_RESULT(ok)
3977
 
fi
3978
 
 
3979
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3980
 
    [Take the output of nm and produce a listing of raw symbols and C names])
3981
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3982
 
    [Transform the output of nm in a proper C declaration])
3983
 
_LT_DECL([global_symbol_to_c_name_address],
3984
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
3985
 
    [Transform the output of nm in a C name address pair])
3986
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3987
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3988
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
3989
 
]) # _LT_CMD_GLOBAL_SYMBOLS
3990
 
 
3991
 
 
3992
 
# _LT_COMPILER_PIC([TAGNAME])
3993
 
# ---------------------------
3994
 
m4_defun([_LT_COMPILER_PIC],
3995
 
[m4_require([_LT_TAG_COMPILER])dnl
3996
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3997
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3998
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3999
 
 
4000
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4001
 
m4_if([$1], [CXX], [
4002
 
  # C++ specific cases for pic, static, wl, etc.
4003
 
  if test "$GXX" = yes; then
4004
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4005
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4006
 
 
4007
 
    case $host_os in
4008
 
    aix*)
4009
 
      # All AIX code is PIC.
4010
 
      if test "$host_cpu" = ia64; then
4011
 
        # AIX 5 now supports IA64 processor
4012
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4013
 
      fi
4014
 
      ;;
4015
 
 
4016
 
    amigaos*)
4017
 
      case $host_cpu in
4018
 
      powerpc)
4019
 
            # see comment about AmigaOS4 .so support
4020
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4021
 
        ;;
4022
 
      m68k)
4023
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4024
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4025
 
            # like `-m68040'.
4026
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4027
 
        ;;
4028
 
      esac
4029
 
      ;;
4030
 
 
4031
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4032
 
      # PIC is the default for these OSes.
4033
 
      ;;
4034
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
4035
 
      # This hack is so that the source file can tell whether it is being
4036
 
      # built for inclusion in a dll (and should export symbols for example).
4037
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4038
 
      # (--disable-auto-import) libraries
4039
 
      m4_if([$1], [GCJ], [],
4040
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4041
 
      ;;
4042
 
    darwin* | rhapsody*)
4043
 
      # PIC is the default on this platform
4044
 
      # Common symbols not allowed in MH_DYLIB files
4045
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4046
 
      ;;
4047
 
    *djgpp*)
4048
 
      # DJGPP does not support shared libraries at all
4049
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4050
 
      ;;
4051
 
    interix[[3-9]]*)
4052
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4053
 
      # Instead, we relocate shared libraries at runtime.
4054
 
      ;;
4055
 
    sysv4*MP*)
4056
 
      if test -d /usr/nec; then
4057
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4058
 
      fi
4059
 
      ;;
4060
 
    hpux*)
4061
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4062
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4063
 
      # sets the default TLS model and affects inlining.
4064
 
      case $host_cpu in
4065
 
      hppa*64*)
4066
 
        ;;
4067
 
      *)
4068
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4069
 
        ;;
4070
 
      esac
4071
 
      ;;
4072
 
    *qnx* | *nto*)
4073
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4074
 
      # it will coredump.
4075
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4076
 
      ;;
4077
 
    *)
4078
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4079
 
      ;;
4080
 
    esac
4081
 
  else
4082
 
    case $host_os in
4083
 
      aix[[4-9]]*)
4084
 
        # All AIX code is PIC.
4085
 
        if test "$host_cpu" = ia64; then
4086
 
          # AIX 5 now supports IA64 processor
4087
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4088
 
        else
4089
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4090
 
        fi
4091
 
        ;;
4092
 
      chorus*)
4093
 
        case $cc_basename in
4094
 
        cxch68*)
4095
 
          # Green Hills C++ Compiler
4096
 
          # _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"
4097
 
          ;;
4098
 
        esac
4099
 
        ;;
4100
 
      dgux*)
4101
 
        case $cc_basename in
4102
 
          ec++*)
4103
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4104
 
            ;;
4105
 
          ghcx*)
4106
 
            # Green Hills C++ Compiler
4107
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4108
 
            ;;
4109
 
          *)
4110
 
            ;;
4111
 
        esac
4112
 
        ;;
4113
 
      freebsd* | dragonfly*)
4114
 
        # FreeBSD uses GNU C++
4115
 
        ;;
4116
 
      hpux9* | hpux10* | hpux11*)
4117
 
        case $cc_basename in
4118
 
          CC*)
4119
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4120
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4121
 
            if test "$host_cpu" != ia64; then
4122
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4123
 
            fi
4124
 
            ;;
4125
 
          aCC*)
4126
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4127
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4128
 
            case $host_cpu in
4129
 
            hppa*64*|ia64*)
4130
 
              # +Z the default
4131
 
              ;;
4132
 
            *)
4133
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4134
 
              ;;
4135
 
            esac
4136
 
            ;;
4137
 
          *)
4138
 
            ;;
4139
 
        esac
4140
 
        ;;
4141
 
      interix*)
4142
 
        # This is c89, which is MS Visual C++ (no shared libs)
4143
 
        # Anyone wants to do a port?
4144
 
        ;;
4145
 
      irix5* | irix6* | nonstopux*)
4146
 
        case $cc_basename in
4147
 
          CC*)
4148
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4149
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4150
 
            # CC pic flag -KPIC is the default.
4151
 
            ;;
4152
 
          *)
4153
 
            ;;
4154
 
        esac
4155
 
        ;;
4156
 
      linux* | k*bsd*-gnu)
4157
 
        case $cc_basename in
4158
 
          KCC*)
4159
 
            # KAI C++ Compiler
4160
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4161
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4162
 
            ;;
4163
 
          ecpc* )
4164
 
            # old Intel C++ for x86_64 which still supported -KPIC.
4165
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4166
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4167
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4168
 
            ;;
4169
 
          icpc* )
4170
 
            # Intel C++, used to be incompatible with GCC.
4171
 
            # ICC 10 doesn't accept -KPIC any more.
4172
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4173
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4174
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4175
 
            ;;
4176
 
          pgCC* | pgcpp*)
4177
 
            # Portland Group C++ compiler
4178
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4179
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4180
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4181
 
            ;;
4182
 
          cxx*)
4183
 
            # Compaq C++
4184
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
4185
 
            # Linux and Compaq Tru64 Unix objects are PIC.
4186
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4187
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4188
 
            ;;
4189
 
          xlc* | xlC*)
4190
 
            # IBM XL 8.0 on PPC
4191
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4192
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4193
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4194
 
            ;;
4195
 
          *)
4196
 
            case `$CC -V 2>&1 | sed 5q` in
4197
 
            *Sun\ C*)
4198
 
              # Sun C++ 5.9
4199
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4200
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4201
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4202
 
              ;;
4203
 
            esac
4204
 
            ;;
4205
 
        esac
4206
 
        ;;
4207
 
      lynxos*)
4208
 
        ;;
4209
 
      m88k*)
4210
 
        ;;
4211
 
      mvs*)
4212
 
        case $cc_basename in
4213
 
          cxx*)
4214
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4215
 
            ;;
4216
 
          *)
4217
 
            ;;
4218
 
        esac
4219
 
        ;;
4220
 
      netbsd* | netbsdelf*-gnu)
4221
 
        ;;
4222
 
      *qnx* | *nto*)
4223
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4224
 
        # it will coredump.
4225
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4226
 
        ;;
4227
 
      osf3* | osf4* | osf5*)
4228
 
        case $cc_basename in
4229
 
          KCC*)
4230
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4231
 
            ;;
4232
 
          RCC*)
4233
 
            # Rational C++ 2.4.1
4234
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4235
 
            ;;
4236
 
          cxx*)
4237
 
            # Digital/Compaq C++
4238
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4239
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
4240
 
            # Linux and Compaq Tru64 Unix objects are PIC.
4241
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4242
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4243
 
            ;;
4244
 
          *)
4245
 
            ;;
4246
 
        esac
4247
 
        ;;
4248
 
      psos*)
4249
 
        ;;
4250
 
      solaris*)
4251
 
        case $cc_basename in
4252
 
          CC*)
4253
 
            # Sun C++ 4.2, 5.x and Centerline C++
4254
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4255
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4256
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4257
 
            ;;
4258
 
          gcx*)
4259
 
            # Green Hills C++ Compiler
4260
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4261
 
            ;;
4262
 
          *)
4263
 
            ;;
4264
 
        esac
4265
 
        ;;
4266
 
      sunos4*)
4267
 
        case $cc_basename in
4268
 
          CC*)
4269
 
            # Sun C++ 4.x
4270
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4271
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4272
 
            ;;
4273
 
          lcc*)
4274
 
            # Lucid
4275
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4276
 
            ;;
4277
 
          *)
4278
 
            ;;
4279
 
        esac
4280
 
        ;;
4281
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4282
 
        case $cc_basename in
4283
 
          CC*)
4284
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4285
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4286
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4287
 
            ;;
4288
 
        esac
4289
 
        ;;
4290
 
      tandem*)
4291
 
        case $cc_basename in
4292
 
          NCC*)
4293
 
            # NonStop-UX NCC 3.20
4294
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4295
 
            ;;
4296
 
          *)
4297
 
            ;;
4298
 
        esac
4299
 
        ;;
4300
 
      vxworks*)
4301
 
        ;;
4302
 
      *)
4303
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4304
 
        ;;
4305
 
    esac
4306
 
  fi
4307
 
],
4308
 
[
4309
 
  if test "$GCC" = yes; then
4310
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4312
 
 
4313
 
    case $host_os in
4314
 
      aix*)
4315
 
      # All AIX code is PIC.
4316
 
      if test "$host_cpu" = ia64; then
4317
 
        # AIX 5 now supports IA64 processor
4318
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4319
 
      fi
4320
 
      ;;
4321
 
 
4322
 
    amigaos*)
4323
 
      case $host_cpu in
4324
 
      powerpc)
4325
 
            # see comment about AmigaOS4 .so support
4326
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4327
 
        ;;
4328
 
      m68k)
4329
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4330
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4331
 
            # like `-m68040'.
4332
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4333
 
        ;;
4334
 
      esac
4335
 
      ;;
4336
 
 
4337
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4338
 
      # PIC is the default for these OSes.
4339
 
      ;;
4340
 
 
4341
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4342
 
      # This hack is so that the source file can tell whether it is being
4343
 
      # built for inclusion in a dll (and should export symbols for example).
4344
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4345
 
      # (--disable-auto-import) libraries
4346
 
      m4_if([$1], [GCJ], [],
4347
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4348
 
      ;;
4349
 
 
4350
 
    darwin* | rhapsody*)
4351
 
      # PIC is the default on this platform
4352
 
      # Common symbols not allowed in MH_DYLIB files
4353
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4354
 
      ;;
4355
 
 
4356
 
    hpux*)
4357
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4358
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4359
 
      # sets the default TLS model and affects inlining.
4360
 
      case $host_cpu in
4361
 
      hppa*64*)
4362
 
        # +Z the default
4363
 
        ;;
4364
 
      *)
4365
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4366
 
        ;;
4367
 
      esac
4368
 
      ;;
4369
 
 
4370
 
    interix[[3-9]]*)
4371
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4372
 
      # Instead, we relocate shared libraries at runtime.
4373
 
      ;;
4374
 
 
4375
 
    msdosdjgpp*)
4376
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4377
 
      # on systems that don't support them.
4378
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4379
 
      enable_shared=no
4380
 
      ;;
4381
 
 
4382
 
    *nto* | *qnx*)
4383
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4384
 
      # it will coredump.
4385
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4386
 
      ;;
4387
 
 
4388
 
    sysv4*MP*)
4389
 
      if test -d /usr/nec; then
4390
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4391
 
      fi
4392
 
      ;;
4393
 
 
4394
 
    *)
4395
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4396
 
      ;;
4397
 
    esac
4398
 
  else
4399
 
    # PORTME Check for flag to pass linker flags through the system compiler.
4400
 
    case $host_os in
4401
 
    aix*)
4402
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4403
 
      if test "$host_cpu" = ia64; then
4404
 
        # AIX 5 now supports IA64 processor
4405
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406
 
      else
4407
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4408
 
      fi
4409
 
      ;;
4410
 
 
4411
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4412
 
      # This hack is so that the source file can tell whether it is being
4413
 
      # built for inclusion in a dll (and should export symbols for example).
4414
 
      m4_if([$1], [GCJ], [],
4415
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4416
 
      ;;
4417
 
 
4418
 
    hpux9* | hpux10* | hpux11*)
4419
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4420
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4421
 
      # not for PA HP-UX.
4422
 
      case $host_cpu in
4423
 
      hppa*64*|ia64*)
4424
 
        # +Z the default
4425
 
        ;;
4426
 
      *)
4427
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4428
 
        ;;
4429
 
      esac
4430
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4431
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4432
 
      ;;
4433
 
 
4434
 
    irix5* | irix6* | nonstopux*)
4435
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4436
 
      # PIC (with -KPIC) is the default.
4437
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4438
 
      ;;
4439
 
 
4440
 
    linux* | k*bsd*-gnu)
4441
 
      case $cc_basename in
4442
 
      # old Intel for x86_64 which still supported -KPIC.
4443
 
      ecc*)
4444
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4445
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4446
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4447
 
        ;;
4448
 
      # icc used to be incompatible with GCC.
4449
 
      # ICC 10 doesn't accept -KPIC any more.
4450
 
      icc* | ifort*)
4451
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4452
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4453
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4454
 
        ;;
4455
 
      # Lahey Fortran 8.1.
4456
 
      lf95*)
4457
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4458
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4459
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4460
 
        ;;
4461
 
      pgcc* | pgf77* | pgf90* | pgf95*)
4462
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
4463
 
        # which looks to be a dead project)
4464
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4465
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4466
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4467
 
        ;;
4468
 
      ccc*)
4469
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4470
 
        # All Alpha code is PIC.
4471
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4472
 
        ;;
4473
 
      xl*)
4474
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
4475
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4476
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4477
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4478
 
        ;;
4479
 
      *)
4480
 
        case `$CC -V 2>&1 | sed 5q` in
4481
 
        *Sun\ C*)
4482
 
          # Sun C 5.9
4483
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4484
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4485
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4486
 
          ;;
4487
 
        *Sun\ F*)
4488
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4489
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4490
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4491
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4492
 
          ;;
4493
 
        esac
4494
 
        ;;
4495
 
      esac
4496
 
      ;;
4497
 
 
4498
 
    newsos6)
4499
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4500
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4501
 
      ;;
4502
 
 
4503
 
    *nto* | *qnx*)
4504
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4505
 
      # it will coredump.
4506
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4507
 
      ;;
4508
 
 
4509
 
    osf3* | osf4* | osf5*)
4510
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4511
 
      # All OSF/1 code is PIC.
4512
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4513
 
      ;;
4514
 
 
4515
 
    rdos*)
4516
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4517
 
      ;;
4518
 
 
4519
 
    solaris*)
4520
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4521
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4522
 
      case $cc_basename in
4523
 
      f77* | f90* | f95*)
4524
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4525
 
      *)
4526
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4527
 
      esac
4528
 
      ;;
4529
 
 
4530
 
    sunos4*)
4531
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4532
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4533
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4534
 
      ;;
4535
 
 
4536
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
4537
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4538
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4539
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4540
 
      ;;
4541
 
 
4542
 
    sysv4*MP*)
4543
 
      if test -d /usr/nec ;then
4544
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4545
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4546
 
      fi
4547
 
      ;;
4548
 
 
4549
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4550
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4551
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4552
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4553
 
      ;;
4554
 
 
4555
 
    unicos*)
4556
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4557
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4558
 
      ;;
4559
 
 
4560
 
    uts4*)
4561
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4562
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4563
 
      ;;
4564
 
 
4565
 
    *)
4566
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4567
 
      ;;
4568
 
    esac
4569
 
  fi
4570
 
])
4571
 
case $host_os in
4572
 
  # For platforms which do not support PIC, -DPIC is meaningless:
4573
 
  *djgpp*)
4574
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4575
 
    ;;
4576
 
  *)
4577
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4578
 
    ;;
4579
 
esac
4580
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4581
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4582
 
        [How to pass a linker flag through the compiler])
4583
 
 
4584
 
#
4585
 
# Check to make sure the PIC flag actually works.
4586
 
#
4587
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4588
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4589
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4590
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4591
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4592
 
     "" | " "*) ;;
4593
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4594
 
     esac],
4595
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4596
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4597
 
fi
4598
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4599
 
        [Additional compiler flags for building library objects])
4600
 
 
4601
 
#
4602
 
# Check to make sure the static flag actually works.
4603
 
#
4604
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4605
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4606
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4607
 
  $lt_tmp_static_flag,
4608
 
  [],
4609
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4610
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4611
 
        [Compiler flag to prevent dynamic linking])
4612
 
])# _LT_COMPILER_PIC
4613
 
 
4614
 
 
4615
 
# _LT_LINKER_SHLIBS([TAGNAME])
4616
 
# ----------------------------
4617
 
# See if the linker supports building shared libraries.
4618
 
m4_defun([_LT_LINKER_SHLIBS],
4619
 
[AC_REQUIRE([LT_PATH_LD])dnl
4620
 
AC_REQUIRE([LT_PATH_NM])dnl
4621
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4622
 
m4_require([_LT_DECL_EGREP])dnl
4623
 
m4_require([_LT_DECL_SED])dnl
4624
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4625
 
m4_require([_LT_TAG_COMPILER])dnl
4626
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4627
 
m4_if([$1], [CXX], [
4628
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4629
 
  case $host_os in
4630
 
  aix[[4-9]]*)
4631
 
    # If we're using GNU nm, then we don't want the "-C" option.
4632
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4633
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4634
 
      _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'
4635
 
    else
4636
 
      _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'
4637
 
    fi
4638
 
    ;;
4639
 
  pw32*)
4640
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4641
 
  ;;
4642
 
  cygwin* | mingw* | cegcc*)
4643
 
    _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'
4644
 
  ;;
4645
 
  linux* | k*bsd*-gnu)
4646
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
4647
 
  ;;
4648
 
  *)
4649
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4650
 
  ;;
4651
 
  esac
4652
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4653
 
], [
4654
 
  runpath_var=
4655
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
4656
 
  _LT_TAGVAR(always_export_symbols, $1)=no
4657
 
  _LT_TAGVAR(archive_cmds, $1)=
4658
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4659
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
4660
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4661
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4662
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4663
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
4664
 
  _LT_TAGVAR(hardcode_direct, $1)=no
4665
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4666
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4667
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4668
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4669
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4670
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4671
 
  _LT_TAGVAR(inherit_rpath, $1)=no
4672
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4673
 
  _LT_TAGVAR(module_cmds, $1)=
4674
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
4675
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4676
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4677
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4678
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4679
 
  # include_expsyms should be a list of space-separated symbols to be *always*
4680
 
  # included in the symbol list
4681
 
  _LT_TAGVAR(include_expsyms, $1)=
4682
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
4683
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4684
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4685
 
  # as well as any symbol that contains `d'.
4686
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4687
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4688
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
4689
 
  # the symbol is explicitly referenced.  Since portable code cannot
4690
 
  # rely on this symbol name, it's probably fine to never include it in
4691
 
  # preloaded symbol tables.
4692
 
  # Exclude shared library initialization/finalization symbols.
4693
 
dnl Note also adjust exclude_expsyms for C++ above.
4694
 
  extract_expsyms_cmds=
4695
 
 
4696
 
  case $host_os in
4697
 
  cygwin* | mingw* | pw32* | cegcc*)
4698
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4699
 
    # When not using gcc, we currently assume that we are using
4700
 
    # Microsoft Visual C++.
4701
 
    if test "$GCC" != yes; then
4702
 
      with_gnu_ld=no
4703
 
    fi
4704
 
    ;;
4705
 
  interix*)
4706
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
4707
 
    with_gnu_ld=yes
4708
 
    ;;
4709
 
  openbsd*)
4710
 
    with_gnu_ld=no
4711
 
    ;;
4712
 
  linux* | k*bsd*-gnu)
4713
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
4714
 
    ;;
4715
 
  esac
4716
 
 
4717
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
4718
 
  if test "$with_gnu_ld" = yes; then
4719
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
4720
 
    wlarc='${wl}'
4721
 
 
4722
 
    # Set some defaults for GNU ld with shared library support. These
4723
 
    # are reset later if shared libraries are not supported. Putting them
4724
 
    # here allows them to be overridden if necessary.
4725
 
    runpath_var=LD_RUN_PATH
4726
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4727
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4728
 
    # ancient GNU ld didn't support --whole-archive et. al.
4729
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4730
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4731
 
    else
4732
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4733
 
    fi
4734
 
    supports_anon_versioning=no
4735
 
    case `$LD -v 2>&1` in
4736
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4737
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4738
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4739
 
      *\ 2.11.*) ;; # other 2.11 versions
4740
 
      *) supports_anon_versioning=yes ;;
4741
 
    esac
4742
 
 
4743
 
    # See if GNU ld supports shared libraries.
4744
 
    case $host_os in
4745
 
    aix[[3-9]]*)
4746
 
      # On AIX/PPC, the GNU linker is very broken
4747
 
      if test "$host_cpu" != ia64; then
4748
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4749
 
        cat <<_LT_EOF 1>&2
4750
 
 
4751
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4752
 
*** to be unable to reliably create shared libraries on AIX.
4753
 
*** Therefore, libtool is disabling shared libraries support.  If you
4754
 
*** really care for shared libraries, you may want to modify your PATH
4755
 
*** so that a non-GNU linker is found, and then restart.
4756
 
 
4757
 
_LT_EOF
4758
 
      fi
4759
 
      ;;
4760
 
 
4761
 
    amigaos*)
4762
 
      case $host_cpu in
4763
 
      powerpc)
4764
 
            # see comment about AmigaOS4 .so support
4765
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4766
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4767
 
        ;;
4768
 
      m68k)
4769
 
            _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)'
4770
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4771
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4772
 
        ;;
4773
 
      esac
4774
 
      ;;
4775
 
 
4776
 
    beos*)
4777
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4778
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4779
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4780
 
        # support --undefined.  This deserves some investigation.  FIXME
4781
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4782
 
      else
4783
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4784
 
      fi
4785
 
      ;;
4786
 
 
4787
 
    cygwin* | mingw* | pw32* | cegcc*)
4788
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4789
 
      # as there is no search path for DLLs.
4790
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4791
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4792
 
      _LT_TAGVAR(always_export_symbols, $1)=no
4793
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4794
 
      _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'
4795
 
 
4796
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4797
 
        _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'
4798
 
        # If the export-symbols file already is a .def file (1st line
4799
 
        # is EXPORTS), use it as is; otherwise, prepend...
4800
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4801
 
          cp $export_symbols $output_objdir/$soname.def;
4802
 
        else
4803
 
          echo EXPORTS > $output_objdir/$soname.def;
4804
 
          cat $export_symbols >> $output_objdir/$soname.def;
4805
 
        fi~
4806
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4807
 
      else
4808
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4809
 
      fi
4810
 
      ;;
4811
 
 
4812
 
    interix[[3-9]]*)
4813
 
      _LT_TAGVAR(hardcode_direct, $1)=no
4814
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4815
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4816
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4817
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4818
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
4819
 
      # default) and relocated if they conflict, which is a slow very memory
4820
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
4821
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4822
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4823
 
      _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'
4824
 
      _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'
4825
 
      ;;
4826
 
 
4827
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
4828
 
      tmp_diet=no
4829
 
      if test "$host_os" = linux-dietlibc; then
4830
 
        case $cc_basename in
4831
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
4832
 
        esac
4833
 
      fi
4834
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4835
 
         && test "$tmp_diet" = no
4836
 
      then
4837
 
        tmp_addflag=
4838
 
        tmp_sharedflag='-shared'
4839
 
        case $cc_basename,$host_cpu in
4840
 
        pgcc*)                          # Portland Group C compiler
4841
 
          _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'
4842
 
          tmp_addflag=' $pic_flag'
4843
 
          ;;
4844
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4845
 
          _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'
4846
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
4847
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4848
 
          tmp_addflag=' -i_dynamic' ;;
4849
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
4850
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4851
 
        ifc* | ifort*)                  # Intel Fortran compiler
4852
 
          tmp_addflag=' -nofor_main' ;;
4853
 
        lf95*)                          # Lahey Fortran 8.1
4854
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4855
 
          tmp_sharedflag='--shared' ;;
4856
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4857
 
          tmp_sharedflag='-qmkshrobj'
4858
 
          tmp_addflag= ;;
4859
 
        esac
4860
 
        case `$CC -V 2>&1 | sed 5q` in
4861
 
        *Sun\ C*)                       # Sun C 5.9
4862
 
          _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'
4863
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4864
 
          tmp_sharedflag='-G' ;;
4865
 
        *Sun\ F*)                       # Sun Fortran 8.3
4866
 
          tmp_sharedflag='-G' ;;
4867
 
        esac
4868
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4869
 
 
4870
 
        if test "x$supports_anon_versioning" = xyes; then
4871
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4872
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4873
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
4874
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4875
 
        fi
4876
 
 
4877
 
        case $cc_basename in
4878
 
        xlf*)
4879
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4880
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4881
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4882
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4883
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4884
 
          if test "x$supports_anon_versioning" = xyes; then
4885
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4886
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4887
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
4888
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4889
 
          fi
4890
 
          ;;
4891
 
        esac
4892
 
      else
4893
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4894
 
      fi
4895
 
      ;;
4896
 
 
4897
 
    netbsd* | netbsdelf*-gnu)
4898
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4899
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4900
 
        wlarc=
4901
 
      else
4902
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4903
 
        _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'
4904
 
      fi
4905
 
      ;;
4906
 
 
4907
 
    solaris*)
4908
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4909
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4910
 
        cat <<_LT_EOF 1>&2
4911
 
 
4912
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4913
 
*** create shared libraries on Solaris systems.  Therefore, libtool
4914
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
4915
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
4916
 
*** your PATH or compiler configuration so that the native linker is
4917
 
*** used, and then restart.
4918
 
 
4919
 
_LT_EOF
4920
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4921
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4922
 
        _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'
4923
 
      else
4924
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4925
 
      fi
4926
 
      ;;
4927
 
 
4928
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4929
 
      case `$LD -v 2>&1` in
4930
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4931
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4932
 
        cat <<_LT_EOF 1>&2
4933
 
 
4934
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4935
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
4936
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
4937
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
4938
 
*** your PATH or compiler configuration so that the native linker is
4939
 
*** used, and then restart.
4940
 
 
4941
 
_LT_EOF
4942
 
        ;;
4943
 
        *)
4944
 
          # For security reasons, it is highly recommended that you always
4945
 
          # use absolute paths for naming shared libraries, and exclude the
4946
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
4947
 
          # requires that you compile everything twice, which is a pain.
4948
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4949
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4950
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4951
 
            _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'
4952
 
          else
4953
 
            _LT_TAGVAR(ld_shlibs, $1)=no
4954
 
          fi
4955
 
        ;;
4956
 
      esac
4957
 
      ;;
4958
 
 
4959
 
    sunos4*)
4960
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4961
 
      wlarc=
4962
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4963
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4964
 
      ;;
4965
 
 
4966
 
    *)
4967
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4968
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4969
 
        _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'
4970
 
      else
4971
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4972
 
      fi
4973
 
      ;;
4974
 
    esac
4975
 
 
4976
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4977
 
      runpath_var=
4978
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4979
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4980
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4981
 
    fi
4982
 
  else
4983
 
    # PORTME fill in a description of your system's linker (not GNU ld)
4984
 
    case $host_os in
4985
 
    aix3*)
4986
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4987
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
4988
 
      _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'
4989
 
      # Note: this linker hardcodes the directories in LIBPATH if there
4990
 
      # are no directories specified by -L.
4991
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4992
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4993
 
        # Neither direct hardcoding nor static linking is supported with a
4994
 
        # broken collect2.
4995
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
4996
 
      fi
4997
 
      ;;
4998
 
 
4999
 
    aix[[4-9]]*)
5000
 
      if test "$host_cpu" = ia64; then
5001
 
        # On IA64, the linker does run time linking by default, so we don't
5002
 
        # have to do anything special.
5003
 
        aix_use_runtimelinking=no
5004
 
        exp_sym_flag='-Bexport'
5005
 
        no_entry_flag=""
5006
 
      else
5007
 
        # If we're using GNU nm, then we don't want the "-C" option.
5008
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5009
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5010
 
          _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'
5011
 
        else
5012
 
          _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'
5013
 
        fi
5014
 
        aix_use_runtimelinking=no
5015
 
 
5016
 
        # Test if we are trying to use run time linking or normal
5017
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5018
 
        # need to do runtime linking.
5019
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5020
 
          for ld_flag in $LDFLAGS; do
5021
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5022
 
            aix_use_runtimelinking=yes
5023
 
            break
5024
 
          fi
5025
 
          done
5026
 
          ;;
5027
 
        esac
5028
 
 
5029
 
        exp_sym_flag='-bexport'
5030
 
        no_entry_flag='-bnoentry'
5031
 
      fi
5032
 
 
5033
 
      # When large executables or shared objects are built, AIX ld can
5034
 
      # have problems creating the table of contents.  If linking a library
5035
 
      # or program results in "error TOC overflow" add -mminimal-toc to
5036
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5037
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5038
 
 
5039
 
      _LT_TAGVAR(archive_cmds, $1)=''
5040
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5041
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5042
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5043
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5044
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5045
 
 
5046
 
      if test "$GCC" = yes; then
5047
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5048
 
        # We only want to do this on AIX 4.2 and lower, the check
5049
 
        # below for broken collect2 doesn't work under 4.3+
5050
 
          collect2name=`${CC} -print-prog-name=collect2`
5051
 
          if test -f "$collect2name" &&
5052
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5053
 
          then
5054
 
          # We have reworked collect2
5055
 
          :
5056
 
          else
5057
 
          # We have old collect2
5058
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
5059
 
          # It fails to find uninstalled libraries when the uninstalled
5060
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5061
 
          # to unsupported forces relinking
5062
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5063
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5064
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
5065
 
          fi
5066
 
          ;;
5067
 
        esac
5068
 
        shared_flag='-shared'
5069
 
        if test "$aix_use_runtimelinking" = yes; then
5070
 
          shared_flag="$shared_flag "'${wl}-G'
5071
 
        fi
5072
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
5073
 
      else
5074
 
        # not using gcc
5075
 
        if test "$host_cpu" = ia64; then
5076
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5077
 
        # chokes on -Wl,-G. The following line is correct:
5078
 
          shared_flag='-G'
5079
 
        else
5080
 
          if test "$aix_use_runtimelinking" = yes; then
5081
 
            shared_flag='${wl}-G'
5082
 
          else
5083
 
            shared_flag='${wl}-bM:SRE'
5084
 
          fi
5085
 
        fi
5086
 
      fi
5087
 
 
5088
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5089
 
      # It seems that -bexpall does not export symbols beginning with
5090
 
      # underscore (_), so it is better to generate a list of symbols to export.
5091
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5092
 
      if test "$aix_use_runtimelinking" = yes; then
5093
 
        # Warning - without using the other runtime loading flags (-brtl),
5094
 
        # -berok will link without error, but may produce a broken library.
5095
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5096
 
        # Determine the default libpath from the value encoded in an
5097
 
        # empty executable.
5098
 
        _LT_SYS_MODULE_PATH_AIX
5099
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5100
 
        _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"
5101
 
      else
5102
 
        if test "$host_cpu" = ia64; then
5103
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5104
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5105
 
          _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"
5106
 
        else
5107
 
         # Determine the default libpath from the value encoded in an
5108
 
         # empty executable.
5109
 
         _LT_SYS_MODULE_PATH_AIX
5110
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5111
 
          # Warning - without using the other run time loading flags,
5112
 
          # -berok will link without error, but may produce a broken library.
5113
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5114
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5115
 
          # Exported symbols can be pulled into shared objects from archives
5116
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5117
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5118
 
          # This is similar to how AIX traditionally builds its shared libraries.
5119
 
          _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'
5120
 
        fi
5121
 
      fi
5122
 
      ;;
5123
 
 
5124
 
    amigaos*)
5125
 
      case $host_cpu in
5126
 
      powerpc)
5127
 
            # see comment about AmigaOS4 .so support
5128
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5129
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5130
 
        ;;
5131
 
      m68k)
5132
 
            _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)'
5133
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5134
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5135
 
        ;;
5136
 
      esac
5137
 
      ;;
5138
 
 
5139
 
    bsdi[[45]]*)
5140
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5141
 
      ;;
5142
 
 
5143
 
    cygwin* | mingw* | pw32* | cegcc*)
5144
 
      # When not using gcc, we currently assume that we are using
5145
 
      # Microsoft Visual C++.
5146
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5147
 
      # no search path for DLLs.
5148
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5149
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5150
 
      # Tell ltmain to make .lib files, not .a files.
5151
 
      libext=lib
5152
 
      # Tell ltmain to make .dll files, not .so files.
5153
 
      shrext_cmds=".dll"
5154
 
      # FIXME: Setting linknames here is a bad hack.
5155
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5156
 
      # The linker will automatically build a .lib file if we build a DLL.
5157
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5158
 
      # FIXME: Should let the user specify the lib program.
5159
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5160
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5161
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162
 
      ;;
5163
 
 
5164
 
    darwin* | rhapsody*)
5165
 
      _LT_DARWIN_LINKER_FEATURES($1)
5166
 
      ;;
5167
 
 
5168
 
    dgux*)
5169
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5170
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5171
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5172
 
      ;;
5173
 
 
5174
 
    freebsd1*)
5175
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5176
 
      ;;
5177
 
 
5178
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5179
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5180
 
    # does not break anything, and helps significantly (at the cost of a little
5181
 
    # extra space).
5182
 
    freebsd2.2*)
5183
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5184
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5185
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5186
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5187
 
      ;;
5188
 
 
5189
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5190
 
    freebsd2*)
5191
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5192
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5193
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5194
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5195
 
      ;;
5196
 
 
5197
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5198
 
    freebsd* | dragonfly*)
5199
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5200
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5201
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5202
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5203
 
      ;;
5204
 
 
5205
 
    hpux9*)
5206
 
      if test "$GCC" = yes; then
5207
 
        _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'
5208
 
      else
5209
 
        _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'
5210
 
      fi
5211
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5212
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5213
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5214
 
 
5215
 
      # hardcode_minus_L: Not really in the search PATH,
5216
 
      # but as the default location of the library.
5217
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5218
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5219
 
      ;;
5220
 
 
5221
 
    hpux10*)
5222
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5223
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5224
 
      else
5225
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5226
 
      fi
5227
 
      if test "$with_gnu_ld" = no; then
5228
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5229
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5230
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5231
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5232
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5233
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5234
 
        # hardcode_minus_L: Not really in the search PATH,
5235
 
        # but as the default location of the library.
5236
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
5237
 
      fi
5238
 
      ;;
5239
 
 
5240
 
    hpux11*)
5241
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5242
 
        case $host_cpu in
5243
 
        hppa*64*)
5244
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5245
 
          ;;
5246
 
        ia64*)
5247
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5248
 
          ;;
5249
 
        *)
5250
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5251
 
          ;;
5252
 
        esac
5253
 
      else
5254
 
        case $host_cpu in
5255
 
        hppa*64*)
5256
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5257
 
          ;;
5258
 
        ia64*)
5259
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5260
 
          ;;
5261
 
        *)
5262
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5263
 
          ;;
5264
 
        esac
5265
 
      fi
5266
 
      if test "$with_gnu_ld" = no; then
5267
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5268
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5269
 
 
5270
 
        case $host_cpu in
5271
 
        hppa*64*|ia64*)
5272
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5273
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5274
 
          ;;
5275
 
        *)
5276
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
5277
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5278
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5279
 
 
5280
 
          # hardcode_minus_L: Not really in the search PATH,
5281
 
          # but as the default location of the library.
5282
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5283
 
          ;;
5284
 
        esac
5285
 
      fi
5286
 
      ;;
5287
 
 
5288
 
    irix5* | irix6* | nonstopux*)
5289
 
      if test "$GCC" = yes; then
5290
 
        _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'
5291
 
        # Try to use the -exported_symbol ld option, if it does not
5292
 
        # work, assume that -exports_file does not work either and
5293
 
        # implicitly export all symbols.
5294
 
        save_LDFLAGS="$LDFLAGS"
5295
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5296
 
        AC_LINK_IFELSE(int foo(void) {},
5297
 
          _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'
5298
 
        )
5299
 
        LDFLAGS="$save_LDFLAGS"
5300
 
      else
5301
 
        _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'
5302
 
        _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'
5303
 
      fi
5304
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5305
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5306
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5307
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
5308
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5309
 
      ;;
5310
 
 
5311
 
    netbsd* | netbsdelf*-gnu)
5312
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5313
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5314
 
      else
5315
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5316
 
      fi
5317
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5318
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5319
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5320
 
      ;;
5321
 
 
5322
 
    newsos6)
5323
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5324
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5325
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5326
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5327
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5328
 
      ;;
5329
 
 
5330
 
    *nto* | *qnx*)
5331
 
      ;;
5332
 
 
5333
 
    openbsd*)
5334
 
      if test -f /usr/libexec/ld.so; then
5335
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5336
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5337
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5338
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5339
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5340
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5341
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5342
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5343
 
        else
5344
 
          case $host_os in
5345
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5346
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5347
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5348
 
             ;;
5349
 
           *)
5350
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5351
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5352
 
             ;;
5353
 
          esac
5354
 
        fi
5355
 
      else
5356
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5357
 
      fi
5358
 
      ;;
5359
 
 
5360
 
    os2*)
5361
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5362
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5363
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5364
 
      _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'
5365
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5366
 
      ;;
5367
 
 
5368
 
    osf3*)
5369
 
      if test "$GCC" = yes; then
5370
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5371
 
        _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'
5372
 
      else
5373
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5374
 
        _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'
5375
 
      fi
5376
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5377
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5378
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5379
 
      ;;
5380
 
 
5381
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5382
 
      if test "$GCC" = yes; then
5383
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5384
 
        _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'
5385
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5386
 
      else
5387
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5388
 
        _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'
5389
 
        _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~
5390
 
        $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'
5391
 
 
5392
 
        # Both c and cxx compiler support -rpath directly
5393
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5394
 
      fi
5395
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5396
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5397
 
      ;;
5398
 
 
5399
 
    solaris*)
5400
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5401
 
      if test "$GCC" = yes; then
5402
 
        wlarc='${wl}'
5403
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5404
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5405
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5406
 
      else
5407
 
        case `$CC -V 2>&1` in
5408
 
        *"Compilers 5.0"*)
5409
 
          wlarc=''
5410
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5411
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5412
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5413
 
          ;;
5414
 
        *)
5415
 
          wlarc='${wl}'
5416
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5417
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5418
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5419
 
          ;;
5420
 
        esac
5421
 
      fi
5422
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5423
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5424
 
      case $host_os in
5425
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5426
 
      *)
5427
 
        # The compiler driver will combine and reorder linker options,
5428
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
5429
 
        # but is careful enough not to reorder.
5430
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5431
 
        if test "$GCC" = yes; then
5432
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5433
 
        else
5434
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5435
 
        fi
5436
 
        ;;
5437
 
      esac
5438
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5439
 
      ;;
5440
 
 
5441
 
    sunos4*)
5442
 
      if test "x$host_vendor" = xsequent; then
5443
 
        # Use $CC to link under sequent, because it throws in some extra .o
5444
 
        # files that make .init and .fini sections work.
5445
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5446
 
      else
5447
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5448
 
      fi
5449
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5450
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5451
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5452
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5453
 
      ;;
5454
 
 
5455
 
    sysv4)
5456
 
      case $host_vendor in
5457
 
        sni)
5458
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5459
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5460
 
        ;;
5461
 
        siemens)
5462
 
          ## LD is ld it makes a PLAMLIB
5463
 
          ## CC just makes a GrossModule.
5464
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5465
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5466
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5467
 
        ;;
5468
 
        motorola)
5469
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5471
 
        ;;
5472
 
      esac
5473
 
      runpath_var='LD_RUN_PATH'
5474
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5475
 
      ;;
5476
 
 
5477
 
    sysv4.3*)
5478
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5479
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5480
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5481
 
      ;;
5482
 
 
5483
 
    sysv4*MP*)
5484
 
      if test -d /usr/nec; then
5485
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5486
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5487
 
        runpath_var=LD_RUN_PATH
5488
 
        hardcode_runpath_var=yes
5489
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
5490
 
      fi
5491
 
      ;;
5492
 
 
5493
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5494
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5495
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5496
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5497
 
      runpath_var='LD_RUN_PATH'
5498
 
 
5499
 
      if test "$GCC" = yes; then
5500
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5501
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5502
 
      else
5503
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5504
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5505
 
      fi
5506
 
      ;;
5507
 
 
5508
 
    sysv5* | sco3.2v5* | sco5v6*)
5509
 
      # Note: We can NOT use -z defs as we might desire, because we do not
5510
 
      # link with -lc, and that would cause any symbols used from libc to
5511
 
      # always be unresolved, which means just about no library would
5512
 
      # ever link correctly.  If we're not using GNU ld we use -z text
5513
 
      # though, which does catch some bad symbols but isn't as heavy-handed
5514
 
      # as -z defs.
5515
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5516
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5517
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5518
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5519
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5520
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5521
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5522
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5523
 
      runpath_var='LD_RUN_PATH'
5524
 
 
5525
 
      if test "$GCC" = yes; then
5526
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5527
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5528
 
      else
5529
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5530
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5531
 
      fi
5532
 
      ;;
5533
 
 
5534
 
    uts4*)
5535
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5536
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5537
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5538
 
      ;;
5539
 
 
5540
 
    *)
5541
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5542
 
      ;;
5543
 
    esac
5544
 
 
5545
 
    if test x$host_vendor = xsni; then
5546
 
      case $host in
5547
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5548
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5549
 
        ;;
5550
 
      esac
5551
 
    fi
5552
 
  fi
5553
 
])
5554
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5555
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5556
 
 
5557
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5558
 
 
5559
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5560
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5561
 
_LT_DECL([], [extract_expsyms_cmds], [2],
5562
 
    [The commands to extract the exported symbol list from a shared archive])
5563
 
 
5564
 
#
5565
 
# Do we need to explicitly link libc?
5566
 
#
5567
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5568
 
x|xyes)
5569
 
  # Assume -lc should be added
5570
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5571
 
 
5572
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
5573
 
    case $_LT_TAGVAR(archive_cmds, $1) in
5574
 
    *'~'*)
5575
 
      # FIXME: we may have to deal with multi-command sequences.
5576
 
      ;;
5577
 
    '$CC '*)
5578
 
      # Test whether the compiler implicitly links with -lc since on some
5579
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5580
 
      # to ld, don't add -lc before -lgcc.
5581
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5582
 
      $RM conftest*
5583
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5584
 
 
5585
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5586
 
        soname=conftest
5587
 
        lib=conftest
5588
 
        libobjs=conftest.$ac_objext
5589
 
        deplibs=
5590
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5591
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5592
 
        compiler_flags=-v
5593
 
        linker_flags=-v
5594
 
        verstring=
5595
 
        output_objdir=.
5596
 
        libname=conftest
5597
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5598
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5599
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5600
 
        then
5601
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5602
 
        else
5603
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5604
 
        fi
5605
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5606
 
      else
5607
 
        cat conftest.err 1>&5
5608
 
      fi
5609
 
      $RM conftest*
5610
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5611
 
      ;;
5612
 
    esac
5613
 
  fi
5614
 
  ;;
5615
 
esac
5616
 
 
5617
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5618
 
    [Whether or not to add -lc for building shared libraries])
5619
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5620
 
    [enable_shared_with_static_runtimes], [0],
5621
 
    [Whether or not to disallow shared libs when runtime libs are static])
5622
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5623
 
    [Compiler flag to allow reflexive dlopens])
5624
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5625
 
    [Compiler flag to generate shared objects directly from archives])
5626
 
_LT_TAGDECL([], [compiler_needs_object], [1],
5627
 
    [Whether the compiler copes with passing no objects directly])
5628
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5629
 
    [Create an old-style archive from a shared archive])
5630
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5631
 
    [Create a temporary old-style archive to link instead of a shared archive])
5632
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5633
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5634
 
_LT_TAGDECL([], [module_cmds], [2],
5635
 
    [Commands used to build a loadable module if different from building
5636
 
    a shared archive.])
5637
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
5638
 
_LT_TAGDECL([], [with_gnu_ld], [1],
5639
 
    [Whether we are building with GNU ld or not])
5640
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
5641
 
    [Flag that allows shared libraries with undefined symbols to be built])
5642
 
_LT_TAGDECL([], [no_undefined_flag], [1],
5643
 
    [Flag that enforces no undefined symbols])
5644
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5645
 
    [Flag to hardcode $libdir into a binary during linking.
5646
 
    This must work even if $libdir does not exist])
5647
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5648
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5649
 
    during linking.  This must work even if $libdir does not exist]])
5650
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5651
 
    [Whether we need a single "-rpath" flag with a separated argument])
5652
 
_LT_TAGDECL([], [hardcode_direct], [0],
5653
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5654
 
    DIR into the resulting binary])
5655
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5656
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5657
 
    DIR into the resulting binary and the resulting library dependency is
5658
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5659
 
    library is relocated])
5660
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
5661
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5662
 
    into the resulting binary])
5663
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5664
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5665
 
    into the resulting binary])
5666
 
_LT_TAGDECL([], [hardcode_automatic], [0],
5667
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
5668
 
    into the library and all subsequent libraries and executables linked
5669
 
    against it])
5670
 
_LT_TAGDECL([], [inherit_rpath], [0],
5671
 
    [Set to yes if linker adds runtime paths of dependent libraries
5672
 
    to runtime path list])
5673
 
_LT_TAGDECL([], [link_all_deplibs], [0],
5674
 
    [Whether libtool must link a program against all its dependency libraries])
5675
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5676
 
    [Fix the shell variable $srcfile for the compiler])
5677
 
_LT_TAGDECL([], [always_export_symbols], [0],
5678
 
    [Set to "yes" if exported symbols are required])
5679
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
5680
 
    [The commands to list exported symbols])
5681
 
_LT_TAGDECL([], [exclude_expsyms], [1],
5682
 
    [Symbols that should not be listed in the preloaded symbols])
5683
 
_LT_TAGDECL([], [include_expsyms], [1],
5684
 
    [Symbols that must always be exported])
5685
 
_LT_TAGDECL([], [prelink_cmds], [2],
5686
 
    [Commands necessary for linking programs (against libraries) with templates])
5687
 
_LT_TAGDECL([], [file_list_spec], [1],
5688
 
    [Specify filename containing input files])
5689
 
dnl FIXME: Not yet implemented
5690
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5691
 
dnl    [Compiler flag to generate thread safe objects])
5692
 
])# _LT_LINKER_SHLIBS
5693
 
 
5694
 
 
5695
 
# _LT_LANG_C_CONFIG([TAG])
5696
 
# ------------------------
5697
 
# Ensure that the configuration variables for a C compiler are suitably
5698
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5699
 
# the compiler configuration to `libtool'.
5700
 
m4_defun([_LT_LANG_C_CONFIG],
5701
 
[m4_require([_LT_DECL_EGREP])dnl
5702
 
lt_save_CC="$CC"
5703
 
AC_LANG_PUSH(C)
5704
 
 
5705
 
# Source file extension for C test sources.
5706
 
ac_ext=c
5707
 
 
5708
 
# Object file extension for compiled C test sources.
5709
 
objext=o
5710
 
_LT_TAGVAR(objext, $1)=$objext
5711
 
 
5712
 
# Code to be used in simple compile tests
5713
 
lt_simple_compile_test_code="int some_variable = 0;"
5714
 
 
5715
 
# Code to be used in simple link tests
5716
 
lt_simple_link_test_code='int main(){return(0);}'
5717
 
 
5718
 
_LT_TAG_COMPILER
5719
 
# Save the default compiler, since it gets overwritten when the other
5720
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5721
 
compiler_DEFAULT=$CC
5722
 
 
5723
 
# save warnings/boilerplate of simple test code
5724
 
_LT_COMPILER_BOILERPLATE
5725
 
_LT_LINKER_BOILERPLATE
5726
 
 
5727
 
if test -n "$compiler"; then
5728
 
  _LT_COMPILER_NO_RTTI($1)
5729
 
  _LT_COMPILER_PIC($1)
5730
 
  _LT_COMPILER_C_O($1)
5731
 
  _LT_COMPILER_FILE_LOCKS($1)
5732
 
  _LT_LINKER_SHLIBS($1)
5733
 
  _LT_SYS_DYNAMIC_LINKER($1)
5734
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
5735
 
  LT_SYS_DLOPEN_SELF
5736
 
  _LT_CMD_STRIPLIB
5737
 
 
5738
 
  # Report which library types will actually be built
5739
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
5740
 
  AC_MSG_RESULT([$can_build_shared])
5741
 
 
5742
 
  AC_MSG_CHECKING([whether to build shared libraries])
5743
 
  test "$can_build_shared" = "no" && enable_shared=no
5744
 
 
5745
 
  # On AIX, shared libraries and static libraries use the same namespace, and
5746
 
  # are all built from PIC.
5747
 
  case $host_os in
5748
 
  aix3*)
5749
 
    test "$enable_shared" = yes && enable_static=no
5750
 
    if test -n "$RANLIB"; then
5751
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5752
 
      postinstall_cmds='$RANLIB $lib'
5753
 
    fi
5754
 
    ;;
5755
 
 
5756
 
  aix[[4-9]]*)
5757
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5758
 
      test "$enable_shared" = yes && enable_static=no
5759
 
    fi
5760
 
    ;;
5761
 
  esac
5762
 
  AC_MSG_RESULT([$enable_shared])
5763
 
 
5764
 
  AC_MSG_CHECKING([whether to build static libraries])
5765
 
  # Make sure either enable_shared or enable_static is yes.
5766
 
  test "$enable_shared" = yes || enable_static=yes
5767
 
  AC_MSG_RESULT([$enable_static])
5768
 
 
5769
 
  _LT_CONFIG($1)
5770
 
fi
5771
 
AC_LANG_POP
5772
 
CC="$lt_save_CC"
5773
 
])# _LT_LANG_C_CONFIG
5774
 
 
5775
 
 
5776
 
# _LT_PROG_CXX
5777
 
# ------------
5778
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5779
 
# compiler, we have our own version here.
5780
 
m4_defun([_LT_PROG_CXX],
5781
 
[
5782
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5783
 
AC_PROG_CXX
5784
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5785
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5786
 
    (test "X$CXX" != "Xg++"))) ; then
5787
 
  AC_PROG_CXXCPP
5788
 
else
5789
 
  _lt_caught_CXX_error=yes
5790
 
fi
5791
 
popdef([AC_MSG_ERROR])
5792
 
])# _LT_PROG_CXX
5793
 
 
5794
 
dnl aclocal-1.4 backwards compatibility:
5795
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5796
 
 
5797
 
 
5798
 
# _LT_LANG_CXX_CONFIG([TAG])
5799
 
# --------------------------
5800
 
# Ensure that the configuration variables for a C++ compiler are suitably
5801
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5802
 
# the compiler configuration to `libtool'.
5803
 
m4_defun([_LT_LANG_CXX_CONFIG],
5804
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5805
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5806
 
m4_require([_LT_DECL_EGREP])dnl
5807
 
 
5808
 
AC_LANG_PUSH(C++)
5809
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5810
 
_LT_TAGVAR(allow_undefined_flag, $1)=
5811
 
_LT_TAGVAR(always_export_symbols, $1)=no
5812
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
5813
 
_LT_TAGVAR(compiler_needs_object, $1)=no
5814
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5815
 
_LT_TAGVAR(hardcode_direct, $1)=no
5816
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5817
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5818
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5819
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5820
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
5821
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5822
 
_LT_TAGVAR(hardcode_automatic, $1)=no
5823
 
_LT_TAGVAR(inherit_rpath, $1)=no
5824
 
_LT_TAGVAR(module_cmds, $1)=
5825
 
_LT_TAGVAR(module_expsym_cmds, $1)=
5826
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5827
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5828
 
_LT_TAGVAR(no_undefined_flag, $1)=
5829
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5830
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5831
 
 
5832
 
# Source file extension for C++ test sources.
5833
 
ac_ext=cpp
5834
 
 
5835
 
# Object file extension for compiled C++ test sources.
5836
 
objext=o
5837
 
_LT_TAGVAR(objext, $1)=$objext
5838
 
 
5839
 
# No sense in running all these tests if we already determined that
5840
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
5841
 
# are currently assumed to apply to all compilers on this platform,
5842
 
# and will be corrupted by setting them based on a non-working compiler.
5843
 
if test "$_lt_caught_CXX_error" != yes; then
5844
 
  # Code to be used in simple compile tests
5845
 
  lt_simple_compile_test_code="int some_variable = 0;"
5846
 
 
5847
 
  # Code to be used in simple link tests
5848
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5849
 
 
5850
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5851
 
  _LT_TAG_COMPILER
5852
 
 
5853
 
  # save warnings/boilerplate of simple test code
5854
 
  _LT_COMPILER_BOILERPLATE
5855
 
  _LT_LINKER_BOILERPLATE
5856
 
 
5857
 
  # Allow CC to be a program name with arguments.
5858
 
  lt_save_CC=$CC
5859
 
  lt_save_LD=$LD
5860
 
  lt_save_GCC=$GCC
5861
 
  GCC=$GXX
5862
 
  lt_save_with_gnu_ld=$with_gnu_ld
5863
 
  lt_save_path_LD=$lt_cv_path_LD
5864
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5865
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5866
 
  else
5867
 
    $as_unset lt_cv_prog_gnu_ld
5868
 
  fi
5869
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
5870
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
5871
 
  else
5872
 
    $as_unset lt_cv_path_LD
5873
 
  fi
5874
 
  test -z "${LDCXX+set}" || LD=$LDCXX
5875
 
  CC=${CXX-"c++"}
5876
 
  compiler=$CC
5877
 
  _LT_TAGVAR(compiler, $1)=$CC
5878
 
  _LT_CC_BASENAME([$compiler])
5879
 
 
5880
 
  if test -n "$compiler"; then
5881
 
    # We don't want -fno-exception when compiling C++ code, so set the
5882
 
    # no_builtin_flag separately
5883
 
    if test "$GXX" = yes; then
5884
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5885
 
    else
5886
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5887
 
    fi
5888
 
 
5889
 
    if test "$GXX" = yes; then
5890
 
      # Set up default GNU C++ configuration
5891
 
 
5892
 
      LT_PATH_LD
5893
 
 
5894
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5895
 
      # archiving commands below assume that GNU ld is being used.
5896
 
      if test "$with_gnu_ld" = yes; then
5897
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898
 
        _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'
5899
 
 
5900
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5901
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5902
 
 
5903
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
5904
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5905
 
        #     investigate it a little bit more. (MM)
5906
 
        wlarc='${wl}'
5907
 
 
5908
 
        # ancient GNU ld didn't support --whole-archive et. al.
5909
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5910
 
          $GREP 'no-whole-archive' > /dev/null; then
5911
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5912
 
        else
5913
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5914
 
        fi
5915
 
      else
5916
 
        with_gnu_ld=no
5917
 
        wlarc=
5918
 
 
5919
 
        # A generic and very simple default shared library creation
5920
 
        # command for GNU C++ for the case where it uses the native
5921
 
        # linker, instead of GNU ld.  If possible, this setting should
5922
 
        # overridden to take advantage of the native linker features on
5923
 
        # the platform it is being used on.
5924
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5925
 
      fi
5926
 
 
5927
 
      # Commands to make compiler produce verbose output that lists
5928
 
      # what "hidden" libraries, object files and flags are used when
5929
 
      # linking a shared library.
5930
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5931
 
 
5932
 
    else
5933
 
      GXX=no
5934
 
      with_gnu_ld=no
5935
 
      wlarc=
5936
 
    fi
5937
 
 
5938
 
    # PORTME: fill in a description of your system's C++ link characteristics
5939
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5940
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
5941
 
    case $host_os in
5942
 
      aix3*)
5943
 
        # FIXME: insert proper C++ library support
5944
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5945
 
        ;;
5946
 
      aix[[4-9]]*)
5947
 
        if test "$host_cpu" = ia64; then
5948
 
          # On IA64, the linker does run time linking by default, so we don't
5949
 
          # have to do anything special.
5950
 
          aix_use_runtimelinking=no
5951
 
          exp_sym_flag='-Bexport'
5952
 
          no_entry_flag=""
5953
 
        else
5954
 
          aix_use_runtimelinking=no
5955
 
 
5956
 
          # Test if we are trying to use run time linking or normal
5957
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5958
 
          # need to do runtime linking.
5959
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5960
 
            for ld_flag in $LDFLAGS; do
5961
 
              case $ld_flag in
5962
 
              *-brtl*)
5963
 
                aix_use_runtimelinking=yes
5964
 
                break
5965
 
                ;;
5966
 
              esac
5967
 
            done
5968
 
            ;;
5969
 
          esac
5970
 
 
5971
 
          exp_sym_flag='-bexport'
5972
 
          no_entry_flag='-bnoentry'
5973
 
        fi
5974
 
 
5975
 
        # When large executables or shared objects are built, AIX ld can
5976
 
        # have problems creating the table of contents.  If linking a library
5977
 
        # or program results in "error TOC overflow" add -mminimal-toc to
5978
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5979
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5980
 
 
5981
 
        _LT_TAGVAR(archive_cmds, $1)=''
5982
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5983
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5984
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5985
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
5986
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5987
 
 
5988
 
        if test "$GXX" = yes; then
5989
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
5990
 
          # We only want to do this on AIX 4.2 and lower, the check
5991
 
          # below for broken collect2 doesn't work under 4.3+
5992
 
          collect2name=`${CC} -print-prog-name=collect2`
5993
 
          if test -f "$collect2name" &&
5994
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5995
 
          then
5996
 
            # We have reworked collect2
5997
 
            :
5998
 
          else
5999
 
            # We have old collect2
6000
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
6001
 
            # It fails to find uninstalled libraries when the uninstalled
6002
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
6003
 
            # to unsupported forces relinking
6004
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6005
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6006
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
6007
 
          fi
6008
 
          esac
6009
 
          shared_flag='-shared'
6010
 
          if test "$aix_use_runtimelinking" = yes; then
6011
 
            shared_flag="$shared_flag "'${wl}-G'
6012
 
          fi
6013
 
        else
6014
 
          # not using gcc
6015
 
          if test "$host_cpu" = ia64; then
6016
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6017
 
          # chokes on -Wl,-G. The following line is correct:
6018
 
          shared_flag='-G'
6019
 
          else
6020
 
            if test "$aix_use_runtimelinking" = yes; then
6021
 
              shared_flag='${wl}-G'
6022
 
            else
6023
 
              shared_flag='${wl}-bM:SRE'
6024
 
            fi
6025
 
          fi
6026
 
        fi
6027
 
 
6028
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6029
 
        # It seems that -bexpall does not export symbols beginning with
6030
 
        # underscore (_), so it is better to generate a list of symbols to
6031
 
        # export.
6032
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6033
 
        if test "$aix_use_runtimelinking" = yes; then
6034
 
          # Warning - without using the other runtime loading flags (-brtl),
6035
 
          # -berok will link without error, but may produce a broken library.
6036
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6037
 
          # Determine the default libpath from the value encoded in an empty
6038
 
          # executable.
6039
 
          _LT_SYS_MODULE_PATH_AIX
6040
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6041
 
 
6042
 
          _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"
6043
 
        else
6044
 
          if test "$host_cpu" = ia64; then
6045
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6046
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6047
 
            _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"
6048
 
          else
6049
 
            # Determine the default libpath from the value encoded in an
6050
 
            # empty executable.
6051
 
            _LT_SYS_MODULE_PATH_AIX
6052
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6053
 
            # Warning - without using the other run time loading flags,
6054
 
            # -berok will link without error, but may produce a broken library.
6055
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6056
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6057
 
            # Exported symbols can be pulled into shared objects from archives
6058
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6059
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6060
 
            # This is similar to how AIX traditionally builds its shared
6061
 
            # libraries.
6062
 
            _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'
6063
 
          fi
6064
 
        fi
6065
 
        ;;
6066
 
 
6067
 
      beos*)
6068
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6069
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6070
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6071
 
          # support --undefined.  This deserves some investigation.  FIXME
6072
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6073
 
        else
6074
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6075
 
        fi
6076
 
        ;;
6077
 
 
6078
 
      chorus*)
6079
 
        case $cc_basename in
6080
 
          *)
6081
 
          # FIXME: insert proper C++ library support
6082
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6083
 
          ;;
6084
 
        esac
6085
 
        ;;
6086
 
 
6087
 
      cygwin* | mingw* | pw32* | cegcc*)
6088
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6089
 
        # as there is no search path for DLLs.
6090
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6091
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6092
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6093
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6094
 
 
6095
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6096
 
          _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'
6097
 
          # If the export-symbols file already is a .def file (1st line
6098
 
          # is EXPORTS), use it as is; otherwise, prepend...
6099
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6100
 
            cp $export_symbols $output_objdir/$soname.def;
6101
 
          else
6102
 
            echo EXPORTS > $output_objdir/$soname.def;
6103
 
            cat $export_symbols >> $output_objdir/$soname.def;
6104
 
          fi~
6105
 
          $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'
6106
 
        else
6107
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6108
 
        fi
6109
 
        ;;
6110
 
      darwin* | rhapsody*)
6111
 
        _LT_DARWIN_LINKER_FEATURES($1)
6112
 
        ;;
6113
 
 
6114
 
      dgux*)
6115
 
        case $cc_basename in
6116
 
          ec++*)
6117
 
            # FIXME: insert proper C++ library support
6118
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6119
 
            ;;
6120
 
          ghcx*)
6121
 
            # Green Hills C++ Compiler
6122
 
            # FIXME: insert proper C++ library support
6123
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6124
 
            ;;
6125
 
          *)
6126
 
            # FIXME: insert proper C++ library support
6127
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6128
 
            ;;
6129
 
        esac
6130
 
        ;;
6131
 
 
6132
 
      freebsd[[12]]*)
6133
 
        # C++ shared libraries reported to be fairly broken before
6134
 
        # switch to ELF
6135
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6136
 
        ;;
6137
 
 
6138
 
      freebsd-elf*)
6139
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6140
 
        ;;
6141
 
 
6142
 
      freebsd* | dragonfly*)
6143
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6144
 
        # conventions
6145
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6146
 
        ;;
6147
 
 
6148
 
      gnu*)
6149
 
        ;;
6150
 
 
6151
 
      hpux9*)
6152
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6153
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6154
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6155
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6156
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6157
 
                                             # but as the default
6158
 
                                             # location of the library.
6159
 
 
6160
 
        case $cc_basename in
6161
 
          CC*)
6162
 
            # FIXME: insert proper C++ library support
6163
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6164
 
            ;;
6165
 
          aCC*)
6166
 
            _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'
6167
 
            # Commands to make compiler produce verbose output that lists
6168
 
            # what "hidden" libraries, object files and flags are used when
6169
 
            # linking a shared library.
6170
 
            #
6171
 
            # There doesn't appear to be a way to prevent this compiler from
6172
 
            # explicitly linking system object files so we need to strip them
6173
 
            # from the output so that they don't get included in the library
6174
 
            # dependencies.
6175
 
            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'
6176
 
            ;;
6177
 
          *)
6178
 
            if test "$GXX" = yes; then
6179
 
              _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'
6180
 
            else
6181
 
              # FIXME: insert proper C++ library support
6182
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6183
 
            fi
6184
 
            ;;
6185
 
        esac
6186
 
        ;;
6187
 
 
6188
 
      hpux10*|hpux11*)
6189
 
        if test $with_gnu_ld = no; then
6190
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6191
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6192
 
 
6193
 
          case $host_cpu in
6194
 
            hppa*64*|ia64*)
6195
 
              ;;
6196
 
            *)
6197
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6198
 
              ;;
6199
 
          esac
6200
 
        fi
6201
 
        case $host_cpu in
6202
 
          hppa*64*|ia64*)
6203
 
            _LT_TAGVAR(hardcode_direct, $1)=no
6204
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6205
 
            ;;
6206
 
          *)
6207
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
6208
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6209
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6210
 
                                                 # but as the default
6211
 
                                                 # location of the library.
6212
 
            ;;
6213
 
        esac
6214
 
 
6215
 
        case $cc_basename in
6216
 
          CC*)
6217
 
            # FIXME: insert proper C++ library support
6218
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6219
 
            ;;
6220
 
          aCC*)
6221
 
            case $host_cpu in
6222
 
              hppa*64*)
6223
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6224
 
                ;;
6225
 
              ia64*)
6226
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6227
 
                ;;
6228
 
              *)
6229
 
                _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'
6230
 
                ;;
6231
 
            esac
6232
 
            # Commands to make compiler produce verbose output that lists
6233
 
            # what "hidden" libraries, object files and flags are used when
6234
 
            # linking a shared library.
6235
 
            #
6236
 
            # There doesn't appear to be a way to prevent this compiler from
6237
 
            # explicitly linking system object files so we need to strip them
6238
 
            # from the output so that they don't get included in the library
6239
 
            # dependencies.
6240
 
            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'
6241
 
            ;;
6242
 
          *)
6243
 
            if test "$GXX" = yes; then
6244
 
              if test $with_gnu_ld = no; then
6245
 
                case $host_cpu in
6246
 
                  hppa*64*)
6247
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6248
 
                    ;;
6249
 
                  ia64*)
6250
 
                    _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'
6251
 
                    ;;
6252
 
                  *)
6253
 
                    _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'
6254
 
                    ;;
6255
 
                esac
6256
 
              fi
6257
 
            else
6258
 
              # FIXME: insert proper C++ library support
6259
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6260
 
            fi
6261
 
            ;;
6262
 
        esac
6263
 
        ;;
6264
 
 
6265
 
      interix[[3-9]]*)
6266
 
        _LT_TAGVAR(hardcode_direct, $1)=no
6267
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6268
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6269
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6270
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6271
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
6272
 
        # default) and relocated if they conflict, which is a slow very memory
6273
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
6274
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6275
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6276
 
        _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'
6277
 
        _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'
6278
 
        ;;
6279
 
      irix5* | irix6*)
6280
 
        case $cc_basename in
6281
 
          CC*)
6282
 
            # SGI C++
6283
 
            _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'
6284
 
 
6285
 
            # Archives containing C++ object files must be created using
6286
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6287
 
            # necessary to make sure instantiated templates are included
6288
 
            # in the archive.
6289
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6290
 
            ;;
6291
 
          *)
6292
 
            if test "$GXX" = yes; then
6293
 
              if test "$with_gnu_ld" = no; then
6294
 
                _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'
6295
 
              else
6296
 
                _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'
6297
 
              fi
6298
 
            fi
6299
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6300
 
            ;;
6301
 
        esac
6302
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6303
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6304
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
6305
 
        ;;
6306
 
 
6307
 
      linux* | k*bsd*-gnu)
6308
 
        case $cc_basename in
6309
 
          KCC*)
6310
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6311
 
 
6312
 
            # KCC will only create a shared library if the output file
6313
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6314
 
            # to its proper name (with version) after linking.
6315
 
            _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'
6316
 
            _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'
6317
 
            # Commands to make compiler produce verbose output that lists
6318
 
            # what "hidden" libraries, object files and flags are used when
6319
 
            # linking a shared library.
6320
 
            #
6321
 
            # There doesn't appear to be a way to prevent this compiler from
6322
 
            # explicitly linking system object files so we need to strip them
6323
 
            # from the output so that they don't get included in the library
6324
 
            # dependencies.
6325
 
            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'
6326
 
 
6327
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6328
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6329
 
 
6330
 
            # Archives containing C++ object files must be created using
6331
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6332
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6333
 
            ;;
6334
 
          icpc* | ecpc* )
6335
 
            # Intel C++
6336
 
            with_gnu_ld=yes
6337
 
            # version 8.0 and above of icpc choke on multiply defined symbols
6338
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
6339
 
            # earlier do not add the objects themselves.
6340
 
            case `$CC -V 2>&1` in
6341
 
              *"Version 7."*)
6342
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343
 
                _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'
6344
 
                ;;
6345
 
              *)  # Version 8.0 or newer
6346
 
                tmp_idyn=
6347
 
                case $host_cpu in
6348
 
                  ia64*) tmp_idyn=' -i_dynamic';;
6349
 
                esac
6350
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6351
 
                _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'
6352
 
                ;;
6353
 
            esac
6354
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6355
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6356
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6357
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6358
 
            ;;
6359
 
          pgCC* | pgcpp*)
6360
 
            # Portland Group C++ compiler
6361
 
            case `$CC -V` in
6362
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6363
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6364
 
                rm -rf $tpldir~
6365
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6366
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6367
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6368
 
                rm -rf $tpldir~
6369
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6370
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6371
 
                $RANLIB $oldlib'
6372
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6373
 
                rm -rf $tpldir~
6374
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6375
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6376
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6377
 
                rm -rf $tpldir~
6378
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6379
 
                $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'
6380
 
              ;;
6381
 
            *) # Version 6 will use weak symbols
6382
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6383
 
              _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'
6384
 
              ;;
6385
 
            esac
6386
 
 
6387
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6388
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6389
 
            _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'
6390
 
            ;;
6391
 
          cxx*)
6392
 
            # Compaq C++
6393
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6394
 
            _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'
6395
 
 
6396
 
            runpath_var=LD_RUN_PATH
6397
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6398
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6399
 
 
6400
 
            # Commands to make compiler produce verbose output that lists
6401
 
            # what "hidden" libraries, object files and flags are used when
6402
 
            # linking a shared library.
6403
 
            #
6404
 
            # There doesn't appear to be a way to prevent this compiler from
6405
 
            # explicitly linking system object files so we need to strip them
6406
 
            # from the output so that they don't get included in the library
6407
 
            # dependencies.
6408
 
            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'
6409
 
            ;;
6410
 
          xl*)
6411
 
            # IBM XL 8.0 on PPC, with GNU ld
6412
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6413
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6414
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415
 
            if test "x$supports_anon_versioning" = xyes; then
6416
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6417
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6418
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
6419
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6420
 
            fi
6421
 
            ;;
6422
 
          *)
6423
 
            case `$CC -V 2>&1 | sed 5q` in
6424
 
            *Sun\ C*)
6425
 
              # Sun C++ 5.9
6426
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6427
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6428
 
              _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'
6429
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6430
 
              _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'
6431
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6432
 
 
6433
 
              # Not sure whether something based on
6434
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6435
 
              # would be better.
6436
 
              output_verbose_link_cmd='echo'
6437
 
 
6438
 
              # Archives containing C++ object files must be created using
6439
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6440
 
              # necessary to make sure instantiated templates are included
6441
 
              # in the archive.
6442
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6443
 
              ;;
6444
 
            esac
6445
 
            ;;
6446
 
        esac
6447
 
        ;;
6448
 
 
6449
 
      lynxos*)
6450
 
        # FIXME: insert proper C++ library support
6451
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6452
 
        ;;
6453
 
 
6454
 
      m88k*)
6455
 
        # FIXME: insert proper C++ library support
6456
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6457
 
        ;;
6458
 
 
6459
 
      mvs*)
6460
 
        case $cc_basename in
6461
 
          cxx*)
6462
 
            # FIXME: insert proper C++ library support
6463
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6464
 
            ;;
6465
 
          *)
6466
 
            # FIXME: insert proper C++ library support
6467
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6468
 
            ;;
6469
 
        esac
6470
 
        ;;
6471
 
 
6472
 
      netbsd*)
6473
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6474
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6475
 
          wlarc=
6476
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6477
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6478
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6479
 
        fi
6480
 
        # Workaround some broken pre-1.5 toolchains
6481
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6482
 
        ;;
6483
 
 
6484
 
      *nto* | *qnx*)
6485
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6486
 
        ;;
6487
 
 
6488
 
      openbsd2*)
6489
 
        # C++ shared libraries are fairly broken
6490
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6491
 
        ;;
6492
 
 
6493
 
      openbsd*)
6494
 
        if test -f /usr/libexec/ld.so; then
6495
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6496
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6497
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6498
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6499
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6500
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501
 
            _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'
6502
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6503
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6504
 
          fi
6505
 
          output_verbose_link_cmd=echo
6506
 
        else
6507
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6508
 
        fi
6509
 
        ;;
6510
 
 
6511
 
      osf3* | osf4* | osf5*)
6512
 
        case $cc_basename in
6513
 
          KCC*)
6514
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6515
 
 
6516
 
            # KCC will only create a shared library if the output file
6517
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6518
 
            # to its proper name (with version) after linking.
6519
 
            _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'
6520
 
 
6521
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6522
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6523
 
 
6524
 
            # Archives containing C++ object files must be created using
6525
 
            # the KAI C++ compiler.
6526
 
            case $host in
6527
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6528
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6529
 
            esac
6530
 
            ;;
6531
 
          RCC*)
6532
 
            # Rational C++ 2.4.1
6533
 
            # FIXME: insert proper C++ library support
6534
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6535
 
            ;;
6536
 
          cxx*)
6537
 
            case $host in
6538
 
              osf3*)
6539
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6540
 
                _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'
6541
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6542
 
                ;;
6543
 
              *)
6544
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6545
 
                _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'
6546
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6547
 
                  echo "-hidden">> $lib.exp~
6548
 
                  $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~
6549
 
                  $RM $lib.exp'
6550
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6551
 
                ;;
6552
 
            esac
6553
 
 
6554
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6555
 
 
6556
 
            # Commands to make compiler produce verbose output that lists
6557
 
            # what "hidden" libraries, object files and flags are used when
6558
 
            # linking a shared library.
6559
 
            #
6560
 
            # There doesn't appear to be a way to prevent this compiler from
6561
 
            # explicitly linking system object files so we need to strip them
6562
 
            # from the output so that they don't get included in the library
6563
 
            # dependencies.
6564
 
            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'
6565
 
            ;;
6566
 
          *)
6567
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6568
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6569
 
              case $host in
6570
 
                osf3*)
6571
 
                  _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'
6572
 
                  ;;
6573
 
                *)
6574
 
                  _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'
6575
 
                  ;;
6576
 
              esac
6577
 
 
6578
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6579
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6580
 
 
6581
 
              # Commands to make compiler produce verbose output that lists
6582
 
              # what "hidden" libraries, object files and flags are used when
6583
 
              # linking a shared library.
6584
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6585
 
 
6586
 
            else
6587
 
              # FIXME: insert proper C++ library support
6588
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6589
 
            fi
6590
 
            ;;
6591
 
        esac
6592
 
        ;;
6593
 
 
6594
 
      psos*)
6595
 
        # FIXME: insert proper C++ library support
6596
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6597
 
        ;;
6598
 
 
6599
 
      sunos4*)
6600
 
        case $cc_basename in
6601
 
          CC*)
6602
 
            # Sun C++ 4.x
6603
 
            # FIXME: insert proper C++ library support
6604
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6605
 
            ;;
6606
 
          lcc*)
6607
 
            # Lucid
6608
 
            # FIXME: insert proper C++ library support
6609
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6610
 
            ;;
6611
 
          *)
6612
 
            # FIXME: insert proper C++ library support
6613
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6614
 
            ;;
6615
 
        esac
6616
 
        ;;
6617
 
 
6618
 
      solaris*)
6619
 
        case $cc_basename in
6620
 
          CC*)
6621
 
            # Sun C++ 4.2, 5.x and Centerline C++
6622
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6623
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6624
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6625
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6626
 
              $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'
6627
 
 
6628
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6629
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6630
 
            case $host_os in
6631
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6632
 
              *)
6633
 
                # The compiler driver will combine and reorder linker options,
6634
 
                # but understands `-z linker_flag'.
6635
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
6636
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6637
 
                ;;
6638
 
            esac
6639
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6640
 
 
6641
 
            output_verbose_link_cmd='echo'
6642
 
 
6643
 
            # Archives containing C++ object files must be created using
6644
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6645
 
            # necessary to make sure instantiated templates are included
6646
 
            # in the archive.
6647
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6648
 
            ;;
6649
 
          gcx*)
6650
 
            # Green Hills C++ Compiler
6651
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6652
 
 
6653
 
            # The C++ compiler must be used to create the archive.
6654
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6655
 
            ;;
6656
 
          *)
6657
 
            # GNU C++ compiler with Solaris linker
6658
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6660
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6661
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6662
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6663
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6664
 
 
6665
 
                # Commands to make compiler produce verbose output that lists
6666
 
                # what "hidden" libraries, object files and flags are used when
6667
 
                # linking a shared library.
6668
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6669
 
              else
6670
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6671
 
                # platform.
6672
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6673
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6674
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6675
 
 
6676
 
                # Commands to make compiler produce verbose output that lists
6677
 
                # what "hidden" libraries, object files and flags are used when
6678
 
                # linking a shared library.
6679
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6680
 
              fi
6681
 
 
6682
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6683
 
              case $host_os in
6684
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6685
 
                *)
6686
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6687
 
                  ;;
6688
 
              esac
6689
 
            fi
6690
 
            ;;
6691
 
        esac
6692
 
        ;;
6693
 
 
6694
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6695
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6696
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6697
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6698
 
      runpath_var='LD_RUN_PATH'
6699
 
 
6700
 
      case $cc_basename in
6701
 
        CC*)
6702
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6703
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6704
 
          ;;
6705
 
        *)
6706
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6707
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6708
 
          ;;
6709
 
      esac
6710
 
      ;;
6711
 
 
6712
 
      sysv5* | sco3.2v5* | sco5v6*)
6713
 
        # Note: We can NOT use -z defs as we might desire, because we do not
6714
 
        # link with -lc, and that would cause any symbols used from libc to
6715
 
        # always be unresolved, which means just about no library would
6716
 
        # ever link correctly.  If we're not using GNU ld we use -z text
6717
 
        # though, which does catch some bad symbols but isn't as heavy-handed
6718
 
        # as -z defs.
6719
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6720
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6721
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6722
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6723
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6724
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6725
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6726
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6727
 
        runpath_var='LD_RUN_PATH'
6728
 
 
6729
 
        case $cc_basename in
6730
 
          CC*)
6731
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6732
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6733
 
            ;;
6734
 
          *)
6735
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6736
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6737
 
            ;;
6738
 
        esac
6739
 
      ;;
6740
 
 
6741
 
      tandem*)
6742
 
        case $cc_basename in
6743
 
          NCC*)
6744
 
            # NonStop-UX NCC 3.20
6745
 
            # FIXME: insert proper C++ library support
6746
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6747
 
            ;;
6748
 
          *)
6749
 
            # FIXME: insert proper C++ library support
6750
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6751
 
            ;;
6752
 
        esac
6753
 
        ;;
6754
 
 
6755
 
      vxworks*)
6756
 
        # FIXME: insert proper C++ library support
6757
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6758
 
        ;;
6759
 
 
6760
 
      *)
6761
 
        # FIXME: insert proper C++ library support
6762
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6763
 
        ;;
6764
 
    esac
6765
 
 
6766
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6767
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6768
 
 
6769
 
    _LT_TAGVAR(GCC, $1)="$GXX"
6770
 
    _LT_TAGVAR(LD, $1)="$LD"
6771
 
 
6772
 
    ## CAVEAT EMPTOR:
6773
 
    ## There is no encapsulation within the following macros, do not change
6774
 
    ## the running order or otherwise move them around unless you know exactly
6775
 
    ## what you are doing...
6776
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
6777
 
    _LT_COMPILER_PIC($1)
6778
 
    _LT_COMPILER_C_O($1)
6779
 
    _LT_COMPILER_FILE_LOCKS($1)
6780
 
    _LT_LINKER_SHLIBS($1)
6781
 
    _LT_SYS_DYNAMIC_LINKER($1)
6782
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6783
 
 
6784
 
    _LT_CONFIG($1)
6785
 
  fi # test -n "$compiler"
6786
 
 
6787
 
  CC=$lt_save_CC
6788
 
  LDCXX=$LD
6789
 
  LD=$lt_save_LD
6790
 
  GCC=$lt_save_GCC
6791
 
  with_gnu_ld=$lt_save_with_gnu_ld
6792
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
6793
 
  lt_cv_path_LD=$lt_save_path_LD
6794
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6795
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6796
 
fi # test "$_lt_caught_CXX_error" != yes
6797
 
 
6798
 
AC_LANG_POP
6799
 
])# _LT_LANG_CXX_CONFIG
6800
 
 
6801
 
 
6802
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6803
 
# ---------------------------------
6804
 
# Figure out "hidden" library dependencies from verbose
6805
 
# compiler output when linking a shared library.
6806
 
# Parse the compiler output and extract the necessary
6807
 
# objects, libraries and library flags.
6808
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6809
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6810
 
# Dependencies to place before and after the object being linked:
6811
 
_LT_TAGVAR(predep_objects, $1)=
6812
 
_LT_TAGVAR(postdep_objects, $1)=
6813
 
_LT_TAGVAR(predeps, $1)=
6814
 
_LT_TAGVAR(postdeps, $1)=
6815
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
6816
 
 
6817
 
dnl we can't use the lt_simple_compile_test_code here,
6818
 
dnl because it contains code intended for an executable,
6819
 
dnl not a library.  It's possible we should let each
6820
 
dnl tag define a new lt_????_link_test_code variable,
6821
 
dnl but it's only used here...
6822
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6823
 
int a;
6824
 
void foo (void) { a = 0; }
6825
 
_LT_EOF
6826
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6827
 
class Foo
6828
 
{
6829
 
public:
6830
 
  Foo (void) { a = 0; }
6831
 
private:
6832
 
  int a;
6833
 
};
6834
 
_LT_EOF
6835
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6836
 
      subroutine foo
6837
 
      implicit none
6838
 
      integer*4 a
6839
 
      a=0
6840
 
      return
6841
 
      end
6842
 
_LT_EOF
6843
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6844
 
      subroutine foo
6845
 
      implicit none
6846
 
      integer a
6847
 
      a=0
6848
 
      return
6849
 
      end
6850
 
_LT_EOF
6851
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6852
 
public class foo {
6853
 
  private int a;
6854
 
  public void bar (void) {
6855
 
    a = 0;
6856
 
  }
6857
 
};
6858
 
_LT_EOF
6859
 
])
6860
 
dnl Parse the compiler output and extract the necessary
6861
 
dnl objects, libraries and library flags.
6862
 
if AC_TRY_EVAL(ac_compile); then
6863
 
  # Parse the compiler output and extract the necessary
6864
 
  # objects, libraries and library flags.
6865
 
 
6866
 
  # Sentinel used to keep track of whether or not we are before
6867
 
  # the conftest object file.
6868
 
  pre_test_object_deps_done=no
6869
 
 
6870
 
  for p in `eval "$output_verbose_link_cmd"`; do
6871
 
    case $p in
6872
 
 
6873
 
    -L* | -R* | -l*)
6874
 
       # Some compilers place space between "-{L,R}" and the path.
6875
 
       # Remove the space.
6876
 
       if test $p = "-L" ||
6877
 
          test $p = "-R"; then
6878
 
         prev=$p
6879
 
         continue
6880
 
       else
6881
 
         prev=
6882
 
       fi
6883
 
 
6884
 
       if test "$pre_test_object_deps_done" = no; then
6885
 
         case $p in
6886
 
         -L* | -R*)
6887
 
           # Internal compiler library paths should come after those
6888
 
           # provided the user.  The postdeps already come after the
6889
 
           # user supplied libs so there is no need to process them.
6890
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6891
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6892
 
           else
6893
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6894
 
           fi
6895
 
           ;;
6896
 
         # The "-l" case would never come before the object being
6897
 
         # linked, so don't bother handling this case.
6898
 
         esac
6899
 
       else
6900
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6901
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6902
 
         else
6903
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6904
 
         fi
6905
 
       fi
6906
 
       ;;
6907
 
 
6908
 
    *.$objext)
6909
 
       # This assumes that the test object file only shows up
6910
 
       # once in the compiler output.
6911
 
       if test "$p" = "conftest.$objext"; then
6912
 
         pre_test_object_deps_done=yes
6913
 
         continue
6914
 
       fi
6915
 
 
6916
 
       if test "$pre_test_object_deps_done" = no; then
6917
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6918
 
           _LT_TAGVAR(predep_objects, $1)="$p"
6919
 
         else
6920
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6921
 
         fi
6922
 
       else
6923
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6924
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
6925
 
         else
6926
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6927
 
         fi
6928
 
       fi
6929
 
       ;;
6930
 
 
6931
 
    *) ;; # Ignore the rest.
6932
 
 
6933
 
    esac
6934
 
  done
6935
 
 
6936
 
  # Clean up.
6937
 
  rm -f a.out a.exe
6938
 
else
6939
 
  echo "libtool.m4: error: problem compiling $1 test program"
6940
 
fi
6941
 
 
6942
 
$RM -f confest.$objext
6943
 
 
6944
 
# PORTME: override above test on systems where it is broken
6945
 
m4_if([$1], [CXX],
6946
 
[case $host_os in
6947
 
interix[[3-9]]*)
6948
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
6949
 
  # hack all around it, let's just trust "g++" to DTRT.
6950
 
  _LT_TAGVAR(predep_objects,$1)=
6951
 
  _LT_TAGVAR(postdep_objects,$1)=
6952
 
  _LT_TAGVAR(postdeps,$1)=
6953
 
  ;;
6954
 
 
6955
 
linux*)
6956
 
  case `$CC -V 2>&1 | sed 5q` in
6957
 
  *Sun\ C*)
6958
 
    # Sun C++ 5.9
6959
 
 
6960
 
    # The more standards-conforming stlport4 library is
6961
 
    # incompatible with the Cstd library. Avoid specifying
6962
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6963
 
    # -library=stlport4 depends on it.
6964
 
    case " $CXX $CXXFLAGS " in
6965
 
    *" -library=stlport4 "*)
6966
 
      solaris_use_stlport4=yes
6967
 
      ;;
6968
 
    esac
6969
 
 
6970
 
    if test "$solaris_use_stlport4" != yes; then
6971
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6972
 
    fi
6973
 
    ;;
6974
 
  esac
6975
 
  ;;
6976
 
 
6977
 
solaris*)
6978
 
  case $cc_basename in
6979
 
  CC*)
6980
 
    # The more standards-conforming stlport4 library is
6981
 
    # incompatible with the Cstd library. Avoid specifying
6982
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6983
 
    # -library=stlport4 depends on it.
6984
 
    case " $CXX $CXXFLAGS " in
6985
 
    *" -library=stlport4 "*)
6986
 
      solaris_use_stlport4=yes
6987
 
      ;;
6988
 
    esac
6989
 
 
6990
 
    # Adding this requires a known-good setup of shared libraries for
6991
 
    # Sun compiler versions before 5.6, else PIC objects from an old
6992
 
    # archive will be linked into the output, leading to subtle bugs.
6993
 
    if test "$solaris_use_stlport4" != yes; then
6994
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6995
 
    fi
6996
 
    ;;
6997
 
  esac
6998
 
  ;;
6999
 
esac
7000
 
])
7001
 
 
7002
 
case " $_LT_TAGVAR(postdeps, $1) " in
7003
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7004
 
esac
7005
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7006
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7007
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7008
 
fi
7009
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7010
 
    [The directories searched by this compiler when creating a shared library])
7011
 
_LT_TAGDECL([], [predep_objects], [1],
7012
 
    [Dependencies to place before and after the objects being linked to
7013
 
    create a shared library])
7014
 
_LT_TAGDECL([], [postdep_objects], [1])
7015
 
_LT_TAGDECL([], [predeps], [1])
7016
 
_LT_TAGDECL([], [postdeps], [1])
7017
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7018
 
    [The library search path used internally by the compiler when linking
7019
 
    a shared library])
7020
 
])# _LT_SYS_HIDDEN_LIBDEPS
7021
 
 
7022
 
 
7023
 
# _LT_PROG_F77
7024
 
# ------------
7025
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7026
 
# if there is no fortran compiler, we have our own version here.
7027
 
m4_defun([_LT_PROG_F77],
7028
 
[
7029
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7030
 
AC_PROG_F77
7031
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7032
 
  _lt_disable_F77=yes
7033
 
fi
7034
 
popdef([AC_MSG_ERROR])
7035
 
])# _LT_PROG_F77
7036
 
 
7037
 
dnl aclocal-1.4 backwards compatibility:
7038
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7039
 
 
7040
 
 
7041
 
# _LT_LANG_F77_CONFIG([TAG])
7042
 
# --------------------------
7043
 
# Ensure that the configuration variables for a Fortran 77 compiler are
7044
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7045
 
# to write the compiler configuration to `libtool'.
7046
 
m4_defun([_LT_LANG_F77_CONFIG],
7047
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7048
 
AC_LANG_PUSH(Fortran 77)
7049
 
 
7050
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7051
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7052
 
_LT_TAGVAR(always_export_symbols, $1)=no
7053
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7054
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7055
 
_LT_TAGVAR(hardcode_direct, $1)=no
7056
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7057
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7058
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7059
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7060
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7061
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7062
 
_LT_TAGVAR(inherit_rpath, $1)=no
7063
 
_LT_TAGVAR(module_cmds, $1)=
7064
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7065
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7066
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7067
 
_LT_TAGVAR(no_undefined_flag, $1)=
7068
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7069
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7070
 
 
7071
 
# Source file extension for f77 test sources.
7072
 
ac_ext=f
7073
 
 
7074
 
# Object file extension for compiled f77 test sources.
7075
 
objext=o
7076
 
_LT_TAGVAR(objext, $1)=$objext
7077
 
 
7078
 
# No sense in running all these tests if we already determined that
7079
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
7080
 
# are currently assumed to apply to all compilers on this platform,
7081
 
# and will be corrupted by setting them based on a non-working compiler.
7082
 
if test "$_lt_disable_F77" != yes; then
7083
 
  # Code to be used in simple compile tests
7084
 
  lt_simple_compile_test_code="\
7085
 
      subroutine t
7086
 
      return
7087
 
      end
7088
 
"
7089
 
 
7090
 
  # Code to be used in simple link tests
7091
 
  lt_simple_link_test_code="\
7092
 
      program t
7093
 
      end
7094
 
"
7095
 
 
7096
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7097
 
  _LT_TAG_COMPILER
7098
 
 
7099
 
  # save warnings/boilerplate of simple test code
7100
 
  _LT_COMPILER_BOILERPLATE
7101
 
  _LT_LINKER_BOILERPLATE
7102
 
 
7103
 
  # Allow CC to be a program name with arguments.
7104
 
  lt_save_CC="$CC"
7105
 
  lt_save_GCC=$GCC
7106
 
  CC=${F77-"f77"}
7107
 
  compiler=$CC
7108
 
  _LT_TAGVAR(compiler, $1)=$CC
7109
 
  _LT_CC_BASENAME([$compiler])
7110
 
  GCC=$G77
7111
 
  if test -n "$compiler"; then
7112
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7113
 
    AC_MSG_RESULT([$can_build_shared])
7114
 
 
7115
 
    AC_MSG_CHECKING([whether to build shared libraries])
7116
 
    test "$can_build_shared" = "no" && enable_shared=no
7117
 
 
7118
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7119
 
    # are all built from PIC.
7120
 
    case $host_os in
7121
 
      aix3*)
7122
 
        test "$enable_shared" = yes && enable_static=no
7123
 
        if test -n "$RANLIB"; then
7124
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7125
 
          postinstall_cmds='$RANLIB $lib'
7126
 
        fi
7127
 
        ;;
7128
 
      aix[[4-9]]*)
7129
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7130
 
          test "$enable_shared" = yes && enable_static=no
7131
 
        fi
7132
 
        ;;
7133
 
    esac
7134
 
    AC_MSG_RESULT([$enable_shared])
7135
 
 
7136
 
    AC_MSG_CHECKING([whether to build static libraries])
7137
 
    # Make sure either enable_shared or enable_static is yes.
7138
 
    test "$enable_shared" = yes || enable_static=yes
7139
 
    AC_MSG_RESULT([$enable_static])
7140
 
 
7141
 
    _LT_TAGVAR(GCC, $1)="$G77"
7142
 
    _LT_TAGVAR(LD, $1)="$LD"
7143
 
 
7144
 
    ## CAVEAT EMPTOR:
7145
 
    ## There is no encapsulation within the following macros, do not change
7146
 
    ## the running order or otherwise move them around unless you know exactly
7147
 
    ## what you are doing...
7148
 
    _LT_COMPILER_PIC($1)
7149
 
    _LT_COMPILER_C_O($1)
7150
 
    _LT_COMPILER_FILE_LOCKS($1)
7151
 
    _LT_LINKER_SHLIBS($1)
7152
 
    _LT_SYS_DYNAMIC_LINKER($1)
7153
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7154
 
 
7155
 
    _LT_CONFIG($1)
7156
 
  fi # test -n "$compiler"
7157
 
 
7158
 
  GCC=$lt_save_GCC
7159
 
  CC="$lt_save_CC"
7160
 
fi # test "$_lt_disable_F77" != yes
7161
 
 
7162
 
AC_LANG_POP
7163
 
])# _LT_LANG_F77_CONFIG
7164
 
 
7165
 
 
7166
 
# _LT_PROG_FC
7167
 
# -----------
7168
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7169
 
# if there is no fortran compiler, we have our own version here.
7170
 
m4_defun([_LT_PROG_FC],
7171
 
[
7172
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7173
 
AC_PROG_FC
7174
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7175
 
  _lt_disable_FC=yes
7176
 
fi
7177
 
popdef([AC_MSG_ERROR])
7178
 
])# _LT_PROG_FC
7179
 
 
7180
 
dnl aclocal-1.4 backwards compatibility:
7181
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7182
 
 
7183
 
 
7184
 
# _LT_LANG_FC_CONFIG([TAG])
7185
 
# -------------------------
7186
 
# Ensure that the configuration variables for a Fortran compiler are
7187
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7188
 
# to write the compiler configuration to `libtool'.
7189
 
m4_defun([_LT_LANG_FC_CONFIG],
7190
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7191
 
AC_LANG_PUSH(Fortran)
7192
 
 
7193
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7194
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7195
 
_LT_TAGVAR(always_export_symbols, $1)=no
7196
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7197
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7198
 
_LT_TAGVAR(hardcode_direct, $1)=no
7199
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7200
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7201
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7202
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7203
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7204
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7205
 
_LT_TAGVAR(inherit_rpath, $1)=no
7206
 
_LT_TAGVAR(module_cmds, $1)=
7207
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7208
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7209
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7210
 
_LT_TAGVAR(no_undefined_flag, $1)=
7211
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7212
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7213
 
 
7214
 
# Source file extension for fc test sources.
7215
 
ac_ext=${ac_fc_srcext-f}
7216
 
 
7217
 
# Object file extension for compiled fc test sources.
7218
 
objext=o
7219
 
_LT_TAGVAR(objext, $1)=$objext
7220
 
 
7221
 
# No sense in running all these tests if we already determined that
7222
 
# the FC compiler isn't working.  Some variables (like enable_shared)
7223
 
# are currently assumed to apply to all compilers on this platform,
7224
 
# and will be corrupted by setting them based on a non-working compiler.
7225
 
if test "$_lt_disable_FC" != yes; then
7226
 
  # Code to be used in simple compile tests
7227
 
  lt_simple_compile_test_code="\
7228
 
      subroutine t
7229
 
      return
7230
 
      end
7231
 
"
7232
 
 
7233
 
  # Code to be used in simple link tests
7234
 
  lt_simple_link_test_code="\
7235
 
      program t
7236
 
      end
7237
 
"
7238
 
 
7239
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7240
 
  _LT_TAG_COMPILER
7241
 
 
7242
 
  # save warnings/boilerplate of simple test code
7243
 
  _LT_COMPILER_BOILERPLATE
7244
 
  _LT_LINKER_BOILERPLATE
7245
 
 
7246
 
  # Allow CC to be a program name with arguments.
7247
 
  lt_save_CC="$CC"
7248
 
  lt_save_GCC=$GCC
7249
 
  CC=${FC-"f95"}
7250
 
  compiler=$CC
7251
 
  GCC=$ac_cv_fc_compiler_gnu
7252
 
 
7253
 
  _LT_TAGVAR(compiler, $1)=$CC
7254
 
  _LT_CC_BASENAME([$compiler])
7255
 
 
7256
 
  if test -n "$compiler"; then
7257
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7258
 
    AC_MSG_RESULT([$can_build_shared])
7259
 
 
7260
 
    AC_MSG_CHECKING([whether to build shared libraries])
7261
 
    test "$can_build_shared" = "no" && enable_shared=no
7262
 
 
7263
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7264
 
    # are all built from PIC.
7265
 
    case $host_os in
7266
 
      aix3*)
7267
 
        test "$enable_shared" = yes && enable_static=no
7268
 
        if test -n "$RANLIB"; then
7269
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7270
 
          postinstall_cmds='$RANLIB $lib'
7271
 
        fi
7272
 
        ;;
7273
 
      aix[[4-9]]*)
7274
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7275
 
          test "$enable_shared" = yes && enable_static=no
7276
 
        fi
7277
 
        ;;
7278
 
    esac
7279
 
    AC_MSG_RESULT([$enable_shared])
7280
 
 
7281
 
    AC_MSG_CHECKING([whether to build static libraries])
7282
 
    # Make sure either enable_shared or enable_static is yes.
7283
 
    test "$enable_shared" = yes || enable_static=yes
7284
 
    AC_MSG_RESULT([$enable_static])
7285
 
 
7286
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7287
 
    _LT_TAGVAR(LD, $1)="$LD"
7288
 
 
7289
 
    ## CAVEAT EMPTOR:
7290
 
    ## There is no encapsulation within the following macros, do not change
7291
 
    ## the running order or otherwise move them around unless you know exactly
7292
 
    ## what you are doing...
7293
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7294
 
    _LT_COMPILER_PIC($1)
7295
 
    _LT_COMPILER_C_O($1)
7296
 
    _LT_COMPILER_FILE_LOCKS($1)
7297
 
    _LT_LINKER_SHLIBS($1)
7298
 
    _LT_SYS_DYNAMIC_LINKER($1)
7299
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7300
 
 
7301
 
    _LT_CONFIG($1)
7302
 
  fi # test -n "$compiler"
7303
 
 
7304
 
  GCC=$lt_save_GCC
7305
 
  CC="$lt_save_CC"
7306
 
fi # test "$_lt_disable_FC" != yes
7307
 
 
7308
 
AC_LANG_POP
7309
 
])# _LT_LANG_FC_CONFIG
7310
 
 
7311
 
 
7312
 
# _LT_LANG_GCJ_CONFIG([TAG])
7313
 
# --------------------------
7314
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
7315
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7316
 
# to write the compiler configuration to `libtool'.
7317
 
m4_defun([_LT_LANG_GCJ_CONFIG],
7318
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
7319
 
AC_LANG_SAVE
7320
 
 
7321
 
# Source file extension for Java test sources.
7322
 
ac_ext=java
7323
 
 
7324
 
# Object file extension for compiled Java test sources.
7325
 
objext=o
7326
 
_LT_TAGVAR(objext, $1)=$objext
7327
 
 
7328
 
# Code to be used in simple compile tests
7329
 
lt_simple_compile_test_code="class foo {}"
7330
 
 
7331
 
# Code to be used in simple link tests
7332
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7333
 
 
7334
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7335
 
_LT_TAG_COMPILER
7336
 
 
7337
 
# save warnings/boilerplate of simple test code
7338
 
_LT_COMPILER_BOILERPLATE
7339
 
_LT_LINKER_BOILERPLATE
7340
 
 
7341
 
# Allow CC to be a program name with arguments.
7342
 
lt_save_CC="$CC"
7343
 
lt_save_GCC=$GCC
7344
 
GCC=yes
7345
 
CC=${GCJ-"gcj"}
7346
 
compiler=$CC
7347
 
_LT_TAGVAR(compiler, $1)=$CC
7348
 
_LT_TAGVAR(LD, $1)="$LD"
7349
 
_LT_CC_BASENAME([$compiler])
7350
 
 
7351
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7352
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7353
 
 
7354
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7355
 
 
7356
 
if test -n "$compiler"; then
7357
 
  _LT_COMPILER_NO_RTTI($1)
7358
 
  _LT_COMPILER_PIC($1)
7359
 
  _LT_COMPILER_C_O($1)
7360
 
  _LT_COMPILER_FILE_LOCKS($1)
7361
 
  _LT_LINKER_SHLIBS($1)
7362
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7363
 
 
7364
 
  _LT_CONFIG($1)
7365
 
fi
7366
 
 
7367
 
AC_LANG_RESTORE
7368
 
 
7369
 
GCC=$lt_save_GCC
7370
 
CC="$lt_save_CC"
7371
 
])# _LT_LANG_GCJ_CONFIG
7372
 
 
7373
 
 
7374
 
# _LT_LANG_RC_CONFIG([TAG])
7375
 
# -------------------------
7376
 
# Ensure that the configuration variables for the Windows resource compiler
7377
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7378
 
# to write the compiler configuration to `libtool'.
7379
 
m4_defun([_LT_LANG_RC_CONFIG],
7380
 
[AC_REQUIRE([LT_PROG_RC])dnl
7381
 
AC_LANG_SAVE
7382
 
 
7383
 
# Source file extension for RC test sources.
7384
 
ac_ext=rc
7385
 
 
7386
 
# Object file extension for compiled RC test sources.
7387
 
objext=o
7388
 
_LT_TAGVAR(objext, $1)=$objext
7389
 
 
7390
 
# Code to be used in simple compile tests
7391
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7392
 
 
7393
 
# Code to be used in simple link tests
7394
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7395
 
 
7396
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7397
 
_LT_TAG_COMPILER
7398
 
 
7399
 
# save warnings/boilerplate of simple test code
7400
 
_LT_COMPILER_BOILERPLATE
7401
 
_LT_LINKER_BOILERPLATE
7402
 
 
7403
 
# Allow CC to be a program name with arguments.
7404
 
lt_save_CC="$CC"
7405
 
lt_save_GCC=$GCC
7406
 
GCC=
7407
 
CC=${RC-"windres"}
7408
 
compiler=$CC
7409
 
_LT_TAGVAR(compiler, $1)=$CC
7410
 
_LT_CC_BASENAME([$compiler])
7411
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7412
 
 
7413
 
if test -n "$compiler"; then
7414
 
  :
7415
 
  _LT_CONFIG($1)
7416
 
fi
7417
 
 
7418
 
GCC=$lt_save_GCC
7419
 
AC_LANG_RESTORE
7420
 
CC="$lt_save_CC"
7421
 
])# _LT_LANG_RC_CONFIG
7422
 
 
7423
 
 
7424
 
# LT_PROG_GCJ
7425
 
# -----------
7426
 
AC_DEFUN([LT_PROG_GCJ],
7427
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7428
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7429
 
    [AC_CHECK_TOOL(GCJ, gcj,)
7430
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7431
 
      AC_SUBST(GCJFLAGS)])])[]dnl
7432
 
])
7433
 
 
7434
 
# Old name:
7435
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7436
 
dnl aclocal-1.4 backwards compatibility:
7437
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7438
 
 
7439
 
 
7440
 
# LT_PROG_RC
7441
 
# ----------
7442
 
AC_DEFUN([LT_PROG_RC],
7443
 
[AC_CHECK_TOOL(RC, windres,)
7444
 
])
7445
 
 
7446
 
# Old name:
7447
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7448
 
dnl aclocal-1.4 backwards compatibility:
7449
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7450
 
 
7451
 
 
7452
 
# _LT_DECL_EGREP
7453
 
# --------------
7454
 
# If we don't have a new enough Autoconf to choose the best grep
7455
 
# available, choose the one first in the user's PATH.
7456
 
m4_defun([_LT_DECL_EGREP],
7457
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
7458
 
AC_REQUIRE([AC_PROG_FGREP])dnl
7459
 
test -z "$GREP" && GREP=grep
7460
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7461
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7462
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7463
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7464
 
AC_SUBST([GREP])
7465
 
])
7466
 
 
7467
 
 
7468
 
# _LT_DECL_OBJDUMP
7469
 
# --------------
7470
 
# If we don't have a new enough Autoconf to choose the best objdump
7471
 
# available, choose the one first in the user's PATH.
7472
 
m4_defun([_LT_DECL_OBJDUMP],
7473
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7474
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7475
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7476
 
AC_SUBST([OBJDUMP])
7477
 
])
7478
 
 
7479
 
 
7480
 
# _LT_DECL_SED
7481
 
# ------------
7482
 
# Check for a fully-functional sed program, that truncates
7483
 
# as few characters as possible.  Prefer GNU sed if found.
7484
 
m4_defun([_LT_DECL_SED],
7485
 
[AC_PROG_SED
7486
 
test -z "$SED" && SED=sed
7487
 
Xsed="$SED -e 1s/^X//"
7488
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7489
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7490
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7491
 
])# _LT_DECL_SED
7492
 
 
7493
 
m4_ifndef([AC_PROG_SED], [
7494
 
# NOTE: This macro has been submitted for inclusion into   #
7495
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7496
 
#  a released version of Autoconf we should remove this    #
7497
 
#  macro and use it instead.                               #
7498
 
 
7499
 
m4_defun([AC_PROG_SED],
7500
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
7501
 
AC_CACHE_VAL(lt_cv_path_SED,
7502
 
[# Loop through the user's path and test for sed and gsed.
7503
 
# Then use that list of sed's as ones to test for truncation.
7504
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505
 
for as_dir in $PATH
7506
 
do
7507
 
  IFS=$as_save_IFS
7508
 
  test -z "$as_dir" && as_dir=.
7509
 
  for lt_ac_prog in sed gsed; do
7510
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7511
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7512
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7513
 
      fi
7514
 
    done
7515
 
  done
7516
 
done
7517
 
IFS=$as_save_IFS
7518
 
lt_ac_max=0
7519
 
lt_ac_count=0
7520
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7521
 
# along with /bin/sed that truncates output.
7522
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7523
 
  test ! -f $lt_ac_sed && continue
7524
 
  cat /dev/null > conftest.in
7525
 
  lt_ac_count=0
7526
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7527
 
  # Check for GNU sed and select it if it is found.
7528
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7529
 
    lt_cv_path_SED=$lt_ac_sed
7530
 
    break
7531
 
  fi
7532
 
  while true; do
7533
 
    cat conftest.in conftest.in >conftest.tmp
7534
 
    mv conftest.tmp conftest.in
7535
 
    cp conftest.in conftest.nl
7536
 
    echo >>conftest.nl
7537
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7538
 
    cmp -s conftest.out conftest.nl || break
7539
 
    # 10000 chars as input seems more than enough
7540
 
    test $lt_ac_count -gt 10 && break
7541
 
    lt_ac_count=`expr $lt_ac_count + 1`
7542
 
    if test $lt_ac_count -gt $lt_ac_max; then
7543
 
      lt_ac_max=$lt_ac_count
7544
 
      lt_cv_path_SED=$lt_ac_sed
7545
 
    fi
7546
 
  done
7547
 
done
7548
 
])
7549
 
SED=$lt_cv_path_SED
7550
 
AC_SUBST([SED])
7551
 
AC_MSG_RESULT([$SED])
7552
 
])#AC_PROG_SED
7553
 
])#m4_ifndef
7554
 
 
7555
 
# Old name:
7556
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7557
 
dnl aclocal-1.4 backwards compatibility:
7558
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7559
 
 
7560
 
 
7561
 
# _LT_CHECK_SHELL_FEATURES
7562
 
# ------------------------
7563
 
# Find out whether the shell is Bourne or XSI compatible,
7564
 
# or has some other useful features.
7565
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
7566
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7567
 
# Try some XSI features
7568
 
xsi_shell=no
7569
 
( _lt_dummy="a/b/c"
7570
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7571
 
      = c,a/b,, \
7572
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
7573
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7574
 
  && xsi_shell=yes
7575
 
AC_MSG_RESULT([$xsi_shell])
7576
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7577
 
 
7578
 
AC_MSG_CHECKING([whether the shell understands "+="])
7579
 
lt_shell_append=no
7580
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7581
 
    >/dev/null 2>&1 \
7582
 
  && lt_shell_append=yes
7583
 
AC_MSG_RESULT([$lt_shell_append])
7584
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7585
 
 
7586
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7587
 
  lt_unset=unset
7588
 
else
7589
 
  lt_unset=false
7590
 
fi
7591
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7592
 
 
7593
 
# test EBCDIC or ASCII
7594
 
case `echo X|tr X '\101'` in
7595
 
 A) # ASCII based system
7596
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7597
 
  lt_SP2NL='tr \040 \012'
7598
 
  lt_NL2SP='tr \015\012 \040\040'
7599
 
  ;;
7600
 
 *) # EBCDIC based system
7601
 
  lt_SP2NL='tr \100 \n'
7602
 
  lt_NL2SP='tr \r\n \100\100'
7603
 
  ;;
7604
 
esac
7605
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7606
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7607
 
])# _LT_CHECK_SHELL_FEATURES
7608
 
 
7609
 
 
7610
 
# _LT_PROG_XSI_SHELLFNS
7611
 
# ---------------------
7612
 
# Bourne and XSI compatible variants of some useful shell functions.
7613
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7614
 
[case $xsi_shell in
7615
 
  yes)
7616
 
    cat << \_LT_EOF >> "$cfgfile"
7617
 
 
7618
 
# func_dirname file append nondir_replacement
7619
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7620
 
# otherwise set result to NONDIR_REPLACEMENT.
7621
 
func_dirname ()
7622
 
{
7623
 
  case ${1} in
7624
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7625
 
    *  ) func_dirname_result="${3}" ;;
7626
 
  esac
7627
 
}
7628
 
 
7629
 
# func_basename file
7630
 
func_basename ()
7631
 
{
7632
 
  func_basename_result="${1##*/}"
7633
 
}
7634
 
 
7635
 
# func_dirname_and_basename file append nondir_replacement
7636
 
# perform func_basename and func_dirname in a single function
7637
 
# call:
7638
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7639
 
#             add APPEND to the result, otherwise set result
7640
 
#             to NONDIR_REPLACEMENT.
7641
 
#             value returned in "$func_dirname_result"
7642
 
#   basename: Compute filename of FILE.
7643
 
#             value retuned in "$func_basename_result"
7644
 
# Implementation must be kept synchronized with func_dirname
7645
 
# and func_basename. For efficiency, we do not delegate to
7646
 
# those functions but instead duplicate the functionality here.
7647
 
func_dirname_and_basename ()
7648
 
{
7649
 
  case ${1} in
7650
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7651
 
    *  ) func_dirname_result="${3}" ;;
7652
 
  esac
7653
 
  func_basename_result="${1##*/}"
7654
 
}
7655
 
 
7656
 
# func_stripname prefix suffix name
7657
 
# strip PREFIX and SUFFIX off of NAME.
7658
 
# PREFIX and SUFFIX must not contain globbing or regex special
7659
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7660
 
# dot (in which case that matches only a dot).
7661
 
func_stripname ()
7662
 
{
7663
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7664
 
  # positional parameters, so assign one to ordinary parameter first.
7665
 
  func_stripname_result=${3}
7666
 
  func_stripname_result=${func_stripname_result#"${1}"}
7667
 
  func_stripname_result=${func_stripname_result%"${2}"}
7668
 
}
7669
 
 
7670
 
# func_opt_split
7671
 
func_opt_split ()
7672
 
{
7673
 
  func_opt_split_opt=${1%%=*}
7674
 
  func_opt_split_arg=${1#*=}
7675
 
}
7676
 
 
7677
 
# func_lo2o object
7678
 
func_lo2o ()
7679
 
{
7680
 
  case ${1} in
7681
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7682
 
    *)    func_lo2o_result=${1} ;;
7683
 
  esac
7684
 
}
7685
 
 
7686
 
# func_xform libobj-or-source
7687
 
func_xform ()
7688
 
{
7689
 
  func_xform_result=${1%.*}.lo
7690
 
}
7691
 
 
7692
 
# func_arith arithmetic-term...
7693
 
func_arith ()
7694
 
{
7695
 
  func_arith_result=$(( $[*] ))
7696
 
}
7697
 
 
7698
 
# func_len string
7699
 
# STRING may not start with a hyphen.
7700
 
func_len ()
7701
 
{
7702
 
  func_len_result=${#1}
7703
 
}
7704
 
 
7705
 
_LT_EOF
7706
 
    ;;
7707
 
  *) # Bourne compatible functions.
7708
 
    cat << \_LT_EOF >> "$cfgfile"
7709
 
 
7710
 
# func_dirname file append nondir_replacement
7711
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7712
 
# otherwise set result to NONDIR_REPLACEMENT.
7713
 
func_dirname ()
7714
 
{
7715
 
  # Extract subdirectory from the argument.
7716
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7717
 
  if test "X$func_dirname_result" = "X${1}"; then
7718
 
    func_dirname_result="${3}"
7719
 
  else
7720
 
    func_dirname_result="$func_dirname_result${2}"
7721
 
  fi
7722
 
}
7723
 
 
7724
 
# func_basename file
7725
 
func_basename ()
7726
 
{
7727
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7728
 
}
7729
 
 
7730
 
dnl func_dirname_and_basename
7731
 
dnl A portable version of this function is already defined in general.m4sh
7732
 
dnl so there is no need for it here.
7733
 
 
7734
 
# func_stripname prefix suffix name
7735
 
# strip PREFIX and SUFFIX off of NAME.
7736
 
# PREFIX and SUFFIX must not contain globbing or regex special
7737
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7738
 
# dot (in which case that matches only a dot).
7739
 
# func_strip_suffix prefix name
7740
 
func_stripname ()
7741
 
{
7742
 
  case ${2} in
7743
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7744
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7745
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7746
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7747
 
  esac
7748
 
}
7749
 
 
7750
 
# sed scripts:
7751
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7752
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7753
 
 
7754
 
# func_opt_split
7755
 
func_opt_split ()
7756
 
{
7757
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7758
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7759
 
}
7760
 
 
7761
 
# func_lo2o object
7762
 
func_lo2o ()
7763
 
{
7764
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7765
 
}
7766
 
 
7767
 
# func_xform libobj-or-source
7768
 
func_xform ()
7769
 
{
7770
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7771
 
}
7772
 
 
7773
 
# func_arith arithmetic-term...
7774
 
func_arith ()
7775
 
{
7776
 
  func_arith_result=`expr "$[@]"`
7777
 
}
7778
 
 
7779
 
# func_len string
7780
 
# STRING may not start with a hyphen.
7781
 
func_len ()
7782
 
{
7783
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7784
 
}
7785
 
 
7786
 
_LT_EOF
7787
 
esac
7788
 
 
7789
 
case $lt_shell_append in
7790
 
  yes)
7791
 
    cat << \_LT_EOF >> "$cfgfile"
7792
 
 
7793
 
# func_append var value
7794
 
# Append VALUE to the end of shell variable VAR.
7795
 
func_append ()
7796
 
{
7797
 
  eval "$[1]+=\$[2]"
7798
 
}
7799
 
_LT_EOF
7800
 
    ;;
7801
 
  *)
7802
 
    cat << \_LT_EOF >> "$cfgfile"
7803
 
 
7804
 
# func_append var value
7805
 
# Append VALUE to the end of shell variable VAR.
7806
 
func_append ()
7807
 
{
7808
 
  eval "$[1]=\$$[1]\$[2]"
7809
 
}
7810
 
 
7811
 
_LT_EOF
7812
 
    ;;
7813
 
  esac
7814
 
])
7815
 
 
7816
 
# Helper functions for option handling.                    -*- Autoconf -*-
7817
 
#
7818
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7819
 
#   Written by Gary V. Vaughan, 2004
7820
 
#
7821
 
# This file is free software; the Free Software Foundation gives
7822
 
# unlimited permission to copy and/or distribute it, with or without
7823
 
# modifications, as long as this notice is preserved.
7824
 
 
7825
 
# serial 6 ltoptions.m4
7826
 
 
7827
 
# This is to help aclocal find these macros, as it can't see m4_define.
7828
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7829
 
 
7830
 
 
7831
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7832
 
# ------------------------------------------
7833
 
m4_define([_LT_MANGLE_OPTION],
7834
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7835
 
 
7836
 
 
7837
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7838
 
# ---------------------------------------
7839
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7840
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
7841
 
# saved as a flag.
7842
 
m4_define([_LT_SET_OPTION],
7843
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7844
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7845
 
        _LT_MANGLE_DEFUN([$1], [$2]),
7846
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
7847
 
])
7848
 
 
7849
 
 
7850
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7851
 
# ------------------------------------------------------------
7852
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7853
 
m4_define([_LT_IF_OPTION],
7854
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7855
 
 
7856
 
 
7857
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7858
 
# -------------------------------------------------------
7859
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7860
 
# are set.
7861
 
m4_define([_LT_UNLESS_OPTIONS],
7862
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7863
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7864
 
                      [m4_define([$0_found])])])[]dnl
7865
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7866
 
])[]dnl
7867
 
])
7868
 
 
7869
 
 
7870
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7871
 
# ----------------------------------------
7872
 
# OPTION-LIST is a space-separated list of Libtool options associated
7873
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
7874
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7875
 
# the unknown option and exit.
7876
 
m4_defun([_LT_SET_OPTIONS],
7877
 
[# Set options
7878
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7879
 
    [_LT_SET_OPTION([$1], _LT_Option)])
7880
 
 
7881
 
m4_if([$1],[LT_INIT],[
7882
 
  dnl
7883
 
  dnl Simply set some default values (i.e off) if boolean options were not
7884
 
  dnl specified:
7885
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7886
 
  ])
7887
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7888
 
  ])
7889
 
  dnl
7890
 
  dnl If no reference was made to various pairs of opposing options, then
7891
 
  dnl we run the default mode handler for the pair.  For example, if neither
7892
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
7893
 
  dnl archives by default:
7894
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7895
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7896
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7897
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7898
 
                   [_LT_ENABLE_FAST_INSTALL])
7899
 
  ])
7900
 
])# _LT_SET_OPTIONS
7901
 
 
7902
 
 
7903
 
 
7904
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7905
 
# -----------------------------------------
7906
 
m4_define([_LT_MANGLE_DEFUN],
7907
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7908
 
 
7909
 
 
7910
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7911
 
# -----------------------------------------------
7912
 
m4_define([LT_OPTION_DEFINE],
7913
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7914
 
])# LT_OPTION_DEFINE
7915
 
 
7916
 
 
7917
 
# dlopen
7918
 
# ------
7919
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7920
 
])
7921
 
 
7922
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7923
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
7924
 
AC_DIAGNOSE([obsolete],
7925
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7926
 
put the `dlopen' option into LT_INIT's first parameter.])
7927
 
])
7928
 
 
7929
 
dnl aclocal-1.4 backwards compatibility:
7930
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7931
 
 
7932
 
 
7933
 
# win32-dll
7934
 
# ---------
7935
 
# Declare package support for building win32 dll's.
7936
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7937
 
[enable_win32_dll=yes
7938
 
 
7939
 
case $host in
7940
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7941
 
  AC_CHECK_TOOL(AS, as, false)
7942
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7943
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7944
 
  ;;
7945
 
esac
7946
 
 
7947
 
test -z "$AS" && AS=as
7948
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
7949
 
 
7950
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7951
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7952
 
 
7953
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7954
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7955
 
])# win32-dll
7956
 
 
7957
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7958
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7959
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
7960
 
AC_DIAGNOSE([obsolete],
7961
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7962
 
put the `win32-dll' option into LT_INIT's first parameter.])
7963
 
])
7964
 
 
7965
 
dnl aclocal-1.4 backwards compatibility:
7966
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7967
 
 
7968
 
 
7969
 
# _LT_ENABLE_SHARED([DEFAULT])
7970
 
# ----------------------------
7971
 
# implement the --enable-shared flag, and supports the `shared' and
7972
 
# `disable-shared' LT_INIT options.
7973
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7974
 
m4_define([_LT_ENABLE_SHARED],
7975
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7976
 
AC_ARG_ENABLE([shared],
7977
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7978
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7979
 
    [p=${PACKAGE-default}
7980
 
    case $enableval in
7981
 
    yes) enable_shared=yes ;;
7982
 
    no) enable_shared=no ;;
7983
 
    *)
7984
 
      enable_shared=no
7985
 
      # Look at the argument we got.  We use all the common list separators.
7986
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7987
 
      for pkg in $enableval; do
7988
 
        IFS="$lt_save_ifs"
7989
 
        if test "X$pkg" = "X$p"; then
7990
 
          enable_shared=yes
7991
 
        fi
7992
 
      done
7993
 
      IFS="$lt_save_ifs"
7994
 
      ;;
7995
 
    esac],
7996
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7997
 
 
7998
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
7999
 
        [Whether or not to build shared libraries])
8000
 
])# _LT_ENABLE_SHARED
8001
 
 
8002
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8003
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8004
 
 
8005
 
# Old names:
8006
 
AC_DEFUN([AC_ENABLE_SHARED],
8007
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8008
 
])
8009
 
 
8010
 
AC_DEFUN([AC_DISABLE_SHARED],
8011
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8012
 
])
8013
 
 
8014
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8015
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8016
 
 
8017
 
dnl aclocal-1.4 backwards compatibility:
8018
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8019
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8020
 
 
8021
 
 
8022
 
 
8023
 
# _LT_ENABLE_STATIC([DEFAULT])
8024
 
# ----------------------------
8025
 
# implement the --enable-static flag, and support the `static' and
8026
 
# `disable-static' LT_INIT options.
8027
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8028
 
m4_define([_LT_ENABLE_STATIC],
8029
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8030
 
AC_ARG_ENABLE([static],
8031
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8032
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8033
 
    [p=${PACKAGE-default}
8034
 
    case $enableval in
8035
 
    yes) enable_static=yes ;;
8036
 
    no) enable_static=no ;;
8037
 
    *)
8038
 
     enable_static=no
8039
 
      # Look at the argument we got.  We use all the common list separators.
8040
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041
 
      for pkg in $enableval; do
8042
 
        IFS="$lt_save_ifs"
8043
 
        if test "X$pkg" = "X$p"; then
8044
 
          enable_static=yes
8045
 
        fi
8046
 
      done
8047
 
      IFS="$lt_save_ifs"
8048
 
      ;;
8049
 
    esac],
8050
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8051
 
 
8052
 
    _LT_DECL([build_old_libs], [enable_static], [0],
8053
 
        [Whether or not to build static libraries])
8054
 
])# _LT_ENABLE_STATIC
8055
 
 
8056
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8057
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8058
 
 
8059
 
# Old names:
8060
 
AC_DEFUN([AC_ENABLE_STATIC],
8061
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8062
 
])
8063
 
 
8064
 
AC_DEFUN([AC_DISABLE_STATIC],
8065
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
8066
 
])
8067
 
 
8068
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8069
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8070
 
 
8071
 
dnl aclocal-1.4 backwards compatibility:
8072
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8073
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8074
 
 
8075
 
 
8076
 
 
8077
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8078
 
# ----------------------------------
8079
 
# implement the --enable-fast-install flag, and support the `fast-install'
8080
 
# and `disable-fast-install' LT_INIT options.
8081
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8082
 
m4_define([_LT_ENABLE_FAST_INSTALL],
8083
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8084
 
AC_ARG_ENABLE([fast-install],
8085
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8086
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8087
 
    [p=${PACKAGE-default}
8088
 
    case $enableval in
8089
 
    yes) enable_fast_install=yes ;;
8090
 
    no) enable_fast_install=no ;;
8091
 
    *)
8092
 
      enable_fast_install=no
8093
 
      # Look at the argument we got.  We use all the common list separators.
8094
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8095
 
      for pkg in $enableval; do
8096
 
        IFS="$lt_save_ifs"
8097
 
        if test "X$pkg" = "X$p"; then
8098
 
          enable_fast_install=yes
8099
 
        fi
8100
 
      done
8101
 
      IFS="$lt_save_ifs"
8102
 
      ;;
8103
 
    esac],
8104
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8105
 
 
8106
 
_LT_DECL([fast_install], [enable_fast_install], [0],
8107
 
         [Whether or not to optimize for fast installation])dnl
8108
 
])# _LT_ENABLE_FAST_INSTALL
8109
 
 
8110
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8111
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8112
 
 
8113
 
# Old names:
8114
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8115
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8116
 
AC_DIAGNOSE([obsolete],
8117
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8118
 
the `fast-install' option into LT_INIT's first parameter.])
8119
 
])
8120
 
 
8121
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8122
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8123
 
AC_DIAGNOSE([obsolete],
8124
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8125
 
the `disable-fast-install' option into LT_INIT's first parameter.])
8126
 
])
8127
 
 
8128
 
dnl aclocal-1.4 backwards compatibility:
8129
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8130
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8131
 
 
8132
 
 
8133
 
# _LT_WITH_PIC([MODE])
8134
 
# --------------------
8135
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8136
 
# LT_INIT options.
8137
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8138
 
m4_define([_LT_WITH_PIC],
8139
 
[AC_ARG_WITH([pic],
8140
 
    [AS_HELP_STRING([--with-pic],
8141
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8142
 
    [pic_mode="$withval"],
8143
 
    [pic_mode=default])
8144
 
 
8145
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8146
 
 
8147
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8148
 
])# _LT_WITH_PIC
8149
 
 
8150
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8151
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8152
 
 
8153
 
# Old name:
8154
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
8155
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
8156
 
AC_DIAGNOSE([obsolete],
8157
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8158
 
put the `pic-only' option into LT_INIT's first parameter.])
8159
 
])
8160
 
 
8161
 
dnl aclocal-1.4 backwards compatibility:
8162
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8163
 
 
8164
 
 
8165
 
m4_define([_LTDL_MODE], [])
8166
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8167
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
8168
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8169
 
                 [m4_define([_LTDL_MODE], [recursive])])
8170
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8171
 
                 [m4_define([_LTDL_MODE], [subproject])])
8172
 
 
8173
 
m4_define([_LTDL_TYPE], [])
8174
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8175
 
                 [m4_define([_LTDL_TYPE], [installable])])
8176
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8177
 
                 [m4_define([_LTDL_TYPE], [convenience])])
8178
 
 
8179
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8180
 
#
8181
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8182
 
# Written by Gary V. Vaughan, 2004
8183
 
#
8184
 
# This file is free software; the Free Software Foundation gives
8185
 
# unlimited permission to copy and/or distribute it, with or without
8186
 
# modifications, as long as this notice is preserved.
8187
 
 
8188
 
# serial 6 ltsugar.m4
8189
 
 
8190
 
# This is to help aclocal find these macros, as it can't see m4_define.
8191
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8192
 
 
8193
 
 
8194
 
# lt_join(SEP, ARG1, [ARG2...])
8195
 
# -----------------------------
8196
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8197
 
# associated separator.
8198
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8199
 
# versions in m4sugar had bugs.
8200
 
m4_define([lt_join],
8201
 
[m4_if([$#], [1], [],
8202
 
       [$#], [2], [[$2]],
8203
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8204
 
m4_define([_lt_join],
8205
 
[m4_if([$#$2], [2], [],
8206
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8207
 
 
8208
 
 
8209
 
# lt_car(LIST)
8210
 
# lt_cdr(LIST)
8211
 
# ------------
8212
 
# Manipulate m4 lists.
8213
 
# These macros are necessary as long as will still need to support
8214
 
# Autoconf-2.59 which quotes differently.
8215
 
m4_define([lt_car], [[$1]])
8216
 
m4_define([lt_cdr],
8217
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8218
 
       [$#], 1, [],
8219
 
       [m4_dquote(m4_shift($@))])])
8220
 
m4_define([lt_unquote], $1)
8221
 
 
8222
 
 
8223
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8224
 
# ------------------------------------------
8225
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8226
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8227
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8228
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8229
 
# than defined and empty).
8230
 
#
8231
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8232
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8233
 
m4_define([lt_append],
8234
 
[m4_define([$1],
8235
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8236
 
 
8237
 
 
8238
 
 
8239
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8240
 
# ----------------------------------------------------------
8241
 
# Produce a SEP delimited list of all paired combinations of elements of
8242
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8243
 
# has the form PREFIXmINFIXSUFFIXn.
8244
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8245
 
m4_define([lt_combine],
8246
 
[m4_if(m4_eval([$# > 3]), [1],
8247
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8248
 
[[m4_foreach([_Lt_prefix], [$2],
8249
 
             [m4_foreach([_Lt_suffix],
8250
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8251
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8252
 
 
8253
 
 
8254
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8255
 
# -----------------------------------------------------------------------
8256
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8257
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8258
 
m4_define([lt_if_append_uniq],
8259
 
[m4_ifdef([$1],
8260
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8261
 
                 [lt_append([$1], [$2], [$3])$4],
8262
 
                 [$5])],
8263
 
          [lt_append([$1], [$2], [$3])$4])])
8264
 
 
8265
 
 
8266
 
# lt_dict_add(DICT, KEY, VALUE)
8267
 
# -----------------------------
8268
 
m4_define([lt_dict_add],
8269
 
[m4_define([$1($2)], [$3])])
8270
 
 
8271
 
 
8272
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8273
 
# --------------------------------------------
8274
 
m4_define([lt_dict_add_subkey],
8275
 
[m4_define([$1($2:$3)], [$4])])
8276
 
 
8277
 
 
8278
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8279
 
# ----------------------------------
8280
 
m4_define([lt_dict_fetch],
8281
 
[m4_ifval([$3],
8282
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8283
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8284
 
 
8285
 
 
8286
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8287
 
# -----------------------------------------------------------------
8288
 
m4_define([lt_if_dict_fetch],
8289
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8290
 
        [$5],
8291
 
    [$6])])
8292
 
 
8293
 
 
8294
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8295
 
# --------------------------------------------------------------
8296
 
m4_define([lt_dict_filter],
8297
 
[m4_if([$5], [], [],
8298
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8299
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8300
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8301
 
])
8302
 
 
8303
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
8304
 
#
8305
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
8306
 
#   Written by Scott James Remnant, 2004
8307
 
#
8308
 
# This file is free software; the Free Software Foundation gives
8309
 
# unlimited permission to copy and/or distribute it, with or without
8310
 
# modifications, as long as this notice is preserved.
8311
 
 
8312
 
# Generated from ltversion.in.
8313
 
 
8314
 
# serial 3012 ltversion.m4
8315
 
# This file is part of GNU Libtool
8316
 
 
8317
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8318
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
8319
 
 
8320
 
AC_DEFUN([LTVERSION_VERSION],
8321
 
[macro_version='2.2.6'
8322
 
macro_revision='1.3012'
8323
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8324
 
_LT_DECL(, macro_revision, 0)
8325
 
])
8326
 
 
8327
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8328
 
#
8329
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8330
 
#   Written by Scott James Remnant, 2004.
8331
 
#
8332
 
# This file is free software; the Free Software Foundation gives
8333
 
# unlimited permission to copy and/or distribute it, with or without
8334
 
# modifications, as long as this notice is preserved.
8335
 
 
8336
 
# serial 4 lt~obsolete.m4
8337
 
 
8338
 
# These exist entirely to fool aclocal when bootstrapping libtool.
8339
 
#
8340
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8341
 
# which have later been changed to m4_define as they aren't part of the
8342
 
# exported API, or moved to Autoconf or Automake where they belong.
8343
 
#
8344
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8345
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8346
 
# using a macro with the same name in our local m4/libtool.m4 it'll
8347
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8348
 
# and doesn't know about Autoconf macros at all.)
8349
 
#
8350
 
# So we provide this file, which has a silly filename so it's always
8351
 
# included after everything else.  This provides aclocal with the
8352
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8353
 
# because those macros already exist, or will be overwritten later.
8354
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8355
 
#
8356
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8357
 
# Yes, that means every name once taken will need to remain here until
8358
 
# we give up compatibility with versions before 1.7, at which point
8359
 
# we need to keep only those names which we still refer to.
8360
 
 
8361
 
# This is to help aclocal find these macros, as it can't see m4_define.
8362
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8363
 
 
8364
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8365
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8366
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8367
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8368
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8369
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8370
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8371
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8372
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8373
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8374
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8375
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8376
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8377
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8378
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8379
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8380
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8381
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8382
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8383
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8384
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8385
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8386
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8387
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8388
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8389
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8390
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8391
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8392
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8393
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8394
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8395
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8396
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8397
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8398
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8399
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8400
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8401
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8402
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8403
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8404
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8405
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8406
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8407
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8408
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8409
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8410
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8411
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8412
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8413
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8414
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8415
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8416
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8417
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8418
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8419
 
 
8420
455
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8421
456
8422
457
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8587
622
# generated from the m4 files accompanying Automake X.Y.
8588
623
# (This private macro should not be called outside this file.)
8589
624
AC_DEFUN([AM_AUTOMAKE_VERSION],
8590
 
[am__api_version='1.10'
 
625
[am__api_version='1.11'
8591
626
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8592
627
dnl require some minimum version.  Point them to the right macro.
8593
 
m4_if([$1], [1.10.2], [],
 
628
m4_if([$1], [1.11], [],
8594
629
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8595
630
])
8596
631
 
8606
641
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8607
642
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8608
643
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8609
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
644
[AM_AUTOMAKE_VERSION([1.11])dnl
8610
645
m4_ifndef([AC_AUTOCONF_VERSION],
8611
646
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8612
647
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8666
701
 
8667
702
# AM_CONDITIONAL                                            -*- Autoconf -*-
8668
703
 
8669
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
704
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8670
705
# Free Software Foundation, Inc.
8671
706
#
8672
707
# This file is free software; the Free Software Foundation
8673
708
# gives unlimited permission to copy and/or distribute it,
8674
709
# with or without modifications, as long as this notice is preserved.
8675
710
 
8676
 
# serial 8
 
711
# serial 9
8677
712
 
8678
713
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8679
714
# -------------------------------------
8686
721
AC_SUBST([$1_FALSE])dnl
8687
722
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8688
723
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
724
m4_define([_AM_COND_VALUE_$1], [$2])dnl
8689
725
if $2; then
8690
726
  $1_TRUE=
8691
727
  $1_FALSE='#'
8699
735
Usually this means the macro was only invoked conditionally.]])
8700
736
fi])])
8701
737
 
8702
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
738
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8703
739
# Free Software Foundation, Inc.
8704
740
#
8705
741
# This file is free software; the Free Software Foundation
8706
742
# gives unlimited permission to copy and/or distribute it,
8707
743
# with or without modifications, as long as this notice is preserved.
8708
744
 
8709
 
# serial 9
 
745
# serial 10
8710
746
 
8711
747
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8712
748
# written in clear, in which case automake, when reading aclocal.m4,
8763
799
  if test "$am_compiler_list" = ""; then
8764
800
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8765
801
  fi
 
802
  am__universal=false
 
803
  m4_case([$1], [CC],
 
804
    [case " $depcc " in #(
 
805
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
806
     esac],
 
807
    [CXX],
 
808
    [case " $depcc " in #(
 
809
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
810
     esac])
 
811
 
8766
812
  for depmode in $am_compiler_list; do
8767
813
    # Setup a source with many dependencies, because some compilers
8768
814
    # like to wrap large dependency lists on column 80 (with \), and
8780
826
    done
8781
827
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8782
828
 
 
829
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
830
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
831
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
832
    # versions had trouble with output in subdirs
 
833
    am__obj=sub/conftest.${OBJEXT-o}
 
834
    am__minus_obj="-o $am__obj"
8783
835
    case $depmode in
 
836
    gcc)
 
837
      # This depmode causes a compiler race in universal mode.
 
838
      test "$am__universal" = false || continue
 
839
      ;;
8784
840
    nosideeffect)
8785
841
      # after this tag, mechanisms are not by side-effect, so they'll
8786
842
      # only be used when explicitly requested
8790
846
        break
8791
847
      fi
8792
848
      ;;
 
849
    msvisualcpp | msvcmsys)
 
850
      # This compiler won't grok `-c -o', but also, the minuso test has
 
851
      # not run yet.  These depmodes are late enough in the game, and
 
852
      # so weak that their functioning should not be impacted.
 
853
      am__obj=conftest.${OBJEXT-o}
 
854
      am__minus_obj=
 
855
      ;;
8793
856
    none) break ;;
8794
857
    esac
8795
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8796
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
8797
 
    # handle `-M -o', and we need to detect this.
8798
858
    if depmode=$depmode \
8799
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
859
       source=sub/conftest.c object=$am__obj \
8800
860
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8801
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
861
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8802
862
         >/dev/null 2>conftest.err &&
8803
863
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8804
864
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8805
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
865
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8806
866
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8807
867
      # icc doesn't choke on unknown options, it will just issue warnings
8808
868
      # or remarks (even with -Werror).  So we grep stderr for any message
8866
926
# gives unlimited permission to copy and/or distribute it,
8867
927
# with or without modifications, as long as this notice is preserved.
8868
928
 
8869
 
#serial 4
 
929
#serial 5
8870
930
 
8871
931
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8872
932
# ------------------------------
8873
933
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8874
 
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
8875
 
# are listed without --file.  Let's play safe and only enable the eval
8876
 
# if we detect the quoting.
8877
 
case $CONFIG_FILES in
8878
 
*\'*) eval set x "$CONFIG_FILES" ;;
8879
 
*)   set x $CONFIG_FILES ;;
8880
 
esac
8881
 
shift
8882
 
for mf
8883
 
do
8884
 
  # Strip MF so we end up with the name of the file.
8885
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8886
 
  # Check whether this is an Automake generated Makefile or not.
8887
 
  # We used to match only the files named `Makefile.in', but
8888
 
  # some people rename them; so instead we look at the file content.
8889
 
  # Grep'ing the first line is not enough: some people post-process
8890
 
  # each Makefile.in and add a new line on top of each file to say so.
8891
 
  # Grep'ing the whole file is not good either: AIX grep has a line
8892
 
  # limit of 2048, but all sed's we know have understand at least 4000.
8893
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8894
 
    dirpart=`AS_DIRNAME("$mf")`
8895
 
  else
8896
 
    continue
8897
 
  fi
8898
 
  # Extract the definition of DEPDIR, am__include, and am__quote
8899
 
  # from the Makefile without running `make'.
8900
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8901
 
  test -z "$DEPDIR" && continue
8902
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8903
 
  test -z "am__include" && continue
8904
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8905
 
  # When using ansi2knr, U may be empty or an underscore; expand it
8906
 
  U=`sed -n 's/^U = //p' < "$mf"`
8907
 
  # Find all dependency output files, they are included files with
8908
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8909
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
8910
 
  # expansion.
8911
 
  for file in `sed -n "
8912
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8913
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8914
 
    # Make sure the directory exists.
8915
 
    test -f "$dirpart/$file" && continue
8916
 
    fdir=`AS_DIRNAME(["$file"])`
8917
 
    AS_MKDIR_P([$dirpart/$fdir])
8918
 
    # echo "creating $dirpart/$file"
8919
 
    echo '# dummy' > "$dirpart/$file"
 
934
[{
 
935
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
936
  # are listed without --file.  Let's play safe and only enable the eval
 
937
  # if we detect the quoting.
 
938
  case $CONFIG_FILES in
 
939
  *\'*) eval set x "$CONFIG_FILES" ;;
 
940
  *)   set x $CONFIG_FILES ;;
 
941
  esac
 
942
  shift
 
943
  for mf
 
944
  do
 
945
    # Strip MF so we end up with the name of the file.
 
946
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
947
    # Check whether this is an Automake generated Makefile or not.
 
948
    # We used to match only the files named `Makefile.in', but
 
949
    # some people rename them; so instead we look at the file content.
 
950
    # Grep'ing the first line is not enough: some people post-process
 
951
    # each Makefile.in and add a new line on top of each file to say so.
 
952
    # Grep'ing the whole file is not good either: AIX grep has a line
 
953
    # limit of 2048, but all sed's we know have understand at least 4000.
 
954
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
955
      dirpart=`AS_DIRNAME("$mf")`
 
956
    else
 
957
      continue
 
958
    fi
 
959
    # Extract the definition of DEPDIR, am__include, and am__quote
 
960
    # from the Makefile without running `make'.
 
961
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
962
    test -z "$DEPDIR" && continue
 
963
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
964
    test -z "am__include" && continue
 
965
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
966
    # When using ansi2knr, U may be empty or an underscore; expand it
 
967
    U=`sed -n 's/^U = //p' < "$mf"`
 
968
    # Find all dependency output files, they are included files with
 
969
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
970
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
971
    # expansion.
 
972
    for file in `sed -n "
 
973
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
974
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
975
      # Make sure the directory exists.
 
976
      test -f "$dirpart/$file" && continue
 
977
      fdir=`AS_DIRNAME(["$file"])`
 
978
      AS_MKDIR_P([$dirpart/$fdir])
 
979
      # echo "creating $dirpart/$file"
 
980
      echo '# dummy' > "$dirpart/$file"
 
981
    done
8920
982
  done
8921
 
done
 
983
}
8922
984
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8923
985
 
8924
986
 
8938
1000
# Do all the work for Automake.                             -*- Autoconf -*-
8939
1001
 
8940
1002
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8941
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
1003
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
8942
1004
#
8943
1005
# This file is free software; the Free Software Foundation
8944
1006
# gives unlimited permission to copy and/or distribute it,
8945
1007
# with or without modifications, as long as this notice is preserved.
8946
1008
 
8947
 
# serial 13
 
1009
# serial 16
8948
1010
 
8949
1011
# This macro actually does too much.  Some checks are only needed if
8950
1012
# your package does certain things.  But this isn't really a big deal.
8961
1023
# arguments mandatory, and then we can depend on a new Autoconf
8962
1024
# release and drop the old call support.
8963
1025
AC_DEFUN([AM_INIT_AUTOMAKE],
8964
 
[AC_PREREQ([2.60])dnl
 
1026
[AC_PREREQ([2.62])dnl
8965
1027
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
8966
1028
dnl the ones we care about.
8967
1029
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9012
1074
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9013
1075
AM_MISSING_PROG(AUTOHEADER, autoheader)
9014
1076
AM_MISSING_PROG(MAKEINFO, makeinfo)
9015
 
AM_PROG_INSTALL_SH
9016
 
AM_PROG_INSTALL_STRIP
 
1077
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1078
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9017
1079
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9018
1080
# We need awk for the "check" target.  The system "awk" is bad on
9019
1081
# some platforms.
9021
1083
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9022
1084
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9023
1085
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9024
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9025
 
                             [_AM_PROG_TAR([v7])])])
 
1086
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1087
                             [_AM_PROG_TAR([v7])])])
9026
1088
_AM_IF_OPTION([no-dependencies],,
9027
1089
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9028
 
                  [_AM_DEPENDENCIES(CC)],
9029
 
                  [define([AC_PROG_CC],
9030
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1090
                  [_AM_DEPENDENCIES(CC)],
 
1091
                  [define([AC_PROG_CC],
 
1092
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9031
1093
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9032
 
                  [_AM_DEPENDENCIES(CXX)],
9033
 
                  [define([AC_PROG_CXX],
9034
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1094
                  [_AM_DEPENDENCIES(CXX)],
 
1095
                  [define([AC_PROG_CXX],
 
1096
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9035
1097
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9036
 
                  [_AM_DEPENDENCIES(OBJC)],
9037
 
                  [define([AC_PROG_OBJC],
9038
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9039
 
])
9040
 
])
 
1098
                  [_AM_DEPENDENCIES(OBJC)],
 
1099
                  [define([AC_PROG_OBJC],
 
1100
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1101
])
 
1102
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1103
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1104
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1105
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1106
AC_CONFIG_COMMANDS_PRE(dnl
 
1107
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1108
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1109
])
 
1110
 
 
1111
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1112
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1113
dnl mangled by Autoconf and run in a shell conditional statement.
 
1114
m4_define([_AC_COMPILER_EXEEXT],
 
1115
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9041
1116
 
9042
1117
 
9043
1118
# When config.status generates a header, we must update the stamp-h file.
9061
1136
done
9062
1137
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9063
1138
 
9064
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1139
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9065
1140
#
9066
1141
# This file is free software; the Free Software Foundation
9067
1142
# gives unlimited permission to copy and/or distribute it,
9072
1147
# Define $install_sh.
9073
1148
AC_DEFUN([AM_PROG_INSTALL_SH],
9074
1149
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9075
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1150
if test x"${install_sh}" != xset; then
 
1151
  case $am_aux_dir in
 
1152
  *\ * | *\     *)
 
1153
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1154
  *)
 
1155
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1156
  esac
 
1157
fi
9076
1158
AC_SUBST(install_sh)])
9077
1159
 
9078
1160
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9099
1181
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9100
1182
# From Jim Meyering
9101
1183
 
9102
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
1184
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9103
1185
# Free Software Foundation, Inc.
9104
1186
#
9105
1187
# This file is free software; the Free Software Foundation
9106
1188
# gives unlimited permission to copy and/or distribute it,
9107
1189
# with or without modifications, as long as this notice is preserved.
9108
1190
 
9109
 
# serial 4
 
1191
# serial 5
9110
1192
 
 
1193
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1194
# ----------------------------------
 
1195
# Control maintainer-specific portions of Makefiles.
 
1196
# Default is to disable them, unless `enable' is passed literally.
 
1197
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1198
# can override the default with the --enable/--disable switch.
9111
1199
AC_DEFUN([AM_MAINTAINER_MODE],
9112
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9113
 
  dnl maintainer-mode is disabled by default
9114
 
  AC_ARG_ENABLE(maintainer-mode,
9115
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1200
[m4_case(m4_default([$1], [disable]),
 
1201
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1202
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1203
       [m4_define([am_maintainer_other], [enable])
 
1204
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1205
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
1206
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1207
  AC_ARG_ENABLE([maintainer-mode],
 
1208
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9116
1209
                          (and sometimes confusing) to the casual installer],
9117
 
      USE_MAINTAINER_MODE=$enableval,
9118
 
      USE_MAINTAINER_MODE=no)
 
1210
      [USE_MAINTAINER_MODE=$enableval],
 
1211
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9119
1212
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9120
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
1213
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9121
1214
  MAINT=$MAINTAINER_MODE_TRUE
9122
 
  AC_SUBST(MAINT)dnl
 
1215
  AC_SUBST([MAINT])dnl
9123
1216
]
9124
1217
)
9125
1218
 
9127
1220
 
9128
1221
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9129
1222
 
9130
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1223
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9131
1224
#
9132
1225
# This file is free software; the Free Software Foundation
9133
1226
# gives unlimited permission to copy and/or distribute it,
9134
1227
# with or without modifications, as long as this notice is preserved.
9135
1228
 
9136
 
# serial 3
 
1229
# serial 4
9137
1230
 
9138
1231
# AM_MAKE_INCLUDE()
9139
1232
# -----------------
9142
1235
[am_make=${MAKE-make}
9143
1236
cat > confinc << 'END'
9144
1237
am__doit:
9145
 
        @echo done
 
1238
        @echo this is the am__doit target
9146
1239
.PHONY: am__doit
9147
1240
END
9148
1241
# If we don't find an include directive, just comment out the code.
9152
1245
_am_result=none
9153
1246
# First try GNU make style include.
9154
1247
echo "include confinc" > confmf
9155
 
# We grep out `Entering directory' and `Leaving directory'
9156
 
# messages which can occur if `w' ends up in MAKEFLAGS.
9157
 
# In particular we don't look at `^make:' because GNU make might
9158
 
# be invoked under some other name (usually "gmake"), in which
9159
 
# case it prints its new name instead of `make'.
9160
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9161
 
   am__include=include
9162
 
   am__quote=
9163
 
   _am_result=GNU
9164
 
fi
 
1248
# Ignore all kinds of additional output from `make'.
 
1249
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1250
*the\ am__doit\ target*)
 
1251
  am__include=include
 
1252
  am__quote=
 
1253
  _am_result=GNU
 
1254
  ;;
 
1255
esac
9165
1256
# Now try BSD make style include.
9166
1257
if test "$am__include" = "#"; then
9167
1258
   echo '.include "confinc"' > confmf
9168
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9169
 
      am__include=.include
9170
 
      am__quote="\""
9171
 
      _am_result=BSD
9172
 
   fi
 
1259
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1260
   *the\ am__doit\ target*)
 
1261
     am__include=.include
 
1262
     am__quote="\""
 
1263
     _am_result=BSD
 
1264
     ;;
 
1265
   esac
9173
1266
fi
9174
1267
AC_SUBST([am__include])
9175
1268
AC_SUBST([am__quote])
9179
1272
 
9180
1273
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9181
1274
 
9182
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1275
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9183
1276
# Free Software Foundation, Inc.
9184
1277
#
9185
1278
# This file is free software; the Free Software Foundation
9186
1279
# gives unlimited permission to copy and/or distribute it,
9187
1280
# with or without modifications, as long as this notice is preserved.
9188
1281
 
9189
 
# serial 5
 
1282
# serial 6
9190
1283
 
9191
1284
# AM_MISSING_PROG(NAME, PROGRAM)
9192
1285
# ------------------------------
9203
1296
AC_DEFUN([AM_MISSING_HAS_RUN],
9204
1297
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9205
1298
AC_REQUIRE_AUX_FILE([missing])dnl
9206
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1299
if test x"${MISSING+set}" != xset; then
 
1300
  case $am_aux_dir in
 
1301
  *\ * | *\     *)
 
1302
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1303
  *)
 
1304
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1305
  esac
 
1306
fi
9207
1307
# Use eval to expand $SHELL
9208
1308
if eval "$MISSING --run true"; then
9209
1309
  am_missing_run="$MISSING --run "
9272
1372
AC_DEFUN([_AM_IF_OPTION],
9273
1373
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9274
1374
 
9275
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1375
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
9276
1376
# Free Software Foundation, Inc.
9277
1377
#
9278
1378
# This file is free software; the Free Software Foundation
9303
1403
# numbers and dots only.
9304
1404
AC_DEFUN([AM_PATH_PYTHON],
9305
1405
 [
9306
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
9307
 
  dnl supported because the default installation locations changed from
9308
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
9309
 
  dnl in 1.5.
 
1406
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
1407
  dnl supported. (2.0 was released on October 16, 2000).
9310
1408
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
9311
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
9312
 
python2.1 python2.0 python1.6 python1.5])
 
1409
                    [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
 
1410
python2.1 python2.0])
9313
1411
 
9314
1412
  m4_if([$1],[],[
9315
1413
    dnl No version check is needed.
9356
1454
  dnl library.
9357
1455
 
9358
1456
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
9359
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 
1457
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
9360
1458
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
9361
1459
 
9362
1460
  dnl Use the values of $prefix and $exec_prefix for the corresponding
9371
1469
  dnl to know which OS platform Python thinks this is.
9372
1470
 
9373
1471
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
9374
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 
1472
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
9375
1473
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
9376
1474
 
9377
1475
 
9386
1484
  dnl doesn't work.
9387
1485
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
9388
1486
    [am_cv_python_pythondir],
9389
 
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
9390
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
1487
    [if test "x$prefix" = xNONE
 
1488
     then
 
1489
       am_py_prefix=$ac_default_prefix
 
1490
     else
 
1491
       am_py_prefix=$prefix
 
1492
     fi
 
1493
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
1494
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1495
     case $am_cv_python_pythondir in
 
1496
     $am_py_prefix*)
 
1497
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
1498
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
1499
       ;;
 
1500
     esac
 
1501
    ])
9391
1502
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
9392
1503
 
9393
1504
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
9403
1514
  dnl doesn't work.
9404
1515
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
9405
1516
    [am_cv_python_pyexecdir],
9406
 
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
9407
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
 
1517
    [if test "x$exec_prefix" = xNONE
 
1518
     then
 
1519
       am_py_exec_prefix=$am_py_prefix
 
1520
     else
 
1521
       am_py_exec_prefix=$exec_prefix
 
1522
     fi
 
1523
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
1524
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1525
     case $am_cv_python_pyexecdir in
 
1526
     $am_py_exec_prefix*)
 
1527
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
1528
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
1529
       ;;
 
1530
     esac
 
1531
    ])
9408
1532
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
9409
1533
 
9410
1534
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
9424
1548
# Run ACTION-IF-FALSE otherwise.
9425
1549
# This test uses sys.hexversion instead of the string equivalent (first
9426
1550
# word of sys.version), in order to cope with versions such as 2.2c1.
9427
 
# hexversion has been introduced in Python 1.5.2; it's probably not
9428
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
 
1551
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
9429
1552
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
9430
 
 [prog="import sys, string
 
1553
 [prog="import sys
9431
1554
# split strings by '.' and convert to numeric.  Append some zeros
9432
1555
# because we need at least 4 digits for the hex conversion.
9433
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 
1556
# map returns an iterator in Python 3.0 and a list in 2.x
 
1557
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
9434
1558
minverhex = 0
9435
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 
1559
# xrange is not present in Python 3.0 and range returns an iterator
 
1560
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
9436
1561
sys.exit(sys.hexversion < minverhex)"
9437
1562
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
9438
1563
 
9455
1580
 
9456
1581
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9457
1582
 
9458
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1583
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9459
1584
# Free Software Foundation, Inc.
9460
1585
#
9461
1586
# This file is free software; the Free Software Foundation
9462
1587
# gives unlimited permission to copy and/or distribute it,
9463
1588
# with or without modifications, as long as this notice is preserved.
9464
1589
 
9465
 
# serial 4
 
1590
# serial 5
9466
1591
 
9467
1592
# AM_SANITY_CHECK
9468
1593
# ---------------
9471
1596
# Just in case
9472
1597
sleep 1
9473
1598
echo timestamp > conftest.file
 
1599
# Reject unsafe characters in $srcdir or the absolute working directory
 
1600
# name.  Accept space and tab only in the latter.
 
1601
am_lf='
 
1602
'
 
1603
case `pwd` in
 
1604
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1605
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1606
esac
 
1607
case $srcdir in
 
1608
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1609
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1610
esac
 
1611
 
9474
1612
# Do `set' in a subshell so we don't clobber the current shell's
9475
1613
# arguments.  Must try -L first in case configure is actually a
9476
1614
# symlink; some systems play weird games with the mod time of symlinks
9477
1615
# (eg FreeBSD returns the mod time of the symlink's containing
9478
1616
# directory).
9479
1617
if (
9480
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1618
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9481
1619
   if test "$[*]" = "X"; then
9482
1620
      # -L didn't work.
9483
 
      set X `ls -t $srcdir/configure conftest.file`
 
1621
      set X `ls -t "$srcdir/configure" conftest.file`
9484
1622
   fi
9485
1623
   rm -f conftest.file
9486
1624
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9533
1671
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9534
1672
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9535
1673
 
9536
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1674
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
9537
1675
#
9538
1676
# This file is free software; the Free Software Foundation
9539
1677
# gives unlimited permission to copy and/or distribute it,
9540
1678
# with or without modifications, as long as this notice is preserved.
9541
1679
 
 
1680
# serial 2
 
1681
 
9542
1682
# _AM_SUBST_NOTMAKE(VARIABLE)
9543
1683
# ---------------------------
9544
1684
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9545
1685
# This macro is traced by Automake.
9546
1686
AC_DEFUN([_AM_SUBST_NOTMAKE])
9547
1687
 
 
1688
# AM_SUBST_NOTMAKE(VARIABLE)
 
1689
# ---------------------------
 
1690
# Public sister of _AM_SUBST_NOTMAKE.
 
1691
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1692
 
9548
1693
# Check how to create a tarball.                            -*- Autoconf -*-
9549
1694
 
9550
1695
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9643
1788
 
9644
1789
m4_include([m4/acinclude.m4])
9645
1790
m4_include([m4/intltool.m4])
 
1791
m4_include([m4/libtool.m4])
 
1792
m4_include([m4/ltoptions.m4])
 
1793
m4_include([m4/ltsugar.m4])
 
1794
m4_include([m4/ltversion.m4])
 
1795
m4_include([m4/lt~obsolete.m4])
9646
1796
m4_include([m4/nls.m4])
9647
1797
m4_include([m4/python.m4])