~ubuntu-branches/ubuntu/trusty/xfce4-indicator-plugin/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Unit 193
  • Date: 2014-02-13 16:07:50 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20140213160750-d34ou82fz6gn1z2n
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
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.68],,
17
 
[m4_warning([this file was generated for autoconf 2.68.
 
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
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
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, 2009, 2010 Free Software Foundation,
653
 
#                 Inc.
 
678
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
679
#                 Foundation, Inc.
654
680
#   Written by Gordon Matzigkeit, 1996
655
681
#
656
682
# This file is free software; the Free Software Foundation gives
659
685
 
660
686
m4_define([_LT_COPYING], [dnl
661
687
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
662
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
663
 
#                 Inc.
 
688
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
689
#                 Foundation, Inc.
664
690
#   Written by Gordon Matzigkeit, 1996
665
691
#
666
692
#   This file is part of GNU Libtool.
794
820
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
795
821
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
796
822
 
 
823
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
824
dnl
797
825
_LT_DECL([], [host_alias], [0], [The host system])dnl
798
826
_LT_DECL([], [host], [0])dnl
799
827
_LT_DECL([], [host_os], [0])dnl
1279
1307
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1280
1308
configured by $[0], generated by m4_PACKAGE_STRING.
1281
1309
 
1282
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
1310
Copyright (C) 2011 Free Software Foundation, Inc.
1283
1311
This config.lt script is free software; the Free Software Foundation
1284
1312
gives unlimited permision to copy, distribute and modify it."
1285
1313
 
1443
1471
m4_case([$1],
1444
1472
  [C],                  [_LT_LANG(C)],
1445
1473
  [C++],                [_LT_LANG(CXX)],
 
1474
  [Go],                 [_LT_LANG(GO)],
1446
1475
  [Java],               [_LT_LANG(GCJ)],
1447
1476
  [Fortran 77],         [_LT_LANG(F77)],
1448
1477
  [Fortran],            [_LT_LANG(FC)],
1464
1493
])# _LT_LANG
1465
1494
 
1466
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
 
1467
1519
# _LT_LANG_DEFAULT_CONFIG
1468
1520
# -----------------------
1469
1521
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1494
1546
       m4_ifdef([LT_PROG_GCJ],
1495
1547
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1496
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
 
1497
1553
AC_PROVIDE_IFELSE([LT_PROG_RC],
1498
1554
  [LT_LANG(RC)],
1499
1555
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1596
1652
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1597
1653
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1598
1654
        _lt_result=$?
1599
 
        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
1600
1662
          lt_cv_apple_cc_single_mod=yes
1601
1663
        else
1602
1664
          cat conftest.err >&AS_MESSAGE_LOG_FD
1604
1666
        rm -rf libconftest.dylib*
1605
1667
        rm -f conftest.*
1606
1668
      fi])
 
1669
 
1607
1670
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1608
1671
      [lt_cv_ld_exported_symbols_list],
1609
1672
      [lt_cv_ld_exported_symbols_list=no
1615
1678
        [lt_cv_ld_exported_symbols_list=no])
1616
1679
        LDFLAGS="$save_LDFLAGS"
1617
1680
    ])
 
1681
 
1618
1682
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1619
1683
      [lt_cv_ld_force_load=no
1620
1684
      cat > conftest.c << _LT_EOF
1632
1696
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1633
1697
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1634
1698
      _lt_result=$?
1635
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
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
1636
1702
        lt_cv_ld_force_load=yes
1637
1703
      else
1638
1704
        cat conftest.err >&AS_MESSAGE_LOG_FD
1677
1743
])
1678
1744
 
1679
1745
 
1680
 
# _LT_DARWIN_LINKER_FEATURES
1681
 
# --------------------------
 
1746
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1747
# ---------------------------------
1682
1748
# Checks for linker and compiler features on darwin
1683
1749
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1684
1750
[
1689
1755
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1690
1756
  if test "$lt_cv_ld_force_load" = "yes"; then
1691
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])
1692
1760
  else
1693
1761
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1694
1762
  fi
1922
1990
            LD="${LD-ld} -m elf_i386_fbsd"
1923
1991
            ;;
1924
1992
          x86_64-*linux*)
1925
 
            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
1926
2001
            ;;
1927
2002
          ppc64-*linux*|powerpc64-*linux*)
1928
2003
            LD="${LD-ld} -m elf32ppclinux"
1972
2047
    CFLAGS="$SAVE_CFLAGS"
1973
2048
  fi
1974
2049
  ;;
1975
 
sparc*-*solaris*)
 
2050
*-*solaris*)
1976
2051
  # Find out which ABI we are using.
1977
2052
  echo 'int i;' > conftest.$ac_ext
1978
2053
  if AC_TRY_EVAL(ac_compile); then
1979
2054
    case `/usr/bin/file conftest.o` in
1980
2055
    *64-bit*)
1981
2056
      case $lt_cv_prog_gnu_ld in
1982
 
      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
        ;;
1983
2071
      *)
1984
2072
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1985
2073
          LD="${LD-ld} -64"
2056
2144
if test -n "$RANLIB"; then
2057
2145
  case $host_os in
2058
2146
  openbsd*)
2059
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2147
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2060
2148
    ;;
2061
2149
  *)
2062
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2150
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2063
2151
    ;;
2064
2152
  esac
2065
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2153
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2066
2154
fi
2067
2155
 
2068
2156
case $host_os in
2242
2330
    lt_cv_sys_max_cmd_len=196608
2243
2331
    ;;
2244
2332
 
 
2333
  os2*)
 
2334
    # The test takes a long time on OS/2.
 
2335
    lt_cv_sys_max_cmd_len=8192
 
2336
    ;;
 
2337
 
2245
2338
  osf*)
2246
2339
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2247
2340
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2268
2361
    ;;
2269
2362
  *)
2270
2363
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2271
 
    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
2272
2366
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2273
2367
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2274
2368
    else
2281
2375
      # If test is not a shell built-in, we'll probably end up computing a
2282
2376
      # maximum length that is only half of the actual maximum length, but
2283
2377
      # we can't tell.
2284
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2378
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2285
2379
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2286
2380
              test $i != 17 # 1/2 MB should be enough
2287
2381
      do
2827
2921
 
2828
2922
case $host_os in
2829
2923
aix3*)
2830
 
  version_type=linux
 
2924
  version_type=linux # correct to gnu/linux during the next big refactor
2831
2925
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2832
2926
  shlibpath_var=LIBPATH
2833
2927
 
2836
2930
  ;;
2837
2931
 
2838
2932
aix[[4-9]]*)
2839
 
  version_type=linux
 
2933
  version_type=linux # correct to gnu/linux during the next big refactor
2840
2934
  need_lib_prefix=no
2841
2935
  need_version=no
2842
2936
  hardcode_into_libs=yes
2901
2995
  ;;
2902
2996
 
2903
2997
bsdi[[45]]*)
2904
 
  version_type=linux
 
2998
  version_type=linux # correct to gnu/linux during the next big refactor
2905
2999
  need_version=no
2906
3000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2907
3001
  soname_spec='${libname}${release}${shared_ext}$major'
3040
3134
  ;;
3041
3135
 
3042
3136
dgux*)
3043
 
  version_type=linux
 
3137
  version_type=linux # correct to gnu/linux during the next big refactor
3044
3138
  need_lib_prefix=no
3045
3139
  need_version=no
3046
3140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3048
3142
  shlibpath_var=LD_LIBRARY_PATH
3049
3143
  ;;
3050
3144
 
3051
 
freebsd1*)
3052
 
  dynamic_linker=no
3053
 
  ;;
3054
 
 
3055
3145
freebsd* | dragonfly*)
3056
3146
  # DragonFly does not have aout.  When/if they implement a new
3057
3147
  # versioning mechanism, adjust this.
3059
3149
    objformat=`/usr/bin/objformat`
3060
3150
  else
3061
3151
    case $host_os in
3062
 
    freebsd[[123]]*) objformat=aout ;;
 
3152
    freebsd[[23]].*) objformat=aout ;;
3063
3153
    *) objformat=elf ;;
3064
3154
    esac
3065
3155
  fi
3077
3167
  esac
3078
3168
  shlibpath_var=LD_LIBRARY_PATH
3079
3169
  case $host_os in
3080
 
  freebsd2*)
 
3170
  freebsd2.*)
3081
3171
    shlibpath_overrides_runpath=yes
3082
3172
    ;;
3083
3173
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3096
3186
  esac
3097
3187
  ;;
3098
3188
 
3099
 
gnu*)
3100
 
  version_type=linux
3101
 
  need_lib_prefix=no
3102
 
  need_version=no
3103
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3104
 
  soname_spec='${libname}${release}${shared_ext}$major'
3105
 
  shlibpath_var=LD_LIBRARY_PATH
3106
 
  hardcode_into_libs=yes
3107
 
  ;;
3108
 
 
3109
3189
haiku*)
3110
 
  version_type=linux
 
3190
  version_type=linux # correct to gnu/linux during the next big refactor
3111
3191
  need_lib_prefix=no
3112
3192
  need_version=no
3113
3193
  dynamic_linker="$host_os runtime_loader"
3168
3248
  ;;
3169
3249
 
3170
3250
interix[[3-9]]*)
3171
 
  version_type=linux
 
3251
  version_type=linux # correct to gnu/linux during the next big refactor
3172
3252
  need_lib_prefix=no
3173
3253
  need_version=no
3174
3254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3184
3264
    nonstopux*) version_type=nonstopux ;;
3185
3265
    *)
3186
3266
        if test "$lt_cv_prog_gnu_ld" = yes; then
3187
 
                version_type=linux
 
3267
                version_type=linux # correct to gnu/linux during the next big refactor
3188
3268
        else
3189
3269
                version_type=irix
3190
3270
        fi ;;
3221
3301
  dynamic_linker=no
3222
3302
  ;;
3223
3303
 
3224
 
# This must be Linux ELF.
3225
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3226
 
  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
3227
3307
  need_lib_prefix=no
3228
3308
  need_version=no
3229
3309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3252
3332
  # before this can be enabled.
3253
3333
  hardcode_into_libs=yes
3254
3334
 
3255
 
  # Add ABI-specific directories to the system library path.
3256
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3257
 
 
3258
3335
  # Append ld.so.conf contents to the search path
3259
3336
  if test -f /etc/ld.so.conf; then
3260
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' ' '`
3261
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3262
 
 
 
3338
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3263
3339
  fi
3264
3340
 
3265
3341
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3271
3347
  dynamic_linker='GNU/Linux ld.so'
3272
3348
  ;;
3273
3349
 
 
3350
netbsdelf*-gnu)
 
3351
  version_type=linux
 
3352
  need_lib_prefix=no
 
3353
  need_version=no
 
3354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3355
  soname_spec='${libname}${release}${shared_ext}$major'
 
3356
  shlibpath_var=LD_LIBRARY_PATH
 
3357
  shlibpath_overrides_runpath=no
 
3358
  hardcode_into_libs=yes
 
3359
  dynamic_linker='NetBSD ld.elf_so'
 
3360
  ;;
 
3361
 
3274
3362
netbsd*)
3275
3363
  version_type=sunos
3276
3364
  need_lib_prefix=no
3290
3378
  ;;
3291
3379
 
3292
3380
newsos6)
3293
 
  version_type=linux
 
3381
  version_type=linux # correct to gnu/linux during the next big refactor
3294
3382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3295
3383
  shlibpath_var=LD_LIBRARY_PATH
3296
3384
  shlibpath_overrides_runpath=yes
3359
3447
  ;;
3360
3448
 
3361
3449
solaris*)
3362
 
  version_type=linux
 
3450
  version_type=linux # correct to gnu/linux during the next big refactor
3363
3451
  need_lib_prefix=no
3364
3452
  need_version=no
3365
3453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3384
3472
  ;;
3385
3473
 
3386
3474
sysv4 | sysv4.3*)
3387
 
  version_type=linux
 
3475
  version_type=linux # correct to gnu/linux during the next big refactor
3388
3476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3389
3477
  soname_spec='${libname}${release}${shared_ext}$major'
3390
3478
  shlibpath_var=LD_LIBRARY_PATH
3408
3496
 
3409
3497
sysv4*MP*)
3410
3498
  if test -d /usr/nec ;then
3411
 
    version_type=linux
 
3499
    version_type=linux # correct to gnu/linux during the next big refactor
3412
3500
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3413
3501
    soname_spec='$libname${shared_ext}.$major'
3414
3502
    shlibpath_var=LD_LIBRARY_PATH
3439
3527
 
3440
3528
tpf*)
3441
3529
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3442
 
  version_type=linux
 
3530
  version_type=linux # correct to gnu/linux during the next big refactor
3443
3531
  need_lib_prefix=no
3444
3532
  need_version=no
3445
3533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3449
3537
  ;;
3450
3538
 
3451
3539
uts4*)
3452
 
  version_type=linux
 
3540
  version_type=linux # correct to gnu/linux during the next big refactor
3453
3541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3454
3542
  soname_spec='${libname}${release}${shared_ext}$major'
3455
3543
  shlibpath_var=LD_LIBRARY_PATH
3830
3918
  fi
3831
3919
  ;;
3832
3920
 
3833
 
gnu*)
3834
 
  lt_cv_deplibs_check_method=pass_all
3835
 
  ;;
3836
 
 
3837
3921
haiku*)
3838
3922
  lt_cv_deplibs_check_method=pass_all
3839
3923
  ;;
3871
3955
  lt_cv_deplibs_check_method=pass_all
3872
3956
  ;;
3873
3957
 
3874
 
# This must be Linux ELF.
3875
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3958
# This must be glibc/ELF.
 
3959
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3876
3960
  lt_cv_deplibs_check_method=pass_all
3877
3961
  ;;
3878
3962
 
3879
 
netbsd*)
 
3963
netbsd* | netbsdelf*-gnu)
3880
3964
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3881
3965
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3882
3966
  else
4291
4375
    # which start with @ or ?.
4292
4376
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4293
4377
"     {last_section=section; section=\$ 3};"\
 
4378
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4294
4379
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4295
4380
"     \$ 0!~/External *\|/{next};"\
4296
4381
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4623
4708
            ;;
4624
4709
        esac
4625
4710
        ;;
4626
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4711
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4627
4712
        case $cc_basename in
4628
4713
          KCC*)
4629
4714
            # KAI C++ Compiler
4687
4772
            ;;
4688
4773
        esac
4689
4774
        ;;
4690
 
      netbsd*)
 
4775
      netbsd* | netbsdelf*-gnu)
4691
4776
        ;;
4692
4777
      *qnx* | *nto*)
4693
4778
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4875
4960
    case $cc_basename in
4876
4961
    nvcc*) # Cuda Compiler Driver 2.2
4877
4962
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4878
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
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
4879
4966
      ;;
4880
4967
    esac
4881
4968
  else
4920
5007
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4921
5008
      ;;
4922
5009
 
4923
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5010
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4924
5011
      case $cc_basename in
4925
5012
      # old Intel for x86_64 which still supported -KPIC.
4926
5013
      ecc*)
4967
5054
        ;;
4968
5055
      *)
4969
5056
        case `$CC -V 2>&1 | sed 5q` in
4970
 
        *Sun\ F* | *Sun*Fortran*)
 
5057
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4971
5058
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4972
5059
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4973
5060
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4974
5061
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4975
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
          ;;
4976
5068
        *Sun\ C*)
4977
5069
          # Sun C 5.9
4978
5070
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4979
5071
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4980
5072
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4981
5073
          ;;
 
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'
 
5082
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5083
          ;;
4982
5084
        esac
4983
5085
        ;;
4984
5086
      esac
5138
5240
    ;;
5139
5241
  cygwin* | mingw* | cegcc*)
5140
5242
    case $cc_basename in
5141
 
    cl*) ;;
 
5243
    cl*)
 
5244
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5245
      ;;
5142
5246
    *)
5143
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'
5144
5248
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5145
5249
      ;;
5146
5250
    esac
5147
5251
    ;;
 
5252
  linux* | k*bsd*-gnu | gnu*)
 
5253
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5254
    ;;
5148
5255
  *)
5149
5256
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5150
5257
    ;;
5163
5270
  _LT_TAGVAR(hardcode_direct, $1)=no
5164
5271
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5165
5272
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5166
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5167
5273
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5168
5274
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5169
5275
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5208
5314
  openbsd*)
5209
5315
    with_gnu_ld=no
5210
5316
    ;;
 
5317
  linux* | k*bsd*-gnu | gnu*)
 
5318
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5319
    ;;
5211
5320
  esac
5212
5321
 
5213
5322
  _LT_TAGVAR(ld_shlibs, $1)=yes
5414
5523
        xlf* | bgf* | bgxlf* | mpixlf*)
5415
5524
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5416
5525
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5417
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5418
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5526
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5419
5527
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5420
5528
          if test "x$supports_anon_versioning" = xyes; then
5421
5529
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5430
5538
      fi
5431
5539
      ;;
5432
5540
 
5433
 
    netbsd*)
 
5541
    netbsd* | netbsdelf*-gnu)
5434
5542
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5435
5543
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5436
5544
        wlarc=
5607
5715
        if test "$aix_use_runtimelinking" = yes; then
5608
5716
          shared_flag="$shared_flag "'${wl}-G'
5609
5717
        fi
 
5718
        _LT_TAGVAR(link_all_deplibs, $1)=no
5610
5719
      else
5611
5720
        # not using gcc
5612
5721
        if test "$host_cpu" = ia64; then
5710
5819
        # The linker will not automatically build a static lib if we build a DLL.
5711
5820
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5712
5821
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5822
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5713
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'
5714
5824
        # Don't use ranlib
5715
5825
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5756
5866
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5757
5867
      ;;
5758
5868
 
5759
 
    freebsd1*)
5760
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5761
 
      ;;
5762
 
 
5763
5869
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5764
5870
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5765
5871
    # does not break anything, and helps significantly (at the cost of a little
5772
5878
      ;;
5773
5879
 
5774
5880
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5775
 
    freebsd2*)
 
5881
    freebsd2.*)
5776
5882
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5777
5883
      _LT_TAGVAR(hardcode_direct, $1)=yes
5778
5884
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5811
5917
      fi
5812
5918
      if test "$with_gnu_ld" = no; then
5813
5919
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5814
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5815
5920
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5816
5921
        _LT_TAGVAR(hardcode_direct, $1)=yes
5817
5922
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5915
6020
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5916
6021
      ;;
5917
6022
 
5918
 
    netbsd*)
 
6023
    netbsd* | netbsdelf*-gnu)
5919
6024
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5920
6025
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5921
6026
      else
6253
6358
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6254
6359
    [Flag to hardcode $libdir into a binary during linking.
6255
6360
    This must work even if $libdir does not exist])
6256
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6257
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6258
 
    during linking.  This must work even if $libdir does not exist]])
6259
6361
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6260
6362
    [Whether we need a single "-rpath" flag with a separated argument])
6261
6363
_LT_TAGDECL([], [hardcode_direct], [0],
6409
6511
_LT_TAGVAR(hardcode_direct, $1)=no
6410
6512
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6411
6513
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6412
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6413
6514
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6414
6515
_LT_TAGVAR(hardcode_minus_L, $1)=no
6415
6516
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6779
6880
        esac
6780
6881
        ;;
6781
6882
 
6782
 
      freebsd[[12]]*)
 
6883
      freebsd2.*)
6783
6884
        # C++ shared libraries reported to be fairly broken before
6784
6885
        # switch to ELF
6785
6886
        _LT_TAGVAR(ld_shlibs, $1)=no
6795
6896
        _LT_TAGVAR(ld_shlibs, $1)=yes
6796
6897
        ;;
6797
6898
 
6798
 
      gnu*)
6799
 
        ;;
6800
 
 
6801
6899
      haiku*)
6802
6900
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803
6901
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6959
7057
        _LT_TAGVAR(inherit_rpath, $1)=yes
6960
7058
        ;;
6961
7059
 
6962
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7060
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6963
7061
        case $cc_basename in
6964
7062
          KCC*)
6965
7063
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7540
7638
  }
7541
7639
};
7542
7640
_LT_EOF
 
7641
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7642
package foo
 
7643
func foo() {
 
7644
}
 
7645
_LT_EOF
7543
7646
])
7544
7647
 
7545
7648
_lt_libdeps_save_CFLAGS=$CFLAGS
7546
7649
case "$CC $CFLAGS " in #(
7547
7650
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7548
7651
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7652
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7549
7653
esac
7550
7654
 
7551
7655
dnl Parse the compiler output and extract the necessary
7742
7846
_LT_TAGVAR(hardcode_direct, $1)=no
7743
7847
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7744
7848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7745
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7746
7849
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7747
7850
_LT_TAGVAR(hardcode_minus_L, $1)=no
7748
7851
_LT_TAGVAR(hardcode_automatic, $1)=no
7875
7978
_LT_TAGVAR(hardcode_direct, $1)=no
7876
7979
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7877
7980
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7878
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7879
7981
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7880
7982
_LT_TAGVAR(hardcode_minus_L, $1)=no
7881
7983
_LT_TAGVAR(hardcode_automatic, $1)=no
8058
8160
])# _LT_LANG_GCJ_CONFIG
8059
8161
 
8060
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
 
8061
8230
# _LT_LANG_RC_CONFIG([TAG])
8062
8231
# -------------------------
8063
8232
# Ensure that the configuration variables for the Windows resource compiler
8127
8296
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8128
8297
 
8129
8298
 
 
8299
# LT_PROG_GO
 
8300
# ----------
 
8301
AC_DEFUN([LT_PROG_GO],
 
8302
[AC_CHECK_TOOL(GOC, gccgo,)
 
8303
])
 
8304
 
 
8305
 
8130
8306
# LT_PROG_RC
8131
8307
# ----------
8132
8308
AC_DEFUN([LT_PROG_RC],
8791
8967
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8792
8968
m4_define([_LT_WITH_PIC],
8793
8969
[AC_ARG_WITH([pic],
8794
 
    [AS_HELP_STRING([--with-pic],
 
8970
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8795
8971
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8796
 
    [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],
8797
8988
    [pic_mode=default])
8798
8989
 
8799
8990
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8965
9156
 
8966
9157
# @configure_input@
8967
9158
 
8968
 
# serial 3293 ltversion.m4
 
9159
# serial 3337 ltversion.m4
8969
9160
# This file is part of GNU Libtool
8970
9161
 
8971
 
m4_define([LT_PACKAGE_VERSION], [2.4])
8972
 
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
9162
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
9163
m4_define([LT_PACKAGE_REVISION], [1.3337])
8973
9164
 
8974
9165
AC_DEFUN([LTVERSION_VERSION],
8975
 
[macro_version='2.4'
8976
 
macro_revision='1.3293'
 
9166
[macro_version='2.4.2'
 
9167
macro_revision='1.3337'
8977
9168
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8978
9169
_LT_DECL(, macro_revision, 0)
8979
9170
])
9077
9268
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9078
9269
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9079
9270
 
9080
 
# nls.m4 serial 3 (gettext-0.15)
9081
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
9271
# nls.m4 serial 5 (gettext-0.18)
 
9272
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
9273
dnl Inc.
9082
9274
dnl This file is free software; the Free Software Foundation
9083
9275
dnl gives unlimited permission to copy and/or distribute it,
9084
9276
dnl with or without modifications, as long as this notice is preserved.
9096
9288
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
9097
9289
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9098
9290
 
9099
 
AC_PREREQ(2.50)
 
9291
AC_PREREQ([2.50])
9100
9292
 
9101
9293
AC_DEFUN([AM_NLS],
9102
9294
[
9103
9295
  AC_MSG_CHECKING([whether NLS is requested])
9104
9296
  dnl Default is enabled NLS
9105
 
  AC_ARG_ENABLE(nls,
 
9297
  AC_ARG_ENABLE([nls],
9106
9298
    [  --disable-nls           do not use Native Language Support],
9107
9299
    USE_NLS=$enableval, USE_NLS=yes)
9108
 
  AC_MSG_RESULT($USE_NLS)
9109
 
  AC_SUBST(USE_NLS)
 
9300
  AC_MSG_RESULT([$USE_NLS])
 
9301
  AC_SUBST([USE_NLS])
9110
9302
])
9111
9303
 
9112
9304
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9137
9329
# ----------------------------------
9138
9330
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9139
9331
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9140
 
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)$])
9141
9334
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9142
9335
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9143
9336
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9183
9376
    pkg_cv_[]$1="$$1"
9184
9377
 elif test -n "$PKG_CONFIG"; then
9185
9378
    PKG_CHECK_EXISTS([$3],
9186
 
                     [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 ],
9187
9381
                     [pkg_failed=yes])
9188
9382
 else
9189
9383
    pkg_failed=untried
9231
9425
        AC_MSG_RESULT([no])
9232
9426
        _PKG_SHORT_ERRORS_SUPPORTED
9233
9427
        if test $_pkg_short_errors_supported = yes; then
9234
 
                $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`
9235
9429
        else 
9236
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9430
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9237
9431
        fi
9238
9432
        # Put the nasty error message in config.log where it belongs
9239
9433
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9246
9440
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9247
9441
installed software in a non-standard prefix.
9248
9442
 
9249
 
_PKG_TEXT])
 
9443
_PKG_TEXT])[]dnl
9250
9444
        ])
9251
9445
elif test $pkg_failed = untried; then
9252
9446
        AC_MSG_RESULT([no])
9257
9451
 
9258
9452
_PKG_TEXT
9259
9453
 
9260
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
9454
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9261
9455
        ])
9262
9456
else
9263
9457
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9267
9461
fi[]dnl
9268
9462
])# PKG_CHECK_MODULES
9269
9463
 
9270
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9464
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
9465
# Foundation, Inc.
9271
9466
#
9272
9467
# This file is free software; the Free Software Foundation
9273
9468
# gives unlimited permission to copy and/or distribute it,
9274
9469
# with or without modifications, as long as this notice is preserved.
9275
9470
 
 
9471
# serial 1
 
9472
 
9276
9473
# AM_AUTOMAKE_VERSION(VERSION)
9277
9474
# ----------------------------
9278
9475
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9282
9479
[am__api_version='1.11'
9283
9480
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9284
9481
dnl require some minimum version.  Point them to the right macro.
9285
 
m4_if([$1], [1.11.1], [],
 
9482
m4_if([$1], [1.11.6], [],
9286
9483
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9287
9484
])
9288
9485
 
9298
9495
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9299
9496
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9300
9497
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9301
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
9498
[AM_AUTOMAKE_VERSION([1.11.6])dnl
9302
9499
m4_ifndef([AC_AUTOCONF_VERSION],
9303
9500
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9304
9501
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9305
9502
 
9306
9503
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9307
9504
 
9308
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9505
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9309
9506
#
9310
9507
# This file is free software; the Free Software Foundation
9311
9508
# gives unlimited permission to copy and/or distribute it,
9312
9509
# with or without modifications, as long as this notice is preserved.
9313
9510
 
 
9511
# serial 1
 
9512
 
9314
9513
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9315
9514
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9316
9515
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9392
9591
Usually this means the macro was only invoked conditionally.]])
9393
9592
fi])])
9394
9593
 
9395
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9396
 
# Free Software Foundation, Inc.
 
9594
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
9595
# 2010, 2011 Free Software Foundation, Inc.
9397
9596
#
9398
9597
# This file is free software; the Free Software Foundation
9399
9598
# gives unlimited permission to copy and/or distribute it,
9400
9599
# with or without modifications, as long as this notice is preserved.
9401
9600
 
9402
 
# serial 10
 
9601
# serial 12
9403
9602
 
9404
9603
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9405
9604
# written in clear, in which case automake, when reading aclocal.m4,
9439
9638
  # instance it was reported that on HP-UX the gcc test will end up
9440
9639
  # making a dummy file named `D' -- because `-MD' means `put the output
9441
9640
  # in D'.
 
9641
  rm -rf conftest.dir
9442
9642
  mkdir conftest.dir
9443
9643
  # Copy depcomp to subdir because otherwise we won't find it if we're
9444
9644
  # using a relative directory.
9503
9703
        break
9504
9704
      fi
9505
9705
      ;;
9506
 
    msvisualcpp | msvcmsys)
 
9706
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9507
9707
      # This compiler won't grok `-c -o', but also, the minuso test has
9508
9708
      # not run yet.  These depmodes are late enough in the game, and
9509
9709
      # so weak that their functioning should not be impacted.
9568
9768
if test "x$enable_dependency_tracking" != xno; then
9569
9769
  am_depcomp="$ac_aux_dir/depcomp"
9570
9770
  AMDEPBACKSLASH='\'
 
9771
  am__nodep='_no'
9571
9772
fi
9572
9773
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9573
9774
AC_SUBST([AMDEPBACKSLASH])dnl
9574
9775
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9776
AC_SUBST([am__nodep])dnl
 
9777
_AM_SUBST_NOTMAKE([am__nodep])dnl
9575
9778
])
9576
9779
 
9577
9780
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9654
9857
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9655
9858
])
9656
9859
 
9657
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9658
 
# Free Software Foundation, Inc.
9659
 
#
9660
 
# This file is free software; the Free Software Foundation
9661
 
# gives unlimited permission to copy and/or distribute it,
9662
 
# with or without modifications, as long as this notice is preserved.
9663
 
 
9664
 
# serial 8
9665
 
 
9666
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
9667
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9668
 
 
9669
9860
# Do all the work for Automake.                             -*- Autoconf -*-
9670
9861
 
9671
9862
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9805
9996
done
9806
9997
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9807
9998
 
9808
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9999
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
10000
# Inc.
9809
10001
#
9810
10002
# This file is free software; the Free Software Foundation
9811
10003
# gives unlimited permission to copy and/or distribute it,
9812
10004
# with or without modifications, as long as this notice is preserved.
9813
10005
 
 
10006
# serial 1
 
10007
 
9814
10008
# AM_PROG_INSTALL_SH
9815
10009
# ------------------
9816
10010
# Define $install_sh.
9850
10044
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9851
10045
# From Jim Meyering
9852
10046
 
9853
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9854
 
# Free Software Foundation, Inc.
 
10047
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
10048
# 2011 Free Software Foundation, Inc.
9855
10049
#
9856
10050
# This file is free software; the Free Software Foundation
9857
10051
# gives unlimited permission to copy and/or distribute it,
9871
10065
       [disable], [m4_define([am_maintainer_other], [enable])],
9872
10066
       [m4_define([am_maintainer_other], [enable])
9873
10067
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9874
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
10068
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9875
10069
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9876
10070
  AC_ARG_ENABLE([maintainer-mode],
9877
10071
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9982
10176
fi
9983
10177
])
9984
10178
 
9985
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
10179
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
10180
# Inc.
9986
10181
#
9987
10182
# This file is free software; the Free Software Foundation
9988
10183
# gives unlimited permission to copy and/or distribute it,
9989
10184
# with or without modifications, as long as this notice is preserved.
9990
10185
 
 
10186
# serial 1
 
10187
 
9991
10188
# AM_PROG_MKDIR_P
9992
10189
# ---------------
9993
10190
# Check for `mkdir -p'.
10010
10207
 
10011
10208
# Helper functions for option handling.                     -*- Autoconf -*-
10012
10209
 
10013
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10210
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
10211
# Foundation, Inc.
10014
10212
#
10015
10213
# This file is free software; the Free Software Foundation
10016
10214
# gives unlimited permission to copy and/or distribute it,
10017
10215
# with or without modifications, as long as this notice is preserved.
10018
10216
 
10019
 
# serial 4
 
10217
# serial 5
10020
10218
 
10021
10219
# _AM_MANGLE_OPTION(NAME)
10022
10220
# -----------------------
10024
10222
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10025
10223
 
10026
10224
# _AM_SET_OPTION(NAME)
10027
 
# ------------------------------
 
10225
# --------------------
10028
10226
# Set option NAME.  Presently that only means defining a flag for this option.
10029
10227
AC_DEFUN([_AM_SET_OPTION],
10030
10228
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10031
10229
 
10032
10230
# _AM_SET_OPTIONS(OPTIONS)
10033
 
# ----------------------------------
 
10231
# ------------------------
10034
10232
# OPTIONS is a space-separated list of Automake options.
10035
10233
AC_DEFUN([_AM_SET_OPTIONS],
10036
10234
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10041
10239
AC_DEFUN([_AM_IF_OPTION],
10042
10240
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10043
10241
 
10044
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10242
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10045
10243
#
10046
10244
# This file is free software; the Free Software Foundation
10047
10245
# gives unlimited permission to copy and/or distribute it,
10048
10246
# with or without modifications, as long as this notice is preserved.
10049
10247
 
 
10248
# serial 1
 
10249
 
10050
10250
# AM_RUN_LOG(COMMAND)
10051
10251
# -------------------
10052
10252
# Run COMMAND, save the exit status in ac_status, and log it.
10123
10323
fi
10124
10324
AC_MSG_RESULT(yes)])
10125
10325
 
10126
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
10127
 
#
10128
 
# This file is free software; the Free Software Foundation
10129
 
# gives unlimited permission to copy and/or distribute it,
10130
 
# with or without modifications, as long as this notice is preserved.
 
10326
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
10327
#
 
10328
# This file is free software; the Free Software Foundation
 
10329
# gives unlimited permission to copy and/or distribute it,
 
10330
# with or without modifications, as long as this notice is preserved.
 
10331
 
 
10332
# serial 2
 
10333
 
 
10334
# AM_SILENT_RULES([DEFAULT])
 
10335
# --------------------------
 
10336
# Enable less verbose build rules; with the default set to DEFAULT
 
10337
# (`yes' being less verbose, `no' or empty being verbose).
 
10338
AC_DEFUN([AM_SILENT_RULES],
 
10339
[AC_ARG_ENABLE([silent-rules],
 
10340
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
10341
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
10342
case $enable_silent_rules in
 
10343
yes) AM_DEFAULT_VERBOSITY=0;;
 
10344
no)  AM_DEFAULT_VERBOSITY=1;;
 
10345
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
10346
esac
 
10347
dnl
 
10348
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
10349
dnl do not support nested variable expansions.
 
10350
dnl See automake bug#9928 and bug#10237.
 
10351
am_make=${MAKE-make}
 
10352
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
10353
   [am_cv_make_support_nested_variables],
 
10354
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
10355
BAR0=false
 
10356
BAR1=true
 
10357
V=1
 
10358
am__doit:
 
10359
        @$(TRUE)
 
10360
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
10361
  am_cv_make_support_nested_variables=yes
 
10362
else
 
10363
  am_cv_make_support_nested_variables=no
 
10364
fi])
 
10365
if test $am_cv_make_support_nested_variables = yes; then
 
10366
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
10367
  AM_V='$(V)'
 
10368
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
10369
else
 
10370
  AM_V=$AM_DEFAULT_VERBOSITY
 
10371
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
10372
fi
 
10373
AC_SUBST([AM_V])dnl
 
10374
AM_SUBST_NOTMAKE([AM_V])dnl
 
10375
AC_SUBST([AM_DEFAULT_V])dnl
 
10376
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
10377
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10378
AM_BACKSLASH='\'
 
10379
AC_SUBST([AM_BACKSLASH])dnl
 
10380
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10381
])
 
10382
 
 
10383
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
10384
#
 
10385
# This file is free software; the Free Software Foundation
 
10386
# gives unlimited permission to copy and/or distribute it,
 
10387
# with or without modifications, as long as this notice is preserved.
 
10388
 
 
10389
# serial 1
10131
10390
 
10132
10391
# AM_PROG_INSTALL_STRIP
10133
10392
# ---------------------
10151
10410
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10152
10411
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10153
10412
 
10154
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
10413
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
10155
10414
#
10156
10415
# This file is free software; the Free Software Foundation
10157
10416
# gives unlimited permission to copy and/or distribute it,
10158
10417
# with or without modifications, as long as this notice is preserved.
10159
10418
 
10160
 
# serial 2
 
10419
# serial 3
10161
10420
 
10162
10421
# _AM_SUBST_NOTMAKE(VARIABLE)
10163
10422
# ---------------------------
10166
10425
AC_DEFUN([_AM_SUBST_NOTMAKE])
10167
10426
 
10168
10427
# AM_SUBST_NOTMAKE(VARIABLE)
10169
 
# ---------------------------
 
10428
# --------------------------
10170
10429
# Public sister of _AM_SUBST_NOTMAKE.
10171
10430
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10172
10431
 
10173
10432
# Check how to create a tarball.                            -*- Autoconf -*-
10174
10433
 
10175
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10434
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10176
10435
#
10177
10436
# This file is free software; the Free Software Foundation
10178
10437
# gives unlimited permission to copy and/or distribute it,
10194
10453
# a tarball read from stdin.
10195
10454
#     $(am__untar) < result.tar
10196
10455
AC_DEFUN([_AM_PROG_TAR],
10197
 
[# Always define AMTAR for backward compatibility.
10198
 
AM_MISSING_PROG([AMTAR], [tar])
 
10456
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
10457
# in the wild :-(  We should find a proper way to deprecate it ...
 
10458
AC_SUBST([AMTAR], ['$${TAR-tar}'])
10199
10459
m4_if([$1], [v7],
10200
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
10460
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10201
10461
     [m4_case([$1], [ustar],, [pax],,
10202
10462
              [m4_fatal([Unknown tar format])])
10203
10463
AC_MSG_CHECKING([how to create a $1 tar archive])