~ubuntu-branches/ubuntu/wily/blueman/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-01-21 08:54:58 UTC
  • mfrom: (2.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140121085458-riy3j6wk9vfd599j
Tags: 1.23-git201312311147-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/patches/01_dont_autostart_lxde.patch:
    + Don't autostart the applet in LXDE
  - debian/patches/02_dont_crash_on_non-bluetooth_card.patch:
    + Avoid crashing when receiving event for cards blueman shouldn't handle
  - debian/control: Don't depend on python-appindicator
  - debian/patches/03_filemanager_fix.patch:
    + Add support for more filemanagers 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
1
# generated automatically by aclocal 1.14 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
260
261
              [CATOBJEXT=.mo
261
262
               DATADIRNAME=lib])
262
263
            ;;
 
264
            *-*-openbsd*)
 
265
            CATOBJEXT=.mo
 
266
            DATADIRNAME=share
 
267
            ;;
263
268
            *)
264
269
            CATOBJEXT=.mo
265
270
            DATADIRNAME=lib
454
459
 
455
460
 
456
461
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
457
 
# serial 40 IT_PROG_INTLTOOL
 
462
# serial 42 IT_PROG_INTLTOOL
458
463
AC_DEFUN([IT_PROG_INTLTOOL], [
459
464
AC_PREREQ([2.50])dnl
460
465
AC_REQUIRE([AM_NLS])dnl
467
472
    ;;
468
473
esac
469
474
 
 
475
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
476
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
477
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
470
478
if test -n "$1"; then
471
479
    AC_MSG_CHECKING([for intltool >= $1])
472
 
 
473
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
474
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
475
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
476
 
    ]
477
480
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
478
481
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
479
482
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
486
489
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
487
490
fi
488
491
 
489
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
490
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
491
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
492
 
     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 $< [$]@' 
493
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
494
 
     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 $< [$]@' 
495
 
   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 $< [$]@' 
496
 
    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 $< [$]@' 
497
 
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 $< [$]@' 
498
 
       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 $< [$]@' 
499
 
      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 $< [$]@' 
500
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
501
 
      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 $< [$]@' 
502
 
      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 $< [$]@' 
503
 
    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 $< [$]@' 
504
 
  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 $< [$]@' 
505
 
    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 $< [$]@' 
506
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
507
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
492
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
493
  AM_DEFAULT_VERBOSITY=1
 
494
fi
 
495
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
496
 
 
497
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
498
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
499
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
500
AC_SUBST(INTLTOOL_V_MERGE)
 
501
AC_SUBST(INTLTOOL__v_MERGE_)
 
502
AC_SUBST(INTLTOOL__v_MERGE_0)
 
503
 
 
504
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
505
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
506
intltool__v_merge_options_0='-q'
 
507
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
508
AC_SUBST(intltool__v_merge_options_)
 
509
AC_SUBST(intltool__v_merge_options_0)
 
510
 
 
511
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
512
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
513
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
514
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
515
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
516
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
517
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
518
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
519
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
520
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
521
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
522
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
523
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
524
else
 
525
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
 
526
fi
 
527
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
528
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
529
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
530
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
531
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
532
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
533
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
508
534
 
509
535
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510
536
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
550
576
if test $? -ne 0; then
551
577
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
552
578
else
553
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
579
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
554
580
   AC_MSG_RESULT([$IT_PERL_VERSION])
555
581
fi
556
582
if test "x$2" != "xno-xml"; then
649
675
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
650
676
#
651
677
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
652
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
678
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
679
#                 Foundation, Inc.
653
680
#   Written by Gordon Matzigkeit, 1996
654
681
#
655
682
# This file is free software; the Free Software Foundation gives
658
685
 
659
686
m4_define([_LT_COPYING], [dnl
660
687
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
661
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
688
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
689
#                 Foundation, Inc.
662
690
#   Written by Gordon Matzigkeit, 1996
663
691
#
664
692
#   This file is part of GNU Libtool.
685
713
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
686
714
])
687
715
 
688
 
# serial 56 LT_INIT
 
716
# serial 57 LT_INIT
689
717
 
690
718
 
691
719
# LT_PREREQ(VERSION)
714
742
# ------------------
715
743
AC_DEFUN([LT_INIT],
716
744
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
745
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
717
746
AC_BEFORE([$0], [LT_LANG])dnl
718
747
AC_BEFORE([$0], [LT_OUTPUT])dnl
719
748
AC_BEFORE([$0], [LTDL_INIT])dnl
730
759
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
731
760
m4_require([_LT_PROG_LTMAIN])dnl
732
761
 
 
762
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
763
 
733
764
dnl Parse OPTIONS
734
765
_LT_SET_OPTIONS([$0], [$1])
735
766
 
766
797
    *) break;;
767
798
  esac
768
799
done
769
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
800
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
770
801
])
771
802
 
772
803
 
786
817
m4_defun([_LT_SETUP],
787
818
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
788
819
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
820
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
821
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
822
 
 
823
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
824
dnl
789
825
_LT_DECL([], [host_alias], [0], [The host system])dnl
790
826
_LT_DECL([], [host], [0])dnl
791
827
_LT_DECL([], [host_os], [0])dnl
808
844
dnl
809
845
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
810
846
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
847
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
811
848
m4_require([_LT_CMD_RELOAD])dnl
812
849
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
850
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
813
851
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
814
852
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
853
m4_require([_LT_WITH_SYSROOT])dnl
815
854
 
816
855
_LT_CONFIG_LIBTOOL_INIT([
817
856
# See if we are running on zsh, and set the options which allow our
827
866
_LT_CHECK_OBJDIR
828
867
 
829
868
m4_require([_LT_TAG_COMPILER])dnl
830
 
_LT_PROG_ECHO_BACKSLASH
831
869
 
832
870
case $host_os in
833
871
aix3*)
841
879
  ;;
842
880
esac
843
881
 
844
 
# Sed substitution that helps us do robust quoting.  It backslashifies
845
 
# metacharacters that are still active within double-quoted strings.
846
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
847
 
 
848
 
# Same as above, but do not quote variable references.
849
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
850
 
 
851
 
# Sed substitution to delay expansion of an escaped shell variable in a
852
 
# double_quote_subst'ed string.
853
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
854
 
 
855
 
# Sed substitution to delay expansion of an escaped single quote.
856
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
857
 
 
858
 
# Sed substitution to avoid accidental globbing in evaled expressions
859
 
no_glob_subst='s/\*/\\\*/g'
860
 
 
861
882
# Global variables:
862
883
ofile=libtool
863
884
can_build_shared=yes
898
919
])# _LT_SETUP
899
920
 
900
921
 
 
922
# _LT_PREPARE_SED_QUOTE_VARS
 
923
# --------------------------
 
924
# Define a few sed substitution that help us do robust quoting.
 
925
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
926
[# Backslashify metacharacters that are still active within
 
927
# double-quoted strings.
 
928
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
929
 
 
930
# Same as above, but do not quote variable references.
 
931
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
932
 
 
933
# Sed substitution to delay expansion of an escaped shell variable in a
 
934
# double_quote_subst'ed string.
 
935
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
936
 
 
937
# Sed substitution to delay expansion of an escaped single quote.
 
938
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
939
 
 
940
# Sed substitution to avoid accidental globbing in evaled expressions
 
941
no_glob_subst='s/\*/\\\*/g'
 
942
])
 
943
 
901
944
# _LT_PROG_LTMAIN
902
945
# ---------------
903
946
# Note that this code is called both from `configure', and `config.status'
1050
1093
# declaration there will have the same value as in `configure'.  VARNAME
1051
1094
# must have a single quote delimited value for this to work.
1052
1095
m4_define([_LT_CONFIG_STATUS_DECLARE],
1053
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1096
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1054
1097
 
1055
1098
 
1056
1099
# _LT_CONFIG_STATUS_DECLARATIONS
1060
1103
# embedded single quotes properly.  In configure, this macro expands
1061
1104
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1062
1105
#
1063
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1106
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1064
1107
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1065
1108
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1066
1109
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1159
1202
LTCFLAGS='$LTCFLAGS'
1160
1203
compiler='$compiler_DEFAULT'
1161
1204
 
 
1205
# A function that is used when there is no print builtin or printf.
 
1206
func_fallback_echo ()
 
1207
{
 
1208
  eval 'cat <<_LTECHO_EOF
 
1209
\$[]1
 
1210
_LTECHO_EOF'
 
1211
}
 
1212
 
1162
1213
# Quote evaled strings.
1163
1214
for var in lt_decl_all_varnames([[ \
1164
1215
]], lt_decl_quote_varnames); do
1165
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1216
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1166
1217
    *[[\\\\\\\`\\"\\\$]]*)
1167
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1218
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1168
1219
      ;;
1169
1220
    *)
1170
1221
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1175
1226
# Double-quote double-evaled strings.
1176
1227
for var in lt_decl_all_varnames([[ \
1177
1228
]], lt_decl_dquote_varnames); do
1178
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1229
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1179
1230
    *[[\\\\\\\`\\"\\\$]]*)
1180
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1231
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1181
1232
      ;;
1182
1233
    *)
1183
1234
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1185
1236
    esac
1186
1237
done
1187
1238
 
1188
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1189
 
case \$lt_ECHO in
1190
 
*'\\\[$]0 --fallback-echo"')dnl "
1191
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1192
 
  ;;
1193
 
esac
1194
 
 
1195
1239
_LT_OUTPUT_LIBTOOL_INIT
1196
1240
])
1197
1241
 
 
1242
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1243
# ------------------------------------
 
1244
# Generate a child script FILE with all initialization necessary to
 
1245
# reuse the environment learned by the parent script, and make the
 
1246
# file executable.  If COMMENT is supplied, it is inserted after the
 
1247
# `#!' sequence but before initialization text begins.  After this
 
1248
# macro, additional text can be appended to FILE to form the body of
 
1249
# the child script.  The macro ends with non-zero status if the
 
1250
# file could not be fully written (such as if the disk is full).
 
1251
m4_ifdef([AS_INIT_GENERATED],
 
1252
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1253
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1254
[m4_require([AS_PREPARE])]dnl
 
1255
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1256
[lt_write_fail=0
 
1257
cat >$1 <<_ASEOF || lt_write_fail=1
 
1258
#! $SHELL
 
1259
# Generated by $as_me.
 
1260
$2
 
1261
SHELL=\${CONFIG_SHELL-$SHELL}
 
1262
export SHELL
 
1263
_ASEOF
 
1264
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1265
AS_SHELL_SANITIZE
 
1266
_AS_PREPARE
 
1267
exec AS_MESSAGE_FD>&1
 
1268
_ASEOF
 
1269
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1270
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1198
1271
 
1199
1272
# LT_OUTPUT
1200
1273
# ---------
1204
1277
AC_DEFUN([LT_OUTPUT],
1205
1278
[: ${CONFIG_LT=./config.lt}
1206
1279
AC_MSG_NOTICE([creating $CONFIG_LT])
1207
 
cat >"$CONFIG_LT" <<_LTEOF
1208
 
#! $SHELL
1209
 
# Generated by $as_me.
1210
 
# Run this file to recreate a libtool stub with the current configuration.
 
1280
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1281
[# Run this file to recreate a libtool stub with the current configuration.])
1211
1282
 
 
1283
cat >>"$CONFIG_LT" <<\_LTEOF
1212
1284
lt_cl_silent=false
1213
 
SHELL=\${CONFIG_SHELL-$SHELL}
1214
 
_LTEOF
1215
 
 
1216
 
cat >>"$CONFIG_LT" <<\_LTEOF
1217
 
AS_SHELL_SANITIZE
1218
 
_AS_PREPARE
1219
 
 
1220
 
exec AS_MESSAGE_FD>&1
1221
1285
exec AS_MESSAGE_LOG_FD>>config.log
1222
1286
{
1223
1287
  echo
1243
1307
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1244
1308
configured by $[0], generated by m4_PACKAGE_STRING.
1245
1309
 
1246
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
1310
Copyright (C) 2011 Free Software Foundation, Inc.
1247
1311
This config.lt script is free software; the Free Software Foundation
1248
1312
gives unlimited permision to copy, distribute and modify it."
1249
1313
 
1288
1352
# appending to config.log, which fails on DOS, as config.log is still kept
1289
1353
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1290
1354
# config.log, so it can be properly (re)opened and appended to by config.lt.
1291
 
if test "$no_create" != yes; then
1292
 
  lt_cl_success=:
1293
 
  test "$silent" = yes &&
1294
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1295
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1296
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1297
 
  exec AS_MESSAGE_LOG_FD>>config.log
1298
 
  $lt_cl_success || AS_EXIT(1)
1299
 
fi
 
1355
lt_cl_success=:
 
1356
test "$silent" = yes &&
 
1357
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1358
exec AS_MESSAGE_LOG_FD>/dev/null
 
1359
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1360
exec AS_MESSAGE_LOG_FD>>config.log
 
1361
$lt_cl_success || AS_EXIT(1)
1300
1362
])# LT_OUTPUT
1301
1363
 
1302
1364
 
1359
1421
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1360
1422
  # text mode, it properly converts lines to CR/LF.  This bash problem
1361
1423
  # is reportedly fixed, but why not run on old versions too?
1362
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1363
 
    || (rm -f "$cfgfile"; exit 1)
1364
 
 
1365
 
  _LT_PROG_XSI_SHELLFNS
1366
 
 
1367
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1368
 
    || (rm -f "$cfgfile"; exit 1)
1369
 
 
1370
 
  mv -f "$cfgfile" "$ofile" ||
 
1424
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1425
     || (rm -f "$cfgfile"; exit 1)
 
1426
 
 
1427
  _LT_PROG_REPLACE_SHELLFNS
 
1428
 
 
1429
   mv -f "$cfgfile" "$ofile" ||
1371
1430
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1372
1431
  chmod +x "$ofile"
1373
1432
],
1412
1471
m4_case([$1],
1413
1472
  [C],                  [_LT_LANG(C)],
1414
1473
  [C++],                [_LT_LANG(CXX)],
 
1474
  [Go],                 [_LT_LANG(GO)],
1415
1475
  [Java],               [_LT_LANG(GCJ)],
1416
1476
  [Fortran 77],         [_LT_LANG(F77)],
1417
1477
  [Fortran],            [_LT_LANG(FC)],
1433
1493
])# _LT_LANG
1434
1494
 
1435
1495
 
 
1496
m4_ifndef([AC_PROG_GO], [
 
1497
# NOTE: This macro has been submitted for inclusion into   #
 
1498
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
1499
#  a released version of Autoconf we should remove this    #
 
1500
#  macro and use it instead.                               #
 
1501
m4_defun([AC_PROG_GO],
 
1502
[AC_LANG_PUSH(Go)dnl
 
1503
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
1504
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
1505
_AC_ARG_VAR_LDFLAGS()dnl
 
1506
AC_CHECK_TOOL(GOC, gccgo)
 
1507
if test -z "$GOC"; then
 
1508
  if test -n "$ac_tool_prefix"; then
 
1509
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
1510
  fi
 
1511
fi
 
1512
if test -z "$GOC"; then
 
1513
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
1514
fi
 
1515
])#m4_defun
 
1516
])#m4_ifndef
 
1517
 
 
1518
 
1436
1519
# _LT_LANG_DEFAULT_CONFIG
1437
1520
# -----------------------
1438
1521
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1463
1546
       m4_ifdef([LT_PROG_GCJ],
1464
1547
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1465
1548
 
 
1549
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
1550
  [LT_LANG(GO)],
 
1551
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
1552
 
1466
1553
AC_PROVIDE_IFELSE([LT_PROG_RC],
1467
1554
  [LT_LANG(RC)],
1468
1555
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1473
1560
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1474
1561
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1475
1562
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1563
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1476
1564
dnl aclocal-1.4 backwards compatibility:
1477
1565
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1478
1566
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1479
1567
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1480
1568
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1569
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1481
1570
 
1482
1571
 
1483
1572
# _LT_TAG_COMPILER
1563
1652
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1564
1653
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1565
1654
        _lt_result=$?
1566
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1655
        # If there is a non-empty error log, and "single_module"
 
1656
        # appears in it, assume the flag caused a linker warning
 
1657
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1658
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1659
        # Otherwise, if the output was created with a 0 exit code from
 
1660
        # the compiler, it worked.
 
1661
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1567
1662
          lt_cv_apple_cc_single_mod=yes
1568
1663
        else
1569
1664
          cat conftest.err >&AS_MESSAGE_LOG_FD
1571
1666
        rm -rf libconftest.dylib*
1572
1667
        rm -f conftest.*
1573
1668
      fi])
 
1669
 
1574
1670
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1575
1671
      [lt_cv_ld_exported_symbols_list],
1576
1672
      [lt_cv_ld_exported_symbols_list=no
1582
1678
        [lt_cv_ld_exported_symbols_list=no])
1583
1679
        LDFLAGS="$save_LDFLAGS"
1584
1680
    ])
 
1681
 
 
1682
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1683
      [lt_cv_ld_force_load=no
 
1684
      cat > conftest.c << _LT_EOF
 
1685
int forced_loaded() { return 2;}
 
1686
_LT_EOF
 
1687
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1688
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1689
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1690
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1691
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1692
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1693
      cat > conftest.c << _LT_EOF
 
1694
int main() { return 0;}
 
1695
_LT_EOF
 
1696
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1697
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1698
      _lt_result=$?
 
1699
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1700
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1701
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
1702
        lt_cv_ld_force_load=yes
 
1703
      else
 
1704
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1705
      fi
 
1706
        rm -f conftest.err libconftest.a conftest conftest.c
 
1707
        rm -rf conftest.dSYM
 
1708
    ])
1585
1709
    case $host_os in
1586
1710
    rhapsody* | darwin1.[[012]])
1587
1711
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1609
1733
    else
1610
1734
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1611
1735
    fi
1612
 
    if test "$DSYMUTIL" != ":"; then
 
1736
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1613
1737
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1614
1738
    else
1615
1739
      _lt_dsymutil=
1619
1743
])
1620
1744
 
1621
1745
 
1622
 
# _LT_DARWIN_LINKER_FEATURES
1623
 
# --------------------------
 
1746
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1747
# ---------------------------------
1624
1748
# Checks for linker and compiler features on darwin
1625
1749
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1626
1750
[
1629
1753
  _LT_TAGVAR(hardcode_direct, $1)=no
1630
1754
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1631
1755
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1632
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1756
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1757
    _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\"`'
 
1758
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1759
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 
1760
  else
 
1761
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1762
  fi
1633
1763
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1634
1764
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1635
1765
  case $cc_basename in
1637
1767
     *) _lt_dar_can_shared=$GCC ;;
1638
1768
  esac
1639
1769
  if test "$_lt_dar_can_shared" = "yes"; then
1640
 
    output_verbose_link_cmd=echo
 
1770
    output_verbose_link_cmd=func_echo_all
1641
1771
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1642
1772
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1643
1773
    _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}"
1653
1783
  fi
1654
1784
])
1655
1785
 
1656
 
# _LT_SYS_MODULE_PATH_AIX
1657
 
# -----------------------
 
1786
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1787
# ----------------------------------
1658
1788
# Links a minimal program and checks the executable
1659
1789
# for the system default hardcoded library path. In most cases,
1660
1790
# this is /usr/lib:/lib, but when the MPI compilers are used
1661
1791
# the location of the communication and MPI libs are included too.
1662
1792
# If we don't find anything, use the default library path according
1663
1793
# to the aix ld manual.
 
1794
# Store the results from the different compilers for each TAGNAME.
 
1795
# Allow to override them for all tags through lt_cv_aix_libpath.
1664
1796
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665
1797
[m4_require([_LT_DECL_SED])dnl
1666
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667
 
lt_aix_libpath_sed='
1668
 
    /Import File Strings/,/^$/ {
1669
 
        /^0/ {
1670
 
            s/^0  *\(.*\)$/\1/
1671
 
            p
1672
 
        }
1673
 
    }'
1674
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675
 
# Check for a 64-bit object if we didn't find anything.
1676
 
if test -z "$aix_libpath"; then
1677
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1678
 
fi],[])
1679
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1798
if test "${lt_cv_aix_libpath+set}" = set; then
 
1799
  aix_libpath=$lt_cv_aix_libpath
 
1800
else
 
1801
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1802
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1803
  lt_aix_libpath_sed='[
 
1804
      /Import File Strings/,/^$/ {
 
1805
          /^0/ {
 
1806
              s/^0  *\([^ ]*\) *$/\1/
 
1807
              p
 
1808
          }
 
1809
      }]'
 
1810
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1811
  # Check for a 64-bit object if we didn't find anything.
 
1812
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1813
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1814
  fi],[])
 
1815
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1816
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1817
  fi
 
1818
  ])
 
1819
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1820
fi
1680
1821
])# _LT_SYS_MODULE_PATH_AIX
1681
1822
 
1682
1823
 
1683
1824
# _LT_SHELL_INIT(ARG)
1684
1825
# -------------------
1685
1826
m4_define([_LT_SHELL_INIT],
1686
 
[ifdef([AC_DIVERSION_NOTICE],
1687
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688
 
         [AC_DIVERT_PUSH(NOTICE)])
1689
 
$1
1690
 
AC_DIVERT_POP
1691
 
])# _LT_SHELL_INIT
 
1827
[m4_divert_text([M4SH-INIT], [$1
 
1828
])])# _LT_SHELL_INIT
 
1829
 
1692
1830
 
1693
1831
 
1694
1832
# _LT_PROG_ECHO_BACKSLASH
1695
1833
# -----------------------
1696
 
# Add some code to the start of the generated configure script which
1697
 
# will find an echo command which doesn't interpret backslashes.
 
1834
# Find how we can fake an echo command that does not interpret backslash.
 
1835
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1836
# of the generated configure script which will find a shell with a builtin
 
1837
# printf (which we can use as an echo command).
1698
1838
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1699
 
[_LT_SHELL_INIT([
1700
 
# Check that we are running under the correct shell.
1701
 
SHELL=${CONFIG_SHELL-/bin/sh}
1702
 
 
1703
 
case X$lt_ECHO in
1704
 
X*--fallback-echo)
1705
 
  # Remove one level of quotation (which was required for Make).
1706
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1707
 
  ;;
 
1839
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1840
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1841
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1842
 
 
1843
AC_MSG_CHECKING([how to print strings])
 
1844
# Test print first, because it will be a builtin if present.
 
1845
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1846
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1847
  ECHO='print -r --'
 
1848
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1849
  ECHO='printf %s\n'
 
1850
else
 
1851
  # Use this function as a fallback that always works.
 
1852
  func_fallback_echo ()
 
1853
  {
 
1854
    eval 'cat <<_LTECHO_EOF
 
1855
$[]1
 
1856
_LTECHO_EOF'
 
1857
  }
 
1858
  ECHO='func_fallback_echo'
 
1859
fi
 
1860
 
 
1861
# func_echo_all arg...
 
1862
# Invoke $ECHO with all args, space-separated.
 
1863
func_echo_all ()
 
1864
{
 
1865
    $ECHO "$*" 
 
1866
}
 
1867
 
 
1868
case "$ECHO" in
 
1869
  printf*) AC_MSG_RESULT([printf]) ;;
 
1870
  print*) AC_MSG_RESULT([print -r]) ;;
 
1871
  *) AC_MSG_RESULT([cat]) ;;
1708
1872
esac
1709
1873
 
1710
 
ECHO=${lt_ECHO-echo}
1711
 
if test "X[$]1" = X--no-reexec; then
1712
 
  # Discard the --no-reexec flag, and continue.
1713
 
  shift
1714
 
elif test "X[$]1" = X--fallback-echo; then
1715
 
  # Avoid inline document here, it may be left over
1716
 
  :
1717
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718
 
  # Yippee, $ECHO works!
1719
 
  :
1720
 
else
1721
 
  # Restart under the correct shell.
1722
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1723
 
fi
1724
 
 
1725
 
if test "X[$]1" = X--fallback-echo; then
1726
 
  # used as fallback echo
1727
 
  shift
1728
 
  cat <<_LT_EOF
1729
 
[$]*
1730
 
_LT_EOF
1731
 
  exit 0
1732
 
fi
1733
 
 
1734
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1735
 
# if CDPATH is set.
1736
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1737
 
 
1738
 
if test -z "$lt_ECHO"; then
1739
 
  if test "X${echo_test_string+set}" != Xset; then
1740
 
    # find a string as large as possible, as long as the shell can cope with it
1741
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1745
 
      then
1746
 
        break
1747
 
      fi
1748
 
    done
1749
 
  fi
1750
 
 
1751
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1754
 
    :
1755
 
  else
1756
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1757
 
    # backslashes.  This makes it impossible to quote backslashes using
1758
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1759
 
    #
1760
 
    # So, first we look for a working echo in the user's PATH.
1761
 
 
1762
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763
 
    for dir in $PATH /usr/ucb; do
1764
 
      IFS="$lt_save_ifs"
1765
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1769
 
        ECHO="$dir/echo"
1770
 
        break
1771
 
      fi
1772
 
    done
1773
 
    IFS="$lt_save_ifs"
1774
 
 
1775
 
    if test "X$ECHO" = Xecho; then
1776
 
      # We didn't find a better echo, so look for alternatives.
1777
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1780
 
        # This shell has a builtin print -r that does the trick.
1781
 
        ECHO='print -r'
1782
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1784
 
        # If we have ksh, try running configure again with it.
1785
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786
 
        export ORIGINAL_CONFIG_SHELL
1787
 
        CONFIG_SHELL=/bin/ksh
1788
 
        export CONFIG_SHELL
1789
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1790
 
      else
1791
 
        # Try using printf.
1792
 
        ECHO='printf %s\n'
1793
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1796
 
          # Cool, printf works
1797
 
          :
1798
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799
 
             test "X$echo_testing_string" = 'X\t' &&
1800
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1802
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1803
 
          export CONFIG_SHELL
1804
 
          SHELL="$CONFIG_SHELL"
1805
 
          export SHELL
1806
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808
 
             test "X$echo_testing_string" = 'X\t' &&
1809
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1811
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1812
 
        else
1813
 
          # maybe with a smaller string...
1814
 
          prev=:
1815
 
 
1816
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1818
 
            then
1819
 
              break
1820
 
            fi
1821
 
            prev="$cmd"
1822
 
          done
1823
 
 
1824
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1825
 
            echo_test_string=`eval $prev`
1826
 
            export echo_test_string
1827
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1828
 
          else
1829
 
            # Oops.  We lost completely, so just stick with echo.
1830
 
            ECHO=echo
1831
 
          fi
1832
 
        fi
1833
 
      fi
1834
 
    fi
1835
 
  fi
1836
 
fi
1837
 
 
1838
 
# Copy echo and quote the copy suitably for passing to libtool from
1839
 
# the Makefile, instead of quoting the original, which is used later.
1840
 
lt_ECHO=$ECHO
1841
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1843
 
fi
1844
 
 
1845
 
AC_SUBST(lt_ECHO)
1846
 
])
 
1874
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1875
[_AS_DETECT_SUGGESTED([
 
1876
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1877
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1878
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1879
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1880
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1881
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1882
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1883
 
1847
1884
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848
 
_LT_DECL([], [ECHO], [1],
1849
 
    [An echo program that does not interpret backslashes])
 
1885
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1850
1886
])# _LT_PROG_ECHO_BACKSLASH
1851
1887
 
1852
1888
 
 
1889
# _LT_WITH_SYSROOT
 
1890
# ----------------
 
1891
AC_DEFUN([_LT_WITH_SYSROOT],
 
1892
[AC_MSG_CHECKING([for sysroot])
 
1893
AC_ARG_WITH([sysroot],
 
1894
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1895
                        (or the compiler's sysroot if not specified).],
 
1896
[], [with_sysroot=no])
 
1897
 
 
1898
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1899
dnl in case the user passed a directory name.
 
1900
lt_sysroot=
 
1901
case ${with_sysroot} in #(
 
1902
 yes)
 
1903
   if test "$GCC" = yes; then
 
1904
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1905
   fi
 
1906
   ;; #(
 
1907
 /*)
 
1908
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1909
   ;; #(
 
1910
 no|'')
 
1911
   ;; #(
 
1912
 *)
 
1913
   AC_MSG_RESULT([${with_sysroot}])
 
1914
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1915
   ;;
 
1916
esac
 
1917
 
 
1918
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1919
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1920
[dependent libraries, and in which our libraries should be installed.])])
 
1921
 
1853
1922
# _LT_ENABLE_LOCK
1854
1923
# ---------------
1855
1924
m4_defun([_LT_ENABLE_LOCK],
1878
1947
  ;;
1879
1948
*-*-irix6*)
1880
1949
  # Find out which ABI we are using.
1881
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1950
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1882
1951
  if AC_TRY_EVAL(ac_compile); then
1883
1952
    if test "$lt_cv_prog_gnu_ld" = yes; then
1884
1953
      case `/usr/bin/file conftest.$ac_objext` in
1921
1990
            LD="${LD-ld} -m elf_i386_fbsd"
1922
1991
            ;;
1923
1992
          x86_64-*linux*)
1924
 
            LD="${LD-ld} -m elf_i386"
 
1993
            case `/usr/bin/file conftest.o` in
 
1994
              *x86-64*)
 
1995
                LD="${LD-ld} -m elf32_x86_64"
 
1996
                ;;
 
1997
              *)
 
1998
                LD="${LD-ld} -m elf_i386"
 
1999
                ;;
 
2000
            esac
1925
2001
            ;;
1926
2002
          ppc64-*linux*|powerpc64-*linux*)
1927
2003
            LD="${LD-ld} -m elf32ppclinux"
1971
2047
    CFLAGS="$SAVE_CFLAGS"
1972
2048
  fi
1973
2049
  ;;
1974
 
sparc*-*solaris*)
 
2050
*-*solaris*)
1975
2051
  # Find out which ABI we are using.
1976
2052
  echo 'int i;' > conftest.$ac_ext
1977
2053
  if AC_TRY_EVAL(ac_compile); then
1978
2054
    case `/usr/bin/file conftest.o` in
1979
2055
    *64-bit*)
1980
2056
      case $lt_cv_prog_gnu_ld in
1981
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2057
      yes*)
 
2058
        case $host in
 
2059
        i?86-*-solaris*)
 
2060
          LD="${LD-ld} -m elf_x86_64"
 
2061
          ;;
 
2062
        sparc*-*-solaris*)
 
2063
          LD="${LD-ld} -m elf64_sparc"
 
2064
          ;;
 
2065
        esac
 
2066
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
2067
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
2068
          LD="${LD-ld}_sol2"
 
2069
        fi
 
2070
        ;;
1982
2071
      *)
1983
2072
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1984
2073
          LD="${LD-ld} -64"
1996
2085
])# _LT_ENABLE_LOCK
1997
2086
 
1998
2087
 
 
2088
# _LT_PROG_AR
 
2089
# -----------
 
2090
m4_defun([_LT_PROG_AR],
 
2091
[AC_CHECK_TOOLS(AR, [ar], false)
 
2092
: ${AR=ar}
 
2093
: ${AR_FLAGS=cru}
 
2094
_LT_DECL([], [AR], [1], [The archiver])
 
2095
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2096
 
 
2097
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2098
  [lt_cv_ar_at_file=no
 
2099
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2100
     [echo conftest.$ac_objext > conftest.lst
 
2101
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2102
      AC_TRY_EVAL([lt_ar_try])
 
2103
      if test "$ac_status" -eq 0; then
 
2104
        # Ensure the archiver fails upon bogus file names.
 
2105
        rm -f conftest.$ac_objext libconftest.a
 
2106
        AC_TRY_EVAL([lt_ar_try])
 
2107
        if test "$ac_status" -ne 0; then
 
2108
          lt_cv_ar_at_file=@
 
2109
        fi
 
2110
      fi
 
2111
      rm -f conftest.* libconftest.a
 
2112
     ])
 
2113
  ])
 
2114
 
 
2115
if test "x$lt_cv_ar_at_file" = xno; then
 
2116
  archiver_list_spec=
 
2117
else
 
2118
  archiver_list_spec=$lt_cv_ar_at_file
 
2119
fi
 
2120
_LT_DECL([], [archiver_list_spec], [1],
 
2121
  [How to feed a file listing to the archiver])
 
2122
])# _LT_PROG_AR
 
2123
 
 
2124
 
1999
2125
# _LT_CMD_OLD_ARCHIVE
2000
2126
# -------------------
2001
2127
m4_defun([_LT_CMD_OLD_ARCHIVE],
2002
 
[AC_CHECK_TOOL(AR, ar, false)
2003
 
test -z "$AR" && AR=ar
2004
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2005
 
_LT_DECL([], [AR], [1], [The archiver])
2006
 
_LT_DECL([], [AR_FLAGS], [1])
 
2128
[_LT_PROG_AR
2007
2129
 
2008
2130
AC_CHECK_TOOL(STRIP, strip, :)
2009
2131
test -z "$STRIP" && STRIP=:
2022
2144
if test -n "$RANLIB"; then
2023
2145
  case $host_os in
2024
2146
  openbsd*)
2025
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2147
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2026
2148
    ;;
2027
2149
  *)
2028
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2150
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2029
2151
    ;;
2030
2152
  esac
2031
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2153
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2032
2154
fi
 
2155
 
 
2156
case $host_os in
 
2157
  darwin*)
 
2158
    lock_old_archive_extraction=yes ;;
 
2159
  *)
 
2160
    lock_old_archive_extraction=no ;;
 
2161
esac
2033
2162
_LT_DECL([], [old_postinstall_cmds], [2])
2034
2163
_LT_DECL([], [old_postuninstall_cmds], [2])
2035
2164
_LT_TAGDECL([], [old_archive_cmds], [2],
2036
2165
    [Commands used to build an old-style archive])
 
2166
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2167
    [Whether to use a lock for old archive extraction])
2037
2168
])# _LT_CMD_OLD_ARCHIVE
2038
2169
 
2039
2170
 
2058
2189
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2059
2190
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2060
2191
   -e 's:$: $lt_compiler_flag:'`
2061
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2192
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2062
2193
   (eval "$lt_compile" 2>conftest.err)
2063
2194
   ac_status=$?
2064
2195
   cat conftest.err >&AS_MESSAGE_LOG_FD
2065
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2196
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2066
2197
   if (exit $ac_status) && test -s "$ac_outfile"; then
2067
2198
     # The compiler can only warn and ignore the option if not recognized
2068
2199
     # So say no if there are warnings other than the usual output.
2069
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2200
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2070
2201
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2071
2202
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2072
2203
       $2=yes
2106
2237
     if test -s conftest.err; then
2107
2238
       # Append any errors to the config.log.
2108
2239
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2109
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2240
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2110
2241
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2111
2242
       if diff conftest.exp conftest.er2 >/dev/null; then
2112
2243
         $2=yes
2169
2300
    lt_cv_sys_max_cmd_len=8192;
2170
2301
    ;;
2171
2302
 
 
2303
  mint*)
 
2304
    # On MiNT this can take a long time and run out of memory.
 
2305
    lt_cv_sys_max_cmd_len=8192;
 
2306
    ;;
 
2307
 
2172
2308
  amigaos*)
2173
2309
    # On AmigaOS with pdksh, this test takes hours, literally.
2174
2310
    # So we just punt and use a minimum line length of 8192.
2194
2330
    lt_cv_sys_max_cmd_len=196608
2195
2331
    ;;
2196
2332
 
 
2333
  os2*)
 
2334
    # The test takes a long time on OS/2.
 
2335
    lt_cv_sys_max_cmd_len=8192
 
2336
    ;;
 
2337
 
2197
2338
  osf*)
2198
2339
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2199
2340
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2220
2361
    ;;
2221
2362
  *)
2222
2363
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2223
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
2364
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
2365
        test undefined != "$lt_cv_sys_max_cmd_len"; then
2224
2366
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2225
2367
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2226
2368
    else
2233
2375
      # If test is not a shell built-in, we'll probably end up computing a
2234
2376
      # maximum length that is only half of the actual maximum length, but
2235
2377
      # we can't tell.
2236
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2237
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2378
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
2379
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2238
2380
              test $i != 17 # 1/2 MB should be enough
2239
2381
      do
2240
2382
        i=`expr $i + 1`
2285
2427
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2286
2428
  lt_status=$lt_dlunknown
2287
2429
  cat > conftest.$ac_ext <<_LT_EOF
2288
 
[#line __oline__ "configure"
 
2430
[#line $LINENO "configure"
2289
2431
#include "confdefs.h"
2290
2432
 
2291
2433
#if HAVE_DLFCN_H
2326
2468
#  endif
2327
2469
#endif
2328
2470
 
2329
 
void fnord() { int i=42;}
 
2471
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2472
   correspondingly for the symbols needed.  */
 
2473
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2474
int fnord () __attribute__((visibility("default")));
 
2475
#endif
 
2476
 
 
2477
int fnord () { return 42; }
2330
2478
int main ()
2331
2479
{
2332
2480
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2335
2483
  if (self)
2336
2484
    {
2337
2485
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2338
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
2486
      else
 
2487
        {
 
2488
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2489
          else puts (dlerror ());
 
2490
        }
2339
2491
      /* dlclose (self); */
2340
2492
    }
2341
2493
  else
2511
2663
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2512
2664
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2513
2665
   -e 's:$: $lt_compiler_flag:'`
2514
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2666
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2515
2667
   (eval "$lt_compile" 2>out/conftest.err)
2516
2668
   ac_status=$?
2517
2669
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2518
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2670
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2519
2671
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2520
2672
   then
2521
2673
     # The compiler can only warn and ignore the option if not recognized
2522
2674
     # So say no if there are warnings
2523
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2675
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2524
2676
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2525
2677
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2526
2678
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2679
2831
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2680
2832
m4_require([_LT_DECL_OBJDUMP])dnl
2681
2833
m4_require([_LT_DECL_SED])dnl
 
2834
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2682
2835
AC_MSG_CHECKING([dynamic linker characteristics])
2683
2836
m4_if([$1],
2684
2837
        [], [
2687
2840
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2688
2841
    *) lt_awk_arg="/^libraries:/" ;;
2689
2842
  esac
2690
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2691
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2843
  case $host_os in
 
2844
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2845
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2846
  esac
 
2847
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2848
  case $lt_search_path_spec in
 
2849
  *\;*)
2692
2850
    # if the path contains ";" then we assume it to be the separator
2693
2851
    # otherwise default to the standard path separator (i.e. ":") - it is
2694
2852
    # assumed that no part of a normal pathname contains ";" but that should
2695
2853
    # okay in the real world where ";" in dirpaths is itself problematic.
2696
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2697
 
  else
2698
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2699
 
  fi
 
2854
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2855
    ;;
 
2856
  *)
 
2857
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2858
    ;;
 
2859
  esac
2700
2860
  # Ok, now we have the path, separated by spaces, we can step through it
2701
2861
  # and add multilib dir if necessary.
2702
2862
  lt_tmp_lt_search_path_spec=
2709
2869
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2710
2870
    fi
2711
2871
  done
2712
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2872
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2713
2873
BEGIN {RS=" "; FS="/|\n";} {
2714
2874
  lt_foo="";
2715
2875
  lt_count=0;
2729
2889
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2730
2890
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2731
2891
}'`
2732
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2892
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2893
  # for these hosts.
 
2894
  case $host_os in
 
2895
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2896
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2897
  esac
 
2898
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2733
2899
else
2734
2900
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2735
2901
fi])
2755
2921
 
2756
2922
case $host_os in
2757
2923
aix3*)
2758
 
  version_type=linux
 
2924
  version_type=linux # correct to gnu/linux during the next big refactor
2759
2925
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2760
2926
  shlibpath_var=LIBPATH
2761
2927
 
2764
2930
  ;;
2765
2931
 
2766
2932
aix[[4-9]]*)
2767
 
  version_type=linux
 
2933
  version_type=linux # correct to gnu/linux during the next big refactor
2768
2934
  need_lib_prefix=no
2769
2935
  need_version=no
2770
2936
  hardcode_into_libs=yes
2817
2983
  m68k)
2818
2984
    library_names_spec='$libname.ixlibrary $libname.a'
2819
2985
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2820
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2986
    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'
2821
2987
    ;;
2822
2988
  esac
2823
2989
  ;;
2829
2995
  ;;
2830
2996
 
2831
2997
bsdi[[45]]*)
2832
 
  version_type=linux
 
2998
  version_type=linux # correct to gnu/linux during the next big refactor
2833
2999
  need_version=no
2834
3000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2835
3001
  soname_spec='${libname}${release}${shared_ext}$major'
2848
3014
  need_version=no
2849
3015
  need_lib_prefix=no
2850
3016
 
2851
 
  case $GCC,$host_os in
2852
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3017
  case $GCC,$cc_basename in
 
3018
  yes,*)
 
3019
    # gcc
2853
3020
    library_names_spec='$libname.dll.a'
2854
3021
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2855
3022
    postinstall_cmds='base_file=`basename \${file}`~
2870
3037
    cygwin*)
2871
3038
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872
3039
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
3040
m4_if([$1], [],[
 
3041
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2874
3042
      ;;
2875
3043
    mingw* | cegcc*)
2876
3044
      # MinGW DLLs use traditional 'lib' prefix
2877
3045
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880
 
        # It is most probably a Windows format PATH printed by
2881
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2882
 
        # path with ; separators, and with drive letters. We can handle the
2883
 
        # drive letters (cygwin fileutils understands them), so leave them,
2884
 
        # especially as we might pass files found there to a mingw objdump,
2885
 
        # which wouldn't understand a cygwinified path. Ahh.
2886
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2887
 
      else
2888
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2889
 
      fi
2890
3046
      ;;
2891
3047
    pw32*)
2892
3048
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2893
3049
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2894
3050
      ;;
2895
3051
    esac
 
3052
    dynamic_linker='Win32 ld.exe'
 
3053
    ;;
 
3054
 
 
3055
  *,cl*)
 
3056
    # Native MSVC
 
3057
    libname_spec='$name'
 
3058
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3059
    library_names_spec='${libname}.dll.lib'
 
3060
 
 
3061
    case $build_os in
 
3062
    mingw*)
 
3063
      sys_lib_search_path_spec=
 
3064
      lt_save_ifs=$IFS
 
3065
      IFS=';'
 
3066
      for lt_path in $LIB
 
3067
      do
 
3068
        IFS=$lt_save_ifs
 
3069
        # Let DOS variable expansion print the short 8.3 style file name.
 
3070
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3071
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3072
      done
 
3073
      IFS=$lt_save_ifs
 
3074
      # Convert to MSYS style.
 
3075
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3076
      ;;
 
3077
    cygwin*)
 
3078
      # Convert to unix form, then to dos form, then back to unix form
 
3079
      # but this time dos style (no spaces!) so that the unix form looks
 
3080
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3081
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3082
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3083
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3084
      ;;
 
3085
    *)
 
3086
      sys_lib_search_path_spec="$LIB"
 
3087
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3088
        # It is most probably a Windows format PATH.
 
3089
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3090
      else
 
3091
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3092
      fi
 
3093
      # FIXME: find the short name or the path components, as spaces are
 
3094
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3095
      ;;
 
3096
    esac
 
3097
 
 
3098
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3099
    postinstall_cmds='base_file=`basename \${file}`~
 
3100
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3101
      dldir=$destdir/`dirname \$dlpath`~
 
3102
      test -d \$dldir || mkdir -p \$dldir~
 
3103
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3104
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3105
      dlpath=$dir/\$dldll~
 
3106
       $RM \$dlpath'
 
3107
    shlibpath_overrides_runpath=yes
 
3108
    dynamic_linker='Win32 link.exe'
2896
3109
    ;;
2897
3110
 
2898
3111
  *)
 
3112
    # Assume MSVC wrapper
2899
3113
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3114
    dynamic_linker='Win32 ld.exe'
2900
3115
    ;;
2901
3116
  esac
2902
 
  dynamic_linker='Win32 ld.exe'
2903
3117
  # FIXME: first we should search . and the directory the executable is in
2904
3118
  shlibpath_var=PATH
2905
3119
  ;;
2920
3134
  ;;
2921
3135
 
2922
3136
dgux*)
2923
 
  version_type=linux
 
3137
  version_type=linux # correct to gnu/linux during the next big refactor
2924
3138
  need_lib_prefix=no
2925
3139
  need_version=no
2926
3140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2928
3142
  shlibpath_var=LD_LIBRARY_PATH
2929
3143
  ;;
2930
3144
 
2931
 
freebsd1*)
2932
 
  dynamic_linker=no
2933
 
  ;;
2934
 
 
2935
3145
freebsd* | dragonfly*)
2936
3146
  # DragonFly does not have aout.  When/if they implement a new
2937
3147
  # versioning mechanism, adjust this.
2939
3149
    objformat=`/usr/bin/objformat`
2940
3150
  else
2941
3151
    case $host_os in
2942
 
    freebsd[[123]]*) objformat=aout ;;
 
3152
    freebsd[[23]].*) objformat=aout ;;
2943
3153
    *) objformat=elf ;;
2944
3154
    esac
2945
3155
  fi
2957
3167
  esac
2958
3168
  shlibpath_var=LD_LIBRARY_PATH
2959
3169
  case $host_os in
2960
 
  freebsd2*)
 
3170
  freebsd2.*)
2961
3171
    shlibpath_overrides_runpath=yes
2962
3172
    ;;
2963
3173
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2976
3186
  esac
2977
3187
  ;;
2978
3188
 
2979
 
gnu*)
2980
 
  version_type=linux
 
3189
haiku*)
 
3190
  version_type=linux # correct to gnu/linux during the next big refactor
2981
3191
  need_lib_prefix=no
2982
3192
  need_version=no
 
3193
  dynamic_linker="$host_os runtime_loader"
2983
3194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2984
3195
  soname_spec='${libname}${release}${shared_ext}$major'
2985
 
  shlibpath_var=LD_LIBRARY_PATH
 
3196
  shlibpath_var=LIBRARY_PATH
 
3197
  shlibpath_overrides_runpath=yes
 
3198
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2986
3199
  hardcode_into_libs=yes
2987
3200
  ;;
2988
3201
 
3028
3241
    soname_spec='${libname}${release}${shared_ext}$major'
3029
3242
    ;;
3030
3243
  esac
3031
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
3244
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3032
3245
  postinstall_cmds='chmod 555 $lib'
 
3246
  # or fails outright, so override atomically:
 
3247
  install_override_mode=555
3033
3248
  ;;
3034
3249
 
3035
3250
interix[[3-9]]*)
3036
 
  version_type=linux
 
3251
  version_type=linux # correct to gnu/linux during the next big refactor
3037
3252
  need_lib_prefix=no
3038
3253
  need_version=no
3039
3254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3049
3264
    nonstopux*) version_type=nonstopux ;;
3050
3265
    *)
3051
3266
        if test "$lt_cv_prog_gnu_ld" = yes; then
3052
 
                version_type=linux
 
3267
                version_type=linux # correct to gnu/linux during the next big refactor
3053
3268
        else
3054
3269
                version_type=irix
3055
3270
        fi ;;
3086
3301
  dynamic_linker=no
3087
3302
  ;;
3088
3303
 
3089
 
# This must be Linux ELF.
3090
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3091
 
  version_type=linux
 
3304
# This must be glibc/ELF.
 
3305
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
3306
  version_type=linux # correct to gnu/linux during the next big refactor
3092
3307
  need_lib_prefix=no
3093
3308
  need_version=no
3094
3309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3096
3311
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3097
3312
  shlibpath_var=LD_LIBRARY_PATH
3098
3313
  shlibpath_overrides_runpath=no
 
3314
 
3099
3315
  # Some binutils ld are patched to set DT_RUNPATH
3100
 
  save_LDFLAGS=$LDFLAGS
3101
 
  save_libdir=$libdir
3102
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3103
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3104
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3105
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3106
 
       [shlibpath_overrides_runpath=yes])])
3107
 
  LDFLAGS=$save_LDFLAGS
3108
 
  libdir=$save_libdir
 
3316
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3317
    [lt_cv_shlibpath_overrides_runpath=no
 
3318
    save_LDFLAGS=$LDFLAGS
 
3319
    save_libdir=$libdir
 
3320
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3321
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3322
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3323
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3324
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3325
    LDFLAGS=$save_LDFLAGS
 
3326
    libdir=$save_libdir
 
3327
    ])
 
3328
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3109
3329
 
3110
3330
  # This implies no fast_install, which is unacceptable.
3111
3331
  # Some rework will be needed to allow for fast_install
3114
3334
 
3115
3335
  # Append ld.so.conf contents to the search path
3116
3336
  if test -f /etc/ld.so.conf; then
3117
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
3337
    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' ' '`
3118
3338
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3119
3339
  fi
3120
3340
 
3158
3378
  ;;
3159
3379
 
3160
3380
newsos6)
3161
 
  version_type=linux
 
3381
  version_type=linux # correct to gnu/linux during the next big refactor
3162
3382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3163
3383
  shlibpath_var=LD_LIBRARY_PATH
3164
3384
  shlibpath_overrides_runpath=yes
3227
3447
  ;;
3228
3448
 
3229
3449
solaris*)
3230
 
  version_type=linux
 
3450
  version_type=linux # correct to gnu/linux during the next big refactor
3231
3451
  need_lib_prefix=no
3232
3452
  need_version=no
3233
3453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3252
3472
  ;;
3253
3473
 
3254
3474
sysv4 | sysv4.3*)
3255
 
  version_type=linux
 
3475
  version_type=linux # correct to gnu/linux during the next big refactor
3256
3476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3257
3477
  soname_spec='${libname}${release}${shared_ext}$major'
3258
3478
  shlibpath_var=LD_LIBRARY_PATH
3276
3496
 
3277
3497
sysv4*MP*)
3278
3498
  if test -d /usr/nec ;then
3279
 
    version_type=linux
 
3499
    version_type=linux # correct to gnu/linux during the next big refactor
3280
3500
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3281
3501
    soname_spec='$libname${shared_ext}.$major'
3282
3502
    shlibpath_var=LD_LIBRARY_PATH
3307
3527
 
3308
3528
tpf*)
3309
3529
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3310
 
  version_type=linux
 
3530
  version_type=linux # correct to gnu/linux during the next big refactor
3311
3531
  need_lib_prefix=no
3312
3532
  need_version=no
3313
3533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3317
3537
  ;;
3318
3538
 
3319
3539
uts4*)
3320
 
  version_type=linux
 
3540
  version_type=linux # correct to gnu/linux during the next big refactor
3321
3541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3322
3542
  soname_spec='${libname}${release}${shared_ext}$major'
3323
3543
  shlibpath_var=LD_LIBRARY_PATH
3359
3579
    The last name is the one that the linker finds with -lNAME]])
3360
3580
_LT_DECL([], [soname_spec], [1],
3361
3581
    [[The coded name of the library, if different from the real name]])
 
3582
_LT_DECL([], [install_override_mode], [1],
 
3583
    [Permission mode override for installation of shared libraries])
3362
3584
_LT_DECL([], [postinstall_cmds], [2],
3363
3585
    [Command to use after installation of a shared archive])
3364
3586
_LT_DECL([], [postuninstall_cmds], [2],
3471
3693
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3472
3694
m4_require([_LT_DECL_SED])dnl
3473
3695
m4_require([_LT_DECL_EGREP])dnl
 
3696
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3474
3697
 
3475
3698
AC_ARG_WITH([gnu-ld],
3476
3699
    [AS_HELP_STRING([--with-gnu-ld],
3592
3815
esac
3593
3816
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3594
3817
case $host_os in
 
3818
  cygwin* | mingw* | pw32* | cegcc*)
 
3819
    if test "$GCC" != yes; then
 
3820
      reload_cmds=false
 
3821
    fi
 
3822
    ;;
3595
3823
  darwin*)
3596
3824
    if test "$GCC" = yes; then
3597
3825
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3600
3828
    fi
3601
3829
    ;;
3602
3830
esac
3603
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3604
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3831
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3832
_LT_TAGDECL([], [reload_cmds], [2])dnl
3605
3833
])# _LT_CMD_RELOAD
3606
3834
 
3607
3835
 
3653
3881
  # Base MSYS/MinGW do not provide the 'file' command needed by
3654
3882
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3655
3883
  # unless we find 'file', for example because we are cross-compiling.
3656
 
  if ( file / ) >/dev/null 2>&1; then
 
3884
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3885
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3657
3886
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3658
3887
    lt_cv_file_magic_cmd='func_win32_libid'
3659
3888
  else
3660
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3889
    # Keep this pattern in sync with the one in func_win32_libid.
 
3890
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3661
3891
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3662
3892
  fi
3663
3893
  ;;
3664
3894
 
3665
 
cegcc)
 
3895
cegcc*)
3666
3896
  # use the weaker test based on 'objdump'. See mingw*.
3667
3897
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3668
3898
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3688
3918
  fi
3689
3919
  ;;
3690
3920
 
3691
 
gnu*)
 
3921
haiku*)
3692
3922
  lt_cv_deplibs_check_method=pass_all
3693
3923
  ;;
3694
3924
 
3700
3930
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3701
3931
    ;;
3702
3932
  hppa*64*)
3703
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3933
    [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]']
3704
3934
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3705
3935
    ;;
3706
3936
  *)
3707
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3937
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3708
3938
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3709
3939
    ;;
3710
3940
  esac
3725
3955
  lt_cv_deplibs_check_method=pass_all
3726
3956
  ;;
3727
3957
 
3728
 
# This must be Linux ELF.
3729
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3958
# This must be glibc/ELF.
 
3959
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3730
3960
  lt_cv_deplibs_check_method=pass_all
3731
3961
  ;;
3732
3962
 
3804
4034
  ;;
3805
4035
esac
3806
4036
])
 
4037
 
 
4038
file_magic_glob=
 
4039
want_nocaseglob=no
 
4040
if test "$build" = "$host"; then
 
4041
  case $host_os in
 
4042
  mingw* | pw32*)
 
4043
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4044
      want_nocaseglob=yes
 
4045
    else
 
4046
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4047
    fi
 
4048
    ;;
 
4049
  esac
 
4050
fi
 
4051
 
3807
4052
file_magic_cmd=$lt_cv_file_magic_cmd
3808
4053
deplibs_check_method=$lt_cv_deplibs_check_method
3809
4054
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3811
4056
_LT_DECL([], [deplibs_check_method], [1],
3812
4057
    [Method to check whether dependent libraries are shared objects])
3813
4058
_LT_DECL([], [file_magic_cmd], [1],
3814
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4059
    [Command to use when deplibs_check_method = "file_magic"])
 
4060
_LT_DECL([], [file_magic_glob], [1],
 
4061
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4062
_LT_DECL([], [want_nocaseglob], [1],
 
4063
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3815
4064
])# _LT_CHECK_MAGIC_METHOD
3816
4065
 
3817
4066
 
3868
4117
  NM="$lt_cv_path_NM"
3869
4118
else
3870
4119
  # Didn't find any BSD compatible name lister, look for dumpbin.
3871
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4120
  if test -n "$DUMPBIN"; then :
 
4121
    # Let the user override the test.
 
4122
  else
 
4123
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4124
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4125
    *COFF*)
 
4126
      DUMPBIN="$DUMPBIN -symbols"
 
4127
      ;;
 
4128
    *)
 
4129
      DUMPBIN=:
 
4130
      ;;
 
4131
    esac
 
4132
  fi
3872
4133
  AC_SUBST([DUMPBIN])
3873
4134
  if test "$DUMPBIN" != ":"; then
3874
4135
    NM="$DUMPBIN"
3881
4142
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3882
4143
  [lt_cv_nm_interface="BSD nm"
3883
4144
  echo "int some_variable = 0;" > conftest.$ac_ext
3884
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4145
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3885
4146
  (eval "$ac_compile" 2>conftest.err)
3886
4147
  cat conftest.err >&AS_MESSAGE_LOG_FD
3887
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4148
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3888
4149
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3889
4150
  cat conftest.err >&AS_MESSAGE_LOG_FD
3890
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4151
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3891
4152
  cat conftest.out >&AS_MESSAGE_LOG_FD
3892
4153
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3893
4154
    lt_cv_nm_interface="MS dumpbin"
3902
4163
dnl AC_DEFUN([AM_PROG_NM], [])
3903
4164
dnl AC_DEFUN([AC_PROG_NM], [])
3904
4165
 
 
4166
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4167
# --------------------------------
 
4168
# how to determine the name of the shared library
 
4169
# associated with a specific link library.
 
4170
#  -- PORTME fill in with the dynamic library characteristics
 
4171
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4172
[m4_require([_LT_DECL_EGREP])
 
4173
m4_require([_LT_DECL_OBJDUMP])
 
4174
m4_require([_LT_DECL_DLLTOOL])
 
4175
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4176
lt_cv_sharedlib_from_linklib_cmd,
 
4177
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4178
 
 
4179
case $host_os in
 
4180
cygwin* | mingw* | pw32* | cegcc*)
 
4181
  # two different shell functions defined in ltmain.sh
 
4182
  # decide which to use based on capabilities of $DLLTOOL
 
4183
  case `$DLLTOOL --help 2>&1` in
 
4184
  *--identify-strict*)
 
4185
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4186
    ;;
 
4187
  *)
 
4188
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4189
    ;;
 
4190
  esac
 
4191
  ;;
 
4192
*)
 
4193
  # fallback: assume linklib IS sharedlib
 
4194
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4195
  ;;
 
4196
esac
 
4197
])
 
4198
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4199
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4200
 
 
4201
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4202
    [Command to associate shared and link libraries])
 
4203
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4204
 
 
4205
 
 
4206
# _LT_PATH_MANIFEST_TOOL
 
4207
# ----------------------
 
4208
# locate the manifest tool
 
4209
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4210
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4211
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4212
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4213
  [lt_cv_path_mainfest_tool=no
 
4214
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4215
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4216
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4217
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4218
    lt_cv_path_mainfest_tool=yes
 
4219
  fi
 
4220
  rm -f conftest*])
 
4221
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4222
  MANIFEST_TOOL=:
 
4223
fi
 
4224
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4225
])# _LT_PATH_MANIFEST_TOOL
 
4226
 
3905
4227
 
3906
4228
# LT_LIB_M
3907
4229
# --------
3910
4232
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3911
4233
LIBM=
3912
4234
case $host in
3913
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
4235
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3914
4236
  # These system don't have libm, or don't need it
3915
4237
  ;;
3916
4238
*-ncr-sysv4.3*)
3938
4260
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3939
4261
 
3940
4262
if test "$GCC" = yes; then
3941
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4263
  case $cc_basename in
 
4264
  nvcc*)
 
4265
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
4266
  *)
 
4267
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
4268
  esac
3942
4269
 
3943
4270
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3944
4271
    lt_cv_prog_compiler_rtti_exceptions,
3955
4282
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3956
4283
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3957
4284
AC_REQUIRE([AC_PROG_CC])dnl
 
4285
AC_REQUIRE([AC_PROG_AWK])dnl
3958
4286
AC_REQUIRE([LT_PATH_NM])dnl
3959
4287
AC_REQUIRE([LT_PATH_LD])dnl
3960
4288
m4_require([_LT_DECL_SED])dnl
4022
4350
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4023
4351
 
4024
4352
# Transform an extracted symbol line into symbol name and symbol address
4025
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4026
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
4353
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4354
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4027
4355
 
4028
4356
# Handle CRLF in mingw tool chain
4029
4357
opt_cr=
4047
4375
    # which start with @ or ?.
4048
4376
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4049
4377
"     {last_section=section; section=\$ 3};"\
 
4378
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4050
4379
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4051
4380
"     \$ 0!~/External *\|/{next};"\
4052
4381
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4059
4388
  else
4060
4389
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4061
4390
  fi
 
4391
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4062
4392
 
4063
4393
  # Check to see that the pipe works correctly.
4064
4394
  pipe_works=no
4080
4410
  if AC_TRY_EVAL(ac_compile); then
4081
4411
    # Now try to grab the symbols.
4082
4412
    nlist=conftest.nm
4083
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
4413
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4084
4414
      # Try sorting and uniquifying the output.
4085
4415
      if sort "$nlist" | uniq > "$nlist"T; then
4086
4416
        mv -f "$nlist"T "$nlist"
4092
4422
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4093
4423
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4094
4424
          cat <<_LT_EOF > conftest.$ac_ext
 
4425
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4426
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4427
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4428
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4429
# define LT@&t@_DLSYM_CONST
 
4430
#elif defined(__osf__)
 
4431
/* This system does not cope well with relocations in const data.  */
 
4432
# define LT@&t@_DLSYM_CONST
 
4433
#else
 
4434
# define LT@&t@_DLSYM_CONST const
 
4435
#endif
 
4436
 
4095
4437
#ifdef __cplusplus
4096
4438
extern "C" {
4097
4439
#endif
4103
4445
          cat <<_LT_EOF >> conftest.$ac_ext
4104
4446
 
4105
4447
/* The mapping between symbol names and symbols.  */
4106
 
const struct {
 
4448
LT@&t@_DLSYM_CONST struct {
4107
4449
  const char *name;
4108
4450
  void       *address;
4109
4451
}
4129
4471
_LT_EOF
4130
4472
          # Now try linking the two files.
4131
4473
          mv conftest.$ac_objext conftstm.$ac_objext
4132
 
          lt_save_LIBS="$LIBS"
4133
 
          lt_save_CFLAGS="$CFLAGS"
 
4474
          lt_globsym_save_LIBS=$LIBS
 
4475
          lt_globsym_save_CFLAGS=$CFLAGS
4134
4476
          LIBS="conftstm.$ac_objext"
4135
4477
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4136
4478
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4137
4479
            pipe_works=yes
4138
4480
          fi
4139
 
          LIBS="$lt_save_LIBS"
4140
 
          CFLAGS="$lt_save_CFLAGS"
 
4481
          LIBS=$lt_globsym_save_LIBS
 
4482
          CFLAGS=$lt_globsym_save_CFLAGS
4141
4483
        else
4142
4484
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4143
4485
        fi
4170
4512
  AC_MSG_RESULT(ok)
4171
4513
fi
4172
4514
 
 
4515
# Response file support.
 
4516
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4517
  nm_file_list_spec='@'
 
4518
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4519
  nm_file_list_spec='@'
 
4520
fi
 
4521
 
4173
4522
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4174
4523
    [Take the output of nm and produce a listing of raw symbols and C names])
4175
4524
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4180
4529
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4181
4530
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4182
4531
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4532
_LT_DECL([], [nm_file_list_spec], [1],
 
4533
    [Specify filename containing input files for $NM])
4183
4534
]) # _LT_CMD_GLOBAL_SYMBOLS
4184
4535
 
4185
4536
 
4191
4542
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4192
4543
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4193
4544
 
4194
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4195
4545
m4_if([$1], [CXX], [
4196
4546
  # C++ specific cases for pic, static, wl, etc.
4197
4547
  if test "$GXX" = yes; then
4242
4592
      # DJGPP does not support shared libraries at all
4243
4593
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4244
4594
      ;;
 
4595
    haiku*)
 
4596
      # PIC is the default for Haiku.
 
4597
      # The "-static" flag exists, but is broken.
 
4598
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4599
      ;;
4245
4600
    interix[[3-9]]*)
4246
4601
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4247
4602
      # Instead, we relocate shared libraries at runtime.
4291
4646
          ;;
4292
4647
        esac
4293
4648
        ;;
 
4649
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4650
        # This hack is so that the source file can tell whether it is being
 
4651
        # built for inclusion in a dll (and should export symbols for example).
 
4652
        m4_if([$1], [GCJ], [],
 
4653
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4654
        ;;
4294
4655
      dgux*)
4295
4656
        case $cc_basename in
4296
4657
          ec++*)
4347
4708
            ;;
4348
4709
        esac
4349
4710
        ;;
4350
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4711
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4351
4712
        case $cc_basename in
4352
4713
          KCC*)
4353
4714
            # KAI C++ Compiler
4380
4741
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4381
4742
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4382
4743
            ;;
4383
 
          xlc* | xlC*)
4384
 
            # IBM XL 8.0 on PPC
 
4744
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4745
            # IBM XL 8.0, 9.0 on PPC and BlueGene
4385
4746
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4386
4747
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4387
4748
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4443
4804
        ;;
4444
4805
      solaris*)
4445
4806
        case $cc_basename in
4446
 
          CC*)
 
4807
          CC* | sunCC*)
4447
4808
            # Sun C++ 4.2, 5.x and Centerline C++
4448
4809
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4449
4810
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4547
4908
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4548
4909
      ;;
4549
4910
 
 
4911
    haiku*)
 
4912
      # PIC is the default for Haiku.
 
4913
      # The "-static" flag exists, but is broken.
 
4914
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4915
      ;;
 
4916
 
4550
4917
    hpux*)
4551
4918
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4552
4919
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4589
4956
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4590
4957
      ;;
4591
4958
    esac
 
4959
 
 
4960
    case $cc_basename in
 
4961
    nvcc*) # Cuda Compiler Driver 2.2
 
4962
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4963
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4964
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4965
      fi
 
4966
      ;;
 
4967
    esac
4592
4968
  else
4593
4969
    # PORTME Check for flag to pass linker flags through the system compiler.
4594
4970
    case $host_os in
4631
5007
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4632
5008
      ;;
4633
5009
 
4634
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5010
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4635
5011
      case $cc_basename in
4636
5012
      # old Intel for x86_64 which still supported -KPIC.
4637
5013
      ecc*)
4652
5028
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4653
5029
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4654
5030
        ;;
4655
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5031
      nagfor*)
 
5032
        # NAG Fortran compiler
 
5033
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5034
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5035
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5036
        ;;
 
5037
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4656
5038
        # Portland Group compilers (*not* the Pentium gcc compiler,
4657
5039
        # which looks to be a dead project)
4658
5040
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4664
5046
        # All Alpha code is PIC.
4665
5047
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4666
5048
        ;;
4667
 
      xl*)
4668
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5049
      xl* | bgxl* | bgf* | mpixl*)
 
5050
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4669
5051
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4670
5052
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4671
5053
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4672
5054
        ;;
4673
5055
      *)
4674
5056
        case `$CC -V 2>&1 | sed 5q` in
 
5057
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
5058
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5059
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5060
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5061
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5062
          ;;
 
5063
        *Sun\ F* | *Sun*Fortran*)
 
5064
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5065
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5066
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5067
          ;;
4675
5068
        *Sun\ C*)
4676
5069
          # Sun C 5.9
4677
5070
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4678
5071
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4679
5072
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4680
5073
          ;;
4681
 
        *Sun\ F*)
4682
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4683
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5074
        *Intel*\ [[CF]]*Compiler*)
 
5075
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5076
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5077
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5078
          ;;
 
5079
        *Portland\ Group*)
 
5080
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5081
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4684
5082
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4685
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4686
5083
          ;;
4687
5084
        esac
4688
5085
        ;;
4714
5111
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4715
5112
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4716
5113
      case $cc_basename in
4717
 
      f77* | f90* | f95*)
 
5114
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4718
5115
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4719
5116
      *)
4720
5117
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4771
5168
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4772
5169
    ;;
4773
5170
esac
4774
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4775
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4776
 
        [How to pass a linker flag through the compiler])
 
5171
 
 
5172
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5173
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5174
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5175
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4777
5176
 
4778
5177
#
4779
5178
# Check to make sure the PIC flag actually works.
4792
5191
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4793
5192
        [Additional compiler flags for building library objects])
4794
5193
 
 
5194
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5195
        [How to pass a linker flag through the compiler])
4795
5196
#
4796
5197
# Check to make sure the static flag actually works.
4797
5198
#
4812
5213
m4_defun([_LT_LINKER_SHLIBS],
4813
5214
[AC_REQUIRE([LT_PATH_LD])dnl
4814
5215
AC_REQUIRE([LT_PATH_NM])dnl
 
5216
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4815
5217
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4816
5218
m4_require([_LT_DECL_EGREP])dnl
4817
5219
m4_require([_LT_DECL_SED])dnl
4820
5222
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4821
5223
m4_if([$1], [CXX], [
4822
5224
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5225
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4823
5226
  case $host_os in
4824
5227
  aix[[4-9]]*)
4825
5228
    # If we're using GNU nm, then we don't want the "-C" option.
4826
5229
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5230
    # Also, AIX nm treats weak defined symbols like other global defined
 
5231
    # symbols, whereas GNU nm marks them as "W".
4827
5232
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4828
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5233
      _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'
4829
5234
    else
4830
5235
      _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'
4831
5236
    fi
4832
5237
    ;;
4833
5238
  pw32*)
4834
5239
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4835
 
  ;;
 
5240
    ;;
4836
5241
  cygwin* | mingw* | cegcc*)
4837
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4838
 
  ;;
4839
 
  linux* | k*bsd*-gnu)
 
5242
    case $cc_basename in
 
5243
    cl*)
 
5244
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5245
      ;;
 
5246
    *)
 
5247
      _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'
 
5248
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5249
      ;;
 
5250
    esac
 
5251
    ;;
 
5252
  linux* | k*bsd*-gnu | gnu*)
4840
5253
    _LT_TAGVAR(link_all_deplibs, $1)=no
4841
 
  ;;
 
5254
    ;;
4842
5255
  *)
4843
5256
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4844
 
  ;;
 
5257
    ;;
4845
5258
  esac
4846
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4847
5259
], [
4848
5260
  runpath_var=
4849
5261
  _LT_TAGVAR(allow_undefined_flag, $1)=
4858
5270
  _LT_TAGVAR(hardcode_direct, $1)=no
4859
5271
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4860
5272
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4861
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4862
5273
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4863
5274
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4864
5275
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4903
5314
  openbsd*)
4904
5315
    with_gnu_ld=no
4905
5316
    ;;
4906
 
  linux* | k*bsd*-gnu)
 
5317
  linux* | k*bsd*-gnu | gnu*)
4907
5318
    _LT_TAGVAR(link_all_deplibs, $1)=no
4908
5319
    ;;
4909
5320
  esac
4910
5321
 
4911
5322
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
5323
 
 
5324
  # On some targets, GNU ld is compatible enough with the native linker
 
5325
  # that we're better off using the native interface for both.
 
5326
  lt_use_gnu_ld_interface=no
4912
5327
  if test "$with_gnu_ld" = yes; then
 
5328
    case $host_os in
 
5329
      aix*)
 
5330
        # The AIX port of GNU ld has always aspired to compatibility
 
5331
        # with the native linker.  However, as the warning in the GNU ld
 
5332
        # block says, versions before 2.19.5* couldn't really create working
 
5333
        # shared libraries, regardless of the interface used.
 
5334
        case `$LD -v 2>&1` in
 
5335
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
5336
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
5337
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
5338
          *)
 
5339
            lt_use_gnu_ld_interface=yes
 
5340
            ;;
 
5341
        esac
 
5342
        ;;
 
5343
      *)
 
5344
        lt_use_gnu_ld_interface=yes
 
5345
        ;;
 
5346
    esac
 
5347
  fi
 
5348
 
 
5349
  if test "$lt_use_gnu_ld_interface" = yes; then
4913
5350
    # If archive_cmds runs LD, not CC, wlarc should be empty
4914
5351
    wlarc='${wl}'
4915
5352
 
4943
5380
        _LT_TAGVAR(ld_shlibs, $1)=no
4944
5381
        cat <<_LT_EOF 1>&2
4945
5382
 
4946
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5383
*** Warning: the GNU linker, at least up to release 2.19, is reported
4947
5384
*** to be unable to reliably create shared libraries on AIX.
4948
5385
*** Therefore, libtool is disabling shared libraries support.  If you
4949
 
*** really care for shared libraries, you may want to modify your PATH
4950
 
*** so that a non-GNU linker is found, and then restart.
 
5386
*** really care for shared libraries, you may want to install binutils
 
5387
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5388
*** You will then need to restart the configuration process.
4951
5389
 
4952
5390
_LT_EOF
4953
5391
      fi
4983
5421
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4984
5422
      # as there is no search path for DLLs.
4985
5423
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5424
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4986
5425
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4987
5426
      _LT_TAGVAR(always_export_symbols, $1)=no
4988
5427
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4989
 
      _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'
 
5428
      _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'
 
5429
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4990
5430
 
4991
5431
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4992
5432
        _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'
5004
5444
      fi
5005
5445
      ;;
5006
5446
 
 
5447
    haiku*)
 
5448
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5449
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5450
      ;;
 
5451
 
5007
5452
    interix[[3-9]]*)
5008
5453
      _LT_TAGVAR(hardcode_direct, $1)=no
5009
5454
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5029
5474
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5030
5475
         && test "$tmp_diet" = no
5031
5476
      then
5032
 
        tmp_addflag=
 
5477
        tmp_addflag=' $pic_flag'
5033
5478
        tmp_sharedflag='-shared'
5034
5479
        case $cc_basename,$host_cpu in
5035
5480
        pgcc*)                          # Portland Group C compiler
5036
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5481
          _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'
5037
5482
          tmp_addflag=' $pic_flag'
5038
5483
          ;;
5039
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5040
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5484
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5485
                                        # Portland Group f77 and f90 compilers
 
5486
          _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'
5041
5487
          tmp_addflag=' $pic_flag -Mnomain' ;;
5042
5488
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5043
5489
          tmp_addflag=' -i_dynamic' ;;
5048
5494
        lf95*)                          # Lahey Fortran 8.1
5049
5495
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5050
5496
          tmp_sharedflag='--shared' ;;
5051
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5497
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5052
5498
          tmp_sharedflag='-qmkshrobj'
5053
5499
          tmp_addflag= ;;
 
5500
        nvcc*)  # Cuda Compiler Driver 2.2
 
5501
          _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'
 
5502
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5503
          ;;
5054
5504
        esac
5055
5505
        case `$CC -V 2>&1 | sed 5q` in
5056
5506
        *Sun\ C*)                       # Sun C 5.9
5057
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5507
          _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'
5058
5508
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5059
5509
          tmp_sharedflag='-G' ;;
5060
5510
        *Sun\ F*)                       # Sun Fortran 8.3
5070
5520
        fi
5071
5521
 
5072
5522
        case $cc_basename in
5073
 
        xlf*)
 
5523
        xlf* | bgf* | bgxlf* | mpixlf*)
5074
5524
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5075
5525
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5076
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5077
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5078
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5526
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5527
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5079
5528
          if test "x$supports_anon_versioning" = xyes; then
5080
5529
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5081
5530
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5082
5531
              echo "local: *; };" >> $output_objdir/$libname.ver~
5083
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5532
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5084
5533
          fi
5085
5534
          ;;
5086
5535
        esac
5094
5543
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5095
5544
        wlarc=
5096
5545
      else
5097
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098
 
        _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'
 
5546
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5547
        _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'
5099
5548
      fi
5100
5549
      ;;
5101
5550
 
5113
5562
 
5114
5563
_LT_EOF
5115
5564
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5116
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5117
 
        _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'
 
5565
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5566
        _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'
5118
5567
      else
5119
5568
        _LT_TAGVAR(ld_shlibs, $1)=no
5120
5569
      fi
5160
5609
 
5161
5610
    *)
5162
5611
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5163
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5164
 
        _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'
 
5612
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5613
        _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'
5165
5614
      else
5166
5615
        _LT_TAGVAR(ld_shlibs, $1)=no
5167
5616
      fi
5201
5650
      else
5202
5651
        # If we're using GNU nm, then we don't want the "-C" option.
5203
5652
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5653
        # Also, AIX nm treats weak defined symbols like other global
 
5654
        # defined symbols, whereas GNU nm marks them as "W".
5204
5655
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5205
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5656
          _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'
5206
5657
        else
5207
5658
          _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'
5208
5659
        fi
5290
5741
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5291
5742
        # Determine the default libpath from the value encoded in an
5292
5743
        # empty executable.
5293
 
        _LT_SYS_MODULE_PATH_AIX
 
5744
        _LT_SYS_MODULE_PATH_AIX([$1])
5294
5745
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5295
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5746
        _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"
5296
5747
      else
5297
5748
        if test "$host_cpu" = ia64; then
5298
5749
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5301
5752
        else
5302
5753
         # Determine the default libpath from the value encoded in an
5303
5754
         # empty executable.
5304
 
         _LT_SYS_MODULE_PATH_AIX
 
5755
         _LT_SYS_MODULE_PATH_AIX([$1])
5305
5756
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5306
5757
          # Warning - without using the other run time loading flags,
5307
5758
          # -berok will link without error, but may produce a broken library.
5308
5759
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5309
5760
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5310
 
          # Exported symbols can be pulled into shared objects from archives
5311
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5761
          if test "$with_gnu_ld" = yes; then
 
5762
            # We only use this code for GNU lds that support --whole-archive.
 
5763
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5764
          else
 
5765
            # Exported symbols can be pulled into shared objects from archives
 
5766
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5767
          fi
5312
5768
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5313
5769
          # This is similar to how AIX traditionally builds its shared libraries.
5314
5770
          _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'
5340
5796
      # Microsoft Visual C++.
5341
5797
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5342
5798
      # no search path for DLLs.
5343
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5344
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5345
 
      # Tell ltmain to make .lib files, not .a files.
5346
 
      libext=lib
5347
 
      # Tell ltmain to make .dll files, not .so files.
5348
 
      shrext_cmds=".dll"
5349
 
      # FIXME: Setting linknames here is a bad hack.
5350
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5351
 
      # The linker will automatically build a .lib file if we build a DLL.
5352
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353
 
      # FIXME: Should let the user specify the lib program.
5354
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5355
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5799
      case $cc_basename in
 
5800
      cl*)
 
5801
        # Native MSVC
 
5802
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5803
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5804
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5805
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5806
        # Tell ltmain to make .lib files, not .a files.
 
5807
        libext=lib
 
5808
        # Tell ltmain to make .dll files, not .so files.
 
5809
        shrext_cmds=".dll"
 
5810
        # FIXME: Setting linknames here is a bad hack.
 
5811
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5812
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5813
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5814
          else
 
5815
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5816
          fi~
 
5817
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5818
          linknames='
 
5819
        # The linker will not automatically build a static lib if we build a DLL.
 
5820
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5821
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5822
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5823
        _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'
 
5824
        # Don't use ranlib
 
5825
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5826
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5827
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5828
          case $lt_outputfile in
 
5829
            *.exe|*.EXE) ;;
 
5830
            *)
 
5831
              lt_outputfile="$lt_outputfile.exe"
 
5832
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5833
              ;;
 
5834
          esac~
 
5835
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5836
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5837
            $RM "$lt_outputfile.manifest";
 
5838
          fi'
 
5839
        ;;
 
5840
      *)
 
5841
        # Assume MSVC wrapper
 
5842
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5843
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5844
        # Tell ltmain to make .lib files, not .a files.
 
5845
        libext=lib
 
5846
        # Tell ltmain to make .dll files, not .so files.
 
5847
        shrext_cmds=".dll"
 
5848
        # FIXME: Setting linknames here is a bad hack.
 
5849
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5850
        # The linker will automatically build a .lib file if we build a DLL.
 
5851
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5852
        # FIXME: Should let the user specify the lib program.
 
5853
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5854
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5855
        ;;
 
5856
      esac
5357
5857
      ;;
5358
5858
 
5359
5859
    darwin* | rhapsody*)
5366
5866
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5367
5867
      ;;
5368
5868
 
5369
 
    freebsd1*)
5370
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5371
 
      ;;
5372
 
 
5373
5869
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5374
5870
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5375
5871
    # does not break anything, and helps significantly (at the cost of a little
5382
5878
      ;;
5383
5879
 
5384
5880
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5385
 
    freebsd2*)
 
5881
    freebsd2.*)
5386
5882
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5387
5883
      _LT_TAGVAR(hardcode_direct, $1)=yes
5388
5884
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5391
5887
 
5392
5888
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5393
5889
    freebsd* | dragonfly*)
5394
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5890
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5395
5891
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5396
5892
      _LT_TAGVAR(hardcode_direct, $1)=yes
5397
5893
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5399
5895
 
5400
5896
    hpux9*)
5401
5897
      if test "$GCC" = yes; then
5402
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5898
        _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'
5403
5899
      else
5404
5900
        _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'
5405
5901
      fi
5414
5910
      ;;
5415
5911
 
5416
5912
    hpux10*)
5417
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5418
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5913
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5914
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5419
5915
      else
5420
5916
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5421
5917
      fi
5422
5918
      if test "$with_gnu_ld" = no; then
5423
5919
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5424
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5425
5920
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5426
5921
        _LT_TAGVAR(hardcode_direct, $1)=yes
5427
5922
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5433
5928
      ;;
5434
5929
 
5435
5930
    hpux11*)
5436
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5931
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5437
5932
        case $host_cpu in
5438
5933
        hppa*64*)
5439
5934
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5440
5935
          ;;
5441
5936
        ia64*)
5442
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5937
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5443
5938
          ;;
5444
5939
        *)
5445
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5940
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5446
5941
          ;;
5447
5942
        esac
5448
5943
      else
5454
5949
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5455
5950
          ;;
5456
5951
        *)
5457
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5952
        m4_if($1, [], [
 
5953
          # Older versions of the 11.00 compiler do not understand -b yet
 
5954
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5955
          _LT_LINKER_OPTION([if $CC understands -b],
 
5956
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5957
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5958
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5959
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5458
5960
          ;;
5459
5961
        esac
5460
5962
      fi
5482
5984
 
5483
5985
    irix5* | irix6* | nonstopux*)
5484
5986
      if test "$GCC" = yes; then
5485
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5987
        _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'
5486
5988
        # Try to use the -exported_symbol ld option, if it does not
5487
5989
        # work, assume that -exports_file does not work either and
5488
5990
        # implicitly export all symbols.
5489
 
        save_LDFLAGS="$LDFLAGS"
5490
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5491
 
        AC_LINK_IFELSE(int foo(void) {},
5492
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5493
 
        )
5494
 
        LDFLAGS="$save_LDFLAGS"
 
5991
        # This should be the same for all languages, so no per-tag cache variable.
 
5992
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5993
          [lt_cv_irix_exported_symbol],
 
5994
          [save_LDFLAGS="$LDFLAGS"
 
5995
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5996
           AC_LINK_IFELSE(
 
5997
             [AC_LANG_SOURCE(
 
5998
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5999
                              [C++], [[int foo (void) { return 0; }]],
 
6000
                              [Fortran 77], [[
 
6001
      subroutine foo
 
6002
      end]],
 
6003
                              [Fortran], [[
 
6004
      subroutine foo
 
6005
      end]])])],
 
6006
              [lt_cv_irix_exported_symbol=yes],
 
6007
              [lt_cv_irix_exported_symbol=no])
 
6008
           LDFLAGS="$save_LDFLAGS"])
 
6009
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6010
          _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'
 
6011
        fi
5495
6012
      else
5496
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5497
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
6013
        _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'
 
6014
        _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'
5498
6015
      fi
5499
6016
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5500
6017
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5556
6073
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5557
6074
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5558
6075
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5559
 
      _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'
 
6076
      _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'
5560
6077
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5561
6078
      ;;
5562
6079
 
5563
6080
    osf3*)
5564
6081
      if test "$GCC" = yes; then
5565
6082
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5566
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6083
        _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'
5567
6084
      else
5568
6085
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5569
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6086
        _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'
5570
6087
      fi
5571
6088
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5572
6089
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5576
6093
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5577
6094
      if test "$GCC" = yes; then
5578
6095
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5579
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6096
        _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'
5580
6097
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5581
6098
      else
5582
6099
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5583
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6100
        _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'
5584
6101
        _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~
5585
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6102
        $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'
5586
6103
 
5587
6104
        # Both c and cxx compiler support -rpath directly
5588
6105
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5595
6112
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5596
6113
      if test "$GCC" = yes; then
5597
6114
        wlarc='${wl}'
5598
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6115
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5599
6116
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5600
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6117
          $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'
5601
6118
      else
5602
6119
        case `$CC -V 2>&1` in
5603
6120
        *"Compilers 5.0"*)
5773
6290
      # Test whether the compiler implicitly links with -lc since on some
5774
6291
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5775
6292
      # to ld, don't add -lc before -lgcc.
5776
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5777
 
      $RM conftest*
5778
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6293
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
6294
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
6295
        [$RM conftest*
 
6296
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5779
6297
 
5780
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5781
 
        soname=conftest
5782
 
        lib=conftest
5783
 
        libobjs=conftest.$ac_objext
5784
 
        deplibs=
5785
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5786
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5787
 
        compiler_flags=-v
5788
 
        linker_flags=-v
5789
 
        verstring=
5790
 
        output_objdir=.
5791
 
        libname=conftest
5792
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5793
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5794
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5795
 
        then
5796
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5797
 
        else
5798
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5799
 
        fi
5800
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5801
 
      else
5802
 
        cat conftest.err 1>&5
5803
 
      fi
5804
 
      $RM conftest*
5805
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
6298
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6299
          soname=conftest
 
6300
          lib=conftest
 
6301
          libobjs=conftest.$ac_objext
 
6302
          deplibs=
 
6303
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6304
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6305
          compiler_flags=-v
 
6306
          linker_flags=-v
 
6307
          verstring=
 
6308
          output_objdir=.
 
6309
          libname=conftest
 
6310
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6311
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
6312
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6313
          then
 
6314
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6315
          else
 
6316
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6317
          fi
 
6318
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6319
        else
 
6320
          cat conftest.err 1>&5
 
6321
        fi
 
6322
        $RM conftest*
 
6323
        ])
 
6324
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5806
6325
      ;;
5807
6326
    esac
5808
6327
  fi
5839
6358
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5840
6359
    [Flag to hardcode $libdir into a binary during linking.
5841
6360
    This must work even if $libdir does not exist])
5842
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5843
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5844
 
    during linking.  This must work even if $libdir does not exist]])
5845
6361
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5846
6362
    [Whether we need a single "-rpath" flag with a separated argument])
5847
6363
_LT_TAGDECL([], [hardcode_direct], [0],
5867
6383
    to runtime path list])
5868
6384
_LT_TAGDECL([], [link_all_deplibs], [0],
5869
6385
    [Whether libtool must link a program against all its dependency libraries])
5870
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5871
 
    [Fix the shell variable $srcfile for the compiler])
5872
6386
_LT_TAGDECL([], [always_export_symbols], [0],
5873
6387
    [Set to "yes" if exported symbols are required])
5874
6388
_LT_TAGDECL([], [export_symbols_cmds], [2],
5879
6393
    [Symbols that must always be exported])
5880
6394
_LT_TAGDECL([], [prelink_cmds], [2],
5881
6395
    [Commands necessary for linking programs (against libraries) with templates])
 
6396
_LT_TAGDECL([], [postlink_cmds], [2],
 
6397
    [Commands necessary for finishing linking programs])
5882
6398
_LT_TAGDECL([], [file_list_spec], [1],
5883
6399
    [Specify filename containing input files])
5884
6400
dnl FIXME: Not yet implemented
5968
6484
])# _LT_LANG_C_CONFIG
5969
6485
 
5970
6486
 
5971
 
# _LT_PROG_CXX
5972
 
# ------------
5973
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5974
 
# compiler, we have our own version here.
5975
 
m4_defun([_LT_PROG_CXX],
5976
 
[
5977
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5978
 
AC_PROG_CXX
 
6487
# _LT_LANG_CXX_CONFIG([TAG])
 
6488
# --------------------------
 
6489
# Ensure that the configuration variables for a C++ compiler are suitably
 
6490
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6491
# the compiler configuration to `libtool'.
 
6492
m4_defun([_LT_LANG_CXX_CONFIG],
 
6493
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6494
m4_require([_LT_DECL_EGREP])dnl
 
6495
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5979
6496
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5980
6497
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5981
6498
    (test "X$CXX" != "Xg++"))) ; then
5983
6500
else
5984
6501
  _lt_caught_CXX_error=yes
5985
6502
fi
5986
 
popdef([AC_MSG_ERROR])
5987
 
])# _LT_PROG_CXX
5988
 
 
5989
 
dnl aclocal-1.4 backwards compatibility:
5990
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5991
 
 
5992
 
 
5993
 
# _LT_LANG_CXX_CONFIG([TAG])
5994
 
# --------------------------
5995
 
# Ensure that the configuration variables for a C++ compiler are suitably
5996
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5997
 
# the compiler configuration to `libtool'.
5998
 
m4_defun([_LT_LANG_CXX_CONFIG],
5999
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6000
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6001
 
m4_require([_LT_DECL_EGREP])dnl
6002
6503
 
6003
6504
AC_LANG_PUSH(C++)
6004
6505
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6010
6511
_LT_TAGVAR(hardcode_direct, $1)=no
6011
6512
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6012
6513
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6013
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6014
6514
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6015
6515
_LT_TAGVAR(hardcode_minus_L, $1)=no
6016
6516
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6020
6520
_LT_TAGVAR(module_expsym_cmds, $1)=
6021
6521
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6022
6522
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6523
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6524
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6023
6525
_LT_TAGVAR(no_undefined_flag, $1)=
6024
6526
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6025
6527
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6051
6553
 
6052
6554
  # Allow CC to be a program name with arguments.
6053
6555
  lt_save_CC=$CC
 
6556
  lt_save_CFLAGS=$CFLAGS
6054
6557
  lt_save_LD=$LD
6055
6558
  lt_save_GCC=$GCC
6056
6559
  GCC=$GXX
6068
6571
  fi
6069
6572
  test -z "${LDCXX+set}" || LD=$LDCXX
6070
6573
  CC=${CXX-"c++"}
 
6574
  CFLAGS=$CXXFLAGS
6071
6575
  compiler=$CC
6072
6576
  _LT_TAGVAR(compiler, $1)=$CC
6073
6577
  _LT_CC_BASENAME([$compiler])
6089
6593
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6090
6594
      # archiving commands below assume that GNU ld is being used.
6091
6595
      if test "$with_gnu_ld" = yes; then
6092
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6596
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6597
        _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'
6094
6598
 
6095
6599
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6096
6600
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6122
6626
      # Commands to make compiler produce verbose output that lists
6123
6627
      # what "hidden" libraries, object files and flags are used when
6124
6628
      # linking a shared library.
6125
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6629
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6126
6630
 
6127
6631
    else
6128
6632
      GXX=no
6231
6735
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6232
6736
          # Determine the default libpath from the value encoded in an empty
6233
6737
          # executable.
6234
 
          _LT_SYS_MODULE_PATH_AIX
 
6738
          _LT_SYS_MODULE_PATH_AIX([$1])
6235
6739
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
6740
 
6237
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6741
          _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"
6238
6742
        else
6239
6743
          if test "$host_cpu" = ia64; then
6240
6744
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6243
6747
          else
6244
6748
            # Determine the default libpath from the value encoded in an
6245
6749
            # empty executable.
6246
 
            _LT_SYS_MODULE_PATH_AIX
 
6750
            _LT_SYS_MODULE_PATH_AIX([$1])
6247
6751
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6248
6752
            # Warning - without using the other run time loading flags,
6249
6753
            # -berok will link without error, but may produce a broken library.
6250
6754
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6251
6755
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6252
 
            # Exported symbols can be pulled into shared objects from archives
6253
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6756
            if test "$with_gnu_ld" = yes; then
 
6757
              # We only use this code for GNU lds that support --whole-archive.
 
6758
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6759
            else
 
6760
              # Exported symbols can be pulled into shared objects from archives
 
6761
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6762
            fi
6254
6763
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6255
6764
            # This is similar to how AIX traditionally builds its shared
6256
6765
            # libraries.
6280
6789
        ;;
6281
6790
 
6282
6791
      cygwin* | mingw* | pw32* | cegcc*)
6283
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6284
 
        # as there is no search path for DLLs.
6285
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6287
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6288
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6792
        case $GXX,$cc_basename in
 
6793
        ,cl* | no,cl*)
 
6794
          # Native MSVC
 
6795
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6796
          # no search path for DLLs.
 
6797
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6798
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6799
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6800
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6801
          # Tell ltmain to make .lib files, not .a files.
 
6802
          libext=lib
 
6803
          # Tell ltmain to make .dll files, not .so files.
 
6804
          shrext_cmds=".dll"
 
6805
          # FIXME: Setting linknames here is a bad hack.
 
6806
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6807
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6808
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6809
            else
 
6810
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6811
            fi~
 
6812
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6813
            linknames='
 
6814
          # The linker will not automatically build a static lib if we build a DLL.
 
6815
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6816
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6817
          # Don't use ranlib
 
6818
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6819
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6820
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6821
            case $lt_outputfile in
 
6822
              *.exe|*.EXE) ;;
 
6823
              *)
 
6824
                lt_outputfile="$lt_outputfile.exe"
 
6825
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6826
                ;;
 
6827
            esac~
 
6828
            func_to_tool_file "$lt_outputfile"~
 
6829
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6830
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6831
              $RM "$lt_outputfile.manifest";
 
6832
            fi'
 
6833
          ;;
 
6834
        *)
 
6835
          # g++
 
6836
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6837
          # as there is no search path for DLLs.
 
6838
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6839
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6840
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6841
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6842
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6289
6843
 
6290
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6291
 
          _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'
6292
 
          # If the export-symbols file already is a .def file (1st line
6293
 
          # is EXPORTS), use it as is; otherwise, prepend...
6294
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6295
 
            cp $export_symbols $output_objdir/$soname.def;
6296
 
          else
6297
 
            echo EXPORTS > $output_objdir/$soname.def;
6298
 
            cat $export_symbols >> $output_objdir/$soname.def;
6299
 
          fi~
6300
 
          $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'
6301
 
        else
6302
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6303
 
        fi
6304
 
        ;;
 
6844
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6845
            _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'
 
6846
            # If the export-symbols file already is a .def file (1st line
 
6847
            # is EXPORTS), use it as is; otherwise, prepend...
 
6848
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6849
              cp $export_symbols $output_objdir/$soname.def;
 
6850
            else
 
6851
              echo EXPORTS > $output_objdir/$soname.def;
 
6852
              cat $export_symbols >> $output_objdir/$soname.def;
 
6853
            fi~
 
6854
            $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'
 
6855
          else
 
6856
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6857
          fi
 
6858
          ;;
 
6859
        esac
 
6860
        ;;
6305
6861
      darwin* | rhapsody*)
6306
6862
        _LT_DARWIN_LINKER_FEATURES($1)
6307
6863
        ;;
6324
6880
        esac
6325
6881
        ;;
6326
6882
 
6327
 
      freebsd[[12]]*)
 
6883
      freebsd2.*)
6328
6884
        # C++ shared libraries reported to be fairly broken before
6329
6885
        # switch to ELF
6330
6886
        _LT_TAGVAR(ld_shlibs, $1)=no
6340
6896
        _LT_TAGVAR(ld_shlibs, $1)=yes
6341
6897
        ;;
6342
6898
 
6343
 
      gnu*)
 
6899
      haiku*)
 
6900
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6901
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6344
6902
        ;;
6345
6903
 
6346
6904
      hpux9*)
6367
6925
            # explicitly linking system object files so we need to strip them
6368
6926
            # from the output so that they don't get included in the library
6369
6927
            # dependencies.
6370
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6928
            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"'
6371
6929
            ;;
6372
6930
          *)
6373
6931
            if test "$GXX" = yes; then
6374
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6932
              _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'
6375
6933
            else
6376
6934
              # FIXME: insert proper C++ library support
6377
6935
              _LT_TAGVAR(ld_shlibs, $1)=no
6432
6990
            # explicitly linking system object files so we need to strip them
6433
6991
            # from the output so that they don't get included in the library
6434
6992
            # dependencies.
6435
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6993
            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"'
6436
6994
            ;;
6437
6995
          *)
6438
6996
            if test "$GXX" = yes; then
6442
7000
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6443
7001
                    ;;
6444
7002
                  ia64*)
6445
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7003
                    _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'
6446
7004
                    ;;
6447
7005
                  *)
6448
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7006
                    _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'
6449
7007
                    ;;
6450
7008
                esac
6451
7009
              fi
6475
7033
        case $cc_basename in
6476
7034
          CC*)
6477
7035
            # SGI C++
6478
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7036
            _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'
6479
7037
 
6480
7038
            # Archives containing C++ object files must be created using
6481
7039
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6486
7044
          *)
6487
7045
            if test "$GXX" = yes; then
6488
7046
              if test "$with_gnu_ld" = no; then
6489
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7047
                _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'
6490
7048
              else
6491
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
7049
                _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'
6492
7050
              fi
6493
7051
            fi
6494
7052
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6499
7057
        _LT_TAGVAR(inherit_rpath, $1)=yes
6500
7058
        ;;
6501
7059
 
6502
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7060
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6503
7061
        case $cc_basename in
6504
7062
          KCC*)
6505
7063
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6517
7075
            # explicitly linking system object files so we need to strip them
6518
7076
            # from the output so that they don't get included in the library
6519
7077
            # dependencies.
6520
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
7078
            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"'
6521
7079
 
6522
7080
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6523
7081
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6554
7112
          pgCC* | pgcpp*)
6555
7113
            # Portland Group C++ compiler
6556
7114
            case `$CC -V` in
6557
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7115
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6558
7116
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6559
7117
                rm -rf $tpldir~
6560
7118
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6561
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7119
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6562
7120
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6563
7121
                rm -rf $tpldir~
6564
7122
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6565
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7123
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6566
7124
                $RANLIB $oldlib'
6567
7125
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6568
7126
                rm -rf $tpldir~
6569
7127
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6570
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7128
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6571
7129
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6572
7130
                rm -rf $tpldir~
6573
7131
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6574
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
7132
                $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'
6575
7133
              ;;
6576
 
            *) # Version 6 will use weak symbols
 
7134
            *) # Version 6 and above use weak symbols
6577
7135
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6578
7136
              _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'
6579
7137
              ;;
6581
7139
 
6582
7140
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6583
7141
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6584
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7142
            _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'
6585
7143
            ;;
6586
7144
          cxx*)
6587
7145
            # Compaq C++
6600
7158
            # explicitly linking system object files so we need to strip them
6601
7159
            # from the output so that they don't get included in the library
6602
7160
            # dependencies.
6603
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
7161
            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'
6604
7162
            ;;
6605
 
          xl*)
 
7163
          xl* | mpixl* | bgxl*)
6606
7164
            # IBM XL 8.0 on PPC, with GNU ld
6607
7165
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6608
7166
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6622
7180
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6623
7181
              _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'
6624
7182
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6625
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7183
              _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'
6626
7184
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6627
7185
 
6628
7186
              # Not sure whether something based on
6629
7187
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6630
7188
              # would be better.
6631
 
              output_verbose_link_cmd='echo'
 
7189
              output_verbose_link_cmd='func_echo_all'
6632
7190
 
6633
7191
              # Archives containing C++ object files must be created using
6634
7192
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6697
7255
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6698
7256
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6699
7257
          fi
6700
 
          output_verbose_link_cmd=echo
 
7258
          output_verbose_link_cmd=func_echo_all
6701
7259
        else
6702
7260
          _LT_TAGVAR(ld_shlibs, $1)=no
6703
7261
        fi
6732
7290
            case $host in
6733
7291
              osf3*)
6734
7292
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6735
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7293
                _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'
6736
7294
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6737
7295
                ;;
6738
7296
              *)
6739
7297
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6740
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7298
                _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'
6741
7299
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6742
7300
                  echo "-hidden">> $lib.exp~
6743
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
7301
                  $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~
6744
7302
                  $RM $lib.exp'
6745
7303
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6746
7304
                ;;
6756
7314
            # explicitly linking system object files so we need to strip them
6757
7315
            # from the output so that they don't get included in the library
6758
7316
            # dependencies.
6759
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
7317
            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"'
6760
7318
            ;;
6761
7319
          *)
6762
7320
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6763
7321
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6764
7322
              case $host in
6765
7323
                osf3*)
6766
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7324
                  _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'
6767
7325
                  ;;
6768
7326
                *)
6769
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7327
                  _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'
6770
7328
                  ;;
6771
7329
              esac
6772
7330
 
6776
7334
              # Commands to make compiler produce verbose output that lists
6777
7335
              # what "hidden" libraries, object files and flags are used when
6778
7336
              # linking a shared library.
6779
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7337
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6780
7338
 
6781
7339
            else
6782
7340
              # FIXME: insert proper C++ library support
6812
7370
 
6813
7371
      solaris*)
6814
7372
        case $cc_basename in
6815
 
          CC*)
 
7373
          CC* | sunCC*)
6816
7374
            # Sun C++ 4.2, 5.x and Centerline C++
6817
7375
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6818
7376
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6833
7391
            esac
6834
7392
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6835
7393
 
6836
 
            output_verbose_link_cmd='echo'
 
7394
            output_verbose_link_cmd='func_echo_all'
6837
7395
 
6838
7396
            # Archives containing C++ object files must be created using
6839
7397
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6853
7411
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6854
7412
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6855
7413
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6856
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7414
                _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'
6857
7415
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6858
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7416
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6859
7417
 
6860
7418
                # Commands to make compiler produce verbose output that lists
6861
7419
                # what "hidden" libraries, object files and flags are used when
6862
7420
                # linking a shared library.
6863
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7421
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6864
7422
              else
6865
7423
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6866
7424
                # platform.
6871
7429
                # Commands to make compiler produce verbose output that lists
6872
7430
                # what "hidden" libraries, object files and flags are used when
6873
7431
                # linking a shared library.
6874
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7432
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6875
7433
              fi
6876
7434
 
6877
7435
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6925
7483
          CC*)
6926
7484
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6927
7485
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7486
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7487
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7488
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7489
              '"$_LT_TAGVAR(reload_cmds, $1)"
6928
7490
            ;;
6929
7491
          *)
6930
7492
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6980
7542
  fi # test -n "$compiler"
6981
7543
 
6982
7544
  CC=$lt_save_CC
 
7545
  CFLAGS=$lt_save_CFLAGS
6983
7546
  LDCXX=$LD
6984
7547
  LD=$lt_save_LD
6985
7548
  GCC=$lt_save_GCC
6994
7557
])# _LT_LANG_CXX_CONFIG
6995
7558
 
6996
7559
 
 
7560
# _LT_FUNC_STRIPNAME_CNF
 
7561
# ----------------------
 
7562
# func_stripname_cnf prefix suffix name
 
7563
# strip PREFIX and SUFFIX off of NAME.
 
7564
# PREFIX and SUFFIX must not contain globbing or regex special
 
7565
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7566
# dot (in which case that matches only a dot).
 
7567
#
 
7568
# This function is identical to the (non-XSI) version of func_stripname,
 
7569
# except this one can be used by m4 code that may be executed by configure,
 
7570
# rather than the libtool script.
 
7571
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7572
AC_REQUIRE([_LT_DECL_SED])
 
7573
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7574
func_stripname_cnf ()
 
7575
{
 
7576
  case ${2} in
 
7577
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7578
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7579
  esac
 
7580
} # func_stripname_cnf
 
7581
])# _LT_FUNC_STRIPNAME_CNF
 
7582
 
6997
7583
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6998
7584
# ---------------------------------
6999
7585
# Figure out "hidden" library dependencies from verbose
7002
7588
# objects, libraries and library flags.
7003
7589
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7004
7590
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7591
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7005
7592
# Dependencies to place before and after the object being linked:
7006
7593
_LT_TAGVAR(predep_objects, $1)=
7007
7594
_LT_TAGVAR(postdep_objects, $1)=
7051
7638
  }
7052
7639
};
7053
7640
_LT_EOF
 
7641
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7642
package foo
 
7643
func foo() {
 
7644
}
 
7645
_LT_EOF
7054
7646
])
 
7647
 
 
7648
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7649
case "$CC $CFLAGS " in #(
 
7650
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7651
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7652
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
7653
esac
 
7654
 
7055
7655
dnl Parse the compiler output and extract the necessary
7056
7656
dnl objects, libraries and library flags.
7057
7657
if AC_TRY_EVAL(ac_compile); then
7063
7663
  pre_test_object_deps_done=no
7064
7664
 
7065
7665
  for p in `eval "$output_verbose_link_cmd"`; do
7066
 
    case $p in
 
7666
    case ${prev}${p} in
7067
7667
 
7068
7668
    -L* | -R* | -l*)
7069
7669
       # Some compilers place space between "-{L,R}" and the path.
7072
7672
          test $p = "-R"; then
7073
7673
         prev=$p
7074
7674
         continue
7075
 
       else
7076
 
         prev=
7077
7675
       fi
7078
7676
 
 
7677
       # Expand the sysroot to ease extracting the directories later.
 
7678
       if test -z "$prev"; then
 
7679
         case $p in
 
7680
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7681
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7682
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7683
         esac
 
7684
       fi
 
7685
       case $p in
 
7686
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7687
       esac
7079
7688
       if test "$pre_test_object_deps_done" = no; then
7080
 
         case $p in
7081
 
         -L* | -R*)
 
7689
         case ${prev} in
 
7690
         -L | -R)
7082
7691
           # Internal compiler library paths should come after those
7083
7692
           # provided the user.  The postdeps already come after the
7084
7693
           # user supplied libs so there is no need to process them.
7098
7707
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7099
7708
         fi
7100
7709
       fi
 
7710
       prev=
7101
7711
       ;;
7102
7712
 
 
7713
    *.lto.$objext) ;; # Ignore GCC LTO objects
7103
7714
    *.$objext)
7104
7715
       # This assumes that the test object file only shows up
7105
7716
       # once in the compiler output.
7135
7746
fi
7136
7747
 
7137
7748
$RM -f confest.$objext
 
7749
CFLAGS=$_lt_libdeps_save_CFLAGS
7138
7750
 
7139
7751
# PORTME: override above test on systems where it is broken
7140
7752
m4_if([$1], [CXX],
7171
7783
 
7172
7784
solaris*)
7173
7785
  case $cc_basename in
7174
 
  CC*)
 
7786
  CC* | sunCC*)
7175
7787
    # The more standards-conforming stlport4 library is
7176
7788
    # incompatible with the Cstd library. Avoid specifying
7177
7789
    # it if it's in CXXFLAGS. Ignore libCrun as
7215
7827
])# _LT_SYS_HIDDEN_LIBDEPS
7216
7828
 
7217
7829
 
7218
 
# _LT_PROG_F77
7219
 
# ------------
7220
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7221
 
# if there is no fortran compiler, we have our own version here.
7222
 
m4_defun([_LT_PROG_F77],
7223
 
[
7224
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7225
 
AC_PROG_F77
7226
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7227
 
  _lt_disable_F77=yes
7228
 
fi
7229
 
popdef([AC_MSG_ERROR])
7230
 
])# _LT_PROG_F77
7231
 
 
7232
 
dnl aclocal-1.4 backwards compatibility:
7233
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7234
 
 
7235
 
 
7236
7830
# _LT_LANG_F77_CONFIG([TAG])
7237
7831
# --------------------------
7238
7832
# Ensure that the configuration variables for a Fortran 77 compiler are
7239
7833
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7240
7834
# to write the compiler configuration to `libtool'.
7241
7835
m4_defun([_LT_LANG_F77_CONFIG],
7242
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7243
 
AC_LANG_PUSH(Fortran 77)
 
7836
[AC_LANG_PUSH(Fortran 77)
 
7837
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7838
  _lt_disable_F77=yes
 
7839
fi
7244
7840
 
7245
7841
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7246
7842
_LT_TAGVAR(allow_undefined_flag, $1)=
7250
7846
_LT_TAGVAR(hardcode_direct, $1)=no
7251
7847
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7252
7848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7253
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7254
7849
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7255
7850
_LT_TAGVAR(hardcode_minus_L, $1)=no
7256
7851
_LT_TAGVAR(hardcode_automatic, $1)=no
7259
7854
_LT_TAGVAR(module_expsym_cmds, $1)=
7260
7855
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7261
7856
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7857
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7858
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7262
7859
_LT_TAGVAR(no_undefined_flag, $1)=
7263
7860
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7264
7861
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7298
7895
  # Allow CC to be a program name with arguments.
7299
7896
  lt_save_CC="$CC"
7300
7897
  lt_save_GCC=$GCC
 
7898
  lt_save_CFLAGS=$CFLAGS
7301
7899
  CC=${F77-"f77"}
 
7900
  CFLAGS=$FFLAGS
7302
7901
  compiler=$CC
7303
7902
  _LT_TAGVAR(compiler, $1)=$CC
7304
7903
  _LT_CC_BASENAME([$compiler])
7352
7951
 
7353
7952
  GCC=$lt_save_GCC
7354
7953
  CC="$lt_save_CC"
 
7954
  CFLAGS="$lt_save_CFLAGS"
7355
7955
fi # test "$_lt_disable_F77" != yes
7356
7956
 
7357
7957
AC_LANG_POP
7358
7958
])# _LT_LANG_F77_CONFIG
7359
7959
 
7360
7960
 
7361
 
# _LT_PROG_FC
7362
 
# -----------
7363
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7364
 
# if there is no fortran compiler, we have our own version here.
7365
 
m4_defun([_LT_PROG_FC],
7366
 
[
7367
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7368
 
AC_PROG_FC
7369
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7370
 
  _lt_disable_FC=yes
7371
 
fi
7372
 
popdef([AC_MSG_ERROR])
7373
 
])# _LT_PROG_FC
7374
 
 
7375
 
dnl aclocal-1.4 backwards compatibility:
7376
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7377
 
 
7378
 
 
7379
7961
# _LT_LANG_FC_CONFIG([TAG])
7380
7962
# -------------------------
7381
7963
# Ensure that the configuration variables for a Fortran compiler are
7382
7964
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7383
7965
# to write the compiler configuration to `libtool'.
7384
7966
m4_defun([_LT_LANG_FC_CONFIG],
7385
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7386
 
AC_LANG_PUSH(Fortran)
 
7967
[AC_LANG_PUSH(Fortran)
 
7968
 
 
7969
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7970
  _lt_disable_FC=yes
 
7971
fi
7387
7972
 
7388
7973
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7389
7974
_LT_TAGVAR(allow_undefined_flag, $1)=
7393
7978
_LT_TAGVAR(hardcode_direct, $1)=no
7394
7979
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7395
7980
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7396
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7397
7981
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7398
7982
_LT_TAGVAR(hardcode_minus_L, $1)=no
7399
7983
_LT_TAGVAR(hardcode_automatic, $1)=no
7402
7986
_LT_TAGVAR(module_expsym_cmds, $1)=
7403
7987
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7404
7988
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7989
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7990
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7405
7991
_LT_TAGVAR(no_undefined_flag, $1)=
7406
7992
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7407
7993
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7441
8027
  # Allow CC to be a program name with arguments.
7442
8028
  lt_save_CC="$CC"
7443
8029
  lt_save_GCC=$GCC
 
8030
  lt_save_CFLAGS=$CFLAGS
7444
8031
  CC=${FC-"f95"}
 
8032
  CFLAGS=$FCFLAGS
7445
8033
  compiler=$CC
7446
8034
  GCC=$ac_cv_fc_compiler_gnu
7447
8035
 
7497
8085
  fi # test -n "$compiler"
7498
8086
 
7499
8087
  GCC=$lt_save_GCC
7500
 
  CC="$lt_save_CC"
 
8088
  CC=$lt_save_CC
 
8089
  CFLAGS=$lt_save_CFLAGS
7501
8090
fi # test "$_lt_disable_FC" != yes
7502
8091
 
7503
8092
AC_LANG_POP
7534
8123
_LT_LINKER_BOILERPLATE
7535
8124
 
7536
8125
# Allow CC to be a program name with arguments.
7537
 
lt_save_CC="$CC"
 
8126
lt_save_CC=$CC
 
8127
lt_save_CFLAGS=$CFLAGS
7538
8128
lt_save_GCC=$GCC
7539
8129
GCC=yes
7540
8130
CC=${GCJ-"gcj"}
 
8131
CFLAGS=$GCJFLAGS
7541
8132
compiler=$CC
7542
8133
_LT_TAGVAR(compiler, $1)=$CC
7543
8134
_LT_TAGVAR(LD, $1)="$LD"
7547
8138
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
8139
 
7549
8140
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8141
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8142
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7550
8143
 
7551
8144
if test -n "$compiler"; then
7552
8145
  _LT_COMPILER_NO_RTTI($1)
7562
8155
AC_LANG_RESTORE
7563
8156
 
7564
8157
GCC=$lt_save_GCC
7565
 
CC="$lt_save_CC"
 
8158
CC=$lt_save_CC
 
8159
CFLAGS=$lt_save_CFLAGS
7566
8160
])# _LT_LANG_GCJ_CONFIG
7567
8161
 
7568
8162
 
 
8163
# _LT_LANG_GO_CONFIG([TAG])
 
8164
# --------------------------
 
8165
# Ensure that the configuration variables for the GNU Go compiler
 
8166
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8167
# to write the compiler configuration to `libtool'.
 
8168
m4_defun([_LT_LANG_GO_CONFIG],
 
8169
[AC_REQUIRE([LT_PROG_GO])dnl
 
8170
AC_LANG_SAVE
 
8171
 
 
8172
# Source file extension for Go test sources.
 
8173
ac_ext=go
 
8174
 
 
8175
# Object file extension for compiled Go test sources.
 
8176
objext=o
 
8177
_LT_TAGVAR(objext, $1)=$objext
 
8178
 
 
8179
# Code to be used in simple compile tests
 
8180
lt_simple_compile_test_code="package main; func main() { }"
 
8181
 
 
8182
# Code to be used in simple link tests
 
8183
lt_simple_link_test_code='package main; func main() { }'
 
8184
 
 
8185
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8186
_LT_TAG_COMPILER
 
8187
 
 
8188
# save warnings/boilerplate of simple test code
 
8189
_LT_COMPILER_BOILERPLATE
 
8190
_LT_LINKER_BOILERPLATE
 
8191
 
 
8192
# Allow CC to be a program name with arguments.
 
8193
lt_save_CC=$CC
 
8194
lt_save_CFLAGS=$CFLAGS
 
8195
lt_save_GCC=$GCC
 
8196
GCC=yes
 
8197
CC=${GOC-"gccgo"}
 
8198
CFLAGS=$GOFLAGS
 
8199
compiler=$CC
 
8200
_LT_TAGVAR(compiler, $1)=$CC
 
8201
_LT_TAGVAR(LD, $1)="$LD"
 
8202
_LT_CC_BASENAME([$compiler])
 
8203
 
 
8204
# Go did not exist at the time GCC didn't implicitly link libc in.
 
8205
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8206
 
 
8207
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8208
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8209
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8210
 
 
8211
if test -n "$compiler"; then
 
8212
  _LT_COMPILER_NO_RTTI($1)
 
8213
  _LT_COMPILER_PIC($1)
 
8214
  _LT_COMPILER_C_O($1)
 
8215
  _LT_COMPILER_FILE_LOCKS($1)
 
8216
  _LT_LINKER_SHLIBS($1)
 
8217
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8218
 
 
8219
  _LT_CONFIG($1)
 
8220
fi
 
8221
 
 
8222
AC_LANG_RESTORE
 
8223
 
 
8224
GCC=$lt_save_GCC
 
8225
CC=$lt_save_CC
 
8226
CFLAGS=$lt_save_CFLAGS
 
8227
])# _LT_LANG_GO_CONFIG
 
8228
 
 
8229
 
7569
8230
# _LT_LANG_RC_CONFIG([TAG])
7570
8231
# -------------------------
7571
8232
# Ensure that the configuration variables for the Windows resource compiler
7597
8258
 
7598
8259
# Allow CC to be a program name with arguments.
7599
8260
lt_save_CC="$CC"
 
8261
lt_save_CFLAGS=$CFLAGS
7600
8262
lt_save_GCC=$GCC
7601
8263
GCC=
7602
8264
CC=${RC-"windres"}
 
8265
CFLAGS=
7603
8266
compiler=$CC
7604
8267
_LT_TAGVAR(compiler, $1)=$CC
7605
8268
_LT_CC_BASENAME([$compiler])
7612
8275
 
7613
8276
GCC=$lt_save_GCC
7614
8277
AC_LANG_RESTORE
7615
 
CC="$lt_save_CC"
 
8278
CC=$lt_save_CC
 
8279
CFLAGS=$lt_save_CFLAGS
7616
8280
])# _LT_LANG_RC_CONFIG
7617
8281
 
7618
8282
 
7632
8296
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7633
8297
 
7634
8298
 
 
8299
# LT_PROG_GO
 
8300
# ----------
 
8301
AC_DEFUN([LT_PROG_GO],
 
8302
[AC_CHECK_TOOL(GOC, gccgo,)
 
8303
])
 
8304
 
 
8305
 
7635
8306
# LT_PROG_RC
7636
8307
# ----------
7637
8308
AC_DEFUN([LT_PROG_RC],
7671
8342
AC_SUBST([OBJDUMP])
7672
8343
])
7673
8344
 
 
8345
# _LT_DECL_DLLTOOL
 
8346
# ----------------
 
8347
# Ensure DLLTOOL variable is set.
 
8348
m4_defun([_LT_DECL_DLLTOOL],
 
8349
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8350
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8351
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8352
AC_SUBST([DLLTOOL])
 
8353
])
7674
8354
 
7675
8355
# _LT_DECL_SED
7676
8356
# ------------
7762
8442
# Try some XSI features
7763
8443
xsi_shell=no
7764
8444
( _lt_dummy="a/b/c"
7765
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7766
 
      = c,a/b,, \
 
8445
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8446
      = c,a/b,b/c, \
7767
8447
    && eval 'test $(( 1 + 1 )) -eq 2 \
7768
8448
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7769
8449
  && xsi_shell=yes
7802
8482
])# _LT_CHECK_SHELL_FEATURES
7803
8483
 
7804
8484
 
7805
 
# _LT_PROG_XSI_SHELLFNS
7806
 
# ---------------------
7807
 
# Bourne and XSI compatible variants of some useful shell functions.
7808
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7809
 
[case $xsi_shell in
7810
 
  yes)
7811
 
    cat << \_LT_EOF >> "$cfgfile"
7812
 
 
7813
 
# func_dirname file append nondir_replacement
7814
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7815
 
# otherwise set result to NONDIR_REPLACEMENT.
7816
 
func_dirname ()
7817
 
{
7818
 
  case ${1} in
7819
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7820
 
    *  ) func_dirname_result="${3}" ;;
7821
 
  esac
7822
 
}
7823
 
 
7824
 
# func_basename file
7825
 
func_basename ()
7826
 
{
7827
 
  func_basename_result="${1##*/}"
7828
 
}
7829
 
 
7830
 
# func_dirname_and_basename file append nondir_replacement
7831
 
# perform func_basename and func_dirname in a single function
7832
 
# call:
7833
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7834
 
#             add APPEND to the result, otherwise set result
7835
 
#             to NONDIR_REPLACEMENT.
7836
 
#             value returned in "$func_dirname_result"
7837
 
#   basename: Compute filename of FILE.
7838
 
#             value retuned in "$func_basename_result"
7839
 
# Implementation must be kept synchronized with func_dirname
7840
 
# and func_basename. For efficiency, we do not delegate to
7841
 
# those functions but instead duplicate the functionality here.
7842
 
func_dirname_and_basename ()
7843
 
{
7844
 
  case ${1} in
7845
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7846
 
    *  ) func_dirname_result="${3}" ;;
7847
 
  esac
7848
 
  func_basename_result="${1##*/}"
7849
 
}
7850
 
 
7851
 
# func_stripname prefix suffix name
7852
 
# strip PREFIX and SUFFIX off of NAME.
7853
 
# PREFIX and SUFFIX must not contain globbing or regex special
7854
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7855
 
# dot (in which case that matches only a dot).
7856
 
func_stripname ()
7857
 
{
7858
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7859
 
  # positional parameters, so assign one to ordinary parameter first.
7860
 
  func_stripname_result=${3}
7861
 
  func_stripname_result=${func_stripname_result#"${1}"}
7862
 
  func_stripname_result=${func_stripname_result%"${2}"}
7863
 
}
7864
 
 
7865
 
# func_opt_split
7866
 
func_opt_split ()
7867
 
{
7868
 
  func_opt_split_opt=${1%%=*}
7869
 
  func_opt_split_arg=${1#*=}
7870
 
}
7871
 
 
7872
 
# func_lo2o object
7873
 
func_lo2o ()
7874
 
{
7875
 
  case ${1} in
7876
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7877
 
    *)    func_lo2o_result=${1} ;;
7878
 
  esac
7879
 
}
7880
 
 
7881
 
# func_xform libobj-or-source
7882
 
func_xform ()
7883
 
{
7884
 
  func_xform_result=${1%.*}.lo
7885
 
}
7886
 
 
7887
 
# func_arith arithmetic-term...
7888
 
func_arith ()
7889
 
{
7890
 
  func_arith_result=$(( $[*] ))
7891
 
}
7892
 
 
7893
 
# func_len string
7894
 
# STRING may not start with a hyphen.
7895
 
func_len ()
7896
 
{
7897
 
  func_len_result=${#1}
7898
 
}
7899
 
 
7900
 
_LT_EOF
7901
 
    ;;
7902
 
  *) # Bourne compatible functions.
7903
 
    cat << \_LT_EOF >> "$cfgfile"
7904
 
 
7905
 
# func_dirname file append nondir_replacement
7906
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7907
 
# otherwise set result to NONDIR_REPLACEMENT.
7908
 
func_dirname ()
7909
 
{
7910
 
  # Extract subdirectory from the argument.
7911
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7912
 
  if test "X$func_dirname_result" = "X${1}"; then
7913
 
    func_dirname_result="${3}"
7914
 
  else
7915
 
    func_dirname_result="$func_dirname_result${2}"
7916
 
  fi
7917
 
}
7918
 
 
7919
 
# func_basename file
7920
 
func_basename ()
7921
 
{
7922
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7923
 
}
7924
 
 
7925
 
dnl func_dirname_and_basename
7926
 
dnl A portable version of this function is already defined in general.m4sh
7927
 
dnl so there is no need for it here.
7928
 
 
7929
 
# func_stripname prefix suffix name
7930
 
# strip PREFIX and SUFFIX off of NAME.
7931
 
# PREFIX and SUFFIX must not contain globbing or regex special
7932
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7933
 
# dot (in which case that matches only a dot).
7934
 
# func_strip_suffix prefix name
7935
 
func_stripname ()
7936
 
{
7937
 
  case ${2} in
7938
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7939
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7940
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7941
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7942
 
  esac
7943
 
}
7944
 
 
7945
 
# sed scripts:
7946
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7947
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7948
 
 
7949
 
# func_opt_split
7950
 
func_opt_split ()
7951
 
{
7952
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7953
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7954
 
}
7955
 
 
7956
 
# func_lo2o object
7957
 
func_lo2o ()
7958
 
{
7959
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7960
 
}
7961
 
 
7962
 
# func_xform libobj-or-source
7963
 
func_xform ()
7964
 
{
7965
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7966
 
}
7967
 
 
7968
 
# func_arith arithmetic-term...
7969
 
func_arith ()
7970
 
{
7971
 
  func_arith_result=`expr "$[@]"`
7972
 
}
7973
 
 
7974
 
# func_len string
7975
 
# STRING may not start with a hyphen.
7976
 
func_len ()
7977
 
{
7978
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7979
 
}
7980
 
 
7981
 
_LT_EOF
7982
 
esac
7983
 
 
7984
 
case $lt_shell_append in
7985
 
  yes)
7986
 
    cat << \_LT_EOF >> "$cfgfile"
7987
 
 
7988
 
# func_append var value
7989
 
# Append VALUE to the end of shell variable VAR.
7990
 
func_append ()
7991
 
{
7992
 
  eval "$[1]+=\$[2]"
7993
 
}
7994
 
_LT_EOF
7995
 
    ;;
7996
 
  *)
7997
 
    cat << \_LT_EOF >> "$cfgfile"
7998
 
 
7999
 
# func_append var value
8000
 
# Append VALUE to the end of shell variable VAR.
8001
 
func_append ()
8002
 
{
8003
 
  eval "$[1]=\$$[1]\$[2]"
8004
 
}
8005
 
 
8006
 
_LT_EOF
8007
 
    ;;
8008
 
  esac
8009
 
])
 
8485
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8486
# ------------------------------------------------------
 
8487
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8488
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8489
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8490
[dnl {
 
8491
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8492
$1 ()\
 
8493
{\
 
8494
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8495
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8496
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8497
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8498
test 0 -eq $? || _lt_function_replace_fail=:
 
8499
])
 
8500
 
 
8501
 
 
8502
# _LT_PROG_REPLACE_SHELLFNS
 
8503
# -------------------------
 
8504
# Replace existing portable implementations of several shell functions with
 
8505
# equivalent extended shell implementations where those features are available..
 
8506
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8507
[if test x"$xsi_shell" = xyes; then
 
8508
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8509
    case ${1} in
 
8510
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8511
      *  ) func_dirname_result="${3}" ;;
 
8512
    esac])
 
8513
 
 
8514
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8515
    func_basename_result="${1##*/}"])
 
8516
 
 
8517
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8518
    case ${1} in
 
8519
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8520
      *  ) func_dirname_result="${3}" ;;
 
8521
    esac
 
8522
    func_basename_result="${1##*/}"])
 
8523
 
 
8524
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8525
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8526
    # positional parameters, so assign one to ordinary parameter first.
 
8527
    func_stripname_result=${3}
 
8528
    func_stripname_result=${func_stripname_result#"${1}"}
 
8529
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8530
 
 
8531
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8532
    func_split_long_opt_name=${1%%=*}
 
8533
    func_split_long_opt_arg=${1#*=}])
 
8534
 
 
8535
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8536
    func_split_short_opt_arg=${1#??}
 
8537
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8538
 
 
8539
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8540
    case ${1} in
 
8541
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8542
      *)    func_lo2o_result=${1} ;;
 
8543
    esac])
 
8544
 
 
8545
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8546
 
 
8547
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8548
 
 
8549
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8550
fi
 
8551
 
 
8552
if test x"$lt_shell_append" = xyes; then
 
8553
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8554
 
 
8555
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8556
    func_quote_for_eval "${2}"
 
8557
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8558
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8559
 
 
8560
  # Save a `func_append' function call where possible by direct use of '+='
 
8561
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8562
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8563
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8564
  test 0 -eq $? || _lt_function_replace_fail=:
 
8565
else
 
8566
  # Save a `func_append' function call even when '+=' is not available
 
8567
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8568
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8569
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8570
  test 0 -eq $? || _lt_function_replace_fail=:
 
8571
fi
 
8572
 
 
8573
if test x"$_lt_function_replace_fail" = x":"; then
 
8574
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8575
fi
 
8576
])
 
8577
 
 
8578
# _LT_PATH_CONVERSION_FUNCTIONS
 
8579
# -----------------------------
 
8580
# Determine which file name conversion functions should be used by
 
8581
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8582
# for certain cross-compile configurations and native mingw.
 
8583
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8584
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8585
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8586
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8587
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8588
[case $host in
 
8589
  *-*-mingw* )
 
8590
    case $build in
 
8591
      *-*-mingw* ) # actually msys
 
8592
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8593
        ;;
 
8594
      *-*-cygwin* )
 
8595
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8596
        ;;
 
8597
      * ) # otherwise, assume *nix
 
8598
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8599
        ;;
 
8600
    esac
 
8601
    ;;
 
8602
  *-*-cygwin* )
 
8603
    case $build in
 
8604
      *-*-mingw* ) # actually msys
 
8605
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8606
        ;;
 
8607
      *-*-cygwin* )
 
8608
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8609
        ;;
 
8610
      * ) # otherwise, assume *nix
 
8611
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8612
        ;;
 
8613
    esac
 
8614
    ;;
 
8615
  * ) # unhandled hosts (and "normal" native builds)
 
8616
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8617
    ;;
 
8618
esac
 
8619
])
 
8620
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8621
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8622
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8623
         [0], [convert $build file names to $host format])dnl
 
8624
 
 
8625
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8626
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8627
[#assume ordinary cross tools, or native build.
 
8628
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8629
case $host in
 
8630
  *-*-mingw* )
 
8631
    case $build in
 
8632
      *-*-mingw* ) # actually msys
 
8633
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8634
        ;;
 
8635
    esac
 
8636
    ;;
 
8637
esac
 
8638
])
 
8639
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8640
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8641
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8642
         [0], [convert $build files to toolchain format])dnl
 
8643
])# _LT_PATH_CONVERSION_FUNCTIONS
8010
8644
 
8011
8645
# Helper functions for option handling.                    -*- Autoconf -*-
8012
8646
#
8013
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8647
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8648
#   Inc.
8014
8649
#   Written by Gary V. Vaughan, 2004
8015
8650
#
8016
8651
# This file is free software; the Free Software Foundation gives
8017
8652
# unlimited permission to copy and/or distribute it, with or without
8018
8653
# modifications, as long as this notice is preserved.
8019
8654
 
8020
 
# serial 6 ltoptions.m4
 
8655
# serial 7 ltoptions.m4
8021
8656
 
8022
8657
# This is to help aclocal find these macros, as it can't see m4_define.
8023
8658
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8132
8767
[enable_win32_dll=yes
8133
8768
 
8134
8769
case $host in
8135
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8770
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8136
8771
  AC_CHECK_TOOL(AS, as, false)
8137
8772
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8138
8773
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8140
8775
esac
8141
8776
 
8142
8777
test -z "$AS" && AS=as
8143
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8778
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8144
8779
 
8145
8780
test -z "$DLLTOOL" && DLLTOOL=dlltool
8146
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8781
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8147
8782
 
8148
8783
test -z "$OBJDUMP" && OBJDUMP=objdump
8149
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8784
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8150
8785
])# win32-dll
8151
8786
 
8152
8787
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8332
8967
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8333
8968
m4_define([_LT_WITH_PIC],
8334
8969
[AC_ARG_WITH([pic],
8335
 
    [AS_HELP_STRING([--with-pic],
 
8970
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8336
8971
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8337
 
    [pic_mode="$withval"],
 
8972
    [lt_p=${PACKAGE-default}
 
8973
    case $withval in
 
8974
    yes|no) pic_mode=$withval ;;
 
8975
    *)
 
8976
      pic_mode=default
 
8977
      # Look at the argument we got.  We use all the common list separators.
 
8978
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8979
      for lt_pkg in $withval; do
 
8980
        IFS="$lt_save_ifs"
 
8981
        if test "X$lt_pkg" = "X$lt_p"; then
 
8982
          pic_mode=yes
 
8983
        fi
 
8984
      done
 
8985
      IFS="$lt_save_ifs"
 
8986
      ;;
 
8987
    esac],
8338
8988
    [pic_mode=default])
8339
8989
 
8340
8990
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8504
9154
# unlimited permission to copy and/or distribute it, with or without
8505
9155
# modifications, as long as this notice is preserved.
8506
9156
 
8507
 
# Generated from ltversion.in.
 
9157
# @configure_input@
8508
9158
 
8509
 
# serial 3017 ltversion.m4
 
9159
# serial 3337 ltversion.m4
8510
9160
# This file is part of GNU Libtool
8511
9161
 
8512
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8513
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
9162
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
9163
m4_define([LT_PACKAGE_REVISION], [1.3337])
8514
9164
 
8515
9165
AC_DEFUN([LTVERSION_VERSION],
8516
 
[macro_version='2.2.6b'
8517
 
macro_revision='1.3017'
 
9166
[macro_version='2.4.2'
 
9167
macro_revision='1.3337'
8518
9168
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8519
9169
_LT_DECL(, macro_revision, 0)
8520
9170
])
8521
9171
 
8522
9172
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8523
9173
#
8524
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
9174
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8525
9175
#   Written by Scott James Remnant, 2004.
8526
9176
#
8527
9177
# This file is free software; the Free Software Foundation gives
8528
9178
# unlimited permission to copy and/or distribute it, with or without
8529
9179
# modifications, as long as this notice is preserved.
8530
9180
 
8531
 
# serial 4 lt~obsolete.m4
 
9181
# serial 5 lt~obsolete.m4
8532
9182
 
8533
9183
# These exist entirely to fool aclocal when bootstrapping libtool.
8534
9184
#
8598
9248
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8599
9249
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8600
9250
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8601
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8602
9251
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8603
9252
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8604
9253
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8611
9260
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8612
9261
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8613
9262
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9263
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9264
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9265
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9266
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9267
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9268
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9269
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8614
9270
 
8615
9271
# nls.m4 serial 5 (gettext-0.18)
8616
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
9272
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
8617
9273
dnl Inc.
8618
9274
dnl This file is free software; the Free Software Foundation
8619
9275
dnl gives unlimited permission to copy and/or distribute it,
8673
9329
# ----------------------------------
8674
9330
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8675
9331
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8676
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
9332
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
9333
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8677
9334
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8678
9335
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8679
9336
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8719
9376
    pkg_cv_[]$1="$$1"
8720
9377
 elif test -n "$PKG_CONFIG"; then
8721
9378
    PKG_CHECK_EXISTS([$3],
8722
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9379
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
9380
                      test "x$?" != "x0" && pkg_failed=yes ],
8723
9381
                     [pkg_failed=yes])
8724
9382
 else
8725
9383
    pkg_failed=untried
8767
9425
        AC_MSG_RESULT([no])
8768
9426
        _PKG_SHORT_ERRORS_SUPPORTED
8769
9427
        if test $_pkg_short_errors_supported = yes; then
8770
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9428
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
8771
9429
        else 
8772
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9430
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
8773
9431
        fi
8774
9432
        # Put the nasty error message in config.log where it belongs
8775
9433
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8803
9461
fi[]dnl
8804
9462
])# PKG_CHECK_MODULES
8805
9463
 
8806
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9464
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
8807
9465
#
8808
9466
# This file is free software; the Free Software Foundation
8809
9467
# gives unlimited permission to copy and/or distribute it,
8815
9473
# generated from the m4 files accompanying Automake X.Y.
8816
9474
# (This private macro should not be called outside this file.)
8817
9475
AC_DEFUN([AM_AUTOMAKE_VERSION],
8818
 
[am__api_version='1.11'
 
9476
[am__api_version='1.14'
8819
9477
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8820
9478
dnl require some minimum version.  Point them to the right macro.
8821
 
m4_if([$1], [1.11.1], [],
 
9479
m4_if([$1], [1.14], [],
8822
9480
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8823
9481
])
8824
9482
 
8834
9492
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8835
9493
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8836
9494
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8837
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
9495
[AM_AUTOMAKE_VERSION([1.14])dnl
8838
9496
m4_ifndef([AC_AUTOCONF_VERSION],
8839
9497
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8840
9498
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8841
9499
 
8842
9500
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8843
9501
 
8844
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9502
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
8845
9503
#
8846
9504
# This file is free software; the Free Software Foundation
8847
9505
# gives unlimited permission to copy and/or distribute it,
8848
9506
# with or without modifications, as long as this notice is preserved.
8849
9507
 
8850
9508
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8851
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8852
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
9509
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
9510
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8853
9511
#
8854
9512
# Of course, Automake must honor this variable whenever it calls a
8855
9513
# tool from the auxiliary directory.  The problem is that $srcdir (and
8868
9526
#
8869
9527
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8870
9528
# are both prefixed by $srcdir.  In an in-source build this is usually
8871
 
# harmless because $srcdir is `.', but things will broke when you
 
9529
# harmless because $srcdir is '.', but things will broke when you
8872
9530
# start a VPATH build or use an absolute $srcdir.
8873
9531
#
8874
9532
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8894
9552
 
8895
9553
# AM_CONDITIONAL                                            -*- Autoconf -*-
8896
9554
 
8897
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8898
 
# Free Software Foundation, Inc.
 
9555
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
8899
9556
#
8900
9557
# This file is free software; the Free Software Foundation
8901
9558
# gives unlimited permission to copy and/or distribute it,
8902
9559
# with or without modifications, as long as this notice is preserved.
8903
9560
 
8904
 
# serial 9
8905
 
 
8906
9561
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8907
9562
# -------------------------------------
8908
9563
# Define a conditional.
8909
9564
AC_DEFUN([AM_CONDITIONAL],
8910
 
[AC_PREREQ(2.52)dnl
8911
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8912
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9565
[AC_PREREQ([2.52])dnl
 
9566
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9567
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8913
9568
AC_SUBST([$1_TRUE])dnl
8914
9569
AC_SUBST([$1_FALSE])dnl
8915
9570
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8928
9583
Usually this means the macro was only invoked conditionally.]])
8929
9584
fi])])
8930
9585
 
8931
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8932
 
# Free Software Foundation, Inc.
 
9586
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
8933
9587
#
8934
9588
# This file is free software; the Free Software Foundation
8935
9589
# gives unlimited permission to copy and/or distribute it,
8936
9590
# with or without modifications, as long as this notice is preserved.
8937
9591
 
8938
 
# serial 10
8939
9592
 
8940
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
9593
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8941
9594
# written in clear, in which case automake, when reading aclocal.m4,
8942
9595
# will think it sees a *use*, and therefore will trigger all it's
8943
9596
# C support machinery.  Also note that it means that autoscan, seeing
8947
9600
# _AM_DEPENDENCIES(NAME)
8948
9601
# ----------------------
8949
9602
# See how the compiler implements dependency checking.
8950
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
9603
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
8951
9604
# We try a few techniques and use that to set a single cache variable.
8952
9605
#
8953
9606
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8960
9613
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8961
9614
AC_REQUIRE([AM_DEP_TRACK])dnl
8962
9615
 
8963
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
8964
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
8965
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8966
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
8967
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
8968
 
                   [depcc="$$1"   am_compiler_list=])
 
9616
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
9617
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
9618
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9619
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
9620
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
9621
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9622
                    [depcc="$$1"   am_compiler_list=])
8969
9623
 
8970
9624
AC_CACHE_CHECK([dependency style of $depcc],
8971
9625
               [am_cv_$1_dependencies_compiler_type],
8973
9627
  # We make a subdir and do the tests there.  Otherwise we can end up
8974
9628
  # making bogus files that we don't know about and never remove.  For
8975
9629
  # instance it was reported that on HP-UX the gcc test will end up
8976
 
  # making a dummy file named `D' -- because `-MD' means `put the output
8977
 
  # in D'.
 
9630
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
9631
  # in D".
 
9632
  rm -rf conftest.dir
8978
9633
  mkdir conftest.dir
8979
9634
  # Copy depcomp to subdir because otherwise we won't find it if we're
8980
9635
  # using a relative directory.
9013
9668
    : > sub/conftest.c
9014
9669
    for i in 1 2 3 4 5 6; do
9015
9670
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9016
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9017
 
      # Solaris 8's {/usr,}/bin/sh.
9018
 
      touch sub/conftst$i.h
 
9671
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
9672
      # Solaris 10 /bin/sh.
 
9673
      echo '/* dummy */' > sub/conftst$i.h
9019
9674
    done
9020
9675
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9021
9676
 
9022
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9677
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
9023
9678
    # mode.  It turns out that the SunPro C++ compiler does not properly
9024
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9025
 
    # versions had trouble with output in subdirs
 
9679
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
9680
    # versions had trouble with output in subdirs.
9026
9681
    am__obj=sub/conftest.${OBJEXT-o}
9027
9682
    am__minus_obj="-o $am__obj"
9028
9683
    case $depmode in
9031
9686
      test "$am__universal" = false || continue
9032
9687
      ;;
9033
9688
    nosideeffect)
9034
 
      # after this tag, mechanisms are not by side-effect, so they'll
9035
 
      # only be used when explicitly requested
 
9689
      # After this tag, mechanisms are not by side-effect, so they'll
 
9690
      # only be used when explicitly requested.
9036
9691
      if test "x$enable_dependency_tracking" = xyes; then
9037
9692
        continue
9038
9693
      else
9039
9694
        break
9040
9695
      fi
9041
9696
      ;;
9042
 
    msvisualcpp | msvcmsys)
9043
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9697
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
9698
      # This compiler won't grok '-c -o', but also, the minuso test has
9044
9699
      # not run yet.  These depmodes are late enough in the game, and
9045
9700
      # so weak that their functioning should not be impacted.
9046
9701
      am__obj=conftest.${OBJEXT-o}
9088
9743
# AM_SET_DEPDIR
9089
9744
# -------------
9090
9745
# Choose a directory name for dependency files.
9091
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
9746
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9092
9747
AC_DEFUN([AM_SET_DEPDIR],
9093
9748
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9094
9749
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9098
9753
# AM_DEP_TRACK
9099
9754
# ------------
9100
9755
AC_DEFUN([AM_DEP_TRACK],
9101
 
[AC_ARG_ENABLE(dependency-tracking,
9102
 
[  --disable-dependency-tracking  speeds up one-time build
9103
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
9756
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
9757
AS_HELP_STRING(
 
9758
  [--enable-dependency-tracking],
 
9759
  [do not reject slow dependency extractors])
 
9760
AS_HELP_STRING(
 
9761
  [--disable-dependency-tracking],
 
9762
  [speeds up one-time build])])
9104
9763
if test "x$enable_dependency_tracking" != xno; then
9105
9764
  am_depcomp="$ac_aux_dir/depcomp"
9106
9765
  AMDEPBACKSLASH='\'
 
9766
  am__nodep='_no'
9107
9767
fi
9108
9768
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9109
9769
AC_SUBST([AMDEPBACKSLASH])dnl
9110
9770
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9771
AC_SUBST([am__nodep])dnl
 
9772
_AM_SUBST_NOTMAKE([am__nodep])dnl
9111
9773
])
9112
9774
 
9113
9775
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9114
9776
 
9115
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9116
 
# Free Software Foundation, Inc.
 
9777
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9117
9778
#
9118
9779
# This file is free software; the Free Software Foundation
9119
9780
# gives unlimited permission to copy and/or distribute it,
9120
9781
# with or without modifications, as long as this notice is preserved.
9121
9782
 
9122
 
#serial 5
9123
9783
 
9124
9784
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9125
9785
# ------------------------------
9126
9786
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9127
9787
[{
9128
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9788
  # Older Autoconf quotes --file arguments for eval, but not when files
9129
9789
  # are listed without --file.  Let's play safe and only enable the eval
9130
9790
  # if we detect the quoting.
9131
9791
  case $CONFIG_FILES in
9138
9798
    # Strip MF so we end up with the name of the file.
9139
9799
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9140
9800
    # Check whether this is an Automake generated Makefile or not.
9141
 
    # We used to match only the files named `Makefile.in', but
 
9801
    # We used to match only the files named 'Makefile.in', but
9142
9802
    # some people rename them; so instead we look at the file content.
9143
9803
    # Grep'ing the first line is not enough: some people post-process
9144
9804
    # each Makefile.in and add a new line on top of each file to say so.
9150
9810
      continue
9151
9811
    fi
9152
9812
    # Extract the definition of DEPDIR, am__include, and am__quote
9153
 
    # from the Makefile without running `make'.
 
9813
    # from the Makefile without running 'make'.
9154
9814
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9155
9815
    test -z "$DEPDIR" && continue
9156
9816
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9157
 
    test -z "am__include" && continue
 
9817
    test -z "$am__include" && continue
9158
9818
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9159
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9160
 
    U=`sed -n 's/^U = //p' < "$mf"`
9161
9819
    # Find all dependency output files, they are included files with
9162
9820
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9163
9821
    # simplest approach to changing $(DEPDIR) to its actual value in the
9164
9822
    # expansion.
9165
9823
    for file in `sed -n "
9166
9824
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9167
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9825
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9168
9826
      # Make sure the directory exists.
9169
9827
      test -f "$dirpart/$file" && continue
9170
9828
      fdir=`AS_DIRNAME(["$file"])`
9182
9840
# This macro should only be invoked once -- use via AC_REQUIRE.
9183
9841
#
9184
9842
# This code is only required when automatic dependency tracking
9185
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
9843
# is enabled.  FIXME.  This creates each '.P' file that we will
9186
9844
# need in order to bootstrap the dependency handling code.
9187
9845
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9188
9846
[AC_CONFIG_COMMANDS([depfiles],
9192
9850
 
9193
9851
# Do all the work for Automake.                             -*- Autoconf -*-
9194
9852
 
9195
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9196
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
9853
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9197
9854
#
9198
9855
# This file is free software; the Free Software Foundation
9199
9856
# gives unlimited permission to copy and/or distribute it,
9200
9857
# with or without modifications, as long as this notice is preserved.
9201
9858
 
9202
 
# serial 16
9203
 
 
9204
9859
# This macro actually does too much.  Some checks are only needed if
9205
9860
# your package does certain things.  But this isn't really a big deal.
9206
9861
 
 
9862
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
9863
m4_define([AC_PROG_CC],
 
9864
m4_defn([AC_PROG_CC])
 
9865
[_AM_PROG_CC_C_O
 
9866
])
 
9867
 
9207
9868
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9208
9869
# AM_INIT_AUTOMAKE([OPTIONS])
9209
9870
# -----------------------------------------------
9216
9877
# arguments mandatory, and then we can depend on a new Autoconf
9217
9878
# release and drop the old call support.
9218
9879
AC_DEFUN([AM_INIT_AUTOMAKE],
9219
 
[AC_PREREQ([2.62])dnl
 
9880
[AC_PREREQ([2.65])dnl
9220
9881
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9221
9882
dnl the ones we care about.
9222
9883
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9245
9906
# Define the identity of the package.
9246
9907
dnl Distinguish between old-style and new-style calls.
9247
9908
m4_ifval([$2],
9248
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
9909
[AC_DIAGNOSE([obsolete],
 
9910
             [$0: two- and three-arguments forms are deprecated.])
 
9911
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9249
9912
 AC_SUBST([PACKAGE], [$1])dnl
9250
9913
 AC_SUBST([VERSION], [$2])],
9251
9914
[_AM_SET_OPTIONS([$1])dnl
9252
9915
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9253
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
9916
m4_if(
 
9917
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
9918
  [ok:ok],,
9254
9919
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9255
9920
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9256
9921
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9257
9922
 
9258
9923
_AM_IF_OPTION([no-define],,
9259
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9260
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
9924
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
9925
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9261
9926
 
9262
9927
# Some tools Automake needs.
9263
9928
AC_REQUIRE([AM_SANITY_CHECK])dnl
9264
9929
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9265
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9266
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9267
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9268
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9269
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
9930
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
9931
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
9932
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
9933
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
9934
AM_MISSING_PROG([MAKEINFO], [makeinfo])
9270
9935
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9271
9936
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9272
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
9937
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
9938
# For better backward compatibility.  To be removed once Automake 1.9.x
 
9939
# dies out for good.  For more background, see:
 
9940
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
9941
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
9942
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9273
9943
# We need awk for the "check" target.  The system "awk" is bad on
9274
9944
# some platforms.
9275
9945
AC_REQUIRE([AC_PROG_AWK])dnl
9280
9950
                             [_AM_PROG_TAR([v7])])])
9281
9951
_AM_IF_OPTION([no-dependencies],,
9282
9952
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9283
 
                  [_AM_DEPENDENCIES(CC)],
9284
 
                  [define([AC_PROG_CC],
9285
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9953
                  [_AM_DEPENDENCIES([CC])],
 
9954
                  [m4_define([AC_PROG_CC],
 
9955
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9286
9956
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9287
 
                  [_AM_DEPENDENCIES(CXX)],
9288
 
                  [define([AC_PROG_CXX],
9289
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9957
                  [_AM_DEPENDENCIES([CXX])],
 
9958
                  [m4_define([AC_PROG_CXX],
 
9959
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9290
9960
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9291
 
                  [_AM_DEPENDENCIES(OBJC)],
9292
 
                  [define([AC_PROG_OBJC],
9293
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9961
                  [_AM_DEPENDENCIES([OBJC])],
 
9962
                  [m4_define([AC_PROG_OBJC],
 
9963
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
9964
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
9965
                  [_AM_DEPENDENCIES([OBJCXX])],
 
9966
                  [m4_define([AC_PROG_OBJCXX],
 
9967
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9294
9968
])
9295
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9296
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9297
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9298
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9969
AC_REQUIRE([AM_SILENT_RULES])dnl
 
9970
dnl The testsuite driver may need to know about EXEEXT, so add the
 
9971
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
9972
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9299
9973
AC_CONFIG_COMMANDS_PRE(dnl
9300
9974
[m4_provide_if([_AM_COMPILER_EXEEXT],
9301
9975
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9302
 
])
9303
 
 
9304
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9976
 
 
9977
# POSIX will say in a future version that running "rm -f" with no argument
 
9978
# is OK; and we want to be able to make that assumption in our Makefile
 
9979
# recipes.  So use an aggressive probe to check that the usage we want is
 
9980
# actually supported "in the wild" to an acceptable degree.
 
9981
# See automake bug#10828.
 
9982
# To make any issue more visible, cause the running configure to be aborted
 
9983
# by default if the 'rm' program in use doesn't match our expectations; the
 
9984
# user can still override this though.
 
9985
if rm -f && rm -fr && rm -rf; then : OK; else
 
9986
  cat >&2 <<'END'
 
9987
Oops!
 
9988
 
 
9989
Your 'rm' program seems unable to run without file operands specified
 
9990
on the command line, even when the '-f' option is present.  This is contrary
 
9991
to the behaviour of most rm programs out there, and not conforming with
 
9992
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
9993
 
 
9994
Please tell bug-automake@gnu.org about your system, including the value
 
9995
of your $PATH and any error possibly output before this message.  This
 
9996
can help us improve future automake versions.
 
9997
 
 
9998
END
 
9999
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
10000
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
10001
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
10002
    echo >&2
 
10003
  else
 
10004
    cat >&2 <<'END'
 
10005
Aborting the configuration process, to ensure you take notice of the issue.
 
10006
 
 
10007
You can download and install GNU coreutils to get an 'rm' implementation
 
10008
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
10009
 
 
10010
If you want to complete the configuration process using your problematic
 
10011
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
10012
to "yes", and re-run configure.
 
10013
 
 
10014
END
 
10015
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
10016
  fi
 
10017
fi])
 
10018
 
 
10019
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9305
10020
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9306
10021
dnl mangled by Autoconf and run in a shell conditional statement.
9307
10022
m4_define([_AC_COMPILER_EXEEXT],
9308
10023
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9309
10024
 
9310
 
 
9311
10025
# When config.status generates a header, we must update the stamp-h file.
9312
10026
# This file resides in the same directory as the config header
9313
10027
# that is generated.  The stamp files are numbered to have different names.
9329
10043
done
9330
10044
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9331
10045
 
9332
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10046
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9333
10047
#
9334
10048
# This file is free software; the Free Software Foundation
9335
10049
# gives unlimited permission to copy and/or distribute it,
9348
10062
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9349
10063
  esac
9350
10064
fi
9351
 
AC_SUBST(install_sh)])
 
10065
AC_SUBST([install_sh])])
9352
10066
 
9353
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
10067
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
9354
10068
#
9355
10069
# This file is free software; the Free Software Foundation
9356
10070
# gives unlimited permission to copy and/or distribute it,
9357
10071
# with or without modifications, as long as this notice is preserved.
9358
10072
 
9359
 
# serial 2
9360
 
 
9361
10073
# Check whether the underlying file-system supports filenames
9362
10074
# with a leading dot.  For instance MS-DOS doesn't.
9363
10075
AC_DEFUN([AM_SET_LEADING_DOT],
9374
10086
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9375
10087
# From Jim Meyering
9376
10088
 
9377
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9378
 
# Free Software Foundation, Inc.
 
10089
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9379
10090
#
9380
10091
# This file is free software; the Free Software Foundation
9381
10092
# gives unlimited permission to copy and/or distribute it,
9382
10093
# with or without modifications, as long as this notice is preserved.
9383
10094
 
9384
 
# serial 5
9385
 
 
9386
10095
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9387
10096
# ----------------------------------
9388
10097
# Control maintainer-specific portions of Makefiles.
9389
 
# Default is to disable them, unless `enable' is passed literally.
9390
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
10098
# Default is to disable them, unless 'enable' is passed literally.
 
10099
# For symmetry, 'disable' may be passed as well.  Anyway, the user
9391
10100
# can override the default with the --enable/--disable switch.
9392
10101
AC_DEFUN([AM_MAINTAINER_MODE],
9393
10102
[m4_case(m4_default([$1], [disable]),
9395
10104
       [disable], [m4_define([am_maintainer_other], [enable])],
9396
10105
       [m4_define([am_maintainer_other], [enable])
9397
10106
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9398
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
10107
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9399
10108
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9400
10109
  AC_ARG_ENABLE([maintainer-mode],
9401
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9402
 
                          (and sometimes confusing) to the casual installer],
9403
 
      [USE_MAINTAINER_MODE=$enableval],
9404
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
10110
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
10111
      am_maintainer_other[ make rules and dependencies not useful
 
10112
      (and sometimes confusing) to the casual installer])],
 
10113
    [USE_MAINTAINER_MODE=$enableval],
 
10114
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9405
10115
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9406
10116
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9407
10117
  MAINT=$MAINTAINER_MODE_TRUE
9409
10119
]
9410
10120
)
9411
10121
 
9412
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9413
 
 
9414
10122
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9415
10123
 
9416
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
10124
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9417
10125
#
9418
10126
# This file is free software; the Free Software Foundation
9419
10127
# gives unlimited permission to copy and/or distribute it,
9420
10128
# with or without modifications, as long as this notice is preserved.
9421
10129
 
9422
 
# serial 4
9423
 
 
9424
10130
# AM_MAKE_INCLUDE()
9425
10131
# -----------------
9426
10132
# Check to see how make treats includes.
9438
10144
_am_result=none
9439
10145
# First try GNU make style include.
9440
10146
echo "include confinc" > confmf
9441
 
# Ignore all kinds of additional output from `make'.
 
10147
# Ignore all kinds of additional output from 'make'.
9442
10148
case `$am_make -s -f confmf 2> /dev/null` in #(
9443
10149
*the\ am__doit\ target*)
9444
10150
  am__include=include
9465
10171
 
9466
10172
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9467
10173
 
9468
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9469
 
# Free Software Foundation, Inc.
 
10174
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9470
10175
#
9471
10176
# This file is free software; the Free Software Foundation
9472
10177
# gives unlimited permission to copy and/or distribute it,
9473
10178
# with or without modifications, as long as this notice is preserved.
9474
10179
 
9475
 
# serial 6
9476
 
 
9477
10180
# AM_MISSING_PROG(NAME, PROGRAM)
9478
10181
# ------------------------------
9479
10182
AC_DEFUN([AM_MISSING_PROG],
9481
10184
$1=${$1-"${am_missing_run}$2"}
9482
10185
AC_SUBST($1)])
9483
10186
 
9484
 
 
9485
10187
# AM_MISSING_HAS_RUN
9486
10188
# ------------------
9487
 
# Define MISSING if not defined so far and test if it supports --run.
9488
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
10189
# Define MISSING if not defined so far and test if it is modern enough.
 
10190
# If it is, set am_missing_run to use it, otherwise, to nothing.
9489
10191
AC_DEFUN([AM_MISSING_HAS_RUN],
9490
10192
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9491
10193
AC_REQUIRE_AUX_FILE([missing])dnl
9498
10200
  esac
9499
10201
fi
9500
10202
# Use eval to expand $SHELL
9501
 
if eval "$MISSING --run true"; then
9502
 
  am_missing_run="$MISSING --run "
 
10203
if eval "$MISSING --is-lightweight"; then
 
10204
  am_missing_run="$MISSING "
9503
10205
else
9504
10206
  am_missing_run=
9505
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
10207
  AC_MSG_WARN(['missing' script is too old or missing])
9506
10208
fi
9507
10209
])
9508
10210
 
9509
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9510
 
#
9511
 
# This file is free software; the Free Software Foundation
9512
 
# gives unlimited permission to copy and/or distribute it,
9513
 
# with or without modifications, as long as this notice is preserved.
9514
 
 
9515
 
# AM_PROG_MKDIR_P
9516
 
# ---------------
9517
 
# Check for `mkdir -p'.
9518
 
AC_DEFUN([AM_PROG_MKDIR_P],
9519
 
[AC_PREREQ([2.60])dnl
9520
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9521
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9522
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9523
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9524
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9525
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9526
 
dnl adjustment using top_builddir (which is defined more often than
9527
 
dnl MKDIR_P).
9528
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9529
 
case $mkdir_p in
9530
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9531
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9532
 
esac
9533
 
])
9534
 
 
9535
10211
# Helper functions for option handling.                     -*- Autoconf -*-
9536
10212
 
9537
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10213
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9538
10214
#
9539
10215
# This file is free software; the Free Software Foundation
9540
10216
# gives unlimited permission to copy and/or distribute it,
9541
10217
# with or without modifications, as long as this notice is preserved.
9542
10218
 
9543
 
# serial 4
9544
 
 
9545
10219
# _AM_MANGLE_OPTION(NAME)
9546
10220
# -----------------------
9547
10221
AC_DEFUN([_AM_MANGLE_OPTION],
9548
10222
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9549
10223
 
9550
10224
# _AM_SET_OPTION(NAME)
9551
 
# ------------------------------
 
10225
# --------------------
9552
10226
# Set option NAME.  Presently that only means defining a flag for this option.
9553
10227
AC_DEFUN([_AM_SET_OPTION],
9554
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
10228
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9555
10229
 
9556
10230
# _AM_SET_OPTIONS(OPTIONS)
9557
 
# ----------------------------------
 
10231
# ------------------------
9558
10232
# OPTIONS is a space-separated list of Automake options.
9559
10233
AC_DEFUN([_AM_SET_OPTIONS],
9560
10234
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9565
10239
AC_DEFUN([_AM_IF_OPTION],
9566
10240
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9567
10241
 
9568
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
9569
 
# Free Software Foundation, Inc.
9570
 
#
9571
 
# This file is free software; the Free Software Foundation
9572
 
# gives unlimited permission to copy and/or distribute it,
9573
 
# with or without modifications, as long as this notice is preserved.
 
10242
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
10243
#
 
10244
# This file is free software; the Free Software Foundation
 
10245
# gives unlimited permission to copy and/or distribute it,
 
10246
# with or without modifications, as long as this notice is preserved.
 
10247
 
 
10248
# _AM_PROG_CC_C_O
 
10249
# ---------------
 
10250
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
10251
# to automatically call this.
 
10252
AC_DEFUN([_AM_PROG_CC_C_O],
 
10253
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10254
AC_REQUIRE_AUX_FILE([compile])dnl
 
10255
AC_LANG_PUSH([C])dnl
 
10256
AC_CACHE_CHECK(
 
10257
  [whether $CC understands -c and -o together],
 
10258
  [am_cv_prog_cc_c_o],
 
10259
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
10260
  # Make sure it works both with $CC and with simple cc.
 
10261
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
10262
  # compilers refuse to overwrite an existing .o file with -o,
 
10263
  # though they will create one.
 
10264
  am_cv_prog_cc_c_o=yes
 
10265
  for am_i in 1 2; do
 
10266
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
10267
         && test -f conftest2.$ac_objext; then
 
10268
      : OK
 
10269
    else
 
10270
      am_cv_prog_cc_c_o=no
 
10271
      break
 
10272
    fi
 
10273
  done
 
10274
  rm -f core conftest*
 
10275
  unset am_i])
 
10276
if test "$am_cv_prog_cc_c_o" != yes; then
 
10277
   # Losing compiler, so override with the script.
 
10278
   # FIXME: It is wrong to rewrite CC.
 
10279
   # But if we don't then we get into trouble of one sort or another.
 
10280
   # A longer-term fix would be to have automake use am__CC in this case,
 
10281
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
10282
   CC="$am_aux_dir/compile $CC"
 
10283
fi
 
10284
AC_LANG_POP([C])])
 
10285
 
 
10286
# For backward compatibility.
 
10287
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
10288
 
 
10289
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
10290
#
 
10291
# This file is free software; the Free Software Foundation
 
10292
# gives unlimited permission to copy and/or distribute it,
 
10293
# with or without modifications, as long as this notice is preserved.
 
10294
 
9574
10295
 
9575
10296
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9576
10297
# ---------------------------------------------------------------------------
9599
10320
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
9600
10321
  dnl supported. (2.0 was released on October 16, 2000).
9601
10322
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
9602
 
                    [python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 dnl
9603
 
python2.1 python2.0])
 
10323
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
 
10324
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
 
10325
 
 
10326
  AC_ARG_VAR([PYTHON], [the Python interpreter])
9604
10327
 
9605
10328
  m4_if([$1],[],[
9606
10329
    dnl No version check is needed.
9613
10336
    dnl A version check is needed.
9614
10337
    if test -n "$PYTHON"; then
9615
10338
      # If the user set $PYTHON, use it and don't search something else.
9616
 
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 
10339
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
9617
10340
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
9618
 
                              [AC_MSG_RESULT(yes)],
9619
 
                              [AC_MSG_ERROR(too old)])
 
10341
                              [AC_MSG_RESULT([yes])],
 
10342
                              [AC_MSG_RESULT([no])
 
10343
                               AC_MSG_ERROR([Python interpreter is too old])])
9620
10344
      am_display_PYTHON=$PYTHON
9621
10345
    else
9622
10346
      # Otherwise, try each interpreter until we find one that satisfies
9665
10389
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
9666
10390
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
9667
10391
 
 
10392
  # Just factor out some code duplication.
 
10393
  am_python_setup_sysconfig="\
 
10394
import sys
 
10395
# Prefer sysconfig over distutils.sysconfig, for better compatibility
 
10396
# with python 3.x.  See automake bug#10227.
 
10397
try:
 
10398
    import sysconfig
 
10399
except ImportError:
 
10400
    can_use_sysconfig = 0
 
10401
else:
 
10402
    can_use_sysconfig = 1
 
10403
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 
10404
# <https://github.com/pypa/virtualenv/issues/118>
 
10405
try:
 
10406
    from platform import python_implementation
 
10407
    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
 
10408
        can_use_sysconfig = 0
 
10409
except ImportError:
 
10410
    pass"
9668
10411
 
9669
10412
  dnl Set up 4 directories:
9670
10413
 
9672
10415
  dnl   site-packages directory, not the python standard library
9673
10416
  dnl   directory like in previous automake betas.  This behavior
9674
10417
  dnl   is more consistent with lispdir.m4 for example.
9675
 
  dnl Query distutils for this directory.  distutils does not exist in
9676
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
9677
 
  dnl doesn't work.
 
10418
  dnl Query distutils for this directory.
9678
10419
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
9679
10420
    [am_cv_python_pythondir],
9680
10421
    [if test "x$prefix" = xNONE
9683
10424
     else
9684
10425
       am_py_prefix=$prefix
9685
10426
     fi
9686
 
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
9687
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
10427
     am_cv_python_pythondir=`$PYTHON -c "
 
10428
$am_python_setup_sysconfig
 
10429
if can_use_sysconfig:
 
10430
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 
10431
else:
 
10432
    from distutils import sysconfig
 
10433
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 
10434
sys.stdout.write(sitedir)"`
9688
10435
     case $am_cv_python_pythondir in
9689
10436
     $am_py_prefix*)
9690
10437
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9710
10457
 
9711
10458
  dnl pyexecdir -- directory for installing python extension modules
9712
10459
  dnl   (shared libraries)
9713
 
  dnl Query distutils for this directory.  distutils does not exist in
9714
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
9715
 
  dnl doesn't work.
 
10460
  dnl Query distutils for this directory.
9716
10461
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
9717
10462
    [am_cv_python_pyexecdir],
9718
10463
    [if test "x$exec_prefix" = xNONE
9721
10466
     else
9722
10467
       am_py_exec_prefix=$exec_prefix
9723
10468
     fi
9724
 
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
9725
 
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
10469
     am_cv_python_pyexecdir=`$PYTHON -c "
 
10470
$am_python_setup_sysconfig
 
10471
if can_use_sysconfig:
 
10472
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
 
10473
else:
 
10474
    from distutils import sysconfig
 
10475
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
 
10476
sys.stdout.write(sitedir)"`
9726
10477
     case $am_cv_python_pyexecdir in
9727
10478
     $am_py_exec_prefix*)
9728
10479
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9770
10521
sys.exit(sys.hexversion < minverhex)"
9771
10522
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
9772
10523
 
9773
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10524
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9774
10525
#
9775
10526
# This file is free software; the Free Software Foundation
9776
10527
# gives unlimited permission to copy and/or distribute it,
9789
10540
 
9790
10541
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9791
10542
 
9792
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9793
 
# Free Software Foundation, Inc.
 
10543
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9794
10544
#
9795
10545
# This file is free software; the Free Software Foundation
9796
10546
# gives unlimited permission to copy and/or distribute it,
9797
10547
# with or without modifications, as long as this notice is preserved.
9798
10548
 
9799
 
# serial 5
9800
 
 
9801
10549
# AM_SANITY_CHECK
9802
10550
# ---------------
9803
10551
AC_DEFUN([AM_SANITY_CHECK],
9804
10552
[AC_MSG_CHECKING([whether build environment is sane])
9805
 
# Just in case
9806
 
sleep 1
9807
 
echo timestamp > conftest.file
9808
10553
# Reject unsafe characters in $srcdir or the absolute working directory
9809
10554
# name.  Accept space and tab only in the latter.
9810
10555
am_lf='
9815
10560
esac
9816
10561
case $srcdir in
9817
10562
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9818
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
10563
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9819
10564
esac
9820
10565
 
9821
 
# Do `set' in a subshell so we don't clobber the current shell's
 
10566
# Do 'set' in a subshell so we don't clobber the current shell's
9822
10567
# arguments.  Must try -L first in case configure is actually a
9823
10568
# symlink; some systems play weird games with the mod time of symlinks
9824
10569
# (eg FreeBSD returns the mod time of the symlink's containing
9825
10570
# directory).
9826
10571
if (
9827
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9828
 
   if test "$[*]" = "X"; then
9829
 
      # -L didn't work.
9830
 
      set X `ls -t "$srcdir/configure" conftest.file`
9831
 
   fi
9832
 
   rm -f conftest.file
9833
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9834
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9835
 
 
9836
 
      # If neither matched, then we have a broken ls.  This can happen
9837
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9838
 
      # broken ls alias from the environment.  This has actually
9839
 
      # happened.  Such a system could not be considered "sane".
9840
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9841
 
alias in your environment])
9842
 
   fi
9843
 
 
 
10572
   am_has_slept=no
 
10573
   for am_try in 1 2; do
 
10574
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
10575
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
10576
     if test "$[*]" = "X"; then
 
10577
        # -L didn't work.
 
10578
        set X `ls -t "$srcdir/configure" conftest.file`
 
10579
     fi
 
10580
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
10581
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
10582
 
 
10583
        # If neither matched, then we have a broken ls.  This can happen
 
10584
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
10585
        # broken ls alias from the environment.  This has actually
 
10586
        # happened.  Such a system could not be considered "sane".
 
10587
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
10588
  alias in your environment])
 
10589
     fi
 
10590
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
10591
       break
 
10592
     fi
 
10593
     # Just in case.
 
10594
     sleep 1
 
10595
     am_has_slept=yes
 
10596
   done
9844
10597
   test "$[2]" = conftest.file
9845
10598
   )
9846
10599
then
9850
10603
   AC_MSG_ERROR([newly created file is older than distributed files!
9851
10604
Check your system clock])
9852
10605
fi
9853
 
AC_MSG_RESULT(yes)])
9854
 
 
9855
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10606
AC_MSG_RESULT([yes])
 
10607
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
10608
# generated files are strictly newer.
 
10609
am_sleep_pid=
 
10610
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
10611
  ( sleep 1 ) &
 
10612
  am_sleep_pid=$!
 
10613
fi
 
10614
AC_CONFIG_COMMANDS_PRE(
 
10615
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
10616
   if test -n "$am_sleep_pid"; then
 
10617
     # Hide warnings about reused PIDs.
 
10618
     wait $am_sleep_pid 2>/dev/null
 
10619
   fi
 
10620
   AC_MSG_RESULT([done])])
 
10621
rm -f conftest.file
 
10622
])
 
10623
 
 
10624
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
10625
#
 
10626
# This file is free software; the Free Software Foundation
 
10627
# gives unlimited permission to copy and/or distribute it,
 
10628
# with or without modifications, as long as this notice is preserved.
 
10629
 
 
10630
# AM_SILENT_RULES([DEFAULT])
 
10631
# --------------------------
 
10632
# Enable less verbose build rules; with the default set to DEFAULT
 
10633
# ("yes" being less verbose, "no" or empty being verbose).
 
10634
AC_DEFUN([AM_SILENT_RULES],
 
10635
[AC_ARG_ENABLE([silent-rules], [dnl
 
10636
AS_HELP_STRING(
 
10637
  [--enable-silent-rules],
 
10638
  [less verbose build output (undo: "make V=1")])
 
10639
AS_HELP_STRING(
 
10640
  [--disable-silent-rules],
 
10641
  [verbose build output (undo: "make V=0")])dnl
 
10642
])
 
10643
case $enable_silent_rules in @%:@ (((
 
10644
  yes) AM_DEFAULT_VERBOSITY=0;;
 
10645
   no) AM_DEFAULT_VERBOSITY=1;;
 
10646
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
10647
esac
 
10648
dnl
 
10649
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
10650
dnl do not support nested variable expansions.
 
10651
dnl See automake bug#9928 and bug#10237.
 
10652
am_make=${MAKE-make}
 
10653
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
10654
   [am_cv_make_support_nested_variables],
 
10655
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
10656
BAR0=false
 
10657
BAR1=true
 
10658
V=1
 
10659
am__doit:
 
10660
        @$(TRUE)
 
10661
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
10662
  am_cv_make_support_nested_variables=yes
 
10663
else
 
10664
  am_cv_make_support_nested_variables=no
 
10665
fi])
 
10666
if test $am_cv_make_support_nested_variables = yes; then
 
10667
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
10668
  AM_V='$(V)'
 
10669
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
10670
else
 
10671
  AM_V=$AM_DEFAULT_VERBOSITY
 
10672
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
10673
fi
 
10674
AC_SUBST([AM_V])dnl
 
10675
AM_SUBST_NOTMAKE([AM_V])dnl
 
10676
AC_SUBST([AM_DEFAULT_V])dnl
 
10677
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
10678
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10679
AM_BACKSLASH='\'
 
10680
AC_SUBST([AM_BACKSLASH])dnl
 
10681
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10682
])
 
10683
 
 
10684
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9856
10685
#
9857
10686
# This file is free software; the Free Software Foundation
9858
10687
# gives unlimited permission to copy and/or distribute it,
9860
10689
 
9861
10690
# AM_PROG_INSTALL_STRIP
9862
10691
# ---------------------
9863
 
# One issue with vendor `install' (even GNU) is that you can't
 
10692
# One issue with vendor 'install' (even GNU) is that you can't
9864
10693
# specify the program used to strip binaries.  This is especially
9865
10694
# annoying in cross-compiling environments, where the build's strip
9866
10695
# is unlikely to handle the host's binaries.
9867
10696
# Fortunately install-sh will honor a STRIPPROG variable, so we
9868
 
# always use install-sh in `make install-strip', and initialize
 
10697
# always use install-sh in "make install-strip", and initialize
9869
10698
# STRIPPROG with the value of the STRIP variable (set by the user).
9870
10699
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9871
10700
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9872
 
# Installed binaries are usually stripped using `strip' when the user
9873
 
# run `make install-strip'.  However `strip' might not be the right
 
10701
# Installed binaries are usually stripped using 'strip' when the user
 
10702
# run "make install-strip".  However 'strip' might not be the right
9874
10703
# tool to use in cross-compilation environments, therefore Automake
9875
 
# will honor the `STRIP' environment variable to overrule this program.
9876
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
10704
# will honor the 'STRIP' environment variable to overrule this program.
 
10705
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
9877
10706
if test "$cross_compiling" != no; then
9878
10707
  AC_CHECK_TOOL([STRIP], [strip], :)
9879
10708
fi
9880
10709
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9881
10710
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9882
10711
 
9883
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
10712
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
9884
10713
#
9885
10714
# This file is free software; the Free Software Foundation
9886
10715
# gives unlimited permission to copy and/or distribute it,
9887
10716
# with or without modifications, as long as this notice is preserved.
9888
10717
 
9889
 
# serial 2
9890
 
 
9891
10718
# _AM_SUBST_NOTMAKE(VARIABLE)
9892
10719
# ---------------------------
9893
10720
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9895
10722
AC_DEFUN([_AM_SUBST_NOTMAKE])
9896
10723
 
9897
10724
# AM_SUBST_NOTMAKE(VARIABLE)
9898
 
# ---------------------------
 
10725
# --------------------------
9899
10726
# Public sister of _AM_SUBST_NOTMAKE.
9900
10727
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9901
10728
 
9902
10729
# Check how to create a tarball.                            -*- Autoconf -*-
9903
10730
 
9904
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10731
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
9905
10732
#
9906
10733
# This file is free software; the Free Software Foundation
9907
10734
# gives unlimited permission to copy and/or distribute it,
9908
10735
# with or without modifications, as long as this notice is preserved.
9909
10736
 
9910
 
# serial 2
9911
 
 
9912
10737
# _AM_PROG_TAR(FORMAT)
9913
10738
# --------------------
9914
10739
# Check how to create a tarball in format FORMAT.
9915
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
10740
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
9916
10741
#
9917
10742
# Substitute a variable $(am__tar) that is a command
9918
10743
# writing to stdout a FORMAT-tarball containing the directory
9922
10747
# Substitute a variable $(am__untar) that extract such
9923
10748
# a tarball read from stdin.
9924
10749
#     $(am__untar) < result.tar
 
10750
#
9925
10751
AC_DEFUN([_AM_PROG_TAR],
9926
 
[# Always define AMTAR for backward compatibility.
9927
 
AM_MISSING_PROG([AMTAR], [tar])
 
10752
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
10753
# in the wild :-(  We should find a proper way to deprecate it ...
 
10754
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
10755
 
 
10756
# We'll loop over all known methods to create a tar archive until one works.
 
10757
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10758
 
9928
10759
m4_if([$1], [v7],
9929
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9930
 
     [m4_case([$1], [ustar],, [pax],,
9931
 
              [m4_fatal([Unknown tar format])])
9932
 
AC_MSG_CHECKING([how to create a $1 tar archive])
9933
 
# Loop over all known methods to create a tar archive until one works.
9934
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9935
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9936
 
# Do not fold the above two line into one, because Tru64 sh and
9937
 
# Solaris sh will not grok spaces in the rhs of `-'.
9938
 
for _am_tool in $_am_tools
9939
 
do
9940
 
  case $_am_tool in
9941
 
  gnutar)
9942
 
    for _am_tar in tar gnutar gtar;
9943
 
    do
9944
 
      AM_RUN_LOG([$_am_tar --version]) && break
9945
 
    done
9946
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9947
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9948
 
    am__untar="$_am_tar -xf -"
9949
 
    ;;
9950
 
  plaintar)
9951
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
9952
 
    # ustar tarball either.
9953
 
    (tar --version) >/dev/null 2>&1 && continue
9954
 
    am__tar='tar chf - "$$tardir"'
9955
 
    am__tar_='tar chf - "$tardir"'
9956
 
    am__untar='tar xf -'
9957
 
    ;;
9958
 
  pax)
9959
 
    am__tar='pax -L -x $1 -w "$$tardir"'
9960
 
    am__tar_='pax -L -x $1 -w "$tardir"'
9961
 
    am__untar='pax -r'
9962
 
    ;;
9963
 
  cpio)
9964
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9965
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9966
 
    am__untar='cpio -i -H $1 -d'
9967
 
    ;;
9968
 
  none)
9969
 
    am__tar=false
9970
 
    am__tar_=false
9971
 
    am__untar=false
9972
 
    ;;
9973
 
  esac
9974
 
 
9975
 
  # If the value was cached, stop now.  We just wanted to have am__tar
9976
 
  # and am__untar set.
9977
 
  test -n "${am_cv_prog_tar_$1}" && break
9978
 
 
9979
 
  # tar/untar a dummy directory, and stop if the command works
9980
 
  rm -rf conftest.dir
9981
 
  mkdir conftest.dir
9982
 
  echo GrepMe > conftest.dir/file
9983
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9984
 
  rm -rf conftest.dir
9985
 
  if test -s conftest.tar; then
9986
 
    AM_RUN_LOG([$am__untar <conftest.tar])
9987
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9988
 
  fi
9989
 
done
9990
 
rm -rf conftest.dir
9991
 
 
9992
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9993
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10760
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
10761
 
 
10762
  [m4_case([$1],
 
10763
    [ustar],
 
10764
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
10765
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
10766
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
10767
      # and bug#13588).
 
10768
      am_max_uid=2097151 # 2^21 - 1
 
10769
      am_max_gid=$am_max_uid
 
10770
      # The $UID and $GID variables are not portable, so we need to resort
 
10771
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
10772
      # below are definitely unexpected, so allow the users to see them
 
10773
      # (that is, avoid stderr redirection).
 
10774
      am_uid=`id -u || echo unknown`
 
10775
      am_gid=`id -g || echo unknown`
 
10776
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
10777
      if test $am_uid -le $am_max_uid; then
 
10778
         AC_MSG_RESULT([yes])
 
10779
      else
 
10780
         AC_MSG_RESULT([no])
 
10781
         _am_tools=none
 
10782
      fi
 
10783
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
10784
      if test $am_gid -le $am_max_gid; then
 
10785
         AC_MSG_RESULT([yes])
 
10786
      else
 
10787
        AC_MSG_RESULT([no])
 
10788
        _am_tools=none
 
10789
      fi],
 
10790
 
 
10791
  [pax],
 
10792
    [],
 
10793
 
 
10794
  [m4_fatal([Unknown tar format])])
 
10795
 
 
10796
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
10797
 
 
10798
  # Go ahead even if we have the value already cached.  We do so because we
 
10799
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
10800
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10801
 
 
10802
  for _am_tool in $_am_tools; do
 
10803
    case $_am_tool in
 
10804
    gnutar)
 
10805
      for _am_tar in tar gnutar gtar; do
 
10806
        AM_RUN_LOG([$_am_tar --version]) && break
 
10807
      done
 
10808
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10809
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10810
      am__untar="$_am_tar -xf -"
 
10811
      ;;
 
10812
    plaintar)
 
10813
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
10814
      # ustar tarball either.
 
10815
      (tar --version) >/dev/null 2>&1 && continue
 
10816
      am__tar='tar chf - "$$tardir"'
 
10817
      am__tar_='tar chf - "$tardir"'
 
10818
      am__untar='tar xf -'
 
10819
      ;;
 
10820
    pax)
 
10821
      am__tar='pax -L -x $1 -w "$$tardir"'
 
10822
      am__tar_='pax -L -x $1 -w "$tardir"'
 
10823
      am__untar='pax -r'
 
10824
      ;;
 
10825
    cpio)
 
10826
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10827
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10828
      am__untar='cpio -i -H $1 -d'
 
10829
      ;;
 
10830
    none)
 
10831
      am__tar=false
 
10832
      am__tar_=false
 
10833
      am__untar=false
 
10834
      ;;
 
10835
    esac
 
10836
 
 
10837
    # If the value was cached, stop now.  We just wanted to have am__tar
 
10838
    # and am__untar set.
 
10839
    test -n "${am_cv_prog_tar_$1}" && break
 
10840
 
 
10841
    # tar/untar a dummy directory, and stop if the command works.
 
10842
    rm -rf conftest.dir
 
10843
    mkdir conftest.dir
 
10844
    echo GrepMe > conftest.dir/file
 
10845
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10846
    rm -rf conftest.dir
 
10847
    if test -s conftest.tar; then
 
10848
      AM_RUN_LOG([$am__untar <conftest.tar])
 
10849
      AM_RUN_LOG([cat conftest.dir/file])
 
10850
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10851
    fi
 
10852
  done
 
10853
  rm -rf conftest.dir
 
10854
 
 
10855
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10856
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10857
 
9994
10858
AC_SUBST([am__tar])
9995
10859
AC_SUBST([am__untar])
9996
10860
]) # _AM_PROG_TAR