~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
 
# Inc.
 
1
# generated automatically by aclocal 1.13.3 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
4
 
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
23
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
24
24
# serial 1 (pkg-config-0.24)
180
180
fi[]dnl
181
181
])# PKG_CHECK_MODULES
182
182
 
183
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
184
 
# Foundation, Inc.
 
183
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
185
184
#
186
185
# This file is free software; the Free Software Foundation
187
186
# gives unlimited permission to copy and/or distribute it,
188
187
# with or without modifications, as long as this notice is preserved.
189
188
 
190
 
# serial 1
191
 
 
192
189
# AM_AUTOMAKE_VERSION(VERSION)
193
190
# ----------------------------
194
191
# Automake X.Y traces this macro to ensure aclocal.m4 has been
195
192
# generated from the m4 files accompanying Automake X.Y.
196
193
# (This private macro should not be called outside this file.)
197
194
AC_DEFUN([AM_AUTOMAKE_VERSION],
198
 
[am__api_version='1.11'
 
195
[am__api_version='1.13'
199
196
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
200
197
dnl require some minimum version.  Point them to the right macro.
201
 
m4_if([$1], [1.11.6], [],
 
198
m4_if([$1], [1.13.3], [],
202
199
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
203
200
])
204
201
 
214
211
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
215
212
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
216
213
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
217
 
[AM_AUTOMAKE_VERSION([1.11.6])dnl
 
214
[AM_AUTOMAKE_VERSION([1.13.3])dnl
218
215
m4_ifndef([AC_AUTOCONF_VERSION],
219
216
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
220
217
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
221
218
 
222
 
# Copyright (C) 2011 Free Software Foundation, Inc.
 
219
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
223
220
#
224
221
# This file is free software; the Free Software Foundation
225
222
# gives unlimited permission to copy and/or distribute it,
226
223
# with or without modifications, as long as this notice is preserved.
227
224
 
228
 
# serial 1
229
 
 
230
225
# AM_PROG_AR([ACT-IF-FAIL])
231
226
# -------------------------
232
227
# Try to determine the archiver interface, and trigger the ar-lib wrapper
282
277
 
283
278
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
284
279
 
285
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
280
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
286
281
#
287
282
# This file is free software; the Free Software Foundation
288
283
# gives unlimited permission to copy and/or distribute it,
289
284
# with or without modifications, as long as this notice is preserved.
290
285
 
291
 
# serial 1
292
 
 
293
286
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
294
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
295
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
287
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
288
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
296
289
#
297
290
# Of course, Automake must honor this variable whenever it calls a
298
291
# tool from the auxiliary directory.  The problem is that $srcdir (and
311
304
#
312
305
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
313
306
# are both prefixed by $srcdir.  In an in-source build this is usually
314
 
# harmless because $srcdir is `.', but things will broke when you
 
307
# harmless because $srcdir is '.', but things will broke when you
315
308
# start a VPATH build or use an absolute $srcdir.
316
309
#
317
310
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
337
330
 
338
331
# AM_CONDITIONAL                                            -*- Autoconf -*-
339
332
 
340
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
341
 
# Free Software Foundation, Inc.
 
333
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
342
334
#
343
335
# This file is free software; the Free Software Foundation
344
336
# gives unlimited permission to copy and/or distribute it,
345
337
# with or without modifications, as long as this notice is preserved.
346
338
 
347
 
# serial 9
348
 
 
349
339
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
350
340
# -------------------------------------
351
341
# Define a conditional.
352
342
AC_DEFUN([AM_CONDITIONAL],
353
 
[AC_PREREQ(2.52)dnl
354
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
355
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
343
[AC_PREREQ([2.52])dnl
 
344
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
345
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
356
346
AC_SUBST([$1_TRUE])dnl
357
347
AC_SUBST([$1_FALSE])dnl
358
348
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
371
361
Usually this means the macro was only invoked conditionally.]])
372
362
fi])])
373
363
 
374
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
375
 
# 2010, 2011 Free Software Foundation, Inc.
 
364
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
376
365
#
377
366
# This file is free software; the Free Software Foundation
378
367
# gives unlimited permission to copy and/or distribute it,
379
368
# with or without modifications, as long as this notice is preserved.
380
369
 
381
 
# serial 12
382
370
 
383
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
371
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
384
372
# written in clear, in which case automake, when reading aclocal.m4,
385
373
# will think it sees a *use*, and therefore will trigger all it's
386
374
# C support machinery.  Also note that it means that autoscan, seeing
390
378
# _AM_DEPENDENCIES(NAME)
391
379
# ----------------------
392
380
# See how the compiler implements dependency checking.
393
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
381
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
394
382
# We try a few techniques and use that to set a single cache variable.
395
383
#
396
384
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
403
391
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
404
392
AC_REQUIRE([AM_DEP_TRACK])dnl
405
393
 
406
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
407
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
408
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
409
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
410
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
411
 
                   [depcc="$$1"   am_compiler_list=])
 
394
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
395
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
396
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
397
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
398
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
399
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
400
                    [depcc="$$1"   am_compiler_list=])
412
401
 
413
402
AC_CACHE_CHECK([dependency style of $depcc],
414
403
               [am_cv_$1_dependencies_compiler_type],
416
405
  # We make a subdir and do the tests there.  Otherwise we can end up
417
406
  # making bogus files that we don't know about and never remove.  For
418
407
  # instance it was reported that on HP-UX the gcc test will end up
419
 
  # making a dummy file named `D' -- because `-MD' means `put the output
420
 
  # in D'.
 
408
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
409
  # in D".
421
410
  rm -rf conftest.dir
422
411
  mkdir conftest.dir
423
412
  # Copy depcomp to subdir because otherwise we won't find it if we're
457
446
    : > sub/conftest.c
458
447
    for i in 1 2 3 4 5 6; do
459
448
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
460
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
461
 
      # Solaris 8's {/usr,}/bin/sh.
462
 
      touch sub/conftst$i.h
 
449
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
450
      # Solaris 10 /bin/sh.
 
451
      echo '/* dummy */' > sub/conftst$i.h
463
452
    done
464
453
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
465
454
 
466
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
455
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
467
456
    # mode.  It turns out that the SunPro C++ compiler does not properly
468
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
469
 
    # versions had trouble with output in subdirs
 
457
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
458
    # versions had trouble with output in subdirs.
470
459
    am__obj=sub/conftest.${OBJEXT-o}
471
460
    am__minus_obj="-o $am__obj"
472
461
    case $depmode in
475
464
      test "$am__universal" = false || continue
476
465
      ;;
477
466
    nosideeffect)
478
 
      # after this tag, mechanisms are not by side-effect, so they'll
479
 
      # only be used when explicitly requested
 
467
      # After this tag, mechanisms are not by side-effect, so they'll
 
468
      # only be used when explicitly requested.
480
469
      if test "x$enable_dependency_tracking" = xyes; then
481
470
        continue
482
471
      else
484
473
      fi
485
474
      ;;
486
475
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
487
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
476
      # This compiler won't grok '-c -o', but also, the minuso test has
488
477
      # not run yet.  These depmodes are late enough in the game, and
489
478
      # so weak that their functioning should not be impacted.
490
479
      am__obj=conftest.${OBJEXT-o}
532
521
# AM_SET_DEPDIR
533
522
# -------------
534
523
# Choose a directory name for dependency files.
535
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
524
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
536
525
AC_DEFUN([AM_SET_DEPDIR],
537
526
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
538
527
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
542
531
# AM_DEP_TRACK
543
532
# ------------
544
533
AC_DEFUN([AM_DEP_TRACK],
545
 
[AC_ARG_ENABLE(dependency-tracking,
546
 
[  --disable-dependency-tracking  speeds up one-time build
547
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
534
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
535
AS_HELP_STRING(
 
536
  [--enable-dependency-tracking],
 
537
  [do not reject slow dependency extractors])
 
538
AS_HELP_STRING(
 
539
  [--disable-dependency-tracking],
 
540
  [speeds up one-time build])])
548
541
if test "x$enable_dependency_tracking" != xno; then
549
542
  am_depcomp="$ac_aux_dir/depcomp"
550
543
  AMDEPBACKSLASH='\'
559
552
 
560
553
# Generate code to set up dependency tracking.              -*- Autoconf -*-
561
554
 
562
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
563
 
# Free Software Foundation, Inc.
 
555
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
564
556
#
565
557
# This file is free software; the Free Software Foundation
566
558
# gives unlimited permission to copy and/or distribute it,
567
559
# with or without modifications, as long as this notice is preserved.
568
560
 
569
 
#serial 5
570
561
 
571
562
# _AM_OUTPUT_DEPENDENCY_COMMANDS
572
563
# ------------------------------
573
564
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
574
565
[{
575
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
566
  # Older Autoconf quotes --file arguments for eval, but not when files
576
567
  # are listed without --file.  Let's play safe and only enable the eval
577
568
  # if we detect the quoting.
578
569
  case $CONFIG_FILES in
585
576
    # Strip MF so we end up with the name of the file.
586
577
    mf=`echo "$mf" | sed -e 's/:.*$//'`
587
578
    # Check whether this is an Automake generated Makefile or not.
588
 
    # We used to match only the files named `Makefile.in', but
 
579
    # We used to match only the files named 'Makefile.in', but
589
580
    # some people rename them; so instead we look at the file content.
590
581
    # Grep'ing the first line is not enough: some people post-process
591
582
    # each Makefile.in and add a new line on top of each file to say so.
597
588
      continue
598
589
    fi
599
590
    # Extract the definition of DEPDIR, am__include, and am__quote
600
 
    # from the Makefile without running `make'.
 
591
    # from the Makefile without running 'make'.
601
592
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
602
593
    test -z "$DEPDIR" && continue
603
594
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
604
 
    test -z "am__include" && continue
 
595
    test -z "$am__include" && continue
605
596
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
606
 
    # When using ansi2knr, U may be empty or an underscore; expand it
607
 
    U=`sed -n 's/^U = //p' < "$mf"`
608
597
    # Find all dependency output files, they are included files with
609
598
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
610
599
    # simplest approach to changing $(DEPDIR) to its actual value in the
611
600
    # expansion.
612
601
    for file in `sed -n "
613
602
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
614
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
603
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
615
604
      # Make sure the directory exists.
616
605
      test -f "$dirpart/$file" && continue
617
606
      fdir=`AS_DIRNAME(["$file"])`
629
618
# This macro should only be invoked once -- use via AC_REQUIRE.
630
619
#
631
620
# This code is only required when automatic dependency tracking
632
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
621
# is enabled.  FIXME.  This creates each '.P' file that we will
633
622
# need in order to bootstrap the dependency handling code.
634
623
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
635
624
[AC_CONFIG_COMMANDS([depfiles],
639
628
 
640
629
# Do all the work for Automake.                             -*- Autoconf -*-
641
630
 
642
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
643
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
631
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
644
632
#
645
633
# This file is free software; the Free Software Foundation
646
634
# gives unlimited permission to copy and/or distribute it,
647
635
# with or without modifications, as long as this notice is preserved.
648
636
 
649
 
# serial 16
650
 
 
651
637
# This macro actually does too much.  Some checks are only needed if
652
638
# your package does certain things.  But this isn't really a big deal.
653
639
 
663
649
# arguments mandatory, and then we can depend on a new Autoconf
664
650
# release and drop the old call support.
665
651
AC_DEFUN([AM_INIT_AUTOMAKE],
666
 
[AC_PREREQ([2.62])dnl
 
652
[AC_PREREQ([2.65])dnl
667
653
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
668
654
dnl the ones we care about.
669
655
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
692
678
# Define the identity of the package.
693
679
dnl Distinguish between old-style and new-style calls.
694
680
m4_ifval([$2],
695
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
681
[AC_DIAGNOSE([obsolete],
 
682
             [$0: two- and three-arguments forms are deprecated.])
 
683
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
696
684
 AC_SUBST([PACKAGE], [$1])dnl
697
685
 AC_SUBST([VERSION], [$2])],
698
686
[_AM_SET_OPTIONS([$1])dnl
699
687
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
700
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
688
m4_if(
 
689
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
690
  [ok:ok],,
701
691
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
702
692
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
703
693
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
704
694
 
705
695
_AM_IF_OPTION([no-define],,
706
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
707
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
696
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
697
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
708
698
 
709
699
# Some tools Automake needs.
710
700
AC_REQUIRE([AM_SANITY_CHECK])dnl
711
701
AC_REQUIRE([AC_ARG_PROGRAM])dnl
712
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
713
 
AM_MISSING_PROG(AUTOCONF, autoconf)
714
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
715
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
716
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
702
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
703
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
704
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
705
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
706
AM_MISSING_PROG([MAKEINFO], [makeinfo])
717
707
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
718
708
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
719
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
709
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
710
# For better backward compatibility.  To be removed once Automake 1.9.x
 
711
# dies out for good.  For more background, see:
 
712
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
713
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
714
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
720
715
# We need awk for the "check" target.  The system "awk" is bad on
721
716
# some platforms.
722
717
AC_REQUIRE([AC_PROG_AWK])dnl
727
722
                             [_AM_PROG_TAR([v7])])])
728
723
_AM_IF_OPTION([no-dependencies],,
729
724
[AC_PROVIDE_IFELSE([AC_PROG_CC],
730
 
                  [_AM_DEPENDENCIES(CC)],
731
 
                  [define([AC_PROG_CC],
732
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
725
                  [_AM_DEPENDENCIES([CC])],
 
726
                  [m4_define([AC_PROG_CC],
 
727
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
733
728
AC_PROVIDE_IFELSE([AC_PROG_CXX],
734
 
                  [_AM_DEPENDENCIES(CXX)],
735
 
                  [define([AC_PROG_CXX],
736
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
729
                  [_AM_DEPENDENCIES([CXX])],
 
730
                  [m4_define([AC_PROG_CXX],
 
731
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
737
732
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
738
 
                  [_AM_DEPENDENCIES(OBJC)],
739
 
                  [define([AC_PROG_OBJC],
740
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
733
                  [_AM_DEPENDENCIES([OBJC])],
 
734
                  [m4_define([AC_PROG_OBJC],
 
735
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
736
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
737
                  [_AM_DEPENDENCIES([OBJCXX])],
 
738
                  [m4_define([AC_PROG_OBJCXX],
 
739
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
741
740
])
742
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
743
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
744
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
745
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
741
AC_REQUIRE([AM_SILENT_RULES])dnl
 
742
dnl The testsuite driver may need to know about EXEEXT, so add the
 
743
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
744
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
746
745
AC_CONFIG_COMMANDS_PRE(dnl
747
746
[m4_provide_if([_AM_COMPILER_EXEEXT],
748
747
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
749
748
])
750
749
 
751
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
750
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
752
751
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
753
752
dnl mangled by Autoconf and run in a shell conditional statement.
754
753
m4_define([_AC_COMPILER_EXEEXT],
776
775
done
777
776
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
778
777
 
779
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
780
 
# Inc.
 
778
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
781
779
#
782
780
# This file is free software; the Free Software Foundation
783
781
# gives unlimited permission to copy and/or distribute it,
784
782
# with or without modifications, as long as this notice is preserved.
785
783
 
786
 
# serial 1
787
 
 
788
784
# AM_PROG_INSTALL_SH
789
785
# ------------------
790
786
# Define $install_sh.
798
794
    install_sh="\${SHELL} $am_aux_dir/install-sh"
799
795
  esac
800
796
fi
801
 
AC_SUBST(install_sh)])
 
797
AC_SUBST([install_sh])])
802
798
 
803
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
799
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
804
800
#
805
801
# This file is free software; the Free Software Foundation
806
802
# gives unlimited permission to copy and/or distribute it,
807
803
# with or without modifications, as long as this notice is preserved.
808
804
 
809
 
# serial 2
810
 
 
811
805
# Check whether the underlying file-system supports filenames
812
806
# with a leading dot.  For instance MS-DOS doesn't.
813
807
AC_DEFUN([AM_SET_LEADING_DOT],
824
818
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
825
819
# From Jim Meyering
826
820
 
827
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
828
 
# 2011 Free Software Foundation, Inc.
 
821
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
829
822
#
830
823
# This file is free software; the Free Software Foundation
831
824
# gives unlimited permission to copy and/or distribute it,
832
825
# with or without modifications, as long as this notice is preserved.
833
826
 
834
 
# serial 5
835
 
 
836
827
# AM_MAINTAINER_MODE([DEFAULT-MODE])
837
828
# ----------------------------------
838
829
# Control maintainer-specific portions of Makefiles.
839
 
# Default is to disable them, unless `enable' is passed literally.
840
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
830
# Default is to disable them, unless 'enable' is passed literally.
 
831
# For symmetry, 'disable' may be passed as well.  Anyway, the user
841
832
# can override the default with the --enable/--disable switch.
842
833
AC_DEFUN([AM_MAINTAINER_MODE],
843
834
[m4_case(m4_default([$1], [disable]),
848
839
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
849
840
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
850
841
  AC_ARG_ENABLE([maintainer-mode],
851
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
852
 
                          (and sometimes confusing) to the casual installer],
853
 
      [USE_MAINTAINER_MODE=$enableval],
854
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
842
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
843
      am_maintainer_other[ make rules and dependencies not useful
 
844
      (and sometimes confusing) to the casual installer])],
 
845
    [USE_MAINTAINER_MODE=$enableval],
 
846
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
855
847
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
856
848
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
857
849
  MAINT=$MAINTAINER_MODE_TRUE
859
851
]
860
852
)
861
853
 
862
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
863
 
 
864
854
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
865
855
 
866
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
856
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
867
857
#
868
858
# This file is free software; the Free Software Foundation
869
859
# gives unlimited permission to copy and/or distribute it,
870
860
# with or without modifications, as long as this notice is preserved.
871
861
 
872
 
# serial 4
873
 
 
874
862
# AM_MAKE_INCLUDE()
875
863
# -----------------
876
864
# Check to see how make treats includes.
888
876
_am_result=none
889
877
# First try GNU make style include.
890
878
echo "include confinc" > confmf
891
 
# Ignore all kinds of additional output from `make'.
 
879
# Ignore all kinds of additional output from 'make'.
892
880
case `$am_make -s -f confmf 2> /dev/null` in #(
893
881
*the\ am__doit\ target*)
894
882
  am__include=include
913
901
rm -f confinc confmf
914
902
])
915
903
 
916
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
917
 
# Free Software Foundation, Inc.
 
904
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
918
905
#
919
906
# This file is free software; the Free Software Foundation
920
907
# gives unlimited permission to copy and/or distribute it,
921
908
# with or without modifications, as long as this notice is preserved.
922
909
 
923
 
# serial 6
924
 
 
925
910
# AM_PROG_CC_C_O
926
911
# --------------
927
912
# Like AC_PROG_CC_C_O, but changed for automake.
950
935
 
951
936
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
952
937
 
953
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
954
 
# Free Software Foundation, Inc.
 
938
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
955
939
#
956
940
# This file is free software; the Free Software Foundation
957
941
# gives unlimited permission to copy and/or distribute it,
958
942
# with or without modifications, as long as this notice is preserved.
959
943
 
960
 
# serial 6
961
 
 
962
944
# AM_MISSING_PROG(NAME, PROGRAM)
963
945
# ------------------------------
964
946
AC_DEFUN([AM_MISSING_PROG],
966
948
$1=${$1-"${am_missing_run}$2"}
967
949
AC_SUBST($1)])
968
950
 
969
 
 
970
951
# AM_MISSING_HAS_RUN
971
952
# ------------------
972
 
# Define MISSING if not defined so far and test if it supports --run.
973
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
953
# Define MISSING if not defined so far and test if it is modern enough.
 
954
# If it is, set am_missing_run to use it, otherwise, to nothing.
974
955
AC_DEFUN([AM_MISSING_HAS_RUN],
975
956
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
976
957
AC_REQUIRE_AUX_FILE([missing])dnl
983
964
  esac
984
965
fi
985
966
# Use eval to expand $SHELL
986
 
if eval "$MISSING --run true"; then
987
 
  am_missing_run="$MISSING --run "
 
967
if eval "$MISSING --is-lightweight"; then
 
968
  am_missing_run="$MISSING "
988
969
else
989
970
  am_missing_run=
990
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
971
  AC_MSG_WARN(['missing' script is too old or missing])
991
972
fi
992
973
])
993
974
 
994
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
995
 
# Inc.
996
 
#
997
 
# This file is free software; the Free Software Foundation
998
 
# gives unlimited permission to copy and/or distribute it,
999
 
# with or without modifications, as long as this notice is preserved.
1000
 
 
1001
 
# serial 1
1002
 
 
1003
 
# AM_PROG_MKDIR_P
1004
 
# ---------------
1005
 
# Check for `mkdir -p'.
1006
 
AC_DEFUN([AM_PROG_MKDIR_P],
1007
 
[AC_PREREQ([2.60])dnl
1008
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1009
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
1010
 
dnl while keeping a definition of mkdir_p for backward compatibility.
1011
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1012
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1013
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1014
 
dnl adjustment using top_builddir (which is defined more often than
1015
 
dnl MKDIR_P).
1016
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1017
 
case $mkdir_p in
1018
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
1019
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1020
 
esac
1021
 
])
1022
 
 
1023
975
# Helper functions for option handling.                     -*- Autoconf -*-
1024
976
 
1025
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1026
 
# Foundation, Inc.
 
977
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1027
978
#
1028
979
# This file is free software; the Free Software Foundation
1029
980
# gives unlimited permission to copy and/or distribute it,
1030
981
# with or without modifications, as long as this notice is preserved.
1031
982
 
1032
 
# serial 5
1033
 
 
1034
983
# _AM_MANGLE_OPTION(NAME)
1035
984
# -----------------------
1036
985
AC_DEFUN([_AM_MANGLE_OPTION],
1040
989
# --------------------
1041
990
# Set option NAME.  Presently that only means defining a flag for this option.
1042
991
AC_DEFUN([_AM_SET_OPTION],
1043
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
992
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1044
993
 
1045
994
# _AM_SET_OPTIONS(OPTIONS)
1046
995
# ------------------------
1056
1005
 
1057
1006
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1058
1007
 
1059
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1060
 
# Free Software Foundation, Inc.
 
1008
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1061
1009
#
1062
1010
# This file is free software; the Free Software Foundation
1063
1011
# gives unlimited permission to copy and/or distribute it,
1064
1012
# with or without modifications, as long as this notice is preserved.
1065
1013
 
1066
 
# serial 5
1067
 
 
1068
1014
# AM_SANITY_CHECK
1069
1015
# ---------------
1070
1016
AC_DEFUN([AM_SANITY_CHECK],
1071
1017
[AC_MSG_CHECKING([whether build environment is sane])
1072
 
# Just in case
1073
 
sleep 1
1074
 
echo timestamp > conftest.file
1075
1018
# Reject unsafe characters in $srcdir or the absolute working directory
1076
1019
# name.  Accept space and tab only in the latter.
1077
1020
am_lf='
1082
1025
esac
1083
1026
case $srcdir in
1084
1027
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1085
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1028
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1086
1029
esac
1087
1030
 
1088
 
# Do `set' in a subshell so we don't clobber the current shell's
 
1031
# Do 'set' in a subshell so we don't clobber the current shell's
1089
1032
# arguments.  Must try -L first in case configure is actually a
1090
1033
# symlink; some systems play weird games with the mod time of symlinks
1091
1034
# (eg FreeBSD returns the mod time of the symlink's containing
1092
1035
# directory).
1093
1036
if (
1094
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1095
 
   if test "$[*]" = "X"; then
1096
 
      # -L didn't work.
1097
 
      set X `ls -t "$srcdir/configure" conftest.file`
1098
 
   fi
1099
 
   rm -f conftest.file
1100
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1101
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1102
 
 
1103
 
      # If neither matched, then we have a broken ls.  This can happen
1104
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1105
 
      # broken ls alias from the environment.  This has actually
1106
 
      # happened.  Such a system could not be considered "sane".
1107
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1108
 
alias in your environment])
1109
 
   fi
1110
 
 
 
1037
   am_has_slept=no
 
1038
   for am_try in 1 2; do
 
1039
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
1040
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1041
     if test "$[*]" = "X"; then
 
1042
        # -L didn't work.
 
1043
        set X `ls -t "$srcdir/configure" conftest.file`
 
1044
     fi
 
1045
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1046
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1047
 
 
1048
        # If neither matched, then we have a broken ls.  This can happen
 
1049
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1050
        # broken ls alias from the environment.  This has actually
 
1051
        # happened.  Such a system could not be considered "sane".
 
1052
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1053
  alias in your environment])
 
1054
     fi
 
1055
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
1056
       break
 
1057
     fi
 
1058
     # Just in case.
 
1059
     sleep 1
 
1060
     am_has_slept=yes
 
1061
   done
1111
1062
   test "$[2]" = conftest.file
1112
1063
   )
1113
1064
then
1117
1068
   AC_MSG_ERROR([newly created file is older than distributed files!
1118
1069
Check your system clock])
1119
1070
fi
1120
 
AC_MSG_RESULT(yes)])
 
1071
AC_MSG_RESULT([yes])
 
1072
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
1073
# generated files are strictly newer.
 
1074
am_sleep_pid=
 
1075
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
1076
  ( sleep 1 ) &
 
1077
  am_sleep_pid=$!
 
1078
fi
 
1079
AC_CONFIG_COMMANDS_PRE(
 
1080
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
1081
   if test -n "$am_sleep_pid"; then
 
1082
     # Hide warnings about reused PIDs.
 
1083
     wait $am_sleep_pid 2>/dev/null
 
1084
   fi
 
1085
   AC_MSG_RESULT([done])])
 
1086
rm -f conftest.file
 
1087
])
1121
1088
 
1122
 
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1089
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1123
1090
#
1124
1091
# This file is free software; the Free Software Foundation
1125
1092
# gives unlimited permission to copy and/or distribute it,
1126
1093
# with or without modifications, as long as this notice is preserved.
1127
1094
 
1128
 
# serial 2
1129
 
 
1130
1095
# AM_SILENT_RULES([DEFAULT])
1131
1096
# --------------------------
1132
1097
# Enable less verbose build rules; with the default set to DEFAULT
1133
 
# (`yes' being less verbose, `no' or empty being verbose).
 
1098
# ("yes" being less verbose, "no" or empty being verbose).
1134
1099
AC_DEFUN([AM_SILENT_RULES],
1135
 
[AC_ARG_ENABLE([silent-rules],
1136
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1137
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
1138
 
case $enable_silent_rules in
1139
 
yes) AM_DEFAULT_VERBOSITY=0;;
1140
 
no)  AM_DEFAULT_VERBOSITY=1;;
1141
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1100
[AC_ARG_ENABLE([silent-rules], [dnl
 
1101
AS_HELP_STRING(
 
1102
  [--enable-silent-rules],
 
1103
  [less verbose build output (undo: "make V=1")])
 
1104
AS_HELP_STRING(
 
1105
  [--disable-silent-rules],
 
1106
  [verbose build output (undo: "make V=0")])dnl
 
1107
])
 
1108
case $enable_silent_rules in @%:@ (((
 
1109
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1110
   no) AM_DEFAULT_VERBOSITY=1;;
 
1111
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1142
1112
esac
1143
1113
dnl
1144
 
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1114
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1145
1115
dnl do not support nested variable expansions.
1146
1116
dnl See automake bug#9928 and bug#10237.
1147
1117
am_make=${MAKE-make}
1159
1129
  am_cv_make_support_nested_variables=no
1160
1130
fi])
1161
1131
if test $am_cv_make_support_nested_variables = yes; then
1162
 
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1132
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1163
1133
  AM_V='$(V)'
1164
1134
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1165
1135
else
1176
1146
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1177
1147
])
1178
1148
 
1179
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1149
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1180
1150
#
1181
1151
# This file is free software; the Free Software Foundation
1182
1152
# gives unlimited permission to copy and/or distribute it,
1183
1153
# with or without modifications, as long as this notice is preserved.
1184
1154
 
1185
 
# serial 1
1186
 
 
1187
1155
# AM_PROG_INSTALL_STRIP
1188
1156
# ---------------------
1189
 
# One issue with vendor `install' (even GNU) is that you can't
 
1157
# One issue with vendor 'install' (even GNU) is that you can't
1190
1158
# specify the program used to strip binaries.  This is especially
1191
1159
# annoying in cross-compiling environments, where the build's strip
1192
1160
# is unlikely to handle the host's binaries.
1193
1161
# Fortunately install-sh will honor a STRIPPROG variable, so we
1194
 
# always use install-sh in `make install-strip', and initialize
 
1162
# always use install-sh in "make install-strip", and initialize
1195
1163
# STRIPPROG with the value of the STRIP variable (set by the user).
1196
1164
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1197
1165
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1198
 
# Installed binaries are usually stripped using `strip' when the user
1199
 
# run `make install-strip'.  However `strip' might not be the right
 
1166
# Installed binaries are usually stripped using 'strip' when the user
 
1167
# run "make install-strip".  However 'strip' might not be the right
1200
1168
# tool to use in cross-compilation environments, therefore Automake
1201
 
# will honor the `STRIP' environment variable to overrule this program.
1202
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1169
# will honor the 'STRIP' environment variable to overrule this program.
 
1170
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1203
1171
if test "$cross_compiling" != no; then
1204
1172
  AC_CHECK_TOOL([STRIP], [strip], :)
1205
1173
fi
1206
1174
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1207
1175
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1208
1176
 
1209
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1177
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1210
1178
#
1211
1179
# This file is free software; the Free Software Foundation
1212
1180
# gives unlimited permission to copy and/or distribute it,
1213
1181
# with or without modifications, as long as this notice is preserved.
1214
1182
 
1215
 
# serial 3
1216
 
 
1217
1183
# _AM_SUBST_NOTMAKE(VARIABLE)
1218
1184
# ---------------------------
1219
1185
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1227
1193
 
1228
1194
# Check how to create a tarball.                            -*- Autoconf -*-
1229
1195
 
1230
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1196
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1231
1197
#
1232
1198
# This file is free software; the Free Software Foundation
1233
1199
# gives unlimited permission to copy and/or distribute it,
1234
1200
# with or without modifications, as long as this notice is preserved.
1235
1201
 
1236
 
# serial 2
1237
 
 
1238
1202
# _AM_PROG_TAR(FORMAT)
1239
1203
# --------------------
1240
1204
# Check how to create a tarball in format FORMAT.
1241
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1205
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1242
1206
#
1243
1207
# Substitute a variable $(am__tar) that is a command
1244
1208
# writing to stdout a FORMAT-tarball containing the directory
1248
1212
# Substitute a variable $(am__untar) that extract such
1249
1213
# a tarball read from stdin.
1250
1214
#     $(am__untar) < result.tar
 
1215
#
1251
1216
AC_DEFUN([_AM_PROG_TAR],
1252
1217
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1253
1218
# in the wild :-(  We should find a proper way to deprecate it ...
1254
1219
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1220
 
 
1221
# We'll loop over all known methods to create a tar archive until one works.
 
1222
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1223
 
1255
1224
m4_if([$1], [v7],
1256
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1257
 
     [m4_case([$1], [ustar],, [pax],,
1258
 
              [m4_fatal([Unknown tar format])])
1259
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1260
 
# Loop over all known methods to create a tar archive until one works.
1261
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1262
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1263
 
# Do not fold the above two line into one, because Tru64 sh and
1264
 
# Solaris sh will not grok spaces in the rhs of `-'.
1265
 
for _am_tool in $_am_tools
1266
 
do
1267
 
  case $_am_tool in
1268
 
  gnutar)
1269
 
    for _am_tar in tar gnutar gtar;
1270
 
    do
1271
 
      AM_RUN_LOG([$_am_tar --version]) && break
1272
 
    done
1273
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1274
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1275
 
    am__untar="$_am_tar -xf -"
1276
 
    ;;
1277
 
  plaintar)
1278
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1279
 
    # ustar tarball either.
1280
 
    (tar --version) >/dev/null 2>&1 && continue
1281
 
    am__tar='tar chf - "$$tardir"'
1282
 
    am__tar_='tar chf - "$tardir"'
1283
 
    am__untar='tar xf -'
1284
 
    ;;
1285
 
  pax)
1286
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1287
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1288
 
    am__untar='pax -r'
1289
 
    ;;
1290
 
  cpio)
1291
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1292
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1293
 
    am__untar='cpio -i -H $1 -d'
1294
 
    ;;
1295
 
  none)
1296
 
    am__tar=false
1297
 
    am__tar_=false
1298
 
    am__untar=false
1299
 
    ;;
1300
 
  esac
1301
 
 
1302
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1303
 
  # and am__untar set.
1304
 
  test -n "${am_cv_prog_tar_$1}" && break
1305
 
 
1306
 
  # tar/untar a dummy directory, and stop if the command works
1307
 
  rm -rf conftest.dir
1308
 
  mkdir conftest.dir
1309
 
  echo GrepMe > conftest.dir/file
1310
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1311
 
  rm -rf conftest.dir
1312
 
  if test -s conftest.tar; then
1313
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1314
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1315
 
  fi
1316
 
done
1317
 
rm -rf conftest.dir
1318
 
 
1319
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1320
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1225
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1226
 
 
1227
  [m4_case([$1],
 
1228
    [ustar],
 
1229
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1230
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1231
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1232
      # and bug#13588).
 
1233
      am_max_uid=2097151 # 2^21 - 1
 
1234
      am_max_gid=$am_max_uid
 
1235
      # The $UID and $GID variables are not portable, so we need to resort
 
1236
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1237
      # below are definitely unexpected, so allow the users to see them
 
1238
      # (that is, avoid stderr redirection).
 
1239
      am_uid=`id -u || echo unknown`
 
1240
      am_gid=`id -g || echo unknown`
 
1241
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1242
      if test $am_uid -le $am_max_uid; then
 
1243
         AC_MSG_RESULT([yes])
 
1244
      else
 
1245
         AC_MSG_RESULT([no])
 
1246
         _am_tools=none
 
1247
      fi
 
1248
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1249
      if test $am_gid -le $am_max_gid; then
 
1250
         AC_MSG_RESULT([yes])
 
1251
      else
 
1252
        AC_MSG_RESULT([no])
 
1253
        _am_tools=none
 
1254
      fi],
 
1255
 
 
1256
  [pax],
 
1257
    [],
 
1258
 
 
1259
  [m4_fatal([Unknown tar format])])
 
1260
 
 
1261
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1262
 
 
1263
  # Go ahead even if we have the value already cached.  We do so because we
 
1264
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1265
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1266
 
 
1267
  for _am_tool in $_am_tools; do
 
1268
    case $_am_tool in
 
1269
    gnutar)
 
1270
      for _am_tar in tar gnutar gtar; do
 
1271
        AM_RUN_LOG([$_am_tar --version]) && break
 
1272
      done
 
1273
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1274
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1275
      am__untar="$_am_tar -xf -"
 
1276
      ;;
 
1277
    plaintar)
 
1278
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1279
      # ustar tarball either.
 
1280
      (tar --version) >/dev/null 2>&1 && continue
 
1281
      am__tar='tar chf - "$$tardir"'
 
1282
      am__tar_='tar chf - "$tardir"'
 
1283
      am__untar='tar xf -'
 
1284
      ;;
 
1285
    pax)
 
1286
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1287
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1288
      am__untar='pax -r'
 
1289
      ;;
 
1290
    cpio)
 
1291
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1292
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1293
      am__untar='cpio -i -H $1 -d'
 
1294
      ;;
 
1295
    none)
 
1296
      am__tar=false
 
1297
      am__tar_=false
 
1298
      am__untar=false
 
1299
      ;;
 
1300
    esac
 
1301
 
 
1302
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1303
    # and am__untar set.
 
1304
    test -n "${am_cv_prog_tar_$1}" && break
 
1305
 
 
1306
    # tar/untar a dummy directory, and stop if the command works.
 
1307
    rm -rf conftest.dir
 
1308
    mkdir conftest.dir
 
1309
    echo GrepMe > conftest.dir/file
 
1310
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1311
    rm -rf conftest.dir
 
1312
    if test -s conftest.tar; then
 
1313
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1314
      AM_RUN_LOG([cat conftest.dir/file])
 
1315
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1316
    fi
 
1317
  done
 
1318
  rm -rf conftest.dir
 
1319
 
 
1320
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1321
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1322
 
1321
1323
AC_SUBST([am__tar])
1322
1324
AC_SUBST([am__untar])
1323
1325
]) # _AM_PROG_TAR
1354
1356
m4_include([gnulib/m4/error.m4])
1355
1357
m4_include([gnulib/m4/exponentd.m4])
1356
1358
m4_include([gnulib/m4/extensions.m4])
 
1359
m4_include([gnulib/m4/extern-inline.m4])
1357
1360
m4_include([gnulib/m4/fchdir.m4])
1358
1361
m4_include([gnulib/m4/fcntl-o.m4])
1359
1362
m4_include([gnulib/m4/fcntl.m4])
1382
1385
m4_include([gnulib/m4/iconv.m4])
1383
1386
m4_include([gnulib/m4/idpriv.m4])
1384
1387
m4_include([gnulib/m4/include_next.m4])
1385
 
m4_include([gnulib/m4/inline.m4])
1386
1388
m4_include([gnulib/m4/intlmacosx.m4])
1387
1389
m4_include([gnulib/m4/intmax_t.m4])
1388
1390
m4_include([gnulib/m4/inttypes_h.m4])
1389
1391
m4_include([gnulib/m4/langinfo_h.m4])
 
1392
m4_include([gnulib/m4/largefile.m4])
1390
1393
m4_include([gnulib/m4/lib-ignore.m4])
1391
1394
m4_include([gnulib/m4/lib-ld.m4])
1392
1395
m4_include([gnulib/m4/lib-link.m4])
1396
1399
m4_include([gnulib/m4/locale-fr.m4])
1397
1400
m4_include([gnulib/m4/locale-ja.m4])
1398
1401
m4_include([gnulib/m4/locale-zh.m4])
 
1402
m4_include([gnulib/m4/locale_h.m4])
 
1403
m4_include([gnulib/m4/localeconv.m4])
1399
1404
m4_include([gnulib/m4/lock.m4])
1400
1405
m4_include([gnulib/m4/longlong.m4])
1401
1406
m4_include([gnulib/m4/lstat.m4])
1424
1429
m4_include([gnulib/m4/nl_langinfo.m4])
1425
1430
m4_include([gnulib/m4/nls.m4])
1426
1431
m4_include([gnulib/m4/nocrash.m4])
 
1432
m4_include([gnulib/m4/off_t.m4])
1427
1433
m4_include([gnulib/m4/onceonly.m4])
1428
1434
m4_include([gnulib/m4/open.m4])
1429
1435
m4_include([gnulib/m4/openat.m4])
1443
1449
m4_include([gnulib/m4/rmdir.m4])
1444
1450
m4_include([gnulib/m4/same.m4])
1445
1451
m4_include([gnulib/m4/save-cwd.m4])
 
1452
m4_include([gnulib/m4/secure_getenv.m4])
1446
1453
m4_include([gnulib/m4/setenv.m4])
1447
1454
m4_include([gnulib/m4/sigaction.m4])
1448
1455
m4_include([gnulib/m4/signal_h.m4])