~ubuntu-branches/ubuntu/trusty/imagination/trusty-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-07-07 09:09:38 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090707090938-jvaub13ijh53oawy
Tags: 1.5-1ubuntu1
* Merge with debian unstable (LP: #392874), Ubuntu remaining changes:
  - debian/control:
    + Move libav*-unstripped-* packages to Recommends as suggested by
      upstream.
    + Improve long description.
    + Add watch file.
  - debian/copyright: Replace deprecated symbol (C) with ©.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
16
24
#
446
454
 
447
455
 
448
456
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
449
 
# serial 36 IT_PROG_INTLTOOL
450
 
AC_DEFUN([IT_PROG_INTLTOOL],
451
 
[AC_PREREQ([2.50])dnl
 
457
# serial 40 IT_PROG_INTLTOOL
 
458
AC_DEFUN([IT_PROG_INTLTOOL], [
 
459
AC_PREREQ([2.50])dnl
 
460
AC_REQUIRE([AM_NLS])dnl
452
461
 
453
462
case "$am__api_version" in
454
463
    1.[01234])
462
471
    AC_MSG_CHECKING([for intltool >= $1])
463
472
 
464
473
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
465
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
466
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
474
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
475
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
467
476
    ]
468
477
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
469
478
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
470
479
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
471
480
fi
472
481
 
 
482
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
483
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
484
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
485
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
486
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
487
fi
 
488
 
473
489
  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 $< [$]@' 
474
490
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 $< [$]@' 
475
491
     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 $< [$]@' 
490
506
    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 $< [$]@'
491
507
   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 $< [$]@'
492
508
 
493
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
494
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
495
 
AC_SUBST(INTLTOOL_KEYS_RULE)
496
 
AC_SUBST(INTLTOOL_PROP_RULE)
497
 
AC_SUBST(INTLTOOL_OAF_RULE)
498
 
AC_SUBST(INTLTOOL_PONG_RULE)
499
 
AC_SUBST(INTLTOOL_SERVER_RULE)
500
 
AC_SUBST(INTLTOOL_SHEET_RULE)
501
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
502
 
AC_SUBST(INTLTOOL_UI_RULE)
503
 
AC_SUBST(INTLTOOL_XAM_RULE)
504
 
AC_SUBST(INTLTOOL_KBD_RULE)
505
 
AC_SUBST(INTLTOOL_XML_RULE)
506
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
507
 
AC_SUBST(INTLTOOL_CAVES_RULE)
508
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
509
 
AC_SUBST(INTLTOOL_THEME_RULE)
510
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
511
 
AC_SUBST(INTLTOOL_POLICY_RULE)
 
509
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
510
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
511
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
512
_IT_SUBST(INTLTOOL_PROP_RULE)
 
513
_IT_SUBST(INTLTOOL_OAF_RULE)
 
514
_IT_SUBST(INTLTOOL_PONG_RULE)
 
515
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
516
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
517
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
518
_IT_SUBST(INTLTOOL_UI_RULE)
 
519
_IT_SUBST(INTLTOOL_XAM_RULE)
 
520
_IT_SUBST(INTLTOOL_KBD_RULE)
 
521
_IT_SUBST(INTLTOOL_XML_RULE)
 
522
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
523
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
524
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
525
_IT_SUBST(INTLTOOL_THEME_RULE)
 
526
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
527
_IT_SUBST(INTLTOOL_POLICY_RULE)
512
528
 
513
529
# Check the gettext tools to make sure they are GNU
514
530
AC_PATH_PROG(XGETTEXT, xgettext)
515
531
AC_PATH_PROG(MSGMERGE, msgmerge)
516
532
AC_PATH_PROG(MSGFMT, msgfmt)
 
533
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
517
534
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
518
535
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
519
536
fi
524
541
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
525
542
fi
526
543
 
527
 
# Use the tools built into the package, not the ones that are installed.
528
 
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
529
 
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
530
 
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
531
 
 
532
544
AC_PATH_PROG(INTLTOOL_PERL, perl)
533
545
if test -z "$INTLTOOL_PERL"; then
534
 
   AC_MSG_ERROR([perl not found; required for intltool])
 
546
   AC_MSG_ERROR([perl not found])
535
547
fi
536
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
537
 
   AC_MSG_ERROR([perl 5.x required for intltool])
 
548
AC_MSG_CHECKING([for perl >= 5.8.1])
 
549
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
550
if test $? -ne 0; then
 
551
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
552
else
 
553
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
554
   AC_MSG_RESULT([$IT_PERL_VERSION])
538
555
fi
539
556
if test "x$2" != "xno-xml"; then
540
557
   AC_MSG_CHECKING([for XML::Parser])
575
592
 
576
593
IT_PO_SUBDIR([po])
577
594
 
578
 
dnl The following is very similar to
579
 
dnl
580
 
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
581
 
dnl
582
 
dnl with the following slight differences:
583
 
dnl  - the *.in files are in ac_aux_dir,
584
 
dnl  - if the file haven't changed upon reconfigure, it's not touched,
585
 
dnl  - the evaluation of the third parameter enables a hack which computes
586
 
dnl    the actual value of $libdir,
587
 
dnl  - the user sees "executing intltool commands", instead of
588
 
dnl    "creating intltool-extract" and such.
589
 
dnl
590
 
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
591
 
dnl a reason for it.
592
 
 
593
 
AC_CONFIG_COMMANDS([intltool], [
594
 
 
595
 
for file in intltool-extract intltool-merge intltool-update; do
596
 
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
597
 
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
598
 
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
599
 
        < ${ac_aux_dir}/${file}.in > ${file}.out
600
 
  if cmp -s ${file} ${file}.out 2>/dev/null; then
601
 
    rm -f ${file}.out
602
 
  else
603
 
    mv -f ${file}.out ${file}
604
 
  fi
605
 
  chmod ugo+x ${file}
606
 
  chmod u+w ${file}
607
 
done
608
 
 
609
 
],
610
 
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
611
 
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
612
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
613
 
 
614
595
])
615
596
 
616
597
 
626
607
dnl of config.status.
627
608
AC_CONFIG_COMMANDS_PRE([
628
609
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
610
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
611
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
612
    fi
629
613
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
630
614
    >"$1/stamp-it.tmp"
631
615
    [sed '/^#/d
634
618
        '"s|^|  $ac_top_srcdir/|" \
635
619
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
636
620
    ]
637
 
    if test ! -f "$1/Makefile"; then
638
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
639
 
    fi
640
 
    mv "$1/Makefile" "$1/Makefile.tmp"
641
621
    [sed '/^POTFILES =/,/[^\\]$/ {
642
622
                /^POTFILES =/!d
643
623
                r $1/POTFILES
644
624
          }
645
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
625
         ' "$1/Makefile.in" >"$1/Makefile"]
646
626
    rm -f "$1/Makefile.tmp"
647
627
    mv "$1/stamp-it.tmp" "$1/stamp-it"
648
628
  ])
649
629
])dnl
650
630
])
651
631
 
 
632
# _IT_SUBST(VARIABLE)
 
633
# -------------------
 
634
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
635
#
 
636
AC_DEFUN([_IT_SUBST],
 
637
[
 
638
AC_SUBST([$1])
 
639
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
640
]
 
641
)
652
642
 
653
643
# deprecated macros
654
644
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
657
647
 
658
648
 
659
649
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
660
 
 
661
 
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
662
 
 
663
 
 
664
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
665
 
# -----------------------------------------------------------
666
 
# If this macro is not defined by Autoconf, define it here.
667
 
m4_ifdef([AC_PROVIDE_IFELSE],
668
 
         [],
669
 
         [m4_define([AC_PROVIDE_IFELSE],
670
 
                 [m4_ifdef([AC_PROVIDE_$1],
671
 
                           [$2], [$3])])])
672
 
 
673
 
 
674
 
# AC_PROG_LIBTOOL
675
 
# ---------------
676
 
AC_DEFUN([AC_PROG_LIBTOOL],
677
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
678
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
679
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
680
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
681
 
    [AC_LIBTOOL_CXX],
682
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
683
 
  ])])
684
 
dnl And a similar setup for Fortran 77 support
685
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
686
 
    [AC_LIBTOOL_F77],
687
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
688
 
])])
689
 
 
690
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
691
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
692
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
693
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
694
 
    [AC_LIBTOOL_GCJ],
695
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
696
 
      [AC_LIBTOOL_GCJ],
697
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
698
 
        [AC_LIBTOOL_GCJ],
699
 
      [ifdef([AC_PROG_GCJ],
700
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
701
 
       ifdef([A][M_PROG_GCJ],
702
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
703
 
       ifdef([LT_AC_PROG_GCJ],
704
 
             [define([LT_AC_PROG_GCJ],
705
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
706
 
])])# AC_PROG_LIBTOOL
707
 
 
708
 
 
709
 
# _AC_PROG_LIBTOOL
710
 
# ----------------
711
 
AC_DEFUN([_AC_PROG_LIBTOOL],
712
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
713
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
714
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
715
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
650
#
 
651
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
652
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
653
#   Written by Gordon Matzigkeit, 1996
 
654
#
 
655
# This file is free software; the Free Software Foundation gives
 
656
# unlimited permission to copy and/or distribute it, with or without
 
657
# modifications, as long as this notice is preserved.
 
658
 
 
659
m4_define([_LT_COPYING], [dnl
 
660
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
661
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
662
#   Written by Gordon Matzigkeit, 1996
 
663
#
 
664
#   This file is part of GNU Libtool.
 
665
#
 
666
# GNU Libtool is free software; you can redistribute it and/or
 
667
# modify it under the terms of the GNU General Public License as
 
668
# published by the Free Software Foundation; either version 2 of
 
669
# the License, or (at your option) any later version.
 
670
#
 
671
# As a special exception to the GNU General Public License,
 
672
# if you distribute this file as part of a program or library that
 
673
# is built using GNU Libtool, you may include this file under the
 
674
# same distribution terms that you use for the rest of that program.
 
675
#
 
676
# GNU Libtool is distributed in the hope that it will be useful,
 
677
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
678
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
679
# GNU General Public License for more details.
 
680
#
 
681
# You should have received a copy of the GNU General Public License
 
682
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
683
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
684
# obtained by writing to the Free Software Foundation, Inc.,
 
685
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
686
])
 
687
 
 
688
# serial 56 LT_INIT
 
689
 
 
690
 
 
691
# LT_PREREQ(VERSION)
 
692
# ------------------
 
693
# Complain and exit if this libtool version is less that VERSION.
 
694
m4_defun([LT_PREREQ],
 
695
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
696
       [m4_default([$3],
 
697
                   [m4_fatal([Libtool version $1 or higher is required],
 
698
                             63)])],
 
699
       [$2])])
 
700
 
 
701
 
 
702
# _LT_CHECK_BUILDDIR
 
703
# ------------------
 
704
# Complain if the absolute build directory name contains unusual characters
 
705
m4_defun([_LT_CHECK_BUILDDIR],
 
706
[case `pwd` in
 
707
  *\ * | *\     *)
 
708
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
709
esac
 
710
])
 
711
 
 
712
 
 
713
# LT_INIT([OPTIONS])
 
714
# ------------------
 
715
AC_DEFUN([LT_INIT],
 
716
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
717
AC_BEFORE([$0], [LT_LANG])dnl
 
718
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
719
AC_BEFORE([$0], [LTDL_INIT])dnl
 
720
m4_require([_LT_CHECK_BUILDDIR])dnl
 
721
 
 
722
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
723
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
724
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
725
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
726
dnl unless we require an AC_DEFUNed macro:
 
727
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
728
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
729
AC_REQUIRE([LTVERSION_VERSION])dnl
 
730
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
731
m4_require([_LT_PROG_LTMAIN])dnl
 
732
 
 
733
dnl Parse OPTIONS
 
734
_LT_SET_OPTIONS([$0], [$1])
716
735
 
717
736
# This can be used to rebuild libtool when needed
718
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
737
LIBTOOL_DEPS="$ltmain"
719
738
 
720
739
# Always use our own libtool.
721
740
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
722
741
AC_SUBST(LIBTOOL)dnl
723
742
 
724
 
# Prevent multiple expansion
725
 
define([AC_PROG_LIBTOOL], [])
726
 
])# _AC_PROG_LIBTOOL
727
 
 
728
 
 
729
 
# AC_LIBTOOL_SETUP
730
 
# ----------------
731
 
AC_DEFUN([AC_LIBTOOL_SETUP],
732
 
[AC_PREREQ(2.50)dnl
733
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
734
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
735
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
736
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
743
_LT_SETUP
 
744
 
 
745
# Only expand once:
 
746
m4_define([LT_INIT])
 
747
])# LT_INIT
 
748
 
 
749
# Old names:
 
750
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
751
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
752
dnl aclocal-1.4 backwards compatibility:
 
753
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
754
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
755
 
 
756
 
 
757
# _LT_CC_BASENAME(CC)
 
758
# -------------------
 
759
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
760
m4_defun([_LT_CC_BASENAME],
 
761
[for cc_temp in $1""; do
 
762
  case $cc_temp in
 
763
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
764
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
765
    \-*) ;;
 
766
    *) break;;
 
767
  esac
 
768
done
 
769
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
770
])
 
771
 
 
772
 
 
773
# _LT_FILEUTILS_DEFAULTS
 
774
# ----------------------
 
775
# It is okay to use these file commands and assume they have been set
 
776
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
777
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
778
[: ${CP="cp -f"}
 
779
: ${MV="mv -f"}
 
780
: ${RM="rm -f"}
 
781
])# _LT_FILEUTILS_DEFAULTS
 
782
 
 
783
 
 
784
# _LT_SETUP
 
785
# ---------
 
786
m4_defun([_LT_SETUP],
 
787
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
737
788
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
789
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
790
_LT_DECL([], [host], [0])dnl
 
791
_LT_DECL([], [host_os], [0])dnl
 
792
dnl
 
793
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
794
_LT_DECL([], [build], [0])dnl
 
795
_LT_DECL([], [build_os], [0])dnl
 
796
dnl
738
797
AC_REQUIRE([AC_PROG_CC])dnl
739
 
AC_REQUIRE([AC_PROG_LD])dnl
740
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
741
 
AC_REQUIRE([AC_PROG_NM])dnl
742
 
 
 
798
AC_REQUIRE([LT_PATH_LD])dnl
 
799
AC_REQUIRE([LT_PATH_NM])dnl
 
800
dnl
743
801
AC_REQUIRE([AC_PROG_LN_S])dnl
744
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
745
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
746
 
AC_REQUIRE([AC_OBJEXT])dnl
747
 
AC_REQUIRE([AC_EXEEXT])dnl
748
 
dnl
749
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
750
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
751
 
AC_LIBTOOL_OBJDIR
752
 
 
753
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
754
 
_LT_AC_PROG_ECHO_BACKSLASH
 
802
test -z "$LN_S" && LN_S="ln -s"
 
803
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
804
dnl
 
805
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
806
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
807
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
808
dnl
 
809
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
810
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
811
m4_require([_LT_CMD_RELOAD])dnl
 
812
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
813
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
814
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
815
 
 
816
_LT_CONFIG_LIBTOOL_INIT([
 
817
# See if we are running on zsh, and set the options which allow our
 
818
# commands through without removal of \ escapes INIT.
 
819
if test -n "\${ZSH_VERSION+set}" ; then
 
820
   setopt NO_GLOB_SUBST
 
821
fi
 
822
])
 
823
if test -n "${ZSH_VERSION+set}" ; then
 
824
   setopt NO_GLOB_SUBST
 
825
fi
 
826
 
 
827
_LT_CHECK_OBJDIR
 
828
 
 
829
m4_require([_LT_TAG_COMPILER])dnl
 
830
_LT_PROG_ECHO_BACKSLASH
755
831
 
756
832
case $host_os in
757
833
aix3*)
767
843
 
768
844
# Sed substitution that helps us do robust quoting.  It backslashifies
769
845
# metacharacters that are still active within double-quoted strings.
770
 
Xsed='sed -e 1s/^X//'
771
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
846
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
772
847
 
773
848
# Same as above, but do not quote variable references.
774
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
849
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
775
850
 
776
851
# Sed substitution to delay expansion of an escaped shell variable in a
777
852
# double_quote_subst'ed string.
778
853
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
779
854
 
 
855
# Sed substitution to delay expansion of an escaped single quote.
 
856
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
857
 
780
858
# Sed substitution to avoid accidental globbing in evaled expressions
781
859
no_glob_subst='s/\*/\\\*/g'
782
860
 
783
 
# Constants:
784
 
rm="rm -f"
785
 
 
786
861
# Global variables:
787
 
default_ofile=libtool
 
862
ofile=libtool
788
863
can_build_shared=yes
789
864
 
790
865
# All known linkers require a `.a' archive for static linking (except MSVC,
791
866
# which needs '.lib').
792
867
libext=a
793
 
ltmain="$ac_aux_dir/ltmain.sh"
794
 
ofile="$default_ofile"
 
868
 
795
869
with_gnu_ld="$lt_cv_prog_gnu_ld"
796
870
 
797
 
AC_CHECK_TOOL(AR, ar, false)
798
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
799
 
AC_CHECK_TOOL(STRIP, strip, :)
800
 
 
801
871
old_CC="$CC"
802
872
old_CFLAGS="$CFLAGS"
803
873
 
804
874
# Set sane defaults for various variables
805
 
test -z "$AR" && AR=ar
806
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
807
 
test -z "$AS" && AS=as
808
875
test -z "$CC" && CC=cc
809
876
test -z "$LTCC" && LTCC=$CC
810
877
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
811
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
812
878
test -z "$LD" && LD=ld
813
 
test -z "$LN_S" && LN_S="ln -s"
814
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
815
 
test -z "$NM" && NM=nm
816
 
test -z "$SED" && SED=sed
817
 
test -z "$OBJDUMP" && OBJDUMP=objdump
818
 
test -z "$RANLIB" && RANLIB=:
819
 
test -z "$STRIP" && STRIP=:
820
879
test -z "$ac_objext" && ac_objext=o
821
880
 
822
 
# Determine commands to create old-style static archives.
823
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
824
 
old_postinstall_cmds='chmod 644 $oldlib'
825
 
old_postuninstall_cmds=
826
 
 
827
 
if test -n "$RANLIB"; then
828
 
  case $host_os in
829
 
  openbsd*)
830
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
831
 
    ;;
832
 
  *)
833
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
834
 
    ;;
835
 
  esac
836
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
837
 
fi
838
 
 
839
881
_LT_CC_BASENAME([$compiler])
840
882
 
841
883
# Only perform the check for file, if the check method requires it
 
884
test -z "$MAGIC_CMD" && MAGIC_CMD=file
842
885
case $deplibs_check_method in
843
886
file_magic*)
844
887
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
845
 
    AC_PATH_MAGIC
 
888
    _LT_PATH_MAGIC
846
889
  fi
847
890
  ;;
848
891
esac
849
892
 
850
 
_LT_REQUIRED_DARWIN_CHECKS
851
 
 
852
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
853
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
854
 
enable_win32_dll=yes, enable_win32_dll=no)
855
 
 
856
 
AC_ARG_ENABLE([libtool-lock],
857
 
    [AC_HELP_STRING([--disable-libtool-lock],
858
 
        [avoid locking (might break parallel builds)])])
859
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
860
 
 
861
 
AC_ARG_WITH([pic],
862
 
    [AC_HELP_STRING([--with-pic],
863
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
864
 
    [pic_mode="$withval"],
865
 
    [pic_mode=default])
866
 
test -z "$pic_mode" && pic_mode=default
867
 
 
868
893
# Use C for the default configuration in the libtool script
869
 
tagname=
870
 
AC_LIBTOOL_LANG_C_CONFIG
871
 
_LT_AC_TAGCONFIG
872
 
])# AC_LIBTOOL_SETUP
873
 
 
874
 
 
875
 
# _LT_AC_SYS_COMPILER
 
894
LT_SUPPORTED_TAG([CC])
 
895
_LT_LANG_C_CONFIG
 
896
_LT_LANG_DEFAULT_CONFIG
 
897
_LT_CONFIG_COMMANDS
 
898
])# _LT_SETUP
 
899
 
 
900
 
 
901
# _LT_PROG_LTMAIN
 
902
# ---------------
 
903
# Note that this code is called both from `configure', and `config.status'
 
904
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
905
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
906
# so we pass a copy along to make sure it has a sensible value anyway.
 
907
m4_defun([_LT_PROG_LTMAIN],
 
908
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
909
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
910
ltmain="$ac_aux_dir/ltmain.sh"
 
911
])# _LT_PROG_LTMAIN
 
912
 
 
913
 
 
914
 
 
915
# So that we can recreate a full libtool script including additional
 
916
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
917
# in macros and then make a single call at the end using the `libtool'
 
918
# label.
 
919
 
 
920
 
 
921
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
922
# ----------------------------------------
 
923
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
924
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
925
[m4_ifval([$1],
 
926
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
927
                     [$1
 
928
])])])
 
929
 
 
930
# Initialize.
 
931
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
932
 
 
933
 
 
934
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
935
# ------------------------------
 
936
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
937
m4_define([_LT_CONFIG_LIBTOOL],
 
938
[m4_ifval([$1],
 
939
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
940
                     [$1
 
941
])])])
 
942
 
 
943
# Initialize.
 
944
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
945
 
 
946
 
 
947
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
948
# -----------------------------------------------------
 
949
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
950
[_LT_CONFIG_LIBTOOL([$1])
 
951
_LT_CONFIG_LIBTOOL_INIT([$2])
 
952
])
 
953
 
 
954
 
 
955
# _LT_FORMAT_COMMENT([COMMENT])
 
956
# -----------------------------
 
957
# Add leading comment marks to the start of each line, and a trailing
 
958
# full-stop to the whole comment if one is not present already.
 
959
m4_define([_LT_FORMAT_COMMENT],
 
960
[m4_ifval([$1], [
 
961
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
962
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
963
)])
 
964
 
 
965
 
 
966
 
 
967
 
 
968
 
 
969
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
970
# -------------------------------------------------------------------
 
971
# CONFIGNAME is the name given to the value in the libtool script.
 
972
# VARNAME is the (base) name used in the configure script.
 
973
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
974
# VARNAME.  Any other value will be used directly.
 
975
m4_define([_LT_DECL],
 
976
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
977
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
978
        [m4_ifval([$1], [$1], [$2])])
 
979
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
980
    m4_ifval([$4],
 
981
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
982
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
983
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
984
])
 
985
 
 
986
 
 
987
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
988
# --------------------------------------------------------
 
989
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
990
 
 
991
 
 
992
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
993
# ------------------------------------------------
 
994
m4_define([lt_decl_tag_varnames],
 
995
[_lt_decl_filter([tagged?], [yes], $@)])
 
996
 
 
997
 
 
998
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
999
# ---------------------------------------------------------
 
1000
m4_define([_lt_decl_filter],
 
1001
[m4_case([$#],
 
1002
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1003
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1004
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1005
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1006
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1007
])
 
1008
 
 
1009
 
 
1010
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1011
# --------------------------------------------------
 
1012
m4_define([lt_decl_quote_varnames],
 
1013
[_lt_decl_filter([value], [1], $@)])
 
1014
 
 
1015
 
 
1016
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1017
# ---------------------------------------------------
 
1018
m4_define([lt_decl_dquote_varnames],
 
1019
[_lt_decl_filter([value], [2], $@)])
 
1020
 
 
1021
 
 
1022
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1023
# ---------------------------------------------------
 
1024
m4_define([lt_decl_varnames_tagged],
 
1025
[m4_assert([$# <= 2])dnl
 
1026
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1027
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1028
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1029
m4_define([_lt_decl_varnames_tagged],
 
1030
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1031
 
 
1032
 
 
1033
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1034
# ------------------------------------------------
 
1035
m4_define([lt_decl_all_varnames],
 
1036
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1037
     m4_if([$2], [],
 
1038
           m4_quote(lt_decl_varnames),
 
1039
        m4_quote(m4_shift($@))))[]dnl
 
1040
])
 
1041
m4_define([_lt_decl_all_varnames],
 
1042
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1043
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1044
])
 
1045
 
 
1046
 
 
1047
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1048
# ------------------------------------
 
1049
# Quote a variable value, and forward it to `config.status' so that its
 
1050
# declaration there will have the same value as in `configure'.  VARNAME
 
1051
# must have a single quote delimited value for this to work.
 
1052
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1053
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1054
 
 
1055
 
 
1056
# _LT_CONFIG_STATUS_DECLARATIONS
 
1057
# ------------------------------
 
1058
# We delimit libtool config variables with single quotes, so when
 
1059
# we write them to config.status, we have to be sure to quote all
 
1060
# embedded single quotes properly.  In configure, this macro expands
 
1061
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1062
#
 
1063
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1064
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1065
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1066
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1067
 
 
1068
 
 
1069
# _LT_LIBTOOL_TAGS
 
1070
# ----------------
 
1071
# Output comment and list of tags supported by the script
 
1072
m4_defun([_LT_LIBTOOL_TAGS],
 
1073
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1074
available_tags="_LT_TAGS"dnl
 
1075
])
 
1076
 
 
1077
 
 
1078
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1079
# -----------------------------------
 
1080
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1081
# expand to a commented shell variable setting:
 
1082
#
 
1083
#    # Some comment about what VAR is for.
 
1084
#    visible_name=$lt_internal_name
 
1085
m4_define([_LT_LIBTOOL_DECLARE],
 
1086
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1087
                                           [description])))[]dnl
 
1088
m4_pushdef([_libtool_name],
 
1089
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1090
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1091
    [0], [_libtool_name=[$]$1],
 
1092
    [1], [_libtool_name=$lt_[]$1],
 
1093
    [2], [_libtool_name=$lt_[]$1],
 
1094
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1095
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1096
])
 
1097
 
 
1098
 
 
1099
# _LT_LIBTOOL_CONFIG_VARS
 
1100
# -----------------------
 
1101
# Produce commented declarations of non-tagged libtool config variables
 
1102
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1103
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1104
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1105
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1106
[m4_foreach([_lt_var],
 
1107
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1108
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1109
 
 
1110
 
 
1111
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1112
# -------------------------
 
1113
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1114
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1115
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1116
 
 
1117
 
 
1118
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1119
# ------------------------------
 
1120
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1121
 
 
1122
 
 
1123
# _LT_CONFIG_COMMANDS
876
1124
# -------------------
877
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1125
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1126
# variables for single and double quote escaping we saved from calls
 
1127
# to _LT_DECL, we can put quote escaped variables declarations
 
1128
# into `config.status', and then the shell code to quote escape them in
 
1129
# for loops in `config.status'.  Finally, any additional code accumulated
 
1130
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1131
m4_defun([_LT_CONFIG_COMMANDS],
 
1132
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1133
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1134
        dnl instead of duplicating it all over again into config.status,
 
1135
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1136
        dnl needs to know what name is stored there:
 
1137
        [AC_CONFIG_COMMANDS([libtool],
 
1138
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1139
    dnl If the libtool generation code is destined for config.status,
 
1140
    dnl expand the accumulated commands and init code now:
 
1141
    [AC_CONFIG_COMMANDS([libtool],
 
1142
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1143
])#_LT_CONFIG_COMMANDS
 
1144
 
 
1145
 
 
1146
# Initialize.
 
1147
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1148
[
 
1149
 
 
1150
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1151
# if CDPATH is set.
 
1152
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1153
 
 
1154
sed_quote_subst='$sed_quote_subst'
 
1155
double_quote_subst='$double_quote_subst'
 
1156
delay_variable_subst='$delay_variable_subst'
 
1157
_LT_CONFIG_STATUS_DECLARATIONS
 
1158
LTCC='$LTCC'
 
1159
LTCFLAGS='$LTCFLAGS'
 
1160
compiler='$compiler_DEFAULT'
 
1161
 
 
1162
# Quote evaled strings.
 
1163
for var in lt_decl_all_varnames([[ \
 
1164
]], lt_decl_quote_varnames); do
 
1165
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1166
    *[[\\\\\\\`\\"\\\$]]*)
 
1167
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1168
      ;;
 
1169
    *)
 
1170
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1171
      ;;
 
1172
    esac
 
1173
done
 
1174
 
 
1175
# Double-quote double-evaled strings.
 
1176
for var in lt_decl_all_varnames([[ \
 
1177
]], lt_decl_dquote_varnames); do
 
1178
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1179
    *[[\\\\\\\`\\"\\\$]]*)
 
1180
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1181
      ;;
 
1182
    *)
 
1183
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1184
      ;;
 
1185
    esac
 
1186
done
 
1187
 
 
1188
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1189
case \$lt_ECHO in
 
1190
*'\\\[$]0 --fallback-echo"')dnl "
 
1191
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1192
  ;;
 
1193
esac
 
1194
 
 
1195
_LT_OUTPUT_LIBTOOL_INIT
 
1196
])
 
1197
 
 
1198
 
 
1199
# LT_OUTPUT
 
1200
# ---------
 
1201
# This macro allows early generation of the libtool script (before
 
1202
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1203
# tests.
 
1204
AC_DEFUN([LT_OUTPUT],
 
1205
[: ${CONFIG_LT=./config.lt}
 
1206
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1207
cat >"$CONFIG_LT" <<_LTEOF
 
1208
#! $SHELL
 
1209
# Generated by $as_me.
 
1210
# Run this file to recreate a libtool stub with the current configuration.
 
1211
 
 
1212
lt_cl_silent=false
 
1213
SHELL=\${CONFIG_SHELL-$SHELL}
 
1214
_LTEOF
 
1215
 
 
1216
cat >>"$CONFIG_LT" <<\_LTEOF
 
1217
AS_SHELL_SANITIZE
 
1218
_AS_PREPARE
 
1219
 
 
1220
exec AS_MESSAGE_FD>&1
 
1221
exec AS_MESSAGE_LOG_FD>>config.log
 
1222
{
 
1223
  echo
 
1224
  AS_BOX([Running $as_me.])
 
1225
} >&AS_MESSAGE_LOG_FD
 
1226
 
 
1227
lt_cl_help="\
 
1228
\`$as_me' creates a local libtool stub from the current configuration,
 
1229
for use in further configure time tests before the real libtool is
 
1230
generated.
 
1231
 
 
1232
Usage: $[0] [[OPTIONS]]
 
1233
 
 
1234
  -h, --help      print this help, then exit
 
1235
  -V, --version   print version number, then exit
 
1236
  -q, --quiet     do not print progress messages
 
1237
  -d, --debug     don't remove temporary files
 
1238
 
 
1239
Report bugs to <bug-libtool@gnu.org>."
 
1240
 
 
1241
lt_cl_version="\
 
1242
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1243
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1244
configured by $[0], generated by m4_PACKAGE_STRING.
 
1245
 
 
1246
Copyright (C) 2008 Free Software Foundation, Inc.
 
1247
This config.lt script is free software; the Free Software Foundation
 
1248
gives unlimited permision to copy, distribute and modify it."
 
1249
 
 
1250
while test $[#] != 0
 
1251
do
 
1252
  case $[1] in
 
1253
    --version | --v* | -V )
 
1254
      echo "$lt_cl_version"; exit 0 ;;
 
1255
    --help | --h* | -h )
 
1256
      echo "$lt_cl_help"; exit 0 ;;
 
1257
    --debug | --d* | -d )
 
1258
      debug=: ;;
 
1259
    --quiet | --q* | --silent | --s* | -q )
 
1260
      lt_cl_silent=: ;;
 
1261
 
 
1262
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1263
Try \`$[0] --help' for more information.]) ;;
 
1264
 
 
1265
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1266
Try \`$[0] --help' for more information.]) ;;
 
1267
  esac
 
1268
  shift
 
1269
done
 
1270
 
 
1271
if $lt_cl_silent; then
 
1272
  exec AS_MESSAGE_FD>/dev/null
 
1273
fi
 
1274
_LTEOF
 
1275
 
 
1276
cat >>"$CONFIG_LT" <<_LTEOF
 
1277
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1278
_LTEOF
 
1279
 
 
1280
cat >>"$CONFIG_LT" <<\_LTEOF
 
1281
AC_MSG_NOTICE([creating $ofile])
 
1282
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1283
AS_EXIT(0)
 
1284
_LTEOF
 
1285
chmod +x "$CONFIG_LT"
 
1286
 
 
1287
# configure is writing to config.log, but config.lt does its own redirection,
 
1288
# appending to config.log, which fails on DOS, as config.log is still kept
 
1289
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1290
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1291
if test "$no_create" != yes; then
 
1292
  lt_cl_success=:
 
1293
  test "$silent" = yes &&
 
1294
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1295
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1296
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1297
  exec AS_MESSAGE_LOG_FD>>config.log
 
1298
  $lt_cl_success || AS_EXIT(1)
 
1299
fi
 
1300
])# LT_OUTPUT
 
1301
 
 
1302
 
 
1303
# _LT_CONFIG(TAG)
 
1304
# ---------------
 
1305
# If TAG is the built-in tag, create an initial libtool script with a
 
1306
# default configuration from the untagged config vars.  Otherwise add code
 
1307
# to config.status for appending the configuration named by TAG from the
 
1308
# matching tagged config vars.
 
1309
m4_defun([_LT_CONFIG],
 
1310
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1311
_LT_CONFIG_SAVE_COMMANDS([
 
1312
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1313
  m4_if(_LT_TAG, [C], [
 
1314
    # See if we are running on zsh, and set the options which allow our
 
1315
    # commands through without removal of \ escapes.
 
1316
    if test -n "${ZSH_VERSION+set}" ; then
 
1317
      setopt NO_GLOB_SUBST
 
1318
    fi
 
1319
 
 
1320
    cfgfile="${ofile}T"
 
1321
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1322
    $RM "$cfgfile"
 
1323
 
 
1324
    cat <<_LT_EOF >> "$cfgfile"
 
1325
#! $SHELL
 
1326
 
 
1327
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1328
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1329
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1330
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1331
#
 
1332
_LT_COPYING
 
1333
_LT_LIBTOOL_TAGS
 
1334
 
 
1335
# ### BEGIN LIBTOOL CONFIG
 
1336
_LT_LIBTOOL_CONFIG_VARS
 
1337
_LT_LIBTOOL_TAG_VARS
 
1338
# ### END LIBTOOL CONFIG
 
1339
 
 
1340
_LT_EOF
 
1341
 
 
1342
  case $host_os in
 
1343
  aix3*)
 
1344
    cat <<\_LT_EOF >> "$cfgfile"
 
1345
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1346
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1347
# vanish in a puff of smoke.
 
1348
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1349
  COLLECT_NAMES=
 
1350
  export COLLECT_NAMES
 
1351
fi
 
1352
_LT_EOF
 
1353
    ;;
 
1354
  esac
 
1355
 
 
1356
  _LT_PROG_LTMAIN
 
1357
 
 
1358
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1359
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1360
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1361
  # is reportedly fixed, but why not run on old versions too?
 
1362
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1363
    || (rm -f "$cfgfile"; exit 1)
 
1364
 
 
1365
  _LT_PROG_XSI_SHELLFNS
 
1366
 
 
1367
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1368
    || (rm -f "$cfgfile"; exit 1)
 
1369
 
 
1370
  mv -f "$cfgfile" "$ofile" ||
 
1371
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1372
  chmod +x "$ofile"
 
1373
],
 
1374
[cat <<_LT_EOF >> "$ofile"
 
1375
 
 
1376
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1377
dnl in a comment (ie after a #).
 
1378
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1379
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1380
# ### END LIBTOOL TAG CONFIG: $1
 
1381
_LT_EOF
 
1382
])dnl /m4_if
 
1383
],
 
1384
[m4_if([$1], [], [
 
1385
    PACKAGE='$PACKAGE'
 
1386
    VERSION='$VERSION'
 
1387
    TIMESTAMP='$TIMESTAMP'
 
1388
    RM='$RM'
 
1389
    ofile='$ofile'], [])
 
1390
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1391
])# _LT_CONFIG
 
1392
 
 
1393
 
 
1394
# LT_SUPPORTED_TAG(TAG)
 
1395
# ---------------------
 
1396
# Trace this macro to discover what tags are supported by the libtool
 
1397
# --tag option, using:
 
1398
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1399
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1400
 
 
1401
 
 
1402
# C support is built-in for now
 
1403
m4_define([_LT_LANG_C_enabled], [])
 
1404
m4_define([_LT_TAGS], [])
 
1405
 
 
1406
 
 
1407
# LT_LANG(LANG)
 
1408
# -------------
 
1409
# Enable libtool support for the given language if not already enabled.
 
1410
AC_DEFUN([LT_LANG],
 
1411
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1412
m4_case([$1],
 
1413
  [C],                  [_LT_LANG(C)],
 
1414
  [C++],                [_LT_LANG(CXX)],
 
1415
  [Java],               [_LT_LANG(GCJ)],
 
1416
  [Fortran 77],         [_LT_LANG(F77)],
 
1417
  [Fortran],            [_LT_LANG(FC)],
 
1418
  [Windows Resource],   [_LT_LANG(RC)],
 
1419
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1420
    [_LT_LANG($1)],
 
1421
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1422
])# LT_LANG
 
1423
 
 
1424
 
 
1425
# _LT_LANG(LANGNAME)
 
1426
# ------------------
 
1427
m4_defun([_LT_LANG],
 
1428
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1429
  [LT_SUPPORTED_TAG([$1])dnl
 
1430
  m4_append([_LT_TAGS], [$1 ])dnl
 
1431
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1432
  _LT_LANG_$1_CONFIG($1)])dnl
 
1433
])# _LT_LANG
 
1434
 
 
1435
 
 
1436
# _LT_LANG_DEFAULT_CONFIG
 
1437
# -----------------------
 
1438
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1439
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1440
  [LT_LANG(CXX)],
 
1441
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1442
 
 
1443
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1444
  [LT_LANG(F77)],
 
1445
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1446
 
 
1447
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1448
  [LT_LANG(FC)],
 
1449
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1450
 
 
1451
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1452
dnl pulling things in needlessly.
 
1453
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1454
  [LT_LANG(GCJ)],
 
1455
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1456
    [LT_LANG(GCJ)],
 
1457
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1458
      [LT_LANG(GCJ)],
 
1459
      [m4_ifdef([AC_PROG_GCJ],
 
1460
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1461
       m4_ifdef([A][M_PROG_GCJ],
 
1462
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1463
       m4_ifdef([LT_PROG_GCJ],
 
1464
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1465
 
 
1466
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1467
  [LT_LANG(RC)],
 
1468
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1469
])# _LT_LANG_DEFAULT_CONFIG
 
1470
 
 
1471
# Obsolete macros:
 
1472
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1473
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1474
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1475
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1476
dnl aclocal-1.4 backwards compatibility:
 
1477
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1478
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1479
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1480
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1481
 
 
1482
 
 
1483
# _LT_TAG_COMPILER
 
1484
# ----------------
 
1485
m4_defun([_LT_TAG_COMPILER],
878
1486
[AC_REQUIRE([AC_PROG_CC])dnl
879
1487
 
 
1488
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1489
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1490
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1491
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1492
 
880
1493
# If no C compiler was specified, use CC.
881
1494
LTCC=${LTCC-"$CC"}
882
1495
 
885
1498
 
886
1499
# Allow CC to be a program name with arguments.
887
1500
compiler=$CC
888
 
])# _LT_AC_SYS_COMPILER
889
 
 
890
 
 
891
 
# _LT_CC_BASENAME(CC)
892
 
# -------------------
893
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
894
 
AC_DEFUN([_LT_CC_BASENAME],
895
 
[for cc_temp in $1""; do
896
 
  case $cc_temp in
897
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
898
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
899
 
    \-*) ;;
900
 
    *) break;;
901
 
  esac
902
 
done
903
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
904
 
])
 
1501
])# _LT_TAG_COMPILER
905
1502
 
906
1503
 
907
1504
# _LT_COMPILER_BOILERPLATE
908
1505
# ------------------------
909
1506
# Check for compiler boilerplate output or warnings with
910
1507
# the simple compiler test code.
911
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
912
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1508
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1509
[m4_require([_LT_DECL_SED])dnl
913
1510
ac_outfile=conftest.$ac_objext
914
1511
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
915
1512
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
916
1513
_lt_compiler_boilerplate=`cat conftest.err`
917
 
$rm conftest*
 
1514
$RM conftest*
918
1515
])# _LT_COMPILER_BOILERPLATE
919
1516
 
920
1517
 
922
1519
# ----------------------
923
1520
# Check for linker boilerplate output or warnings with
924
1521
# the simple link test code.
925
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
926
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1522
m4_defun([_LT_LINKER_BOILERPLATE],
 
1523
[m4_require([_LT_DECL_SED])dnl
927
1524
ac_outfile=conftest.$ac_objext
928
1525
echo "$lt_simple_link_test_code" >conftest.$ac_ext
929
1526
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
930
1527
_lt_linker_boilerplate=`cat conftest.err`
931
 
$rm -r conftest*
 
1528
$RM -r conftest*
932
1529
])# _LT_LINKER_BOILERPLATE
933
1530
 
934
1531
# _LT_REQUIRED_DARWIN_CHECKS
935
 
# --------------------------
936
 
# Check for some things on darwin
937
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1532
# -------------------------
 
1533
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
938
1534
  case $host_os in
939
1535
    rhapsody* | darwin*)
940
1536
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
941
1537
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1538
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1539
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1540
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1541
    _LT_DECL([], [DSYMUTIL], [1],
 
1542
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1543
    _LT_DECL([], [NMEDIT], [1],
 
1544
      [Tool to change global to local symbols on Mac OS X])
 
1545
    _LT_DECL([], [LIPO], [1],
 
1546
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1547
    _LT_DECL([], [OTOOL], [1],
 
1548
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1549
    _LT_DECL([], [OTOOL64], [1],
 
1550
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
942
1551
 
943
1552
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
944
1553
      [lt_cv_apple_cc_single_mod=no
945
1554
      if test -z "${LT_MULTI_MODULE}"; then
946
 
   # By default we will add the -single_module flag. You can override
947
 
   # by either setting the environment variable LT_MULTI_MODULE
948
 
   # non-empty at configure time, or by adding -multi_module to the
949
 
   # link flags.
950
 
   echo "int foo(void){return 1;}" > conftest.c
951
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
952
 
     -dynamiclib ${wl}-single_module conftest.c
953
 
   if test -f libconftest.dylib; then
954
 
     lt_cv_apple_cc_single_mod=yes
955
 
     rm -rf libconftest.dylib*
956
 
   fi
957
 
   rm conftest.c
 
1555
        # By default we will add the -single_module flag. You can override
 
1556
        # by either setting the environment variable LT_MULTI_MODULE
 
1557
        # non-empty at configure time, or by adding -multi_module to the
 
1558
        # link flags.
 
1559
        rm -rf libconftest.dylib*
 
1560
        echo "int foo(void){return 1;}" > conftest.c
 
1561
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1562
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1563
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1564
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1565
        _lt_result=$?
 
1566
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1567
          lt_cv_apple_cc_single_mod=yes
 
1568
        else
 
1569
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1570
        fi
 
1571
        rm -rf libconftest.dylib*
 
1572
        rm -f conftest.*
958
1573
      fi])
959
1574
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
960
1575
      [lt_cv_ld_exported_symbols_list],
963
1578
      echo "_main" > conftest.sym
964
1579
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
965
1580
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
966
 
   [lt_cv_ld_exported_symbols_list=yes],
967
 
   [lt_cv_ld_exported_symbols_list=no])
968
 
   LDFLAGS="$save_LDFLAGS"
 
1581
        [lt_cv_ld_exported_symbols_list=yes],
 
1582
        [lt_cv_ld_exported_symbols_list=no])
 
1583
        LDFLAGS="$save_LDFLAGS"
969
1584
    ])
970
1585
    case $host_os in
971
 
    rhapsody* | darwin1.[[0123]])
 
1586
    rhapsody* | darwin1.[[012]])
972
1587
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
973
1588
    darwin1.*)
974
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
975
 
    darwin*)
 
1589
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1590
    darwin*) # darwin 5.x on
976
1591
      # if running on 10.5 or later, the deployment target defaults
977
1592
      # to the OS version, if on x86, and 10.4, the deployment
978
1593
      # target defaults to 10.4. Don't you love it?
979
1594
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
980
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
981
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
982
 
   10.[[012]]*)
983
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
984
 
   10.*)
985
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1595
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1596
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1597
        10.[[012]]*)
 
1598
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1599
        10.*)
 
1600
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
986
1601
      esac
987
1602
    ;;
988
1603
  esac
992
1607
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
993
1608
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
994
1609
    else
995
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1610
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
996
1611
    fi
997
1612
    if test "$DSYMUTIL" != ":"; then
998
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1613
      _lt_dsymutil='~$DSYMUTIL $lib || :'
999
1614
    else
1000
1615
      _lt_dsymutil=
1001
1616
    fi
1003
1618
  esac
1004
1619
])
1005
1620
 
1006
 
# _LT_AC_SYS_LIBPATH_AIX
1007
 
# ----------------------
 
1621
 
 
1622
# _LT_DARWIN_LINKER_FEATURES
 
1623
# --------------------------
 
1624
# Checks for linker and compiler features on darwin
 
1625
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1626
[
 
1627
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1628
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1629
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1630
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1631
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1632
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1633
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1634
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1635
  case $cc_basename in
 
1636
     ifort*) _lt_dar_can_shared=yes ;;
 
1637
     *) _lt_dar_can_shared=$GCC ;;
 
1638
  esac
 
1639
  if test "$_lt_dar_can_shared" = "yes"; then
 
1640
    output_verbose_link_cmd=echo
 
1641
    _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}"
 
1642
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1643
    _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}"
 
1644
    _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}"
 
1645
    m4_if([$1], [CXX],
 
1646
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1647
      _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}"
 
1648
      _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}"
 
1649
    fi
 
1650
],[])
 
1651
  else
 
1652
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1653
  fi
 
1654
])
 
1655
 
 
1656
# _LT_SYS_MODULE_PATH_AIX
 
1657
# -----------------------
1008
1658
# Links a minimal program and checks the executable
1009
1659
# for the system default hardcoded library path. In most cases,
1010
1660
# this is /usr/lib:/lib, but when the MPI compilers are used
1011
1661
# the location of the communication and MPI libs are included too.
1012
1662
# If we don't find anything, use the default library path according
1013
1663
# to the aix ld manual.
1014
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1015
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1664
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1665
[m4_require([_LT_DECL_SED])dnl
1016
1666
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1017
1667
lt_aix_libpath_sed='
1018
1668
    /Import File Strings/,/^$/ {
1027
1677
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1028
1678
fi],[])
1029
1679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1030
 
])# _LT_AC_SYS_LIBPATH_AIX
1031
 
 
1032
 
 
1033
 
# _LT_AC_SHELL_INIT(ARG)
1034
 
# ----------------------
1035
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1680
])# _LT_SYS_MODULE_PATH_AIX
 
1681
 
 
1682
 
 
1683
# _LT_SHELL_INIT(ARG)
 
1684
# -------------------
 
1685
m4_define([_LT_SHELL_INIT],
1036
1686
[ifdef([AC_DIVERSION_NOTICE],
1037
1687
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1038
1688
         [AC_DIVERT_PUSH(NOTICE)])
1039
1689
$1
1040
1690
AC_DIVERT_POP
1041
 
])# _LT_AC_SHELL_INIT
1042
 
 
1043
 
 
1044
 
# _LT_AC_PROG_ECHO_BACKSLASH
1045
 
# --------------------------
 
1691
])# _LT_SHELL_INIT
 
1692
 
 
1693
 
 
1694
# _LT_PROG_ECHO_BACKSLASH
 
1695
# -----------------------
1046
1696
# Add some code to the start of the generated configure script which
1047
1697
# will find an echo command which doesn't interpret backslashes.
1048
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1049
 
[_LT_AC_SHELL_INIT([
 
1698
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1699
[_LT_SHELL_INIT([
1050
1700
# Check that we are running under the correct shell.
1051
1701
SHELL=${CONFIG_SHELL-/bin/sh}
1052
1702
 
1053
 
case X$ECHO in
 
1703
case X$lt_ECHO in
1054
1704
X*--fallback-echo)
1055
1705
  # Remove one level of quotation (which was required for Make).
1056
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1706
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1057
1707
  ;;
1058
1708
esac
1059
1709
 
1060
 
echo=${ECHO-echo}
 
1710
ECHO=${lt_ECHO-echo}
1061
1711
if test "X[$]1" = X--no-reexec; then
1062
1712
  # Discard the --no-reexec flag, and continue.
1063
1713
  shift
1064
1714
elif test "X[$]1" = X--fallback-echo; then
1065
1715
  # Avoid inline document here, it may be left over
1066
1716
  :
1067
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1068
 
  # Yippee, $echo works!
 
1717
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1718
  # Yippee, $ECHO works!
1069
1719
  :
1070
1720
else
1071
1721
  # Restart under the correct shell.
1075
1725
if test "X[$]1" = X--fallback-echo; then
1076
1726
  # used as fallback echo
1077
1727
  shift
1078
 
  cat <<EOF
 
1728
  cat <<_LT_EOF
1079
1729
[$]*
1080
 
EOF
 
1730
_LT_EOF
1081
1731
  exit 0
1082
1732
fi
1083
1733
 
1085
1735
# if CDPATH is set.
1086
1736
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1087
1737
 
1088
 
if test -z "$ECHO"; then
1089
 
if test "X${echo_test_string+set}" != Xset; then
1090
 
# find a string as large as possible, as long as the shell can cope with it
1091
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1092
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1093
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1094
 
       echo_test_string=`eval $cmd` &&
1095
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1096
 
    then
1097
 
      break
1098
 
    fi
1099
 
  done
1100
 
fi
1101
 
 
1102
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1103
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1104
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1105
 
  :
1106
 
else
1107
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1108
 
  # backslashes.  This makes it impossible to quote backslashes using
1109
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1110
 
  #
1111
 
  # So, first we look for a working echo in the user's PATH.
1112
 
 
1113
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1114
 
  for dir in $PATH /usr/ucb; do
 
1738
if test -z "$lt_ECHO"; then
 
1739
  if test "X${echo_test_string+set}" != Xset; then
 
1740
    # find a string as large as possible, as long as the shell can cope with it
 
1741
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1742
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1743
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1744
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1745
      then
 
1746
        break
 
1747
      fi
 
1748
    done
 
1749
  fi
 
1750
 
 
1751
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1752
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1753
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1754
    :
 
1755
  else
 
1756
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1757
    # backslashes.  This makes it impossible to quote backslashes using
 
1758
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1759
    #
 
1760
    # So, first we look for a working echo in the user's PATH.
 
1761
 
 
1762
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1763
    for dir in $PATH /usr/ucb; do
 
1764
      IFS="$lt_save_ifs"
 
1765
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1766
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1767
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1768
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1769
        ECHO="$dir/echo"
 
1770
        break
 
1771
      fi
 
1772
    done
1115
1773
    IFS="$lt_save_ifs"
1116
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1117
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1118
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1119
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1120
 
      echo="$dir/echo"
1121
 
      break
1122
 
    fi
1123
 
  done
1124
 
  IFS="$lt_save_ifs"
1125
1774
 
1126
 
  if test "X$echo" = Xecho; then
1127
 
    # We didn't find a better echo, so look for alternatives.
1128
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1129
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1130
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1131
 
      # This shell has a builtin print -r that does the trick.
1132
 
      echo='print -r'
1133
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1134
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1135
 
      # If we have ksh, try running configure again with it.
1136
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1137
 
      export ORIGINAL_CONFIG_SHELL
1138
 
      CONFIG_SHELL=/bin/ksh
1139
 
      export CONFIG_SHELL
1140
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1141
 
    else
1142
 
      # Try using printf.
1143
 
      echo='printf %s\n'
1144
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1145
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1146
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1147
 
        # Cool, printf works
1148
 
        :
1149
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1150
 
           test "X$echo_testing_string" = 'X\t' &&
1151
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1152
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1153
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1154
 
        export CONFIG_SHELL
1155
 
        SHELL="$CONFIG_SHELL"
1156
 
        export SHELL
1157
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1158
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1159
 
           test "X$echo_testing_string" = 'X\t' &&
1160
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1161
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1162
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1775
    if test "X$ECHO" = Xecho; then
 
1776
      # We didn't find a better echo, so look for alternatives.
 
1777
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
1778
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
1779
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1780
        # This shell has a builtin print -r that does the trick.
 
1781
        ECHO='print -r'
 
1782
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
1783
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1784
        # If we have ksh, try running configure again with it.
 
1785
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1786
        export ORIGINAL_CONFIG_SHELL
 
1787
        CONFIG_SHELL=/bin/ksh
 
1788
        export CONFIG_SHELL
 
1789
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1163
1790
      else
1164
 
        # maybe with a smaller string...
1165
 
        prev=:
1166
 
 
1167
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1168
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1169
 
          then
1170
 
            break
 
1791
        # Try using printf.
 
1792
        ECHO='printf %s\n'
 
1793
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1794
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1795
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1796
          # Cool, printf works
 
1797
          :
 
1798
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1799
             test "X$echo_testing_string" = 'X\t' &&
 
1800
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1801
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1802
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1803
          export CONFIG_SHELL
 
1804
          SHELL="$CONFIG_SHELL"
 
1805
          export SHELL
 
1806
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1807
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1808
             test "X$echo_testing_string" = 'X\t' &&
 
1809
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1810
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1811
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1812
        else
 
1813
          # maybe with a smaller string...
 
1814
          prev=:
 
1815
 
 
1816
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1817
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
1818
            then
 
1819
              break
 
1820
            fi
 
1821
            prev="$cmd"
 
1822
          done
 
1823
 
 
1824
          if test "$prev" != 'sed 50q "[$]0"'; then
 
1825
            echo_test_string=`eval $prev`
 
1826
            export echo_test_string
 
1827
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1828
          else
 
1829
            # Oops.  We lost completely, so just stick with echo.
 
1830
            ECHO=echo
1171
1831
          fi
1172
 
          prev="$cmd"
1173
 
        done
1174
 
 
1175
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1176
 
          echo_test_string=`eval $prev`
1177
 
          export echo_test_string
1178
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1179
 
        else
1180
 
          # Oops.  We lost completely, so just stick with echo.
1181
 
          echo=echo
1182
 
        fi
 
1832
        fi
1183
1833
      fi
1184
1834
    fi
1185
1835
  fi
1186
1836
fi
1187
 
fi
1188
1837
 
1189
1838
# Copy echo and quote the copy suitably for passing to libtool from
1190
1839
# the Makefile, instead of quoting the original, which is used later.
1191
 
ECHO=$echo
1192
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1193
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1840
lt_ECHO=$ECHO
 
1841
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1842
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1194
1843
fi
1195
1844
 
1196
 
AC_SUBST(ECHO)
1197
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1198
 
 
1199
 
 
1200
 
# _LT_AC_LOCK
1201
 
# -----------
1202
 
AC_DEFUN([_LT_AC_LOCK],
 
1845
AC_SUBST(lt_ECHO)
 
1846
])
 
1847
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
1848
_LT_DECL([], [ECHO], [1],
 
1849
    [An echo program that does not interpret backslashes])
 
1850
])# _LT_PROG_ECHO_BACKSLASH
 
1851
 
 
1852
 
 
1853
# _LT_ENABLE_LOCK
 
1854
# ---------------
 
1855
m4_defun([_LT_ENABLE_LOCK],
1203
1856
[AC_ARG_ENABLE([libtool-lock],
1204
 
    [AC_HELP_STRING([--disable-libtool-lock],
1205
 
        [avoid locking (might break parallel builds)])])
 
1857
  [AS_HELP_STRING([--disable-libtool-lock],
 
1858
    [avoid locking (might break parallel builds)])])
1206
1859
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1207
1860
 
1208
1861
# Some flags need to be propagated to the compiler or linker for good
1213
1866
  echo 'int i;' > conftest.$ac_ext
1214
1867
  if AC_TRY_EVAL(ac_compile); then
1215
1868
    case `/usr/bin/file conftest.$ac_objext` in
1216
 
    *ELF-32*)
1217
 
      HPUX_IA64_MODE="32"
1218
 
      ;;
1219
 
    *ELF-64*)
1220
 
      HPUX_IA64_MODE="64"
1221
 
      ;;
 
1869
      *ELF-32*)
 
1870
        HPUX_IA64_MODE="32"
 
1871
        ;;
 
1872
      *ELF-64*)
 
1873
        HPUX_IA64_MODE="64"
 
1874
        ;;
1222
1875
    esac
1223
1876
  fi
1224
1877
  rm -rf conftest*
1227
1880
  # Find out which ABI we are using.
1228
1881
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1229
1882
  if AC_TRY_EVAL(ac_compile); then
1230
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1231
 
    case `/usr/bin/file conftest.$ac_objext` in
1232
 
    *32-bit*)
1233
 
      LD="${LD-ld} -melf32bsmip"
1234
 
      ;;
1235
 
    *N32*)
1236
 
      LD="${LD-ld} -melf32bmipn32"
1237
 
      ;;
1238
 
    *64-bit*)
1239
 
      LD="${LD-ld} -melf64bmip"
1240
 
      ;;
1241
 
    esac
1242
 
   else
1243
 
    case `/usr/bin/file conftest.$ac_objext` in
1244
 
    *32-bit*)
1245
 
      LD="${LD-ld} -32"
1246
 
      ;;
1247
 
    *N32*)
1248
 
      LD="${LD-ld} -n32"
1249
 
      ;;
1250
 
    *64-bit*)
1251
 
      LD="${LD-ld} -64"
1252
 
      ;;
1253
 
    esac
1254
 
   fi
 
1883
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1884
      case `/usr/bin/file conftest.$ac_objext` in
 
1885
        *32-bit*)
 
1886
          LD="${LD-ld} -melf32bsmip"
 
1887
          ;;
 
1888
        *N32*)
 
1889
          LD="${LD-ld} -melf32bmipn32"
 
1890
          ;;
 
1891
        *64-bit*)
 
1892
          LD="${LD-ld} -melf64bmip"
 
1893
        ;;
 
1894
      esac
 
1895
    else
 
1896
      case `/usr/bin/file conftest.$ac_objext` in
 
1897
        *32-bit*)
 
1898
          LD="${LD-ld} -32"
 
1899
          ;;
 
1900
        *N32*)
 
1901
          LD="${LD-ld} -n32"
 
1902
          ;;
 
1903
        *64-bit*)
 
1904
          LD="${LD-ld} -64"
 
1905
          ;;
 
1906
      esac
 
1907
    fi
1255
1908
  fi
1256
1909
  rm -rf conftest*
1257
1910
  ;;
1258
1911
 
1259
1912
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1260
 
s390*-*linux*|sparc*-*linux*)
 
1913
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1261
1914
  # Find out which ABI we are using.
1262
1915
  echo 'int i;' > conftest.$ac_ext
1263
1916
  if AC_TRY_EVAL(ac_compile); then
1264
1917
    case `/usr/bin/file conftest.o` in
1265
 
    *32-bit*)
1266
 
      case $host in
1267
 
        x86_64-*kfreebsd*-gnu)
1268
 
          LD="${LD-ld} -m elf_i386_fbsd"
1269
 
          ;;
1270
 
        x86_64-*linux*)
1271
 
          LD="${LD-ld} -m elf_i386"
1272
 
          ;;
1273
 
        ppc64-*linux*|powerpc64-*linux*)
1274
 
          LD="${LD-ld} -m elf32ppclinux"
1275
 
          ;;
1276
 
        s390x-*linux*)
1277
 
          LD="${LD-ld} -m elf_s390"
1278
 
          ;;
1279
 
        sparc64-*linux*)
1280
 
          LD="${LD-ld} -m elf32_sparc"
1281
 
          ;;
1282
 
      esac
1283
 
      ;;
1284
 
    *64-bit*)
1285
 
      case $host in
1286
 
        x86_64-*kfreebsd*-gnu)
1287
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1288
 
          ;;
1289
 
        x86_64-*linux*)
1290
 
          LD="${LD-ld} -m elf_x86_64"
1291
 
          ;;
1292
 
        ppc*-*linux*|powerpc*-*linux*)
1293
 
          LD="${LD-ld} -m elf64ppc"
1294
 
          ;;
1295
 
        s390*-*linux*)
1296
 
          LD="${LD-ld} -m elf64_s390"
1297
 
          ;;
1298
 
        sparc*-*linux*)
1299
 
          LD="${LD-ld} -m elf64_sparc"
1300
 
          ;;
1301
 
      esac
1302
 
      ;;
 
1918
      *32-bit*)
 
1919
        case $host in
 
1920
          x86_64-*kfreebsd*-gnu)
 
1921
            LD="${LD-ld} -m elf_i386_fbsd"
 
1922
            ;;
 
1923
          x86_64-*linux*)
 
1924
            LD="${LD-ld} -m elf_i386"
 
1925
            ;;
 
1926
          ppc64-*linux*|powerpc64-*linux*)
 
1927
            LD="${LD-ld} -m elf32ppclinux"
 
1928
            ;;
 
1929
          s390x-*linux*)
 
1930
            LD="${LD-ld} -m elf_s390"
 
1931
            ;;
 
1932
          sparc64-*linux*)
 
1933
            LD="${LD-ld} -m elf32_sparc"
 
1934
            ;;
 
1935
        esac
 
1936
        ;;
 
1937
      *64-bit*)
 
1938
        case $host in
 
1939
          x86_64-*kfreebsd*-gnu)
 
1940
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
1941
            ;;
 
1942
          x86_64-*linux*)
 
1943
            LD="${LD-ld} -m elf_x86_64"
 
1944
            ;;
 
1945
          ppc*-*linux*|powerpc*-*linux*)
 
1946
            LD="${LD-ld} -m elf64ppc"
 
1947
            ;;
 
1948
          s390*-*linux*|s390*-*tpf*)
 
1949
            LD="${LD-ld} -m elf64_s390"
 
1950
            ;;
 
1951
          sparc*-*linux*)
 
1952
            LD="${LD-ld} -m elf64_sparc"
 
1953
            ;;
 
1954
        esac
 
1955
        ;;
1303
1956
    esac
1304
1957
  fi
1305
1958
  rm -rf conftest*
1311
1964
  CFLAGS="$CFLAGS -belf"
1312
1965
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1313
1966
    [AC_LANG_PUSH(C)
1314
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1967
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1315
1968
     AC_LANG_POP])
1316
1969
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1317
1970
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1327
1980
      case $lt_cv_prog_gnu_ld in
1328
1981
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1329
1982
      *)
1330
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1983
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1331
1984
          LD="${LD-ld} -64"
1332
1985
        fi
1333
1986
        ;;
1337
1990
  fi
1338
1991
  rm -rf conftest*
1339
1992
  ;;
1340
 
 
1341
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1342
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1343
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1344
 
  AC_CHECK_TOOL(AS, as, false)
1345
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1346
 
  ;;
1347
 
  ])
1348
1993
esac
1349
1994
 
1350
1995
need_locks="$enable_libtool_lock"
1351
 
 
1352
 
])# _LT_AC_LOCK
1353
 
 
1354
 
 
1355
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1996
])# _LT_ENABLE_LOCK
 
1997
 
 
1998
 
 
1999
# _LT_CMD_OLD_ARCHIVE
 
2000
# -------------------
 
2001
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2002
[AC_CHECK_TOOL(AR, ar, false)
 
2003
test -z "$AR" && AR=ar
 
2004
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2005
_LT_DECL([], [AR], [1], [The archiver])
 
2006
_LT_DECL([], [AR_FLAGS], [1])
 
2007
 
 
2008
AC_CHECK_TOOL(STRIP, strip, :)
 
2009
test -z "$STRIP" && STRIP=:
 
2010
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2011
 
 
2012
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2013
test -z "$RANLIB" && RANLIB=:
 
2014
_LT_DECL([], [RANLIB], [1],
 
2015
    [Commands used to install an old-style archive])
 
2016
 
 
2017
# Determine commands to create old-style static archives.
 
2018
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2019
old_postinstall_cmds='chmod 644 $oldlib'
 
2020
old_postuninstall_cmds=
 
2021
 
 
2022
if test -n "$RANLIB"; then
 
2023
  case $host_os in
 
2024
  openbsd*)
 
2025
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2026
    ;;
 
2027
  *)
 
2028
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2029
    ;;
 
2030
  esac
 
2031
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2032
fi
 
2033
_LT_DECL([], [old_postinstall_cmds], [2])
 
2034
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2035
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2036
    [Commands used to build an old-style archive])
 
2037
])# _LT_CMD_OLD_ARCHIVE
 
2038
 
 
2039
 
 
2040
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1356
2041
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1357
2042
# ----------------------------------------------------------------
1358
2043
# Check whether the given compiler option works
1359
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1360
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2044
AC_DEFUN([_LT_COMPILER_OPTION],
 
2045
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2046
m4_require([_LT_DECL_SED])dnl
1361
2047
AC_CACHE_CHECK([$1], [$2],
1362
2048
  [$2=no
1363
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2049
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1364
2050
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1365
2051
   lt_compiler_flag="$3"
1366
2052
   # Insert the option either (1) after the last *FLAGS variable, or
1380
2066
   if (exit $ac_status) && test -s "$ac_outfile"; then
1381
2067
     # The compiler can only warn and ignore the option if not recognized
1382
2068
     # So say no if there are warnings other than the usual output.
1383
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2069
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1384
2070
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1385
2071
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1386
2072
       $2=yes
1387
2073
     fi
1388
2074
   fi
1389
 
   $rm conftest*
 
2075
   $RM conftest*
1390
2076
])
1391
2077
 
1392
2078
if test x"[$]$2" = xyes; then
1393
 
    ifelse([$5], , :, [$5])
 
2079
    m4_if([$5], , :, [$5])
1394
2080
else
1395
 
    ifelse([$6], , :, [$6])
 
2081
    m4_if([$6], , :, [$6])
1396
2082
fi
1397
 
])# AC_LIBTOOL_COMPILER_OPTION
1398
 
 
1399
 
 
1400
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1401
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1402
 
# ------------------------------------------------------------
1403
 
# Check whether the given compiler option works
1404
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1405
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2083
])# _LT_COMPILER_OPTION
 
2084
 
 
2085
# Old name:
 
2086
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2087
dnl aclocal-1.4 backwards compatibility:
 
2088
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2089
 
 
2090
 
 
2091
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2092
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2093
# ----------------------------------------------------
 
2094
# Check whether the given linker option works
 
2095
AC_DEFUN([_LT_LINKER_OPTION],
 
2096
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2097
m4_require([_LT_DECL_SED])dnl
1406
2098
AC_CACHE_CHECK([$1], [$2],
1407
2099
  [$2=no
1408
2100
   save_LDFLAGS="$LDFLAGS"
1414
2106
     if test -s conftest.err; then
1415
2107
       # Append any errors to the config.log.
1416
2108
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1417
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2109
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1418
2110
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1419
2111
       if diff conftest.exp conftest.er2 >/dev/null; then
1420
2112
         $2=yes
1423
2115
       $2=yes
1424
2116
     fi
1425
2117
   fi
1426
 
   $rm -r conftest*
 
2118
   $RM -r conftest*
1427
2119
   LDFLAGS="$save_LDFLAGS"
1428
2120
])
1429
2121
 
1430
2122
if test x"[$]$2" = xyes; then
1431
 
    ifelse([$4], , :, [$4])
 
2123
    m4_if([$4], , :, [$4])
1432
2124
else
1433
 
    ifelse([$5], , :, [$5])
 
2125
    m4_if([$5], , :, [$5])
1434
2126
fi
1435
 
])# AC_LIBTOOL_LINKER_OPTION
1436
 
 
1437
 
 
1438
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1439
 
# --------------------------
1440
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1441
 
[# find the maximum length of command line arguments
 
2127
])# _LT_LINKER_OPTION
 
2128
 
 
2129
# Old name:
 
2130
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2131
dnl aclocal-1.4 backwards compatibility:
 
2132
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2133
 
 
2134
 
 
2135
# LT_CMD_MAX_LEN
 
2136
#---------------
 
2137
AC_DEFUN([LT_CMD_MAX_LEN],
 
2138
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2139
# find the maximum length of command line arguments
1442
2140
AC_MSG_CHECKING([the maximum length of command line arguments])
1443
2141
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1444
2142
  i=0
1460
2158
    lt_cv_sys_max_cmd_len=-1;
1461
2159
    ;;
1462
2160
 
1463
 
  cygwin* | mingw*)
 
2161
  cygwin* | mingw* | cegcc*)
1464
2162
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1465
2163
    # about 5 minutes as the teststring grows exponentially.
1466
2164
    # Worse, since 9x/ME are not pre-emptively multitasking,
1515
2213
  sysv5* | sco5v6* | sysv4.2uw2*)
1516
2214
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1517
2215
    if test -n "$kargmax"; then
1518
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2216
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1519
2217
    else
1520
2218
      lt_cv_sys_max_cmd_len=32768
1521
2219
    fi
1526
2224
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1527
2225
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1528
2226
    else
 
2227
      # Make teststring a little bigger before we do anything with it.
 
2228
      # a 1K string should be a reasonable start.
 
2229
      for i in 1 2 3 4 5 6 7 8 ; do
 
2230
        teststring=$teststring$teststring
 
2231
      done
1529
2232
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1530
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1531
 
               = "XX$teststring") >/dev/null 2>&1 &&
1532
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1533
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
2233
      # If test is not a shell built-in, we'll probably end up computing a
 
2234
      # maximum length that is only half of the actual maximum length, but
 
2235
      # we can't tell.
 
2236
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2237
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1534
2238
              test $i != 17 # 1/2 MB should be enough
1535
2239
      do
1536
2240
        i=`expr $i + 1`
1537
2241
        teststring=$teststring$teststring
1538
2242
      done
 
2243
      # Only check the string length outside the loop.
 
2244
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1539
2245
      teststring=
1540
 
      # Add a significant safety factor because C++ compilers can tack on massive
1541
 
      # amounts of additional arguments before passing them to the linker.
1542
 
      # It appears as though 1/2 is a usable value.
 
2246
      # Add a significant safety factor because C++ compilers can tack on
 
2247
      # massive amounts of additional arguments before passing them to the
 
2248
      # linker.  It appears as though 1/2 is a usable value.
1543
2249
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1544
2250
    fi
1545
2251
    ;;
1550
2256
else
1551
2257
  AC_MSG_RESULT(none)
1552
2258
fi
1553
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1554
 
 
1555
 
 
1556
 
# _LT_AC_CHECK_DLFCN
1557
 
# ------------------
1558
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1559
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1560
 
])# _LT_AC_CHECK_DLFCN
1561
 
 
1562
 
 
1563
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1564
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1565
 
# ---------------------------------------------------------------------
1566
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1567
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2259
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2260
_LT_DECL([], [max_cmd_len], [0],
 
2261
    [What is the maximum length of a command?])
 
2262
])# LT_CMD_MAX_LEN
 
2263
 
 
2264
# Old name:
 
2265
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2266
dnl aclocal-1.4 backwards compatibility:
 
2267
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2268
 
 
2269
 
 
2270
# _LT_HEADER_DLFCN
 
2271
# ----------------
 
2272
m4_defun([_LT_HEADER_DLFCN],
 
2273
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2274
])# _LT_HEADER_DLFCN
 
2275
 
 
2276
 
 
2277
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2278
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2279
# ----------------------------------------------------------------
 
2280
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2281
[m4_require([_LT_HEADER_DLFCN])dnl
1568
2282
if test "$cross_compiling" = yes; then :
1569
2283
  [$4]
1570
2284
else
1571
2285
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1572
2286
  lt_status=$lt_dlunknown
1573
 
  cat > conftest.$ac_ext <<EOF
 
2287
  cat > conftest.$ac_ext <<_LT_EOF
1574
2288
[#line __oline__ "configure"
1575
2289
#include "confdefs.h"
1576
2290
 
1612
2326
#  endif
1613
2327
#endif
1614
2328
 
1615
 
#ifdef __cplusplus
1616
 
extern "C" void exit (int);
1617
 
#endif
1618
 
 
1619
2329
void fnord() { int i=42;}
1620
2330
int main ()
1621
2331
{
1631
2341
  else
1632
2342
    puts (dlerror ());
1633
2343
 
1634
 
    exit (status);
 
2344
  return status;
1635
2345
}]
1636
 
EOF
 
2346
_LT_EOF
1637
2347
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1638
2348
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1639
2349
    lt_status=$?
1648
2358
  fi
1649
2359
fi
1650
2360
rm -fr conftest*
1651
 
])# _LT_AC_TRY_DLOPEN_SELF
1652
 
 
1653
 
 
1654
 
# AC_LIBTOOL_DLOPEN_SELF
1655
 
# ----------------------
1656
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1657
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2361
])# _LT_TRY_DLOPEN_SELF
 
2362
 
 
2363
 
 
2364
# LT_SYS_DLOPEN_SELF
 
2365
# ------------------
 
2366
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2367
[m4_require([_LT_HEADER_DLFCN])dnl
1658
2368
if test "x$enable_dlopen" != xyes; then
1659
2369
  enable_dlopen=unknown
1660
2370
  enable_dlopen_self=unknown
1670
2380
    lt_cv_dlopen_self=yes
1671
2381
    ;;
1672
2382
 
1673
 
  mingw* | pw32*)
 
2383
  mingw* | pw32* | cegcc*)
1674
2384
    lt_cv_dlopen="LoadLibrary"
1675
2385
    lt_cv_dlopen_libs=
1676
 
   ;;
 
2386
    ;;
1677
2387
 
1678
2388
  cygwin*)
1679
2389
    lt_cv_dlopen="dlopen"
1680
2390
    lt_cv_dlopen_libs=
1681
 
   ;;
 
2391
    ;;
1682
2392
 
1683
2393
  darwin*)
1684
2394
  # if libdl is installed we need to link against it
1688
2398
    lt_cv_dlopen_libs=
1689
2399
    lt_cv_dlopen_self=yes
1690
2400
    ])
1691
 
   ;;
 
2401
    ;;
1692
2402
 
1693
2403
  *)
1694
2404
    AC_CHECK_FUNC([shl_load],
1730
2440
 
1731
2441
    AC_CACHE_CHECK([whether a program can dlopen itself],
1732
2442
          lt_cv_dlopen_self, [dnl
1733
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2443
          _LT_TRY_DLOPEN_SELF(
1734
2444
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1735
2445
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1736
2446
    ])
1738
2448
    if test "x$lt_cv_dlopen_self" = xyes; then
1739
2449
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1740
2450
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1741
 
          lt_cv_dlopen_self_static, [dnl
1742
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2451
          lt_cv_dlopen_self_static, [dnl
 
2452
          _LT_TRY_DLOPEN_SELF(
1743
2453
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1744
2454
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1745
2455
      ])
1761
2471
  *) enable_dlopen_self_static=unknown ;;
1762
2472
  esac
1763
2473
fi
1764
 
])# AC_LIBTOOL_DLOPEN_SELF
1765
 
 
1766
 
 
1767
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1768
 
# ---------------------------------
1769
 
# Check to see if options -c and -o are simultaneously supported by compiler
1770
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1771
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1772
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2474
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2475
         [Whether dlopen is supported])
 
2476
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2477
         [Whether dlopen of programs is supported])
 
2478
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2479
         [Whether dlopen of statically linked programs is supported])
 
2480
])# LT_SYS_DLOPEN_SELF
 
2481
 
 
2482
# Old name:
 
2483
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2484
dnl aclocal-1.4 backwards compatibility:
 
2485
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2486
 
 
2487
 
 
2488
# _LT_COMPILER_C_O([TAGNAME])
 
2489
# ---------------------------
 
2490
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2491
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2492
m4_defun([_LT_COMPILER_C_O],
 
2493
[m4_require([_LT_DECL_SED])dnl
 
2494
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2495
m4_require([_LT_TAG_COMPILER])dnl
1773
2496
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1774
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1775
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1776
 
   $rm -r conftest 2>/dev/null
 
2497
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2498
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2499
   $RM -r conftest 2>/dev/null
1777
2500
   mkdir conftest
1778
2501
   cd conftest
1779
2502
   mkdir out
1797
2520
   then
1798
2521
     # The compiler can only warn and ignore the option if not recognized
1799
2522
     # So say no if there are warnings
1800
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2523
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1801
2524
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1802
2525
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1803
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2526
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1804
2527
     fi
1805
2528
   fi
1806
2529
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1807
 
   $rm conftest*
 
2530
   $RM conftest*
1808
2531
   # SGI C++ compiler will create directory out/ii_files/ for
1809
2532
   # template instantiation
1810
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1811
 
   $rm out/* && rmdir out
 
2533
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2534
   $RM out/* && rmdir out
1812
2535
   cd ..
1813
 
   rmdir conftest
1814
 
   $rm conftest*
 
2536
   $RM -r conftest
 
2537
   $RM conftest*
1815
2538
])
1816
 
])# AC_LIBTOOL_PROG_CC_C_O
1817
 
 
1818
 
 
1819
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1820
 
# -----------------------------------------
 
2539
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2540
        [Does compiler simultaneously support -c and -o options?])
 
2541
])# _LT_COMPILER_C_O
 
2542
 
 
2543
 
 
2544
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2545
# ----------------------------------
1821
2546
# Check to see if we can do hard links to lock some files if needed
1822
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1823
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2547
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2548
[m4_require([_LT_ENABLE_LOCK])dnl
 
2549
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2550
_LT_COMPILER_C_O([$1])
1824
2551
 
1825
2552
hard_links="nottested"
1826
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2553
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1827
2554
  # do not overwrite the value of need_locks provided by the user
1828
2555
  AC_MSG_CHECKING([if we can lock with hard links])
1829
2556
  hard_links=yes
1830
 
  $rm conftest*
 
2557
  $RM conftest*
1831
2558
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1832
2559
  touch conftest.a
1833
2560
  ln conftest.a conftest.b 2>&5 || hard_links=no
1840
2567
else
1841
2568
  need_locks=no
1842
2569
fi
1843
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1844
 
 
1845
 
 
1846
 
# AC_LIBTOOL_OBJDIR
1847
 
# -----------------
1848
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2570
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2571
])# _LT_COMPILER_FILE_LOCKS
 
2572
 
 
2573
 
 
2574
# _LT_CHECK_OBJDIR
 
2575
# ----------------
 
2576
m4_defun([_LT_CHECK_OBJDIR],
1849
2577
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1850
2578
[rm -f .libs 2>/dev/null
1851
2579
mkdir .libs 2>/dev/null
1857
2585
fi
1858
2586
rmdir .libs 2>/dev/null])
1859
2587
objdir=$lt_cv_objdir
1860
 
])# AC_LIBTOOL_OBJDIR
1861
 
 
1862
 
 
1863
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1864
 
# ----------------------------------------------
 
2588
_LT_DECL([], [objdir], [0],
 
2589
         [The name of the directory that contains temporary libtool files])dnl
 
2590
m4_pattern_allow([LT_OBJDIR])dnl
 
2591
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2592
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2593
])# _LT_CHECK_OBJDIR
 
2594
 
 
2595
 
 
2596
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2597
# --------------------------------------
1865
2598
# Check hardcoding attributes.
1866
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2599
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1867
2600
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1868
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1869
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1870
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1871
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2601
_LT_TAGVAR(hardcode_action, $1)=
 
2602
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2603
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2604
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1872
2605
 
1873
 
  # We can hardcode non-existant directories.
1874
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2606
  # We can hardcode non-existent directories.
 
2607
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1875
2608
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1876
2609
     # have to relink, otherwise we might link with an installed library
1877
2610
     # when we should be linking with a yet-to-be-installed one
1878
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1879
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2611
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2612
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1880
2613
    # Linking always hardcodes the temporary library directory.
1881
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2614
    _LT_TAGVAR(hardcode_action, $1)=relink
1882
2615
  else
1883
2616
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1884
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2617
    _LT_TAGVAR(hardcode_action, $1)=immediate
1885
2618
  fi
1886
2619
else
1887
2620
  # We cannot hardcode anything, or else we can only hardcode existing
1888
2621
  # directories.
1889
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2622
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1890
2623
fi
1891
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2624
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1892
2625
 
1893
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2626
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2627
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1894
2628
  # Fast installation is not supported
1895
2629
  enable_fast_install=no
1896
2630
elif test "$shlibpath_overrides_runpath" = yes ||
1898
2632
  # Fast installation is not necessary
1899
2633
  enable_fast_install=needless
1900
2634
fi
1901
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1902
 
 
1903
 
 
1904
 
# AC_LIBTOOL_SYS_LIB_STRIP
1905
 
# ------------------------
1906
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1907
 
[striplib=
 
2635
_LT_TAGDECL([], [hardcode_action], [0],
 
2636
    [How to hardcode a shared library path into an executable])
 
2637
])# _LT_LINKER_HARDCODE_LIBPATH
 
2638
 
 
2639
 
 
2640
# _LT_CMD_STRIPLIB
 
2641
# ----------------
 
2642
m4_defun([_LT_CMD_STRIPLIB],
 
2643
[m4_require([_LT_DECL_EGREP])
 
2644
striplib=
1908
2645
old_striplib=
1909
2646
AC_MSG_CHECKING([whether stripping libraries is possible])
1910
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2647
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1911
2648
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1912
2649
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1913
2650
  AC_MSG_RESULT([yes])
1914
2651
else
1915
2652
# FIXME - insert some real tests, host_os isn't really good enough
1916
2653
  case $host_os in
1917
 
   darwin*)
1918
 
       if test -n "$STRIP" ; then
1919
 
         striplib="$STRIP -x"
1920
 
         old_striplib="$STRIP -S"
1921
 
         AC_MSG_RESULT([yes])
1922
 
       else
1923
 
  AC_MSG_RESULT([no])
1924
 
fi
1925
 
       ;;
1926
 
   *)
1927
 
  AC_MSG_RESULT([no])
 
2654
  darwin*)
 
2655
    if test -n "$STRIP" ; then
 
2656
      striplib="$STRIP -x"
 
2657
      old_striplib="$STRIP -S"
 
2658
      AC_MSG_RESULT([yes])
 
2659
    else
 
2660
      AC_MSG_RESULT([no])
 
2661
    fi
 
2662
    ;;
 
2663
  *)
 
2664
    AC_MSG_RESULT([no])
1928
2665
    ;;
1929
2666
  esac
1930
2667
fi
1931
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1932
 
 
1933
 
 
1934
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2668
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2669
_LT_DECL([], [striplib], [1])
 
2670
])# _LT_CMD_STRIPLIB
 
2671
 
 
2672
 
 
2673
# _LT_SYS_DYNAMIC_LINKER([TAG])
1935
2674
# -----------------------------
1936
2675
# PORTME Fill in your ld.so characteristics
1937
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1938
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2676
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2677
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2678
m4_require([_LT_DECL_EGREP])dnl
 
2679
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2680
m4_require([_LT_DECL_OBJDUMP])dnl
 
2681
m4_require([_LT_DECL_SED])dnl
1939
2682
AC_MSG_CHECKING([dynamic linker characteristics])
1940
 
library_names_spec=
1941
 
libname_spec='lib$name'
1942
 
soname_spec=
1943
 
shrext_cmds=".so"
1944
 
postinstall_cmds=
1945
 
postuninstall_cmds=
1946
 
finish_cmds=
1947
 
finish_eval=
1948
 
shlibpath_var=
1949
 
shlibpath_overrides_runpath=unknown
1950
 
version_type=none
1951
 
dynamic_linker="$host_os ld.so"
1952
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1953
 
m4_if($1,[],[
 
2683
m4_if([$1],
 
2684
        [], [
1954
2685
if test "$GCC" = yes; then
1955
2686
  case $host_os in
1956
2687
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1957
2688
    *) lt_awk_arg="/^libraries:/" ;;
1958
2689
  esac
1959
2690
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1960
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2691
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1961
2692
    # if the path contains ";" then we assume it to be the separator
1962
2693
    # otherwise default to the standard path separator (i.e. ":") - it is
1963
2694
    # assumed that no part of a normal pathname contains ";" but that should
1964
2695
    # okay in the real world where ";" in dirpaths is itself problematic.
1965
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2696
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1966
2697
  else
1967
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2698
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1968
2699
  fi
1969
2700
  # Ok, now we have the path, separated by spaces, we can step through it
1970
2701
  # and add multilib dir if necessary.
1978
2709
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1979
2710
    fi
1980
2711
  done
1981
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2712
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1982
2713
BEGIN {RS=" "; FS="/|\n";} {
1983
2714
  lt_foo="";
1984
2715
  lt_count=0;
1998
2729
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1999
2730
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2000
2731
}'`
2001
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2732
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2002
2733
else
2003
2734
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2004
2735
fi])
 
2736
library_names_spec=
 
2737
libname_spec='lib$name'
 
2738
soname_spec=
 
2739
shrext_cmds=".so"
 
2740
postinstall_cmds=
 
2741
postuninstall_cmds=
 
2742
finish_cmds=
 
2743
finish_eval=
 
2744
shlibpath_var=
 
2745
shlibpath_overrides_runpath=unknown
 
2746
version_type=none
 
2747
dynamic_linker="$host_os ld.so"
 
2748
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2005
2749
need_lib_prefix=unknown
2006
2750
hardcode_into_libs=no
2007
2751
 
2038
2782
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2039
2783
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2040
2784
           echo ' yes '
2041
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2785
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2042
2786
        :
2043
2787
      else
2044
2788
        can_build_shared=no
2064
2808
  ;;
2065
2809
 
2066
2810
amigaos*)
2067
 
  library_names_spec='$libname.ixlibrary $libname.a'
2068
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2069
 
  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'
 
2811
  case $host_cpu in
 
2812
  powerpc)
 
2813
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
2814
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
2815
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2816
    ;;
 
2817
  m68k)
 
2818
    library_names_spec='$libname.ixlibrary $libname.a'
 
2819
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2820
    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'
 
2821
    ;;
 
2822
  esac
2070
2823
  ;;
2071
2824
 
2072
2825
beos*)
2089
2842
  # libtool to hard-code these into programs
2090
2843
  ;;
2091
2844
 
2092
 
cygwin* | mingw* | pw32*)
 
2845
cygwin* | mingw* | pw32* | cegcc*)
2093
2846
  version_type=windows
2094
2847
  shrext_cmds=".dll"
2095
2848
  need_version=no
2096
2849
  need_lib_prefix=no
2097
2850
 
2098
2851
  case $GCC,$host_os in
2099
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2852
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2100
2853
    library_names_spec='$libname.dll.a'
2101
2854
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2102
2855
    postinstall_cmds='base_file=`basename \${file}`~
2103
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2856
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2104
2857
      dldir=$destdir/`dirname \$dlpath`~
2105
2858
      test -d \$dldir || mkdir -p \$dldir~
2106
2859
      $install_prog $dir/$dlname \$dldir/$dlname~
2107
 
      chmod a+x \$dldir/$dlname'
 
2860
      chmod a+x \$dldir/$dlname~
 
2861
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
2862
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
2863
      fi'
2108
2864
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2109
2865
      dlpath=$dir/\$dldll~
2110
 
       $rm \$dlpath'
 
2866
       $RM \$dlpath'
2111
2867
    shlibpath_overrides_runpath=yes
2112
2868
 
2113
2869
    case $host_os in
2116
2872
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2117
2873
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2118
2874
      ;;
2119
 
    mingw*)
 
2875
    mingw* | cegcc*)
2120
2876
      # MinGW DLLs use traditional 'lib' prefix
2121
2877
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2122
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2123
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2878
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2879
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2124
2880
        # It is most probably a Windows format PATH printed by
2125
2881
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2126
2882
        # path with ; separators, and with drive letters. We can handle the
2127
2883
        # drive letters (cygwin fileutils understands them), so leave them,
2128
2884
        # especially as we might pass files found there to a mingw objdump,
2129
2885
        # which wouldn't understand a cygwinified path. Ahh.
2130
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2886
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2131
2887
      else
2132
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2888
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2133
2889
      fi
2134
2890
      ;;
2135
2891
    pw32*)
2153
2909
  version_type=darwin
2154
2910
  need_lib_prefix=no
2155
2911
  need_version=no
2156
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2912
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2157
2913
  soname_spec='${libname}${release}${major}$shared_ext'
2158
2914
  shlibpath_overrides_runpath=yes
2159
2915
  shlibpath_var=DYLD_LIBRARY_PATH
2160
2916
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2161
 
  m4_if([$1], [],[
2162
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
2917
m4_if([$1], [],[
 
2918
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2163
2919
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2164
2920
  ;;
2165
2921
 
2252
3008
    fi
2253
3009
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2254
3010
    ;;
2255
 
   hppa*64*)
2256
 
     shrext_cmds='.sl'
2257
 
     hardcode_into_libs=yes
2258
 
     dynamic_linker="$host_os dld.sl"
2259
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2260
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2261
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2262
 
     soname_spec='${libname}${release}${shared_ext}$major'
2263
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2264
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2265
 
     ;;
2266
 
   *)
 
3011
  hppa*64*)
 
3012
    shrext_cmds='.sl'
 
3013
    hardcode_into_libs=yes
 
3014
    dynamic_linker="$host_os dld.sl"
 
3015
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3016
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3017
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3018
    soname_spec='${libname}${release}${shared_ext}$major'
 
3019
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3020
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3021
    ;;
 
3022
  *)
2267
3023
    shrext_cmds='.sl'
2268
3024
    dynamic_linker="$host_os dld.sl"
2269
3025
    shlibpath_var=SHLIB_PATH
2340
3096
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2341
3097
  shlibpath_var=LD_LIBRARY_PATH
2342
3098
  shlibpath_overrides_runpath=no
 
3099
  # Some binutils ld are patched to set DT_RUNPATH
 
3100
  save_LDFLAGS=$LDFLAGS
 
3101
  save_libdir=$libdir
 
3102
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3103
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3104
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3105
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3106
       [shlibpath_overrides_runpath=yes])])
 
3107
  LDFLAGS=$save_LDFLAGS
 
3108
  libdir=$save_libdir
 
3109
 
2343
3110
  # This implies no fast_install, which is unacceptable.
2344
3111
  # Some rework will be needed to allow for fast_install
2345
3112
  # before this can be enabled.
2347
3114
 
2348
3115
  # Append ld.so.conf contents to the search path
2349
3116
  if test -f /etc/ld.so.conf; then
2350
 
    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' ' '`
 
3117
    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' ' '`
2351
3118
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2352
3119
  fi
2353
3120
 
2376
3143
  version_type=sunos
2377
3144
  need_lib_prefix=no
2378
3145
  need_version=no
2379
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3146
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2380
3147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2381
3148
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2382
3149
    dynamic_linker='NetBSD (a.out) ld.so'
2397
3164
  shlibpath_overrides_runpath=yes
2398
3165
  ;;
2399
3166
 
2400
 
nto-qnx*)
2401
 
  version_type=linux
 
3167
*nto* | *qnx*)
 
3168
  version_type=qnx
2402
3169
  need_lib_prefix=no
2403
3170
  need_version=no
2404
3171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2405
3172
  soname_spec='${libname}${release}${shared_ext}$major'
2406
3173
  shlibpath_var=LD_LIBRARY_PATH
2407
 
  shlibpath_overrides_runpath=yes
 
3174
  shlibpath_overrides_runpath=no
 
3175
  hardcode_into_libs=yes
 
3176
  dynamic_linker='ldqnx.so'
2408
3177
  ;;
2409
3178
 
2410
3179
openbsd*)
2413
3182
  need_lib_prefix=no
2414
3183
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2415
3184
  case $host_os in
2416
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2417
 
    *)                         need_version=no  ;;
 
3185
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3186
    *)                          need_version=no  ;;
2418
3187
  esac
2419
3188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2420
3189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2421
3190
  shlibpath_var=LD_LIBRARY_PATH
2422
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3191
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2423
3192
    case $host_os in
2424
3193
      openbsd2.[[89]] | openbsd2.[[89]].*)
2425
3194
        shlibpath_overrides_runpath=no
2491
3260
    sni)
2492
3261
      shlibpath_overrides_runpath=no
2493
3262
      need_lib_prefix=no
2494
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2495
3263
      runpath_var=LD_RUN_PATH
2496
3264
      ;;
2497
3265
    siemens)
2522
3290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2523
3291
  soname_spec='${libname}${release}${shared_ext}$major'
2524
3292
  shlibpath_var=LD_LIBRARY_PATH
 
3293
  shlibpath_overrides_runpath=yes
2525
3294
  hardcode_into_libs=yes
2526
3295
  if test "$with_gnu_ld" = yes; then
2527
3296
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2528
 
    shlibpath_overrides_runpath=no
2529
3297
  else
2530
3298
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2531
 
    shlibpath_overrides_runpath=yes
2532
3299
    case $host_os in
2533
3300
      sco3.2v5*)
2534
3301
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2538
3305
  sys_lib_dlsearch_path_spec='/usr/lib'
2539
3306
  ;;
2540
3307
 
 
3308
tpf*)
 
3309
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3310
  version_type=linux
 
3311
  need_lib_prefix=no
 
3312
  need_version=no
 
3313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3314
  shlibpath_var=LD_LIBRARY_PATH
 
3315
  shlibpath_overrides_runpath=no
 
3316
  hardcode_into_libs=yes
 
3317
  ;;
 
3318
 
2541
3319
uts4*)
2542
3320
  version_type=linux
2543
3321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2552
3330
AC_MSG_RESULT([$dynamic_linker])
2553
3331
test "$dynamic_linker" = no && can_build_shared=no
2554
3332
 
2555
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2556
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2557
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2558
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2559
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2560
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2561
 
 
2562
3333
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2563
3334
if test "$GCC" = yes; then
2564
3335
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2565
3336
fi
2566
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2567
 
 
2568
 
 
2569
 
# _LT_AC_TAGCONFIG
2570
 
# ----------------
2571
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2572
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2573
 
AC_ARG_WITH([tags],
2574
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2575
 
        [include additional configurations @<:@automatic@:>@])],
2576
 
    [tagnames="$withval"])
2577
 
 
2578
 
if test -f "$ltmain" && test -n "$tagnames"; then
2579
 
  if test ! -f "${ofile}"; then
2580
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2581
 
  fi
2582
 
 
2583
 
  if test -z "$LTCC"; then
2584
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2585
 
    if test -z "$LTCC"; then
2586
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2587
 
    else
2588
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2589
 
    fi
2590
 
  fi
2591
 
  if test -z "$LTCFLAGS"; then
2592
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2593
 
  fi
2594
 
 
2595
 
  # Extract list of available tagged configurations in $ofile.
2596
 
  # Note that this assumes the entire list is on one line.
2597
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2598
 
 
2599
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2600
 
  for tagname in $tagnames; do
2601
 
    IFS="$lt_save_ifs"
2602
 
    # Check whether tagname contains only valid characters
2603
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2604
 
    "") ;;
2605
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2606
 
        ;;
2607
 
    esac
2608
 
 
2609
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2610
 
    then
2611
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2612
 
    fi
2613
 
 
2614
 
    # Update the list of available tags.
2615
 
    if test -n "$tagname"; then
2616
 
      echo appending configuration tag \"$tagname\" to $ofile
2617
 
 
2618
 
      case $tagname in
2619
 
      CXX)
2620
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2621
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2622
 
            (test "X$CXX" != "Xg++"))) ; then
2623
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2624
 
        else
2625
 
          tagname=""
2626
 
        fi
2627
 
        ;;
2628
 
 
2629
 
      F77)
2630
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2631
 
          AC_LIBTOOL_LANG_F77_CONFIG
2632
 
        else
2633
 
          tagname=""
2634
 
        fi
2635
 
        ;;
2636
 
 
2637
 
      GCJ)
2638
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2639
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2640
 
        else
2641
 
          tagname=""
2642
 
        fi
2643
 
        ;;
2644
 
 
2645
 
      RC)
2646
 
        AC_LIBTOOL_LANG_RC_CONFIG
2647
 
        ;;
2648
 
 
2649
 
      *)
2650
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2651
 
        ;;
2652
 
      esac
2653
 
 
2654
 
      # Append the new tag name to the list of available tags.
2655
 
      if test -n "$tagname" ; then
2656
 
      available_tags="$available_tags $tagname"
2657
 
    fi
2658
 
    fi
2659
 
  done
2660
 
  IFS="$lt_save_ifs"
2661
 
 
2662
 
  # Now substitute the updated list of available tags.
2663
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2664
 
    mv "${ofile}T" "$ofile"
2665
 
    chmod +x "$ofile"
2666
 
  else
2667
 
    rm -f "${ofile}T"
2668
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2669
 
  fi
2670
 
fi
2671
 
])# _LT_AC_TAGCONFIG
2672
 
 
2673
 
 
2674
 
# AC_LIBTOOL_DLOPEN
2675
 
# -----------------
2676
 
# enable checks for dlopen support
2677
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2678
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2679
 
])# AC_LIBTOOL_DLOPEN
2680
 
 
2681
 
 
2682
 
# AC_LIBTOOL_WIN32_DLL
2683
 
# --------------------
2684
 
# declare package support for building win32 DLLs
2685
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2686
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2687
 
])# AC_LIBTOOL_WIN32_DLL
2688
 
 
2689
 
 
2690
 
# AC_ENABLE_SHARED([DEFAULT])
2691
 
# ---------------------------
2692
 
# implement the --enable-shared flag
2693
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2694
 
AC_DEFUN([AC_ENABLE_SHARED],
2695
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2696
 
AC_ARG_ENABLE([shared],
2697
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2698
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2699
 
    [p=${PACKAGE-default}
2700
 
    case $enableval in
2701
 
    yes) enable_shared=yes ;;
2702
 
    no) enable_shared=no ;;
2703
 
    *)
2704
 
      enable_shared=no
2705
 
      # Look at the argument we got.  We use all the common list separators.
2706
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2707
 
      for pkg in $enableval; do
2708
 
        IFS="$lt_save_ifs"
2709
 
        if test "X$pkg" = "X$p"; then
2710
 
          enable_shared=yes
2711
 
        fi
2712
 
      done
2713
 
      IFS="$lt_save_ifs"
2714
 
      ;;
2715
 
    esac],
2716
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2717
 
])# AC_ENABLE_SHARED
2718
 
 
2719
 
 
2720
 
# AC_DISABLE_SHARED
2721
 
# -----------------
2722
 
# set the default shared flag to --disable-shared
2723
 
AC_DEFUN([AC_DISABLE_SHARED],
2724
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2725
 
AC_ENABLE_SHARED(no)
2726
 
])# AC_DISABLE_SHARED
2727
 
 
2728
 
 
2729
 
# AC_ENABLE_STATIC([DEFAULT])
2730
 
# ---------------------------
2731
 
# implement the --enable-static flag
2732
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2733
 
AC_DEFUN([AC_ENABLE_STATIC],
2734
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2735
 
AC_ARG_ENABLE([static],
2736
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2737
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2738
 
    [p=${PACKAGE-default}
2739
 
    case $enableval in
2740
 
    yes) enable_static=yes ;;
2741
 
    no) enable_static=no ;;
2742
 
    *)
2743
 
     enable_static=no
2744
 
      # Look at the argument we got.  We use all the common list separators.
2745
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2746
 
      for pkg in $enableval; do
2747
 
        IFS="$lt_save_ifs"
2748
 
        if test "X$pkg" = "X$p"; then
2749
 
          enable_static=yes
2750
 
        fi
2751
 
      done
2752
 
      IFS="$lt_save_ifs"
2753
 
      ;;
2754
 
    esac],
2755
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2756
 
])# AC_ENABLE_STATIC
2757
 
 
2758
 
 
2759
 
# AC_DISABLE_STATIC
2760
 
# -----------------
2761
 
# set the default static flag to --disable-static
2762
 
AC_DEFUN([AC_DISABLE_STATIC],
2763
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2764
 
AC_ENABLE_STATIC(no)
2765
 
])# AC_DISABLE_STATIC
2766
 
 
2767
 
 
2768
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2769
 
# ---------------------------------
2770
 
# implement the --enable-fast-install flag
2771
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2772
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2773
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2774
 
AC_ARG_ENABLE([fast-install],
2775
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2776
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2777
 
    [p=${PACKAGE-default}
2778
 
    case $enableval in
2779
 
    yes) enable_fast_install=yes ;;
2780
 
    no) enable_fast_install=no ;;
2781
 
    *)
2782
 
      enable_fast_install=no
2783
 
      # Look at the argument we got.  We use all the common list separators.
2784
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2785
 
      for pkg in $enableval; do
2786
 
        IFS="$lt_save_ifs"
2787
 
        if test "X$pkg" = "X$p"; then
2788
 
          enable_fast_install=yes
2789
 
        fi
2790
 
      done
2791
 
      IFS="$lt_save_ifs"
2792
 
      ;;
2793
 
    esac],
2794
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2795
 
])# AC_ENABLE_FAST_INSTALL
2796
 
 
2797
 
 
2798
 
# AC_DISABLE_FAST_INSTALL
2799
 
# -----------------------
2800
 
# set the default to --disable-fast-install
2801
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2802
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2803
 
AC_ENABLE_FAST_INSTALL(no)
2804
 
])# AC_DISABLE_FAST_INSTALL
2805
 
 
2806
 
 
2807
 
# AC_LIBTOOL_PICMODE([MODE])
 
3337
 
 
3338
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3339
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3340
fi
 
3341
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3342
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3343
fi
 
3344
 
 
3345
_LT_DECL([], [variables_saved_for_relink], [1],
 
3346
    [Variables whose values should be saved in libtool wrapper scripts and
 
3347
    restored at link time])
 
3348
_LT_DECL([], [need_lib_prefix], [0],
 
3349
    [Do we need the "lib" prefix for modules?])
 
3350
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3351
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3352
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3353
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3354
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3355
    [Is shlibpath searched before the hard-coded library search path?])
 
3356
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3357
_LT_DECL([], [library_names_spec], [1],
 
3358
    [[List of archive names.  First name is the real one, the rest are links.
 
3359
    The last name is the one that the linker finds with -lNAME]])
 
3360
_LT_DECL([], [soname_spec], [1],
 
3361
    [[The coded name of the library, if different from the real name]])
 
3362
_LT_DECL([], [postinstall_cmds], [2],
 
3363
    [Command to use after installation of a shared archive])
 
3364
_LT_DECL([], [postuninstall_cmds], [2],
 
3365
    [Command to use after uninstallation of a shared archive])
 
3366
_LT_DECL([], [finish_cmds], [2],
 
3367
    [Commands used to finish a libtool library installation in a directory])
 
3368
_LT_DECL([], [finish_eval], [1],
 
3369
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3370
    not shown]])
 
3371
_LT_DECL([], [hardcode_into_libs], [0],
 
3372
    [Whether we should hardcode library paths into libraries])
 
3373
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3374
    [Compile-time system search path for libraries])
 
3375
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3376
    [Run-time system search path for libraries])
 
3377
])# _LT_SYS_DYNAMIC_LINKER
 
3378
 
 
3379
 
 
3380
# _LT_PATH_TOOL_PREFIX(TOOL)
2808
3381
# --------------------------
2809
 
# implement the --with-pic flag
2810
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2811
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2812
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2813
 
pic_mode=ifelse($#,1,$1,default)
2814
 
])# AC_LIBTOOL_PICMODE
2815
 
 
2816
 
 
2817
 
# AC_PROG_EGREP
2818
 
# -------------
2819
 
# This is predefined starting with Autoconf 2.54, so this conditional
2820
 
# definition can be removed once we require Autoconf 2.54 or later.
2821
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2822
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2823
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2824
 
    then ac_cv_prog_egrep='grep -E'
2825
 
    else ac_cv_prog_egrep='egrep'
2826
 
    fi])
2827
 
 EGREP=$ac_cv_prog_egrep
2828
 
 AC_SUBST([EGREP])
2829
 
])])
2830
 
 
2831
 
 
2832
 
# AC_PATH_TOOL_PREFIX
2833
 
# -------------------
2834
3382
# find a file program which can recognize shared library
2835
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2836
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3383
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3384
[m4_require([_LT_DECL_EGREP])dnl
2837
3385
AC_MSG_CHECKING([for $1])
2838
3386
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2839
3387
[case $MAGIC_CMD in
2846
3394
dnl $ac_dummy forces splitting on constant user-supplied paths.
2847
3395
dnl POSIX.2 word splitting is done only on the output of word expansions,
2848
3396
dnl not every word.  This closes a longstanding sh security hole.
2849
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3397
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2850
3398
  for ac_dir in $ac_dummy; do
2851
3399
    IFS="$lt_save_ifs"
2852
3400
    test -z "$ac_dir" && ac_dir=.
2861
3409
            $EGREP "$file_magic_regex" > /dev/null; then
2862
3410
            :
2863
3411
          else
2864
 
            cat <<EOF 1>&2
 
3412
            cat <<_LT_EOF 1>&2
2865
3413
 
2866
3414
*** Warning: the command libtool uses to detect shared libraries,
2867
3415
*** $file_magic_cmd, produces output that libtool cannot recognize.
2872
3420
*** may want to report the problem to your system manager and/or to
2873
3421
*** bug-libtool@gnu.org
2874
3422
 
2875
 
EOF
 
3423
_LT_EOF
2876
3424
          fi ;;
2877
3425
        esac
2878
3426
      fi
2889
3437
else
2890
3438
  AC_MSG_RESULT(no)
2891
3439
fi
2892
 
])# AC_PATH_TOOL_PREFIX
2893
 
 
2894
 
 
2895
 
# AC_PATH_MAGIC
2896
 
# -------------
 
3440
_LT_DECL([], [MAGIC_CMD], [0],
 
3441
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3442
])# _LT_PATH_TOOL_PREFIX
 
3443
 
 
3444
# Old name:
 
3445
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3446
dnl aclocal-1.4 backwards compatibility:
 
3447
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3448
 
 
3449
 
 
3450
# _LT_PATH_MAGIC
 
3451
# --------------
2897
3452
# find a file program which can recognize a shared library
2898
 
AC_DEFUN([AC_PATH_MAGIC],
2899
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3453
m4_defun([_LT_PATH_MAGIC],
 
3454
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2900
3455
if test -z "$lt_cv_path_MAGIC_CMD"; then
2901
3456
  if test -n "$ac_tool_prefix"; then
2902
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3457
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2903
3458
  else
2904
3459
    MAGIC_CMD=:
2905
3460
  fi
2906
3461
fi
2907
 
])# AC_PATH_MAGIC
2908
 
 
2909
 
 
2910
 
# AC_PROG_LD
 
3462
])# _LT_PATH_MAGIC
 
3463
 
 
3464
 
 
3465
# LT_PATH_LD
2911
3466
# ----------
2912
3467
# find the pathname to the GNU or non-GNU linker
2913
 
AC_DEFUN([AC_PROG_LD],
2914
 
[AC_ARG_WITH([gnu-ld],
2915
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3468
AC_DEFUN([LT_PATH_LD],
 
3469
[AC_REQUIRE([AC_PROG_CC])dnl
 
3470
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3471
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3472
m4_require([_LT_DECL_SED])dnl
 
3473
m4_require([_LT_DECL_EGREP])dnl
 
3474
 
 
3475
AC_ARG_WITH([gnu-ld],
 
3476
    [AS_HELP_STRING([--with-gnu-ld],
2916
3477
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2917
3478
    [test "$withval" = no || with_gnu_ld=yes],
2918
 
    [with_gnu_ld=no])
2919
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2920
 
AC_REQUIRE([AC_PROG_CC])dnl
2921
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2922
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3479
    [with_gnu_ld=no])dnl
 
3480
 
2923
3481
ac_prog=ld
2924
3482
if test "$GCC" = yes; then
2925
3483
  # Check if gcc -print-prog-name=ld gives a path.
2936
3494
    [[\\/]]* | ?:[[\\/]]*)
2937
3495
      re_direlt='/[[^/]][[^/]]*/\.\./'
2938
3496
      # Canonicalize the pathname of ld
2939
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2940
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2941
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3497
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3498
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3499
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2942
3500
      done
2943
3501
      test -z "$LD" && LD="$ac_prog"
2944
3502
      ;;
2988
3546
  AC_MSG_RESULT(no)
2989
3547
fi
2990
3548
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2991
 
AC_PROG_LD_GNU
2992
 
])# AC_PROG_LD
2993
 
 
2994
 
 
2995
 
# AC_PROG_LD_GNU
2996
 
# --------------
2997
 
AC_DEFUN([AC_PROG_LD_GNU],
2998
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2999
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3549
_LT_PATH_LD_GNU
 
3550
AC_SUBST([LD])
 
3551
 
 
3552
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3553
])# LT_PATH_LD
 
3554
 
 
3555
# Old names:
 
3556
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3557
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3558
dnl aclocal-1.4 backwards compatibility:
 
3559
dnl AC_DEFUN([AM_PROG_LD], [])
 
3560
dnl AC_DEFUN([AC_PROG_LD], [])
 
3561
 
 
3562
 
 
3563
# _LT_PATH_LD_GNU
 
3564
#- --------------
 
3565
m4_defun([_LT_PATH_LD_GNU],
 
3566
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3000
3567
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3001
3568
case `$LD -v 2>&1 </dev/null` in
3002
3569
*GNU* | *'with BFD'*)
3007
3574
  ;;
3008
3575
esac])
3009
3576
with_gnu_ld=$lt_cv_prog_gnu_ld
3010
 
])# AC_PROG_LD_GNU
3011
 
 
3012
 
 
3013
 
# AC_PROG_LD_RELOAD_FLAG
3014
 
# ----------------------
 
3577
])# _LT_PATH_LD_GNU
 
3578
 
 
3579
 
 
3580
# _LT_CMD_RELOAD
 
3581
# --------------
3015
3582
# find reload flag for linker
3016
3583
#   -- PORTME Some linkers may need a different reload flag.
3017
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3584
m4_defun([_LT_CMD_RELOAD],
3018
3585
[AC_CACHE_CHECK([for $LD option to reload object files],
3019
3586
  lt_cv_ld_reload_flag,
3020
3587
  [lt_cv_ld_reload_flag='-r'])
3033
3600
    fi
3034
3601
    ;;
3035
3602
esac
3036
 
])# AC_PROG_LD_RELOAD_FLAG
3037
 
 
3038
 
 
3039
 
# AC_DEPLIBS_CHECK_METHOD
3040
 
# -----------------------
 
3603
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3604
_LT_DECL([], [reload_cmds], [2])dnl
 
3605
])# _LT_CMD_RELOAD
 
3606
 
 
3607
 
 
3608
# _LT_CHECK_MAGIC_METHOD
 
3609
# ----------------------
3041
3610
# how to check for library dependencies
3042
3611
#  -- PORTME fill in with the dynamic library characteristics
3043
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3044
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3612
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3613
[m4_require([_LT_DECL_EGREP])
 
3614
m4_require([_LT_DECL_OBJDUMP])
 
3615
AC_CACHE_CHECK([how to recognize dependent libraries],
3045
3616
lt_cv_deplibs_check_method,
3046
3617
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3047
3618
lt_cv_file_magic_test_file=
3091
3662
  fi
3092
3663
  ;;
3093
3664
 
 
3665
cegcc)
 
3666
  # use the weaker test based on 'objdump'. See mingw*.
 
3667
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3668
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3669
  ;;
 
3670
 
3094
3671
darwin* | rhapsody*)
3095
3672
  lt_cv_deplibs_check_method=pass_all
3096
3673
  ;;
3097
3674
 
3098
3675
freebsd* | dragonfly*)
3099
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3676
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3100
3677
    case $host_cpu in
3101
3678
    i*86 )
3102
3679
      # Not sure whether the presence of OpenBSD here was a mistake.
3154
3731
  ;;
3155
3732
 
3156
3733
netbsd* | netbsdelf*-gnu)
3157
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3734
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3158
3735
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3159
3736
  else
3160
3737
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3167
3744
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3168
3745
  ;;
3169
3746
 
3170
 
nto-qnx*)
3171
 
  lt_cv_deplibs_check_method=unknown
 
3747
*nto* | *qnx*)
 
3748
  lt_cv_deplibs_check_method=pass_all
3172
3749
  ;;
3173
3750
 
3174
3751
openbsd*)
3175
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3752
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3176
3753
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3177
3754
  else
3178
3755
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3191
3768
  lt_cv_deplibs_check_method=pass_all
3192
3769
  ;;
3193
3770
 
 
3771
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3772
  lt_cv_deplibs_check_method=pass_all
 
3773
  ;;
 
3774
 
3194
3775
sysv4 | sysv4.3*)
3195
3776
  case $host_vendor in
3196
3777
  motorola)
3218
3799
  esac
3219
3800
  ;;
3220
3801
 
3221
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3802
tpf*)
3222
3803
  lt_cv_deplibs_check_method=pass_all
3223
3804
  ;;
3224
3805
esac
3226
3807
file_magic_cmd=$lt_cv_file_magic_cmd
3227
3808
deplibs_check_method=$lt_cv_deplibs_check_method
3228
3809
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3229
 
])# AC_DEPLIBS_CHECK_METHOD
3230
 
 
3231
 
 
3232
 
# AC_PROG_NM
 
3810
 
 
3811
_LT_DECL([], [deplibs_check_method], [1],
 
3812
    [Method to check whether dependent libraries are shared objects])
 
3813
_LT_DECL([], [file_magic_cmd], [1],
 
3814
    [Command to use when deplibs_check_method == "file_magic"])
 
3815
])# _LT_CHECK_MAGIC_METHOD
 
3816
 
 
3817
 
 
3818
# LT_PATH_NM
3233
3819
# ----------
3234
 
# find the pathname to a BSD-compatible name lister
3235
 
AC_DEFUN([AC_PROG_NM],
3236
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3820
# find the pathname to a BSD- or MS-compatible name lister
 
3821
AC_DEFUN([LT_PATH_NM],
 
3822
[AC_REQUIRE([AC_PROG_CC])dnl
 
3823
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3237
3824
[if test -n "$NM"; then
3238
3825
  # Let the user override the test.
3239
3826
  lt_cv_path_NM="$NM"
3275
3862
    done
3276
3863
    IFS="$lt_save_ifs"
3277
3864
  done
3278
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3865
  : ${lt_cv_path_NM=no}
3279
3866
fi])
3280
 
NM="$lt_cv_path_NM"
3281
 
])# AC_PROG_NM
3282
 
 
3283
 
 
3284
 
# AC_CHECK_LIBM
3285
 
# -------------
 
3867
if test "$lt_cv_path_NM" != "no"; then
 
3868
  NM="$lt_cv_path_NM"
 
3869
else
 
3870
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
3871
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3872
  AC_SUBST([DUMPBIN])
 
3873
  if test "$DUMPBIN" != ":"; then
 
3874
    NM="$DUMPBIN"
 
3875
  fi
 
3876
fi
 
3877
test -z "$NM" && NM=nm
 
3878
AC_SUBST([NM])
 
3879
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
3880
 
 
3881
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
3882
  [lt_cv_nm_interface="BSD nm"
 
3883
  echo "int some_variable = 0;" > conftest.$ac_ext
 
3884
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3885
  (eval "$ac_compile" 2>conftest.err)
 
3886
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3887
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3888
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
3889
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3890
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3891
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
3892
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
3893
    lt_cv_nm_interface="MS dumpbin"
 
3894
  fi
 
3895
  rm -f conftest*])
 
3896
])# LT_PATH_NM
 
3897
 
 
3898
# Old names:
 
3899
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
3900
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
3901
dnl aclocal-1.4 backwards compatibility:
 
3902
dnl AC_DEFUN([AM_PROG_NM], [])
 
3903
dnl AC_DEFUN([AC_PROG_NM], [])
 
3904
 
 
3905
 
 
3906
# LT_LIB_M
 
3907
# --------
3286
3908
# check for math library
3287
 
AC_DEFUN([AC_CHECK_LIBM],
 
3909
AC_DEFUN([LT_LIB_M],
3288
3910
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3289
3911
LIBM=
3290
3912
case $host in
3299
3921
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3300
3922
  ;;
3301
3923
esac
3302
 
])# AC_CHECK_LIBM
3303
 
 
3304
 
 
3305
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3306
 
# -----------------------------------
3307
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3308
 
# LTDLINCL to the include flags for the libltdl header and adds
3309
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3310
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3311
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3312
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3313
 
# (note the single quotes!).  If your package is not flat and you're not
3314
 
# using automake, define top_builddir and top_srcdir appropriately in
3315
 
# the Makefiles.
3316
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3317
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3318
 
  case $enable_ltdl_convenience in
3319
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3320
 
  "") enable_ltdl_convenience=yes
3321
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3322
 
  esac
3323
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3324
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3325
 
  # For backwards non-gettext consistent compatibility...
3326
 
  INCLTDL="$LTDLINCL"
3327
 
])# AC_LIBLTDL_CONVENIENCE
3328
 
 
3329
 
 
3330
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3331
 
# -----------------------------------
3332
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3333
 
# LTDLINCL to the include flags for the libltdl header and adds
3334
 
# --enable-ltdl-install to the configure arguments.  Note that
3335
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3336
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3337
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3338
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3339
 
# flat and you're not using automake, define top_builddir and top_srcdir
3340
 
# appropriately in the Makefiles.
3341
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3342
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3343
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3344
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3345
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3346
 
  [if test x"$enable_ltdl_install" = xno; then
3347
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3348
 
   else
3349
 
     enable_ltdl_install=yes
3350
 
   fi
3351
 
  ])
3352
 
  if test x"$enable_ltdl_install" = x"yes"; then
3353
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3354
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3355
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3356
 
  else
3357
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3358
 
    LIBLTDL="-lltdl"
3359
 
    LTDLINCL=
3360
 
  fi
3361
 
  # For backwards non-gettext consistent compatibility...
3362
 
  INCLTDL="$LTDLINCL"
3363
 
])# AC_LIBLTDL_INSTALLABLE
3364
 
 
3365
 
 
3366
 
# AC_LIBTOOL_CXX
3367
 
# --------------
3368
 
# enable support for C++ libraries
3369
 
AC_DEFUN([AC_LIBTOOL_CXX],
3370
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3371
 
])# AC_LIBTOOL_CXX
3372
 
 
3373
 
 
3374
 
# _LT_AC_LANG_CXX
3375
 
# ---------------
3376
 
AC_DEFUN([_LT_AC_LANG_CXX],
3377
 
[AC_REQUIRE([AC_PROG_CXX])
3378
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3379
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3380
 
])# _LT_AC_LANG_CXX
3381
 
 
3382
 
# _LT_AC_PROG_CXXCPP
3383
 
# ------------------
3384
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3385
 
[
3386
 
AC_REQUIRE([AC_PROG_CXX])
3387
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3388
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3389
 
    (test "X$CXX" != "Xg++"))) ; then
3390
 
  AC_PROG_CXXCPP
3391
 
fi
3392
 
])# _LT_AC_PROG_CXXCPP
3393
 
 
3394
 
# AC_LIBTOOL_F77
3395
 
# --------------
3396
 
# enable support for Fortran 77 libraries
3397
 
AC_DEFUN([AC_LIBTOOL_F77],
3398
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3399
 
])# AC_LIBTOOL_F77
3400
 
 
3401
 
 
3402
 
# _LT_AC_LANG_F77
3403
 
# ---------------
3404
 
AC_DEFUN([_LT_AC_LANG_F77],
3405
 
[AC_REQUIRE([AC_PROG_F77])
3406
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3407
 
])# _LT_AC_LANG_F77
3408
 
 
3409
 
 
3410
 
# AC_LIBTOOL_GCJ
3411
 
# --------------
3412
 
# enable support for GCJ libraries
3413
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3414
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3415
 
])# AC_LIBTOOL_GCJ
3416
 
 
3417
 
 
3418
 
# _LT_AC_LANG_GCJ
3419
 
# ---------------
3420
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3421
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3422
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3423
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3424
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3425
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3426
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3427
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3428
 
])# _LT_AC_LANG_GCJ
3429
 
 
3430
 
 
3431
 
# AC_LIBTOOL_RC
3432
 
# -------------
3433
 
# enable support for Windows resource files
3434
 
AC_DEFUN([AC_LIBTOOL_RC],
3435
 
[AC_REQUIRE([LT_AC_PROG_RC])
3436
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3437
 
])# AC_LIBTOOL_RC
3438
 
 
3439
 
 
3440
 
# AC_LIBTOOL_LANG_C_CONFIG
3441
 
# ------------------------
3442
 
# Ensure that the configuration vars for the C compiler are
3443
 
# suitably defined.  Those variables are subsequently used by
3444
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3445
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3446
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3447
 
[lt_save_CC="$CC"
3448
 
AC_LANG_PUSH(C)
3449
 
 
3450
 
# Source file extension for C test sources.
3451
 
ac_ext=c
3452
 
 
3453
 
# Object file extension for compiled C test sources.
3454
 
objext=o
3455
 
_LT_AC_TAGVAR(objext, $1)=$objext
3456
 
 
3457
 
# Code to be used in simple compile tests
3458
 
lt_simple_compile_test_code="int some_variable = 0;"
3459
 
 
3460
 
# Code to be used in simple link tests
3461
 
lt_simple_link_test_code='int main(){return(0);}'
3462
 
 
3463
 
_LT_AC_SYS_COMPILER
3464
 
 
3465
 
# save warnings/boilerplate of simple test code
3466
 
_LT_COMPILER_BOILERPLATE
3467
 
_LT_LINKER_BOILERPLATE
3468
 
 
3469
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3470
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3471
 
AC_LIBTOOL_PROG_CC_C_O($1)
3472
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3473
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3474
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3475
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3476
 
AC_LIBTOOL_SYS_LIB_STRIP
3477
 
AC_LIBTOOL_DLOPEN_SELF
3478
 
 
3479
 
# Report which library types will actually be built
3480
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3481
 
AC_MSG_RESULT([$can_build_shared])
3482
 
 
3483
 
AC_MSG_CHECKING([whether to build shared libraries])
3484
 
test "$can_build_shared" = "no" && enable_shared=no
3485
 
 
3486
 
# On AIX, shared libraries and static libraries use the same namespace, and
3487
 
# are all built from PIC.
3488
 
case $host_os in
3489
 
aix3*)
3490
 
  test "$enable_shared" = yes && enable_static=no
3491
 
  if test -n "$RANLIB"; then
3492
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3493
 
    postinstall_cmds='$RANLIB $lib'
3494
 
  fi
3495
 
  ;;
3496
 
 
3497
 
aix[[4-9]]*)
3498
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3499
 
    test "$enable_shared" = yes && enable_static=no
3500
 
  fi
3501
 
    ;;
3502
 
esac
3503
 
AC_MSG_RESULT([$enable_shared])
3504
 
 
3505
 
AC_MSG_CHECKING([whether to build static libraries])
3506
 
# Make sure either enable_shared or enable_static is yes.
3507
 
test "$enable_shared" = yes || enable_static=yes
3508
 
AC_MSG_RESULT([$enable_static])
3509
 
 
3510
 
AC_LIBTOOL_CONFIG($1)
3511
 
 
3512
 
AC_LANG_POP
3513
 
CC="$lt_save_CC"
3514
 
])# AC_LIBTOOL_LANG_C_CONFIG
3515
 
 
3516
 
 
3517
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3518
 
# --------------------------
3519
 
# Ensure that the configuration vars for the C compiler are
3520
 
# suitably defined.  Those variables are subsequently used by
3521
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3522
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3523
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3524
 
[AC_LANG_PUSH(C++)
3525
 
AC_REQUIRE([AC_PROG_CXX])
3526
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3527
 
 
3528
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3529
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3530
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3531
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3532
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3533
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3534
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3535
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3536
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3537
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3538
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3539
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3540
 
_LT_AC_TAGVAR(module_cmds, $1)=
3541
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3542
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3543
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3544
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3545
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3546
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3547
 
 
3548
 
# Dependencies to place before and after the object being linked:
3549
 
_LT_AC_TAGVAR(predep_objects, $1)=
3550
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3551
 
_LT_AC_TAGVAR(predeps, $1)=
3552
 
_LT_AC_TAGVAR(postdeps, $1)=
3553
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3554
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3555
 
 
3556
 
# Source file extension for C++ test sources.
3557
 
ac_ext=cpp
3558
 
 
3559
 
# Object file extension for compiled C++ test sources.
3560
 
objext=o
3561
 
_LT_AC_TAGVAR(objext, $1)=$objext
3562
 
 
3563
 
# Code to be used in simple compile tests
3564
 
lt_simple_compile_test_code="int some_variable = 0;"
3565
 
 
3566
 
# Code to be used in simple link tests
3567
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3568
 
 
3569
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3570
 
_LT_AC_SYS_COMPILER
3571
 
 
3572
 
# save warnings/boilerplate of simple test code
3573
 
_LT_COMPILER_BOILERPLATE
3574
 
_LT_LINKER_BOILERPLATE
3575
 
 
3576
 
# Allow CC to be a program name with arguments.
3577
 
lt_save_CC=$CC
3578
 
lt_save_LD=$LD
3579
 
lt_save_GCC=$GCC
3580
 
GCC=$GXX
3581
 
lt_save_with_gnu_ld=$with_gnu_ld
3582
 
lt_save_path_LD=$lt_cv_path_LD
3583
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3584
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3585
 
else
3586
 
  $as_unset lt_cv_prog_gnu_ld
3587
 
fi
3588
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3589
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3590
 
else
3591
 
  $as_unset lt_cv_path_LD
3592
 
fi
3593
 
test -z "${LDCXX+set}" || LD=$LDCXX
3594
 
CC=${CXX-"c++"}
3595
 
compiler=$CC
3596
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3597
 
_LT_CC_BASENAME([$compiler])
3598
 
 
3599
 
# We don't want -fno-exception wen compiling C++ code, so set the
3600
 
# no_builtin_flag separately
3601
 
if test "$GXX" = yes; then
3602
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3603
 
else
3604
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3605
 
fi
3606
 
 
3607
 
if test "$GXX" = yes; then
3608
 
  # Set up default GNU C++ configuration
3609
 
 
3610
 
  AC_PROG_LD
3611
 
 
3612
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3613
 
  # archiving commands below assume that GNU ld is being used.
3614
 
  if test "$with_gnu_ld" = yes; then
3615
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3616
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3617
 
 
3618
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3619
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3620
 
 
3621
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3622
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3623
 
    #     investigate it a little bit more. (MM)
3624
 
    wlarc='${wl}'
3625
 
 
3626
 
    # ancient GNU ld didn't support --whole-archive et. al.
3627
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3628
 
        grep 'no-whole-archive' > /dev/null; then
3629
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3630
 
    else
3631
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3632
 
    fi
3633
 
  else
3634
 
    with_gnu_ld=no
3635
 
    wlarc=
3636
 
 
3637
 
    # A generic and very simple default shared library creation
3638
 
    # command for GNU C++ for the case where it uses the native
3639
 
    # linker, instead of GNU ld.  If possible, this setting should
3640
 
    # overridden to take advantage of the native linker features on
3641
 
    # the platform it is being used on.
3642
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3643
 
  fi
3644
 
 
3645
 
  # Commands to make compiler produce verbose output that lists
3646
 
  # what "hidden" libraries, object files and flags are used when
3647
 
  # linking a shared library.
3648
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3649
 
 
3650
 
else
3651
 
  GXX=no
3652
 
  with_gnu_ld=no
3653
 
  wlarc=
3654
 
fi
3655
 
 
3656
 
# PORTME: fill in a description of your system's C++ link characteristics
3657
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3658
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3659
 
case $host_os in
3660
 
  aix3*)
3661
 
    # FIXME: insert proper C++ library support
3662
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3663
 
    ;;
3664
 
  aix[[4-9]]*)
3665
 
    if test "$host_cpu" = ia64; then
3666
 
      # On IA64, the linker does run time linking by default, so we don't
3667
 
      # have to do anything special.
3668
 
      aix_use_runtimelinking=no
3669
 
      exp_sym_flag='-Bexport'
3670
 
      no_entry_flag=""
3671
 
    else
3672
 
      aix_use_runtimelinking=no
3673
 
 
3674
 
      # Test if we are trying to use run time linking or normal
3675
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3676
 
      # need to do runtime linking.
3677
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3678
 
        for ld_flag in $LDFLAGS; do
3679
 
          case $ld_flag in
3680
 
          *-brtl*)
3681
 
            aix_use_runtimelinking=yes
3682
 
            break
3683
 
            ;;
3684
 
          esac
3685
 
        done
3686
 
        ;;
3687
 
      esac
3688
 
 
3689
 
      exp_sym_flag='-bexport'
3690
 
      no_entry_flag='-bnoentry'
3691
 
    fi
3692
 
 
3693
 
    # When large executables or shared objects are built, AIX ld can
3694
 
    # have problems creating the table of contents.  If linking a library
3695
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3696
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3697
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3698
 
 
3699
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3700
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3701
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3702
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3703
 
 
3704
 
    if test "$GXX" = yes; then
3705
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3706
 
      # We only want to do this on AIX 4.2 and lower, the check
3707
 
      # below for broken collect2 doesn't work under 4.3+
3708
 
        collect2name=`${CC} -print-prog-name=collect2`
3709
 
        if test -f "$collect2name" && \
3710
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3711
 
        then
3712
 
          # We have reworked collect2
3713
 
          :
3714
 
        else
3715
 
          # We have old collect2
3716
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3717
 
          # It fails to find uninstalled libraries when the uninstalled
3718
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3719
 
          # to unsupported forces relinking
3720
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3721
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3722
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3723
 
        fi
3724
 
        ;;
3725
 
      esac
3726
 
      shared_flag='-shared'
3727
 
      if test "$aix_use_runtimelinking" = yes; then
3728
 
        shared_flag="$shared_flag "'${wl}-G'
3729
 
      fi
3730
 
    else
3731
 
      # not using gcc
3732
 
      if test "$host_cpu" = ia64; then
3733
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3734
 
        # chokes on -Wl,-G. The following line is correct:
3735
 
        shared_flag='-G'
3736
 
      else
3737
 
        if test "$aix_use_runtimelinking" = yes; then
3738
 
          shared_flag='${wl}-G'
3739
 
        else
3740
 
          shared_flag='${wl}-bM:SRE'
3741
 
        fi
3742
 
      fi
3743
 
    fi
3744
 
 
3745
 
    # It seems that -bexpall does not export symbols beginning with
3746
 
    # underscore (_), so it is better to generate a list of symbols to export.
3747
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3748
 
    if test "$aix_use_runtimelinking" = yes; then
3749
 
      # Warning - without using the other runtime loading flags (-brtl),
3750
 
      # -berok will link without error, but may produce a broken library.
3751
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3752
 
      # Determine the default libpath from the value encoded in an empty executable.
3753
 
      _LT_AC_SYS_LIBPATH_AIX
3754
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3755
 
 
3756
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3757
 
     else
3758
 
      if test "$host_cpu" = ia64; then
3759
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3760
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3761
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3762
 
      else
3763
 
        # Determine the default libpath from the value encoded in an empty executable.
3764
 
        _LT_AC_SYS_LIBPATH_AIX
3765
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3766
 
        # Warning - without using the other run time loading flags,
3767
 
        # -berok will link without error, but may produce a broken library.
3768
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3769
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3770
 
        # Exported symbols can be pulled into shared objects from archives
3771
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3772
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3773
 
        # This is similar to how AIX traditionally builds its shared libraries.
3774
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3775
 
      fi
3776
 
    fi
3777
 
    ;;
3778
 
 
3779
 
  beos*)
3780
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3781
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3782
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3783
 
      # support --undefined.  This deserves some investigation.  FIXME
3784
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3785
 
    else
3786
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3787
 
    fi
3788
 
    ;;
3789
 
 
3790
 
  chorus*)
3791
 
    case $cc_basename in
3792
 
      *)
3793
 
        # FIXME: insert proper C++ library support
3794
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3795
 
        ;;
3796
 
    esac
3797
 
    ;;
3798
 
 
3799
 
  cygwin* | mingw* | pw32*)
3800
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3801
 
    # as there is no search path for DLLs.
3802
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3803
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3804
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3805
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3806
 
 
3807
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3808
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3809
 
      # If the export-symbols file already is a .def file (1st line
3810
 
      # is EXPORTS), use it as is; otherwise, prepend...
3811
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3812
 
        cp $export_symbols $output_objdir/$soname.def;
3813
 
      else
3814
 
        echo EXPORTS > $output_objdir/$soname.def;
3815
 
        cat $export_symbols >> $output_objdir/$soname.def;
3816
 
      fi~
3817
 
      $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'
3818
 
    else
3819
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3820
 
    fi
3821
 
  ;;
3822
 
      darwin* | rhapsody*)
3823
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3824
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3825
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3826
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3827
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3828
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3829
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3830
 
      if test "$GXX" = yes ; then
3831
 
      output_verbose_link_cmd='echo'
3832
 
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3833
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3834
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3835
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3836
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3837
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3838
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3839
 
      fi
3840
 
      else
3841
 
      case $cc_basename in
3842
 
        xlc*)
3843
 
         output_verbose_link_cmd='echo'
3844
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3845
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3846
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3847
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3848
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3849
 
          ;;
3850
 
       *)
3851
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3852
 
          ;;
3853
 
      esac
3854
 
      fi
3855
 
        ;;
3856
 
 
3857
 
  dgux*)
3858
 
    case $cc_basename in
3859
 
      ec++*)
3860
 
        # FIXME: insert proper C++ library support
3861
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3862
 
        ;;
3863
 
      ghcx*)
3864
 
        # Green Hills C++ Compiler
3865
 
        # FIXME: insert proper C++ library support
3866
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3867
 
        ;;
3868
 
      *)
3869
 
        # FIXME: insert proper C++ library support
3870
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3871
 
        ;;
3872
 
    esac
3873
 
    ;;
3874
 
  freebsd[[12]]*)
3875
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3876
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3877
 
    ;;
3878
 
  freebsd-elf*)
3879
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3880
 
    ;;
3881
 
  freebsd* | dragonfly*)
3882
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3883
 
    # conventions
3884
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3885
 
    ;;
3886
 
  gnu*)
3887
 
    ;;
3888
 
  hpux9*)
3889
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3890
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3891
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3892
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3893
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3894
 
                                # but as the default
3895
 
                                # location of the library.
3896
 
 
3897
 
    case $cc_basename in
3898
 
    CC*)
3899
 
      # FIXME: insert proper C++ library support
3900
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3901
 
      ;;
3902
 
    aCC*)
3903
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3904
 
      # Commands to make compiler produce verbose output that lists
3905
 
      # what "hidden" libraries, object files and flags are used when
3906
 
      # linking a shared library.
3907
 
      #
3908
 
      # There doesn't appear to be a way to prevent this compiler from
3909
 
      # explicitly linking system object files so we need to strip them
3910
 
      # from the output so that they don't get included in the library
3911
 
      # dependencies.
3912
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3913
 
      ;;
3914
 
    *)
3915
 
      if test "$GXX" = yes; then
3916
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3917
 
      else
3918
 
        # FIXME: insert proper C++ library support
3919
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3920
 
      fi
3921
 
      ;;
3922
 
    esac
3923
 
    ;;
3924
 
  hpux10*|hpux11*)
3925
 
    if test $with_gnu_ld = no; then
3926
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3927
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3928
 
 
3929
 
      case $host_cpu in
3930
 
      hppa*64*|ia64*) ;;
3931
 
      *)
3932
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3933
 
        ;;
3934
 
      esac
3935
 
    fi
3936
 
    case $host_cpu in
3937
 
    hppa*64*|ia64*)
3938
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3939
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3940
 
      ;;
3941
 
    *)
3942
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3943
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3944
 
                                              # but as the default
3945
 
                                              # location of the library.
3946
 
      ;;
3947
 
    esac
3948
 
 
3949
 
    case $cc_basename in
3950
 
      CC*)
3951
 
        # FIXME: insert proper C++ library support
3952
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3953
 
        ;;
3954
 
      aCC*)
3955
 
        case $host_cpu in
3956
 
        hppa*64*)
3957
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3958
 
          ;;
3959
 
        ia64*)
3960
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3961
 
          ;;
3962
 
        *)
3963
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3964
 
          ;;
3965
 
        esac
3966
 
        # Commands to make compiler produce verbose output that lists
3967
 
        # what "hidden" libraries, object files and flags are used when
3968
 
        # linking a shared library.
3969
 
        #
3970
 
        # There doesn't appear to be a way to prevent this compiler from
3971
 
        # explicitly linking system object files so we need to strip them
3972
 
        # from the output so that they don't get included in the library
3973
 
        # dependencies.
3974
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3975
 
        ;;
3976
 
      *)
3977
 
        if test "$GXX" = yes; then
3978
 
          if test $with_gnu_ld = no; then
3979
 
            case $host_cpu in
3980
 
            hppa*64*)
3981
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3982
 
              ;;
3983
 
            ia64*)
3984
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3985
 
              ;;
3986
 
            *)
3987
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3988
 
              ;;
3989
 
            esac
3990
 
          fi
3991
 
        else
3992
 
          # FIXME: insert proper C++ library support
3993
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3994
 
        fi
3995
 
        ;;
3996
 
    esac
3997
 
    ;;
3998
 
  interix[[3-9]]*)
3999
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4000
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4001
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4002
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4003
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4004
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4005
 
    # default) and relocated if they conflict, which is a slow very memory
4006
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4007
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4008
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4009
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4010
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4011
 
    ;;
4012
 
  irix5* | irix6*)
4013
 
    case $cc_basename in
4014
 
      CC*)
4015
 
        # SGI C++
4016
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4017
 
 
4018
 
        # Archives containing C++ object files must be created using
4019
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4020
 
        # necessary to make sure instantiated templates are included
4021
 
        # in the archive.
4022
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4023
 
        ;;
4024
 
      *)
4025
 
        if test "$GXX" = yes; then
4026
 
          if test "$with_gnu_ld" = no; then
4027
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4028
 
          else
4029
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4030
 
          fi
4031
 
        fi
4032
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4033
 
        ;;
4034
 
    esac
4035
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4036
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4037
 
    ;;
4038
 
  linux* | k*bsd*-gnu)
4039
 
    case $cc_basename in
4040
 
      KCC*)
4041
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4042
 
 
4043
 
        # KCC will only create a shared library if the output file
4044
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4045
 
        # to its proper name (with version) after linking.
4046
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4047
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4048
 
        # Commands to make compiler produce verbose output that lists
4049
 
        # what "hidden" libraries, object files and flags are used when
4050
 
        # linking a shared library.
4051
 
        #
4052
 
        # There doesn't appear to be a way to prevent this compiler from
4053
 
        # explicitly linking system object files so we need to strip them
4054
 
        # from the output so that they don't get included in the library
4055
 
        # dependencies.
4056
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4057
 
 
4058
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4059
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4060
 
 
4061
 
        # Archives containing C++ object files must be created using
4062
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4063
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4064
 
        ;;
4065
 
      icpc*)
4066
 
        # Intel C++
4067
 
        with_gnu_ld=yes
4068
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4069
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4070
 
        # earlier do not add the objects themselves.
4071
 
        case `$CC -V 2>&1` in
4072
 
        *"Version 7."*)
4073
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4074
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4075
 
          ;;
4076
 
        *)  # Version 8.0 or newer
4077
 
          tmp_idyn=
4078
 
          case $host_cpu in
4079
 
            ia64*) tmp_idyn=' -i_dynamic';;
4080
 
          esac
4081
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4082
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4083
 
          ;;
4084
 
        esac
4085
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4086
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4087
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4088
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4089
 
        ;;
4090
 
      pgCC* | pgcpp*)
4091
 
        # Portland Group C++ compiler
4092
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4093
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4094
 
 
4095
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4096
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4097
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4098
 
        ;;
4099
 
      cxx*)
4100
 
        # Compaq C++
4101
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4102
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4103
 
 
4104
 
        runpath_var=LD_RUN_PATH
4105
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4106
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4107
 
 
4108
 
        # Commands to make compiler produce verbose output that lists
4109
 
        # what "hidden" libraries, object files and flags are used when
4110
 
        # linking a shared library.
4111
 
        #
4112
 
        # There doesn't appear to be a way to prevent this compiler from
4113
 
        # explicitly linking system object files so we need to strip them
4114
 
        # from the output so that they don't get included in the library
4115
 
        # dependencies.
4116
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4117
 
        ;;
4118
 
      *)
4119
 
        case `$CC -V 2>&1 | sed 5q` in
4120
 
        *Sun\ C*)
4121
 
          # Sun C++ 5.9
4122
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4123
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4124
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4125
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4126
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4127
 
 
4128
 
          # Not sure whether something based on
4129
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4130
 
          # would be better.
4131
 
          output_verbose_link_cmd='echo'
4132
 
 
4133
 
          # Archives containing C++ object files must be created using
4134
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4135
 
          # necessary to make sure instantiated templates are included
4136
 
          # in the archive.
4137
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4138
 
          ;;
4139
 
        esac
4140
 
        ;;
4141
 
    esac
4142
 
    ;;
4143
 
  lynxos*)
4144
 
    # FIXME: insert proper C++ library support
4145
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4146
 
    ;;
4147
 
  m88k*)
4148
 
    # FIXME: insert proper C++ library support
4149
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150
 
    ;;
4151
 
  mvs*)
4152
 
    case $cc_basename in
4153
 
      cxx*)
4154
 
        # FIXME: insert proper C++ library support
4155
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4156
 
        ;;
4157
 
      *)
4158
 
        # FIXME: insert proper C++ library support
4159
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4160
 
        ;;
4161
 
    esac
4162
 
    ;;
4163
 
  netbsd* | netbsdelf*-gnu)
4164
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4165
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4166
 
      wlarc=
4167
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4168
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4169
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4170
 
    fi
4171
 
    # Workaround some broken pre-1.5 toolchains
4172
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4173
 
    ;;
4174
 
  openbsd2*)
4175
 
    # C++ shared libraries are fairly broken
4176
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4177
 
    ;;
4178
 
  openbsd*)
4179
 
    if test -f /usr/libexec/ld.so; then
4180
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4181
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4182
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4183
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4184
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4186
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4187
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4188
 
      fi
4189
 
      output_verbose_link_cmd='echo'
4190
 
    else
4191
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4192
 
    fi
4193
 
    ;;
4194
 
  osf3*)
4195
 
    case $cc_basename in
4196
 
      KCC*)
4197
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4198
 
 
4199
 
        # KCC will only create a shared library if the output file
4200
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4201
 
        # to its proper name (with version) after linking.
4202
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4203
 
 
4204
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4205
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4206
 
 
4207
 
        # Archives containing C++ object files must be created using
4208
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4209
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4210
 
 
4211
 
        ;;
4212
 
      RCC*)
4213
 
        # Rational C++ 2.4.1
4214
 
        # FIXME: insert proper C++ library support
4215
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4216
 
        ;;
4217
 
      cxx*)
4218
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4219
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4220
 
 
4221
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4222
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4223
 
 
4224
 
        # Commands to make compiler produce verbose output that lists
4225
 
        # what "hidden" libraries, object files and flags are used when
4226
 
        # linking a shared library.
4227
 
        #
4228
 
        # There doesn't appear to be a way to prevent this compiler from
4229
 
        # explicitly linking system object files so we need to strip them
4230
 
        # from the output so that they don't get included in the library
4231
 
        # dependencies.
4232
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4233
 
        ;;
4234
 
      *)
4235
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4236
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4237
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4238
 
 
4239
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4240
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4241
 
 
4242
 
          # Commands to make compiler produce verbose output that lists
4243
 
          # what "hidden" libraries, object files and flags are used when
4244
 
          # linking a shared library.
4245
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4246
 
 
4247
 
        else
4248
 
          # FIXME: insert proper C++ library support
4249
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4250
 
        fi
4251
 
        ;;
4252
 
    esac
4253
 
    ;;
4254
 
  osf4* | osf5*)
4255
 
    case $cc_basename in
4256
 
      KCC*)
4257
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4258
 
 
4259
 
        # KCC will only create a shared library if the output file
4260
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4261
 
        # to its proper name (with version) after linking.
4262
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4263
 
 
4264
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4265
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4266
 
 
4267
 
        # Archives containing C++ object files must be created using
4268
 
        # the KAI C++ compiler.
4269
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4270
 
        ;;
4271
 
      RCC*)
4272
 
        # Rational C++ 2.4.1
4273
 
        # FIXME: insert proper C++ library support
4274
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4275
 
        ;;
4276
 
      cxx*)
4277
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4278
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4279
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4280
 
          echo "-hidden">> $lib.exp~
4281
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4282
 
          $rm $lib.exp'
4283
 
 
4284
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4285
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4286
 
 
4287
 
        # Commands to make compiler produce verbose output that lists
4288
 
        # what "hidden" libraries, object files and flags are used when
4289
 
        # linking a shared library.
4290
 
        #
4291
 
        # There doesn't appear to be a way to prevent this compiler from
4292
 
        # explicitly linking system object files so we need to strip them
4293
 
        # from the output so that they don't get included in the library
4294
 
        # dependencies.
4295
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4296
 
        ;;
4297
 
      *)
4298
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4299
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4300
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4301
 
 
4302
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4303
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4304
 
 
4305
 
          # Commands to make compiler produce verbose output that lists
4306
 
          # what "hidden" libraries, object files and flags are used when
4307
 
          # linking a shared library.
4308
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4309
 
 
4310
 
        else
4311
 
          # FIXME: insert proper C++ library support
4312
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4313
 
        fi
4314
 
        ;;
4315
 
    esac
4316
 
    ;;
4317
 
  psos*)
4318
 
    # FIXME: insert proper C++ library support
4319
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4320
 
    ;;
4321
 
  sunos4*)
4322
 
    case $cc_basename in
4323
 
      CC*)
4324
 
        # Sun C++ 4.x
4325
 
        # FIXME: insert proper C++ library support
4326
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4327
 
        ;;
4328
 
      lcc*)
4329
 
        # Lucid
4330
 
        # FIXME: insert proper C++ library support
4331
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4332
 
        ;;
4333
 
      *)
4334
 
        # FIXME: insert proper C++ library support
4335
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4336
 
        ;;
4337
 
    esac
4338
 
    ;;
4339
 
  solaris*)
4340
 
    case $cc_basename in
4341
 
      CC*)
4342
 
        # Sun C++ 4.2, 5.x and Centerline C++
4343
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4344
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4345
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4346
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4347
 
        $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'
4348
 
 
4349
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4350
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4351
 
        case $host_os in
4352
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4353
 
          *)
4354
 
            # The compiler driver will combine and reorder linker options,
4355
 
            # but understands `-z linker_flag'.
4356
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4357
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4358
 
            ;;
4359
 
        esac
4360
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4361
 
 
4362
 
        output_verbose_link_cmd='echo'
4363
 
 
4364
 
        # Archives containing C++ object files must be created using
4365
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4366
 
        # necessary to make sure instantiated templates are included
4367
 
        # in the archive.
4368
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4369
 
        ;;
4370
 
      gcx*)
4371
 
        # Green Hills C++ Compiler
4372
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4373
 
 
4374
 
        # The C++ compiler must be used to create the archive.
4375
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4376
 
        ;;
4377
 
      *)
4378
 
        # GNU C++ compiler with Solaris linker
4379
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4380
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4381
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4382
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4383
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4384
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4385
 
 
4386
 
            # Commands to make compiler produce verbose output that lists
4387
 
            # what "hidden" libraries, object files and flags are used when
4388
 
            # linking a shared library.
4389
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4390
 
          else
4391
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4392
 
            # platform.
4393
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4394
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4395
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4396
 
 
4397
 
            # Commands to make compiler produce verbose output that lists
4398
 
            # what "hidden" libraries, object files and flags are used when
4399
 
            # linking a shared library.
4400
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4401
 
          fi
4402
 
 
4403
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4404
 
          case $host_os in
4405
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4406
 
          *)
4407
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4408
 
            ;;
4409
 
          esac
4410
 
        fi
4411
 
        ;;
4412
 
    esac
4413
 
    ;;
4414
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4415
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4416
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4417
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4418
 
    runpath_var='LD_RUN_PATH'
4419
 
 
4420
 
    case $cc_basename in
4421
 
      CC*)
4422
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4423
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4424
 
        ;;
4425
 
      *)
4426
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4427
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4428
 
        ;;
4429
 
    esac
4430
 
    ;;
4431
 
  sysv5* | sco3.2v5* | sco5v6*)
4432
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4433
 
    # link with -lc, and that would cause any symbols used from libc to
4434
 
    # always be unresolved, which means just about no library would
4435
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4436
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4437
 
    # as -z defs.
4438
 
    # For security reasons, it is highly recommended that you always
4439
 
    # use absolute paths for naming shared libraries, and exclude the
4440
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4441
 
    # requires that you compile everything twice, which is a pain.
4442
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4443
 
    # non-empty value in the environment.  Most likely only useful for
4444
 
    # creating official distributions of packages.
4445
 
    # This is a hack until libtool officially supports absolute path
4446
 
    # names for shared libraries.
4447
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4448
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4449
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4450
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4451
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4452
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4453
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4454
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4455
 
    runpath_var='LD_RUN_PATH'
4456
 
 
4457
 
    case $cc_basename in
4458
 
      CC*)
4459
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4460
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4461
 
        ;;
4462
 
      *)
4463
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4464
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4465
 
        ;;
4466
 
    esac
4467
 
    ;;
4468
 
  tandem*)
4469
 
    case $cc_basename in
4470
 
      NCC*)
4471
 
        # NonStop-UX NCC 3.20
4472
 
        # FIXME: insert proper C++ library support
4473
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4474
 
        ;;
4475
 
      *)
4476
 
        # FIXME: insert proper C++ library support
4477
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4478
 
        ;;
4479
 
    esac
4480
 
    ;;
4481
 
  vxworks*)
4482
 
    # FIXME: insert proper C++ library support
4483
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4484
 
    ;;
4485
 
  *)
4486
 
    # FIXME: insert proper C++ library support
4487
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4488
 
    ;;
4489
 
esac
4490
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4491
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4492
 
 
4493
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4494
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4495
 
 
4496
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4497
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4498
 
AC_LIBTOOL_PROG_CC_C_O($1)
4499
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4500
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4501
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4502
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4503
 
 
4504
 
AC_LIBTOOL_CONFIG($1)
4505
 
 
4506
 
AC_LANG_POP
4507
 
CC=$lt_save_CC
4508
 
LDCXX=$LD
4509
 
LD=$lt_save_LD
4510
 
GCC=$lt_save_GCC
4511
 
with_gnu_ldcxx=$with_gnu_ld
4512
 
with_gnu_ld=$lt_save_with_gnu_ld
4513
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4514
 
lt_cv_path_LD=$lt_save_path_LD
4515
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4516
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4517
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4518
 
 
4519
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4520
 
# ------------------------------------
4521
 
# Figure out "hidden" library dependencies from verbose
4522
 
# compiler output when linking a shared library.
4523
 
# Parse the compiler output and extract the necessary
4524
 
# objects, libraries and library flags.
4525
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4526
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4527
 
dnl we can't use the lt_simple_compile_test_code here,
4528
 
dnl because it contains code intended for an executable,
4529
 
dnl not a library.  It's possible we should let each
4530
 
dnl tag define a new lt_????_link_test_code variable,
4531
 
dnl but it's only used here...
4532
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4533
 
int a;
4534
 
void foo (void) { a = 0; }
4535
 
EOF
4536
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4537
 
class Foo
4538
 
{
4539
 
public:
4540
 
  Foo (void) { a = 0; }
4541
 
private:
4542
 
  int a;
4543
 
};
4544
 
EOF
4545
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4546
 
      subroutine foo
4547
 
      implicit none
4548
 
      integer*4 a
4549
 
      a=0
4550
 
      return
4551
 
      end
4552
 
EOF
4553
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4554
 
public class foo {
4555
 
  private int a;
4556
 
  public void bar (void) {
4557
 
    a = 0;
4558
 
  }
4559
 
};
4560
 
EOF
4561
 
])
4562
 
dnl Parse the compiler output and extract the necessary
4563
 
dnl objects, libraries and library flags.
4564
 
if AC_TRY_EVAL(ac_compile); then
4565
 
  # Parse the compiler output and extract the necessary
4566
 
  # objects, libraries and library flags.
4567
 
 
4568
 
  # Sentinel used to keep track of whether or not we are before
4569
 
  # the conftest object file.
4570
 
  pre_test_object_deps_done=no
4571
 
 
4572
 
  # The `*' in the case matches for architectures that use `case' in
4573
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4574
 
  # eval without this substitution.
4575
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4576
 
 
4577
 
  for p in `eval $output_verbose_link_cmd`; do
4578
 
    case $p in
4579
 
 
4580
 
    -L* | -R* | -l*)
4581
 
       # Some compilers place space between "-{L,R}" and the path.
4582
 
       # Remove the space.
4583
 
       if test $p = "-L" \
4584
 
          || test $p = "-R"; then
4585
 
         prev=$p
4586
 
         continue
4587
 
       else
4588
 
         prev=
4589
 
       fi
4590
 
 
4591
 
       if test "$pre_test_object_deps_done" = no; then
4592
 
         case $p in
4593
 
         -L* | -R*)
4594
 
           # Internal compiler library paths should come after those
4595
 
           # provided the user.  The postdeps already come after the
4596
 
           # user supplied libs so there is no need to process them.
4597
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4598
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4599
 
           else
4600
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4601
 
           fi
4602
 
           ;;
4603
 
         # The "-l" case would never come before the object being
4604
 
         # linked, so don't bother handling this case.
4605
 
         esac
4606
 
       else
4607
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4608
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4609
 
         else
4610
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4611
 
         fi
4612
 
       fi
4613
 
       ;;
4614
 
 
4615
 
    *.$objext)
4616
 
       # This assumes that the test object file only shows up
4617
 
       # once in the compiler output.
4618
 
       if test "$p" = "conftest.$objext"; then
4619
 
         pre_test_object_deps_done=yes
4620
 
         continue
4621
 
       fi
4622
 
 
4623
 
       if test "$pre_test_object_deps_done" = no; then
4624
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4625
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4626
 
         else
4627
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4628
 
         fi
4629
 
       else
4630
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4631
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4632
 
         else
4633
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4634
 
         fi
4635
 
       fi
4636
 
       ;;
4637
 
 
4638
 
    *) ;; # Ignore the rest.
4639
 
 
4640
 
    esac
4641
 
  done
4642
 
 
4643
 
  # Clean up.
4644
 
  rm -f a.out a.exe
4645
 
else
4646
 
  echo "libtool.m4: error: problem compiling $1 test program"
4647
 
fi
4648
 
 
4649
 
$rm -f confest.$objext
4650
 
 
4651
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4652
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4653
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4654
 
fi
4655
 
 
4656
 
# PORTME: override above test on systems where it is broken
4657
 
ifelse([$1],[CXX],
4658
 
[case $host_os in
4659
 
interix[[3-9]]*)
4660
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4661
 
  # hack all around it, let's just trust "g++" to DTRT.
4662
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4663
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4664
 
  _LT_AC_TAGVAR(postdeps,$1)=
4665
 
  ;;
4666
 
 
4667
 
linux*)
4668
 
  case `$CC -V 2>&1 | sed 5q` in
4669
 
  *Sun\ C*)
4670
 
    # Sun C++ 5.9
4671
 
    #
4672
 
    # The more standards-conforming stlport4 library is
4673
 
    # incompatible with the Cstd library. Avoid specifying
4674
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4675
 
    # -library=stlport4 depends on it.
4676
 
    case " $CXX $CXXFLAGS " in
4677
 
    *" -library=stlport4 "*)
4678
 
      solaris_use_stlport4=yes
4679
 
      ;;
4680
 
    esac
4681
 
    if test "$solaris_use_stlport4" != yes; then
4682
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4683
 
    fi
4684
 
    ;;
4685
 
  esac
4686
 
  ;;
4687
 
 
4688
 
solaris*)
4689
 
  case $cc_basename in
4690
 
  CC*)
4691
 
    # The more standards-conforming stlport4 library is
4692
 
    # incompatible with the Cstd library. Avoid specifying
4693
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4694
 
    # -library=stlport4 depends on it.
4695
 
    case " $CXX $CXXFLAGS " in
4696
 
    *" -library=stlport4 "*)
4697
 
      solaris_use_stlport4=yes
4698
 
      ;;
4699
 
    esac
4700
 
 
4701
 
    # Adding this requires a known-good setup of shared libraries for
4702
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4703
 
    # archive will be linked into the output, leading to subtle bugs.
4704
 
    if test "$solaris_use_stlport4" != yes; then
4705
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4706
 
    fi
4707
 
    ;;
4708
 
  esac
4709
 
  ;;
4710
 
esac
4711
 
])
4712
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4713
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4714
 
esac
4715
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4716
 
 
4717
 
# AC_LIBTOOL_LANG_F77_CONFIG
4718
 
# --------------------------
4719
 
# Ensure that the configuration vars for the C compiler are
4720
 
# suitably defined.  Those variables are subsequently used by
4721
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4722
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4723
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4724
 
[AC_REQUIRE([AC_PROG_F77])
4725
 
AC_LANG_PUSH(Fortran 77)
4726
 
 
4727
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4728
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4729
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4730
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4731
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4732
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4733
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4734
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4735
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4736
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4737
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4738
 
_LT_AC_TAGVAR(module_cmds, $1)=
4739
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4740
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4741
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4742
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4743
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4744
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4745
 
 
4746
 
# Source file extension for f77 test sources.
4747
 
ac_ext=f
4748
 
 
4749
 
# Object file extension for compiled f77 test sources.
4750
 
objext=o
4751
 
_LT_AC_TAGVAR(objext, $1)=$objext
4752
 
 
4753
 
# Code to be used in simple compile tests
4754
 
lt_simple_compile_test_code="\
4755
 
      subroutine t
4756
 
      return
4757
 
      end
4758
 
"
4759
 
 
4760
 
# Code to be used in simple link tests
4761
 
lt_simple_link_test_code="\
4762
 
      program t
4763
 
      end
4764
 
"
4765
 
 
4766
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4767
 
_LT_AC_SYS_COMPILER
4768
 
 
4769
 
# save warnings/boilerplate of simple test code
4770
 
_LT_COMPILER_BOILERPLATE
4771
 
_LT_LINKER_BOILERPLATE
4772
 
 
4773
 
# Allow CC to be a program name with arguments.
4774
 
lt_save_CC="$CC"
4775
 
CC=${F77-"f77"}
4776
 
compiler=$CC
4777
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4778
 
_LT_CC_BASENAME([$compiler])
4779
 
 
4780
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4781
 
AC_MSG_RESULT([$can_build_shared])
4782
 
 
4783
 
AC_MSG_CHECKING([whether to build shared libraries])
4784
 
test "$can_build_shared" = "no" && enable_shared=no
4785
 
 
4786
 
# On AIX, shared libraries and static libraries use the same namespace, and
4787
 
# are all built from PIC.
4788
 
case $host_os in
4789
 
aix3*)
4790
 
  test "$enable_shared" = yes && enable_static=no
4791
 
  if test -n "$RANLIB"; then
4792
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4793
 
    postinstall_cmds='$RANLIB $lib'
4794
 
  fi
4795
 
  ;;
4796
 
aix[[4-9]]*)
4797
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4798
 
    test "$enable_shared" = yes && enable_static=no
4799
 
  fi
4800
 
  ;;
4801
 
esac
4802
 
AC_MSG_RESULT([$enable_shared])
4803
 
 
4804
 
AC_MSG_CHECKING([whether to build static libraries])
4805
 
# Make sure either enable_shared or enable_static is yes.
4806
 
test "$enable_shared" = yes || enable_static=yes
4807
 
AC_MSG_RESULT([$enable_static])
4808
 
 
4809
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4810
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4811
 
 
4812
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4813
 
AC_LIBTOOL_PROG_CC_C_O($1)
4814
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4815
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4816
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4817
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4818
 
 
4819
 
AC_LIBTOOL_CONFIG($1)
4820
 
 
4821
 
AC_LANG_POP
4822
 
CC="$lt_save_CC"
4823
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4824
 
 
4825
 
 
4826
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4827
 
# --------------------------
4828
 
# Ensure that the configuration vars for the C compiler are
4829
 
# suitably defined.  Those variables are subsequently used by
4830
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4831
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4832
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4833
 
[AC_LANG_SAVE
4834
 
 
4835
 
# Source file extension for Java test sources.
4836
 
ac_ext=java
4837
 
 
4838
 
# Object file extension for compiled Java test sources.
4839
 
objext=o
4840
 
_LT_AC_TAGVAR(objext, $1)=$objext
4841
 
 
4842
 
# Code to be used in simple compile tests
4843
 
lt_simple_compile_test_code="class foo {}"
4844
 
 
4845
 
# Code to be used in simple link tests
4846
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4847
 
 
4848
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4849
 
_LT_AC_SYS_COMPILER
4850
 
 
4851
 
# save warnings/boilerplate of simple test code
4852
 
_LT_COMPILER_BOILERPLATE
4853
 
_LT_LINKER_BOILERPLATE
4854
 
 
4855
 
# Allow CC to be a program name with arguments.
4856
 
lt_save_CC="$CC"
4857
 
CC=${GCJ-"gcj"}
4858
 
compiler=$CC
4859
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4860
 
_LT_CC_BASENAME([$compiler])
4861
 
 
4862
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4863
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4864
 
 
4865
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4866
 
 
4867
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4868
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4869
 
AC_LIBTOOL_PROG_CC_C_O($1)
4870
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4871
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4872
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4873
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4874
 
 
4875
 
AC_LIBTOOL_CONFIG($1)
4876
 
 
4877
 
AC_LANG_RESTORE
4878
 
CC="$lt_save_CC"
4879
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4880
 
 
4881
 
 
4882
 
# AC_LIBTOOL_LANG_RC_CONFIG
4883
 
# -------------------------
4884
 
# Ensure that the configuration vars for the Windows resource compiler are
4885
 
# suitably defined.  Those variables are subsequently used by
4886
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4887
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4888
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4889
 
[AC_LANG_SAVE
4890
 
 
4891
 
# Source file extension for RC test sources.
4892
 
ac_ext=rc
4893
 
 
4894
 
# Object file extension for compiled RC test sources.
4895
 
objext=o
4896
 
_LT_AC_TAGVAR(objext, $1)=$objext
4897
 
 
4898
 
# Code to be used in simple compile tests
4899
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4900
 
 
4901
 
# Code to be used in simple link tests
4902
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4903
 
 
4904
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4905
 
_LT_AC_SYS_COMPILER
4906
 
 
4907
 
# save warnings/boilerplate of simple test code
4908
 
_LT_COMPILER_BOILERPLATE
4909
 
_LT_LINKER_BOILERPLATE
4910
 
 
4911
 
# Allow CC to be a program name with arguments.
4912
 
lt_save_CC="$CC"
4913
 
CC=${RC-"windres"}
4914
 
compiler=$CC
4915
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4916
 
_LT_CC_BASENAME([$compiler])
4917
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4918
 
 
4919
 
AC_LIBTOOL_CONFIG($1)
4920
 
 
4921
 
AC_LANG_RESTORE
4922
 
CC="$lt_save_CC"
4923
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4924
 
 
4925
 
 
4926
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4927
 
# ----------------------------
4928
 
# If TAGNAME is not passed, then create an initial libtool script
4929
 
# with a default configuration from the untagged config vars.  Otherwise
4930
 
# add code to config.status for appending the configuration named by
4931
 
# TAGNAME from the matching tagged config vars.
4932
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4933
 
[# The else clause should only fire when bootstrapping the
4934
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4935
 
# with your package, and you will get complaints that there are
4936
 
# no rules to generate ltmain.sh.
4937
 
if test -f "$ltmain"; then
4938
 
  # See if we are running on zsh, and set the options which allow our commands through
4939
 
  # without removal of \ escapes.
4940
 
  if test -n "${ZSH_VERSION+set}" ; then
4941
 
    setopt NO_GLOB_SUBST
4942
 
  fi
4943
 
  # Now quote all the things that may contain metacharacters while being
4944
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4945
 
  # variables and quote the copies for generation of the libtool script.
4946
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4947
 
    SED SHELL STRIP \
4948
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4949
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4950
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4951
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4952
 
    lt_cv_sys_global_symbol_to_c_name_address \
4953
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4954
 
    old_postinstall_cmds old_postuninstall_cmds \
4955
 
    _LT_AC_TAGVAR(compiler, $1) \
4956
 
    _LT_AC_TAGVAR(CC, $1) \
4957
 
    _LT_AC_TAGVAR(LD, $1) \
4958
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4959
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4960
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4961
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4962
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4963
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4964
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4965
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4966
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4967
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4968
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4969
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4970
 
    _LT_AC_TAGVAR(predeps, $1) \
4971
 
    _LT_AC_TAGVAR(postdeps, $1) \
4972
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4973
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4974
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4975
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4976
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4977
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4978
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4979
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4980
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4981
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4982
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4983
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4984
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4985
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4986
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4987
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4988
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4989
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4990
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4991
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4992
 
 
4993
 
    case $var in
4994
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4995
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4996
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4997
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4998
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4999
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5000
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5001
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5002
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5003
 
    postinstall_cmds | postuninstall_cmds | \
5004
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5005
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5006
 
      # Double-quote double-evaled strings.
5007
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5008
 
      ;;
5009
 
    *)
5010
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5011
 
      ;;
5012
 
    esac
5013
 
  done
5014
 
 
5015
 
  case $lt_echo in
5016
 
  *'\[$]0 --fallback-echo"')
5017
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5018
 
    ;;
5019
 
  esac
5020
 
 
5021
 
ifelse([$1], [],
5022
 
  [cfgfile="${ofile}T"
5023
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5024
 
  $rm -f "$cfgfile"
5025
 
  AC_MSG_NOTICE([creating $ofile])],
5026
 
  [cfgfile="$ofile"])
5027
 
 
5028
 
  cat <<__EOF__ >> "$cfgfile"
5029
 
ifelse([$1], [],
5030
 
[#! $SHELL
5031
 
 
5032
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5033
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5034
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5035
 
#
5036
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5037
 
# Free Software Foundation, Inc.
5038
 
#
5039
 
# This file is part of GNU Libtool:
5040
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5041
 
#
5042
 
# This program is free software; you can redistribute it and/or modify
5043
 
# it under the terms of the GNU General Public License as published by
5044
 
# the Free Software Foundation; either version 2 of the License, or
5045
 
# (at your option) any later version.
5046
 
#
5047
 
# This program is distributed in the hope that it will be useful, but
5048
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5049
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5050
 
# General Public License for more details.
5051
 
#
5052
 
# You should have received a copy of the GNU General Public License
5053
 
# along with this program; if not, write to the Free Software
5054
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5055
 
#
5056
 
# As a special exception to the GNU General Public License, if you
5057
 
# distribute this file as part of a program that contains a
5058
 
# configuration script generated by Autoconf, you may include it under
5059
 
# the same distribution terms that you use for the rest of that program.
5060
 
 
5061
 
# A sed program that does not truncate output.
5062
 
SED=$lt_SED
5063
 
 
5064
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5065
 
Xsed="$SED -e 1s/^X//"
5066
 
 
5067
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5068
 
# if CDPATH is set.
5069
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5070
 
 
5071
 
# The names of the tagged configurations supported by this script.
5072
 
available_tags=
5073
 
 
5074
 
# ### BEGIN LIBTOOL CONFIG],
5075
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5076
 
 
5077
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5078
 
 
5079
 
# Shell to use when invoking shell scripts.
5080
 
SHELL=$lt_SHELL
5081
 
 
5082
 
# Whether or not to build shared libraries.
5083
 
build_libtool_libs=$enable_shared
5084
 
 
5085
 
# Whether or not to build static libraries.
5086
 
build_old_libs=$enable_static
5087
 
 
5088
 
# Whether or not to add -lc for building shared libraries.
5089
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5090
 
 
5091
 
# Whether or not to disallow shared libs when runtime libs are static
5092
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5093
 
 
5094
 
# Whether or not to optimize for fast installation.
5095
 
fast_install=$enable_fast_install
5096
 
 
5097
 
# The host system.
5098
 
host_alias=$host_alias
5099
 
host=$host
5100
 
host_os=$host_os
5101
 
 
5102
 
# The build system.
5103
 
build_alias=$build_alias
5104
 
build=$build
5105
 
build_os=$build_os
5106
 
 
5107
 
# An echo program that does not interpret backslashes.
5108
 
echo=$lt_echo
5109
 
 
5110
 
# The archiver.
5111
 
AR=$lt_AR
5112
 
AR_FLAGS=$lt_AR_FLAGS
5113
 
 
5114
 
# A C compiler.
5115
 
LTCC=$lt_LTCC
5116
 
 
5117
 
# LTCC compiler flags.
5118
 
LTCFLAGS=$lt_LTCFLAGS
5119
 
 
5120
 
# A language-specific compiler.
5121
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5122
 
 
5123
 
# Is the compiler the GNU C compiler?
5124
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5125
 
 
5126
 
# An ERE matcher.
5127
 
EGREP=$lt_EGREP
5128
 
 
5129
 
# The linker used to build libraries.
5130
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5131
 
 
5132
 
# Whether we need hard or soft links.
5133
 
LN_S=$lt_LN_S
5134
 
 
5135
 
# A BSD-compatible nm program.
5136
 
NM=$lt_NM
5137
 
 
5138
 
# A symbol stripping program
5139
 
STRIP=$lt_STRIP
5140
 
 
5141
 
# Used to examine libraries when file_magic_cmd begins "file"
5142
 
MAGIC_CMD=$MAGIC_CMD
5143
 
 
5144
 
# Used on cygwin: DLL creation program.
5145
 
DLLTOOL="$DLLTOOL"
5146
 
 
5147
 
# Used on cygwin: object dumper.
5148
 
OBJDUMP="$OBJDUMP"
5149
 
 
5150
 
# Used on cygwin: assembler.
5151
 
AS="$AS"
5152
 
 
5153
 
# The name of the directory that contains temporary libtool files.
5154
 
objdir=$objdir
5155
 
 
5156
 
# How to create reloadable object files.
5157
 
reload_flag=$lt_reload_flag
5158
 
reload_cmds=$lt_reload_cmds
5159
 
 
5160
 
# How to pass a linker flag through the compiler.
5161
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5162
 
 
5163
 
# Object file suffix (normally "o").
5164
 
objext="$ac_objext"
5165
 
 
5166
 
# Old archive suffix (normally "a").
5167
 
libext="$libext"
5168
 
 
5169
 
# Shared library suffix (normally ".so").
5170
 
shrext_cmds='$shrext_cmds'
5171
 
 
5172
 
# Executable file suffix (normally "").
5173
 
exeext="$exeext"
5174
 
 
5175
 
# Additional compiler flags for building library objects.
5176
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5177
 
pic_mode=$pic_mode
5178
 
 
5179
 
# What is the maximum length of a command?
5180
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5181
 
 
5182
 
# Does compiler simultaneously support -c and -o options?
5183
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5184
 
 
5185
 
# Must we lock files when doing compilation?
5186
 
need_locks=$lt_need_locks
5187
 
 
5188
 
# Do we need the lib prefix for modules?
5189
 
need_lib_prefix=$need_lib_prefix
5190
 
 
5191
 
# Do we need a version for libraries?
5192
 
need_version=$need_version
5193
 
 
5194
 
# Whether dlopen is supported.
5195
 
dlopen_support=$enable_dlopen
5196
 
 
5197
 
# Whether dlopen of programs is supported.
5198
 
dlopen_self=$enable_dlopen_self
5199
 
 
5200
 
# Whether dlopen of statically linked programs is supported.
5201
 
dlopen_self_static=$enable_dlopen_self_static
5202
 
 
5203
 
# Compiler flag to prevent dynamic linking.
5204
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5205
 
 
5206
 
# Compiler flag to turn off builtin functions.
5207
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5208
 
 
5209
 
# Compiler flag to allow reflexive dlopens.
5210
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5211
 
 
5212
 
# Compiler flag to generate shared objects directly from archives.
5213
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5214
 
 
5215
 
# Compiler flag to generate thread-safe objects.
5216
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5217
 
 
5218
 
# Library versioning type.
5219
 
version_type=$version_type
5220
 
 
5221
 
# Format of library name prefix.
5222
 
libname_spec=$lt_libname_spec
5223
 
 
5224
 
# List of archive names.  First name is the real one, the rest are links.
5225
 
# The last name is the one that the linker finds with -lNAME.
5226
 
library_names_spec=$lt_library_names_spec
5227
 
 
5228
 
# The coded name of the library, if different from the real name.
5229
 
soname_spec=$lt_soname_spec
5230
 
 
5231
 
# Commands used to build and install an old-style archive.
5232
 
RANLIB=$lt_RANLIB
5233
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5234
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5235
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5236
 
 
5237
 
# Create an old-style archive from a shared archive.
5238
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5239
 
 
5240
 
# Create a temporary old-style archive to link instead of a shared archive.
5241
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5242
 
 
5243
 
# Commands used to build and install a shared archive.
5244
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5245
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5246
 
postinstall_cmds=$lt_postinstall_cmds
5247
 
postuninstall_cmds=$lt_postuninstall_cmds
5248
 
 
5249
 
# Commands used to build a loadable module (assumed same as above if empty)
5250
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5251
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5252
 
 
5253
 
# Commands to strip libraries.
5254
 
old_striplib=$lt_old_striplib
5255
 
striplib=$lt_striplib
5256
 
 
5257
 
# Dependencies to place before the objects being linked to create a
5258
 
# shared library.
5259
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5260
 
 
5261
 
# Dependencies to place after the objects being linked to create a
5262
 
# shared library.
5263
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5264
 
 
5265
 
# Dependencies to place before the objects being linked to create a
5266
 
# shared library.
5267
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5268
 
 
5269
 
# Dependencies to place after the objects being linked to create a
5270
 
# shared library.
5271
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5272
 
 
5273
 
# The directories searched by this compiler when creating a shared
5274
 
# library
5275
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5276
 
 
5277
 
# The library search path used internally by the compiler when linking
5278
 
# a shared library.
5279
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5280
 
 
5281
 
# Method to check whether dependent libraries are shared objects.
5282
 
deplibs_check_method=$lt_deplibs_check_method
5283
 
 
5284
 
# Command to use when deplibs_check_method == file_magic.
5285
 
file_magic_cmd=$lt_file_magic_cmd
5286
 
 
5287
 
# Flag that allows shared libraries with undefined symbols to be built.
5288
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5289
 
 
5290
 
# Flag that forces no undefined symbols.
5291
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5292
 
 
5293
 
# Commands used to finish a libtool library installation in a directory.
5294
 
finish_cmds=$lt_finish_cmds
5295
 
 
5296
 
# Same as above, but a single script fragment to be evaled but not shown.
5297
 
finish_eval=$lt_finish_eval
5298
 
 
5299
 
# Take the output of nm and produce a listing of raw symbols and C names.
5300
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5301
 
 
5302
 
# Transform the output of nm in a proper C declaration
5303
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5304
 
 
5305
 
# Transform the output of nm in a C name address pair
5306
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5307
 
 
5308
 
# This is the shared library runtime path variable.
5309
 
runpath_var=$runpath_var
5310
 
 
5311
 
# This is the shared library path variable.
5312
 
shlibpath_var=$shlibpath_var
5313
 
 
5314
 
# Is shlibpath searched before the hard-coded library search path?
5315
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5316
 
 
5317
 
# How to hardcode a shared library path into an executable.
5318
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5319
 
 
5320
 
# Whether we should hardcode library paths into libraries.
5321
 
hardcode_into_libs=$hardcode_into_libs
5322
 
 
5323
 
# Flag to hardcode \$libdir into a binary during linking.
5324
 
# This must work even if \$libdir does not exist.
5325
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5326
 
 
5327
 
# If ld is used when linking, flag to hardcode \$libdir into
5328
 
# a binary during linking. This must work even if \$libdir does
5329
 
# not exist.
5330
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5331
 
 
5332
 
# Whether we need a single -rpath flag with a separated argument.
5333
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5334
 
 
5335
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5336
 
# resulting binary.
5337
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5338
 
 
5339
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5340
 
# resulting binary.
5341
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5342
 
 
5343
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5344
 
# the resulting binary.
5345
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5346
 
 
5347
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5348
 
# and all subsequent libraries and executables linked against it.
5349
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5350
 
 
5351
 
# Variables whose values should be saved in libtool wrapper scripts and
5352
 
# restored at relink time.
5353
 
variables_saved_for_relink="$variables_saved_for_relink"
5354
 
 
5355
 
# Whether libtool must link a program against all its dependency libraries.
5356
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5357
 
 
5358
 
# Compile-time system search path for libraries
5359
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5360
 
 
5361
 
# Run-time system search path for libraries
5362
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5363
 
 
5364
 
# Fix the shell variable \$srcfile for the compiler.
5365
 
fix_srcfile_path=$lt_fix_srcfile_path
5366
 
 
5367
 
# Set to yes if exported symbols are required.
5368
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5369
 
 
5370
 
# The commands to list exported symbols.
5371
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5372
 
 
5373
 
# The commands to extract the exported symbol list from a shared archive.
5374
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5375
 
 
5376
 
# Symbols that should not be listed in the preloaded symbols.
5377
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5378
 
 
5379
 
# Symbols that must always be exported.
5380
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5381
 
 
5382
 
ifelse([$1],[],
5383
 
[# ### END LIBTOOL CONFIG],
5384
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5385
 
 
5386
 
__EOF__
5387
 
 
5388
 
ifelse([$1],[], [
5389
 
  case $host_os in
5390
 
  aix3*)
5391
 
    cat <<\EOF >> "$cfgfile"
5392
 
 
5393
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5394
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5395
 
# vanish in a puff of smoke.
5396
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5397
 
  COLLECT_NAMES=
5398
 
  export COLLECT_NAMES
5399
 
fi
5400
 
EOF
5401
 
    ;;
5402
 
  esac
5403
 
 
5404
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5405
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5406
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5407
 
  # is reportedly fixed, but why not run on old versions too?
5408
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5409
 
 
5410
 
  mv -f "$cfgfile" "$ofile" || \
5411
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5412
 
  chmod +x "$ofile"
5413
 
])
5414
 
else
5415
 
  # If there is no Makefile yet, we rely on a make rule to execute
5416
 
  # `config.status --recheck' to rerun these tests and create the
5417
 
  # libtool script then.
5418
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5419
 
  if test -f "$ltmain_in"; then
5420
 
    test -f Makefile && make "$ltmain"
5421
 
  fi
5422
 
fi
5423
 
])# AC_LIBTOOL_CONFIG
5424
 
 
5425
 
 
5426
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5427
 
# -------------------------------------------
5428
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5429
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5430
 
 
5431
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3924
AC_SUBST([LIBM])
 
3925
])# LT_LIB_M
 
3926
 
 
3927
# Old name:
 
3928
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
3929
dnl aclocal-1.4 backwards compatibility:
 
3930
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
3931
 
 
3932
 
 
3933
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
3934
# -------------------------------
 
3935
m4_defun([_LT_COMPILER_NO_RTTI],
 
3936
[m4_require([_LT_TAG_COMPILER])dnl
 
3937
 
 
3938
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5432
3939
 
5433
3940
if test "$GCC" = yes; then
5434
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3941
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5435
3942
 
5436
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
3943
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5437
3944
    lt_cv_prog_compiler_rtti_exceptions,
5438
3945
    [-fno-rtti -fno-exceptions], [],
5439
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
3946
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5440
3947
fi
5441
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5442
 
 
5443
 
 
5444
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5445
 
# ---------------------------------
5446
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5447
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5448
 
AC_REQUIRE([LT_AC_PROG_SED])
5449
 
AC_REQUIRE([AC_PROG_NM])
5450
 
AC_REQUIRE([AC_OBJEXT])
 
3948
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
3949
        [Compiler flag to turn off builtin functions])
 
3950
])# _LT_COMPILER_NO_RTTI
 
3951
 
 
3952
 
 
3953
# _LT_CMD_GLOBAL_SYMBOLS
 
3954
# ----------------------
 
3955
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
3956
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3957
AC_REQUIRE([AC_PROG_CC])dnl
 
3958
AC_REQUIRE([LT_PATH_NM])dnl
 
3959
AC_REQUIRE([LT_PATH_LD])dnl
 
3960
m4_require([_LT_DECL_SED])dnl
 
3961
m4_require([_LT_DECL_EGREP])dnl
 
3962
m4_require([_LT_TAG_COMPILER])dnl
 
3963
 
5451
3964
# Check for command to grab the raw symbol name followed by C symbol from nm.
5452
3965
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5453
3966
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5461
3974
# Regexp to match symbols that can be accessed directly from C.
5462
3975
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5463
3976
 
5464
 
# Transform an extracted symbol line into a proper C declaration
5465
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5466
 
 
5467
 
# Transform an extracted symbol line into symbol name and symbol address
5468
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5469
 
 
5470
3977
# Define system-specific variables.
5471
3978
case $host_os in
5472
3979
aix*)
5473
3980
  symcode='[[BCDT]]'
5474
3981
  ;;
5475
 
cygwin* | mingw* | pw32*)
 
3982
cygwin* | mingw* | pw32* | cegcc*)
5476
3983
  symcode='[[ABCDGISTW]]'
5477
3984
  ;;
5478
 
hpux*) # Its linker distinguishes data from code symbols
 
3985
hpux*)
5479
3986
  if test "$host_cpu" = ia64; then
5480
3987
    symcode='[[ABCDEGRST]]'
5481
3988
  fi
5482
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5483
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5484
 
  ;;
5485
 
linux* | k*bsd*-gnu)
5486
 
  if test "$host_cpu" = ia64; then
5487
 
    symcode='[[ABCDGIRSTW]]'
5488
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5489
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5490
 
  fi
5491
3989
  ;;
5492
3990
irix* | nonstopux*)
5493
3991
  symcode='[[BCDEGRST]]'
5512
4010
  ;;
5513
4011
esac
5514
4012
 
 
4013
# If we're using GNU nm, then use its standard symbol codes.
 
4014
case `$NM -V 2>&1` in
 
4015
*GNU* | *'with BFD'*)
 
4016
  symcode='[[ABCDGIRSTW]]' ;;
 
4017
esac
 
4018
 
 
4019
# Transform an extracted symbol line into a proper C declaration.
 
4020
# Some systems (esp. on ia64) link data and code symbols differently,
 
4021
# so use this general approach.
 
4022
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4023
 
 
4024
# Transform an extracted symbol line into symbol name and symbol address
 
4025
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4026
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'"
 
4027
 
5515
4028
# Handle CRLF in mingw tool chain
5516
4029
opt_cr=
5517
4030
case $build_os in
5518
4031
mingw*)
5519
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4032
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5520
4033
  ;;
5521
4034
esac
5522
4035
 
5523
 
# If we're using GNU nm, then use its standard symbol codes.
5524
 
case `$NM -V 2>&1` in
5525
 
*GNU* | *'with BFD'*)
5526
 
  symcode='[[ABCDGIRSTW]]' ;;
5527
 
esac
5528
 
 
5529
 
# Try without a prefix undercore, then with it.
 
4036
# Try without a prefix underscore, then with it.
5530
4037
for ac_symprfx in "" "_"; do
5531
4038
 
5532
4039
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533
4040
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5534
4041
 
5535
4042
  # Write the raw and C identifiers.
5536
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4043
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4044
    # Fake it for dumpbin and say T for any non-static function
 
4045
    # and D for any global variable.
 
4046
    # Also find C++ and __fastcall symbols from MSVC++,
 
4047
    # which start with @ or ?.
 
4048
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4049
"     {last_section=section; section=\$ 3};"\
 
4050
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4051
"     \$ 0!~/External *\|/{next};"\
 
4052
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4053
"     {if(hide[section]) next};"\
 
4054
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4055
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4056
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4057
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4058
"     ' prfx=^$ac_symprfx]"
 
4059
  else
 
4060
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4061
  fi
5537
4062
 
5538
4063
  # Check to see that the pipe works correctly.
5539
4064
  pipe_works=no
5540
4065
 
5541
4066
  rm -f conftest*
5542
 
  cat > conftest.$ac_ext <<EOF
 
4067
  cat > conftest.$ac_ext <<_LT_EOF
5543
4068
#ifdef __cplusplus
5544
4069
extern "C" {
5545
4070
#endif
5546
4071
char nm_test_var;
5547
 
void nm_test_func(){}
 
4072
void nm_test_func(void);
 
4073
void nm_test_func(void){}
5548
4074
#ifdef __cplusplus
5549
4075
}
5550
4076
#endif
5551
4077
int main(){nm_test_var='a';nm_test_func();return(0);}
5552
 
EOF
 
4078
_LT_EOF
5553
4079
 
5554
4080
  if AC_TRY_EVAL(ac_compile); then
5555
4081
    # Now try to grab the symbols.
5563
4089
      fi
5564
4090
 
5565
4091
      # Make sure that we snagged all the symbols we need.
5566
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5567
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5568
 
          cat <<EOF > conftest.$ac_ext
 
4092
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4093
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4094
          cat <<_LT_EOF > conftest.$ac_ext
5569
4095
#ifdef __cplusplus
5570
4096
extern "C" {
5571
4097
#endif
5572
4098
 
5573
 
EOF
 
4099
_LT_EOF
5574
4100
          # Now generate the symbol file.
5575
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5576
 
 
5577
 
          cat <<EOF >> conftest.$ac_ext
5578
 
#if defined (__STDC__) && __STDC__
5579
 
# define lt_ptr_t void *
5580
 
#else
5581
 
# define lt_ptr_t char *
5582
 
# define const
5583
 
#endif
5584
 
 
5585
 
/* The mapping between symbol names and symbols. */
 
4101
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4102
 
 
4103
          cat <<_LT_EOF >> conftest.$ac_ext
 
4104
 
 
4105
/* The mapping between symbol names and symbols.  */
5586
4106
const struct {
5587
4107
  const char *name;
5588
 
  lt_ptr_t address;
 
4108
  void       *address;
5589
4109
}
5590
 
lt_preloaded_symbols[[]] =
 
4110
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5591
4111
{
5592
 
EOF
5593
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5594
 
          cat <<\EOF >> conftest.$ac_ext
5595
 
  {0, (lt_ptr_t) 0}
 
4112
  { "@PROGRAM@", (void *) 0 },
 
4113
_LT_EOF
 
4114
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4115
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4116
  {0, (void *) 0}
5596
4117
};
5597
4118
 
 
4119
/* This works around a problem in FreeBSD linker */
 
4120
#ifdef FREEBSD_WORKAROUND
 
4121
static const void *lt_preloaded_setup() {
 
4122
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4123
}
 
4124
#endif
 
4125
 
5598
4126
#ifdef __cplusplus
5599
4127
}
5600
4128
#endif
5601
 
EOF
 
4129
_LT_EOF
5602
4130
          # Now try linking the two files.
5603
4131
          mv conftest.$ac_objext conftstm.$ac_objext
5604
4132
          lt_save_LIBS="$LIBS"
5605
4133
          lt_save_CFLAGS="$CFLAGS"
5606
4134
          LIBS="conftstm.$ac_objext"
5607
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4135
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5608
4136
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5609
4137
            pipe_works=yes
5610
4138
          fi
5641
4169
else
5642
4170
  AC_MSG_RESULT(ok)
5643
4171
fi
5644
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5645
 
 
5646
 
 
5647
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5648
 
# ---------------------------------------
5649
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5650
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5651
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5652
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4172
 
 
4173
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4174
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4175
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4176
    [Transform the output of nm in a proper C declaration])
 
4177
_LT_DECL([global_symbol_to_c_name_address],
 
4178
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4179
    [Transform the output of nm in a C name address pair])
 
4180
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4181
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4182
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4183
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4184
 
 
4185
 
 
4186
# _LT_COMPILER_PIC([TAGNAME])
 
4187
# ---------------------------
 
4188
m4_defun([_LT_COMPILER_PIC],
 
4189
[m4_require([_LT_TAG_COMPILER])dnl
 
4190
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4191
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4192
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5653
4193
 
5654
4194
AC_MSG_CHECKING([for $compiler option to produce PIC])
5655
 
 ifelse([$1],[CXX],[
 
4195
m4_if([$1], [CXX], [
5656
4196
  # C++ specific cases for pic, static, wl, etc.
5657
4197
  if test "$GXX" = yes; then
5658
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5659
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4198
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4199
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5660
4200
 
5661
4201
    case $host_os in
5662
4202
    aix*)
5663
4203
      # All AIX code is PIC.
5664
4204
      if test "$host_cpu" = ia64; then
5665
4205
        # AIX 5 now supports IA64 processor
5666
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4206
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5667
4207
      fi
5668
4208
      ;;
 
4209
 
5669
4210
    amigaos*)
5670
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5671
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5672
 
      # like `-m68040'.
5673
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4211
      case $host_cpu in
 
4212
      powerpc)
 
4213
            # see comment about AmigaOS4 .so support
 
4214
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4215
        ;;
 
4216
      m68k)
 
4217
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4218
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4219
            # like `-m68040'.
 
4220
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4221
        ;;
 
4222
      esac
5674
4223
      ;;
 
4224
 
5675
4225
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5676
4226
      # PIC is the default for these OSes.
5677
4227
      ;;
5678
 
    mingw* | cygwin* | os2* | pw32*)
 
4228
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5679
4229
      # This hack is so that the source file can tell whether it is being
5680
4230
      # built for inclusion in a dll (and should export symbols for example).
5681
4231
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5682
4232
      # (--disable-auto-import) libraries
5683
4233
      m4_if([$1], [GCJ], [],
5684
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4234
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5685
4235
      ;;
5686
4236
    darwin* | rhapsody*)
5687
4237
      # PIC is the default on this platform
5688
4238
      # Common symbols not allowed in MH_DYLIB files
5689
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4239
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5690
4240
      ;;
5691
4241
    *djgpp*)
5692
4242
      # DJGPP does not support shared libraries at all
5693
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4243
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5694
4244
      ;;
5695
4245
    interix[[3-9]]*)
5696
4246
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5698
4248
      ;;
5699
4249
    sysv4*MP*)
5700
4250
      if test -d /usr/nec; then
5701
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4251
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5702
4252
      fi
5703
4253
      ;;
5704
4254
    hpux*)
5705
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5706
 
      # not for PA HP-UX.
 
4255
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4256
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4257
      # sets the default TLS model and affects inlining.
5707
4258
      case $host_cpu in
5708
 
      hppa*64*|ia64*)
 
4259
      hppa*64*)
5709
4260
        ;;
5710
4261
      *)
5711
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4262
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5712
4263
        ;;
5713
4264
      esac
5714
4265
      ;;
 
4266
    *qnx* | *nto*)
 
4267
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4268
      # it will coredump.
 
4269
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4270
      ;;
5715
4271
    *)
5716
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4272
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5717
4273
      ;;
5718
4274
    esac
5719
4275
  else
5722
4278
        # All AIX code is PIC.
5723
4279
        if test "$host_cpu" = ia64; then
5724
4280
          # AIX 5 now supports IA64 processor
5725
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4281
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5726
4282
        else
5727
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4283
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5728
4284
        fi
5729
4285
        ;;
5730
4286
      chorus*)
5731
4287
        case $cc_basename in
5732
4288
        cxch68*)
5733
4289
          # Green Hills C++ Compiler
5734
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
4290
          # _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"
5735
4291
          ;;
5736
4292
        esac
5737
4293
        ;;
5738
 
       darwin*)
5739
 
         # PIC is the default on this platform
5740
 
         # Common symbols not allowed in MH_DYLIB files
5741
 
         case $cc_basename in
5742
 
           xlc*)
5743
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5744
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5745
 
           ;;
5746
 
         esac
5747
 
       ;;
5748
4294
      dgux*)
5749
4295
        case $cc_basename in
5750
4296
          ec++*)
5751
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4297
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5752
4298
            ;;
5753
4299
          ghcx*)
5754
4300
            # Green Hills C++ Compiler
5755
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4301
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5756
4302
            ;;
5757
4303
          *)
5758
4304
            ;;
5764
4310
      hpux9* | hpux10* | hpux11*)
5765
4311
        case $cc_basename in
5766
4312
          CC*)
5767
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5768
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4313
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4314
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5769
4315
            if test "$host_cpu" != ia64; then
5770
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4316
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5771
4317
            fi
5772
4318
            ;;
5773
4319
          aCC*)
5774
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5775
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4320
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4321
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5776
4322
            case $host_cpu in
5777
4323
            hppa*64*|ia64*)
5778
4324
              # +Z the default
5779
4325
              ;;
5780
4326
            *)
5781
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4327
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5782
4328
              ;;
5783
4329
            esac
5784
4330
            ;;
5793
4339
      irix5* | irix6* | nonstopux*)
5794
4340
        case $cc_basename in
5795
4341
          CC*)
5796
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5797
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4342
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4343
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5798
4344
            # CC pic flag -KPIC is the default.
5799
4345
            ;;
5800
4346
          *)
5805
4351
        case $cc_basename in
5806
4352
          KCC*)
5807
4353
            # KAI C++ Compiler
5808
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5809
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5810
 
            ;;
5811
 
          icpc* | ecpc*)
5812
 
            # Intel C++
5813
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5814
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5815
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4354
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4355
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4356
            ;;
 
4357
          ecpc* )
 
4358
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4359
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4360
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4361
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4362
            ;;
 
4363
          icpc* )
 
4364
            # Intel C++, used to be incompatible with GCC.
 
4365
            # ICC 10 doesn't accept -KPIC any more.
 
4366
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4367
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4368
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5816
4369
            ;;
5817
4370
          pgCC* | pgcpp*)
5818
 
            # Portland Group C++ compiler.
5819
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5820
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5821
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4371
            # Portland Group C++ compiler
 
4372
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4373
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4374
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5822
4375
            ;;
5823
4376
          cxx*)
5824
4377
            # Compaq C++
5825
4378
            # Make sure the PIC flag is empty.  It appears that all Alpha
5826
4379
            # Linux and Compaq Tru64 Unix objects are PIC.
5827
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5828
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4380
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4381
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4382
            ;;
 
4383
          xlc* | xlC*)
 
4384
            # IBM XL 8.0 on PPC
 
4385
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4386
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4387
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5829
4388
            ;;
5830
4389
          *)
5831
4390
            case `$CC -V 2>&1 | sed 5q` in
5832
4391
            *Sun\ C*)
5833
4392
              # Sun C++ 5.9
5834
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5835
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5836
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4393
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4394
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4395
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5837
4396
              ;;
5838
4397
            esac
5839
4398
            ;;
5846
4405
      mvs*)
5847
4406
        case $cc_basename in
5848
4407
          cxx*)
5849
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4408
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5850
4409
            ;;
5851
4410
          *)
5852
4411
            ;;
5854
4413
        ;;
5855
4414
      netbsd* | netbsdelf*-gnu)
5856
4415
        ;;
 
4416
      *qnx* | *nto*)
 
4417
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4418
        # it will coredump.
 
4419
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4420
        ;;
5857
4421
      osf3* | osf4* | osf5*)
5858
4422
        case $cc_basename in
5859
4423
          KCC*)
5860
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4424
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5861
4425
            ;;
5862
4426
          RCC*)
5863
4427
            # Rational C++ 2.4.1
5864
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4428
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5865
4429
            ;;
5866
4430
          cxx*)
5867
4431
            # Digital/Compaq C++
5868
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4432
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5869
4433
            # Make sure the PIC flag is empty.  It appears that all Alpha
5870
4434
            # Linux and Compaq Tru64 Unix objects are PIC.
5871
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5872
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4435
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4436
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5873
4437
            ;;
5874
4438
          *)
5875
4439
            ;;
5881
4445
        case $cc_basename in
5882
4446
          CC*)
5883
4447
            # Sun C++ 4.2, 5.x and Centerline C++
5884
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5885
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5886
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4448
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4449
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4450
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5887
4451
            ;;
5888
4452
          gcx*)
5889
4453
            # Green Hills C++ Compiler
5890
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4454
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5891
4455
            ;;
5892
4456
          *)
5893
4457
            ;;
5897
4461
        case $cc_basename in
5898
4462
          CC*)
5899
4463
            # Sun C++ 4.x
5900
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5901
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4464
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4465
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5902
4466
            ;;
5903
4467
          lcc*)
5904
4468
            # Lucid
5905
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4469
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5906
4470
            ;;
5907
4471
          *)
5908
4472
            ;;
5909
4473
        esac
5910
4474
        ;;
 
4475
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4476
        case $cc_basename in
 
4477
          CC*)
 
4478
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4479
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4480
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4481
            ;;
 
4482
        esac
 
4483
        ;;
5911
4484
      tandem*)
5912
4485
        case $cc_basename in
5913
4486
          NCC*)
5914
4487
            # NonStop-UX NCC 3.20
5915
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4488
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5916
4489
            ;;
5917
4490
          *)
5918
4491
            ;;
5919
4492
        esac
5920
4493
        ;;
5921
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5922
 
        case $cc_basename in
5923
 
          CC*)
5924
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5925
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5926
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5927
 
            ;;
5928
 
        esac
5929
 
        ;;
5930
4494
      vxworks*)
5931
4495
        ;;
5932
4496
      *)
5933
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4497
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5934
4498
        ;;
5935
4499
    esac
5936
4500
  fi
5937
4501
],
5938
4502
[
5939
4503
  if test "$GCC" = yes; then
5940
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5941
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4504
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4505
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5942
4506
 
5943
4507
    case $host_os in
5944
4508
      aix*)
5945
4509
      # All AIX code is PIC.
5946
4510
      if test "$host_cpu" = ia64; then
5947
4511
        # AIX 5 now supports IA64 processor
5948
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4512
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5949
4513
      fi
5950
4514
      ;;
5951
4515
 
5952
4516
    amigaos*)
5953
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5954
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5955
 
      # like `-m68040'.
5956
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4517
      case $host_cpu in
 
4518
      powerpc)
 
4519
            # see comment about AmigaOS4 .so support
 
4520
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4521
        ;;
 
4522
      m68k)
 
4523
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4524
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4525
            # like `-m68040'.
 
4526
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4527
        ;;
 
4528
      esac
5957
4529
      ;;
5958
4530
 
5959
4531
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5960
4532
      # PIC is the default for these OSes.
5961
4533
      ;;
5962
4534
 
5963
 
    mingw* | cygwin* | pw32* | os2*)
 
4535
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5964
4536
      # This hack is so that the source file can tell whether it is being
5965
4537
      # built for inclusion in a dll (and should export symbols for example).
5966
4538
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5967
4539
      # (--disable-auto-import) libraries
5968
4540
      m4_if([$1], [GCJ], [],
5969
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4541
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5970
4542
      ;;
5971
4543
 
5972
4544
    darwin* | rhapsody*)
5973
4545
      # PIC is the default on this platform
5974
4546
      # Common symbols not allowed in MH_DYLIB files
5975
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4547
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4548
      ;;
 
4549
 
 
4550
    hpux*)
 
4551
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4552
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4553
      # sets the default TLS model and affects inlining.
 
4554
      case $host_cpu in
 
4555
      hppa*64*)
 
4556
        # +Z the default
 
4557
        ;;
 
4558
      *)
 
4559
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4560
        ;;
 
4561
      esac
5976
4562
      ;;
5977
4563
 
5978
4564
    interix[[3-9]]*)
5983
4569
    msdosdjgpp*)
5984
4570
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5985
4571
      # on systems that don't support them.
5986
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4572
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5987
4573
      enable_shared=no
5988
4574
      ;;
5989
4575
 
 
4576
    *nto* | *qnx*)
 
4577
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4578
      # it will coredump.
 
4579
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4580
      ;;
 
4581
 
5990
4582
    sysv4*MP*)
5991
4583
      if test -d /usr/nec; then
5992
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4584
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5993
4585
      fi
5994
4586
      ;;
5995
4587
 
5996
 
    hpux*)
5997
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5998
 
      # not for PA HP-UX.
5999
 
      case $host_cpu in
6000
 
      hppa*64*|ia64*)
6001
 
        # +Z the default
6002
 
        ;;
6003
 
      *)
6004
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6005
 
        ;;
6006
 
      esac
6007
 
      ;;
6008
 
 
6009
4588
    *)
6010
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4589
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6011
4590
      ;;
6012
4591
    esac
6013
4592
  else
6014
4593
    # PORTME Check for flag to pass linker flags through the system compiler.
6015
4594
    case $host_os in
6016
4595
    aix*)
6017
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4596
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6018
4597
      if test "$host_cpu" = ia64; then
6019
4598
        # AIX 5 now supports IA64 processor
6020
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4599
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6021
4600
      else
6022
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4601
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6023
4602
      fi
6024
4603
      ;;
6025
 
      darwin*)
6026
 
        # PIC is the default on this platform
6027
 
        # Common symbols not allowed in MH_DYLIB files
6028
 
       case $cc_basename in
6029
 
         xlc*)
6030
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6031
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6032
 
         ;;
6033
 
       esac
6034
 
       ;;
6035
4604
 
6036
 
    mingw* | cygwin* | pw32* | os2*)
 
4605
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6037
4606
      # This hack is so that the source file can tell whether it is being
6038
4607
      # built for inclusion in a dll (and should export symbols for example).
6039
4608
      m4_if([$1], [GCJ], [],
6040
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4609
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6041
4610
      ;;
6042
4611
 
6043
4612
    hpux9* | hpux10* | hpux11*)
6044
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4613
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6045
4614
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6046
4615
      # not for PA HP-UX.
6047
4616
      case $host_cpu in
6049
4618
        # +Z the default
6050
4619
        ;;
6051
4620
      *)
6052
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4621
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6053
4622
        ;;
6054
4623
      esac
6055
4624
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6056
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4625
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6057
4626
      ;;
6058
4627
 
6059
4628
    irix5* | irix6* | nonstopux*)
6060
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4629
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6061
4630
      # PIC (with -KPIC) is the default.
6062
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6063
 
      ;;
6064
 
 
6065
 
    newsos6)
6066
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6067
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4631
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6068
4632
      ;;
6069
4633
 
6070
4634
    linux* | k*bsd*-gnu)
6071
4635
      case $cc_basename in
6072
 
      icc* | ecc*)
6073
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6074
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6075
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6076
 
        ;;
 
4636
      # old Intel for x86_64 which still supported -KPIC.
 
4637
      ecc*)
 
4638
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4639
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4640
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4641
        ;;
 
4642
      # icc used to be incompatible with GCC.
 
4643
      # ICC 10 doesn't accept -KPIC any more.
 
4644
      icc* | ifort*)
 
4645
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4646
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4647
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4648
        ;;
 
4649
      # Lahey Fortran 8.1.
 
4650
      lf95*)
 
4651
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4652
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4653
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4654
        ;;
6077
4655
      pgcc* | pgf77* | pgf90* | pgf95*)
6078
4656
        # Portland Group compilers (*not* the Pentium gcc compiler,
6079
4657
        # which looks to be a dead project)
6080
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6081
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6082
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4658
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4659
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4660
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6083
4661
        ;;
6084
4662
      ccc*)
6085
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4663
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6086
4664
        # All Alpha code is PIC.
6087
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4665
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6088
4666
        ;;
 
4667
      xl*)
 
4668
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4669
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4670
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4671
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4672
        ;;
6089
4673
      *)
6090
 
        case `$CC -V 2>&1 | sed 5q` in
 
4674
        case `$CC -V 2>&1 | sed 5q` in
6091
4675
        *Sun\ C*)
6092
4676
          # Sun C 5.9
6093
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6094
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6095
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4677
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4678
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4679
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6096
4680
          ;;
6097
4681
        *Sun\ F*)
6098
4682
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6099
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6100
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6101
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4683
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4684
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4685
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6102
4686
          ;;
6103
4687
        esac
6104
4688
        ;;
6105
4689
      esac
6106
4690
      ;;
6107
4691
 
 
4692
    newsos6)
 
4693
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4694
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4695
      ;;
 
4696
 
 
4697
    *nto* | *qnx*)
 
4698
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4699
      # it will coredump.
 
4700
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4701
      ;;
 
4702
 
6108
4703
    osf3* | osf4* | osf5*)
6109
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4704
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
4705
      # All OSF/1 code is PIC.
6111
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4706
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6112
4707
      ;;
6113
4708
 
6114
4709
    rdos*)
6115
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4710
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6116
4711
      ;;
6117
4712
 
6118
4713
    solaris*)
6119
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6120
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4714
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4715
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6121
4716
      case $cc_basename in
6122
4717
      f77* | f90* | f95*)
6123
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4718
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6124
4719
      *)
6125
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4720
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6126
4721
      esac
6127
4722
      ;;
6128
4723
 
6129
4724
    sunos4*)
6130
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6131
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6132
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4725
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4726
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4727
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6133
4728
      ;;
6134
4729
 
6135
4730
    sysv4 | sysv4.2uw2* | sysv4.3*)
6136
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6137
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6138
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4731
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4732
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4733
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6139
4734
      ;;
6140
4735
 
6141
4736
    sysv4*MP*)
6142
4737
      if test -d /usr/nec ;then
6143
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6144
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4738
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4739
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6145
4740
      fi
6146
4741
      ;;
6147
4742
 
6148
4743
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6149
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6150
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6151
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4744
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4745
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4746
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6152
4747
      ;;
6153
4748
 
6154
4749
    unicos*)
6155
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6156
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4750
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4751
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6157
4752
      ;;
6158
4753
 
6159
4754
    uts4*)
6160
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6161
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4755
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4756
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6162
4757
      ;;
6163
4758
 
6164
4759
    *)
6165
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4760
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6166
4761
      ;;
6167
4762
    esac
6168
4763
  fi
6169
4764
])
6170
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4765
case $host_os in
 
4766
  # For platforms which do not support PIC, -DPIC is meaningless:
 
4767
  *djgpp*)
 
4768
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4769
    ;;
 
4770
  *)
 
4771
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
4772
    ;;
 
4773
esac
 
4774
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4775
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4776
        [How to pass a linker flag through the compiler])
6171
4777
 
6172
4778
#
6173
4779
# Check to make sure the PIC flag actually works.
6174
4780
#
6175
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6176
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6177
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6178
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6179
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
4781
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4782
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
4783
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
4784
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
4785
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6180
4786
     "" | " "*) ;;
6181
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
4787
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6182
4788
     esac],
6183
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6184
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
4789
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4790
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6185
4791
fi
6186
 
case $host_os in
6187
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6188
 
  *djgpp*)
6189
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6190
 
    ;;
6191
 
  *)
6192
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6193
 
    ;;
6194
 
esac
 
4792
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
4793
        [Additional compiler flags for building library objects])
6195
4794
 
6196
4795
#
6197
4796
# Check to make sure the static flag actually works.
6198
4797
#
6199
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6200
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6201
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
4798
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
4799
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
4800
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6202
4801
  $lt_tmp_static_flag,
6203
4802
  [],
6204
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6205
 
])
6206
 
 
6207
 
 
6208
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6209
 
# ------------------------------------
 
4803
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
4804
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
4805
        [Compiler flag to prevent dynamic linking])
 
4806
])# _LT_COMPILER_PIC
 
4807
 
 
4808
 
 
4809
# _LT_LINKER_SHLIBS([TAGNAME])
 
4810
# ----------------------------
6210
4811
# See if the linker supports building shared libraries.
6211
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6212
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4812
m4_defun([_LT_LINKER_SHLIBS],
 
4813
[AC_REQUIRE([LT_PATH_LD])dnl
 
4814
AC_REQUIRE([LT_PATH_NM])dnl
 
4815
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4816
m4_require([_LT_DECL_EGREP])dnl
 
4817
m4_require([_LT_DECL_SED])dnl
 
4818
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
4819
m4_require([_LT_TAG_COMPILER])dnl
6213
4820
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6214
 
ifelse([$1],[CXX],[
6215
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4821
m4_if([$1], [CXX], [
 
4822
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6216
4823
  case $host_os in
6217
4824
  aix[[4-9]]*)
6218
4825
    # If we're using GNU nm, then we don't want the "-C" option.
6219
4826
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6220
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6221
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
4827
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4828
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6222
4829
    else
6223
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
4830
      _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'
6224
4831
    fi
6225
4832
    ;;
6226
4833
  pw32*)
6227
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
4834
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6228
4835
  ;;
6229
 
  cygwin* | mingw*)
6230
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4836
  cygwin* | mingw* | cegcc*)
 
4837
    _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'
6231
4838
  ;;
6232
4839
  linux* | k*bsd*-gnu)
6233
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4840
    _LT_TAGVAR(link_all_deplibs, $1)=no
6234
4841
  ;;
6235
4842
  *)
6236
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4843
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6237
4844
  ;;
6238
4845
  esac
6239
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6240
 
],[
 
4846
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4847
], [
6241
4848
  runpath_var=
6242
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6243
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6244
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6245
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6246
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6247
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6248
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6249
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6250
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6251
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6252
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6253
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6254
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6255
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6256
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6257
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6258
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6259
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6260
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6261
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6262
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4849
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
4850
  _LT_TAGVAR(always_export_symbols, $1)=no
 
4851
  _LT_TAGVAR(archive_cmds, $1)=
 
4852
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
4853
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
4854
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4855
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4856
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4857
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
4858
  _LT_TAGVAR(hardcode_direct, $1)=no
 
4859
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
4860
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4861
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4862
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
4863
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
4864
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4865
  _LT_TAGVAR(inherit_rpath, $1)=no
 
4866
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
4867
  _LT_TAGVAR(module_cmds, $1)=
 
4868
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
4869
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
4870
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
4871
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
4872
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6263
4873
  # include_expsyms should be a list of space-separated symbols to be *always*
6264
4874
  # included in the symbol list
6265
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
4875
  _LT_TAGVAR(include_expsyms, $1)=
6266
4876
  # exclude_expsyms can be an extended regexp of symbols to exclude
6267
4877
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6268
4878
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6269
4879
  # as well as any symbol that contains `d'.
6270
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4880
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6271
4881
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6272
4882
  # platforms (ab)use it in PIC code, but their linkers get confused if
6273
4883
  # the symbol is explicitly referenced.  Since portable code cannot
6276
4886
  # Exclude shared library initialization/finalization symbols.
6277
4887
dnl Note also adjust exclude_expsyms for C++ above.
6278
4888
  extract_expsyms_cmds=
6279
 
  # Just being paranoid about ensuring that cc_basename is set.
6280
 
  _LT_CC_BASENAME([$compiler])
 
4889
 
6281
4890
  case $host_os in
6282
 
  cygwin* | mingw* | pw32*)
 
4891
  cygwin* | mingw* | pw32* | cegcc*)
6283
4892
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6284
4893
    # When not using gcc, we currently assume that we are using
6285
4894
    # Microsoft Visual C++.
6296
4905
    ;;
6297
4906
  esac
6298
4907
 
6299
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4908
  _LT_TAGVAR(ld_shlibs, $1)=yes
6300
4909
  if test "$with_gnu_ld" = yes; then
6301
4910
    # If archive_cmds runs LD, not CC, wlarc should be empty
6302
4911
    wlarc='${wl}'
6305
4914
    # are reset later if shared libraries are not supported. Putting them
6306
4915
    # here allows them to be overridden if necessary.
6307
4916
    runpath_var=LD_RUN_PATH
6308
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6309
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4917
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4918
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6310
4919
    # ancient GNU ld didn't support --whole-archive et. al.
6311
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6312
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6313
 
      else
6314
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4920
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
4921
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4922
    else
 
4923
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6315
4924
    fi
6316
4925
    supports_anon_versioning=no
6317
 
    case `$LD -v 2>/dev/null` in
 
4926
    case `$LD -v 2>&1` in
6318
4927
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6319
4928
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6320
4929
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6327
4936
    aix[[3-9]]*)
6328
4937
      # On AIX/PPC, the GNU linker is very broken
6329
4938
      if test "$host_cpu" != ia64; then
6330
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6331
 
        cat <<EOF 1>&2
 
4939
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4940
        cat <<_LT_EOF 1>&2
6332
4941
 
6333
4942
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6334
4943
*** to be unable to reliably create shared libraries on AIX.
6336
4945
*** really care for shared libraries, you may want to modify your PATH
6337
4946
*** so that a non-GNU linker is found, and then restart.
6338
4947
 
6339
 
EOF
 
4948
_LT_EOF
6340
4949
      fi
6341
4950
      ;;
6342
4951
 
6343
4952
    amigaos*)
6344
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6345
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6346
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6347
 
 
6348
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6349
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6350
 
      # to version 4, is to share data among multiple programs linked
6351
 
      # with the same dynamic library.  Since this doesn't match the
6352
 
      # behavior of shared libraries on other platforms, we can't use
6353
 
      # them.
6354
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4953
      case $host_cpu in
 
4954
      powerpc)
 
4955
            # see comment about AmigaOS4 .so support
 
4956
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4957
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4958
        ;;
 
4959
      m68k)
 
4960
            _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)'
 
4961
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4962
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4963
        ;;
 
4964
      esac
6355
4965
      ;;
6356
4966
 
6357
4967
    beos*)
6358
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6359
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4968
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4969
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6360
4970
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6361
4971
        # support --undefined.  This deserves some investigation.  FIXME
6362
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4972
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6363
4973
      else
6364
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4974
        _LT_TAGVAR(ld_shlibs, $1)=no
6365
4975
      fi
6366
4976
      ;;
6367
4977
 
6368
 
    cygwin* | mingw* | pw32*)
6369
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4978
    cygwin* | mingw* | pw32* | cegcc*)
 
4979
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6370
4980
      # as there is no search path for DLLs.
6371
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6372
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6373
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6374
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6375
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4981
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4982
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4983
      _LT_TAGVAR(always_export_symbols, $1)=no
 
4984
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4985
      _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'
6376
4986
 
6377
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6378
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4987
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
4988
        _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'
6379
4989
        # If the export-symbols file already is a .def file (1st line
6380
4990
        # is EXPORTS), use it as is; otherwise, prepend...
6381
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4991
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6382
4992
          cp $export_symbols $output_objdir/$soname.def;
6383
4993
        else
6384
4994
          echo EXPORTS > $output_objdir/$soname.def;
6386
4996
        fi~
6387
4997
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6388
4998
      else
6389
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4999
        _LT_TAGVAR(ld_shlibs, $1)=no
6390
5000
      fi
6391
5001
      ;;
6392
5002
 
6393
5003
    interix[[3-9]]*)
6394
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6395
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6397
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5004
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5005
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5006
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5007
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6398
5008
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6399
5009
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6400
5010
      # default) and relocated if they conflict, which is a slow very memory
6401
5011
      # consuming and fragmenting process.  To avoid this, we pick a random,
6402
5012
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6403
5013
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6404
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6405
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5014
      _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'
 
5015
      _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'
6406
5016
      ;;
6407
5017
 
6408
 
    gnu* | linux* | k*bsd*-gnu)
6409
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5018
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5019
      tmp_diet=no
 
5020
      if test "$host_os" = linux-dietlibc; then
 
5021
        case $cc_basename in
 
5022
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5023
        esac
 
5024
      fi
 
5025
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5026
         && test "$tmp_diet" = no
 
5027
      then
6410
5028
        tmp_addflag=
 
5029
        tmp_sharedflag='-shared'
6411
5030
        case $cc_basename,$host_cpu in
6412
 
        pgcc*)                          # Portland Group C compiler
6413
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5031
        pgcc*)                          # Portland Group C compiler
 
5032
          _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'
6414
5033
          tmp_addflag=' $pic_flag'
6415
5034
          ;;
6416
5035
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6417
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5036
          _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'
6418
5037
          tmp_addflag=' $pic_flag -Mnomain' ;;
6419
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5038
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6420
5039
          tmp_addflag=' -i_dynamic' ;;
6421
5040
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6422
5041
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6423
5042
        ifc* | ifort*)                  # Intel Fortran compiler
6424
5043
          tmp_addflag=' -nofor_main' ;;
 
5044
        lf95*)                          # Lahey Fortran 8.1
 
5045
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5046
          tmp_sharedflag='--shared' ;;
 
5047
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5048
          tmp_sharedflag='-qmkshrobj'
 
5049
          tmp_addflag= ;;
6425
5050
        esac
6426
5051
        case `$CC -V 2>&1 | sed 5q` in
6427
5052
        *Sun\ C*)                       # Sun C 5.9
6428
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5053
          _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'
 
5054
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6429
5055
          tmp_sharedflag='-G' ;;
6430
5056
        *Sun\ F*)                       # Sun Fortran 8.3
6431
5057
          tmp_sharedflag='-G' ;;
6432
 
        *)
6433
 
          tmp_sharedflag='-shared' ;;
6434
 
        esac
6435
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6436
 
 
6437
 
        if test $supports_anon_versioning = yes; then
6438
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6439
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6440
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6441
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6442
 
        fi
6443
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5058
        esac
 
5059
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5060
 
 
5061
        if test "x$supports_anon_versioning" = xyes; then
 
5062
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5063
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5064
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5065
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5066
        fi
 
5067
 
 
5068
        case $cc_basename in
 
5069
        xlf*)
 
5070
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5071
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5072
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5073
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5074
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5075
          if test "x$supports_anon_versioning" = xyes; then
 
5076
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5077
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5078
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5079
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5080
          fi
 
5081
          ;;
 
5082
        esac
6444
5083
      else
6445
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5084
        _LT_TAGVAR(ld_shlibs, $1)=no
6446
5085
      fi
6447
5086
      ;;
6448
5087
 
6449
5088
    netbsd* | netbsdelf*-gnu)
6450
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6451
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5089
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5090
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6452
5091
        wlarc=
6453
5092
      else
6454
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6455
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5093
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5094
        _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'
6456
5095
      fi
6457
5096
      ;;
6458
5097
 
6459
5098
    solaris*)
6460
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6461
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6462
 
        cat <<EOF 1>&2
 
5099
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5100
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5101
        cat <<_LT_EOF 1>&2
6463
5102
 
6464
5103
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6465
5104
*** create shared libraries on Solaris systems.  Therefore, libtool
6468
5107
*** your PATH or compiler configuration so that the native linker is
6469
5108
*** used, and then restart.
6470
5109
 
6471
 
EOF
6472
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6473
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6474
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5110
_LT_EOF
 
5111
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5112
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5113
        _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'
6475
5114
      else
6476
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5115
        _LT_TAGVAR(ld_shlibs, $1)=no
6477
5116
      fi
6478
5117
      ;;
6479
5118
 
6480
5119
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6481
5120
      case `$LD -v 2>&1` in
6482
5121
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6483
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5122
        _LT_TAGVAR(ld_shlibs, $1)=no
6484
5123
        cat <<_LT_EOF 1>&2
6485
5124
 
6486
5125
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6493
5132
_LT_EOF
6494
5133
        ;;
6495
5134
        *)
6496
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6497
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6498
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6499
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5135
          # For security reasons, it is highly recommended that you always
 
5136
          # use absolute paths for naming shared libraries, and exclude the
 
5137
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5138
          # requires that you compile everything twice, which is a pain.
 
5139
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5140
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5141
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5142
            _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'
6500
5143
          else
6501
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5144
            _LT_TAGVAR(ld_shlibs, $1)=no
6502
5145
          fi
6503
5146
        ;;
6504
5147
      esac
6505
5148
      ;;
6506
5149
 
6507
5150
    sunos4*)
6508
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5151
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6509
5152
      wlarc=
6510
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6511
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5153
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5154
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6512
5155
      ;;
6513
5156
 
6514
5157
    *)
6515
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6516
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6517
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5158
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5159
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5160
        _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'
6518
5161
      else
6519
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5162
        _LT_TAGVAR(ld_shlibs, $1)=no
6520
5163
      fi
6521
5164
      ;;
6522
5165
    esac
6523
5166
 
6524
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5167
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6525
5168
      runpath_var=
6526
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6527
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6528
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5169
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5170
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5171
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6529
5172
    fi
6530
5173
  else
6531
5174
    # PORTME fill in a description of your system's linker (not GNU ld)
6532
5175
    case $host_os in
6533
5176
    aix3*)
6534
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6535
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6536
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
5177
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5178
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5179
      _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'
6537
5180
      # Note: this linker hardcodes the directories in LIBPATH if there
6538
5181
      # are no directories specified by -L.
6539
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5182
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6540
5183
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6541
5184
        # Neither direct hardcoding nor static linking is supported with a
6542
5185
        # broken collect2.
6543
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5186
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6544
5187
      fi
6545
5188
      ;;
6546
5189
 
6554
5197
      else
6555
5198
        # If we're using GNU nm, then we don't want the "-C" option.
6556
5199
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6557
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6558
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5200
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5201
          _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'
6559
5202
        else
6560
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5203
          _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'
6561
5204
        fi
6562
5205
        aix_use_runtimelinking=no
6563
5206
 
6566
5209
        # need to do runtime linking.
6567
5210
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6568
5211
          for ld_flag in $LDFLAGS; do
6569
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6570
 
            aix_use_runtimelinking=yes
6571
 
            break
6572
 
          fi
 
5212
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5213
            aix_use_runtimelinking=yes
 
5214
            break
 
5215
          fi
6573
5216
          done
6574
5217
          ;;
6575
5218
        esac
6584
5227
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6585
5228
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6586
5229
 
6587
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6588
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6589
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6590
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5230
      _LT_TAGVAR(archive_cmds, $1)=''
 
5231
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5232
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5233
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5234
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5235
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6591
5236
 
6592
5237
      if test "$GCC" = yes; then
6593
5238
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6594
5239
        # We only want to do this on AIX 4.2 and lower, the check
6595
5240
        # below for broken collect2 doesn't work under 4.3+
6596
5241
          collect2name=`${CC} -print-prog-name=collect2`
6597
 
          if test -f "$collect2name" && \
6598
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5242
          if test -f "$collect2name" &&
 
5243
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6599
5244
          then
6600
 
          # We have reworked collect2
6601
 
          :
 
5245
          # We have reworked collect2
 
5246
          :
6602
5247
          else
6603
 
          # We have old collect2
6604
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6605
 
          # It fails to find uninstalled libraries when the uninstalled
6606
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6607
 
          # to unsupported forces relinking
6608
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6609
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6610
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5248
          # We have old collect2
 
5249
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5250
          # It fails to find uninstalled libraries when the uninstalled
 
5251
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5252
          # to unsupported forces relinking
 
5253
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5254
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5255
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6611
5256
          fi
6612
5257
          ;;
6613
5258
        esac
6615
5260
        if test "$aix_use_runtimelinking" = yes; then
6616
5261
          shared_flag="$shared_flag "'${wl}-G'
6617
5262
        fi
 
5263
        _LT_TAGVAR(link_all_deplibs, $1)=no
6618
5264
      else
6619
5265
        # not using gcc
6620
5266
        if test "$host_cpu" = ia64; then
6621
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6622
 
        # chokes on -Wl,-G. The following line is correct:
 
5267
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5268
        # chokes on -Wl,-G. The following line is correct:
6623
5269
          shared_flag='-G'
6624
5270
        else
6625
5271
          if test "$aix_use_runtimelinking" = yes; then
6630
5276
        fi
6631
5277
      fi
6632
5278
 
 
5279
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6633
5280
      # It seems that -bexpall does not export symbols beginning with
6634
5281
      # underscore (_), so it is better to generate a list of symbols to export.
6635
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5282
      _LT_TAGVAR(always_export_symbols, $1)=yes
6636
5283
      if test "$aix_use_runtimelinking" = yes; then
6637
5284
        # Warning - without using the other runtime loading flags (-brtl),
6638
5285
        # -berok will link without error, but may produce a broken library.
6639
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6640
 
       # Determine the default libpath from the value encoded in an empty executable.
6641
 
       _LT_AC_SYS_LIBPATH_AIX
6642
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6643
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6644
 
       else
 
5286
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5287
        # Determine the default libpath from the value encoded in an
 
5288
        # empty executable.
 
5289
        _LT_SYS_MODULE_PATH_AIX
 
5290
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5291
        _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"
 
5292
      else
6645
5293
        if test "$host_cpu" = ia64; then
6646
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6647
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6648
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
5294
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5295
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5296
          _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"
6649
5297
        else
6650
 
         # Determine the default libpath from the value encoded in an empty executable.
6651
 
         _LT_AC_SYS_LIBPATH_AIX
6652
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5298
         # Determine the default libpath from the value encoded in an
 
5299
         # empty executable.
 
5300
         _LT_SYS_MODULE_PATH_AIX
 
5301
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6653
5302
          # Warning - without using the other run time loading flags,
6654
5303
          # -berok will link without error, but may produce a broken library.
6655
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6656
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5304
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5305
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6657
5306
          # Exported symbols can be pulled into shared objects from archives
6658
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6659
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5307
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5308
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6660
5309
          # This is similar to how AIX traditionally builds its shared libraries.
6661
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5310
          _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'
6662
5311
        fi
6663
5312
      fi
6664
5313
      ;;
6665
5314
 
6666
5315
    amigaos*)
6667
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6668
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6669
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6670
 
      # see comment about different semantics on the GNU ld section
6671
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5316
      case $host_cpu in
 
5317
      powerpc)
 
5318
            # see comment about AmigaOS4 .so support
 
5319
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5320
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5321
        ;;
 
5322
      m68k)
 
5323
            _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)'
 
5324
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5325
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5326
        ;;
 
5327
      esac
6672
5328
      ;;
6673
5329
 
6674
5330
    bsdi[[45]]*)
6675
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5331
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6676
5332
      ;;
6677
5333
 
6678
 
    cygwin* | mingw* | pw32*)
 
5334
    cygwin* | mingw* | pw32* | cegcc*)
6679
5335
      # When not using gcc, we currently assume that we are using
6680
5336
      # Microsoft Visual C++.
6681
5337
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6682
5338
      # no search path for DLLs.
6683
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6684
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5339
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5340
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6685
5341
      # Tell ltmain to make .lib files, not .a files.
6686
5342
      libext=lib
6687
5343
      # Tell ltmain to make .dll files, not .so files.
6688
5344
      shrext_cmds=".dll"
6689
5345
      # FIXME: Setting linknames here is a bad hack.
6690
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5346
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6691
5347
      # The linker will automatically build a .lib file if we build a DLL.
6692
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5348
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6693
5349
      # FIXME: Should let the user specify the lib program.
6694
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6695
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6696
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5350
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5351
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5352
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6697
5353
      ;;
6698
5354
 
6699
5355
    darwin* | rhapsody*)
6700
 
      case $host_os in
6701
 
        rhapsody* | darwin1.[[012]])
6702
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6703
 
         ;;
6704
 
       *) # Darwin 1.3 on
6705
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6706
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6707
 
         else
6708
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6709
 
             10.[[012]])
6710
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6711
 
               ;;
6712
 
             10.*)
6713
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6714
 
               ;;
6715
 
           esac
6716
 
         fi
6717
 
         ;;
6718
 
      esac
6719
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6720
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6721
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6722
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6723
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6724
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6725
 
    if test "$GCC" = yes ; then
6726
 
        output_verbose_link_cmd='echo'
6727
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6728
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6729
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6730
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6731
 
    else
6732
 
      case $cc_basename in
6733
 
        xlc*)
6734
 
         output_verbose_link_cmd='echo'
6735
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6736
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6737
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6738
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6739
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6740
 
          ;;
6741
 
       *)
6742
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6743
 
          ;;
6744
 
      esac
6745
 
    fi
 
5356
      _LT_DARWIN_LINKER_FEATURES($1)
6746
5357
      ;;
6747
5358
 
6748
5359
    dgux*)
6749
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6750
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6751
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5360
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5361
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5362
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6752
5363
      ;;
6753
5364
 
6754
5365
    freebsd1*)
6755
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5366
      _LT_TAGVAR(ld_shlibs, $1)=no
6756
5367
      ;;
6757
5368
 
6758
5369
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6760
5371
    # does not break anything, and helps significantly (at the cost of a little
6761
5372
    # extra space).
6762
5373
    freebsd2.2*)
6763
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6764
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6765
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6766
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5374
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5375
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5376
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5377
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6767
5378
      ;;
6768
5379
 
6769
5380
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6770
5381
    freebsd2*)
6771
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6772
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6773
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6774
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5382
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5383
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5384
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5385
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6775
5386
      ;;
6776
5387
 
6777
5388
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6778
5389
    freebsd* | dragonfly*)
6779
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6780
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6781
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6782
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5390
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5391
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5392
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5393
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6783
5394
      ;;
6784
5395
 
6785
5396
    hpux9*)
6786
5397
      if test "$GCC" = yes; then
6787
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5398
        _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'
6788
5399
      else
6789
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5400
        _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'
6790
5401
      fi
6791
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6792
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6793
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5402
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5403
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5404
      _LT_TAGVAR(hardcode_direct, $1)=yes
6794
5405
 
6795
5406
      # hardcode_minus_L: Not really in the search PATH,
6796
5407
      # but as the default location of the library.
6797
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6798
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5408
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5409
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6799
5410
      ;;
6800
5411
 
6801
5412
    hpux10*)
6802
5413
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6803
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5414
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6804
5415
      else
6805
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5416
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6806
5417
      fi
6807
5418
      if test "$with_gnu_ld" = no; then
6808
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6809
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6810
 
 
6811
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6812
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6813
 
 
 
5419
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5420
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5421
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5422
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5423
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5424
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6814
5425
        # hardcode_minus_L: Not really in the search PATH,
6815
5426
        # but as the default location of the library.
6816
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5427
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6817
5428
      fi
6818
5429
      ;;
6819
5430
 
6821
5432
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6822
5433
        case $host_cpu in
6823
5434
        hppa*64*)
6824
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5435
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6825
5436
          ;;
6826
5437
        ia64*)
6827
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5438
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6828
5439
          ;;
6829
5440
        *)
6830
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5441
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6831
5442
          ;;
6832
5443
        esac
6833
5444
      else
6834
5445
        case $host_cpu in
6835
5446
        hppa*64*)
6836
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5447
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6837
5448
          ;;
6838
5449
        ia64*)
6839
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5450
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6840
5451
          ;;
6841
5452
        *)
6842
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5453
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6843
5454
          ;;
6844
5455
        esac
6845
5456
      fi
6846
5457
      if test "$with_gnu_ld" = no; then
6847
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6848
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5458
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5459
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6849
5460
 
6850
5461
        case $host_cpu in
6851
5462
        hppa*64*|ia64*)
6852
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6853
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6854
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5463
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5464
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6855
5465
          ;;
6856
5466
        *)
6857
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6858
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5467
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5468
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5469
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6859
5470
 
6860
5471
          # hardcode_minus_L: Not really in the search PATH,
6861
5472
          # but as the default location of the library.
6862
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5473
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6863
5474
          ;;
6864
5475
        esac
6865
5476
      fi
6867
5478
 
6868
5479
    irix5* | irix6* | nonstopux*)
6869
5480
      if test "$GCC" = yes; then
6870
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5481
        _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'
 
5482
        # Try to use the -exported_symbol ld option, if it does not
 
5483
        # work, assume that -exports_file does not work either and
 
5484
        # implicitly export all symbols.
 
5485
        save_LDFLAGS="$LDFLAGS"
 
5486
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5487
        AC_LINK_IFELSE(int foo(void) {},
 
5488
          _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'
 
5489
        )
 
5490
        LDFLAGS="$save_LDFLAGS"
6871
5491
      else
6872
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6873
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5492
        _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'
 
5493
        _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'
6874
5494
      fi
6875
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6876
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6877
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5495
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5496
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5497
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5498
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5499
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6878
5500
      ;;
6879
5501
 
6880
5502
    netbsd* | netbsdelf*-gnu)
6881
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6882
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5503
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5504
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6883
5505
      else
6884
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5506
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6885
5507
      fi
6886
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6887
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6888
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5508
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5509
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5510
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6889
5511
      ;;
6890
5512
 
6891
5513
    newsos6)
6892
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6894
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6895
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6896
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5514
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5515
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5516
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5517
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5518
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5519
      ;;
 
5520
 
 
5521
    *nto* | *qnx*)
6897
5522
      ;;
6898
5523
 
6899
5524
    openbsd*)
6900
5525
      if test -f /usr/libexec/ld.so; then
6901
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6902
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6903
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6904
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6905
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6906
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6907
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5526
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5527
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5528
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5529
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5530
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5531
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5532
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5533
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6908
5534
        else
6909
5535
          case $host_os in
6910
5536
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6911
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6912
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5537
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5538
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6913
5539
             ;;
6914
5540
           *)
6915
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6916
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5541
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5542
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6917
5543
             ;;
6918
5544
          esac
6919
 
        fi
 
5545
        fi
6920
5546
      else
6921
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5547
        _LT_TAGVAR(ld_shlibs, $1)=no
6922
5548
      fi
6923
5549
      ;;
6924
5550
 
6925
5551
    os2*)
6926
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6927
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6928
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6929
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6930
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5552
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5553
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5554
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5555
      _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'
 
5556
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6931
5557
      ;;
6932
5558
 
6933
5559
    osf3*)
6934
5560
      if test "$GCC" = yes; then
6935
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6936
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5561
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5562
        _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'
6937
5563
      else
6938
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6939
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5564
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5565
        _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'
6940
5566
      fi
6941
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6942
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5567
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5568
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5569
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6943
5570
      ;;
6944
5571
 
6945
5572
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6946
5573
      if test "$GCC" = yes; then
6947
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6948
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6949
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5574
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5575
        _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'
 
5576
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6950
5577
      else
6951
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6952
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6953
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6954
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5578
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5579
        _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'
 
5580
        _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~
 
5581
        $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'
6955
5582
 
6956
5583
        # Both c and cxx compiler support -rpath directly
6957
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5584
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6958
5585
      fi
6959
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5586
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5587
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6960
5588
      ;;
6961
5589
 
6962
5590
    solaris*)
6963
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5591
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6964
5592
      if test "$GCC" = yes; then
6965
5593
        wlarc='${wl}'
6966
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6967
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6968
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5594
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5595
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5596
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6969
5597
      else
6970
 
        wlarc=''
6971
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6973
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5598
        case `$CC -V 2>&1` in
 
5599
        *"Compilers 5.0"*)
 
5600
          wlarc=''
 
5601
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5602
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5603
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5604
          ;;
 
5605
        *)
 
5606
          wlarc='${wl}'
 
5607
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5608
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5609
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5610
          ;;
 
5611
        esac
6974
5612
      fi
6975
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6976
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5613
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5614
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6977
5615
      case $host_os in
6978
5616
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6979
5617
      *)
6980
5618
        # The compiler driver will combine and reorder linker options,
6981
5619
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6982
5620
        # but is careful enough not to reorder.
6983
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5621
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6984
5622
        if test "$GCC" = yes; then
6985
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5623
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6986
5624
        else
6987
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5625
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6988
5626
        fi
6989
5627
        ;;
6990
5628
      esac
6991
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5629
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6992
5630
      ;;
6993
5631
 
6994
5632
    sunos4*)
6995
5633
      if test "x$host_vendor" = xsequent; then
6996
5634
        # Use $CC to link under sequent, because it throws in some extra .o
6997
5635
        # files that make .init and .fini sections work.
6998
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5636
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6999
5637
      else
7000
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5638
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7001
5639
      fi
7002
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7003
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7004
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7005
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5640
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5641
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5642
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5643
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7006
5644
      ;;
7007
5645
 
7008
5646
    sysv4)
7009
5647
      case $host_vendor in
7010
5648
        sni)
7011
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5649
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5650
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7013
5651
        ;;
7014
5652
        siemens)
7015
5653
          ## LD is ld it makes a PLAMLIB
7016
5654
          ## CC just makes a GrossModule.
7017
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7018
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7019
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5655
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5656
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5657
          _LT_TAGVAR(hardcode_direct, $1)=no
7020
5658
        ;;
7021
5659
        motorola)
7022
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5660
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5661
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7024
5662
        ;;
7025
5663
      esac
7026
5664
      runpath_var='LD_RUN_PATH'
7027
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5665
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7028
5666
      ;;
7029
5667
 
7030
5668
    sysv4.3*)
7031
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7033
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5669
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5670
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5671
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7034
5672
      ;;
7035
5673
 
7036
5674
    sysv4*MP*)
7037
5675
      if test -d /usr/nec; then
7038
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7039
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5676
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5677
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7040
5678
        runpath_var=LD_RUN_PATH
7041
5679
        hardcode_runpath_var=yes
7042
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5680
        _LT_TAGVAR(ld_shlibs, $1)=yes
7043
5681
      fi
7044
5682
      ;;
7045
5683
 
7046
5684
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7047
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7048
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7049
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5685
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5686
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5687
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050
5688
      runpath_var='LD_RUN_PATH'
7051
5689
 
7052
5690
      if test "$GCC" = yes; then
7053
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7054
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5691
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5692
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7055
5693
      else
7056
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7057
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5694
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5695
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7058
5696
      fi
7059
5697
      ;;
7060
5698
 
7065
5703
      # ever link correctly.  If we're not using GNU ld we use -z text
7066
5704
      # though, which does catch some bad symbols but isn't as heavy-handed
7067
5705
      # as -z defs.
7068
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7069
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7070
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7071
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7072
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7073
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7074
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7075
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5706
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5707
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5708
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5709
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5710
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5711
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5712
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5713
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7076
5714
      runpath_var='LD_RUN_PATH'
7077
5715
 
7078
5716
      if test "$GCC" = yes; then
7079
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7080
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5717
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5718
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7081
5719
      else
7082
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7083
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5720
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5721
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7084
5722
      fi
7085
5723
      ;;
7086
5724
 
7087
5725
    uts4*)
7088
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7089
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7090
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5726
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5727
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5728
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7091
5729
      ;;
7092
5730
 
7093
5731
    *)
7094
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5732
      _LT_TAGVAR(ld_shlibs, $1)=no
7095
5733
      ;;
7096
5734
    esac
 
5735
 
 
5736
    if test x$host_vendor = xsni; then
 
5737
      case $host in
 
5738
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5739
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5740
        ;;
 
5741
      esac
 
5742
    fi
7097
5743
  fi
7098
5744
])
7099
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7100
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5745
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5746
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5747
 
 
5748
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5749
 
 
5750
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5751
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5752
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5753
    [The commands to extract the exported symbol list from a shared archive])
7101
5754
 
7102
5755
#
7103
5756
# Do we need to explicitly link libc?
7104
5757
#
7105
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5758
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7106
5759
x|xyes)
7107
5760
  # Assume -lc should be added
7108
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5761
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7109
5762
 
7110
5763
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7111
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5764
    case $_LT_TAGVAR(archive_cmds, $1) in
7112
5765
    *'~'*)
7113
5766
      # FIXME: we may have to deal with multi-command sequences.
7114
5767
      ;;
7117
5770
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7118
5771
      # to ld, don't add -lc before -lgcc.
7119
5772
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7120
 
      $rm conftest*
 
5773
      $RM conftest*
7121
5774
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7122
5775
 
7123
5776
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7125
5778
        lib=conftest
7126
5779
        libobjs=conftest.$ac_objext
7127
5780
        deplibs=
7128
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7129
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5781
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5782
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7130
5783
        compiler_flags=-v
7131
5784
        linker_flags=-v
7132
5785
        verstring=
7133
5786
        output_objdir=.
7134
5787
        libname=conftest
7135
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7136
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7137
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
5788
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5789
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
5790
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7138
5791
        then
7139
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5792
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7140
5793
        else
7141
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5794
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7142
5795
        fi
7143
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5796
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7144
5797
      else
7145
5798
        cat conftest.err 1>&5
7146
5799
      fi
7147
 
      $rm conftest*
7148
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
5800
      $RM conftest*
 
5801
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7149
5802
      ;;
7150
5803
    esac
7151
5804
  fi
7152
5805
  ;;
7153
5806
esac
7154
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7155
 
 
7156
 
 
7157
 
# _LT_AC_FILE_LTDLL_C
7158
 
# -------------------
7159
 
# Be careful that the start marker always follows a newline.
7160
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7161
 
# /* ltdll.c starts here */
7162
 
# #define WIN32_LEAN_AND_MEAN
7163
 
# #include <windows.h>
7164
 
# #undef WIN32_LEAN_AND_MEAN
7165
 
# #include <stdio.h>
7166
 
#
7167
 
# #ifndef __CYGWIN__
7168
 
# #  ifdef __CYGWIN32__
7169
 
# #    define __CYGWIN__ __CYGWIN32__
7170
 
# #  endif
7171
 
# #endif
7172
 
#
7173
 
# #ifdef __cplusplus
7174
 
# extern "C" {
7175
 
# #endif
7176
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7177
 
# #ifdef __cplusplus
7178
 
# }
7179
 
# #endif
7180
 
#
7181
 
# #ifdef __CYGWIN__
7182
 
# #include <cygwin/cygwin_dll.h>
7183
 
# DECLARE_CYGWIN_DLL( DllMain );
7184
 
# #endif
7185
 
# HINSTANCE __hDllInstance_base;
7186
 
#
7187
 
# BOOL APIENTRY
7188
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7189
 
# {
7190
 
#   __hDllInstance_base = hInst;
7191
 
#   return TRUE;
7192
 
# }
7193
 
# /* ltdll.c ends here */
7194
 
])# _LT_AC_FILE_LTDLL_C
7195
 
 
7196
 
 
7197
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
5807
 
 
5808
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
5809
    [Whether or not to add -lc for building shared libraries])
 
5810
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
5811
    [enable_shared_with_static_runtimes], [0],
 
5812
    [Whether or not to disallow shared libs when runtime libs are static])
 
5813
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
5814
    [Compiler flag to allow reflexive dlopens])
 
5815
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
5816
    [Compiler flag to generate shared objects directly from archives])
 
5817
_LT_TAGDECL([], [compiler_needs_object], [1],
 
5818
    [Whether the compiler copes with passing no objects directly])
 
5819
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
5820
    [Create an old-style archive from a shared archive])
 
5821
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
5822
    [Create a temporary old-style archive to link instead of a shared archive])
 
5823
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
5824
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
5825
_LT_TAGDECL([], [module_cmds], [2],
 
5826
    [Commands used to build a loadable module if different from building
 
5827
    a shared archive.])
 
5828
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
5829
_LT_TAGDECL([], [with_gnu_ld], [1],
 
5830
    [Whether we are building with GNU ld or not])
 
5831
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
5832
    [Flag that allows shared libraries with undefined symbols to be built])
 
5833
_LT_TAGDECL([], [no_undefined_flag], [1],
 
5834
    [Flag that enforces no undefined symbols])
 
5835
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
5836
    [Flag to hardcode $libdir into a binary during linking.
 
5837
    This must work even if $libdir does not exist])
 
5838
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
5839
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
5840
    during linking.  This must work even if $libdir does not exist]])
 
5841
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
5842
    [Whether we need a single "-rpath" flag with a separated argument])
 
5843
_LT_TAGDECL([], [hardcode_direct], [0],
 
5844
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5845
    DIR into the resulting binary])
 
5846
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
5847
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5848
    DIR into the resulting binary and the resulting library dependency is
 
5849
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
5850
    library is relocated])
 
5851
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
5852
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
5853
    into the resulting binary])
 
5854
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
5855
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
5856
    into the resulting binary])
 
5857
_LT_TAGDECL([], [hardcode_automatic], [0],
 
5858
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
5859
    into the library and all subsequent libraries and executables linked
 
5860
    against it])
 
5861
_LT_TAGDECL([], [inherit_rpath], [0],
 
5862
    [Set to yes if linker adds runtime paths of dependent libraries
 
5863
    to runtime path list])
 
5864
_LT_TAGDECL([], [link_all_deplibs], [0],
 
5865
    [Whether libtool must link a program against all its dependency libraries])
 
5866
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
5867
    [Fix the shell variable $srcfile for the compiler])
 
5868
_LT_TAGDECL([], [always_export_symbols], [0],
 
5869
    [Set to "yes" if exported symbols are required])
 
5870
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
5871
    [The commands to list exported symbols])
 
5872
_LT_TAGDECL([], [exclude_expsyms], [1],
 
5873
    [Symbols that should not be listed in the preloaded symbols])
 
5874
_LT_TAGDECL([], [include_expsyms], [1],
 
5875
    [Symbols that must always be exported])
 
5876
_LT_TAGDECL([], [prelink_cmds], [2],
 
5877
    [Commands necessary for linking programs (against libraries) with templates])
 
5878
_LT_TAGDECL([], [file_list_spec], [1],
 
5879
    [Specify filename containing input files])
 
5880
dnl FIXME: Not yet implemented
 
5881
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
5882
dnl    [Compiler flag to generate thread safe objects])
 
5883
])# _LT_LINKER_SHLIBS
 
5884
 
 
5885
 
 
5886
# _LT_LANG_C_CONFIG([TAG])
 
5887
# ------------------------
 
5888
# Ensure that the configuration variables for a C compiler are suitably
 
5889
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5890
# the compiler configuration to `libtool'.
 
5891
m4_defun([_LT_LANG_C_CONFIG],
 
5892
[m4_require([_LT_DECL_EGREP])dnl
 
5893
lt_save_CC="$CC"
 
5894
AC_LANG_PUSH(C)
 
5895
 
 
5896
# Source file extension for C test sources.
 
5897
ac_ext=c
 
5898
 
 
5899
# Object file extension for compiled C test sources.
 
5900
objext=o
 
5901
_LT_TAGVAR(objext, $1)=$objext
 
5902
 
 
5903
# Code to be used in simple compile tests
 
5904
lt_simple_compile_test_code="int some_variable = 0;"
 
5905
 
 
5906
# Code to be used in simple link tests
 
5907
lt_simple_link_test_code='int main(){return(0);}'
 
5908
 
 
5909
_LT_TAG_COMPILER
 
5910
# Save the default compiler, since it gets overwritten when the other
 
5911
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
5912
compiler_DEFAULT=$CC
 
5913
 
 
5914
# save warnings/boilerplate of simple test code
 
5915
_LT_COMPILER_BOILERPLATE
 
5916
_LT_LINKER_BOILERPLATE
 
5917
 
 
5918
if test -n "$compiler"; then
 
5919
  _LT_COMPILER_NO_RTTI($1)
 
5920
  _LT_COMPILER_PIC($1)
 
5921
  _LT_COMPILER_C_O($1)
 
5922
  _LT_COMPILER_FILE_LOCKS($1)
 
5923
  _LT_LINKER_SHLIBS($1)
 
5924
  _LT_SYS_DYNAMIC_LINKER($1)
 
5925
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
5926
  LT_SYS_DLOPEN_SELF
 
5927
  _LT_CMD_STRIPLIB
 
5928
 
 
5929
  # Report which library types will actually be built
 
5930
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
5931
  AC_MSG_RESULT([$can_build_shared])
 
5932
 
 
5933
  AC_MSG_CHECKING([whether to build shared libraries])
 
5934
  test "$can_build_shared" = "no" && enable_shared=no
 
5935
 
 
5936
  # On AIX, shared libraries and static libraries use the same namespace, and
 
5937
  # are all built from PIC.
 
5938
  case $host_os in
 
5939
  aix3*)
 
5940
    test "$enable_shared" = yes && enable_static=no
 
5941
    if test -n "$RANLIB"; then
 
5942
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5943
      postinstall_cmds='$RANLIB $lib'
 
5944
    fi
 
5945
    ;;
 
5946
 
 
5947
  aix[[4-9]]*)
 
5948
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5949
      test "$enable_shared" = yes && enable_static=no
 
5950
    fi
 
5951
    ;;
 
5952
  esac
 
5953
  AC_MSG_RESULT([$enable_shared])
 
5954
 
 
5955
  AC_MSG_CHECKING([whether to build static libraries])
 
5956
  # Make sure either enable_shared or enable_static is yes.
 
5957
  test "$enable_shared" = yes || enable_static=yes
 
5958
  AC_MSG_RESULT([$enable_static])
 
5959
 
 
5960
  _LT_CONFIG($1)
 
5961
fi
 
5962
AC_LANG_POP
 
5963
CC="$lt_save_CC"
 
5964
])# _LT_LANG_C_CONFIG
 
5965
 
 
5966
 
 
5967
# _LT_PROG_CXX
 
5968
# ------------
 
5969
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
5970
# compiler, we have our own version here.
 
5971
m4_defun([_LT_PROG_CXX],
 
5972
[
 
5973
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
5974
AC_PROG_CXX
 
5975
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5976
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5977
    (test "X$CXX" != "Xg++"))) ; then
 
5978
  AC_PROG_CXXCPP
 
5979
else
 
5980
  _lt_caught_CXX_error=yes
 
5981
fi
 
5982
popdef([AC_MSG_ERROR])
 
5983
])# _LT_PROG_CXX
 
5984
 
 
5985
dnl aclocal-1.4 backwards compatibility:
 
5986
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
5987
 
 
5988
 
 
5989
# _LT_LANG_CXX_CONFIG([TAG])
 
5990
# --------------------------
 
5991
# Ensure that the configuration variables for a C++ compiler are suitably
 
5992
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5993
# the compiler configuration to `libtool'.
 
5994
m4_defun([_LT_LANG_CXX_CONFIG],
 
5995
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
5996
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5997
m4_require([_LT_DECL_EGREP])dnl
 
5998
 
 
5999
AC_LANG_PUSH(C++)
 
6000
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6001
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6002
_LT_TAGVAR(always_export_symbols, $1)=no
 
6003
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6004
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6005
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6006
_LT_TAGVAR(hardcode_direct, $1)=no
 
6007
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6008
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6009
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6010
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6011
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6012
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6013
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6014
_LT_TAGVAR(inherit_rpath, $1)=no
 
6015
_LT_TAGVAR(module_cmds, $1)=
 
6016
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6017
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6018
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6019
_LT_TAGVAR(no_undefined_flag, $1)=
 
6020
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6021
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6022
 
 
6023
# Source file extension for C++ test sources.
 
6024
ac_ext=cpp
 
6025
 
 
6026
# Object file extension for compiled C++ test sources.
 
6027
objext=o
 
6028
_LT_TAGVAR(objext, $1)=$objext
 
6029
 
 
6030
# No sense in running all these tests if we already determined that
 
6031
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6032
# are currently assumed to apply to all compilers on this platform,
 
6033
# and will be corrupted by setting them based on a non-working compiler.
 
6034
if test "$_lt_caught_CXX_error" != yes; then
 
6035
  # Code to be used in simple compile tests
 
6036
  lt_simple_compile_test_code="int some_variable = 0;"
 
6037
 
 
6038
  # Code to be used in simple link tests
 
6039
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6040
 
 
6041
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6042
  _LT_TAG_COMPILER
 
6043
 
 
6044
  # save warnings/boilerplate of simple test code
 
6045
  _LT_COMPILER_BOILERPLATE
 
6046
  _LT_LINKER_BOILERPLATE
 
6047
 
 
6048
  # Allow CC to be a program name with arguments.
 
6049
  lt_save_CC=$CC
 
6050
  lt_save_LD=$LD
 
6051
  lt_save_GCC=$GCC
 
6052
  GCC=$GXX
 
6053
  lt_save_with_gnu_ld=$with_gnu_ld
 
6054
  lt_save_path_LD=$lt_cv_path_LD
 
6055
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6056
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6057
  else
 
6058
    $as_unset lt_cv_prog_gnu_ld
 
6059
  fi
 
6060
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6061
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6062
  else
 
6063
    $as_unset lt_cv_path_LD
 
6064
  fi
 
6065
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6066
  CC=${CXX-"c++"}
 
6067
  compiler=$CC
 
6068
  _LT_TAGVAR(compiler, $1)=$CC
 
6069
  _LT_CC_BASENAME([$compiler])
 
6070
 
 
6071
  if test -n "$compiler"; then
 
6072
    # We don't want -fno-exception when compiling C++ code, so set the
 
6073
    # no_builtin_flag separately
 
6074
    if test "$GXX" = yes; then
 
6075
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6076
    else
 
6077
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6078
    fi
 
6079
 
 
6080
    if test "$GXX" = yes; then
 
6081
      # Set up default GNU C++ configuration
 
6082
 
 
6083
      LT_PATH_LD
 
6084
 
 
6085
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6086
      # archiving commands below assume that GNU ld is being used.
 
6087
      if test "$with_gnu_ld" = yes; then
 
6088
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6089
        _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'
 
6090
 
 
6091
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6092
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6093
 
 
6094
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6095
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6096
        #     investigate it a little bit more. (MM)
 
6097
        wlarc='${wl}'
 
6098
 
 
6099
        # ancient GNU ld didn't support --whole-archive et. al.
 
6100
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6101
          $GREP 'no-whole-archive' > /dev/null; then
 
6102
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6103
        else
 
6104
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6105
        fi
 
6106
      else
 
6107
        with_gnu_ld=no
 
6108
        wlarc=
 
6109
 
 
6110
        # A generic and very simple default shared library creation
 
6111
        # command for GNU C++ for the case where it uses the native
 
6112
        # linker, instead of GNU ld.  If possible, this setting should
 
6113
        # overridden to take advantage of the native linker features on
 
6114
        # the platform it is being used on.
 
6115
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6116
      fi
 
6117
 
 
6118
      # Commands to make compiler produce verbose output that lists
 
6119
      # what "hidden" libraries, object files and flags are used when
 
6120
      # linking a shared library.
 
6121
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6122
 
 
6123
    else
 
6124
      GXX=no
 
6125
      with_gnu_ld=no
 
6126
      wlarc=
 
6127
    fi
 
6128
 
 
6129
    # PORTME: fill in a description of your system's C++ link characteristics
 
6130
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6131
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6132
    case $host_os in
 
6133
      aix3*)
 
6134
        # FIXME: insert proper C++ library support
 
6135
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6136
        ;;
 
6137
      aix[[4-9]]*)
 
6138
        if test "$host_cpu" = ia64; then
 
6139
          # On IA64, the linker does run time linking by default, so we don't
 
6140
          # have to do anything special.
 
6141
          aix_use_runtimelinking=no
 
6142
          exp_sym_flag='-Bexport'
 
6143
          no_entry_flag=""
 
6144
        else
 
6145
          aix_use_runtimelinking=no
 
6146
 
 
6147
          # Test if we are trying to use run time linking or normal
 
6148
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6149
          # need to do runtime linking.
 
6150
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6151
            for ld_flag in $LDFLAGS; do
 
6152
              case $ld_flag in
 
6153
              *-brtl*)
 
6154
                aix_use_runtimelinking=yes
 
6155
                break
 
6156
                ;;
 
6157
              esac
 
6158
            done
 
6159
            ;;
 
6160
          esac
 
6161
 
 
6162
          exp_sym_flag='-bexport'
 
6163
          no_entry_flag='-bnoentry'
 
6164
        fi
 
6165
 
 
6166
        # When large executables or shared objects are built, AIX ld can
 
6167
        # have problems creating the table of contents.  If linking a library
 
6168
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6169
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6170
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6171
 
 
6172
        _LT_TAGVAR(archive_cmds, $1)=''
 
6173
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6174
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6175
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6176
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6177
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6178
 
 
6179
        if test "$GXX" = yes; then
 
6180
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6181
          # We only want to do this on AIX 4.2 and lower, the check
 
6182
          # below for broken collect2 doesn't work under 4.3+
 
6183
          collect2name=`${CC} -print-prog-name=collect2`
 
6184
          if test -f "$collect2name" &&
 
6185
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6186
          then
 
6187
            # We have reworked collect2
 
6188
            :
 
6189
          else
 
6190
            # We have old collect2
 
6191
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6192
            # It fails to find uninstalled libraries when the uninstalled
 
6193
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6194
            # to unsupported forces relinking
 
6195
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6196
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6197
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6198
          fi
 
6199
          esac
 
6200
          shared_flag='-shared'
 
6201
          if test "$aix_use_runtimelinking" = yes; then
 
6202
            shared_flag="$shared_flag "'${wl}-G'
 
6203
          fi
 
6204
        else
 
6205
          # not using gcc
 
6206
          if test "$host_cpu" = ia64; then
 
6207
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6208
          # chokes on -Wl,-G. The following line is correct:
 
6209
          shared_flag='-G'
 
6210
          else
 
6211
            if test "$aix_use_runtimelinking" = yes; then
 
6212
              shared_flag='${wl}-G'
 
6213
            else
 
6214
              shared_flag='${wl}-bM:SRE'
 
6215
            fi
 
6216
          fi
 
6217
        fi
 
6218
 
 
6219
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6220
        # It seems that -bexpall does not export symbols beginning with
 
6221
        # underscore (_), so it is better to generate a list of symbols to
 
6222
        # export.
 
6223
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6224
        if test "$aix_use_runtimelinking" = yes; then
 
6225
          # Warning - without using the other runtime loading flags (-brtl),
 
6226
          # -berok will link without error, but may produce a broken library.
 
6227
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6228
          # Determine the default libpath from the value encoded in an empty
 
6229
          # executable.
 
6230
          _LT_SYS_MODULE_PATH_AIX
 
6231
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6232
 
 
6233
          _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"
 
6234
        else
 
6235
          if test "$host_cpu" = ia64; then
 
6236
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6237
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6238
            _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"
 
6239
          else
 
6240
            # Determine the default libpath from the value encoded in an
 
6241
            # empty executable.
 
6242
            _LT_SYS_MODULE_PATH_AIX
 
6243
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6244
            # Warning - without using the other run time loading flags,
 
6245
            # -berok will link without error, but may produce a broken library.
 
6246
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6247
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6248
            # Exported symbols can be pulled into shared objects from archives
 
6249
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6250
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6251
            # This is similar to how AIX traditionally builds its shared
 
6252
            # libraries.
 
6253
            _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'
 
6254
          fi
 
6255
        fi
 
6256
        ;;
 
6257
 
 
6258
      beos*)
 
6259
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6260
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6261
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6262
          # support --undefined.  This deserves some investigation.  FIXME
 
6263
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6264
        else
 
6265
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6266
        fi
 
6267
        ;;
 
6268
 
 
6269
      chorus*)
 
6270
        case $cc_basename in
 
6271
          *)
 
6272
          # FIXME: insert proper C++ library support
 
6273
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6274
          ;;
 
6275
        esac
 
6276
        ;;
 
6277
 
 
6278
      cygwin* | mingw* | pw32* | cegcc*)
 
6279
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6280
        # as there is no search path for DLLs.
 
6281
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6282
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6283
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6284
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6285
 
 
6286
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6287
          _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'
 
6288
          # If the export-symbols file already is a .def file (1st line
 
6289
          # is EXPORTS), use it as is; otherwise, prepend...
 
6290
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6291
            cp $export_symbols $output_objdir/$soname.def;
 
6292
          else
 
6293
            echo EXPORTS > $output_objdir/$soname.def;
 
6294
            cat $export_symbols >> $output_objdir/$soname.def;
 
6295
          fi~
 
6296
          $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'
 
6297
        else
 
6298
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6299
        fi
 
6300
        ;;
 
6301
      darwin* | rhapsody*)
 
6302
        _LT_DARWIN_LINKER_FEATURES($1)
 
6303
        ;;
 
6304
 
 
6305
      dgux*)
 
6306
        case $cc_basename in
 
6307
          ec++*)
 
6308
            # FIXME: insert proper C++ library support
 
6309
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6310
            ;;
 
6311
          ghcx*)
 
6312
            # Green Hills C++ Compiler
 
6313
            # FIXME: insert proper C++ library support
 
6314
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6315
            ;;
 
6316
          *)
 
6317
            # FIXME: insert proper C++ library support
 
6318
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6319
            ;;
 
6320
        esac
 
6321
        ;;
 
6322
 
 
6323
      freebsd[[12]]*)
 
6324
        # C++ shared libraries reported to be fairly broken before
 
6325
        # switch to ELF
 
6326
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6327
        ;;
 
6328
 
 
6329
      freebsd-elf*)
 
6330
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6331
        ;;
 
6332
 
 
6333
      freebsd* | dragonfly*)
 
6334
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6335
        # conventions
 
6336
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6337
        ;;
 
6338
 
 
6339
      gnu*)
 
6340
        ;;
 
6341
 
 
6342
      hpux9*)
 
6343
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6344
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6345
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6346
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6347
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6348
                                             # but as the default
 
6349
                                             # location of the library.
 
6350
 
 
6351
        case $cc_basename in
 
6352
          CC*)
 
6353
            # FIXME: insert proper C++ library support
 
6354
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6355
            ;;
 
6356
          aCC*)
 
6357
            _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'
 
6358
            # Commands to make compiler produce verbose output that lists
 
6359
            # what "hidden" libraries, object files and flags are used when
 
6360
            # linking a shared library.
 
6361
            #
 
6362
            # There doesn't appear to be a way to prevent this compiler from
 
6363
            # explicitly linking system object files so we need to strip them
 
6364
            # from the output so that they don't get included in the library
 
6365
            # dependencies.
 
6366
            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'
 
6367
            ;;
 
6368
          *)
 
6369
            if test "$GXX" = yes; then
 
6370
              _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'
 
6371
            else
 
6372
              # FIXME: insert proper C++ library support
 
6373
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6374
            fi
 
6375
            ;;
 
6376
        esac
 
6377
        ;;
 
6378
 
 
6379
      hpux10*|hpux11*)
 
6380
        if test $with_gnu_ld = no; then
 
6381
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6382
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6383
 
 
6384
          case $host_cpu in
 
6385
            hppa*64*|ia64*)
 
6386
              ;;
 
6387
            *)
 
6388
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6389
              ;;
 
6390
          esac
 
6391
        fi
 
6392
        case $host_cpu in
 
6393
          hppa*64*|ia64*)
 
6394
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6395
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6396
            ;;
 
6397
          *)
 
6398
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6399
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6400
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6401
                                                 # but as the default
 
6402
                                                 # location of the library.
 
6403
            ;;
 
6404
        esac
 
6405
 
 
6406
        case $cc_basename in
 
6407
          CC*)
 
6408
            # FIXME: insert proper C++ library support
 
6409
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6410
            ;;
 
6411
          aCC*)
 
6412
            case $host_cpu in
 
6413
              hppa*64*)
 
6414
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6415
                ;;
 
6416
              ia64*)
 
6417
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6418
                ;;
 
6419
              *)
 
6420
                _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'
 
6421
                ;;
 
6422
            esac
 
6423
            # Commands to make compiler produce verbose output that lists
 
6424
            # what "hidden" libraries, object files and flags are used when
 
6425
            # linking a shared library.
 
6426
            #
 
6427
            # There doesn't appear to be a way to prevent this compiler from
 
6428
            # explicitly linking system object files so we need to strip them
 
6429
            # from the output so that they don't get included in the library
 
6430
            # dependencies.
 
6431
            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'
 
6432
            ;;
 
6433
          *)
 
6434
            if test "$GXX" = yes; then
 
6435
              if test $with_gnu_ld = no; then
 
6436
                case $host_cpu in
 
6437
                  hppa*64*)
 
6438
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6439
                    ;;
 
6440
                  ia64*)
 
6441
                    _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'
 
6442
                    ;;
 
6443
                  *)
 
6444
                    _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'
 
6445
                    ;;
 
6446
                esac
 
6447
              fi
 
6448
            else
 
6449
              # FIXME: insert proper C++ library support
 
6450
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6451
            fi
 
6452
            ;;
 
6453
        esac
 
6454
        ;;
 
6455
 
 
6456
      interix[[3-9]]*)
 
6457
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6458
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6459
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6460
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6461
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6462
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6463
        # default) and relocated if they conflict, which is a slow very memory
 
6464
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6465
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6466
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6467
        _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'
 
6468
        _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'
 
6469
        ;;
 
6470
      irix5* | irix6*)
 
6471
        case $cc_basename in
 
6472
          CC*)
 
6473
            # SGI C++
 
6474
            _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'
 
6475
 
 
6476
            # Archives containing C++ object files must be created using
 
6477
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6478
            # necessary to make sure instantiated templates are included
 
6479
            # in the archive.
 
6480
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6481
            ;;
 
6482
          *)
 
6483
            if test "$GXX" = yes; then
 
6484
              if test "$with_gnu_ld" = no; then
 
6485
                _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'
 
6486
              else
 
6487
                _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'
 
6488
              fi
 
6489
            fi
 
6490
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6491
            ;;
 
6492
        esac
 
6493
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6494
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6495
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6496
        ;;
 
6497
 
 
6498
      linux* | k*bsd*-gnu)
 
6499
        case $cc_basename in
 
6500
          KCC*)
 
6501
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6502
 
 
6503
            # KCC will only create a shared library if the output file
 
6504
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6505
            # to its proper name (with version) after linking.
 
6506
            _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'
 
6507
            _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'
 
6508
            # Commands to make compiler produce verbose output that lists
 
6509
            # what "hidden" libraries, object files and flags are used when
 
6510
            # linking a shared library.
 
6511
            #
 
6512
            # There doesn't appear to be a way to prevent this compiler from
 
6513
            # explicitly linking system object files so we need to strip them
 
6514
            # from the output so that they don't get included in the library
 
6515
            # dependencies.
 
6516
            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'
 
6517
 
 
6518
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6519
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6520
 
 
6521
            # Archives containing C++ object files must be created using
 
6522
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6523
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6524
            ;;
 
6525
          icpc* | ecpc* )
 
6526
            # Intel C++
 
6527
            with_gnu_ld=yes
 
6528
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6529
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6530
            # earlier do not add the objects themselves.
 
6531
            case `$CC -V 2>&1` in
 
6532
              *"Version 7."*)
 
6533
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6534
                _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'
 
6535
                ;;
 
6536
              *)  # Version 8.0 or newer
 
6537
                tmp_idyn=
 
6538
                case $host_cpu in
 
6539
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6540
                esac
 
6541
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6542
                _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'
 
6543
                ;;
 
6544
            esac
 
6545
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6546
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6547
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6548
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6549
            ;;
 
6550
          pgCC* | pgcpp*)
 
6551
            # Portland Group C++ compiler
 
6552
            case `$CC -V` in
 
6553
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6554
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6555
                rm -rf $tpldir~
 
6556
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6557
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6558
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6559
                rm -rf $tpldir~
 
6560
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6561
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6562
                $RANLIB $oldlib'
 
6563
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6564
                rm -rf $tpldir~
 
6565
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6566
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6567
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6568
                rm -rf $tpldir~
 
6569
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6570
                $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'
 
6571
              ;;
 
6572
            *) # Version 6 will use weak symbols
 
6573
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6574
              _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'
 
6575
              ;;
 
6576
            esac
 
6577
 
 
6578
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6579
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6580
            _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'
 
6581
            ;;
 
6582
          cxx*)
 
6583
            # Compaq C++
 
6584
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6585
            _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'
 
6586
 
 
6587
            runpath_var=LD_RUN_PATH
 
6588
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6589
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6590
 
 
6591
            # Commands to make compiler produce verbose output that lists
 
6592
            # what "hidden" libraries, object files and flags are used when
 
6593
            # linking a shared library.
 
6594
            #
 
6595
            # There doesn't appear to be a way to prevent this compiler from
 
6596
            # explicitly linking system object files so we need to strip them
 
6597
            # from the output so that they don't get included in the library
 
6598
            # dependencies.
 
6599
            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'
 
6600
            ;;
 
6601
          xl*)
 
6602
            # IBM XL 8.0 on PPC, with GNU ld
 
6603
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6604
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6605
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6606
            if test "x$supports_anon_versioning" = xyes; then
 
6607
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6608
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6609
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6610
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6611
            fi
 
6612
            ;;
 
6613
          *)
 
6614
            case `$CC -V 2>&1 | sed 5q` in
 
6615
            *Sun\ C*)
 
6616
              # Sun C++ 5.9
 
6617
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6618
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6619
              _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'
 
6620
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6621
              _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'
 
6622
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6623
 
 
6624
              # Not sure whether something based on
 
6625
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6626
              # would be better.
 
6627
              output_verbose_link_cmd='echo'
 
6628
 
 
6629
              # Archives containing C++ object files must be created using
 
6630
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6631
              # necessary to make sure instantiated templates are included
 
6632
              # in the archive.
 
6633
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6634
              ;;
 
6635
            esac
 
6636
            ;;
 
6637
        esac
 
6638
        ;;
 
6639
 
 
6640
      lynxos*)
 
6641
        # FIXME: insert proper C++ library support
 
6642
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6643
        ;;
 
6644
 
 
6645
      m88k*)
 
6646
        # FIXME: insert proper C++ library support
 
6647
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6648
        ;;
 
6649
 
 
6650
      mvs*)
 
6651
        case $cc_basename in
 
6652
          cxx*)
 
6653
            # FIXME: insert proper C++ library support
 
6654
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6655
            ;;
 
6656
          *)
 
6657
            # FIXME: insert proper C++ library support
 
6658
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6659
            ;;
 
6660
        esac
 
6661
        ;;
 
6662
 
 
6663
      netbsd*)
 
6664
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6665
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6666
          wlarc=
 
6667
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6668
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6669
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6670
        fi
 
6671
        # Workaround some broken pre-1.5 toolchains
 
6672
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6673
        ;;
 
6674
 
 
6675
      *nto* | *qnx*)
 
6676
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6677
        ;;
 
6678
 
 
6679
      openbsd2*)
 
6680
        # C++ shared libraries are fairly broken
 
6681
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6682
        ;;
 
6683
 
 
6684
      openbsd*)
 
6685
        if test -f /usr/libexec/ld.so; then
 
6686
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6687
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6688
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6689
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6690
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6691
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6692
            _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'
 
6693
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6694
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6695
          fi
 
6696
          output_verbose_link_cmd=echo
 
6697
        else
 
6698
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6699
        fi
 
6700
        ;;
 
6701
 
 
6702
      osf3* | osf4* | osf5*)
 
6703
        case $cc_basename in
 
6704
          KCC*)
 
6705
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6706
 
 
6707
            # KCC will only create a shared library if the output file
 
6708
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6709
            # to its proper name (with version) after linking.
 
6710
            _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'
 
6711
 
 
6712
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6713
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6714
 
 
6715
            # Archives containing C++ object files must be created using
 
6716
            # the KAI C++ compiler.
 
6717
            case $host in
 
6718
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6719
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6720
            esac
 
6721
            ;;
 
6722
          RCC*)
 
6723
            # Rational C++ 2.4.1
 
6724
            # FIXME: insert proper C++ library support
 
6725
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6726
            ;;
 
6727
          cxx*)
 
6728
            case $host in
 
6729
              osf3*)
 
6730
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6731
                _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'
 
6732
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6733
                ;;
 
6734
              *)
 
6735
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6736
                _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'
 
6737
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6738
                  echo "-hidden">> $lib.exp~
 
6739
                  $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~
 
6740
                  $RM $lib.exp'
 
6741
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6742
                ;;
 
6743
            esac
 
6744
 
 
6745
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6746
 
 
6747
            # Commands to make compiler produce verbose output that lists
 
6748
            # what "hidden" libraries, object files and flags are used when
 
6749
            # linking a shared library.
 
6750
            #
 
6751
            # There doesn't appear to be a way to prevent this compiler from
 
6752
            # explicitly linking system object files so we need to strip them
 
6753
            # from the output so that they don't get included in the library
 
6754
            # dependencies.
 
6755
            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'
 
6756
            ;;
 
6757
          *)
 
6758
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6759
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6760
              case $host in
 
6761
                osf3*)
 
6762
                  _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'
 
6763
                  ;;
 
6764
                *)
 
6765
                  _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'
 
6766
                  ;;
 
6767
              esac
 
6768
 
 
6769
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6770
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6771
 
 
6772
              # Commands to make compiler produce verbose output that lists
 
6773
              # what "hidden" libraries, object files and flags are used when
 
6774
              # linking a shared library.
 
6775
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6776
 
 
6777
            else
 
6778
              # FIXME: insert proper C++ library support
 
6779
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6780
            fi
 
6781
            ;;
 
6782
        esac
 
6783
        ;;
 
6784
 
 
6785
      psos*)
 
6786
        # FIXME: insert proper C++ library support
 
6787
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6788
        ;;
 
6789
 
 
6790
      sunos4*)
 
6791
        case $cc_basename in
 
6792
          CC*)
 
6793
            # Sun C++ 4.x
 
6794
            # FIXME: insert proper C++ library support
 
6795
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6796
            ;;
 
6797
          lcc*)
 
6798
            # Lucid
 
6799
            # FIXME: insert proper C++ library support
 
6800
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6801
            ;;
 
6802
          *)
 
6803
            # FIXME: insert proper C++ library support
 
6804
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6805
            ;;
 
6806
        esac
 
6807
        ;;
 
6808
 
 
6809
      solaris*)
 
6810
        case $cc_basename in
 
6811
          CC*)
 
6812
            # Sun C++ 4.2, 5.x and Centerline C++
 
6813
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
6814
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6815
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6816
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6817
              $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'
 
6818
 
 
6819
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6820
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6821
            case $host_os in
 
6822
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6823
              *)
 
6824
                # The compiler driver will combine and reorder linker options,
 
6825
                # but understands `-z linker_flag'.
 
6826
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6827
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6828
                ;;
 
6829
            esac
 
6830
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6831
 
 
6832
            output_verbose_link_cmd='echo'
 
6833
 
 
6834
            # Archives containing C++ object files must be created using
 
6835
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6836
            # necessary to make sure instantiated templates are included
 
6837
            # in the archive.
 
6838
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6839
            ;;
 
6840
          gcx*)
 
6841
            # Green Hills C++ Compiler
 
6842
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6843
 
 
6844
            # The C++ compiler must be used to create the archive.
 
6845
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
6846
            ;;
 
6847
          *)
 
6848
            # GNU C++ compiler with Solaris linker
 
6849
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6850
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
6851
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
6852
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6853
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6854
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6855
 
 
6856
                # Commands to make compiler produce verbose output that lists
 
6857
                # what "hidden" libraries, object files and flags are used when
 
6858
                # linking a shared library.
 
6859
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6860
              else
 
6861
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
6862
                # platform.
 
6863
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6864
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6865
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6866
 
 
6867
                # Commands to make compiler produce verbose output that lists
 
6868
                # what "hidden" libraries, object files and flags are used when
 
6869
                # linking a shared library.
 
6870
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6871
              fi
 
6872
 
 
6873
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
6874
              case $host_os in
 
6875
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6876
                *)
 
6877
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6878
                  ;;
 
6879
              esac
 
6880
            fi
 
6881
            ;;
 
6882
        esac
 
6883
        ;;
 
6884
 
 
6885
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6886
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6887
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6888
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6889
      runpath_var='LD_RUN_PATH'
 
6890
 
 
6891
      case $cc_basename in
 
6892
        CC*)
 
6893
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6894
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6895
          ;;
 
6896
        *)
 
6897
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6898
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6899
          ;;
 
6900
      esac
 
6901
      ;;
 
6902
 
 
6903
      sysv5* | sco3.2v5* | sco5v6*)
 
6904
        # Note: We can NOT use -z defs as we might desire, because we do not
 
6905
        # link with -lc, and that would cause any symbols used from libc to
 
6906
        # always be unresolved, which means just about no library would
 
6907
        # ever link correctly.  If we're not using GNU ld we use -z text
 
6908
        # though, which does catch some bad symbols but isn't as heavy-handed
 
6909
        # as -z defs.
 
6910
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6911
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6912
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6913
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6914
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6915
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6916
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6917
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6918
        runpath_var='LD_RUN_PATH'
 
6919
 
 
6920
        case $cc_basename in
 
6921
          CC*)
 
6922
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6923
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6924
            ;;
 
6925
          *)
 
6926
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6927
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6928
            ;;
 
6929
        esac
 
6930
      ;;
 
6931
 
 
6932
      tandem*)
 
6933
        case $cc_basename in
 
6934
          NCC*)
 
6935
            # NonStop-UX NCC 3.20
 
6936
            # FIXME: insert proper C++ library support
 
6937
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6938
            ;;
 
6939
          *)
 
6940
            # FIXME: insert proper C++ library support
 
6941
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6942
            ;;
 
6943
        esac
 
6944
        ;;
 
6945
 
 
6946
      vxworks*)
 
6947
        # FIXME: insert proper C++ library support
 
6948
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6949
        ;;
 
6950
 
 
6951
      *)
 
6952
        # FIXME: insert proper C++ library support
 
6953
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6954
        ;;
 
6955
    esac
 
6956
 
 
6957
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6958
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6959
 
 
6960
    _LT_TAGVAR(GCC, $1)="$GXX"
 
6961
    _LT_TAGVAR(LD, $1)="$LD"
 
6962
 
 
6963
    ## CAVEAT EMPTOR:
 
6964
    ## There is no encapsulation within the following macros, do not change
 
6965
    ## the running order or otherwise move them around unless you know exactly
 
6966
    ## what you are doing...
 
6967
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6968
    _LT_COMPILER_PIC($1)
 
6969
    _LT_COMPILER_C_O($1)
 
6970
    _LT_COMPILER_FILE_LOCKS($1)
 
6971
    _LT_LINKER_SHLIBS($1)
 
6972
    _LT_SYS_DYNAMIC_LINKER($1)
 
6973
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6974
 
 
6975
    _LT_CONFIG($1)
 
6976
  fi # test -n "$compiler"
 
6977
 
 
6978
  CC=$lt_save_CC
 
6979
  LDCXX=$LD
 
6980
  LD=$lt_save_LD
 
6981
  GCC=$lt_save_GCC
 
6982
  with_gnu_ld=$lt_save_with_gnu_ld
 
6983
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
6984
  lt_cv_path_LD=$lt_save_path_LD
 
6985
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
6986
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
6987
fi # test "$_lt_caught_CXX_error" != yes
 
6988
 
 
6989
AC_LANG_POP
 
6990
])# _LT_LANG_CXX_CONFIG
 
6991
 
 
6992
 
 
6993
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7198
6994
# ---------------------------------
7199
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7200
 
 
7201
 
 
7202
 
# old names
7203
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7204
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7205
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7206
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7207
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7208
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7209
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7210
 
 
7211
 
# This is just to silence aclocal about the macro not being used
7212
 
ifelse([AC_DISABLE_FAST_INSTALL])
7213
 
 
7214
 
AC_DEFUN([LT_AC_PROG_GCJ],
7215
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7216
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7217
 
  AC_SUBST(GCJFLAGS)
7218
 
])
7219
 
 
7220
 
AC_DEFUN([LT_AC_PROG_RC],
7221
 
[AC_CHECK_TOOL(RC, windres, no)
7222
 
])
7223
 
 
7224
 
 
7225
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7226
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7227
 
 
7228
 
# _AS_TEST_PREPARE
7229
 
# ----------------
7230
 
m4_ifndef([_AS_TEST_PREPARE],
7231
 
[m4_defun([_AS_TEST_PREPARE],
7232
 
[if test -x / >/dev/null 2>&1; then
7233
 
  as_executable_p='test -x'
 
6995
# Figure out "hidden" library dependencies from verbose
 
6996
# compiler output when linking a shared library.
 
6997
# Parse the compiler output and extract the necessary
 
6998
# objects, libraries and library flags.
 
6999
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7000
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7001
# Dependencies to place before and after the object being linked:
 
7002
_LT_TAGVAR(predep_objects, $1)=
 
7003
_LT_TAGVAR(postdep_objects, $1)=
 
7004
_LT_TAGVAR(predeps, $1)=
 
7005
_LT_TAGVAR(postdeps, $1)=
 
7006
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7007
 
 
7008
dnl we can't use the lt_simple_compile_test_code here,
 
7009
dnl because it contains code intended for an executable,
 
7010
dnl not a library.  It's possible we should let each
 
7011
dnl tag define a new lt_????_link_test_code variable,
 
7012
dnl but it's only used here...
 
7013
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7014
int a;
 
7015
void foo (void) { a = 0; }
 
7016
_LT_EOF
 
7017
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7018
class Foo
 
7019
{
 
7020
public:
 
7021
  Foo (void) { a = 0; }
 
7022
private:
 
7023
  int a;
 
7024
};
 
7025
_LT_EOF
 
7026
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7027
      subroutine foo
 
7028
      implicit none
 
7029
      integer*4 a
 
7030
      a=0
 
7031
      return
 
7032
      end
 
7033
_LT_EOF
 
7034
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7035
      subroutine foo
 
7036
      implicit none
 
7037
      integer a
 
7038
      a=0
 
7039
      return
 
7040
      end
 
7041
_LT_EOF
 
7042
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7043
public class foo {
 
7044
  private int a;
 
7045
  public void bar (void) {
 
7046
    a = 0;
 
7047
  }
 
7048
};
 
7049
_LT_EOF
 
7050
])
 
7051
dnl Parse the compiler output and extract the necessary
 
7052
dnl objects, libraries and library flags.
 
7053
if AC_TRY_EVAL(ac_compile); then
 
7054
  # Parse the compiler output and extract the necessary
 
7055
  # objects, libraries and library flags.
 
7056
 
 
7057
  # Sentinel used to keep track of whether or not we are before
 
7058
  # the conftest object file.
 
7059
  pre_test_object_deps_done=no
 
7060
 
 
7061
  for p in `eval "$output_verbose_link_cmd"`; do
 
7062
    case $p in
 
7063
 
 
7064
    -L* | -R* | -l*)
 
7065
       # Some compilers place space between "-{L,R}" and the path.
 
7066
       # Remove the space.
 
7067
       if test $p = "-L" ||
 
7068
          test $p = "-R"; then
 
7069
         prev=$p
 
7070
         continue
 
7071
       else
 
7072
         prev=
 
7073
       fi
 
7074
 
 
7075
       if test "$pre_test_object_deps_done" = no; then
 
7076
         case $p in
 
7077
         -L* | -R*)
 
7078
           # Internal compiler library paths should come after those
 
7079
           # provided the user.  The postdeps already come after the
 
7080
           # user supplied libs so there is no need to process them.
 
7081
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7082
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7083
           else
 
7084
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7085
           fi
 
7086
           ;;
 
7087
         # The "-l" case would never come before the object being
 
7088
         # linked, so don't bother handling this case.
 
7089
         esac
 
7090
       else
 
7091
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7092
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7093
         else
 
7094
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7095
         fi
 
7096
       fi
 
7097
       ;;
 
7098
 
 
7099
    *.$objext)
 
7100
       # This assumes that the test object file only shows up
 
7101
       # once in the compiler output.
 
7102
       if test "$p" = "conftest.$objext"; then
 
7103
         pre_test_object_deps_done=yes
 
7104
         continue
 
7105
       fi
 
7106
 
 
7107
       if test "$pre_test_object_deps_done" = no; then
 
7108
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7109
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7110
         else
 
7111
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7112
         fi
 
7113
       else
 
7114
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7115
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7116
         else
 
7117
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7118
         fi
 
7119
       fi
 
7120
       ;;
 
7121
 
 
7122
    *) ;; # Ignore the rest.
 
7123
 
 
7124
    esac
 
7125
  done
 
7126
 
 
7127
  # Clean up.
 
7128
  rm -f a.out a.exe
7234
7129
else
7235
 
  as_executable_p='test -f'
7236
 
fi
7237
 
])])# _AS_TEST_PREPARE
7238
 
 
7239
 
# AS_EXECUTABLE_P
7240
 
# ---------------
7241
 
# Check whether a file is executable.
7242
 
m4_ifndef([AS_EXECUTABLE_P],
7243
 
[m4_defun([AS_EXECUTABLE_P],
7244
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7245
 
$as_executable_p $1[]dnl
7246
 
])])# AS_EXECUTABLE_P
7247
 
 
 
7130
  echo "libtool.m4: error: problem compiling $1 test program"
 
7131
fi
 
7132
 
 
7133
$RM -f confest.$objext
 
7134
 
 
7135
# PORTME: override above test on systems where it is broken
 
7136
m4_if([$1], [CXX],
 
7137
[case $host_os in
 
7138
interix[[3-9]]*)
 
7139
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7140
  # hack all around it, let's just trust "g++" to DTRT.
 
7141
  _LT_TAGVAR(predep_objects,$1)=
 
7142
  _LT_TAGVAR(postdep_objects,$1)=
 
7143
  _LT_TAGVAR(postdeps,$1)=
 
7144
  ;;
 
7145
 
 
7146
linux*)
 
7147
  case `$CC -V 2>&1 | sed 5q` in
 
7148
  *Sun\ C*)
 
7149
    # Sun C++ 5.9
 
7150
 
 
7151
    # The more standards-conforming stlport4 library is
 
7152
    # incompatible with the Cstd library. Avoid specifying
 
7153
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7154
    # -library=stlport4 depends on it.
 
7155
    case " $CXX $CXXFLAGS " in
 
7156
    *" -library=stlport4 "*)
 
7157
      solaris_use_stlport4=yes
 
7158
      ;;
 
7159
    esac
 
7160
 
 
7161
    if test "$solaris_use_stlport4" != yes; then
 
7162
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7163
    fi
 
7164
    ;;
 
7165
  esac
 
7166
  ;;
 
7167
 
 
7168
solaris*)
 
7169
  case $cc_basename in
 
7170
  CC*)
 
7171
    # The more standards-conforming stlport4 library is
 
7172
    # incompatible with the Cstd library. Avoid specifying
 
7173
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7174
    # -library=stlport4 depends on it.
 
7175
    case " $CXX $CXXFLAGS " in
 
7176
    *" -library=stlport4 "*)
 
7177
      solaris_use_stlport4=yes
 
7178
      ;;
 
7179
    esac
 
7180
 
 
7181
    # Adding this requires a known-good setup of shared libraries for
 
7182
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7183
    # archive will be linked into the output, leading to subtle bugs.
 
7184
    if test "$solaris_use_stlport4" != yes; then
 
7185
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7186
    fi
 
7187
    ;;
 
7188
  esac
 
7189
  ;;
 
7190
esac
 
7191
])
 
7192
 
 
7193
case " $_LT_TAGVAR(postdeps, $1) " in
 
7194
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7195
esac
 
7196
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7197
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7198
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7199
fi
 
7200
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7201
    [The directories searched by this compiler when creating a shared library])
 
7202
_LT_TAGDECL([], [predep_objects], [1],
 
7203
    [Dependencies to place before and after the objects being linked to
 
7204
    create a shared library])
 
7205
_LT_TAGDECL([], [postdep_objects], [1])
 
7206
_LT_TAGDECL([], [predeps], [1])
 
7207
_LT_TAGDECL([], [postdeps], [1])
 
7208
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7209
    [The library search path used internally by the compiler when linking
 
7210
    a shared library])
 
7211
])# _LT_SYS_HIDDEN_LIBDEPS
 
7212
 
 
7213
 
 
7214
# _LT_PROG_F77
 
7215
# ------------
 
7216
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7217
# if there is no fortran compiler, we have our own version here.
 
7218
m4_defun([_LT_PROG_F77],
 
7219
[
 
7220
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7221
AC_PROG_F77
 
7222
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7223
  _lt_disable_F77=yes
 
7224
fi
 
7225
popdef([AC_MSG_ERROR])
 
7226
])# _LT_PROG_F77
 
7227
 
 
7228
dnl aclocal-1.4 backwards compatibility:
 
7229
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7230
 
 
7231
 
 
7232
# _LT_LANG_F77_CONFIG([TAG])
 
7233
# --------------------------
 
7234
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7235
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7236
# to write the compiler configuration to `libtool'.
 
7237
m4_defun([_LT_LANG_F77_CONFIG],
 
7238
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7239
AC_LANG_PUSH(Fortran 77)
 
7240
 
 
7241
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7242
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7243
_LT_TAGVAR(always_export_symbols, $1)=no
 
7244
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7245
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7246
_LT_TAGVAR(hardcode_direct, $1)=no
 
7247
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7248
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7249
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7250
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7251
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7252
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7253
_LT_TAGVAR(inherit_rpath, $1)=no
 
7254
_LT_TAGVAR(module_cmds, $1)=
 
7255
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7256
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7257
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7258
_LT_TAGVAR(no_undefined_flag, $1)=
 
7259
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7260
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7261
 
 
7262
# Source file extension for f77 test sources.
 
7263
ac_ext=f
 
7264
 
 
7265
# Object file extension for compiled f77 test sources.
 
7266
objext=o
 
7267
_LT_TAGVAR(objext, $1)=$objext
 
7268
 
 
7269
# No sense in running all these tests if we already determined that
 
7270
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7271
# are currently assumed to apply to all compilers on this platform,
 
7272
# and will be corrupted by setting them based on a non-working compiler.
 
7273
if test "$_lt_disable_F77" != yes; then
 
7274
  # Code to be used in simple compile tests
 
7275
  lt_simple_compile_test_code="\
 
7276
      subroutine t
 
7277
      return
 
7278
      end
 
7279
"
 
7280
 
 
7281
  # Code to be used in simple link tests
 
7282
  lt_simple_link_test_code="\
 
7283
      program t
 
7284
      end
 
7285
"
 
7286
 
 
7287
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7288
  _LT_TAG_COMPILER
 
7289
 
 
7290
  # save warnings/boilerplate of simple test code
 
7291
  _LT_COMPILER_BOILERPLATE
 
7292
  _LT_LINKER_BOILERPLATE
 
7293
 
 
7294
  # Allow CC to be a program name with arguments.
 
7295
  lt_save_CC="$CC"
 
7296
  lt_save_GCC=$GCC
 
7297
  CC=${F77-"f77"}
 
7298
  compiler=$CC
 
7299
  _LT_TAGVAR(compiler, $1)=$CC
 
7300
  _LT_CC_BASENAME([$compiler])
 
7301
  GCC=$G77
 
7302
  if test -n "$compiler"; then
 
7303
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7304
    AC_MSG_RESULT([$can_build_shared])
 
7305
 
 
7306
    AC_MSG_CHECKING([whether to build shared libraries])
 
7307
    test "$can_build_shared" = "no" && enable_shared=no
 
7308
 
 
7309
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7310
    # are all built from PIC.
 
7311
    case $host_os in
 
7312
      aix3*)
 
7313
        test "$enable_shared" = yes && enable_static=no
 
7314
        if test -n "$RANLIB"; then
 
7315
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7316
          postinstall_cmds='$RANLIB $lib'
 
7317
        fi
 
7318
        ;;
 
7319
      aix[[4-9]]*)
 
7320
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7321
          test "$enable_shared" = yes && enable_static=no
 
7322
        fi
 
7323
        ;;
 
7324
    esac
 
7325
    AC_MSG_RESULT([$enable_shared])
 
7326
 
 
7327
    AC_MSG_CHECKING([whether to build static libraries])
 
7328
    # Make sure either enable_shared or enable_static is yes.
 
7329
    test "$enable_shared" = yes || enable_static=yes
 
7330
    AC_MSG_RESULT([$enable_static])
 
7331
 
 
7332
    _LT_TAGVAR(GCC, $1)="$G77"
 
7333
    _LT_TAGVAR(LD, $1)="$LD"
 
7334
 
 
7335
    ## CAVEAT EMPTOR:
 
7336
    ## There is no encapsulation within the following macros, do not change
 
7337
    ## the running order or otherwise move them around unless you know exactly
 
7338
    ## what you are doing...
 
7339
    _LT_COMPILER_PIC($1)
 
7340
    _LT_COMPILER_C_O($1)
 
7341
    _LT_COMPILER_FILE_LOCKS($1)
 
7342
    _LT_LINKER_SHLIBS($1)
 
7343
    _LT_SYS_DYNAMIC_LINKER($1)
 
7344
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7345
 
 
7346
    _LT_CONFIG($1)
 
7347
  fi # test -n "$compiler"
 
7348
 
 
7349
  GCC=$lt_save_GCC
 
7350
  CC="$lt_save_CC"
 
7351
fi # test "$_lt_disable_F77" != yes
 
7352
 
 
7353
AC_LANG_POP
 
7354
])# _LT_LANG_F77_CONFIG
 
7355
 
 
7356
 
 
7357
# _LT_PROG_FC
 
7358
# -----------
 
7359
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7360
# if there is no fortran compiler, we have our own version here.
 
7361
m4_defun([_LT_PROG_FC],
 
7362
[
 
7363
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7364
AC_PROG_FC
 
7365
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7366
  _lt_disable_FC=yes
 
7367
fi
 
7368
popdef([AC_MSG_ERROR])
 
7369
])# _LT_PROG_FC
 
7370
 
 
7371
dnl aclocal-1.4 backwards compatibility:
 
7372
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7373
 
 
7374
 
 
7375
# _LT_LANG_FC_CONFIG([TAG])
 
7376
# -------------------------
 
7377
# Ensure that the configuration variables for a Fortran compiler are
 
7378
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7379
# to write the compiler configuration to `libtool'.
 
7380
m4_defun([_LT_LANG_FC_CONFIG],
 
7381
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7382
AC_LANG_PUSH(Fortran)
 
7383
 
 
7384
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7385
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7386
_LT_TAGVAR(always_export_symbols, $1)=no
 
7387
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7388
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7389
_LT_TAGVAR(hardcode_direct, $1)=no
 
7390
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7391
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7392
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7393
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7394
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7395
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7396
_LT_TAGVAR(inherit_rpath, $1)=no
 
7397
_LT_TAGVAR(module_cmds, $1)=
 
7398
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7399
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7400
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7401
_LT_TAGVAR(no_undefined_flag, $1)=
 
7402
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7403
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7404
 
 
7405
# Source file extension for fc test sources.
 
7406
ac_ext=${ac_fc_srcext-f}
 
7407
 
 
7408
# Object file extension for compiled fc test sources.
 
7409
objext=o
 
7410
_LT_TAGVAR(objext, $1)=$objext
 
7411
 
 
7412
# No sense in running all these tests if we already determined that
 
7413
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7414
# are currently assumed to apply to all compilers on this platform,
 
7415
# and will be corrupted by setting them based on a non-working compiler.
 
7416
if test "$_lt_disable_FC" != yes; then
 
7417
  # Code to be used in simple compile tests
 
7418
  lt_simple_compile_test_code="\
 
7419
      subroutine t
 
7420
      return
 
7421
      end
 
7422
"
 
7423
 
 
7424
  # Code to be used in simple link tests
 
7425
  lt_simple_link_test_code="\
 
7426
      program t
 
7427
      end
 
7428
"
 
7429
 
 
7430
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7431
  _LT_TAG_COMPILER
 
7432
 
 
7433
  # save warnings/boilerplate of simple test code
 
7434
  _LT_COMPILER_BOILERPLATE
 
7435
  _LT_LINKER_BOILERPLATE
 
7436
 
 
7437
  # Allow CC to be a program name with arguments.
 
7438
  lt_save_CC="$CC"
 
7439
  lt_save_GCC=$GCC
 
7440
  CC=${FC-"f95"}
 
7441
  compiler=$CC
 
7442
  GCC=$ac_cv_fc_compiler_gnu
 
7443
 
 
7444
  _LT_TAGVAR(compiler, $1)=$CC
 
7445
  _LT_CC_BASENAME([$compiler])
 
7446
 
 
7447
  if test -n "$compiler"; then
 
7448
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7449
    AC_MSG_RESULT([$can_build_shared])
 
7450
 
 
7451
    AC_MSG_CHECKING([whether to build shared libraries])
 
7452
    test "$can_build_shared" = "no" && enable_shared=no
 
7453
 
 
7454
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7455
    # are all built from PIC.
 
7456
    case $host_os in
 
7457
      aix3*)
 
7458
        test "$enable_shared" = yes && enable_static=no
 
7459
        if test -n "$RANLIB"; then
 
7460
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7461
          postinstall_cmds='$RANLIB $lib'
 
7462
        fi
 
7463
        ;;
 
7464
      aix[[4-9]]*)
 
7465
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7466
          test "$enable_shared" = yes && enable_static=no
 
7467
        fi
 
7468
        ;;
 
7469
    esac
 
7470
    AC_MSG_RESULT([$enable_shared])
 
7471
 
 
7472
    AC_MSG_CHECKING([whether to build static libraries])
 
7473
    # Make sure either enable_shared or enable_static is yes.
 
7474
    test "$enable_shared" = yes || enable_static=yes
 
7475
    AC_MSG_RESULT([$enable_static])
 
7476
 
 
7477
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7478
    _LT_TAGVAR(LD, $1)="$LD"
 
7479
 
 
7480
    ## CAVEAT EMPTOR:
 
7481
    ## There is no encapsulation within the following macros, do not change
 
7482
    ## the running order or otherwise move them around unless you know exactly
 
7483
    ## what you are doing...
 
7484
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7485
    _LT_COMPILER_PIC($1)
 
7486
    _LT_COMPILER_C_O($1)
 
7487
    _LT_COMPILER_FILE_LOCKS($1)
 
7488
    _LT_LINKER_SHLIBS($1)
 
7489
    _LT_SYS_DYNAMIC_LINKER($1)
 
7490
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7491
 
 
7492
    _LT_CONFIG($1)
 
7493
  fi # test -n "$compiler"
 
7494
 
 
7495
  GCC=$lt_save_GCC
 
7496
  CC="$lt_save_CC"
 
7497
fi # test "$_lt_disable_FC" != yes
 
7498
 
 
7499
AC_LANG_POP
 
7500
])# _LT_LANG_FC_CONFIG
 
7501
 
 
7502
 
 
7503
# _LT_LANG_GCJ_CONFIG([TAG])
 
7504
# --------------------------
 
7505
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7506
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7507
# to write the compiler configuration to `libtool'.
 
7508
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7509
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7510
AC_LANG_SAVE
 
7511
 
 
7512
# Source file extension for Java test sources.
 
7513
ac_ext=java
 
7514
 
 
7515
# Object file extension for compiled Java test sources.
 
7516
objext=o
 
7517
_LT_TAGVAR(objext, $1)=$objext
 
7518
 
 
7519
# Code to be used in simple compile tests
 
7520
lt_simple_compile_test_code="class foo {}"
 
7521
 
 
7522
# Code to be used in simple link tests
 
7523
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7524
 
 
7525
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7526
_LT_TAG_COMPILER
 
7527
 
 
7528
# save warnings/boilerplate of simple test code
 
7529
_LT_COMPILER_BOILERPLATE
 
7530
_LT_LINKER_BOILERPLATE
 
7531
 
 
7532
# Allow CC to be a program name with arguments.
 
7533
lt_save_CC="$CC"
 
7534
lt_save_GCC=$GCC
 
7535
GCC=yes
 
7536
CC=${GCJ-"gcj"}
 
7537
compiler=$CC
 
7538
_LT_TAGVAR(compiler, $1)=$CC
 
7539
_LT_TAGVAR(LD, $1)="$LD"
 
7540
_LT_CC_BASENAME([$compiler])
 
7541
 
 
7542
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7543
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7544
 
 
7545
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7546
 
 
7547
if test -n "$compiler"; then
 
7548
  _LT_COMPILER_NO_RTTI($1)
 
7549
  _LT_COMPILER_PIC($1)
 
7550
  _LT_COMPILER_C_O($1)
 
7551
  _LT_COMPILER_FILE_LOCKS($1)
 
7552
  _LT_LINKER_SHLIBS($1)
 
7553
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7554
 
 
7555
  _LT_CONFIG($1)
 
7556
fi
 
7557
 
 
7558
AC_LANG_RESTORE
 
7559
 
 
7560
GCC=$lt_save_GCC
 
7561
CC="$lt_save_CC"
 
7562
])# _LT_LANG_GCJ_CONFIG
 
7563
 
 
7564
 
 
7565
# _LT_LANG_RC_CONFIG([TAG])
 
7566
# -------------------------
 
7567
# Ensure that the configuration variables for the Windows resource compiler
 
7568
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7569
# to write the compiler configuration to `libtool'.
 
7570
m4_defun([_LT_LANG_RC_CONFIG],
 
7571
[AC_REQUIRE([LT_PROG_RC])dnl
 
7572
AC_LANG_SAVE
 
7573
 
 
7574
# Source file extension for RC test sources.
 
7575
ac_ext=rc
 
7576
 
 
7577
# Object file extension for compiled RC test sources.
 
7578
objext=o
 
7579
_LT_TAGVAR(objext, $1)=$objext
 
7580
 
 
7581
# Code to be used in simple compile tests
 
7582
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7583
 
 
7584
# Code to be used in simple link tests
 
7585
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7586
 
 
7587
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7588
_LT_TAG_COMPILER
 
7589
 
 
7590
# save warnings/boilerplate of simple test code
 
7591
_LT_COMPILER_BOILERPLATE
 
7592
_LT_LINKER_BOILERPLATE
 
7593
 
 
7594
# Allow CC to be a program name with arguments.
 
7595
lt_save_CC="$CC"
 
7596
lt_save_GCC=$GCC
 
7597
GCC=
 
7598
CC=${RC-"windres"}
 
7599
compiler=$CC
 
7600
_LT_TAGVAR(compiler, $1)=$CC
 
7601
_LT_CC_BASENAME([$compiler])
 
7602
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7603
 
 
7604
if test -n "$compiler"; then
 
7605
  :
 
7606
  _LT_CONFIG($1)
 
7607
fi
 
7608
 
 
7609
GCC=$lt_save_GCC
 
7610
AC_LANG_RESTORE
 
7611
CC="$lt_save_CC"
 
7612
])# _LT_LANG_RC_CONFIG
 
7613
 
 
7614
 
 
7615
# LT_PROG_GCJ
 
7616
# -----------
 
7617
AC_DEFUN([LT_PROG_GCJ],
 
7618
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7619
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7620
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7621
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7622
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7623
])
 
7624
 
 
7625
# Old name:
 
7626
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7627
dnl aclocal-1.4 backwards compatibility:
 
7628
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7629
 
 
7630
 
 
7631
# LT_PROG_RC
 
7632
# ----------
 
7633
AC_DEFUN([LT_PROG_RC],
 
7634
[AC_CHECK_TOOL(RC, windres,)
 
7635
])
 
7636
 
 
7637
# Old name:
 
7638
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7639
dnl aclocal-1.4 backwards compatibility:
 
7640
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7641
 
 
7642
 
 
7643
# _LT_DECL_EGREP
 
7644
# --------------
 
7645
# If we don't have a new enough Autoconf to choose the best grep
 
7646
# available, choose the one first in the user's PATH.
 
7647
m4_defun([_LT_DECL_EGREP],
 
7648
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7649
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7650
test -z "$GREP" && GREP=grep
 
7651
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7652
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7653
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7654
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7655
AC_SUBST([GREP])
 
7656
])
 
7657
 
 
7658
 
 
7659
# _LT_DECL_OBJDUMP
 
7660
# --------------
 
7661
# If we don't have a new enough Autoconf to choose the best objdump
 
7662
# available, choose the one first in the user's PATH.
 
7663
m4_defun([_LT_DECL_OBJDUMP],
 
7664
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7665
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7666
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7667
AC_SUBST([OBJDUMP])
 
7668
])
 
7669
 
 
7670
 
 
7671
# _LT_DECL_SED
 
7672
# ------------
 
7673
# Check for a fully-functional sed program, that truncates
 
7674
# as few characters as possible.  Prefer GNU sed if found.
 
7675
m4_defun([_LT_DECL_SED],
 
7676
[AC_PROG_SED
 
7677
test -z "$SED" && SED=sed
 
7678
Xsed="$SED -e 1s/^X//"
 
7679
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7680
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7681
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7682
])# _LT_DECL_SED
 
7683
 
 
7684
m4_ifndef([AC_PROG_SED], [
7248
7685
# NOTE: This macro has been submitted for inclusion into   #
7249
7686
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7250
7687
#  a released version of Autoconf we should remove this    #
7251
7688
#  macro and use it instead.                               #
7252
 
# LT_AC_PROG_SED
7253
 
# --------------
7254
 
# Check for a fully-functional sed program, that truncates
7255
 
# as few characters as possible.  Prefer GNU sed if found.
7256
 
AC_DEFUN([LT_AC_PROG_SED],
 
7689
 
 
7690
m4_defun([AC_PROG_SED],
7257
7691
[AC_MSG_CHECKING([for a sed that does not truncate output])
7258
7692
AC_CACHE_VAL(lt_cv_path_SED,
7259
7693
[# Loop through the user's path and test for sed and gsed.
7265
7699
  test -z "$as_dir" && as_dir=.
7266
7700
  for lt_ac_prog in sed gsed; do
7267
7701
    for ac_exec_ext in '' $ac_executable_extensions; do
7268
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7702
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7269
7703
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7270
7704
      fi
7271
7705
    done
7306
7740
SED=$lt_cv_path_SED
7307
7741
AC_SUBST([SED])
7308
7742
AC_MSG_RESULT([$SED])
 
7743
])#AC_PROG_SED
 
7744
])#m4_ifndef
 
7745
 
 
7746
# Old name:
 
7747
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7748
dnl aclocal-1.4 backwards compatibility:
 
7749
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7750
 
 
7751
 
 
7752
# _LT_CHECK_SHELL_FEATURES
 
7753
# ------------------------
 
7754
# Find out whether the shell is Bourne or XSI compatible,
 
7755
# or has some other useful features.
 
7756
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7757
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7758
# Try some XSI features
 
7759
xsi_shell=no
 
7760
( _lt_dummy="a/b/c"
 
7761
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7762
      = c,a/b,, \
 
7763
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7764
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7765
  && xsi_shell=yes
 
7766
AC_MSG_RESULT([$xsi_shell])
 
7767
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
7768
 
 
7769
AC_MSG_CHECKING([whether the shell understands "+="])
 
7770
lt_shell_append=no
 
7771
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
7772
    >/dev/null 2>&1 \
 
7773
  && lt_shell_append=yes
 
7774
AC_MSG_RESULT([$lt_shell_append])
 
7775
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
7776
 
 
7777
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7778
  lt_unset=unset
 
7779
else
 
7780
  lt_unset=false
 
7781
fi
 
7782
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
7783
 
 
7784
# test EBCDIC or ASCII
 
7785
case `echo X|tr X '\101'` in
 
7786
 A) # ASCII based system
 
7787
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7788
  lt_SP2NL='tr \040 \012'
 
7789
  lt_NL2SP='tr \015\012 \040\040'
 
7790
  ;;
 
7791
 *) # EBCDIC based system
 
7792
  lt_SP2NL='tr \100 \n'
 
7793
  lt_NL2SP='tr \r\n \100\100'
 
7794
  ;;
 
7795
esac
 
7796
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
7797
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
7798
])# _LT_CHECK_SHELL_FEATURES
 
7799
 
 
7800
 
 
7801
# _LT_PROG_XSI_SHELLFNS
 
7802
# ---------------------
 
7803
# Bourne and XSI compatible variants of some useful shell functions.
 
7804
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
7805
[case $xsi_shell in
 
7806
  yes)
 
7807
    cat << \_LT_EOF >> "$cfgfile"
 
7808
 
 
7809
# func_dirname file append nondir_replacement
 
7810
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7811
# otherwise set result to NONDIR_REPLACEMENT.
 
7812
func_dirname ()
 
7813
{
 
7814
  case ${1} in
 
7815
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7816
    *  ) func_dirname_result="${3}" ;;
 
7817
  esac
 
7818
}
 
7819
 
 
7820
# func_basename file
 
7821
func_basename ()
 
7822
{
 
7823
  func_basename_result="${1##*/}"
 
7824
}
 
7825
 
 
7826
# func_dirname_and_basename file append nondir_replacement
 
7827
# perform func_basename and func_dirname in a single function
 
7828
# call:
 
7829
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
7830
#             add APPEND to the result, otherwise set result
 
7831
#             to NONDIR_REPLACEMENT.
 
7832
#             value returned in "$func_dirname_result"
 
7833
#   basename: Compute filename of FILE.
 
7834
#             value retuned in "$func_basename_result"
 
7835
# Implementation must be kept synchronized with func_dirname
 
7836
# and func_basename. For efficiency, we do not delegate to
 
7837
# those functions but instead duplicate the functionality here.
 
7838
func_dirname_and_basename ()
 
7839
{
 
7840
  case ${1} in
 
7841
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7842
    *  ) func_dirname_result="${3}" ;;
 
7843
  esac
 
7844
  func_basename_result="${1##*/}"
 
7845
}
 
7846
 
 
7847
# func_stripname prefix suffix name
 
7848
# strip PREFIX and SUFFIX off of NAME.
 
7849
# PREFIX and SUFFIX must not contain globbing or regex special
 
7850
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7851
# dot (in which case that matches only a dot).
 
7852
func_stripname ()
 
7853
{
 
7854
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7855
  # positional parameters, so assign one to ordinary parameter first.
 
7856
  func_stripname_result=${3}
 
7857
  func_stripname_result=${func_stripname_result#"${1}"}
 
7858
  func_stripname_result=${func_stripname_result%"${2}"}
 
7859
}
 
7860
 
 
7861
# func_opt_split
 
7862
func_opt_split ()
 
7863
{
 
7864
  func_opt_split_opt=${1%%=*}
 
7865
  func_opt_split_arg=${1#*=}
 
7866
}
 
7867
 
 
7868
# func_lo2o object
 
7869
func_lo2o ()
 
7870
{
 
7871
  case ${1} in
 
7872
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7873
    *)    func_lo2o_result=${1} ;;
 
7874
  esac
 
7875
}
 
7876
 
 
7877
# func_xform libobj-or-source
 
7878
func_xform ()
 
7879
{
 
7880
  func_xform_result=${1%.*}.lo
 
7881
}
 
7882
 
 
7883
# func_arith arithmetic-term...
 
7884
func_arith ()
 
7885
{
 
7886
  func_arith_result=$(( $[*] ))
 
7887
}
 
7888
 
 
7889
# func_len string
 
7890
# STRING may not start with a hyphen.
 
7891
func_len ()
 
7892
{
 
7893
  func_len_result=${#1}
 
7894
}
 
7895
 
 
7896
_LT_EOF
 
7897
    ;;
 
7898
  *) # Bourne compatible functions.
 
7899
    cat << \_LT_EOF >> "$cfgfile"
 
7900
 
 
7901
# func_dirname file append nondir_replacement
 
7902
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7903
# otherwise set result to NONDIR_REPLACEMENT.
 
7904
func_dirname ()
 
7905
{
 
7906
  # Extract subdirectory from the argument.
 
7907
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7908
  if test "X$func_dirname_result" = "X${1}"; then
 
7909
    func_dirname_result="${3}"
 
7910
  else
 
7911
    func_dirname_result="$func_dirname_result${2}"
 
7912
  fi
 
7913
}
 
7914
 
 
7915
# func_basename file
 
7916
func_basename ()
 
7917
{
 
7918
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7919
}
 
7920
 
 
7921
dnl func_dirname_and_basename
 
7922
dnl A portable version of this function is already defined in general.m4sh
 
7923
dnl so there is no need for it here.
 
7924
 
 
7925
# func_stripname prefix suffix name
 
7926
# strip PREFIX and SUFFIX off of NAME.
 
7927
# PREFIX and SUFFIX must not contain globbing or regex special
 
7928
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7929
# dot (in which case that matches only a dot).
 
7930
# func_strip_suffix prefix name
 
7931
func_stripname ()
 
7932
{
 
7933
  case ${2} in
 
7934
    .*) func_stripname_result=`$ECHO "X${3}" \
 
7935
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
7936
    *)  func_stripname_result=`$ECHO "X${3}" \
 
7937
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7938
  esac
 
7939
}
 
7940
 
 
7941
# sed scripts:
 
7942
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
7943
my_sed_long_arg='1s/^-[[^=]]*=//'
 
7944
 
 
7945
# func_opt_split
 
7946
func_opt_split ()
 
7947
{
 
7948
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
7949
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7950
}
 
7951
 
 
7952
# func_lo2o object
 
7953
func_lo2o ()
 
7954
{
 
7955
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7956
}
 
7957
 
 
7958
# func_xform libobj-or-source
 
7959
func_xform ()
 
7960
{
 
7961
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7962
}
 
7963
 
 
7964
# func_arith arithmetic-term...
 
7965
func_arith ()
 
7966
{
 
7967
  func_arith_result=`expr "$[@]"`
 
7968
}
 
7969
 
 
7970
# func_len string
 
7971
# STRING may not start with a hyphen.
 
7972
func_len ()
 
7973
{
 
7974
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
7975
}
 
7976
 
 
7977
_LT_EOF
 
7978
esac
 
7979
 
 
7980
case $lt_shell_append in
 
7981
  yes)
 
7982
    cat << \_LT_EOF >> "$cfgfile"
 
7983
 
 
7984
# func_append var value
 
7985
# Append VALUE to the end of shell variable VAR.
 
7986
func_append ()
 
7987
{
 
7988
  eval "$[1]+=\$[2]"
 
7989
}
 
7990
_LT_EOF
 
7991
    ;;
 
7992
  *)
 
7993
    cat << \_LT_EOF >> "$cfgfile"
 
7994
 
 
7995
# func_append var value
 
7996
# Append VALUE to the end of shell variable VAR.
 
7997
func_append ()
 
7998
{
 
7999
  eval "$[1]=\$$[1]\$[2]"
 
8000
}
 
8001
 
 
8002
_LT_EOF
 
8003
    ;;
 
8004
  esac
 
8005
])
 
8006
 
 
8007
# Helper functions for option handling.                    -*- Autoconf -*-
 
8008
#
 
8009
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8010
#   Written by Gary V. Vaughan, 2004
 
8011
#
 
8012
# This file is free software; the Free Software Foundation gives
 
8013
# unlimited permission to copy and/or distribute it, with or without
 
8014
# modifications, as long as this notice is preserved.
 
8015
 
 
8016
# serial 6 ltoptions.m4
 
8017
 
 
8018
# This is to help aclocal find these macros, as it can't see m4_define.
 
8019
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8020
 
 
8021
 
 
8022
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8023
# ------------------------------------------
 
8024
m4_define([_LT_MANGLE_OPTION],
 
8025
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8026
 
 
8027
 
 
8028
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8029
# ---------------------------------------
 
8030
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8031
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8032
# saved as a flag.
 
8033
m4_define([_LT_SET_OPTION],
 
8034
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8035
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8036
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8037
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8038
])
 
8039
 
 
8040
 
 
8041
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8042
# ------------------------------------------------------------
 
8043
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8044
m4_define([_LT_IF_OPTION],
 
8045
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8046
 
 
8047
 
 
8048
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8049
# -------------------------------------------------------
 
8050
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8051
# are set.
 
8052
m4_define([_LT_UNLESS_OPTIONS],
 
8053
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8054
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8055
                      [m4_define([$0_found])])])[]dnl
 
8056
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8057
])[]dnl
 
8058
])
 
8059
 
 
8060
 
 
8061
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8062
# ----------------------------------------
 
8063
# OPTION-LIST is a space-separated list of Libtool options associated
 
8064
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8065
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8066
# the unknown option and exit.
 
8067
m4_defun([_LT_SET_OPTIONS],
 
8068
[# Set options
 
8069
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8070
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8071
 
 
8072
m4_if([$1],[LT_INIT],[
 
8073
  dnl
 
8074
  dnl Simply set some default values (i.e off) if boolean options were not
 
8075
  dnl specified:
 
8076
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8077
  ])
 
8078
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8079
  ])
 
8080
  dnl
 
8081
  dnl If no reference was made to various pairs of opposing options, then
 
8082
  dnl we run the default mode handler for the pair.  For example, if neither
 
8083
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8084
  dnl archives by default:
 
8085
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8086
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8087
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8088
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8089
                   [_LT_ENABLE_FAST_INSTALL])
 
8090
  ])
 
8091
])# _LT_SET_OPTIONS
 
8092
 
 
8093
 
 
8094
 
 
8095
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8096
# -----------------------------------------
 
8097
m4_define([_LT_MANGLE_DEFUN],
 
8098
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8099
 
 
8100
 
 
8101
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8102
# -----------------------------------------------
 
8103
m4_define([LT_OPTION_DEFINE],
 
8104
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8105
])# LT_OPTION_DEFINE
 
8106
 
 
8107
 
 
8108
# dlopen
 
8109
# ------
 
8110
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8111
])
 
8112
 
 
8113
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8114
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8115
AC_DIAGNOSE([obsolete],
 
8116
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8117
put the `dlopen' option into LT_INIT's first parameter.])
 
8118
])
 
8119
 
 
8120
dnl aclocal-1.4 backwards compatibility:
 
8121
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8122
 
 
8123
 
 
8124
# win32-dll
 
8125
# ---------
 
8126
# Declare package support for building win32 dll's.
 
8127
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8128
[enable_win32_dll=yes
 
8129
 
 
8130
case $host in
 
8131
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8132
  AC_CHECK_TOOL(AS, as, false)
 
8133
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8134
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8135
  ;;
 
8136
esac
 
8137
 
 
8138
test -z "$AS" && AS=as
 
8139
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8140
 
 
8141
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8142
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8143
 
 
8144
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8145
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8146
])# win32-dll
 
8147
 
 
8148
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8149
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8150
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8151
AC_DIAGNOSE([obsolete],
 
8152
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8153
put the `win32-dll' option into LT_INIT's first parameter.])
 
8154
])
 
8155
 
 
8156
dnl aclocal-1.4 backwards compatibility:
 
8157
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8158
 
 
8159
 
 
8160
# _LT_ENABLE_SHARED([DEFAULT])
 
8161
# ----------------------------
 
8162
# implement the --enable-shared flag, and supports the `shared' and
 
8163
# `disable-shared' LT_INIT options.
 
8164
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8165
m4_define([_LT_ENABLE_SHARED],
 
8166
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8167
AC_ARG_ENABLE([shared],
 
8168
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8169
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8170
    [p=${PACKAGE-default}
 
8171
    case $enableval in
 
8172
    yes) enable_shared=yes ;;
 
8173
    no) enable_shared=no ;;
 
8174
    *)
 
8175
      enable_shared=no
 
8176
      # Look at the argument we got.  We use all the common list separators.
 
8177
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8178
      for pkg in $enableval; do
 
8179
        IFS="$lt_save_ifs"
 
8180
        if test "X$pkg" = "X$p"; then
 
8181
          enable_shared=yes
 
8182
        fi
 
8183
      done
 
8184
      IFS="$lt_save_ifs"
 
8185
      ;;
 
8186
    esac],
 
8187
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8188
 
 
8189
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8190
        [Whether or not to build shared libraries])
 
8191
])# _LT_ENABLE_SHARED
 
8192
 
 
8193
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8194
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8195
 
 
8196
# Old names:
 
8197
AC_DEFUN([AC_ENABLE_SHARED],
 
8198
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8199
])
 
8200
 
 
8201
AC_DEFUN([AC_DISABLE_SHARED],
 
8202
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8203
])
 
8204
 
 
8205
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8206
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8207
 
 
8208
dnl aclocal-1.4 backwards compatibility:
 
8209
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8210
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8211
 
 
8212
 
 
8213
 
 
8214
# _LT_ENABLE_STATIC([DEFAULT])
 
8215
# ----------------------------
 
8216
# implement the --enable-static flag, and support the `static' and
 
8217
# `disable-static' LT_INIT options.
 
8218
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8219
m4_define([_LT_ENABLE_STATIC],
 
8220
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8221
AC_ARG_ENABLE([static],
 
8222
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8223
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8224
    [p=${PACKAGE-default}
 
8225
    case $enableval in
 
8226
    yes) enable_static=yes ;;
 
8227
    no) enable_static=no ;;
 
8228
    *)
 
8229
     enable_static=no
 
8230
      # Look at the argument we got.  We use all the common list separators.
 
8231
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8232
      for pkg in $enableval; do
 
8233
        IFS="$lt_save_ifs"
 
8234
        if test "X$pkg" = "X$p"; then
 
8235
          enable_static=yes
 
8236
        fi
 
8237
      done
 
8238
      IFS="$lt_save_ifs"
 
8239
      ;;
 
8240
    esac],
 
8241
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8242
 
 
8243
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8244
        [Whether or not to build static libraries])
 
8245
])# _LT_ENABLE_STATIC
 
8246
 
 
8247
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8248
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8249
 
 
8250
# Old names:
 
8251
AC_DEFUN([AC_ENABLE_STATIC],
 
8252
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8253
])
 
8254
 
 
8255
AC_DEFUN([AC_DISABLE_STATIC],
 
8256
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8257
])
 
8258
 
 
8259
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8260
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8261
 
 
8262
dnl aclocal-1.4 backwards compatibility:
 
8263
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8264
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8265
 
 
8266
 
 
8267
 
 
8268
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8269
# ----------------------------------
 
8270
# implement the --enable-fast-install flag, and support the `fast-install'
 
8271
# and `disable-fast-install' LT_INIT options.
 
8272
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8273
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8274
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8275
AC_ARG_ENABLE([fast-install],
 
8276
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8277
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8278
    [p=${PACKAGE-default}
 
8279
    case $enableval in
 
8280
    yes) enable_fast_install=yes ;;
 
8281
    no) enable_fast_install=no ;;
 
8282
    *)
 
8283
      enable_fast_install=no
 
8284
      # Look at the argument we got.  We use all the common list separators.
 
8285
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8286
      for pkg in $enableval; do
 
8287
        IFS="$lt_save_ifs"
 
8288
        if test "X$pkg" = "X$p"; then
 
8289
          enable_fast_install=yes
 
8290
        fi
 
8291
      done
 
8292
      IFS="$lt_save_ifs"
 
8293
      ;;
 
8294
    esac],
 
8295
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8296
 
 
8297
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8298
         [Whether or not to optimize for fast installation])dnl
 
8299
])# _LT_ENABLE_FAST_INSTALL
 
8300
 
 
8301
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8302
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8303
 
 
8304
# Old names:
 
8305
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8306
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8307
AC_DIAGNOSE([obsolete],
 
8308
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8309
the `fast-install' option into LT_INIT's first parameter.])
 
8310
])
 
8311
 
 
8312
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8313
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8314
AC_DIAGNOSE([obsolete],
 
8315
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8316
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8317
])
 
8318
 
 
8319
dnl aclocal-1.4 backwards compatibility:
 
8320
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8321
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8322
 
 
8323
 
 
8324
# _LT_WITH_PIC([MODE])
 
8325
# --------------------
 
8326
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8327
# LT_INIT options.
 
8328
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8329
m4_define([_LT_WITH_PIC],
 
8330
[AC_ARG_WITH([pic],
 
8331
    [AS_HELP_STRING([--with-pic],
 
8332
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8333
    [pic_mode="$withval"],
 
8334
    [pic_mode=default])
 
8335
 
 
8336
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8337
 
 
8338
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8339
])# _LT_WITH_PIC
 
8340
 
 
8341
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8342
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8343
 
 
8344
# Old name:
 
8345
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8346
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8347
AC_DIAGNOSE([obsolete],
 
8348
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8349
put the `pic-only' option into LT_INIT's first parameter.])
 
8350
])
 
8351
 
 
8352
dnl aclocal-1.4 backwards compatibility:
 
8353
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8354
 
 
8355
 
 
8356
m4_define([_LTDL_MODE], [])
 
8357
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8358
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8359
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8360
                 [m4_define([_LTDL_MODE], [recursive])])
 
8361
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8362
                 [m4_define([_LTDL_MODE], [subproject])])
 
8363
 
 
8364
m4_define([_LTDL_TYPE], [])
 
8365
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8366
                 [m4_define([_LTDL_TYPE], [installable])])
 
8367
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8368
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8369
 
 
8370
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8371
#
 
8372
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8373
# Written by Gary V. Vaughan, 2004
 
8374
#
 
8375
# This file is free software; the Free Software Foundation gives
 
8376
# unlimited permission to copy and/or distribute it, with or without
 
8377
# modifications, as long as this notice is preserved.
 
8378
 
 
8379
# serial 6 ltsugar.m4
 
8380
 
 
8381
# This is to help aclocal find these macros, as it can't see m4_define.
 
8382
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8383
 
 
8384
 
 
8385
# lt_join(SEP, ARG1, [ARG2...])
 
8386
# -----------------------------
 
8387
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8388
# associated separator.
 
8389
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8390
# versions in m4sugar had bugs.
 
8391
m4_define([lt_join],
 
8392
[m4_if([$#], [1], [],
 
8393
       [$#], [2], [[$2]],
 
8394
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8395
m4_define([_lt_join],
 
8396
[m4_if([$#$2], [2], [],
 
8397
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8398
 
 
8399
 
 
8400
# lt_car(LIST)
 
8401
# lt_cdr(LIST)
 
8402
# ------------
 
8403
# Manipulate m4 lists.
 
8404
# These macros are necessary as long as will still need to support
 
8405
# Autoconf-2.59 which quotes differently.
 
8406
m4_define([lt_car], [[$1]])
 
8407
m4_define([lt_cdr],
 
8408
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8409
       [$#], 1, [],
 
8410
       [m4_dquote(m4_shift($@))])])
 
8411
m4_define([lt_unquote], $1)
 
8412
 
 
8413
 
 
8414
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8415
# ------------------------------------------
 
8416
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8417
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8418
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8419
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8420
# than defined and empty).
 
8421
#
 
8422
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8423
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8424
m4_define([lt_append],
 
8425
[m4_define([$1],
 
8426
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8427
 
 
8428
 
 
8429
 
 
8430
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8431
# ----------------------------------------------------------
 
8432
# Produce a SEP delimited list of all paired combinations of elements of
 
8433
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8434
# has the form PREFIXmINFIXSUFFIXn.
 
8435
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8436
m4_define([lt_combine],
 
8437
[m4_if(m4_eval([$# > 3]), [1],
 
8438
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8439
[[m4_foreach([_Lt_prefix], [$2],
 
8440
             [m4_foreach([_Lt_suffix],
 
8441
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8442
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8443
 
 
8444
 
 
8445
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8446
# -----------------------------------------------------------------------
 
8447
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8448
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8449
m4_define([lt_if_append_uniq],
 
8450
[m4_ifdef([$1],
 
8451
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8452
                 [lt_append([$1], [$2], [$3])$4],
 
8453
                 [$5])],
 
8454
          [lt_append([$1], [$2], [$3])$4])])
 
8455
 
 
8456
 
 
8457
# lt_dict_add(DICT, KEY, VALUE)
 
8458
# -----------------------------
 
8459
m4_define([lt_dict_add],
 
8460
[m4_define([$1($2)], [$3])])
 
8461
 
 
8462
 
 
8463
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8464
# --------------------------------------------
 
8465
m4_define([lt_dict_add_subkey],
 
8466
[m4_define([$1($2:$3)], [$4])])
 
8467
 
 
8468
 
 
8469
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8470
# ----------------------------------
 
8471
m4_define([lt_dict_fetch],
 
8472
[m4_ifval([$3],
 
8473
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8474
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8475
 
 
8476
 
 
8477
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8478
# -----------------------------------------------------------------
 
8479
m4_define([lt_if_dict_fetch],
 
8480
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8481
        [$5],
 
8482
    [$6])])
 
8483
 
 
8484
 
 
8485
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8486
# --------------------------------------------------------------
 
8487
m4_define([lt_dict_filter],
 
8488
[m4_if([$5], [], [],
 
8489
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8490
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8491
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8492
])
 
8493
 
 
8494
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8495
#
 
8496
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8497
#   Written by Scott James Remnant, 2004
 
8498
#
 
8499
# This file is free software; the Free Software Foundation gives
 
8500
# unlimited permission to copy and/or distribute it, with or without
 
8501
# modifications, as long as this notice is preserved.
 
8502
 
 
8503
# Generated from ltversion.in.
 
8504
 
 
8505
# serial 3012 ltversion.m4
 
8506
# This file is part of GNU Libtool
 
8507
 
 
8508
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8509
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8510
 
 
8511
AC_DEFUN([LTVERSION_VERSION],
 
8512
[macro_version='2.2.6'
 
8513
macro_revision='1.3012'
 
8514
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8515
_LT_DECL(, macro_revision, 0)
 
8516
])
 
8517
 
 
8518
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8519
#
 
8520
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8521
#   Written by Scott James Remnant, 2004.
 
8522
#
 
8523
# This file is free software; the Free Software Foundation gives
 
8524
# unlimited permission to copy and/or distribute it, with or without
 
8525
# modifications, as long as this notice is preserved.
 
8526
 
 
8527
# serial 4 lt~obsolete.m4
 
8528
 
 
8529
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8530
#
 
8531
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8532
# which have later been changed to m4_define as they aren't part of the
 
8533
# exported API, or moved to Autoconf or Automake where they belong.
 
8534
#
 
8535
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8536
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8537
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8538
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8539
# and doesn't know about Autoconf macros at all.)
 
8540
#
 
8541
# So we provide this file, which has a silly filename so it's always
 
8542
# included after everything else.  This provides aclocal with the
 
8543
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8544
# because those macros already exist, or will be overwritten later.
 
8545
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8546
#
 
8547
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8548
# Yes, that means every name once taken will need to remain here until
 
8549
# we give up compatibility with versions before 1.7, at which point
 
8550
# we need to keep only those names which we still refer to.
 
8551
 
 
8552
# This is to help aclocal find these macros, as it can't see m4_define.
 
8553
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8554
 
 
8555
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8556
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8557
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8558
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8559
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8560
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8561
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8562
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8563
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8564
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8565
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8566
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8567
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8568
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8569
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8570
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8571
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8572
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8573
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8574
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8575
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8576
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8577
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8578
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8579
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8580
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8581
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8582
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8583
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8584
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8585
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8586
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8587
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8588
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8589
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8590
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8591
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8592
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8593
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8594
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8595
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8596
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8597
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8598
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8599
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8600
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8601
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8602
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8603
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8604
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8605
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8606
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8607
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8608
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8609
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8610
 
 
8611
# nls.m4 serial 3 (gettext-0.15)
 
8612
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
8613
dnl This file is free software; the Free Software Foundation
 
8614
dnl gives unlimited permission to copy and/or distribute it,
 
8615
dnl with or without modifications, as long as this notice is preserved.
 
8616
dnl
 
8617
dnl This file can can be used in projects which are not available under
 
8618
dnl the GNU General Public License or the GNU Library General Public
 
8619
dnl License but which still want to provide support for the GNU gettext
 
8620
dnl functionality.
 
8621
dnl Please note that the actual code of the GNU gettext library is covered
 
8622
dnl by the GNU Library General Public License, and the rest of the GNU
 
8623
dnl gettext package package is covered by the GNU General Public License.
 
8624
dnl They are *not* in the public domain.
 
8625
 
 
8626
dnl Authors:
 
8627
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
8628
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
8629
 
 
8630
AC_PREREQ(2.50)
 
8631
 
 
8632
AC_DEFUN([AM_NLS],
 
8633
[
 
8634
  AC_MSG_CHECKING([whether NLS is requested])
 
8635
  dnl Default is enabled NLS
 
8636
  AC_ARG_ENABLE(nls,
 
8637
    [  --disable-nls           do not use Native Language Support],
 
8638
    USE_NLS=$enableval, USE_NLS=yes)
 
8639
  AC_MSG_RESULT($USE_NLS)
 
8640
  AC_SUBST(USE_NLS)
7309
8641
])
7310
8642
 
7311
8643
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7466
8798
fi[]dnl
7467
8799
])# PKG_CHECK_MODULES
7468
8800
 
7469
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
8801
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7470
8802
#
7471
8803
# This file is free software; the Free Software Foundation
7472
8804
# gives unlimited permission to copy and/or distribute it,
7476
8808
# ----------------------------
7477
8809
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7478
8810
# generated from the m4 files accompanying Automake X.Y.
7479
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
8811
# (This private macro should not be called outside this file.)
 
8812
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
8813
[am__api_version='1.10'
 
8814
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
8815
dnl require some minimum version.  Point them to the right macro.
 
8816
m4_if([$1], [1.10.2], [],
 
8817
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
8818
])
 
8819
 
 
8820
# _AM_AUTOCONF_VERSION(VERSION)
 
8821
# -----------------------------
 
8822
# aclocal traces this macro to find the Autoconf version.
 
8823
# This is a private macro too.  Using m4_define simplifies
 
8824
# the logic in aclocal, which can simply ignore this definition.
 
8825
m4_define([_AM_AUTOCONF_VERSION], [])
7480
8826
 
7481
8827
# AM_SET_CURRENT_AUTOMAKE_VERSION
7482
8828
# -------------------------------
7483
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
7484
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
8829
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
8830
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7485
8831
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7486
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
8832
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
8833
m4_ifndef([AC_AUTOCONF_VERSION],
 
8834
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
8835
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7487
8836
 
7488
8837
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7489
8838
 
7563
8912
 
7564
8913
# AM_CONDITIONAL                                            -*- Autoconf -*-
7565
8914
 
7566
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
8915
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7567
8916
# Free Software Foundation, Inc.
7568
8917
#
7569
8918
# This file is free software; the Free Software Foundation
7570
8919
# gives unlimited permission to copy and/or distribute it,
7571
8920
# with or without modifications, as long as this notice is preserved.
7572
8921
 
7573
 
# serial 7
 
8922
# serial 8
7574
8923
 
7575
8924
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7576
8925
# -------------------------------------
7579
8928
[AC_PREREQ(2.52)dnl
7580
8929
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7581
8930
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7582
 
AC_SUBST([$1_TRUE])
7583
 
AC_SUBST([$1_FALSE])
 
8931
AC_SUBST([$1_TRUE])dnl
 
8932
AC_SUBST([$1_FALSE])dnl
 
8933
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
8934
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7584
8935
if $2; then
7585
8936
  $1_TRUE=
7586
8937
  $1_FALSE='#'
7594
8945
Usually this means the macro was only invoked conditionally.]])
7595
8946
fi])])
7596
8947
 
7597
 
 
7598
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
8948
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7599
8949
# Free Software Foundation, Inc.
7600
8950
#
7601
8951
# This file is free software; the Free Software Foundation
7602
8952
# gives unlimited permission to copy and/or distribute it,
7603
8953
# with or without modifications, as long as this notice is preserved.
7604
8954
 
7605
 
# serial 8
 
8955
# serial 9
7606
8956
 
7607
8957
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7608
8958
# written in clear, in which case automake, when reading aclocal.m4,
7630
8980
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7631
8981
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7632
8982
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
8983
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7633
8984
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7634
8985
                   [depcc="$$1"   am_compiler_list=])
7635
8986
 
7695
9046
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7696
9047
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7697
9048
         >/dev/null 2>conftest.err &&
 
9049
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7698
9050
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7699
9051
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7700
9052
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7747
9099
  AMDEPBACKSLASH='\'
7748
9100
fi
7749
9101
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7750
 
AC_SUBST([AMDEPBACKSLASH])
 
9102
AC_SUBST([AMDEPBACKSLASH])dnl
 
9103
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7751
9104
])
7752
9105
 
7753
9106
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7754
9107
 
7755
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9108
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7756
9109
# Free Software Foundation, Inc.
7757
9110
#
7758
9111
# This file is free software; the Free Software Foundation
7759
9112
# gives unlimited permission to copy and/or distribute it,
7760
9113
# with or without modifications, as long as this notice is preserved.
7761
9114
 
7762
 
#serial 3
 
9115
#serial 5
7763
9116
 
7764
9117
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7765
9118
# ------------------------------
7766
9119
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7767
 
[for mf in $CONFIG_FILES; do
7768
 
  # Strip MF so we end up with the name of the file.
7769
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7770
 
  # Check whether this is an Automake generated Makefile or not.
7771
 
  # We used to match only the files named `Makefile.in', but
7772
 
  # some people rename them; so instead we look at the file content.
7773
 
  # Grep'ing the first line is not enough: some people post-process
7774
 
  # each Makefile.in and add a new line on top of each file to say so.
7775
 
  # So let's grep whole file.
7776
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7777
 
    dirpart=`AS_DIRNAME("$mf")`
7778
 
  else
7779
 
    continue
7780
 
  fi
7781
 
  # Extract the definition of DEPDIR, am__include, and am__quote
7782
 
  # from the Makefile without running `make'.
7783
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7784
 
  test -z "$DEPDIR" && continue
7785
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7786
 
  test -z "am__include" && continue
7787
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7788
 
  # When using ansi2knr, U may be empty or an underscore; expand it
7789
 
  U=`sed -n 's/^U = //p' < "$mf"`
7790
 
  # Find all dependency output files, they are included files with
7791
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7792
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
7793
 
  # expansion.
7794
 
  for file in `sed -n "
7795
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7796
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7797
 
    # Make sure the directory exists.
7798
 
    test -f "$dirpart/$file" && continue
7799
 
    fdir=`AS_DIRNAME(["$file"])`
7800
 
    AS_MKDIR_P([$dirpart/$fdir])
7801
 
    # echo "creating $dirpart/$file"
7802
 
    echo '# dummy' > "$dirpart/$file"
 
9120
[{
 
9121
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9122
  # are listed without --file.  Let's play safe and only enable the eval
 
9123
  # if we detect the quoting.
 
9124
  case $CONFIG_FILES in
 
9125
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9126
  *)   set x $CONFIG_FILES ;;
 
9127
  esac
 
9128
  shift
 
9129
  for mf
 
9130
  do
 
9131
    # Strip MF so we end up with the name of the file.
 
9132
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9133
    # Check whether this is an Automake generated Makefile or not.
 
9134
    # We used to match only the files named `Makefile.in', but
 
9135
    # some people rename them; so instead we look at the file content.
 
9136
    # Grep'ing the first line is not enough: some people post-process
 
9137
    # each Makefile.in and add a new line on top of each file to say so.
 
9138
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9139
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9140
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9141
      dirpart=`AS_DIRNAME("$mf")`
 
9142
    else
 
9143
      continue
 
9144
    fi
 
9145
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9146
    # from the Makefile without running `make'.
 
9147
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9148
    test -z "$DEPDIR" && continue
 
9149
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9150
    test -z "am__include" && continue
 
9151
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9152
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9153
    U=`sed -n 's/^U = //p' < "$mf"`
 
9154
    # Find all dependency output files, they are included files with
 
9155
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9156
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9157
    # expansion.
 
9158
    for file in `sed -n "
 
9159
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9160
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9161
      # Make sure the directory exists.
 
9162
      test -f "$dirpart/$file" && continue
 
9163
      fdir=`AS_DIRNAME(["$file"])`
 
9164
      AS_MKDIR_P([$dirpart/$fdir])
 
9165
      # echo "creating $dirpart/$file"
 
9166
      echo '# dummy' > "$dirpart/$file"
 
9167
    done
7803
9168
  done
7804
 
done
 
9169
}
7805
9170
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7806
9171
 
7807
9172
 
7832
9197
 
7833
9198
# Do all the work for Automake.                             -*- Autoconf -*-
7834
9199
 
7835
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7836
 
# Free Software Foundation, Inc.
 
9200
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
9201
# 2005, 2006, 2008 Free Software Foundation, Inc.
7837
9202
#
7838
9203
# This file is free software; the Free Software Foundation
7839
9204
# gives unlimited permission to copy and/or distribute it,
7840
9205
# with or without modifications, as long as this notice is preserved.
7841
9206
 
7842
 
# serial 12
 
9207
# serial 13
7843
9208
 
7844
9209
# This macro actually does too much.  Some checks are only needed if
7845
9210
# your package does certain things.  But this isn't really a big deal.
7856
9221
# arguments mandatory, and then we can depend on a new Autoconf
7857
9222
# release and drop the old call support.
7858
9223
AC_DEFUN([AM_INIT_AUTOMAKE],
7859
 
[AC_PREREQ([2.58])dnl
 
9224
[AC_PREREQ([2.60])dnl
7860
9225
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7861
9226
dnl the ones we care about.
7862
9227
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7863
9228
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7864
9229
AC_REQUIRE([AC_PROG_INSTALL])dnl
7865
 
# test to see if srcdir already configured
7866
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7867
 
   test -f $srcdir/config.status; then
7868
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
9230
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
9231
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
9232
  # is not polluted with repeated "-I."
 
9233
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
9234
  # test to see if srcdir already configured
 
9235
  if test -f $srcdir/config.status; then
 
9236
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
9237
  fi
7869
9238
fi
7870
9239
 
7871
9240
# test whether we have cygpath
7885
9254
 AC_SUBST([PACKAGE], [$1])dnl
7886
9255
 AC_SUBST([VERSION], [$2])],
7887
9256
[_AM_SET_OPTIONS([$1])dnl
 
9257
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
9258
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
9259
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7888
9260
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7889
9261
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7890
9262
 
7920
9292
                  [_AM_DEPENDENCIES(CXX)],
7921
9293
                  [define([AC_PROG_CXX],
7922
9294
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9295
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
9296
                  [_AM_DEPENDENCIES(OBJC)],
 
9297
                  [define([AC_PROG_OBJC],
 
9298
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7923
9299
])
7924
9300
])
7925
9301
 
7933
9309
# our stamp files there.
7934
9310
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7935
9311
[# Compute $1's index in $config_headers.
 
9312
_am_arg=$1
7936
9313
_am_stamp_count=1
7937
9314
for _am_header in $config_headers :; do
7938
9315
  case $_am_header in
7939
 
    $1 | $1:* )
 
9316
    $_am_arg | $_am_arg:* )
7940
9317
      break ;;
7941
9318
    * )
7942
9319
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7943
9320
  esac
7944
9321
done
7945
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
9322
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7946
9323
 
7947
9324
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7948
9325
#
7955
9332
# Define $install_sh.
7956
9333
AC_DEFUN([AM_PROG_INSTALL_SH],
7957
9334
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7958
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
9335
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7959
9336
AC_SUBST(install_sh)])
7960
9337
 
7961
9338
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
8062
9439
 
8063
9440
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
8064
9441
 
8065
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
9442
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8066
9443
# Free Software Foundation, Inc.
8067
9444
#
8068
9445
# This file is free software; the Free Software Foundation
8069
9446
# gives unlimited permission to copy and/or distribute it,
8070
9447
# with or without modifications, as long as this notice is preserved.
8071
9448
 
8072
 
# serial 4
 
9449
# serial 5
8073
9450
 
8074
9451
# AM_MISSING_PROG(NAME, PROGRAM)
8075
9452
# ------------------------------
8085
9462
# If it does, set am_missing_run to use it, otherwise, to nothing.
8086
9463
AC_DEFUN([AM_MISSING_HAS_RUN],
8087
9464
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9465
AC_REQUIRE_AUX_FILE([missing])dnl
8088
9466
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8089
9467
# Use eval to expand $SHELL
8090
9468
if eval "$MISSING --run true"; then
8095
9473
fi
8096
9474
])
8097
9475
 
8098
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
9476
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
8099
9477
#
8100
9478
# This file is free software; the Free Software Foundation
8101
9479
# gives unlimited permission to copy and/or distribute it,
8103
9481
 
8104
9482
# AM_PROG_MKDIR_P
8105
9483
# ---------------
8106
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
8107
 
#
8108
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
8109
 
# created by `make install' are always world readable, even if the
8110
 
# installer happens to have an overly restrictive umask (e.g. 077).
8111
 
# This was a mistake.  There are at least two reasons why we must not
8112
 
# use `-m 0755':
8113
 
#   - it causes special bits like SGID to be ignored,
8114
 
#   - it may be too restrictive (some setups expect 775 directories).
8115
 
#
8116
 
# Do not use -m 0755 and let people choose whatever they expect by
8117
 
# setting umask.
8118
 
#
8119
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
8120
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
8121
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
8122
 
# concurrently, both version can detect that a/ is missing, but only
8123
 
# one can create it and the other will error out.  Consequently we
8124
 
# restrict ourselves to GNU make (using the --version option ensures
8125
 
# this.)
 
9484
# Check for `mkdir -p'.
8126
9485
AC_DEFUN([AM_PROG_MKDIR_P],
8127
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8128
 
  # We used to keeping the `.' as first argument, in order to
8129
 
  # allow $(mkdir_p) to be used without argument.  As in
8130
 
  #   $(mkdir_p) $(somedir)
8131
 
  # where $(somedir) is conditionally defined.  However this is wrong
8132
 
  # for two reasons:
8133
 
  #  1. if the package is installed by a user who cannot write `.'
8134
 
  #     make install will fail,
8135
 
  #  2. the above comment should most certainly read
8136
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
8137
 
  #     so it does not work when $(somedir) is undefined and
8138
 
  #     $(DESTDIR) is not.
8139
 
  #  To support the latter case, we have to write
8140
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8141
 
  #  so the `.' trick is pointless.
8142
 
  mkdir_p='mkdir -p --'
8143
 
else
8144
 
  # On NextStep and OpenStep, the `mkdir' command does not
8145
 
  # recognize any option.  It will interpret all options as
8146
 
  # directories to create, and then abort because `.' already
8147
 
  # exists.
8148
 
  for d in ./-p ./--version;
8149
 
  do
8150
 
    test -d $d && rmdir $d
8151
 
  done
8152
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8153
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
8154
 
    mkdir_p='$(mkinstalldirs)'
8155
 
  else
8156
 
    mkdir_p='$(install_sh) -d'
8157
 
  fi
8158
 
fi
8159
 
AC_SUBST([mkdir_p])])
 
9486
[AC_PREREQ([2.60])dnl
 
9487
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
9488
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
9489
dnl while keeping a definition of mkdir_p for backward compatibility.
 
9490
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
9491
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
9492
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
9493
dnl adjustment using top_builddir (which is defined more often than
 
9494
dnl MKDIR_P).
 
9495
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
9496
case $mkdir_p in
 
9497
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
9498
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
9499
esac
 
9500
])
8160
9501
 
8161
9502
# Helper functions for option handling.                     -*- Autoconf -*-
8162
9503
 
8163
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9504
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
8164
9505
#
8165
9506
# This file is free software; the Free Software Foundation
8166
9507
# gives unlimited permission to copy and/or distribute it,
8167
9508
# with or without modifications, as long as this notice is preserved.
8168
9509
 
8169
 
# serial 3
 
9510
# serial 4
8170
9511
 
8171
9512
# _AM_MANGLE_OPTION(NAME)
8172
9513
# -----------------------
8183
9524
# ----------------------------------
8184
9525
# OPTIONS is a space-separated list of Automake options.
8185
9526
AC_DEFUN([_AM_SET_OPTIONS],
8186
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9527
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8187
9528
 
8188
9529
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8189
9530
# -------------------------------------------
8268
9609
if test "$cross_compiling" != no; then
8269
9610
  AC_CHECK_TOOL([STRIP], [strip], :)
8270
9611
fi
8271
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
9612
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8272
9613
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8273
9614
 
 
9615
# Copyright (C) 2006  Free Software Foundation, Inc.
 
9616
#
 
9617
# This file is free software; the Free Software Foundation
 
9618
# gives unlimited permission to copy and/or distribute it,
 
9619
# with or without modifications, as long as this notice is preserved.
 
9620
 
 
9621
# _AM_SUBST_NOTMAKE(VARIABLE)
 
9622
# ---------------------------
 
9623
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
9624
# This macro is traced by Automake.
 
9625
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
9626
 
8274
9627
# Check how to create a tarball.                            -*- Autoconf -*-
8275
9628
 
8276
9629
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.