~ubuntu-branches/ubuntu/vivid/nbdkit/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Hilko Bengen
  • Date: 2013-10-06 15:25:05 UTC
  • mto: (10.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20131006152505-iul8k8f2rvyahg1c
Tags: upstream-1.1.3
ImportĀ upstreamĀ versionĀ 1.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
219
220
m4_popdef([pkg_description])
220
221
]) dnl PKG_NOARCH_INSTALLDIR
221
222
 
222
 
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
223
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
223
224
#
224
225
# This file is free software; the Free Software Foundation
225
226
# gives unlimited permission to copy and/or distribute it,
226
227
# with or without modifications, as long as this notice is preserved.
227
228
 
228
 
# serial 8
229
 
 
230
229
# AM_AUTOMAKE_VERSION(VERSION)
231
230
# ----------------------------
232
231
# Automake X.Y traces this macro to ensure aclocal.m4 has been
233
232
# generated from the m4 files accompanying Automake X.Y.
234
233
# (This private macro should not be called outside this file.)
235
234
AC_DEFUN([AM_AUTOMAKE_VERSION],
236
 
[am__api_version='1.12'
 
235
[am__api_version='1.13'
237
236
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
238
237
dnl require some minimum version.  Point them to the right macro.
239
 
m4_if([$1], [1.12.2], [],
 
238
m4_if([$1], [1.13.4], [],
240
239
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
241
240
])
242
241
 
252
251
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
253
252
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
254
253
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
255
 
[AM_AUTOMAKE_VERSION([1.12.2])dnl
 
254
[AM_AUTOMAKE_VERSION([1.13.4])dnl
256
255
m4_ifndef([AC_AUTOCONF_VERSION],
257
256
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
258
257
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
259
258
 
260
259
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
261
260
 
262
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
261
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
263
262
#
264
263
# This file is free software; the Free Software Foundation
265
264
# gives unlimited permission to copy and/or distribute it,
266
265
# with or without modifications, as long as this notice is preserved.
267
266
 
268
 
# serial 2
269
 
 
270
267
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
271
268
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
272
269
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
314
311
 
315
312
# AM_CONDITIONAL                                            -*- Autoconf -*-
316
313
 
317
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
314
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
318
315
#
319
316
# This file is free software; the Free Software Foundation
320
317
# gives unlimited permission to copy and/or distribute it,
321
318
# with or without modifications, as long as this notice is preserved.
322
319
 
323
 
# serial 10
324
 
 
325
320
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
326
321
# -------------------------------------
327
322
# Define a conditional.
347
342
Usually this means the macro was only invoked conditionally.]])
348
343
fi])])
349
344
 
350
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
345
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
351
346
#
352
347
# This file is free software; the Free Software Foundation
353
348
# gives unlimited permission to copy and/or distribute it,
354
349
# with or without modifications, as long as this notice is preserved.
355
350
 
356
 
# serial 17
357
351
 
358
352
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
359
353
# written in clear, in which case automake, when reading aclocal.m4,
539
533
 
540
534
# Generate code to set up dependency tracking.              -*- Autoconf -*-
541
535
 
542
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
536
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
543
537
#
544
538
# This file is free software; the Free Software Foundation
545
539
# gives unlimited permission to copy and/or distribute it,
546
540
# with or without modifications, as long as this notice is preserved.
547
541
 
548
 
# serial 6
549
542
 
550
543
# _AM_OUTPUT_DEPENDENCY_COMMANDS
551
544
# ------------------------------
552
545
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
553
546
[{
554
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
547
  # Older Autoconf quotes --file arguments for eval, but not when files
555
548
  # are listed without --file.  Let's play safe and only enable the eval
556
549
  # if we detect the quoting.
557
550
  case $CONFIG_FILES in
580
573
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
581
574
    test -z "$DEPDIR" && continue
582
575
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
583
 
    test -z "am__include" && continue
 
576
    test -z "$am__include" && continue
584
577
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
585
578
    # Find all dependency output files, they are included files with
586
579
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
616
609
 
617
610
# Do all the work for Automake.                             -*- Autoconf -*-
618
611
 
619
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
612
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
620
613
#
621
614
# This file is free software; the Free Software Foundation
622
615
# gives unlimited permission to copy and/or distribute it,
623
616
# with or without modifications, as long as this notice is preserved.
624
617
 
625
 
# serial 19
626
 
 
627
618
# This macro actually does too much.  Some checks are only needed if
628
619
# your package does certain things.  But this isn't really a big deal.
629
620
 
639
630
# arguments mandatory, and then we can depend on a new Autoconf
640
631
# release and drop the old call support.
641
632
AC_DEFUN([AM_INIT_AUTOMAKE],
642
 
[AC_PREREQ([2.62])dnl
 
633
[AC_PREREQ([2.65])dnl
643
634
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
644
635
dnl the ones we care about.
645
636
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
669
660
dnl Distinguish between old-style and new-style calls.
670
661
m4_ifval([$2],
671
662
[AC_DIAGNOSE([obsolete],
672
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
673
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
663
             [$0: two- and three-arguments forms are deprecated.])
674
664
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
675
665
 AC_SUBST([PACKAGE], [$1])dnl
676
666
 AC_SUBST([VERSION], [$2])],
724
714
                  [_AM_DEPENDENCIES([OBJC])],
725
715
                  [m4_define([AC_PROG_OBJC],
726
716
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
727
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
728
 
dnl but we still cater to Autoconf 2.62.
729
 
m4_ifdef([AC_PROG_OBJCXX],
730
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
717
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
731
718
                  [_AM_DEPENDENCIES([OBJCXX])],
732
719
                  [m4_define([AC_PROG_OBJCXX],
733
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
720
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
734
721
])
735
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
736
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
737
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
738
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
722
AC_REQUIRE([AM_SILENT_RULES])dnl
 
723
dnl The testsuite driver may need to know about EXEEXT, so add the
 
724
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
725
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
739
726
AC_CONFIG_COMMANDS_PRE(dnl
740
727
[m4_provide_if([_AM_COMPILER_EXEEXT],
741
728
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
769
756
done
770
757
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
771
758
 
772
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
759
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
773
760
#
774
761
# This file is free software; the Free Software Foundation
775
762
# gives unlimited permission to copy and/or distribute it,
776
763
# with or without modifications, as long as this notice is preserved.
777
764
 
778
 
# serial 8
779
 
 
780
765
# AM_PROG_INSTALL_SH
781
766
# ------------------
782
767
# Define $install_sh.
792
777
fi
793
778
AC_SUBST([install_sh])])
794
779
 
795
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
780
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
796
781
#
797
782
# This file is free software; the Free Software Foundation
798
783
# gives unlimited permission to copy and/or distribute it,
799
784
# with or without modifications, as long as this notice is preserved.
800
785
 
801
 
# serial 2
802
 
 
803
786
# Check whether the underlying file-system supports filenames
804
787
# with a leading dot.  For instance MS-DOS doesn't.
805
788
AC_DEFUN([AM_SET_LEADING_DOT],
815
798
 
816
799
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
817
800
 
818
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
801
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
819
802
#
820
803
# This file is free software; the Free Software Foundation
821
804
# gives unlimited permission to copy and/or distribute it,
822
805
# with or without modifications, as long as this notice is preserved.
823
806
 
824
 
# serial 5
825
 
 
826
807
# AM_MAKE_INCLUDE()
827
808
# -----------------
828
809
# Check to see how make treats includes.
865
846
rm -f confinc confmf
866
847
])
867
848
 
868
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
849
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
869
850
#
870
851
# This file is free software; the Free Software Foundation
871
852
# gives unlimited permission to copy and/or distribute it,
872
853
# with or without modifications, as long as this notice is preserved.
873
854
 
874
 
# serial 6
875
 
 
876
855
# AM_PROG_CC_C_O
877
856
# --------------
878
857
# Like AC_PROG_CC_C_O, but changed for automake.
901
880
 
902
881
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
903
882
 
904
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
883
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
905
884
#
906
885
# This file is free software; the Free Software Foundation
907
886
# gives unlimited permission to copy and/or distribute it,
908
887
# with or without modifications, as long as this notice is preserved.
909
888
 
910
 
# serial 7
911
 
 
912
889
# AM_MISSING_PROG(NAME, PROGRAM)
913
890
# ------------------------------
914
891
AC_DEFUN([AM_MISSING_PROG],
916
893
$1=${$1-"${am_missing_run}$2"}
917
894
AC_SUBST($1)])
918
895
 
919
 
 
920
896
# AM_MISSING_HAS_RUN
921
897
# ------------------
922
 
# Define MISSING if not defined so far and test if it supports --run.
923
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
898
# Define MISSING if not defined so far and test if it is modern enough.
 
899
# If it is, set am_missing_run to use it, otherwise, to nothing.
924
900
AC_DEFUN([AM_MISSING_HAS_RUN],
925
901
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
926
902
AC_REQUIRE_AUX_FILE([missing])dnl
933
909
  esac
934
910
fi
935
911
# Use eval to expand $SHELL
936
 
if eval "$MISSING --run true"; then
937
 
  am_missing_run="$MISSING --run "
 
912
if eval "$MISSING --is-lightweight"; then
 
913
  am_missing_run="$MISSING "
938
914
else
939
915
  am_missing_run=
940
916
  AC_MSG_WARN(['missing' script is too old or missing])
943
919
 
944
920
# Helper functions for option handling.                     -*- Autoconf -*-
945
921
 
946
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
922
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
947
923
#
948
924
# This file is free software; the Free Software Foundation
949
925
# gives unlimited permission to copy and/or distribute it,
950
926
# with or without modifications, as long as this notice is preserved.
951
927
 
952
 
# serial 6
953
 
 
954
928
# _AM_MANGLE_OPTION(NAME)
955
929
# -----------------------
956
930
AC_DEFUN([_AM_MANGLE_OPTION],
976
950
 
977
951
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
978
952
 
979
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
953
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
980
954
#
981
955
# This file is free software; the Free Software Foundation
982
956
# gives unlimited permission to copy and/or distribute it,
983
957
# with or without modifications, as long as this notice is preserved.
984
958
 
985
 
# serial 9
986
 
 
987
959
# AM_SANITY_CHECK
988
960
# ---------------
989
961
AC_DEFUN([AM_SANITY_CHECK],
1059
1031
rm -f conftest.file
1060
1032
])
1061
1033
 
1062
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1063
 
#
1064
 
# This file is free software; the Free Software Foundation
1065
 
# gives unlimited permission to copy and/or distribute it,
1066
 
# with or without modifications, as long as this notice is preserved.
1067
 
 
1068
 
# serial 2
 
1034
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
1035
#
 
1036
# This file is free software; the Free Software Foundation
 
1037
# gives unlimited permission to copy and/or distribute it,
 
1038
# with or without modifications, as long as this notice is preserved.
 
1039
 
 
1040
# AM_SILENT_RULES([DEFAULT])
 
1041
# --------------------------
 
1042
# Enable less verbose build rules; with the default set to DEFAULT
 
1043
# ("yes" being less verbose, "no" or empty being verbose).
 
1044
AC_DEFUN([AM_SILENT_RULES],
 
1045
[AC_ARG_ENABLE([silent-rules], [dnl
 
1046
AS_HELP_STRING(
 
1047
  [--enable-silent-rules],
 
1048
  [less verbose build output (undo: "make V=1")])
 
1049
AS_HELP_STRING(
 
1050
  [--disable-silent-rules],
 
1051
  [verbose build output (undo: "make V=0")])dnl
 
1052
])
 
1053
case $enable_silent_rules in @%:@ (((
 
1054
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1055
   no) AM_DEFAULT_VERBOSITY=1;;
 
1056
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1057
esac
 
1058
dnl
 
1059
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
1060
dnl do not support nested variable expansions.
 
1061
dnl See automake bug#9928 and bug#10237.
 
1062
am_make=${MAKE-make}
 
1063
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1064
   [am_cv_make_support_nested_variables],
 
1065
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1066
BAR0=false
 
1067
BAR1=true
 
1068
V=1
 
1069
am__doit:
 
1070
        @$(TRUE)
 
1071
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1072
  am_cv_make_support_nested_variables=yes
 
1073
else
 
1074
  am_cv_make_support_nested_variables=no
 
1075
fi])
 
1076
if test $am_cv_make_support_nested_variables = yes; then
 
1077
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
1078
  AM_V='$(V)'
 
1079
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1080
else
 
1081
  AM_V=$AM_DEFAULT_VERBOSITY
 
1082
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1083
fi
 
1084
AC_SUBST([AM_V])dnl
 
1085
AM_SUBST_NOTMAKE([AM_V])dnl
 
1086
AC_SUBST([AM_DEFAULT_V])dnl
 
1087
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
1088
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
1089
AM_BACKSLASH='\'
 
1090
AC_SUBST([AM_BACKSLASH])dnl
 
1091
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
1092
])
 
1093
 
 
1094
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1095
#
 
1096
# This file is free software; the Free Software Foundation
 
1097
# gives unlimited permission to copy and/or distribute it,
 
1098
# with or without modifications, as long as this notice is preserved.
1069
1099
 
1070
1100
# AM_PROG_INSTALL_STRIP
1071
1101
# ---------------------
1089
1119
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1090
1120
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1091
1121
 
1092
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
1122
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1093
1123
#
1094
1124
# This file is free software; the Free Software Foundation
1095
1125
# gives unlimited permission to copy and/or distribute it,
1096
1126
# with or without modifications, as long as this notice is preserved.
1097
1127
 
1098
 
# serial 3
1099
 
 
1100
1128
# _AM_SUBST_NOTMAKE(VARIABLE)
1101
1129
# ---------------------------
1102
1130
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1110
1138
 
1111
1139
# Check how to create a tarball.                            -*- Autoconf -*-
1112
1140
 
1113
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
1141
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1114
1142
#
1115
1143
# This file is free software; the Free Software Foundation
1116
1144
# gives unlimited permission to copy and/or distribute it,
1117
1145
# with or without modifications, as long as this notice is preserved.
1118
1146
 
1119
 
# serial 3
1120
 
 
1121
1147
# _AM_PROG_TAR(FORMAT)
1122
1148
# --------------------
1123
1149
# Check how to create a tarball in format FORMAT.
1131
1157
# Substitute a variable $(am__untar) that extract such
1132
1158
# a tarball read from stdin.
1133
1159
#     $(am__untar) < result.tar
 
1160
#
1134
1161
AC_DEFUN([_AM_PROG_TAR],
1135
1162
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1136
1163
# in the wild :-(  We should find a proper way to deprecate it ...
1137
1164
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1165
 
 
1166
# We'll loop over all known methods to create a tar archive until one works.
 
1167
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1168
 
1138
1169
m4_if([$1], [v7],
1139
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1140
 
     [m4_case([$1], [ustar],, [pax],,
1141
 
              [m4_fatal([Unknown tar format])])
1142
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1143
 
# Loop over all known methods to create a tar archive until one works.
1144
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1145
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1146
 
# Do not fold the above two line into one, because Tru64 sh and
1147
 
# Solaris sh will not grok spaces in the rhs of '-'.
1148
 
for _am_tool in $_am_tools
1149
 
do
1150
 
  case $_am_tool in
1151
 
  gnutar)
1152
 
    for _am_tar in tar gnutar gtar;
1153
 
    do
1154
 
      AM_RUN_LOG([$_am_tar --version]) && break
1155
 
    done
1156
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1157
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1158
 
    am__untar="$_am_tar -xf -"
1159
 
    ;;
1160
 
  plaintar)
1161
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1162
 
    # ustar tarball either.
1163
 
    (tar --version) >/dev/null 2>&1 && continue
1164
 
    am__tar='tar chf - "$$tardir"'
1165
 
    am__tar_='tar chf - "$tardir"'
1166
 
    am__untar='tar xf -'
1167
 
    ;;
1168
 
  pax)
1169
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1170
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1171
 
    am__untar='pax -r'
1172
 
    ;;
1173
 
  cpio)
1174
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1175
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1176
 
    am__untar='cpio -i -H $1 -d'
1177
 
    ;;
1178
 
  none)
1179
 
    am__tar=false
1180
 
    am__tar_=false
1181
 
    am__untar=false
1182
 
    ;;
1183
 
  esac
1184
 
 
1185
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1186
 
  # and am__untar set.
1187
 
  test -n "${am_cv_prog_tar_$1}" && break
1188
 
 
1189
 
  # tar/untar a dummy directory, and stop if the command works
1190
 
  rm -rf conftest.dir
1191
 
  mkdir conftest.dir
1192
 
  echo GrepMe > conftest.dir/file
1193
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1194
 
  rm -rf conftest.dir
1195
 
  if test -s conftest.tar; then
1196
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1197
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1198
 
  fi
1199
 
done
1200
 
rm -rf conftest.dir
1201
 
 
1202
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1203
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1170
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1171
 
 
1172
  [m4_case([$1],
 
1173
    [ustar],
 
1174
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1175
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1176
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1177
      # and bug#13588).
 
1178
      am_max_uid=2097151 # 2^21 - 1
 
1179
      am_max_gid=$am_max_uid
 
1180
      # The $UID and $GID variables are not portable, so we need to resort
 
1181
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1182
      # below are definitely unexpected, so allow the users to see them
 
1183
      # (that is, avoid stderr redirection).
 
1184
      am_uid=`id -u || echo unknown`
 
1185
      am_gid=`id -g || echo unknown`
 
1186
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1187
      if test $am_uid -le $am_max_uid; then
 
1188
         AC_MSG_RESULT([yes])
 
1189
      else
 
1190
         AC_MSG_RESULT([no])
 
1191
         _am_tools=none
 
1192
      fi
 
1193
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1194
      if test $am_gid -le $am_max_gid; then
 
1195
         AC_MSG_RESULT([yes])
 
1196
      else
 
1197
        AC_MSG_RESULT([no])
 
1198
        _am_tools=none
 
1199
      fi],
 
1200
 
 
1201
  [pax],
 
1202
    [],
 
1203
 
 
1204
  [m4_fatal([Unknown tar format])])
 
1205
 
 
1206
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1207
 
 
1208
  # Go ahead even if we have the value already cached.  We do so because we
 
1209
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1210
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1211
 
 
1212
  for _am_tool in $_am_tools; do
 
1213
    case $_am_tool in
 
1214
    gnutar)
 
1215
      for _am_tar in tar gnutar gtar; do
 
1216
        AM_RUN_LOG([$_am_tar --version]) && break
 
1217
      done
 
1218
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1219
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1220
      am__untar="$_am_tar -xf -"
 
1221
      ;;
 
1222
    plaintar)
 
1223
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1224
      # ustar tarball either.
 
1225
      (tar --version) >/dev/null 2>&1 && continue
 
1226
      am__tar='tar chf - "$$tardir"'
 
1227
      am__tar_='tar chf - "$tardir"'
 
1228
      am__untar='tar xf -'
 
1229
      ;;
 
1230
    pax)
 
1231
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1232
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1233
      am__untar='pax -r'
 
1234
      ;;
 
1235
    cpio)
 
1236
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1237
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1238
      am__untar='cpio -i -H $1 -d'
 
1239
      ;;
 
1240
    none)
 
1241
      am__tar=false
 
1242
      am__tar_=false
 
1243
      am__untar=false
 
1244
      ;;
 
1245
    esac
 
1246
 
 
1247
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1248
    # and am__untar set.
 
1249
    test -n "${am_cv_prog_tar_$1}" && break
 
1250
 
 
1251
    # tar/untar a dummy directory, and stop if the command works.
 
1252
    rm -rf conftest.dir
 
1253
    mkdir conftest.dir
 
1254
    echo GrepMe > conftest.dir/file
 
1255
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1256
    rm -rf conftest.dir
 
1257
    if test -s conftest.tar; then
 
1258
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1259
      AM_RUN_LOG([cat conftest.dir/file])
 
1260
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1261
    fi
 
1262
  done
 
1263
  rm -rf conftest.dir
 
1264
 
 
1265
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1266
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1267
 
1204
1268
AC_SUBST([am__tar])
1205
1269
AC_SUBST([am__untar])
1206
1270
]) # _AM_PROG_TAR