~ubuntu-branches/ubuntu/natty/cairo-dock/natty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2009-10-04 16:33:52 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20091004163352-a4l19b8grmkd4wau
Tags: upstream-2.0.9
ImportĀ upstreamĀ versionĀ 2.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_ifndef([AC_AUTOCONF_VERSION],
15
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
18
 
You have another version of autoconf.  It may work, but is not guaranteed to.
19
 
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
 
 
22
14
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
15
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
24
16
#
452
444
fi])
453
445
 
454
446
 
 
447
 
 
448
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
449
# serial 40 IT_PROG_INTLTOOL
 
450
AC_DEFUN([IT_PROG_INTLTOOL], [
 
451
AC_PREREQ([2.50])dnl
 
452
AC_REQUIRE([AM_NLS])dnl
 
453
 
 
454
case "$am__api_version" in
 
455
    1.[01234])
 
456
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
457
    ;;
 
458
    *)
 
459
    ;;
 
460
esac
 
461
 
 
462
if test -n "$1"; then
 
463
    AC_MSG_CHECKING([for intltool >= $1])
 
464
 
 
465
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
466
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
467
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
468
    ]
 
469
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
470
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
471
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
472
fi
 
473
 
 
474
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
475
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
476
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
477
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
478
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
479
fi
 
480
 
 
481
  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 $< [$]@' 
 
482
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 $< [$]@' 
 
483
     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 $< [$]@' 
 
484
     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 $< [$]@' 
 
485
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
486
     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 $< [$]@' 
 
487
   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 $< [$]@' 
 
488
    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 $< [$]@' 
 
489
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 $< [$]@' 
 
490
       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 $< [$]@' 
 
491
      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 $< [$]@' 
 
492
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
493
      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 $< [$]@' 
 
494
      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 $< [$]@' 
 
495
    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 $< [$]@' 
 
496
  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 $< [$]@' 
 
497
    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 $< [$]@' 
 
498
    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 $< [$]@'
 
499
   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 $< [$]@'
 
500
 
 
501
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
502
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
503
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
504
_IT_SUBST(INTLTOOL_PROP_RULE)
 
505
_IT_SUBST(INTLTOOL_OAF_RULE)
 
506
_IT_SUBST(INTLTOOL_PONG_RULE)
 
507
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
508
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
509
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
510
_IT_SUBST(INTLTOOL_UI_RULE)
 
511
_IT_SUBST(INTLTOOL_XAM_RULE)
 
512
_IT_SUBST(INTLTOOL_KBD_RULE)
 
513
_IT_SUBST(INTLTOOL_XML_RULE)
 
514
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
515
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
516
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
517
_IT_SUBST(INTLTOOL_THEME_RULE)
 
518
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
519
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
520
 
 
521
# Check the gettext tools to make sure they are GNU
 
522
AC_PATH_PROG(XGETTEXT, xgettext)
 
523
AC_PATH_PROG(MSGMERGE, msgmerge)
 
524
AC_PATH_PROG(MSGFMT, msgfmt)
 
525
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
526
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
527
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
528
fi
 
529
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
530
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
531
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
532
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
533
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
534
fi
 
535
 
 
536
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
537
if test -z "$INTLTOOL_PERL"; then
 
538
   AC_MSG_ERROR([perl not found])
 
539
fi
 
540
AC_MSG_CHECKING([for perl >= 5.8.1])
 
541
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
542
if test $? -ne 0; then
 
543
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
544
else
 
545
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
546
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
547
fi
 
548
if test "x$2" != "xno-xml"; then
 
549
   AC_MSG_CHECKING([for XML::Parser])
 
550
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
551
       AC_MSG_RESULT([ok])
 
552
   else
 
553
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
554
   fi
 
555
fi
 
556
 
 
557
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
558
AC_SUBST(ALL_LINGUAS)
 
559
 
 
560
# Set DATADIRNAME correctly if it is not set yet
 
561
# (copied from glib-gettext.m4)
 
562
if test -z "$DATADIRNAME"; then
 
563
  AC_LINK_IFELSE(
 
564
    [AC_LANG_PROGRAM([[]],
 
565
                     [[extern int _nl_msg_cat_cntr;
 
566
                       return _nl_msg_cat_cntr]])],
 
567
    [DATADIRNAME=share],
 
568
    [case $host in
 
569
    *-*-solaris*)
 
570
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
571
    dnl GNU format message catalog is always supported,
 
572
    dnl since both are added to the libc all together.
 
573
    dnl Hence, we'd like to go with DATADIRNAME=share
 
574
    dnl in this case.
 
575
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
576
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
577
    ;;
 
578
    *)
 
579
    [DATADIRNAME=lib]
 
580
    ;;
 
581
    esac])
 
582
fi
 
583
AC_SUBST(DATADIRNAME)
 
584
 
 
585
IT_PO_SUBDIR([po])
 
586
 
 
587
])
 
588
 
 
589
 
 
590
# IT_PO_SUBDIR(DIRNAME)
 
591
# ---------------------
 
592
# All po subdirs have to be declared with this macro; the subdir "po" is
 
593
# declared by IT_PROG_INTLTOOL.
 
594
#
 
595
AC_DEFUN([IT_PO_SUBDIR],
 
596
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
597
dnl
 
598
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
599
dnl of config.status.
 
600
AC_CONFIG_COMMANDS_PRE([
 
601
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
602
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
603
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
604
    fi
 
605
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
606
    >"$1/stamp-it.tmp"
 
607
    [sed '/^#/d
 
608
         s/^[[].*] *//
 
609
         /^[    ]*$/d
 
610
        '"s|^|  $ac_top_srcdir/|" \
 
611
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
612
    ]
 
613
    [sed '/^POTFILES =/,/[^\\]$/ {
 
614
                /^POTFILES =/!d
 
615
                r $1/POTFILES
 
616
          }
 
617
         ' "$1/Makefile.in" >"$1/Makefile"]
 
618
    rm -f "$1/Makefile.tmp"
 
619
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
620
  ])
 
621
])dnl
 
622
])
 
623
 
 
624
# _IT_SUBST(VARIABLE)
 
625
# -------------------
 
626
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
627
#
 
628
AC_DEFUN([_IT_SUBST],
 
629
[
 
630
AC_SUBST([$1])
 
631
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
632
]
 
633
)
 
634
 
 
635
# deprecated macros
 
636
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
637
# A hint is needed for aclocal from Automake <= 1.9.4:
 
638
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
639
 
 
640
 
455
641
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
456
642
#
457
643
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4709
4895
  openbsd*)
4710
4896
    with_gnu_ld=no
4711
4897
    ;;
 
4898
  linux* | k*bsd*-gnu)
 
4899
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4900
    ;;
4712
4901
  esac
4713
4902
 
4714
4903
  _LT_TAGVAR(ld_shlibs, $1)=yes
8414
8603
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8415
8604
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8416
8605
 
 
8606
# nls.m4 serial 3 (gettext-0.15)
 
8607
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
8608
dnl This file is free software; the Free Software Foundation
 
8609
dnl gives unlimited permission to copy and/or distribute it,
 
8610
dnl with or without modifications, as long as this notice is preserved.
 
8611
dnl
 
8612
dnl This file can can be used in projects which are not available under
 
8613
dnl the GNU General Public License or the GNU Library General Public
 
8614
dnl License but which still want to provide support for the GNU gettext
 
8615
dnl functionality.
 
8616
dnl Please note that the actual code of the GNU gettext library is covered
 
8617
dnl by the GNU Library General Public License, and the rest of the GNU
 
8618
dnl gettext package package is covered by the GNU General Public License.
 
8619
dnl They are *not* in the public domain.
 
8620
 
 
8621
dnl Authors:
 
8622
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
8623
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
8624
 
 
8625
AC_PREREQ(2.50)
 
8626
 
 
8627
AC_DEFUN([AM_NLS],
 
8628
[
 
8629
  AC_MSG_CHECKING([whether NLS is requested])
 
8630
  dnl Default is enabled NLS
 
8631
  AC_ARG_ENABLE(nls,
 
8632
    [  --disable-nls           do not use Native Language Support],
 
8633
    USE_NLS=$enableval, USE_NLS=yes)
 
8634
  AC_MSG_RESULT($USE_NLS)
 
8635
  AC_SUBST(USE_NLS)
 
8636
])
 
8637
 
8417
8638
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8418
8639
8419
8640
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
8572
8793
fi[]dnl
8573
8794
])# PKG_CHECK_MODULES
8574
8795
 
8575
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
8796
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
8576
8797
#
8577
8798
# This file is free software; the Free Software Foundation
8578
8799
# gives unlimited permission to copy and/or distribute it,
8582
8803
# ----------------------------
8583
8804
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8584
8805
# generated from the m4 files accompanying Automake X.Y.
8585
 
# (This private macro should not be called outside this file.)
8586
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
8587
 
[am__api_version='1.10'
8588
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8589
 
dnl require some minimum version.  Point them to the right macro.
8590
 
m4_if([$1], [1.10.2], [],
8591
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8592
 
])
8593
 
 
8594
 
# _AM_AUTOCONF_VERSION(VERSION)
8595
 
# -----------------------------
8596
 
# aclocal traces this macro to find the Autoconf version.
8597
 
# This is a private macro too.  Using m4_define simplifies
8598
 
# the logic in aclocal, which can simply ignore this definition.
8599
 
m4_define([_AM_AUTOCONF_VERSION], [])
 
8806
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
8600
8807
 
8601
8808
# AM_SET_CURRENT_AUTOMAKE_VERSION
8602
8809
# -------------------------------
8603
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8604
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
8810
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
8811
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8605
8812
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8606
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8607
 
m4_ifndef([AC_AUTOCONF_VERSION],
8608
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8609
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
8813
         [AM_AUTOMAKE_VERSION([1.9.6])])
8610
8814
 
8611
8815
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8612
8816
 
8663
8867
 
8664
8868
# AM_CONDITIONAL                                            -*- Autoconf -*-
8665
8869
 
8666
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
8870
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
8667
8871
# Free Software Foundation, Inc.
8668
8872
#
8669
8873
# This file is free software; the Free Software Foundation
8670
8874
# gives unlimited permission to copy and/or distribute it,
8671
8875
# with or without modifications, as long as this notice is preserved.
8672
8876
 
8673
 
# serial 8
 
8877
# serial 7
8674
8878
 
8675
8879
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8676
8880
# -------------------------------------
8679
8883
[AC_PREREQ(2.52)dnl
8680
8884
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8681
8885
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8682
 
AC_SUBST([$1_TRUE])dnl
8683
 
AC_SUBST([$1_FALSE])dnl
8684
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8685
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
8886
AC_SUBST([$1_TRUE])
 
8887
AC_SUBST([$1_FALSE])
8686
8888
if $2; then
8687
8889
  $1_TRUE=
8688
8890
  $1_FALSE='#'
8696
8898
Usually this means the macro was only invoked conditionally.]])
8697
8899
fi])])
8698
8900
 
8699
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
8901
 
 
8902
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8700
8903
# Free Software Foundation, Inc.
8701
8904
#
8702
8905
# This file is free software; the Free Software Foundation
8703
8906
# gives unlimited permission to copy and/or distribute it,
8704
8907
# with or without modifications, as long as this notice is preserved.
8705
8908
 
8706
 
# serial 9
 
8909
# serial 8
8707
8910
 
8708
8911
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8709
8912
# written in clear, in which case automake, when reading aclocal.m4,
8731
8934
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
8732
8935
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
8733
8936
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8734
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
8735
8937
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
8736
8938
                   [depcc="$$1"   am_compiler_list=])
8737
8939
 
8797
8999
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8798
9000
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8799
9001
         >/dev/null 2>conftest.err &&
8800
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8801
9002
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8802
9003
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8803
9004
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8850
9051
  AMDEPBACKSLASH='\'
8851
9052
fi
8852
9053
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8853
 
AC_SUBST([AMDEPBACKSLASH])dnl
8854
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9054
AC_SUBST([AMDEPBACKSLASH])
8855
9055
])
8856
9056
 
8857
9057
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8858
9058
 
8859
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
9059
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8860
9060
# Free Software Foundation, Inc.
8861
9061
#
8862
9062
# This file is free software; the Free Software Foundation
8863
9063
# gives unlimited permission to copy and/or distribute it,
8864
9064
# with or without modifications, as long as this notice is preserved.
8865
9065
 
8866
 
#serial 5
 
9066
#serial 3
8867
9067
 
8868
9068
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8869
9069
# ------------------------------
8870
9070
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8871
 
[{
8872
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
8873
 
  # are listed without --file.  Let's play safe and only enable the eval
8874
 
  # if we detect the quoting.
8875
 
  case $CONFIG_FILES in
8876
 
  *\'*) eval set x "$CONFIG_FILES" ;;
8877
 
  *)   set x $CONFIG_FILES ;;
8878
 
  esac
8879
 
  shift
8880
 
  for mf
8881
 
  do
8882
 
    # Strip MF so we end up with the name of the file.
8883
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
8884
 
    # Check whether this is an Automake generated Makefile or not.
8885
 
    # We used to match only the files named `Makefile.in', but
8886
 
    # some people rename them; so instead we look at the file content.
8887
 
    # Grep'ing the first line is not enough: some people post-process
8888
 
    # each Makefile.in and add a new line on top of each file to say so.
8889
 
    # Grep'ing the whole file is not good either: AIX grep has a line
8890
 
    # limit of 2048, but all sed's we know have understand at least 4000.
8891
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8892
 
      dirpart=`AS_DIRNAME("$mf")`
8893
 
    else
8894
 
      continue
8895
 
    fi
8896
 
    # Extract the definition of DEPDIR, am__include, and am__quote
8897
 
    # from the Makefile without running `make'.
8898
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8899
 
    test -z "$DEPDIR" && continue
8900
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8901
 
    test -z "am__include" && continue
8902
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8903
 
    # When using ansi2knr, U may be empty or an underscore; expand it
8904
 
    U=`sed -n 's/^U = //p' < "$mf"`
8905
 
    # Find all dependency output files, they are included files with
8906
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8907
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
8908
 
    # expansion.
8909
 
    for file in `sed -n "
8910
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8911
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8912
 
      # Make sure the directory exists.
8913
 
      test -f "$dirpart/$file" && continue
8914
 
      fdir=`AS_DIRNAME(["$file"])`
8915
 
      AS_MKDIR_P([$dirpart/$fdir])
8916
 
      # echo "creating $dirpart/$file"
8917
 
      echo '# dummy' > "$dirpart/$file"
8918
 
    done
 
9071
[for mf in $CONFIG_FILES; do
 
9072
  # Strip MF so we end up with the name of the file.
 
9073
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9074
  # Check whether this is an Automake generated Makefile or not.
 
9075
  # We used to match only the files named `Makefile.in', but
 
9076
  # some people rename them; so instead we look at the file content.
 
9077
  # Grep'ing the first line is not enough: some people post-process
 
9078
  # each Makefile.in and add a new line on top of each file to say so.
 
9079
  # So let's grep whole file.
 
9080
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
9081
    dirpart=`AS_DIRNAME("$mf")`
 
9082
  else
 
9083
    continue
 
9084
  fi
 
9085
  # Extract the definition of DEPDIR, am__include, and am__quote
 
9086
  # from the Makefile without running `make'.
 
9087
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9088
  test -z "$DEPDIR" && continue
 
9089
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9090
  test -z "am__include" && continue
 
9091
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9092
  # When using ansi2knr, U may be empty or an underscore; expand it
 
9093
  U=`sed -n 's/^U = //p' < "$mf"`
 
9094
  # Find all dependency output files, they are included files with
 
9095
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9096
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
9097
  # expansion.
 
9098
  for file in `sed -n "
 
9099
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9100
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9101
    # Make sure the directory exists.
 
9102
    test -f "$dirpart/$file" && continue
 
9103
    fdir=`AS_DIRNAME(["$file"])`
 
9104
    AS_MKDIR_P([$dirpart/$fdir])
 
9105
    # echo "creating $dirpart/$file"
 
9106
    echo '# dummy' > "$dirpart/$file"
8919
9107
  done
8920
 
}
 
9108
done
8921
9109
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8922
9110
 
8923
9111
 
8936
9124
 
8937
9125
# Do all the work for Automake.                             -*- Autoconf -*-
8938
9126
 
8939
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8940
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
9127
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9128
# Free Software Foundation, Inc.
8941
9129
#
8942
9130
# This file is free software; the Free Software Foundation
8943
9131
# gives unlimited permission to copy and/or distribute it,
8944
9132
# with or without modifications, as long as this notice is preserved.
8945
9133
 
8946
 
# serial 13
 
9134
# serial 12
8947
9135
 
8948
9136
# This macro actually does too much.  Some checks are only needed if
8949
9137
# your package does certain things.  But this isn't really a big deal.
8960
9148
# arguments mandatory, and then we can depend on a new Autoconf
8961
9149
# release and drop the old call support.
8962
9150
AC_DEFUN([AM_INIT_AUTOMAKE],
8963
 
[AC_PREREQ([2.60])dnl
 
9151
[AC_PREREQ([2.58])dnl
8964
9152
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
8965
9153
dnl the ones we care about.
8966
9154
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8967
9155
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8968
9156
AC_REQUIRE([AC_PROG_INSTALL])dnl
8969
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
8970
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8971
 
  # is not polluted with repeated "-I."
8972
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8973
 
  # test to see if srcdir already configured
8974
 
  if test -f $srcdir/config.status; then
8975
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8976
 
  fi
 
9157
# test to see if srcdir already configured
 
9158
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
9159
   test -f $srcdir/config.status; then
 
9160
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8977
9161
fi
8978
9162
 
8979
9163
# test whether we have cygpath
8993
9177
 AC_SUBST([PACKAGE], [$1])dnl
8994
9178
 AC_SUBST([VERSION], [$2])],
8995
9179
[_AM_SET_OPTIONS([$1])dnl
8996
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8997
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
8998
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
8999
9180
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9000
9181
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9001
9182
 
9031
9212
                  [_AM_DEPENDENCIES(CXX)],
9032
9213
                  [define([AC_PROG_CXX],
9033
9214
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9034
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9035
 
                  [_AM_DEPENDENCIES(OBJC)],
9036
 
                  [define([AC_PROG_OBJC],
9037
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9038
9215
])
9039
9216
])
9040
9217
 
9048
9225
# our stamp files there.
9049
9226
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9050
9227
[# Compute $1's index in $config_headers.
9051
 
_am_arg=$1
9052
9228
_am_stamp_count=1
9053
9229
for _am_header in $config_headers :; do
9054
9230
  case $_am_header in
9055
 
    $_am_arg | $_am_arg:* )
 
9231
    $1 | $1:* )
9056
9232
      break ;;
9057
9233
    * )
9058
9234
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9059
9235
  esac
9060
9236
done
9061
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
9237
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
9062
9238
 
9063
9239
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9064
9240
#
9071
9247
# Define $install_sh.
9072
9248
AC_DEFUN([AM_PROG_INSTALL_SH],
9073
9249
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9074
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
9250
install_sh=${install_sh-"$am_aux_dir/install-sh"}
9075
9251
AC_SUBST(install_sh)])
9076
9252
 
9077
9253
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9149
9325
 
9150
9326
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9151
9327
 
9152
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
9328
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
9153
9329
# Free Software Foundation, Inc.
9154
9330
#
9155
9331
# This file is free software; the Free Software Foundation
9156
9332
# gives unlimited permission to copy and/or distribute it,
9157
9333
# with or without modifications, as long as this notice is preserved.
9158
9334
 
9159
 
# serial 5
 
9335
# serial 4
9160
9336
 
9161
9337
# AM_MISSING_PROG(NAME, PROGRAM)
9162
9338
# ------------------------------
9172
9348
# If it does, set am_missing_run to use it, otherwise, to nothing.
9173
9349
AC_DEFUN([AM_MISSING_HAS_RUN],
9174
9350
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9175
 
AC_REQUIRE_AUX_FILE([missing])dnl
9176
9351
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9177
9352
# Use eval to expand $SHELL
9178
9353
if eval "$MISSING --run true"; then
9183
9358
fi
9184
9359
])
9185
9360
 
9186
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9361
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
9187
9362
#
9188
9363
# This file is free software; the Free Software Foundation
9189
9364
# gives unlimited permission to copy and/or distribute it,
9191
9366
 
9192
9367
# AM_PROG_MKDIR_P
9193
9368
# ---------------
9194
 
# Check for `mkdir -p'.
 
9369
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
9370
#
 
9371
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
9372
# created by `make install' are always world readable, even if the
 
9373
# installer happens to have an overly restrictive umask (e.g. 077).
 
9374
# This was a mistake.  There are at least two reasons why we must not
 
9375
# use `-m 0755':
 
9376
#   - it causes special bits like SGID to be ignored,
 
9377
#   - it may be too restrictive (some setups expect 775 directories).
 
9378
#
 
9379
# Do not use -m 0755 and let people choose whatever they expect by
 
9380
# setting umask.
 
9381
#
 
9382
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
9383
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
9384
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
9385
# concurrently, both version can detect that a/ is missing, but only
 
9386
# one can create it and the other will error out.  Consequently we
 
9387
# restrict ourselves to GNU make (using the --version option ensures
 
9388
# this.)
9195
9389
AC_DEFUN([AM_PROG_MKDIR_P],
9196
 
[AC_PREREQ([2.60])dnl
9197
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9198
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9199
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9200
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9201
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9202
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9203
 
dnl adjustment using top_builddir (which is defined more often than
9204
 
dnl MKDIR_P).
9205
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9206
 
case $mkdir_p in
9207
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9208
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9209
 
esac
9210
 
])
 
9390
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
9391
  # We used to keeping the `.' as first argument, in order to
 
9392
  # allow $(mkdir_p) to be used without argument.  As in
 
9393
  #   $(mkdir_p) $(somedir)
 
9394
  # where $(somedir) is conditionally defined.  However this is wrong
 
9395
  # for two reasons:
 
9396
  #  1. if the package is installed by a user who cannot write `.'
 
9397
  #     make install will fail,
 
9398
  #  2. the above comment should most certainly read
 
9399
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
9400
  #     so it does not work when $(somedir) is undefined and
 
9401
  #     $(DESTDIR) is not.
 
9402
  #  To support the latter case, we have to write
 
9403
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
9404
  #  so the `.' trick is pointless.
 
9405
  mkdir_p='mkdir -p --'
 
9406
else
 
9407
  # On NextStep and OpenStep, the `mkdir' command does not
 
9408
  # recognize any option.  It will interpret all options as
 
9409
  # directories to create, and then abort because `.' already
 
9410
  # exists.
 
9411
  for d in ./-p ./--version;
 
9412
  do
 
9413
    test -d $d && rmdir $d
 
9414
  done
 
9415
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
9416
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
9417
    mkdir_p='$(mkinstalldirs)'
 
9418
  else
 
9419
    mkdir_p='$(install_sh) -d'
 
9420
  fi
 
9421
fi
 
9422
AC_SUBST([mkdir_p])])
9211
9423
 
9212
9424
# Helper functions for option handling.                     -*- Autoconf -*-
9213
9425
 
9214
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9426
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9215
9427
#
9216
9428
# This file is free software; the Free Software Foundation
9217
9429
# gives unlimited permission to copy and/or distribute it,
9218
9430
# with or without modifications, as long as this notice is preserved.
9219
9431
 
9220
 
# serial 4
 
9432
# serial 3
9221
9433
 
9222
9434
# _AM_MANGLE_OPTION(NAME)
9223
9435
# -----------------------
9234
9446
# ----------------------------------
9235
9447
# OPTIONS is a space-separated list of Automake options.
9236
9448
AC_DEFUN([_AM_SET_OPTIONS],
9237
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9449
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9238
9450
 
9239
9451
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9240
9452
# -------------------------------------------
9319
9531
if test "$cross_compiling" != no; then
9320
9532
  AC_CHECK_TOOL([STRIP], [strip], :)
9321
9533
fi
9322
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
9534
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9323
9535
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9324
9536
 
9325
 
# Copyright (C) 2006  Free Software Foundation, Inc.
9326
 
#
9327
 
# This file is free software; the Free Software Foundation
9328
 
# gives unlimited permission to copy and/or distribute it,
9329
 
# with or without modifications, as long as this notice is preserved.
9330
 
 
9331
 
# _AM_SUBST_NOTMAKE(VARIABLE)
9332
 
# ---------------------------
9333
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9334
 
# This macro is traced by Automake.
9335
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
9336
 
 
9337
9537
# Check how to create a tarball.                            -*- Autoconf -*-
9338
9538
 
9339
9539
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.