Changeset 429 for trunk/icedtea-web/aclocal.m4
- Timestamp:
- Sep 24, 2014, 9:34:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/aclocal.m4
r418 r429 1 # generated automatically by aclocal 1.11.3 -*- 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.4 -*- 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, … … 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 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 8],,18 [m4_warning([this file was generated for autoconf 2.6 8.17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 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 -*- … … 49 49 AC_DEFUN([PKG_PROG_PKG_CONFIG], 50 50 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 51 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 51 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 52 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 52 53 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 53 54 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) … … 95 96 elif test -n "$PKG_CONFIG"; then 96 97 PKG_CHECK_EXISTS([$3], 97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 98 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 99 test "x$?" != "x0" && pkg_failed=yes ], 98 100 [pkg_failed=yes]) 99 101 else … … 143 145 _PKG_SHORT_ERRORS_SUPPORTED 144 146 if test $_pkg_short_errors_supported = yes; then 145 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`147 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 146 148 else 147 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`149 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 148 150 fi 149 151 # Put the nasty error message in config.log where it belongs … … 158 160 installed software in a non-standard prefix. 159 161 160 _PKG_TEXT]) 162 _PKG_TEXT])[]dnl 161 163 ]) 162 164 elif test $pkg_failed = untried; then … … 169 171 _PKG_TEXT 170 172 171 To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) 173 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 172 174 ]) 173 175 else … … 179 181 ])# PKG_CHECK_MODULES 180 182 181 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 182 # Foundation, Inc. 183 # 184 # This file is free software; the Free Software Foundation 185 # gives unlimited permission to copy and/or distribute it, 186 # with or without modifications, as long as this notice is preserved. 187 188 # serial 1 183 184 # PKG_INSTALLDIR(DIRECTORY) 185 # ------------------------- 186 # Substitutes the variable pkgconfigdir as the location where a module 187 # should install pkg-config .pc files. By default the directory is 188 # $libdir/pkgconfig, but the default can be changed by passing 189 # DIRECTORY. The user can override through the --with-pkgconfigdir 190 # parameter. 191 AC_DEFUN([PKG_INSTALLDIR], 192 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 193 m4_pushdef([pkg_description], 194 [pkg-config installation directory @<:@]pkg_default[@:>@]) 195 AC_ARG_WITH([pkgconfigdir], 196 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 197 [with_pkgconfigdir=]pkg_default) 198 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 199 m4_popdef([pkg_default]) 200 m4_popdef([pkg_description]) 201 ]) dnl PKG_INSTALLDIR 202 203 204 # PKG_NOARCH_INSTALLDIR(DIRECTORY) 205 # ------------------------- 206 # Substitutes the variable noarch_pkgconfigdir as the location where a 207 # module should install arch-independent pkg-config .pc files. By 208 # default the directory is $datadir/pkgconfig, but the default can be 209 # changed by passing DIRECTORY. The user can override through the 210 # --with-noarch-pkgconfigdir parameter. 211 AC_DEFUN([PKG_NOARCH_INSTALLDIR], 212 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 213 m4_pushdef([pkg_description], 214 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 215 AC_ARG_WITH([noarch-pkgconfigdir], 216 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 217 [with_noarch_pkgconfigdir=]pkg_default) 218 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 219 m4_popdef([pkg_default]) 220 m4_popdef([pkg_description]) 221 ]) dnl PKG_NOARCH_INSTALLDIR 222 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. 239 # 240 # This file is free software; the Free Software Foundation 241 # gives unlimited permission to copy and/or distribute it, 242 # with or without modifications, as long as this notice is preserved. 189 243 190 244 # AM_AUTOMAKE_VERSION(VERSION) … … 194 248 # (This private macro should not be called outside this file.) 195 249 AC_DEFUN([AM_AUTOMAKE_VERSION], 196 [am__api_version='1.1 1'250 [am__api_version='1.13' 197 251 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 198 252 dnl require some minimum version. Point them to the right macro. 199 m4_if([$1], [1.1 1.3], [],253 m4_if([$1], [1.13.4], [], 200 254 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 201 255 ]) … … 213 267 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 214 268 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 215 [AM_AUTOMAKE_VERSION([1.1 1.3])dnl269 [AM_AUTOMAKE_VERSION([1.13.4])dnl 216 270 m4_ifndef([AC_AUTOCONF_VERSION], 217 271 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 220 274 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 221 275 222 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 223 # 224 # This file is free software; the Free Software Foundation 225 # gives unlimited permission to copy and/or distribute it, 226 # with or without modifications, as long as this notice is preserved. 227 228 # serial 1 276 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 277 # 278 # This file is free software; the Free Software Foundation 279 # gives unlimited permission to copy and/or distribute it, 280 # with or without modifications, as long as this notice is preserved. 229 281 230 282 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 231 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to232 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.283 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 284 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. 233 285 # 234 286 # Of course, Automake must honor this variable whenever it calls a … … 249 301 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 250 302 # are both prefixed by $srcdir. In an in-source build this is usually 251 # harmless because $srcdir is `.', but things will broke when you303 # harmless because $srcdir is '.', but things will broke when you 252 304 # start a VPATH build or use an absolute $srcdir. 253 305 # … … 275 327 # AM_CONDITIONAL -*- Autoconf -*- 276 328 277 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 278 # Free Software Foundation, Inc. 279 # 280 # This file is free software; the Free Software Foundation 281 # gives unlimited permission to copy and/or distribute it, 282 # with or without modifications, as long as this notice is preserved. 283 284 # serial 9 329 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 330 # 331 # This file is free software; the Free Software Foundation 332 # gives unlimited permission to copy and/or distribute it, 333 # with or without modifications, as long as this notice is preserved. 285 334 286 335 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 288 337 # Define a conditional. 289 338 AC_DEFUN([AM_CONDITIONAL], 290 [AC_PREREQ( 2.52)dnl291 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],292 339 [AC_PREREQ([2.52])dnl 340 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 341 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 293 342 AC_SUBST([$1_TRUE])dnl 294 343 AC_SUBST([$1_FALSE])dnl … … 309 358 fi])]) 310 359 311 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 312 # 2010, 2011 Free Software Foundation, Inc. 313 # 314 # This file is free software; the Free Software Foundation 315 # gives unlimited permission to copy and/or distribute it, 316 # with or without modifications, as long as this notice is preserved. 317 318 # serial 12 319 320 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 360 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 361 # 362 # This file is free software; the Free Software Foundation 363 # gives unlimited permission to copy and/or distribute it, 364 # with or without modifications, as long as this notice is preserved. 365 366 367 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 321 368 # written in clear, in which case automake, when reading aclocal.m4, 322 369 # will think it sees a *use*, and therefore will trigger all it's … … 328 375 # ---------------------- 329 376 # See how the compiler implements dependency checking. 330 # NAME is "CC", "CXX", " GCJ", or "OBJC".377 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 331 378 # We try a few techniques and use that to set a single cache variable. 332 379 # … … 341 388 AC_REQUIRE([AM_DEP_TRACK])dnl 342 389 343 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 344 [$1], CXX, [depcc="$CXX" am_compiler_list=], 345 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 346 [$1], UPC, [depcc="$UPC" am_compiler_list=], 347 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 348 [depcc="$$1" am_compiler_list=]) 390 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 391 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 392 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 393 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 394 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 395 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 396 [depcc="$$1" am_compiler_list=]) 349 397 350 398 AC_CACHE_CHECK([dependency style of $depcc], … … 354 402 # making bogus files that we don't know about and never remove. For 355 403 # instance it was reported that on HP-UX the gcc test will end up 356 # making a dummy file named `D' -- because `-MD' means `put the output357 # in D '.404 # making a dummy file named 'D' -- because '-MD' means "put the output 405 # in D". 358 406 rm -rf conftest.dir 359 407 mkdir conftest.dir … … 395 443 for i in 1 2 3 4 5 6; do 396 444 echo '#include "conftst'$i'.h"' >> sub/conftest.c 397 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with398 # Solaris 8's {/usr,}/bin/sh.399 touchsub/conftst$i.h445 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 446 # Solaris 10 /bin/sh. 447 echo '/* dummy */' > sub/conftst$i.h 400 448 done 401 449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 402 450 403 # We check with `-c' and `-o' for the sake of the "dashmstdout"451 # We check with '-c' and '-o' for the sake of the "dashmstdout" 404 452 # mode. It turns out that the SunPro C++ compiler does not properly 405 # handle `-M -o', and we need to detect this. Also, some Intel406 # versions had trouble with output in subdirs 453 # handle '-M -o', and we need to detect this. Also, some Intel 454 # versions had trouble with output in subdirs. 407 455 am__obj=sub/conftest.${OBJEXT-o} 408 456 am__minus_obj="-o $am__obj" … … 413 461 ;; 414 462 nosideeffect) 415 # after this tag, mechanisms are not by side-effect, so they'll416 # only be used when explicitly requested 463 # After this tag, mechanisms are not by side-effect, so they'll 464 # only be used when explicitly requested. 417 465 if test "x$enable_dependency_tracking" = xyes; then 418 466 continue … … 422 470 ;; 423 471 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 424 # This compiler won't grok `-c -o', but also, the minuso test has472 # This compiler won't grok '-c -o', but also, the minuso test has 425 473 # not run yet. These depmodes are late enough in the game, and 426 474 # so weak that their functioning should not be impacted. … … 470 518 # ------------- 471 519 # Choose a directory name for dependency files. 472 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 520 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. 473 521 AC_DEFUN([AM_SET_DEPDIR], 474 522 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl … … 480 528 # ------------ 481 529 AC_DEFUN([AM_DEP_TRACK], 482 [AC_ARG_ENABLE(dependency-tracking, 483 [ --disable-dependency-tracking speeds up one-time build 484 --enable-dependency-tracking do not reject slow dependency extractors]) 530 [AC_ARG_ENABLE([dependency-tracking], [dnl 531 AS_HELP_STRING( 532 [--enable-dependency-tracking], 533 [do not reject slow dependency extractors]) 534 AS_HELP_STRING( 535 [--disable-dependency-tracking], 536 [speeds up one-time build])]) 485 537 if test "x$enable_dependency_tracking" != xno; then 486 538 am_depcomp="$ac_aux_dir/depcomp" … … 497 549 # Generate code to set up dependency tracking. -*- Autoconf -*- 498 550 499 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 500 # Free Software Foundation, Inc. 501 # 502 # This file is free software; the Free Software Foundation 503 # gives unlimited permission to copy and/or distribute it, 504 # with or without modifications, as long as this notice is preserved. 505 506 #serial 5 551 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 552 # 553 # This file is free software; the Free Software Foundation 554 # gives unlimited permission to copy and/or distribute it, 555 # with or without modifications, as long as this notice is preserved. 556 507 557 508 558 # _AM_OUTPUT_DEPENDENCY_COMMANDS … … 510 560 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 511 561 [{ 512 # Autoconf 2.62quotes --file arguments for eval, but not when files562 # Older Autoconf quotes --file arguments for eval, but not when files 513 563 # are listed without --file. Let's play safe and only enable the eval 514 564 # if we detect the quoting. … … 523 573 mf=`echo "$mf" | sed -e 's/:.*$//'` 524 574 # Check whether this is an Automake generated Makefile or not. 525 # We used to match only the files named `Makefile.in', but575 # We used to match only the files named 'Makefile.in', but 526 576 # some people rename them; so instead we look at the file content. 527 577 # Grep'ing the first line is not enough: some people post-process … … 535 585 fi 536 586 # Extract the definition of DEPDIR, am__include, and am__quote 537 # from the Makefile without running `make'.587 # from the Makefile without running 'make'. 538 588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 539 589 test -z "$DEPDIR" && continue 540 590 am__include=`sed -n 's/^am__include = //p' < "$mf"` 541 test -z " am__include" && continue591 test -z "$am__include" && continue 542 592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 543 # When using ansi2knr, U may be empty or an underscore; expand it544 U=`sed -n 's/^U = //p' < "$mf"`545 593 # Find all dependency output files, they are included files with 546 594 # $(DEPDIR) in their names. We invoke sed twice because it is the … … 549 597 for file in `sed -n " 550 598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 551 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 552 600 # Make sure the directory exists. 553 601 test -f "$dirpart/$file" && continue … … 567 615 # 568 616 # This code is only required when automatic dependency tracking 569 # is enabled. FIXME. This creates each `.P' file that we will617 # is enabled. FIXME. This creates each '.P' file that we will 570 618 # need in order to bootstrap the dependency handling code. 571 619 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], … … 577 625 # Do all the work for Automake. -*- Autoconf -*- 578 626 579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 580 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 581 # 582 # This file is free software; the Free Software Foundation 583 # gives unlimited permission to copy and/or distribute it, 584 # with or without modifications, as long as this notice is preserved. 585 586 # serial 16 627 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 628 # 629 # This file is free software; the Free Software Foundation 630 # gives unlimited permission to copy and/or distribute it, 631 # with or without modifications, as long as this notice is preserved. 587 632 588 633 # This macro actually does too much. Some checks are only needed if … … 601 646 # release and drop the old call support. 602 647 AC_DEFUN([AM_INIT_AUTOMAKE], 603 [AC_PREREQ([2.6 2])dnl648 [AC_PREREQ([2.65])dnl 604 649 dnl Autoconf wants to disallow AM_ names. We explicitly allow 605 650 dnl the ones we care about. … … 630 675 dnl Distinguish between old-style and new-style calls. 631 676 m4_ifval([$2], 632 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 677 [AC_DIAGNOSE([obsolete], 678 [$0: two- and three-arguments forms are deprecated.]) 679 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 633 680 AC_SUBST([PACKAGE], [$1])dnl 634 681 AC_SUBST([VERSION], [$2])], 635 682 [_AM_SET_OPTIONS([$1])dnl 636 683 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 637 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 684 m4_if( 685 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 686 [ok:ok],, 638 687 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 639 688 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl … … 641 690 642 691 _AM_IF_OPTION([no-define],, 643 [AC_DEFINE_UNQUOTED( PACKAGE, "$PACKAGE", [Name of package])644 AC_DEFINE_UNQUOTED( VERSION, "$VERSION", [Version number of package])])dnl692 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 693 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 645 694 646 695 # Some tools Automake needs. 647 696 AC_REQUIRE([AM_SANITY_CHECK])dnl 648 697 AC_REQUIRE([AC_ARG_PROGRAM])dnl 649 AM_MISSING_PROG( ACLOCAL, aclocal-${am__api_version})650 AM_MISSING_PROG( AUTOCONF, autoconf)651 AM_MISSING_PROG( AUTOMAKE, automake-${am__api_version})652 AM_MISSING_PROG( AUTOHEADER, autoheader)653 AM_MISSING_PROG( MAKEINFO, makeinfo)698 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 699 AM_MISSING_PROG([AUTOCONF], [autoconf]) 700 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 701 AM_MISSING_PROG([AUTOHEADER], [autoheader]) 702 AM_MISSING_PROG([MAKEINFO], [makeinfo]) 654 703 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 655 704 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 656 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 705 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 706 # For better backward compatibility. To be removed once Automake 1.9.x 707 # dies out for good. For more background, see: 708 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 709 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 710 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 657 711 # We need awk for the "check" target. The system "awk" is bad on 658 712 # some platforms. … … 665 719 _AM_IF_OPTION([no-dependencies],, 666 720 [AC_PROVIDE_IFELSE([AC_PROG_CC], 667 [_AM_DEPENDENCIES( CC)],668 [ define([AC_PROG_CC],669 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl721 [_AM_DEPENDENCIES([CC])], 722 [m4_define([AC_PROG_CC], 723 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 670 724 AC_PROVIDE_IFELSE([AC_PROG_CXX], 671 [_AM_DEPENDENCIES( CXX)],672 [ define([AC_PROG_CXX],673 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl725 [_AM_DEPENDENCIES([CXX])], 726 [m4_define([AC_PROG_CXX], 727 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 674 728 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 675 [_AM_DEPENDENCIES(OBJC)], 676 [define([AC_PROG_OBJC], 677 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 678 ]) 679 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 680 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 681 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 682 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 729 [_AM_DEPENDENCIES([OBJC])], 730 [m4_define([AC_PROG_OBJC], 731 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 732 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 733 [_AM_DEPENDENCIES([OBJCXX])], 734 [m4_define([AC_PROG_OBJCXX], 735 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 736 ]) 737 AC_REQUIRE([AM_SILENT_RULES])dnl 738 dnl The testsuite driver may need to know about EXEEXT, so add the 739 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 740 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 683 741 AC_CONFIG_COMMANDS_PRE(dnl 684 742 [m4_provide_if([_AM_COMPILER_EXEEXT], … … 686 744 ]) 687 745 688 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not746 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 689 747 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 690 748 dnl mangled by Autoconf and run in a shell conditional statement. … … 714 772 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 715 773 716 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 717 # Inc. 718 # 719 # This file is free software; the Free Software Foundation 720 # gives unlimited permission to copy and/or distribute it, 721 # with or without modifications, as long as this notice is preserved. 722 723 # serial 1 774 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 775 # 776 # This file is free software; the Free Software Foundation 777 # gives unlimited permission to copy and/or distribute it, 778 # with or without modifications, as long as this notice is preserved. 724 779 725 780 # AM_PROG_INSTALL_SH … … 736 791 esac 737 792 fi 738 AC_SUBST(install_sh)]) 739 740 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. 741 # 742 # This file is free software; the Free Software Foundation 743 # gives unlimited permission to copy and/or distribute it, 744 # with or without modifications, as long as this notice is preserved. 745 746 # serial 2 793 AC_SUBST([install_sh])]) 794 795 # Copyright (C) 2003-2013 Free Software Foundation, Inc. 796 # 797 # This file is free software; the Free Software Foundation 798 # gives unlimited permission to copy and/or distribute it, 799 # with or without modifications, as long as this notice is preserved. 747 800 748 801 # Check whether the underlying file-system supports filenames … … 761 814 # Check to see how 'make' treats includes. -*- Autoconf -*- 762 815 763 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 764 # 765 # This file is free software; the Free Software Foundation 766 # gives unlimited permission to copy and/or distribute it, 767 # with or without modifications, as long as this notice is preserved. 768 769 # serial 4 816 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 817 # 818 # This file is free software; the Free Software Foundation 819 # gives unlimited permission to copy and/or distribute it, 820 # with or without modifications, as long as this notice is preserved. 770 821 771 822 # AM_MAKE_INCLUDE() … … 786 837 # First try GNU make style include. 787 838 echo "include confinc" > confmf 788 # Ignore all kinds of additional output from `make'.839 # Ignore all kinds of additional output from 'make'. 789 840 case `$am_make -s -f confmf 2> /dev/null` in #( 790 841 *the\ am__doit\ target*) … … 813 864 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 814 865 815 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 816 # Free Software Foundation, Inc. 817 # 818 # This file is free software; the Free Software Foundation 819 # gives unlimited permission to copy and/or distribute it, 820 # with or without modifications, as long as this notice is preserved. 821 822 # serial 6 866 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 867 # 868 # This file is free software; the Free Software Foundation 869 # gives unlimited permission to copy and/or distribute it, 870 # with or without modifications, as long as this notice is preserved. 823 871 824 872 # AM_MISSING_PROG(NAME, PROGRAM) … … 829 877 AC_SUBST($1)]) 830 878 831 832 879 # AM_MISSING_HAS_RUN 833 880 # ------------------ 834 # Define MISSING if not defined so far and test if it supports --run.835 # If it does, set am_missing_run to use it, otherwise, to nothing.881 # Define MISSING if not defined so far and test if it is modern enough. 882 # If it is, set am_missing_run to use it, otherwise, to nothing. 836 883 AC_DEFUN([AM_MISSING_HAS_RUN], 837 884 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl … … 846 893 fi 847 894 # Use eval to expand $SHELL 848 if eval "$MISSING -- run true"; then849 am_missing_run="$MISSING --run"895 if eval "$MISSING --is-lightweight"; then 896 am_missing_run="$MISSING " 850 897 else 851 898 am_missing_run= 852 AC_MSG_WARN([`missing' script is too old or missing]) 853 fi 854 ]) 855 856 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 857 # Inc. 858 # 859 # This file is free software; the Free Software Foundation 860 # gives unlimited permission to copy and/or distribute it, 861 # with or without modifications, as long as this notice is preserved. 862 863 # serial 1 864 865 # AM_PROG_MKDIR_P 866 # --------------- 867 # Check for `mkdir -p'. 868 AC_DEFUN([AM_PROG_MKDIR_P], 869 [AC_PREREQ([2.60])dnl 870 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 871 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 872 dnl while keeping a definition of mkdir_p for backward compatibility. 873 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 874 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 875 dnl Makefile.ins that do not define MKDIR_P, so we do our own 876 dnl adjustment using top_builddir (which is defined more often than 877 dnl MKDIR_P). 878 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 879 case $mkdir_p in 880 [[\\/$]]* | ?:[[\\/]]*) ;; 881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 882 esac 899 AC_MSG_WARN(['missing' script is too old or missing]) 900 fi 883 901 ]) 884 902 885 903 # Helper functions for option handling. -*- Autoconf -*- 886 904 887 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 888 # Foundation, Inc. 889 # 890 # This file is free software; the Free Software Foundation 891 # gives unlimited permission to copy and/or distribute it, 892 # with or without modifications, as long as this notice is preserved. 893 894 # serial 5 905 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 906 # 907 # This file is free software; the Free Software Foundation 908 # gives unlimited permission to copy and/or distribute it, 909 # with or without modifications, as long as this notice is preserved. 895 910 896 911 # _AM_MANGLE_OPTION(NAME) … … 903 918 # Set option NAME. Presently that only means defining a flag for this option. 904 919 AC_DEFUN([_AM_SET_OPTION], 905 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])920 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 906 921 907 922 # _AM_SET_OPTIONS(OPTIONS) … … 917 932 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 918 933 919 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 920 # 921 # This file is free software; the Free Software Foundation 922 # gives unlimited permission to copy and/or distribute it, 923 # with or without modifications, as long as this notice is preserved. 924 925 # serial 1 934 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 935 # 936 # This file is free software; the Free Software Foundation 937 # gives unlimited permission to copy and/or distribute it, 938 # with or without modifications, as long as this notice is preserved. 926 939 927 940 # AM_RUN_LOG(COMMAND) … … 938 951 # Check to make sure that the build environment is sane. -*- Autoconf -*- 939 952 940 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 941 # Free Software Foundation, Inc. 942 # 943 # This file is free software; the Free Software Foundation 944 # gives unlimited permission to copy and/or distribute it, 945 # with or without modifications, as long as this notice is preserved. 946 947 # serial 5 953 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 954 # 955 # This file is free software; the Free Software Foundation 956 # gives unlimited permission to copy and/or distribute it, 957 # with or without modifications, as long as this notice is preserved. 948 958 949 959 # AM_SANITY_CHECK … … 951 961 AC_DEFUN([AM_SANITY_CHECK], 952 962 [AC_MSG_CHECKING([whether build environment is sane]) 953 # Just in case954 sleep 1955 echo timestamp > conftest.file956 963 # Reject unsafe characters in $srcdir or the absolute working directory 957 964 # name. Accept space and tab only in the latter. … … 964 971 case $srcdir in 965 972 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 966 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;973 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 967 974 esac 968 975 969 # Do `set' in a subshell so we don't clobber the current shell's976 # Do 'set' in a subshell so we don't clobber the current shell's 970 977 # arguments. Must try -L first in case configure is actually a 971 978 # symlink; some systems play weird games with the mod time of symlinks … … 973 980 # directory). 974 981 if ( 975 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 976 if test "$[*]" = "X"; then 977 # -L didn't work. 978 set X `ls -t "$srcdir/configure" conftest.file` 979 fi 980 rm -f conftest.file 981 if test "$[*]" != "X $srcdir/configure conftest.file" \ 982 && test "$[*]" != "X conftest.file $srcdir/configure"; then 983 984 # If neither matched, then we have a broken ls. This can happen 985 # if, for instance, CONFIG_SHELL is bash and it inherits a 986 # broken ls alias from the environment. This has actually 987 # happened. Such a system could not be considered "sane". 988 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 989 alias in your environment]) 990 fi 991 982 am_has_slept=no 983 for am_try in 1 2; do 984 echo "timestamp, slept: $am_has_slept" > conftest.file 985 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 986 if test "$[*]" = "X"; then 987 # -L didn't work. 988 set X `ls -t "$srcdir/configure" conftest.file` 989 fi 990 if test "$[*]" != "X $srcdir/configure conftest.file" \ 991 && test "$[*]" != "X conftest.file $srcdir/configure"; then 992 993 # If neither matched, then we have a broken ls. This can happen 994 # if, for instance, CONFIG_SHELL is bash and it inherits a 995 # broken ls alias from the environment. This has actually 996 # happened. Such a system could not be considered "sane". 997 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 998 alias in your environment]) 999 fi 1000 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1001 break 1002 fi 1003 # Just in case. 1004 sleep 1 1005 am_has_slept=yes 1006 done 992 1007 test "$[2]" = conftest.file 993 1008 ) … … 999 1014 Check your system clock]) 1000 1015 fi 1001 AC_MSG_RESULT(yes)]) 1002 1003 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 1004 # 1005 # This file is free software; the Free Software Foundation 1006 # gives unlimited permission to copy and/or distribute it, 1007 # with or without modifications, as long as this notice is preserved. 1008 1009 # serial 1 1016 AC_MSG_RESULT([yes]) 1017 # If we didn't sleep, we still need to ensure time stamps of config.status and 1018 # generated files are strictly newer. 1019 am_sleep_pid= 1020 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1021 ( sleep 1 ) & 1022 am_sleep_pid=$! 1023 fi 1024 AC_CONFIG_COMMANDS_PRE( 1025 [AC_MSG_CHECKING([that generated files are newer than configure]) 1026 if test -n "$am_sleep_pid"; then 1027 # Hide warnings about reused PIDs. 1028 wait $am_sleep_pid 2>/dev/null 1029 fi 1030 AC_MSG_RESULT([done])]) 1031 rm -f conftest.file 1032 ]) 1033 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. 1010 1099 1011 1100 # AM_PROG_INSTALL_STRIP 1012 1101 # --------------------- 1013 # One issue with vendor `install' (even GNU) is that you can't1102 # One issue with vendor 'install' (even GNU) is that you can't 1014 1103 # specify the program used to strip binaries. This is especially 1015 1104 # annoying in cross-compiling environments, where the build's strip 1016 1105 # is unlikely to handle the host's binaries. 1017 1106 # Fortunately install-sh will honor a STRIPPROG variable, so we 1018 # always use install-sh in `make install-strip', and initialize1107 # always use install-sh in "make install-strip", and initialize 1019 1108 # STRIPPROG with the value of the STRIP variable (set by the user). 1020 1109 AC_DEFUN([AM_PROG_INSTALL_STRIP], 1021 1110 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1022 # Installed binaries are usually stripped using `strip' when the user1023 # run `make install-strip'. However `strip' might not be the right1111 # Installed binaries are usually stripped using 'strip' when the user 1112 # run "make install-strip". However 'strip' might not be the right 1024 1113 # tool to use in cross-compilation environments, therefore Automake 1025 # will honor the `STRIP' environment variable to overrule this program.1026 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.1114 # will honor the 'STRIP' environment variable to overrule this program. 1115 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1027 1116 if test "$cross_compiling" != no; then 1028 1117 AC_CHECK_TOOL([STRIP], [strip], :) … … 1031 1120 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1032 1121 1033 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 1034 # 1035 # This file is free software; the Free Software Foundation 1036 # gives unlimited permission to copy and/or distribute it, 1037 # with or without modifications, as long as this notice is preserved. 1038 1039 # serial 3 1122 # Copyright (C) 2006-2013 Free Software Foundation, Inc. 1123 # 1124 # This file is free software; the Free Software Foundation 1125 # gives unlimited permission to copy and/or distribute it, 1126 # with or without modifications, as long as this notice is preserved. 1040 1127 1041 1128 # _AM_SUBST_NOTMAKE(VARIABLE) … … 1052 1139 # Check how to create a tarball. -*- Autoconf -*- 1053 1140 1054 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 1055 # 1056 # This file is free software; the Free Software Foundation 1057 # gives unlimited permission to copy and/or distribute it, 1058 # with or without modifications, as long as this notice is preserved. 1059 1060 # serial 2 1141 # Copyright (C) 2004-2013 Free Software Foundation, Inc. 1142 # 1143 # This file is free software; the Free Software Foundation 1144 # gives unlimited permission to copy and/or distribute it, 1145 # with or without modifications, as long as this notice is preserved. 1061 1146 1062 1147 # _AM_PROG_TAR(FORMAT) 1063 1148 # -------------------- 1064 1149 # Check how to create a tarball in format FORMAT. 1065 # FORMAT should be one of `v7', `ustar', or `pax'.1150 # FORMAT should be one of 'v7', 'ustar', or 'pax'. 1066 1151 # 1067 1152 # Substitute a variable $(am__tar) that is a command … … 1073 1158 # a tarball read from stdin. 1074 1159 # $(am__untar) < result.tar 1160 # 1075 1161 AC_DEFUN([_AM_PROG_TAR], 1076 1162 [# Always define AMTAR for backward compatibility. Yes, it's still used 1077 1163 # in the wild :-( We should find a proper way to deprecate it ... 1078 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 1079 1169 m4_if([$1], [v7], 1080 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1081 [m4_case([$1], [ustar],, [pax],, 1082 [m4_fatal([Unknown tar format])]) 1083 AC_MSG_CHECKING([how to create a $1 tar archive]) 1084 # Loop over all known methods to create a tar archive until one works. 1085 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1086 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1087 # Do not fold the above two line into one, because Tru64 sh and 1088 # Solaris sh will not grok spaces in the rhs of `-'. 1089 for _am_tool in $_am_tools 1090 do 1091 case $_am_tool in 1092 gnutar) 1093 for _am_tar in tar gnutar gtar; 1094 do 1095 AM_RUN_LOG([$_am_tar --version]) && break 1096 done 1097 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1098 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1099 am__untar="$_am_tar -xf -" 1100 ;; 1101 plaintar) 1102 # Must skip GNU tar: if it does not support --format= it doesn't create 1103 # ustar tarball either. 1104 (tar --version) >/dev/null 2>&1 && continue 1105 am__tar='tar chf - "$$tardir"' 1106 am__tar_='tar chf - "$tardir"' 1107 am__untar='tar xf -' 1108 ;; 1109 pax) 1110 am__tar='pax -L -x $1 -w "$$tardir"' 1111 am__tar_='pax -L -x $1 -w "$tardir"' 1112 am__untar='pax -r' 1113 ;; 1114 cpio) 1115 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1116 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1117 am__untar='cpio -i -H $1 -d' 1118 ;; 1119 none) 1120 am__tar=false 1121 am__tar_=false 1122 am__untar=false 1123 ;; 1124 esac 1125 1126 # If the value was cached, stop now. We just wanted to have am__tar 1127 # and am__untar set. 1128 test -n "${am_cv_prog_tar_$1}" && break 1129 1130 # tar/untar a dummy directory, and stop if the command works 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 1131 1263 rm -rf conftest.dir 1132 mkdir conftest.dir 1133 echo GrepMe > conftest.dir/file 1134 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1135 rm -rf conftest.dir 1136 if test -s conftest.tar; then 1137 AM_RUN_LOG([$am__untar <conftest.tar]) 1138 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1139 fi 1140 done 1141 rm -rf conftest.dir 1142 1143 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1144 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 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 1145 1268 AC_SUBST([am__tar]) 1146 1269 AC_SUBST([am__untar])
Note:
See TracChangeset
for help on using the changeset viewer.