Changeset 1964 for cpio/vendor/current/aclocal.m4
- Timestamp:
- Feb 3, 2017, 2:02:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpio/vendor/current/aclocal.m4 ¶
r118 r1964 1 # generated automatically by aclocal 1.1 1.1-*- Autoconf -*-2 3 # Copyright (C) 1996 , 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 1 # generated automatically by aclocal 1.14 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 5 5 # This file is free software; the Free Software Foundation 6 6 # gives unlimited permission to copy and/or distribute it, … … 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 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 3],,17 [m4_warning([this file was generated for autoconf 2.6 3.17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18 [m4_warning([this file was generated for autoconf 2.69. 18 19 You have another version of autoconf. It may work, but is not guaranteed to. 19 20 If you have problems, you may need to regenerate the build system entirely. 20 To do so, use the procedure documented by the package, typically `autoreconf'.])])21 22 # Copyright (C) 2002 , 2003, 2005, 2006, 2007, 2008Free Software Foundation, Inc.21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23 # Copyright (C) 2002-2013 Free Software Foundation, Inc. 23 24 # 24 25 # This file is free software; the Free Software Foundation … … 32 33 # (This private macro should not be called outside this file.) 33 34 AC_DEFUN([AM_AUTOMAKE_VERSION], 34 [am__api_version='1.1 1'35 [am__api_version='1.14' 35 36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36 37 dnl require some minimum version. Point them to the right macro. 37 m4_if([$1], [1.1 1.1], [],38 m4_if([$1], [1.14], [], 38 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39 40 ]) … … 51 52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52 53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53 [AM_AUTOMAKE_VERSION([1.1 1.1])dnl54 [AM_AUTOMAKE_VERSION([1.14])dnl 54 55 m4_ifndef([AC_AUTOCONF_VERSION], 55 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 58 59 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 59 60 60 # Copyright (C) 2001 , 2003, 2005Free Software Foundation, Inc.61 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 61 62 # 62 63 # This file is free software; the Free Software Foundation … … 65 66 66 67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to68 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.68 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. 69 70 # 70 71 # Of course, Automake must honor this variable whenever it calls a … … 85 86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86 87 # are both prefixed by $srcdir. In an in-source build this is usually 87 # harmless because $srcdir is `.', but things will broke when you88 # harmless because $srcdir is '.', but things will broke when you 88 89 # start a VPATH build or use an absolute $srcdir. 89 90 # … … 111 112 # AM_CONDITIONAL -*- Autoconf -*- 112 113 113 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114 # Free Software Foundation, Inc. 115 # 116 # This file is free software; the Free Software Foundation 117 # gives unlimited permission to copy and/or distribute it, 118 # with or without modifications, as long as this notice is preserved. 119 120 # serial 9 114 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 115 # 116 # This file is free software; the Free Software Foundation 117 # gives unlimited permission to copy and/or distribute it, 118 # with or without modifications, as long as this notice is preserved. 121 119 122 120 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 124 122 # Define a conditional. 125 123 AC_DEFUN([AM_CONDITIONAL], 126 [AC_PREREQ( 2.52)dnl127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],128 124 [AC_PREREQ([2.52])dnl 125 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 126 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129 127 AC_SUBST([$1_TRUE])dnl 130 128 AC_SUBST([$1_FALSE])dnl … … 145 143 fi])]) 146 144 147 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148 # Free Software Foundation, Inc. 149 # 150 # This file is free software; the Free Software Foundation 151 # gives unlimited permission to copy and/or distribute it, 152 # with or without modifications, as long as this notice is preserved. 153 154 # serial 10 155 156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 145 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 146 # 147 # This file is free software; the Free Software Foundation 148 # gives unlimited permission to copy and/or distribute it, 149 # with or without modifications, as long as this notice is preserved. 150 151 152 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 157 153 # written in clear, in which case automake, when reading aclocal.m4, 158 154 # will think it sees a *use*, and therefore will trigger all it's … … 164 160 # ---------------------- 165 161 # See how the compiler implements dependency checking. 166 # NAME is "CC", "CXX", " GCJ", or "OBJC".162 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 167 163 # We try a few techniques and use that to set a single cache variable. 168 164 # … … 177 173 AC_REQUIRE([AM_DEP_TRACK])dnl 178 174 179 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182 [$1], UPC, [depcc="$UPC" am_compiler_list=], 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184 [depcc="$$1" am_compiler_list=]) 175 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 176 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 177 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 178 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 179 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 180 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 181 [depcc="$$1" am_compiler_list=]) 185 182 186 183 AC_CACHE_CHECK([dependency style of $depcc], … … 190 187 # making bogus files that we don't know about and never remove. For 191 188 # instance it was reported that on HP-UX the gcc test will end up 192 # making a dummy file named `D' -- because `-MD' means `put the output 193 # in D'. 189 # making a dummy file named 'D' -- because '-MD' means "put the output 190 # in D". 191 rm -rf conftest.dir 194 192 mkdir conftest.dir 195 193 # Copy depcomp to subdir because otherwise we won't find it if we're … … 230 228 for i in 1 2 3 4 5 6; do 231 229 echo '#include "conftst'$i'.h"' >> sub/conftest.c 232 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with233 # Solaris 8's {/usr,}/bin/sh.234 touchsub/conftst$i.h230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 231 # Solaris 10 /bin/sh. 232 echo '/* dummy */' > sub/conftst$i.h 235 233 done 236 234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237 235 238 # We check with `-c' and `-o' for the sake of the "dashmstdout"236 # We check with '-c' and '-o' for the sake of the "dashmstdout" 239 237 # mode. It turns out that the SunPro C++ compiler does not properly 240 # handle `-M -o', and we need to detect this. Also, some Intel241 # versions had trouble with output in subdirs 238 # handle '-M -o', and we need to detect this. Also, some Intel 239 # versions had trouble with output in subdirs. 242 240 am__obj=sub/conftest.${OBJEXT-o} 243 241 am__minus_obj="-o $am__obj" … … 248 246 ;; 249 247 nosideeffect) 250 # after this tag, mechanisms are not by side-effect, so they'll251 # only be used when explicitly requested 248 # After this tag, mechanisms are not by side-effect, so they'll 249 # only be used when explicitly requested. 252 250 if test "x$enable_dependency_tracking" = xyes; then 253 251 continue … … 256 254 fi 257 255 ;; 258 msv isualcpp | msvcmsys)259 # This compiler won't grok `-c -o', but also, the minuso test has256 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 257 # This compiler won't grok '-c -o', but also, the minuso test has 260 258 # not run yet. These depmodes are late enough in the game, and 261 259 # so weak that their functioning should not be impacted. … … 305 303 # ------------- 306 304 # Choose a directory name for dependency files. 307 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 305 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. 308 306 AC_DEFUN([AM_SET_DEPDIR], 309 307 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl … … 315 313 # ------------ 316 314 AC_DEFUN([AM_DEP_TRACK], 317 [AC_ARG_ENABLE(dependency-tracking, 318 [ --disable-dependency-tracking speeds up one-time build 319 --enable-dependency-tracking do not reject slow dependency extractors]) 315 [AC_ARG_ENABLE([dependency-tracking], [dnl 316 AS_HELP_STRING( 317 [--enable-dependency-tracking], 318 [do not reject slow dependency extractors]) 319 AS_HELP_STRING( 320 [--disable-dependency-tracking], 321 [speeds up one-time build])]) 320 322 if test "x$enable_dependency_tracking" != xno; then 321 323 am_depcomp="$ac_aux_dir/depcomp" 322 324 AMDEPBACKSLASH='\' 325 am__nodep='_no' 323 326 fi 324 327 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325 328 AC_SUBST([AMDEPBACKSLASH])dnl 326 329 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 330 AC_SUBST([am__nodep])dnl 331 _AM_SUBST_NOTMAKE([am__nodep])dnl 327 332 ]) 328 333 329 334 # Generate code to set up dependency tracking. -*- Autoconf -*- 330 335 331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332 # Free Software Foundation, Inc. 333 # 334 # This file is free software; the Free Software Foundation 335 # gives unlimited permission to copy and/or distribute it, 336 # with or without modifications, as long as this notice is preserved. 337 338 #serial 5 336 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 337 # 338 # This file is free software; the Free Software Foundation 339 # gives unlimited permission to copy and/or distribute it, 340 # with or without modifications, as long as this notice is preserved. 341 339 342 340 343 # _AM_OUTPUT_DEPENDENCY_COMMANDS … … 342 345 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343 346 [{ 344 # Autoconf 2.62quotes --file arguments for eval, but not when files347 # Older Autoconf quotes --file arguments for eval, but not when files 345 348 # are listed without --file. Let's play safe and only enable the eval 346 349 # if we detect the quoting. … … 355 358 mf=`echo "$mf" | sed -e 's/:.*$//'` 356 359 # Check whether this is an Automake generated Makefile or not. 357 # We used to match only the files named `Makefile.in', but360 # We used to match only the files named 'Makefile.in', but 358 361 # some people rename them; so instead we look at the file content. 359 362 # Grep'ing the first line is not enough: some people post-process … … 367 370 fi 368 371 # Extract the definition of DEPDIR, am__include, and am__quote 369 # from the Makefile without running `make'.372 # from the Makefile without running 'make'. 370 373 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371 374 test -z "$DEPDIR" && continue 372 375 am__include=`sed -n 's/^am__include = //p' < "$mf"` 373 test -z " am__include" && continue376 test -z "$am__include" && continue 374 377 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375 # When using ansi2knr, U may be empty or an underscore; expand it376 U=`sed -n 's/^U = //p' < "$mf"`377 378 # Find all dependency output files, they are included files with 378 379 # $(DEPDIR) in their names. We invoke sed twice because it is the … … 381 382 for file in `sed -n " 382 383 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 384 385 # Make sure the directory exists. 385 386 test -f "$dirpart/$file" && continue … … 399 400 # 400 401 # This code is only required when automatic dependency tracking 401 # is enabled. FIXME. This creates each `.P' file that we will402 # is enabled. FIXME. This creates each '.P' file that we will 402 403 # need in order to bootstrap the dependency handling code. 403 404 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], … … 409 410 # Do all the work for Automake. -*- Autoconf -*- 410 411 411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 412 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 413 # 414 # This file is free software; the Free Software Foundation 415 # gives unlimited permission to copy and/or distribute it, 416 # with or without modifications, as long as this notice is preserved. 417 418 # serial 16 412 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 413 # 414 # This file is free software; the Free Software Foundation 415 # gives unlimited permission to copy and/or distribute it, 416 # with or without modifications, as long as this notice is preserved. 419 417 420 418 # This macro actually does too much. Some checks are only needed if 421 419 # your package does certain things. But this isn't really a big deal. 420 421 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 422 m4_define([AC_PROG_CC], 423 m4_defn([AC_PROG_CC]) 424 [_AM_PROG_CC_C_O 425 ]) 422 426 423 427 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) … … 433 437 # release and drop the old call support. 434 438 AC_DEFUN([AM_INIT_AUTOMAKE], 435 [AC_PREREQ([2.6 2])dnl439 [AC_PREREQ([2.65])dnl 436 440 dnl Autoconf wants to disallow AM_ names. We explicitly allow 437 441 dnl the ones we care about. … … 462 466 dnl Distinguish between old-style and new-style calls. 463 467 m4_ifval([$2], 464 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 468 [AC_DIAGNOSE([obsolete], 469 [$0: two- and three-arguments forms are deprecated.]) 470 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 465 471 AC_SUBST([PACKAGE], [$1])dnl 466 472 AC_SUBST([VERSION], [$2])], 467 473 [_AM_SET_OPTIONS([$1])dnl 468 474 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 469 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 475 m4_if( 476 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 477 [ok:ok],, 470 478 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 471 479 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl … … 473 481 474 482 _AM_IF_OPTION([no-define],, 475 [AC_DEFINE_UNQUOTED( PACKAGE, "$PACKAGE", [Name of package])476 AC_DEFINE_UNQUOTED( VERSION, "$VERSION", [Version number of package])])dnl483 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 484 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 477 485 478 486 # Some tools Automake needs. 479 487 AC_REQUIRE([AM_SANITY_CHECK])dnl 480 488 AC_REQUIRE([AC_ARG_PROGRAM])dnl 481 AM_MISSING_PROG( ACLOCAL, aclocal-${am__api_version})482 AM_MISSING_PROG( AUTOCONF, autoconf)483 AM_MISSING_PROG( AUTOMAKE, automake-${am__api_version})484 AM_MISSING_PROG( AUTOHEADER, autoheader)485 AM_MISSING_PROG( MAKEINFO, makeinfo)489 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 490 AM_MISSING_PROG([AUTOCONF], [autoconf]) 491 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 492 AM_MISSING_PROG([AUTOHEADER], [autoheader]) 493 AM_MISSING_PROG([MAKEINFO], [makeinfo]) 486 494 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 487 495 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 488 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 496 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 497 # For better backward compatibility. To be removed once Automake 1.9.x 498 # dies out for good. For more background, see: 499 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 500 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 501 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 489 502 # We need awk for the "check" target. The system "awk" is bad on 490 503 # some platforms. … … 497 510 _AM_IF_OPTION([no-dependencies],, 498 511 [AC_PROVIDE_IFELSE([AC_PROG_CC], 499 [_AM_DEPENDENCIES( CC)],500 [ define([AC_PROG_CC],501 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl512 [_AM_DEPENDENCIES([CC])], 513 [m4_define([AC_PROG_CC], 514 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 502 515 AC_PROVIDE_IFELSE([AC_PROG_CXX], 503 [_AM_DEPENDENCIES( CXX)],504 [ define([AC_PROG_CXX],505 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl516 [_AM_DEPENDENCIES([CXX])], 517 [m4_define([AC_PROG_CXX], 518 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 506 519 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 507 [_AM_DEPENDENCIES(OBJC)], 508 [define([AC_PROG_OBJC], 509 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 520 [_AM_DEPENDENCIES([OBJC])], 521 [m4_define([AC_PROG_OBJC], 522 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 523 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 524 [_AM_DEPENDENCIES([OBJCXX])], 525 [m4_define([AC_PROG_OBJCXX], 526 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 510 527 ]) 511 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl512 dnl The `parallel-tests'driver may need to know about EXEEXT, so add the513 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro514 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.528 AC_REQUIRE([AM_SILENT_RULES])dnl 529 dnl The testsuite driver may need to know about EXEEXT, so add the 530 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 531 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 515 532 AC_CONFIG_COMMANDS_PRE(dnl 516 533 [m4_provide_if([_AM_COMPILER_EXEEXT], 517 534 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 518 ]) 519 520 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 535 536 # POSIX will say in a future version that running "rm -f" with no argument 537 # is OK; and we want to be able to make that assumption in our Makefile 538 # recipes. So use an aggressive probe to check that the usage we want is 539 # actually supported "in the wild" to an acceptable degree. 540 # See automake bug#10828. 541 # To make any issue more visible, cause the running configure to be aborted 542 # by default if the 'rm' program in use doesn't match our expectations; the 543 # user can still override this though. 544 if rm -f && rm -fr && rm -rf; then : OK; else 545 cat >&2 <<'END' 546 Oops! 547 548 Your 'rm' program seems unable to run without file operands specified 549 on the command line, even when the '-f' option is present. This is contrary 550 to the behaviour of most rm programs out there, and not conforming with 551 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 552 553 Please tell bug-automake@gnu.org about your system, including the value 554 of your $PATH and any error possibly output before this message. This 555 can help us improve future automake versions. 556 557 END 558 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 559 echo 'Configuration will proceed anyway, since you have set the' >&2 560 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 561 echo >&2 562 else 563 cat >&2 <<'END' 564 Aborting the configuration process, to ensure you take notice of the issue. 565 566 You can download and install GNU coreutils to get an 'rm' implementation 567 that behaves properly: <http://www.gnu.org/software/coreutils/>. 568 569 If you want to complete the configuration process using your problematic 570 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 571 to "yes", and re-run configure. 572 573 END 574 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 575 fi 576 fi]) 577 578 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 521 579 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 522 580 dnl mangled by Autoconf and run in a shell conditional statement. 523 581 m4_define([_AC_COMPILER_EXEEXT], 524 582 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 525 526 583 527 584 # When config.status generates a header, we must update the stamp-h file. … … 546 603 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 547 604 548 # Copyright (C) 2001 , 2003, 2005, 2008Free Software Foundation, Inc.605 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 549 606 # 550 607 # This file is free software; the Free Software Foundation … … 565 622 esac 566 623 fi 567 AC_SUBST(install_sh)]) 568 569 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. 570 # 571 # This file is free software; the Free Software Foundation 572 # gives unlimited permission to copy and/or distribute it, 573 # with or without modifications, as long as this notice is preserved. 574 575 # serial 2 624 AC_SUBST([install_sh])]) 625 626 # Copyright (C) 2003-2013 Free Software Foundation, Inc. 627 # 628 # This file is free software; the Free Software Foundation 629 # gives unlimited permission to copy and/or distribute it, 630 # with or without modifications, as long as this notice is preserved. 576 631 577 632 # Check whether the underlying file-system supports filenames … … 590 645 # Check to see how 'make' treats includes. -*- Autoconf -*- 591 646 592 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 593 # 594 # This file is free software; the Free Software Foundation 595 # gives unlimited permission to copy and/or distribute it, 596 # with or without modifications, as long as this notice is preserved. 597 598 # serial 4 647 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 648 # 649 # This file is free software; the Free Software Foundation 650 # gives unlimited permission to copy and/or distribute it, 651 # with or without modifications, as long as this notice is preserved. 599 652 600 653 # AM_MAKE_INCLUDE() … … 615 668 # First try GNU make style include. 616 669 echo "include confinc" > confmf 617 # Ignore all kinds of additional output from `make'.670 # Ignore all kinds of additional output from 'make'. 618 671 case `$am_make -s -f confmf 2> /dev/null` in #( 619 672 *the\ am__doit\ target*) … … 642 695 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 643 696 644 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 645 # Free Software Foundation, Inc. 646 # 647 # This file is free software; the Free Software Foundation 648 # gives unlimited permission to copy and/or distribute it, 649 # with or without modifications, as long as this notice is preserved. 650 651 # serial 6 697 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 698 # 699 # This file is free software; the Free Software Foundation 700 # gives unlimited permission to copy and/or distribute it, 701 # with or without modifications, as long as this notice is preserved. 652 702 653 703 # AM_MISSING_PROG(NAME, PROGRAM) … … 658 708 AC_SUBST($1)]) 659 709 660 661 710 # AM_MISSING_HAS_RUN 662 711 # ------------------ 663 # Define MISSING if not defined so far and test if it supports --run.664 # If it does, set am_missing_run to use it, otherwise, to nothing.712 # Define MISSING if not defined so far and test if it is modern enough. 713 # If it is, set am_missing_run to use it, otherwise, to nothing. 665 714 AC_DEFUN([AM_MISSING_HAS_RUN], 666 715 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl … … 675 724 fi 676 725 # Use eval to expand $SHELL 677 if eval "$MISSING -- run true"; then678 am_missing_run="$MISSING --run"726 if eval "$MISSING --is-lightweight"; then 727 am_missing_run="$MISSING " 679 728 else 680 729 am_missing_run= 681 AC_MSG_WARN([ `missing' script is too old or missing])730 AC_MSG_WARN(['missing' script is too old or missing]) 682 731 fi 683 732 ]) 684 733 685 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.686 #687 # This file is free software; the Free Software Foundation688 # gives unlimited permission to copy and/or distribute it,689 # with or without modifications, as long as this notice is preserved.690 691 # AM_PROG_MKDIR_P692 # ---------------693 # Check for `mkdir -p'.694 AC_DEFUN([AM_PROG_MKDIR_P],695 [AC_PREREQ([2.60])dnl696 AC_REQUIRE([AC_PROG_MKDIR_P])dnl697 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,698 dnl while keeping a definition of mkdir_p for backward compatibility.699 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.700 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of701 dnl Makefile.ins that do not define MKDIR_P, so we do our own702 dnl adjustment using top_builddir (which is defined more often than703 dnl MKDIR_P).704 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl705 case $mkdir_p in706 [[\\/$]]* | ?:[[\\/]]*) ;;707 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;708 esac709 ])710 711 734 # Helper functions for option handling. -*- Autoconf -*- 712 735 713 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 714 # 715 # This file is free software; the Free Software Foundation 716 # gives unlimited permission to copy and/or distribute it, 717 # with or without modifications, as long as this notice is preserved. 718 719 # serial 4 736 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 737 # 738 # This file is free software; the Free Software Foundation 739 # gives unlimited permission to copy and/or distribute it, 740 # with or without modifications, as long as this notice is preserved. 720 741 721 742 # _AM_MANGLE_OPTION(NAME) … … 725 746 726 747 # _AM_SET_OPTION(NAME) 727 # -------------------- ----------748 # -------------------- 728 749 # Set option NAME. Presently that only means defining a flag for this option. 729 750 AC_DEFUN([_AM_SET_OPTION], 730 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])751 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 731 752 732 753 # _AM_SET_OPTIONS(OPTIONS) 733 # ------------------------ ----------754 # ------------------------ 734 755 # OPTIONS is a space-separated list of Automake options. 735 756 AC_DEFUN([_AM_SET_OPTIONS], … … 742 763 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 743 764 744 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 765 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 766 # 767 # This file is free software; the Free Software Foundation 768 # gives unlimited permission to copy and/or distribute it, 769 # with or without modifications, as long as this notice is preserved. 770 771 # _AM_PROG_CC_C_O 772 # --------------- 773 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 774 # to automatically call this. 775 AC_DEFUN([_AM_PROG_CC_C_O], 776 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 777 AC_REQUIRE_AUX_FILE([compile])dnl 778 AC_LANG_PUSH([C])dnl 779 AC_CACHE_CHECK( 780 [whether $CC understands -c and -o together], 781 [am_cv_prog_cc_c_o], 782 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 783 # Make sure it works both with $CC and with simple cc. 784 # Following AC_PROG_CC_C_O, we do the test twice because some 785 # compilers refuse to overwrite an existing .o file with -o, 786 # though they will create one. 787 am_cv_prog_cc_c_o=yes 788 for am_i in 1 2; do 789 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 790 && test -f conftest2.$ac_objext; then 791 : OK 792 else 793 am_cv_prog_cc_c_o=no 794 break 795 fi 796 done 797 rm -f core conftest* 798 unset am_i]) 799 if test "$am_cv_prog_cc_c_o" != yes; then 800 # Losing compiler, so override with the script. 801 # FIXME: It is wrong to rewrite CC. 802 # But if we don't then we get into trouble of one sort or another. 803 # A longer-term fix would be to have automake use am__CC in this case, 804 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 805 CC="$am_aux_dir/compile $CC" 806 fi 807 AC_LANG_POP([C])]) 808 809 # For backward compatibility. 810 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 811 812 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 745 813 # 746 814 # This file is free software; the Free Software Foundation … … 761 829 # Check to make sure that the build environment is sane. -*- Autoconf -*- 762 830 763 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 764 # Free Software Foundation, Inc. 765 # 766 # This file is free software; the Free Software Foundation 767 # gives unlimited permission to copy and/or distribute it, 768 # with or without modifications, as long as this notice is preserved. 769 770 # serial 5 831 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 832 # 833 # This file is free software; the Free Software Foundation 834 # gives unlimited permission to copy and/or distribute it, 835 # with or without modifications, as long as this notice is preserved. 771 836 772 837 # AM_SANITY_CHECK … … 774 839 AC_DEFUN([AM_SANITY_CHECK], 775 840 [AC_MSG_CHECKING([whether build environment is sane]) 776 # Just in case777 sleep 1778 echo timestamp > conftest.file779 841 # Reject unsafe characters in $srcdir or the absolute working directory 780 842 # name. Accept space and tab only in the latter. … … 787 849 case $srcdir in 788 850 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 789 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;851 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 790 852 esac 791 853 792 # Do `set' in a subshell so we don't clobber the current shell's854 # Do 'set' in a subshell so we don't clobber the current shell's 793 855 # arguments. Must try -L first in case configure is actually a 794 856 # symlink; some systems play weird games with the mod time of symlinks … … 796 858 # directory). 797 859 if ( 798 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 799 if test "$[*]" = "X"; then 800 # -L didn't work. 801 set X `ls -t "$srcdir/configure" conftest.file` 802 fi 803 rm -f conftest.file 804 if test "$[*]" != "X $srcdir/configure conftest.file" \ 805 && test "$[*]" != "X conftest.file $srcdir/configure"; then 806 807 # If neither matched, then we have a broken ls. This can happen 808 # if, for instance, CONFIG_SHELL is bash and it inherits a 809 # broken ls alias from the environment. This has actually 810 # happened. Such a system could not be considered "sane". 811 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 812 alias in your environment]) 813 fi 814 860 am_has_slept=no 861 for am_try in 1 2; do 862 echo "timestamp, slept: $am_has_slept" > conftest.file 863 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 864 if test "$[*]" = "X"; then 865 # -L didn't work. 866 set X `ls -t "$srcdir/configure" conftest.file` 867 fi 868 if test "$[*]" != "X $srcdir/configure conftest.file" \ 869 && test "$[*]" != "X conftest.file $srcdir/configure"; then 870 871 # If neither matched, then we have a broken ls. This can happen 872 # if, for instance, CONFIG_SHELL is bash and it inherits a 873 # broken ls alias from the environment. This has actually 874 # happened. Such a system could not be considered "sane". 875 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 876 alias in your environment]) 877 fi 878 if test "$[2]" = conftest.file || test $am_try -eq 2; then 879 break 880 fi 881 # Just in case. 882 sleep 1 883 am_has_slept=yes 884 done 815 885 test "$[2]" = conftest.file 816 886 ) … … 822 892 Check your system clock]) 823 893 fi 824 AC_MSG_RESULT(yes)]) 825 826 # Copyright (C) 2009 Free Software Foundation, Inc. 827 # 828 # This file is free software; the Free Software Foundation 829 # gives unlimited permission to copy and/or distribute it, 830 # with or without modifications, as long as this notice is preserved. 831 832 # serial 1 894 AC_MSG_RESULT([yes]) 895 # If we didn't sleep, we still need to ensure time stamps of config.status and 896 # generated files are strictly newer. 897 am_sleep_pid= 898 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 899 ( sleep 1 ) & 900 am_sleep_pid=$! 901 fi 902 AC_CONFIG_COMMANDS_PRE( 903 [AC_MSG_CHECKING([that generated files are newer than configure]) 904 if test -n "$am_sleep_pid"; then 905 # Hide warnings about reused PIDs. 906 wait $am_sleep_pid 2>/dev/null 907 fi 908 AC_MSG_RESULT([done])]) 909 rm -f conftest.file 910 ]) 911 912 # Copyright (C) 2009-2013 Free Software Foundation, Inc. 913 # 914 # This file is free software; the Free Software Foundation 915 # gives unlimited permission to copy and/or distribute it, 916 # with or without modifications, as long as this notice is preserved. 833 917 834 918 # AM_SILENT_RULES([DEFAULT]) 835 919 # -------------------------- 836 920 # Enable less verbose build rules; with the default set to DEFAULT 837 # ( `yes' being less verbose, `no'or empty being verbose).921 # ("yes" being less verbose, "no" or empty being verbose). 838 922 AC_DEFUN([AM_SILENT_RULES], 839 [AC_ARG_ENABLE([silent-rules], 840 [ --enable-silent-rules less verbose build output (undo: `make V=1') 841 --disable-silent-rules verbose build output (undo: `make V=0')]) 842 case $enable_silent_rules in 843 yes) AM_DEFAULT_VERBOSITY=0;; 844 no) AM_DEFAULT_VERBOSITY=1;; 845 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 923 [AC_ARG_ENABLE([silent-rules], [dnl 924 AS_HELP_STRING( 925 [--enable-silent-rules], 926 [less verbose build output (undo: "make V=1")]) 927 AS_HELP_STRING( 928 [--disable-silent-rules], 929 [verbose build output (undo: "make V=0")])dnl 930 ]) 931 case $enable_silent_rules in @%:@ ((( 932 yes) AM_DEFAULT_VERBOSITY=0;; 933 no) AM_DEFAULT_VERBOSITY=1;; 934 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 846 935 esac 936 dnl 937 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 938 dnl do not support nested variable expansions. 939 dnl See automake bug#9928 and bug#10237. 940 am_make=${MAKE-make} 941 AC_CACHE_CHECK([whether $am_make supports nested variables], 942 [am_cv_make_support_nested_variables], 943 [if AS_ECHO([['TRUE=$(BAR$(V)) 944 BAR0=false 945 BAR1=true 946 V=1 947 am__doit: 948 @$(TRUE) 949 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 950 am_cv_make_support_nested_variables=yes 951 else 952 am_cv_make_support_nested_variables=no 953 fi]) 954 if test $am_cv_make_support_nested_variables = yes; then 955 dnl Using '$V' instead of '$(V)' breaks IRIX make. 956 AM_V='$(V)' 957 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 958 else 959 AM_V=$AM_DEFAULT_VERBOSITY 960 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 961 fi 962 AC_SUBST([AM_V])dnl 963 AM_SUBST_NOTMAKE([AM_V])dnl 964 AC_SUBST([AM_DEFAULT_V])dnl 965 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 847 966 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 848 967 AM_BACKSLASH='\' … … 851 970 ]) 852 971 853 # Copyright (C) 2001 , 2003, 2005Free Software Foundation, Inc.972 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 854 973 # 855 974 # This file is free software; the Free Software Foundation … … 859 978 # AM_PROG_INSTALL_STRIP 860 979 # --------------------- 861 # One issue with vendor `install' (even GNU) is that you can't980 # One issue with vendor 'install' (even GNU) is that you can't 862 981 # specify the program used to strip binaries. This is especially 863 982 # annoying in cross-compiling environments, where the build's strip 864 983 # is unlikely to handle the host's binaries. 865 984 # Fortunately install-sh will honor a STRIPPROG variable, so we 866 # always use install-sh in `make install-strip', and initialize985 # always use install-sh in "make install-strip", and initialize 867 986 # STRIPPROG with the value of the STRIP variable (set by the user). 868 987 AC_DEFUN([AM_PROG_INSTALL_STRIP], 869 988 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 870 # Installed binaries are usually stripped using `strip' when the user871 # run `make install-strip'. However `strip' might not be the right989 # Installed binaries are usually stripped using 'strip' when the user 990 # run "make install-strip". However 'strip' might not be the right 872 991 # tool to use in cross-compilation environments, therefore Automake 873 # will honor the `STRIP' environment variable to overrule this program.874 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.992 # will honor the 'STRIP' environment variable to overrule this program. 993 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 875 994 if test "$cross_compiling" != no; then 876 995 AC_CHECK_TOOL([STRIP], [strip], :) … … 879 998 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 880 999 881 # Copyright (C) 2006, 2008 Free Software Foundation, Inc. 882 # 883 # This file is free software; the Free Software Foundation 884 # gives unlimited permission to copy and/or distribute it, 885 # with or without modifications, as long as this notice is preserved. 886 887 # serial 2 1000 # Copyright (C) 2006-2013 Free Software Foundation, Inc. 1001 # 1002 # This file is free software; the Free Software Foundation 1003 # gives unlimited permission to copy and/or distribute it, 1004 # with or without modifications, as long as this notice is preserved. 888 1005 889 1006 # _AM_SUBST_NOTMAKE(VARIABLE) … … 894 1011 895 1012 # AM_SUBST_NOTMAKE(VARIABLE) 896 # -------------------------- -1013 # -------------------------- 897 1014 # Public sister of _AM_SUBST_NOTMAKE. 898 1015 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) … … 900 1017 # Check how to create a tarball. -*- Autoconf -*- 901 1018 902 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. 903 # 904 # This file is free software; the Free Software Foundation 905 # gives unlimited permission to copy and/or distribute it, 906 # with or without modifications, as long as this notice is preserved. 907 908 # serial 2 1019 # Copyright (C) 2004-2013 Free Software Foundation, Inc. 1020 # 1021 # This file is free software; the Free Software Foundation 1022 # gives unlimited permission to copy and/or distribute it, 1023 # with or without modifications, as long as this notice is preserved. 909 1024 910 1025 # _AM_PROG_TAR(FORMAT) 911 1026 # -------------------- 912 1027 # Check how to create a tarball in format FORMAT. 913 # FORMAT should be one of `v7', `ustar', or `pax'.1028 # FORMAT should be one of 'v7', 'ustar', or 'pax'. 914 1029 # 915 1030 # Substitute a variable $(am__tar) that is a command … … 921 1036 # a tarball read from stdin. 922 1037 # $(am__untar) < result.tar 1038 # 923 1039 AC_DEFUN([_AM_PROG_TAR], 924 [# Always define AMTAR for backward compatibility. 925 AM_MISSING_PROG([AMTAR], [tar]) 1040 [# Always define AMTAR for backward compatibility. Yes, it's still used 1041 # in the wild :-( We should find a proper way to deprecate it ... 1042 AC_SUBST([AMTAR], ['$${TAR-tar}']) 1043 1044 # We'll loop over all known methods to create a tar archive until one works. 1045 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1046 926 1047 m4_if([$1], [v7], 927 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 928 [m4_case([$1], [ustar],, [pax],, 929 [m4_fatal([Unknown tar format])]) 930 AC_MSG_CHECKING([how to create a $1 tar archive]) 931 # Loop over all known methods to create a tar archive until one works. 932 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 933 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 934 # Do not fold the above two line into one, because Tru64 sh and 935 # Solaris sh will not grok spaces in the rhs of `-'. 936 for _am_tool in $_am_tools 937 do 938 case $_am_tool in 939 gnutar) 940 for _am_tar in tar gnutar gtar; 941 do 942 AM_RUN_LOG([$_am_tar --version]) && break 943 done 944 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 945 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 946 am__untar="$_am_tar -xf -" 947 ;; 948 plaintar) 949 # Must skip GNU tar: if it does not support --format= it doesn't create 950 # ustar tarball either. 951 (tar --version) >/dev/null 2>&1 && continue 952 am__tar='tar chf - "$$tardir"' 953 am__tar_='tar chf - "$tardir"' 954 am__untar='tar xf -' 955 ;; 956 pax) 957 am__tar='pax -L -x $1 -w "$$tardir"' 958 am__tar_='pax -L -x $1 -w "$tardir"' 959 am__untar='pax -r' 960 ;; 961 cpio) 962 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 963 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 964 am__untar='cpio -i -H $1 -d' 965 ;; 966 none) 967 am__tar=false 968 am__tar_=false 969 am__untar=false 970 ;; 971 esac 972 973 # If the value was cached, stop now. We just wanted to have am__tar 974 # and am__untar set. 975 test -n "${am_cv_prog_tar_$1}" && break 976 977 # tar/untar a dummy directory, and stop if the command works 1048 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1049 1050 [m4_case([$1], 1051 [ustar], 1052 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1053 # There is notably a 21 bits limit for the UID and the GID. In fact, 1054 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1055 # and bug#13588). 1056 am_max_uid=2097151 # 2^21 - 1 1057 am_max_gid=$am_max_uid 1058 # The $UID and $GID variables are not portable, so we need to resort 1059 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1060 # below are definitely unexpected, so allow the users to see them 1061 # (that is, avoid stderr redirection). 1062 am_uid=`id -u || echo unknown` 1063 am_gid=`id -g || echo unknown` 1064 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1065 if test $am_uid -le $am_max_uid; then 1066 AC_MSG_RESULT([yes]) 1067 else 1068 AC_MSG_RESULT([no]) 1069 _am_tools=none 1070 fi 1071 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1072 if test $am_gid -le $am_max_gid; then 1073 AC_MSG_RESULT([yes]) 1074 else 1075 AC_MSG_RESULT([no]) 1076 _am_tools=none 1077 fi], 1078 1079 [pax], 1080 [], 1081 1082 [m4_fatal([Unknown tar format])]) 1083 1084 AC_MSG_CHECKING([how to create a $1 tar archive]) 1085 1086 # Go ahead even if we have the value already cached. We do so because we 1087 # need to set the values for the 'am__tar' and 'am__untar' variables. 1088 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1089 1090 for _am_tool in $_am_tools; do 1091 case $_am_tool in 1092 gnutar) 1093 for _am_tar in tar gnutar gtar; do 1094 AM_RUN_LOG([$_am_tar --version]) && break 1095 done 1096 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1097 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1098 am__untar="$_am_tar -xf -" 1099 ;; 1100 plaintar) 1101 # Must skip GNU tar: if it does not support --format= it doesn't create 1102 # ustar tarball either. 1103 (tar --version) >/dev/null 2>&1 && continue 1104 am__tar='tar chf - "$$tardir"' 1105 am__tar_='tar chf - "$tardir"' 1106 am__untar='tar xf -' 1107 ;; 1108 pax) 1109 am__tar='pax -L -x $1 -w "$$tardir"' 1110 am__tar_='pax -L -x $1 -w "$tardir"' 1111 am__untar='pax -r' 1112 ;; 1113 cpio) 1114 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1115 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1116 am__untar='cpio -i -H $1 -d' 1117 ;; 1118 none) 1119 am__tar=false 1120 am__tar_=false 1121 am__untar=false 1122 ;; 1123 esac 1124 1125 # If the value was cached, stop now. We just wanted to have am__tar 1126 # and am__untar set. 1127 test -n "${am_cv_prog_tar_$1}" && break 1128 1129 # tar/untar a dummy directory, and stop if the command works. 1130 rm -rf conftest.dir 1131 mkdir conftest.dir 1132 echo GrepMe > conftest.dir/file 1133 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1134 rm -rf conftest.dir 1135 if test -s conftest.tar; then 1136 AM_RUN_LOG([$am__untar <conftest.tar]) 1137 AM_RUN_LOG([cat conftest.dir/file]) 1138 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1139 fi 1140 done 978 1141 rm -rf conftest.dir 979 mkdir conftest.dir 980 echo GrepMe > conftest.dir/file 981 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 982 rm -rf conftest.dir 983 if test -s conftest.tar; then 984 AM_RUN_LOG([$am__untar <conftest.tar]) 985 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 986 fi 987 done 988 rm -rf conftest.dir 989 990 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 991 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 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])]) 1145 992 1146 AC_SUBST([am__tar]) 993 1147 AC_SUBST([am__untar]) … … 998 1152 m4_include([am/sysdep.m4]) 999 1153 m4_include([m4/00gnulib.m4]) 1154 m4_include([m4/absolute-header.m4]) 1000 1155 m4_include([m4/alloca.m4]) 1001 m4_include([m4/argmatch.m4])1002 1156 m4_include([m4/argp.m4]) 1003 1157 m4_include([m4/bison.m4]) … … 1007 1161 m4_include([m4/close-stream.m4]) 1008 1162 m4_include([m4/close.m4]) 1163 m4_include([m4/closedir.m4]) 1009 1164 m4_include([m4/closeout.m4]) 1010 1165 m4_include([m4/codeset.m4]) 1166 m4_include([m4/configmake.m4]) 1011 1167 m4_include([m4/d-ino.m4]) 1012 1168 m4_include([m4/dirent-safer.m4]) … … 1014 1170 m4_include([m4/dirfd.m4]) 1015 1171 m4_include([m4/dirname.m4]) 1016 m4_include([m4/dos.m4])1017 1172 m4_include([m4/double-slash-root.m4]) 1173 m4_include([m4/dup.m4]) 1018 1174 m4_include([m4/dup2.m4]) 1019 1175 m4_include([m4/eealloc.m4]) … … 1021 1177 m4_include([m4/errno_h.m4]) 1022 1178 m4_include([m4/error.m4]) 1179 m4_include([m4/exponentd.m4]) 1023 1180 m4_include([m4/extensions.m4]) 1181 m4_include([m4/extern-inline.m4]) 1024 1182 m4_include([m4/fchdir.m4]) 1025 m4_include([m4/fclose.m4])1026 1183 m4_include([m4/fcntl-o.m4]) 1027 1184 m4_include([m4/fcntl.m4]) … … 1029 1186 m4_include([m4/fdopendir.m4]) 1030 1187 m4_include([m4/fileblocks.m4]) 1188 m4_include([m4/filenamecat.m4]) 1031 1189 m4_include([m4/float_h.m4]) 1032 1190 m4_include([m4/fnmatch.m4]) 1033 1191 m4_include([m4/fpending.m4]) 1192 m4_include([m4/fseek.m4]) 1034 1193 m4_include([m4/fseeko.m4]) 1194 m4_include([m4/fstat.m4]) 1195 m4_include([m4/fstatat.m4]) 1035 1196 m4_include([m4/getcwd-abort-bug.m4]) 1036 1197 m4_include([m4/getcwd-path-max.m4]) 1037 1198 m4_include([m4/getcwd.m4]) 1038 m4_include([m4/getd ate.m4])1199 m4_include([m4/getdelim.m4]) 1039 1200 m4_include([m4/getdtablesize.m4]) 1201 m4_include([m4/getline.m4]) 1040 1202 m4_include([m4/getopt.m4]) 1041 1203 m4_include([m4/gettext.m4]) … … 1045 1207 m4_include([m4/gnulib-common.m4]) 1046 1208 m4_include([m4/gnulib-comp.m4]) 1047 m4_include([m4/hash.m4])1048 1209 m4_include([m4/iconv.m4]) 1049 1210 m4_include([m4/include_next.m4]) 1050 m4_include([m4/inline.m4])1051 1211 m4_include([m4/intlmacosx.m4]) 1052 1212 m4_include([m4/intmax_t.m4]) … … 1055 1215 m4_include([m4/inttypes.m4]) 1056 1216 m4_include([m4/inttypes_h.m4]) 1217 m4_include([m4/largefile.m4]) 1057 1218 m4_include([m4/lchown.m4]) 1058 1219 m4_include([m4/lib-ld.m4]) … … 1075 1236 m4_include([m4/mempcpy.m4]) 1076 1237 m4_include([m4/memrchr.m4]) 1077 m4_include([m4/mkdir.m4])1078 1238 m4_include([m4/mktime.m4]) 1079 1239 m4_include([m4/mmap-anon.m4]) 1080 1240 m4_include([m4/mode_t.m4]) 1241 m4_include([m4/msvc-inval.m4]) 1242 m4_include([m4/msvc-nothrow.m4]) 1081 1243 m4_include([m4/multiarch.m4]) 1082 1244 m4_include([m4/nls.m4]) 1245 m4_include([m4/nocrash.m4]) 1246 m4_include([m4/obstack.m4]) 1247 m4_include([m4/off_t.m4]) 1083 1248 m4_include([m4/open.m4]) 1084 1249 m4_include([m4/openat.m4]) 1250 m4_include([m4/opendir.m4]) 1251 m4_include([m4/parse-datetime.m4]) 1252 m4_include([m4/pathmax.m4]) 1085 1253 m4_include([m4/paxutils.m4]) 1086 1254 m4_include([m4/po.m4]) … … 1089 1257 m4_include([m4/quote.m4]) 1090 1258 m4_include([m4/quotearg.m4]) 1259 m4_include([m4/raise.m4]) 1091 1260 m4_include([m4/rawmemchr.m4]) 1261 m4_include([m4/read.m4]) 1262 m4_include([m4/readdir.m4]) 1092 1263 m4_include([m4/realloc.m4]) 1093 m4_include([m4/r mdir.m4])1264 m4_include([m4/rewinddir.m4]) 1094 1265 m4_include([m4/rmt.m4]) 1095 1266 m4_include([m4/rtapelib.m4]) … … 1099 1270 m4_include([m4/savedir.m4]) 1100 1271 m4_include([m4/setenv.m4]) 1272 m4_include([m4/signal_h.m4]) 1101 1273 m4_include([m4/size_max.m4]) 1102 1274 m4_include([m4/sleep.m4]) … … 1104 1276 m4_include([m4/stat-time.m4]) 1105 1277 m4_include([m4/stat.m4]) 1278 m4_include([m4/stdalign.m4]) 1106 1279 m4_include([m4/stdarg.m4]) 1107 1280 m4_include([m4/stdbool.m4]) … … 1121 1294 m4_include([m4/strnlen.m4]) 1122 1295 m4_include([m4/strtol.m4]) 1296 m4_include([m4/sys_socket_h.m4]) 1123 1297 m4_include([m4/sys_stat_h.m4]) 1124 1298 m4_include([m4/sys_time_h.m4]) 1299 m4_include([m4/sys_types_h.m4]) 1125 1300 m4_include([m4/sysexits.m4]) 1126 1301 m4_include([m4/system.m4]) … … 1131 1306 m4_include([m4/unistd-safer.m4]) 1132 1307 m4_include([m4/unistd_h.m4]) 1133 m4_include([m4/unlink.m4])1134 1308 m4_include([m4/unlocked-io.m4]) 1135 1309 m4_include([m4/utimbuf.m4]) 1136 1310 m4_include([m4/utimens.m4]) 1311 m4_include([m4/utimensat.m4]) 1137 1312 m4_include([m4/utimes.m4]) 1138 1313 m4_include([m4/vasnprintf.m4])
Note:
See TracChangeset
for help on using the changeset viewer.