~ubuntu-branches/ubuntu/oneiric/indicator-session/oneiric-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-08-25 08:58:56 UTC
  • mfrom: (1.1.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825085856-qtuta6vqal1iw7mt
Tags: 0.3.3-0ubuntu1
* New upstream release.
  - User menu should still show even if there is only 1 user (LP: #831758)
  - Bluetooth item in menu not needed (LP: #825111)
  - Newly created users are not added to the menu until next 
    login (LP: #552048)
  - Users list in shutdown menu is not updated on user 
    deletion (LP: #557608)
  - should use gsettings rather than gconf (LP: #656323)
* debian/control
  - Bump dbusmenu build dep to >= 0.4.92

Show diffs side-by-side

added added

removed removed

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