~ubuntu-branches/ubuntu/natty/xml-security-c/natty-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2009-08-05 14:11:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090805141152-a7xyrgur2sq3exkr
Tags: 1.5.1-1
* New upstream release.
  - Rename library package for upstream SONAME bump.
* Upstream now ships an older version of libtool, so run libtoolize and
  aclocal before the build.  Add build dependencies on automake and
  libtool.
* Build against Xerces-C 3.0.
* Stop building against Xalan.  The Xalan packages for Debian have been
  orphaned, the current Xalan release does not support Xerces-C 3.0, and
  porting it is not trivial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
4
# Free Software Foundation, Inc.
632
632
AC_MSG_CHECKING([the maximum length of command line arguments])
633
633
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
634
634
  i=0
635
 
  teststring="ABCD"
 
635
  testring="ABCD"
636
636
 
637
637
  case $build_os in
638
638
  msdosdjgpp*)
671
671
    # If test is not a shell built-in, we'll probably end up computing a
672
672
    # maximum length that is only half of the actual maximum length, but
673
673
    # we can't tell.
674
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
675
 
               = "XX$teststring") >/dev/null 2>&1 &&
676
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
674
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
 
675
               = "XX$testring") >/dev/null 2>&1 &&
 
676
            new_result=`expr "X$testring" : ".*" 2>&1` &&
677
677
            lt_cv_sys_max_cmd_len=$new_result &&
678
678
            test $i != 17 # 1/2 MB should be enough
679
679
    do
680
680
      i=`expr $i + 1`
681
 
      teststring=$teststring$teststring
 
681
      testring=$testring$testring
682
682
    done
683
 
    teststring=
 
683
    testring=
684
684
    # Add a significant safety factor because C++ compilers can tack on massive
685
685
    # amounts of additional arguments before passing them to the linker.
686
686
    # It appears as though 1/2 is a usable value.
1076
1076
library_names_spec=
1077
1077
libname_spec='lib$name'
1078
1078
soname_spec=
1079
 
shrext_cmds=".so"
 
1079
shrext=".so"
1080
1080
postinstall_cmds=
1081
1081
postuninstall_cmds=
1082
1082
finish_cmds=
1189
1189
 
1190
1190
cygwin* | mingw* | pw32*)
1191
1191
  version_type=windows
1192
 
  shrext_cmds=".dll"
 
1192
  shrext=".dll"
1193
1193
  need_version=no
1194
1194
  need_lib_prefix=no
1195
1195
 
1254
1254
  soname_spec='${libname}${release}${major}$shared_ext'
1255
1255
  shlibpath_overrides_runpath=yes
1256
1256
  shlibpath_var=DYLD_LIBRARY_PATH
1257
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1257
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
1258
1258
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1259
1259
  if test "$GCC" = yes; then
1260
1260
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1337
1337
  need_version=no
1338
1338
  case "$host_cpu" in
1339
1339
  ia64*)
1340
 
    shrext_cmds='.so'
 
1340
    shrext='.so'
1341
1341
    hardcode_into_libs=yes
1342
1342
    dynamic_linker="$host_os dld.so"
1343
1343
    shlibpath_var=LD_LIBRARY_PATH
1352
1352
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1353
1353
    ;;
1354
1354
   hppa*64*)
1355
 
     shrext_cmds='.sl'
 
1355
     shrext='.sl'
1356
1356
     hardcode_into_libs=yes
1357
1357
     dynamic_linker="$host_os dld.sl"
1358
1358
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1363
1363
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1364
1364
     ;;
1365
1365
   *)
1366
 
    shrext_cmds='.sl'
 
1366
    shrext='.sl'
1367
1367
    dynamic_linker="$host_os dld.sl"
1368
1368
    shlibpath_var=SHLIB_PATH
1369
1369
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1432
1432
  # before this can be enabled.
1433
1433
  hardcode_into_libs=yes
1434
1434
 
1435
 
  # find out which ABI we are using
1436
 
  libsuff=
1437
 
  case "$host_cpu" in
1438
 
  x86_64*|s390x*|powerpc64*)
1439
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1440
 
    if AC_TRY_EVAL(ac_compile); then
1441
 
      case `/usr/bin/file conftest.$ac_objext` in
1442
 
      *64-bit*)
1443
 
        libsuff=64
1444
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1445
 
        ;;
1446
 
      esac
1447
 
    fi
1448
 
    rm -rf conftest*
1449
 
    ;;
1450
 
  esac
1451
 
 
1452
1435
  # Append ld.so.conf contents to the search path
1453
1436
  if test -f /etc/ld.so.conf; then
1454
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1455
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1437
    ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
 
1438
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
1456
1439
  fi
1457
1440
 
1458
1441
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1534
1517
 
1535
1518
os2*)
1536
1519
  libname_spec='$name'
1537
 
  shrext_cmds=".dll"
 
1520
  shrext=".dll"
1538
1521
  need_lib_prefix=no
1539
1522
  library_names_spec='$libname${shared_ext} $libname.a'
1540
1523
  dynamic_linker='OS/2 ld.exe'
2125
2108
  ;;
2126
2109
 
2127
2110
cygwin*)
2128
 
  # func_win32_libid is a shell function defined in ltmain.sh
 
2111
  # win32_libid is a shell function defined in ltmain.sh
2129
2112
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2130
 
  lt_cv_file_magic_cmd='func_win32_libid'
 
2113
  lt_cv_file_magic_cmd='win32_libid'
2131
2114
  ;;
2132
2115
 
2133
2116
mingw* | pw32*)
2134
2117
  # Base MSYS/MinGW do not provide the 'file' command needed by
2135
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2118
  # win32_libid shell function, so use a weaker test based on 'objdump'.
2136
2119
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2137
2120
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2138
2121
  ;;
2192
2175
# This must be Linux ELF.
2193
2176
linux*)
2194
2177
  case $host_cpu in
2195
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
 
2178
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
2196
2179
    lt_cv_deplibs_check_method=pass_all ;;
2197
2180
  *)
2198
2181
    # glibc up to 2.1.1 does not perform some relocations on ARM
2552
2535
  fi
2553
2536
  ;;
2554
2537
 
2555
 
aix4* | aix5*)
 
2538
aix4*)
2556
2539
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2557
2540
    test "$enable_shared" = yes && enable_static=no
2558
2541
  fi
3000
2983
      # explicitly linking system object files so we need to strip them
3001
2984
      # from the output so that they don't get included in the library
3002
2985
      # dependencies.
3003
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
2986
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3004
2987
      ;;
3005
2988
    *)
3006
2989
      if test "$GXX" = yes; then
3703
3686
    postinstall_cmds='$RANLIB $lib'
3704
3687
  fi
3705
3688
  ;;
3706
 
aix4* | aix5*)
 
3689
aix4*)
3707
3690
  test "$enable_shared" = yes && enable_static=no
3708
3691
  ;;
3709
3692
esac
4058
4041
libext="$libext"
4059
4042
 
4060
4043
# Shared library suffix (normally ".so").
4061
 
shrext_cmds='$shrext_cmds'
 
4044
shrext='$shrext'
4062
4045
 
4063
4046
# Executable file suffix (normally "").
4064
4047
exeext="$exeext"
5166
5149
      ;;
5167
5150
 
5168
5151
  linux*)
5169
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5152
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5170
5153
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5171
5154
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5172
5155
      supports_anon_versioning=no
5366
5349
      # Tell ltmain to make .lib files, not .a files.
5367
5350
      libext=lib
5368
5351
      # Tell ltmain to make .dll files, not .so files.
5369
 
      shrext_cmds=".dll"
 
5352
      shrext=".dll"
5370
5353
      # FIXME: Setting linknames here is a bad hack.
5371
5354
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5372
5355
      # The linker will automatically build a .lib file if we build a DLL.
5958
5941
# ----------------------------
5959
5942
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5960
5943
# generated from the m4 files accompanying Automake X.Y.
5961
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
5944
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
5962
5945
 
5963
5946
# AM_SET_CURRENT_AUTOMAKE_VERSION
5964
5947
# -------------------------------
5965
5948
# Call AM_AUTOMAKE_VERSION so it can be traced.
5966
5949
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5967
5950
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5968
 
         [AM_AUTOMAKE_VERSION([1.9.2])])
 
5951
         [AM_AUTOMAKE_VERSION([1.8.3])])
5969
5952
 
5970
5953
# AM_AUX_DIR_EXPAND
5971
5954
 
6033
6016
 
6034
6017
# AM_CONDITIONAL                                              -*- Autoconf -*-
6035
6018
 
6036
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
 
6019
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6037
6020
 
6038
6021
# This program is free software; you can redistribute it and/or modify
6039
6022
# it under the terms of the GNU General Public License as published by
6070
6053
fi
6071
6054
AC_CONFIG_COMMANDS_PRE(
6072
6055
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6073
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
6074
 
Usually this means the macro was only invoked conditionally.]])
 
6056
  AC_MSG_ERROR([conditional "$1" was never defined.
 
6057
Usually this means the macro was only invoked conditionally.])
6075
6058
fi])])
6076
6059
 
6077
6060
# serial 7                                              -*- Autoconf -*-
6191
6174
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6192
6175
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6193
6176
      # icc doesn't choke on unknown options, it will just issue warnings
6194
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6195
 
      # that says an option was ignored or not supported.
6196
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6197
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6198
 
      # The diagnosis changed in icc 8.0:
6199
 
      #   icc: Command line remark: option '-MP' not supported
6200
 
      if (grep 'ignoring option' conftest.err ||
6201
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6177
      # (even with -Werror).  So we grep stderr for any message
 
6178
      # that says an option was ignored.
 
6179
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6202
6180
        am_cv_$1_dependencies_compiler_type=$depmode
6203
6181
        break
6204
6182
      fi
6244
6222
 
6245
6223
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6246
6224
 
6247
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6248
 
#   Free Software Foundation, Inc.
 
6225
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6249
6226
 
6250
6227
# This program is free software; you can redistribute it and/or modify
6251
6228
# it under the terms of the GNU General Public License as published by
6281
6258
  else
6282
6259
    continue
6283
6260
  fi
6284
 
  # Extract the definition of DEPDIR, am__include, and am__quote
6285
 
  # from the Makefile without running `make'.
 
6261
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
 
6262
  # Extract the definition of DEP_FILES from the Makefile without
 
6263
  # running `make'.
6286
6264
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6287
6265
  test -z "$DEPDIR" && continue
6288
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
6289
 
  test -z "am__include" && continue
6290
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6291
6266
  # When using ansi2knr, U may be empty or an underscore; expand it
6292
6267
  U=`sed -n 's/^U = //p' < "$mf"`
6293
 
  # Find all dependency output files, they are included files with
6294
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
6295
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
6296
 
  # expansion.
6297
 
  for file in `sed -n "
6298
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6268
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
6269
  # We invoke sed twice because it is the simplest approach to
 
6270
  # changing $(DEPDIR) to its actual value in the expansion.
 
6271
  for file in `sed -n '
 
6272
    /^DEP_FILES = .*\\\\$/ {
 
6273
      s/^DEP_FILES = //
 
6274
      :loop
 
6275
        s/\\\\$//
 
6276
        p
 
6277
        n
 
6278
        /\\\\$/ b loop
 
6279
      p
 
6280
    }
 
6281
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6299
6282
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6300
6283
    # Make sure the directory exists.
6301
6284
    test -f "$dirpart/$file" && continue
6326
6309
# This macro actually does too much some checks are only needed if
6327
6310
# your package does certain things.  But this isn't really a big deal.
6328
6311
 
6329
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
6312
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6330
6313
# Free Software Foundation, Inc.
6331
6314
 
6332
6315
# This program is free software; you can redistribute it and/or modify
6402
6385
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6403
6386
AM_MISSING_PROG(AUTOHEADER, autoheader)
6404
6387
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
6388
AM_MISSING_PROG(AMTAR, tar)
6405
6389
AM_PROG_INSTALL_SH
6406
6390
AM_PROG_INSTALL_STRIP
6407
6391
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6410
6394
AC_REQUIRE([AC_PROG_AWK])dnl
6411
6395
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6412
6396
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6413
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6414
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6415
 
                             [_AM_PROG_TAR([v7])])])
 
6397
 
6416
6398
_AM_IF_OPTION([no-dependencies],,
6417
6399
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6418
6400
                  [_AM_DEPENDENCIES(CC)],
6695
6677
# this.)
6696
6678
AC_DEFUN([AM_PROG_MKDIR_P],
6697
6679
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6698
 
  # We used to keeping the `.' as first argument, in order to
6699
 
  # allow $(mkdir_p) to be used without argument.  As in
 
6680
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
6681
  # argument.  Indeed, we sometimes output rules like
6700
6682
  #   $(mkdir_p) $(somedir)
6701
 
  # where $(somedir) is conditionally defined.  However this is wrong
6702
 
  # for two reasons:
6703
 
  #  1. if the package is installed by a user who cannot write `.'
6704
 
  #     make install will fail,
6705
 
  #  2. the above comment should most certainly read
6706
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
6707
 
  #     so it does not work when $(somedir) is undefined and
6708
 
  #     $(DESTDIR) is not.
6709
 
  #  To support the latter case, we have to write
6710
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6711
 
  #  so the `.' trick is pointless.
6712
 
  mkdir_p='mkdir -p --'
 
6683
  # where $(somedir) is conditionally defined.
 
6684
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
6685
  # expensive solution, as it forces Make to start a sub-shell.)
 
6686
  mkdir_p='mkdir -p -- .'
6713
6687
else
6714
6688
  # On NextStep and OpenStep, the `mkdir' command does not
6715
6689
  # recognize any option.  It will interpret all options as
6875
6849
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6876
6850
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6877
6851
 
6878
 
# Check how to create a tarball.                            -*- Autoconf -*-
6879
 
 
6880
 
# Copyright (C) 2004  Free Software Foundation, Inc.
6881
 
 
6882
 
# This program is free software; you can redistribute it and/or modify
6883
 
# it under the terms of the GNU General Public License as published by
6884
 
# the Free Software Foundation; either version 2, or (at your option)
6885
 
# any later version.
6886
 
 
6887
 
# This program is distributed in the hope that it will be useful,
6888
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6889
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6890
 
# GNU General Public License for more details.
6891
 
 
6892
 
# You should have received a copy of the GNU General Public License
6893
 
# along with this program; if not, write to the Free Software
6894
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6895
 
# 02111-1307, USA.
6896
 
 
6897
 
# serial 1
6898
 
 
6899
 
 
6900
 
# _AM_PROG_TAR(FORMAT)
6901
 
# --------------------
6902
 
# Check how to create a tarball in format FORMAT.
6903
 
# FORMAT should be one of `v7', `ustar', or `pax'.
6904
 
#
6905
 
# Substitute a variable $(am__tar) that is a command
6906
 
# writing to stdout a FORMAT-tarball containing the directory
6907
 
# $tardir.
6908
 
#     tardir=directory && $(am__tar) > result.tar
6909
 
#
6910
 
# Substitute a variable $(am__untar) that extract such
6911
 
# a tarball read from stdin.
6912
 
#     $(am__untar) < result.tar
6913
 
AC_DEFUN([_AM_PROG_TAR],
6914
 
[# Always define AMTAR for backward compatibility.
6915
 
AM_MISSING_PROG([AMTAR], [tar])
6916
 
m4_if([$1], [v7],
6917
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
6918
 
     [m4_case([$1], [ustar],, [pax],,
6919
 
              [m4_fatal([Unknown tar format])])
6920
 
AC_MSG_CHECKING([how to create a $1 tar archive])
6921
 
# Loop over all known methods to create a tar archive until one works.
6922
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
6923
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
6924
 
# Do not fold the above two line into one, because Tru64 sh and
6925
 
# Solaris sh will not grok spaces in the rhs of `-'.
6926
 
for _am_tool in $_am_tools
6927
 
do
6928
 
  case $_am_tool in
6929
 
  gnutar)
6930
 
    for _am_tar in tar gnutar gtar;
6931
 
    do
6932
 
      AM_RUN_LOG([$_am_tar --version]) && break
6933
 
    done
6934
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
6935
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
6936
 
    am__untar="$_am_tar -xf -"
6937
 
    ;;
6938
 
  plaintar)
6939
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
6940
 
    # ustar tarball either.
6941
 
    (tar --version) >/dev/null 2>&1 && continue
6942
 
    am__tar='tar chf - "$$tardir"'
6943
 
    am__tar_='tar chf - "$tardir"'
6944
 
    am__untar='tar xf -'
6945
 
    ;;
6946
 
  pax)
6947
 
    am__tar='pax -L -x $1 -w "$$tardir"'
6948
 
    am__tar_='pax -L -x $1 -w "$tardir"'
6949
 
    am__untar='pax -r'
6950
 
    ;;
6951
 
  cpio)
6952
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
6953
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
6954
 
    am__untar='cpio -i -H $1 -d'
6955
 
    ;;
6956
 
  none)
6957
 
    am__tar=false
6958
 
    am__tar_=false
6959
 
    am__untar=false
6960
 
    ;;
6961
 
  esac
6962
 
 
6963
 
  # If the value was cached, stop now.  We just wanted to have am__tar
6964
 
  # and am__untar set.
6965
 
  test -n "${am_cv_prog_tar_$1}" && break
6966
 
 
6967
 
  # tar/untar a dummy directory, and stop if the command works
6968
 
  rm -rf conftest.dir
6969
 
  mkdir conftest.dir
6970
 
  echo GrepMe > conftest.dir/file
6971
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
6972
 
  rm -rf conftest.dir
6973
 
  if test -s conftest.tar; then
6974
 
    AM_RUN_LOG([$am__untar <conftest.tar])
6975
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
6976
 
  fi
6977
 
done
6978
 
rm -rf conftest.dir
6979
 
 
6980
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
6981
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
6982
 
AC_SUBST([am__tar])
6983
 
AC_SUBST([am__untar])
6984
 
]) # _AM_PROG_TAR
6985
 
 
6986
6852
m4_include([m4/acx_pthread.m4])