~oem-solutions-group/unity-2d/indicator-sound

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Sebastien Bacher
  • Date: 2010-06-28 15:35:19 UTC
  • mfrom: (28.9.10 upstream)
  • Revision ID: seb128@ubuntu.com-20100628153519-zi98aargg1szseq4
Tags: 0.3.4-0ubuntu1
releasing version 0.3.4-0ubuntu1

Show diffs side-by-side

added added

removed removed

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