~ubuntu-branches/ubuntu/wily/libwps/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2014-08-08 01:04:46 UTC
  • mfrom: (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20140808010446-90v8mtp9yfyzaw0l
Tags: 0.3.0-2
* upload to unstable

* fix debian/copyright for MPL-2.0 | LGPL-2.1+ dual-license 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.1 -*- 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
 
 
224
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
225
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
226
# -------------------------------------------
 
227
# Retrieves the value of the pkg-config variable for the given module.
 
228
AC_DEFUN([PKG_CHECK_VAR],
 
229
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
230
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
231
 
 
232
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
233
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
234
 
 
235
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
236
])# PKG_CHECK_VAR
 
237
 
 
238
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
223
239
#
224
240
# This file is free software; the Free Software Foundation
225
241
# gives unlimited permission to copy and/or distribute it,
226
242
# with or without modifications, as long as this notice is preserved.
227
243
 
228
 
# serial 8
229
 
 
230
244
# AM_AUTOMAKE_VERSION(VERSION)
231
245
# ----------------------------
232
246
# Automake X.Y traces this macro to ensure aclocal.m4 has been
233
247
# generated from the m4 files accompanying Automake X.Y.
234
248
# (This private macro should not be called outside this file.)
235
249
AC_DEFUN([AM_AUTOMAKE_VERSION],
236
 
[am__api_version='1.12'
 
250
[am__api_version='1.13'
237
251
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
238
252
dnl require some minimum version.  Point them to the right macro.
239
 
m4_if([$1], [1.12.1], [],
 
253
m4_if([$1], [1.13.4], [],
240
254
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
241
255
])
242
256
 
252
266
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
253
267
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
254
268
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
255
 
[AM_AUTOMAKE_VERSION([1.12.1])dnl
 
269
[AM_AUTOMAKE_VERSION([1.13.4])dnl
256
270
m4_ifndef([AC_AUTOCONF_VERSION],
257
271
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
258
272
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
259
273
 
260
 
# Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
274
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
261
275
#
262
276
# This file is free software; the Free Software Foundation
263
277
# gives unlimited permission to copy and/or distribute it,
264
278
# with or without modifications, as long as this notice is preserved.
265
279
 
266
 
# serial 1
267
 
 
268
280
# AM_PROG_AR([ACT-IF-FAIL])
269
281
# -------------------------
270
282
# Try to determine the archiver interface, and trigger the ar-lib wrapper
320
332
 
321
333
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
322
334
 
323
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
335
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
324
336
#
325
337
# This file is free software; the Free Software Foundation
326
338
# gives unlimited permission to copy and/or distribute it,
327
339
# with or without modifications, as long as this notice is preserved.
328
340
 
329
 
# serial 2
330
 
 
331
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
332
342
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
333
343
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
375
385
 
376
386
# AM_CONDITIONAL                                            -*- Autoconf -*-
377
387
 
378
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
388
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
379
389
#
380
390
# This file is free software; the Free Software Foundation
381
391
# gives unlimited permission to copy and/or distribute it,
382
392
# with or without modifications, as long as this notice is preserved.
383
393
 
384
 
# serial 10
385
 
 
386
394
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
387
395
# -------------------------------------
388
396
# Define a conditional.
408
416
Usually this means the macro was only invoked conditionally.]])
409
417
fi])])
410
418
 
411
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
419
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
412
420
#
413
421
# This file is free software; the Free Software Foundation
414
422
# gives unlimited permission to copy and/or distribute it,
415
423
# with or without modifications, as long as this notice is preserved.
416
424
 
417
 
# serial 17
418
425
 
419
426
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
420
427
# written in clear, in which case automake, when reading aclocal.m4,
600
607
 
601
608
# Generate code to set up dependency tracking.              -*- Autoconf -*-
602
609
 
603
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
610
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
604
611
#
605
612
# This file is free software; the Free Software Foundation
606
613
# gives unlimited permission to copy and/or distribute it,
607
614
# with or without modifications, as long as this notice is preserved.
608
615
 
609
 
# serial 6
610
616
 
611
617
# _AM_OUTPUT_DEPENDENCY_COMMANDS
612
618
# ------------------------------
613
619
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
614
620
[{
615
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
621
  # Older Autoconf quotes --file arguments for eval, but not when files
616
622
  # are listed without --file.  Let's play safe and only enable the eval
617
623
  # if we detect the quoting.
618
624
  case $CONFIG_FILES in
641
647
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
642
648
    test -z "$DEPDIR" && continue
643
649
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
644
 
    test -z "am__include" && continue
 
650
    test -z "$am__include" && continue
645
651
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
646
652
    # Find all dependency output files, they are included files with
647
653
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
677
683
 
678
684
# Do all the work for Automake.                             -*- Autoconf -*-
679
685
 
680
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
686
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
681
687
#
682
688
# This file is free software; the Free Software Foundation
683
689
# gives unlimited permission to copy and/or distribute it,
684
690
# with or without modifications, as long as this notice is preserved.
685
691
 
686
 
# serial 19
687
 
 
688
692
# This macro actually does too much.  Some checks are only needed if
689
693
# your package does certain things.  But this isn't really a big deal.
690
694
 
700
704
# arguments mandatory, and then we can depend on a new Autoconf
701
705
# release and drop the old call support.
702
706
AC_DEFUN([AM_INIT_AUTOMAKE],
703
 
[AC_PREREQ([2.62])dnl
 
707
[AC_PREREQ([2.65])dnl
704
708
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
705
709
dnl the ones we care about.
706
710
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
730
734
dnl Distinguish between old-style and new-style calls.
731
735
m4_ifval([$2],
732
736
[AC_DIAGNOSE([obsolete],
733
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
734
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
737
             [$0: two- and three-arguments forms are deprecated.])
735
738
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
736
739
 AC_SUBST([PACKAGE], [$1])dnl
737
740
 AC_SUBST([VERSION], [$2])],
759
762
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
760
763
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
761
764
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
762
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
765
# For better backward compatibility.  To be removed once Automake 1.9.x
 
766
# dies out for good.  For more background, see:
 
767
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
768
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
769
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
763
770
# We need awk for the "check" target.  The system "awk" is bad on
764
771
# some platforms.
765
772
AC_REQUIRE([AC_PROG_AWK])dnl
781
788
                  [_AM_DEPENDENCIES([OBJC])],
782
789
                  [m4_define([AC_PROG_OBJC],
783
790
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
784
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
785
 
dnl but we still cater to Autoconf 2.62.
786
 
m4_ifdef([AC_PROG_OBJCXX],
787
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
791
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
788
792
                  [_AM_DEPENDENCIES([OBJCXX])],
789
793
                  [m4_define([AC_PROG_OBJCXX],
790
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
794
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
791
795
])
792
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
793
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
794
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
795
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
796
AC_REQUIRE([AM_SILENT_RULES])dnl
 
797
dnl The testsuite driver may need to know about EXEEXT, so add the
 
798
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
799
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
796
800
AC_CONFIG_COMMANDS_PRE(dnl
797
801
[m4_provide_if([_AM_COMPILER_EXEEXT],
798
802
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
826
830
done
827
831
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
828
832
 
829
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
833
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
830
834
#
831
835
# This file is free software; the Free Software Foundation
832
836
# gives unlimited permission to copy and/or distribute it,
833
837
# with or without modifications, as long as this notice is preserved.
834
838
 
835
 
# serial 8
836
 
 
837
839
# AM_PROG_INSTALL_SH
838
840
# ------------------
839
841
# Define $install_sh.
849
851
fi
850
852
AC_SUBST([install_sh])])
851
853
 
852
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
854
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
853
855
#
854
856
# This file is free software; the Free Software Foundation
855
857
# gives unlimited permission to copy and/or distribute it,
856
858
# with or without modifications, as long as this notice is preserved.
857
859
 
858
 
# serial 2
859
 
 
860
860
# Check whether the underlying file-system supports filenames
861
861
# with a leading dot.  For instance MS-DOS doesn't.
862
862
AC_DEFUN([AM_SET_LEADING_DOT],
872
872
 
873
873
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
874
874
 
875
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
875
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
876
876
#
877
877
# This file is free software; the Free Software Foundation
878
878
# gives unlimited permission to copy and/or distribute it,
879
879
# with or without modifications, as long as this notice is preserved.
880
880
 
881
 
# serial 5
882
 
 
883
881
# AM_MAKE_INCLUDE()
884
882
# -----------------
885
883
# Check to see how make treats includes.
924
922
 
925
923
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
926
924
 
927
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
925
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
928
926
#
929
927
# This file is free software; the Free Software Foundation
930
928
# gives unlimited permission to copy and/or distribute it,
931
929
# with or without modifications, as long as this notice is preserved.
932
930
 
933
 
# serial 7
934
 
 
935
931
# AM_MISSING_PROG(NAME, PROGRAM)
936
932
# ------------------------------
937
933
AC_DEFUN([AM_MISSING_PROG],
939
935
$1=${$1-"${am_missing_run}$2"}
940
936
AC_SUBST($1)])
941
937
 
942
 
 
943
938
# AM_MISSING_HAS_RUN
944
939
# ------------------
945
 
# Define MISSING if not defined so far and test if it supports --run.
946
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
940
# Define MISSING if not defined so far and test if it is modern enough.
 
941
# If it is, set am_missing_run to use it, otherwise, to nothing.
947
942
AC_DEFUN([AM_MISSING_HAS_RUN],
948
943
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
949
944
AC_REQUIRE_AUX_FILE([missing])dnl
956
951
  esac
957
952
fi
958
953
# Use eval to expand $SHELL
959
 
if eval "$MISSING --run true"; then
960
 
  am_missing_run="$MISSING --run "
 
954
if eval "$MISSING --is-lightweight"; then
 
955
  am_missing_run="$MISSING "
961
956
else
962
957
  am_missing_run=
963
958
  AC_MSG_WARN(['missing' script is too old or missing])
966
961
 
967
962
# Helper functions for option handling.                     -*- Autoconf -*-
968
963
 
969
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
964
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
970
965
#
971
966
# This file is free software; the Free Software Foundation
972
967
# gives unlimited permission to copy and/or distribute it,
973
968
# with or without modifications, as long as this notice is preserved.
974
969
 
975
 
# serial 6
976
 
 
977
970
# _AM_MANGLE_OPTION(NAME)
978
971
# -----------------------
979
972
AC_DEFUN([_AM_MANGLE_OPTION],
999
992
 
1000
993
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1001
994
 
1002
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
995
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1003
996
#
1004
997
# This file is free software; the Free Software Foundation
1005
998
# gives unlimited permission to copy and/or distribute it,
1006
999
# with or without modifications, as long as this notice is preserved.
1007
1000
 
1008
 
# serial 9
1009
 
 
1010
1001
# AM_SANITY_CHECK
1011
1002
# ---------------
1012
1003
AC_DEFUN([AM_SANITY_CHECK],
1082
1073
rm -f conftest.file
1083
1074
])
1084
1075
 
1085
 
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
1076
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1086
1077
#
1087
1078
# This file is free software; the Free Software Foundation
1088
1079
# gives unlimited permission to copy and/or distribute it,
1089
1080
# with or without modifications, as long as this notice is preserved.
1090
1081
 
1091
 
# serial 3
1092
 
 
1093
1082
# AM_SILENT_RULES([DEFAULT])
1094
1083
# --------------------------
1095
1084
# Enable less verbose build rules; with the default set to DEFAULT
1144
1133
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1145
1134
])
1146
1135
 
1147
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
1136
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1148
1137
#
1149
1138
# This file is free software; the Free Software Foundation
1150
1139
# gives unlimited permission to copy and/or distribute it,
1151
1140
# with or without modifications, as long as this notice is preserved.
1152
1141
 
1153
 
# serial 2
1154
 
 
1155
1142
# AM_PROG_INSTALL_STRIP
1156
1143
# ---------------------
1157
1144
# One issue with vendor 'install' (even GNU) is that you can't
1174
1161
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1175
1162
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1176
1163
 
1177
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
1164
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1178
1165
#
1179
1166
# This file is free software; the Free Software Foundation
1180
1167
# gives unlimited permission to copy and/or distribute it,
1181
1168
# with or without modifications, as long as this notice is preserved.
1182
1169
 
1183
 
# serial 3
1184
 
 
1185
1170
# _AM_SUBST_NOTMAKE(VARIABLE)
1186
1171
# ---------------------------
1187
1172
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1195
1180
 
1196
1181
# Check how to create a tarball.                            -*- Autoconf -*-
1197
1182
 
1198
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
1183
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1199
1184
#
1200
1185
# This file is free software; the Free Software Foundation
1201
1186
# gives unlimited permission to copy and/or distribute it,
1202
1187
# with or without modifications, as long as this notice is preserved.
1203
1188
 
1204
 
# serial 3
1205
 
 
1206
1189
# _AM_PROG_TAR(FORMAT)
1207
1190
# --------------------
1208
1191
# Check how to create a tarball in format FORMAT.
1216
1199
# Substitute a variable $(am__untar) that extract such
1217
1200
# a tarball read from stdin.
1218
1201
#     $(am__untar) < result.tar
 
1202
#
1219
1203
AC_DEFUN([_AM_PROG_TAR],
1220
1204
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1221
1205
# in the wild :-(  We should find a proper way to deprecate it ...
1222
1206
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1207
 
 
1208
# We'll loop over all known methods to create a tar archive until one works.
 
1209
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1210
 
1223
1211
m4_if([$1], [v7],
1224
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1225
 
     [m4_case([$1], [ustar],, [pax],,
1226
 
              [m4_fatal([Unknown tar format])])
1227
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1228
 
# Loop over all known methods to create a tar archive until one works.
1229
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1230
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1231
 
# Do not fold the above two line into one, because Tru64 sh and
1232
 
# Solaris sh will not grok spaces in the rhs of '-'.
1233
 
for _am_tool in $_am_tools
1234
 
do
1235
 
  case $_am_tool in
1236
 
  gnutar)
1237
 
    for _am_tar in tar gnutar gtar;
1238
 
    do
1239
 
      AM_RUN_LOG([$_am_tar --version]) && break
1240
 
    done
1241
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1242
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1243
 
    am__untar="$_am_tar -xf -"
1244
 
    ;;
1245
 
  plaintar)
1246
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1247
 
    # ustar tarball either.
1248
 
    (tar --version) >/dev/null 2>&1 && continue
1249
 
    am__tar='tar chf - "$$tardir"'
1250
 
    am__tar_='tar chf - "$tardir"'
1251
 
    am__untar='tar xf -'
1252
 
    ;;
1253
 
  pax)
1254
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1255
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1256
 
    am__untar='pax -r'
1257
 
    ;;
1258
 
  cpio)
1259
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1260
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1261
 
    am__untar='cpio -i -H $1 -d'
1262
 
    ;;
1263
 
  none)
1264
 
    am__tar=false
1265
 
    am__tar_=false
1266
 
    am__untar=false
1267
 
    ;;
1268
 
  esac
1269
 
 
1270
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1271
 
  # and am__untar set.
1272
 
  test -n "${am_cv_prog_tar_$1}" && break
1273
 
 
1274
 
  # tar/untar a dummy directory, and stop if the command works
1275
 
  rm -rf conftest.dir
1276
 
  mkdir conftest.dir
1277
 
  echo GrepMe > conftest.dir/file
1278
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1279
 
  rm -rf conftest.dir
1280
 
  if test -s conftest.tar; then
1281
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1282
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1283
 
  fi
1284
 
done
1285
 
rm -rf conftest.dir
1286
 
 
1287
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1288
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1212
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1213
 
 
1214
  [m4_case([$1],
 
1215
    [ustar],
 
1216
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1217
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1218
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1219
      # and bug#13588).
 
1220
      am_max_uid=2097151 # 2^21 - 1
 
1221
      am_max_gid=$am_max_uid
 
1222
      # The $UID and $GID variables are not portable, so we need to resort
 
1223
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1224
      # below are definitely unexpected, so allow the users to see them
 
1225
      # (that is, avoid stderr redirection).
 
1226
      am_uid=`id -u || echo unknown`
 
1227
      am_gid=`id -g || echo unknown`
 
1228
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1229
      if test $am_uid -le $am_max_uid; then
 
1230
         AC_MSG_RESULT([yes])
 
1231
      else
 
1232
         AC_MSG_RESULT([no])
 
1233
         _am_tools=none
 
1234
      fi
 
1235
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1236
      if test $am_gid -le $am_max_gid; then
 
1237
         AC_MSG_RESULT([yes])
 
1238
      else
 
1239
        AC_MSG_RESULT([no])
 
1240
        _am_tools=none
 
1241
      fi],
 
1242
 
 
1243
  [pax],
 
1244
    [],
 
1245
 
 
1246
  [m4_fatal([Unknown tar format])])
 
1247
 
 
1248
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1249
 
 
1250
  # Go ahead even if we have the value already cached.  We do so because we
 
1251
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1252
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1253
 
 
1254
  for _am_tool in $_am_tools; do
 
1255
    case $_am_tool in
 
1256
    gnutar)
 
1257
      for _am_tar in tar gnutar gtar; do
 
1258
        AM_RUN_LOG([$_am_tar --version]) && break
 
1259
      done
 
1260
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1261
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1262
      am__untar="$_am_tar -xf -"
 
1263
      ;;
 
1264
    plaintar)
 
1265
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1266
      # ustar tarball either.
 
1267
      (tar --version) >/dev/null 2>&1 && continue
 
1268
      am__tar='tar chf - "$$tardir"'
 
1269
      am__tar_='tar chf - "$tardir"'
 
1270
      am__untar='tar xf -'
 
1271
      ;;
 
1272
    pax)
 
1273
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1274
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1275
      am__untar='pax -r'
 
1276
      ;;
 
1277
    cpio)
 
1278
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1279
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1280
      am__untar='cpio -i -H $1 -d'
 
1281
      ;;
 
1282
    none)
 
1283
      am__tar=false
 
1284
      am__tar_=false
 
1285
      am__untar=false
 
1286
      ;;
 
1287
    esac
 
1288
 
 
1289
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1290
    # and am__untar set.
 
1291
    test -n "${am_cv_prog_tar_$1}" && break
 
1292
 
 
1293
    # tar/untar a dummy directory, and stop if the command works.
 
1294
    rm -rf conftest.dir
 
1295
    mkdir conftest.dir
 
1296
    echo GrepMe > conftest.dir/file
 
1297
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1298
    rm -rf conftest.dir
 
1299
    if test -s conftest.tar; then
 
1300
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1301
      AM_RUN_LOG([cat conftest.dir/file])
 
1302
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1303
    fi
 
1304
  done
 
1305
  rm -rf conftest.dir
 
1306
 
 
1307
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1308
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1309
 
1289
1310
AC_SUBST([am__tar])
1290
1311
AC_SUBST([am__untar])
1291
1312
]) # _AM_PROG_TAR