1# generated automatically by aclocal 1.11.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. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 17[m4_warning([this file was generated for autoconf 2.68. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# serial 9 -*- Autoconf -*- 23# Enable extensions on systems that normally disable them. 24 25# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. 26# This file is free software; the Free Software Foundation 27# gives unlimited permission to copy and/or distribute it, 28# with or without modifications, as long as this notice is preserved. 29 30# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS 31# Autoconf. Perhaps we can remove this once we can assume Autoconf 32# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly 33# enough in this area it's likely we'll need to redefine 34# AC_USE_SYSTEM_EXTENSIONS for quite some time. 35 36# If autoconf reports a warning 37# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 38# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 39# the fix is 40# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked 41# but always AC_REQUIREd, 42# 2) to ensure that for each occurrence of 43# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 44# or 45# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 46# the corresponding gnulib module description has 'extensions' among 47# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS 48# invocation occurs in gl_EARLY, not in gl_INIT. 49 50# AC_USE_SYSTEM_EXTENSIONS 51# ------------------------ 52# Enable extensions on systems that normally disable them, 53# typically due to standards-conformance issues. 54# Remember that #undef in AH_VERBATIM gets replaced with #define by 55# AC_DEFINE. The goal here is to define all known feature-enabling 56# macros, then, if reports of conflicts are made, disable macros that 57# cause problems on some platforms (such as __EXTENSIONS__). 58AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], 59[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 60AC_BEFORE([$0], [AC_RUN_IFELSE])dnl 61 62 AC_REQUIRE([AC_CANONICAL_HOST]) 63 64 AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 65 if test "$MINIX" = yes; then 66 AC_DEFINE([_POSIX_SOURCE], [1], 67 [Define to 1 if you need to in order for `stat' and other 68 things to work.]) 69 AC_DEFINE([_POSIX_1_SOURCE], [2], 70 [Define to 2 if the system does not provide POSIX.1 features 71 except with this defined.]) 72 AC_DEFINE([_MINIX], [1], 73 [Define to 1 if on MINIX.]) 74 fi 75 76 dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, 77 dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already 78 dnl provided. 79 case "$host_os" in 80 hpux*) 81 AC_DEFINE([_XOPEN_SOURCE], [500], 82 [Define to 500 only on HP-UX.]) 83 ;; 84 esac 85 86 AH_VERBATIM([__EXTENSIONS__], 87[/* Enable extensions on AIX 3, Interix. */ 88#ifndef _ALL_SOURCE 89# undef _ALL_SOURCE 90#endif 91/* Enable GNU extensions on systems that have them. */ 92#ifndef _GNU_SOURCE 93# undef _GNU_SOURCE 94#endif 95/* Enable threading extensions on Solaris. */ 96#ifndef _POSIX_PTHREAD_SEMANTICS 97# undef _POSIX_PTHREAD_SEMANTICS 98#endif 99/* Enable extensions on HP NonStop. */ 100#ifndef _TANDEM_SOURCE 101# undef _TANDEM_SOURCE 102#endif 103/* Enable general extensions on Solaris. */ 104#ifndef __EXTENSIONS__ 105# undef __EXTENSIONS__ 106#endif 107]) 108 AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 109 [ac_cv_safe_to_define___extensions__], 110 [AC_COMPILE_IFELSE( 111 [AC_LANG_PROGRAM([[ 112# define __EXTENSIONS__ 1 113 ]AC_INCLUDES_DEFAULT])], 114 [ac_cv_safe_to_define___extensions__=yes], 115 [ac_cv_safe_to_define___extensions__=no])]) 116 test $ac_cv_safe_to_define___extensions__ = yes && 117 AC_DEFINE([__EXTENSIONS__]) 118 AC_DEFINE([_ALL_SOURCE]) 119 AC_DEFINE([_GNU_SOURCE]) 120 AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 121 AC_DEFINE([_TANDEM_SOURCE]) 122])# AC_USE_SYSTEM_EXTENSIONS 123 124# gl_USE_SYSTEM_EXTENSIONS 125# ------------------------ 126# Enable extensions on systems that normally disable them, 127# typically due to standards-conformance issues. 128AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], 129[ 130 dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. 131 dnl gnulib does not need it. But if it gets required by third-party macros 132 dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a 133 dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". 134 dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, 135 dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. 136 AC_REQUIRE([AC_GNU_SOURCE]) 137 138 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 139]) 140 141# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 142# 143# This file is free software; the Free Software Foundation 144# gives unlimited permission to copy and/or distribute it, 145# with or without modifications, as long as this notice is preserved. 146 147# AM_AUTOMAKE_VERSION(VERSION) 148# ---------------------------- 149# Automake X.Y traces this macro to ensure aclocal.m4 has been 150# generated from the m4 files accompanying Automake X.Y. 151# (This private macro should not be called outside this file.) 152AC_DEFUN([AM_AUTOMAKE_VERSION], 153[am__api_version='1.11' 154dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 155dnl require some minimum version. Point them to the right macro. 156m4_if([$1], [1.11.1], [], 157 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 158]) 159 160# _AM_AUTOCONF_VERSION(VERSION) 161# ----------------------------- 162# aclocal traces this macro to find the Autoconf version. 163# This is a private macro too. Using m4_define simplifies 164# the logic in aclocal, which can simply ignore this definition. 165m4_define([_AM_AUTOCONF_VERSION], []) 166 167# AM_SET_CURRENT_AUTOMAKE_VERSION 168# ------------------------------- 169# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 170# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 171AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 172[AM_AUTOMAKE_VERSION([1.11.1])dnl 173m4_ifndef([AC_AUTOCONF_VERSION], 174 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 175_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 176 177# AM_AUX_DIR_EXPAND -*- Autoconf -*- 178 179# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 180# 181# This file is free software; the Free Software Foundation 182# gives unlimited permission to copy and/or distribute it, 183# with or without modifications, as long as this notice is preserved. 184 185# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 186# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 187# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 188# 189# Of course, Automake must honor this variable whenever it calls a 190# tool from the auxiliary directory. The problem is that $srcdir (and 191# therefore $ac_aux_dir as well) can be either absolute or relative, 192# depending on how configure is run. This is pretty annoying, since 193# it makes $ac_aux_dir quite unusable in subdirectories: in the top 194# source directory, any form will work fine, but in subdirectories a 195# relative path needs to be adjusted first. 196# 197# $ac_aux_dir/missing 198# fails when called from a subdirectory if $ac_aux_dir is relative 199# $top_srcdir/$ac_aux_dir/missing 200# fails if $ac_aux_dir is absolute, 201# fails when called from a subdirectory in a VPATH build with 202# a relative $ac_aux_dir 203# 204# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 205# are both prefixed by $srcdir. In an in-source build this is usually 206# harmless because $srcdir is `.', but things will broke when you 207# start a VPATH build or use an absolute $srcdir. 208# 209# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 210# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 211# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 212# and then we would define $MISSING as 213# MISSING="\${SHELL} $am_aux_dir/missing" 214# This will work as long as MISSING is not called from configure, because 215# unfortunately $(top_srcdir) has no meaning in configure. 216# However there are other variables, like CC, which are often used in 217# configure, and could therefore not use this "fixed" $ac_aux_dir. 218# 219# Another solution, used here, is to always expand $ac_aux_dir to an 220# absolute PATH. The drawback is that using absolute paths prevent a 221# configured tree to be moved without reconfiguration. 222 223AC_DEFUN([AM_AUX_DIR_EXPAND], 224[dnl Rely on autoconf to set up CDPATH properly. 225AC_PREREQ([2.50])dnl 226# expand $ac_aux_dir to an absolute path 227am_aux_dir=`cd $ac_aux_dir && pwd` 228]) 229 230# AM_CONDITIONAL -*- Autoconf -*- 231 232# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 233# Free Software Foundation, Inc. 234# 235# This file is free software; the Free Software Foundation 236# gives unlimited permission to copy and/or distribute it, 237# with or without modifications, as long as this notice is preserved. 238 239# serial 9 240 241# AM_CONDITIONAL(NAME, SHELL-CONDITION) 242# ------------------------------------- 243# Define a conditional. 244AC_DEFUN([AM_CONDITIONAL], 245[AC_PREREQ(2.52)dnl 246 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 247 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 248AC_SUBST([$1_TRUE])dnl 249AC_SUBST([$1_FALSE])dnl 250_AM_SUBST_NOTMAKE([$1_TRUE])dnl 251_AM_SUBST_NOTMAKE([$1_FALSE])dnl 252m4_define([_AM_COND_VALUE_$1], [$2])dnl 253if $2; then 254 $1_TRUE= 255 $1_FALSE='#' 256else 257 $1_TRUE='#' 258 $1_FALSE= 259fi 260AC_CONFIG_COMMANDS_PRE( 261[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 262 AC_MSG_ERROR([[conditional "$1" was never defined. 263Usually this means the macro was only invoked conditionally.]]) 264fi])]) 265 266# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 267# Free Software Foundation, Inc. 268# 269# This file is free software; the Free Software Foundation 270# gives unlimited permission to copy and/or distribute it, 271# with or without modifications, as long as this notice is preserved. 272 273# serial 10 274 275# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 276# written in clear, in which case automake, when reading aclocal.m4, 277# will think it sees a *use*, and therefore will trigger all it's 278# C support machinery. Also note that it means that autoscan, seeing 279# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 280 281 282# _AM_DEPENDENCIES(NAME) 283# ---------------------- 284# See how the compiler implements dependency checking. 285# NAME is "CC", "CXX", "GCJ", or "OBJC". 286# We try a few techniques and use that to set a single cache variable. 287# 288# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 289# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 290# dependency, and given that the user is not expected to run this macro, 291# just rely on AC_PROG_CC. 292AC_DEFUN([_AM_DEPENDENCIES], 293[AC_REQUIRE([AM_SET_DEPDIR])dnl 294AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 295AC_REQUIRE([AM_MAKE_INCLUDE])dnl 296AC_REQUIRE([AM_DEP_TRACK])dnl 297 298ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 299 [$1], CXX, [depcc="$CXX" am_compiler_list=], 300 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 301 [$1], UPC, [depcc="$UPC" am_compiler_list=], 302 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 303 [depcc="$$1" am_compiler_list=]) 304 305AC_CACHE_CHECK([dependency style of $depcc], 306 [am_cv_$1_dependencies_compiler_type], 307[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 308 # We make a subdir and do the tests there. Otherwise we can end up 309 # making bogus files that we don't know about and never remove. For 310 # instance it was reported that on HP-UX the gcc test will end up 311 # making a dummy file named `D' -- because `-MD' means `put the output 312 # in D'. 313 mkdir conftest.dir 314 # Copy depcomp to subdir because otherwise we won't find it if we're 315 # using a relative directory. 316 cp "$am_depcomp" conftest.dir 317 cd conftest.dir 318 # We will build objects and dependencies in a subdirectory because 319 # it helps to detect inapplicable dependency modes. For instance 320 # both Tru64's cc and ICC support -MD to output dependencies as a 321 # side effect of compilation, but ICC will put the dependencies in 322 # the current directory while Tru64 will put them in the object 323 # directory. 324 mkdir sub 325 326 am_cv_$1_dependencies_compiler_type=none 327 if test "$am_compiler_list" = ""; then 328 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 329 fi 330 am__universal=false 331 m4_case([$1], [CC], 332 [case " $depcc " in #( 333 *\ -arch\ *\ -arch\ *) am__universal=true ;; 334 esac], 335 [CXX], 336 [case " $depcc " in #( 337 *\ -arch\ *\ -arch\ *) am__universal=true ;; 338 esac]) 339 340 for depmode in $am_compiler_list; do 341 # Setup a source with many dependencies, because some compilers 342 # like to wrap large dependency lists on column 80 (with \), and 343 # we should not choose a depcomp mode which is confused by this. 344 # 345 # We need to recreate these files for each test, as the compiler may 346 # overwrite some of them when testing with obscure command lines. 347 # This happens at least with the AIX C compiler. 348 : > sub/conftest.c 349 for i in 1 2 3 4 5 6; do 350 echo '#include "conftst'$i'.h"' >> sub/conftest.c 351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 352 # Solaris 8's {/usr,}/bin/sh. 353 touch sub/conftst$i.h 354 done 355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 356 357 # We check with `-c' and `-o' for the sake of the "dashmstdout" 358 # mode. It turns out that the SunPro C++ compiler does not properly 359 # handle `-M -o', and we need to detect this. Also, some Intel 360 # versions had trouble with output in subdirs 361 am__obj=sub/conftest.${OBJEXT-o} 362 am__minus_obj="-o $am__obj" 363 case $depmode in 364 gcc) 365 # This depmode causes a compiler race in universal mode. 366 test "$am__universal" = false || continue 367 ;; 368 nosideeffect) 369 # after this tag, mechanisms are not by side-effect, so they'll 370 # only be used when explicitly requested 371 if test "x$enable_dependency_tracking" = xyes; then 372 continue 373 else 374 break 375 fi 376 ;; 377 msvisualcpp | msvcmsys) 378 # This compiler won't grok `-c -o', but also, the minuso test has 379 # not run yet. These depmodes are late enough in the game, and 380 # so weak that their functioning should not be impacted. 381 am__obj=conftest.${OBJEXT-o} 382 am__minus_obj= 383 ;; 384 none) break ;; 385 esac 386 if depmode=$depmode \ 387 source=sub/conftest.c object=$am__obj \ 388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 390 >/dev/null 2>conftest.err && 391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 395 # icc doesn't choke on unknown options, it will just issue warnings 396 # or remarks (even with -Werror). So we grep stderr for any message 397 # that says an option was ignored or not supported. 398 # When given -MP, icc 7.0 and 7.1 complain thusly: 399 # icc: Command line warning: ignoring option '-M'; no argument required 400 # The diagnosis changed in icc 8.0: 401 # icc: Command line remark: option '-MP' not supported 402 if (grep 'ignoring option' conftest.err || 403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 404 am_cv_$1_dependencies_compiler_type=$depmode 405 break 406 fi 407 fi 408 done 409 410 cd .. 411 rm -rf conftest.dir 412else 413 am_cv_$1_dependencies_compiler_type=none 414fi 415]) 416AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 417AM_CONDITIONAL([am__fastdep$1], [ 418 test "x$enable_dependency_tracking" != xno \ 419 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 420]) 421 422 423# AM_SET_DEPDIR 424# ------------- 425# Choose a directory name for dependency files. 426# This macro is AC_REQUIREd in _AM_DEPENDENCIES 427AC_DEFUN([AM_SET_DEPDIR], 428[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 429AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 430]) 431 432 433# AM_DEP_TRACK 434# ------------ 435AC_DEFUN([AM_DEP_TRACK], 436[AC_ARG_ENABLE(dependency-tracking, 437[ --disable-dependency-tracking speeds up one-time build 438 --enable-dependency-tracking do not reject slow dependency extractors]) 439if test "x$enable_dependency_tracking" != xno; then 440 am_depcomp="$ac_aux_dir/depcomp" 441 AMDEPBACKSLASH='\' 442fi 443AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 444AC_SUBST([AMDEPBACKSLASH])dnl 445_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 446]) 447 448# Generate code to set up dependency tracking. -*- Autoconf -*- 449 450# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 451# Free Software Foundation, Inc. 452# 453# This file is free software; the Free Software Foundation 454# gives unlimited permission to copy and/or distribute it, 455# with or without modifications, as long as this notice is preserved. 456 457#serial 5 458 459# _AM_OUTPUT_DEPENDENCY_COMMANDS 460# ------------------------------ 461AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 462[{ 463 # Autoconf 2.62 quotes --file arguments for eval, but not when files 464 # are listed without --file. Let's play safe and only enable the eval 465 # if we detect the quoting. 466 case $CONFIG_FILES in 467 *\'*) eval set x "$CONFIG_FILES" ;; 468 *) set x $CONFIG_FILES ;; 469 esac 470 shift 471 for mf 472 do 473 # Strip MF so we end up with the name of the file. 474 mf=`echo "$mf" | sed -e 's/:.*$//'` 475 # Check whether this is an Automake generated Makefile or not. 476 # We used to match only the files named `Makefile.in', but 477 # some people rename them; so instead we look at the file content. 478 # Grep'ing the first line is not enough: some people post-process 479 # each Makefile.in and add a new line on top of each file to say so. 480 # Grep'ing the whole file is not good either: AIX grep has a line 481 # limit of 2048, but all sed's we know have understand at least 4000. 482 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 483 dirpart=`AS_DIRNAME("$mf")` 484 else 485 continue 486 fi 487 # Extract the definition of DEPDIR, am__include, and am__quote 488 # from the Makefile without running `make'. 489 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 490 test -z "$DEPDIR" && continue 491 am__include=`sed -n 's/^am__include = //p' < "$mf"` 492 test -z "am__include" && continue 493 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 494 # When using ansi2knr, U may be empty or an underscore; expand it 495 U=`sed -n 's/^U = //p' < "$mf"` 496 # Find all dependency output files, they are included files with 497 # $(DEPDIR) in their names. We invoke sed twice because it is the 498 # simplest approach to changing $(DEPDIR) to its actual value in the 499 # expansion. 500 for file in `sed -n " 501 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 502 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 503 # Make sure the directory exists. 504 test -f "$dirpart/$file" && continue 505 fdir=`AS_DIRNAME(["$file"])` 506 AS_MKDIR_P([$dirpart/$fdir]) 507 # echo "creating $dirpart/$file" 508 echo '# dummy' > "$dirpart/$file" 509 done 510 done 511} 512])# _AM_OUTPUT_DEPENDENCY_COMMANDS 513 514 515# AM_OUTPUT_DEPENDENCY_COMMANDS 516# ----------------------------- 517# This macro should only be invoked once -- use via AC_REQUIRE. 518# 519# This code is only required when automatic dependency tracking 520# is enabled. FIXME. This creates each `.P' file that we will 521# need in order to bootstrap the dependency handling code. 522AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 523[AC_CONFIG_COMMANDS([depfiles], 524 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 525 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 526]) 527 528# Do all the work for Automake. -*- Autoconf -*- 529 530# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 531# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 532# 533# This file is free software; the Free Software Foundation 534# gives unlimited permission to copy and/or distribute it, 535# with or without modifications, as long as this notice is preserved. 536 537# serial 16 538 539# This macro actually does too much. Some checks are only needed if 540# your package does certain things. But this isn't really a big deal. 541 542# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 543# AM_INIT_AUTOMAKE([OPTIONS]) 544# ----------------------------------------------- 545# The call with PACKAGE and VERSION arguments is the old style 546# call (pre autoconf-2.50), which is being phased out. PACKAGE 547# and VERSION should now be passed to AC_INIT and removed from 548# the call to AM_INIT_AUTOMAKE. 549# We support both call styles for the transition. After 550# the next Automake release, Autoconf can make the AC_INIT 551# arguments mandatory, and then we can depend on a new Autoconf 552# release and drop the old call support. 553AC_DEFUN([AM_INIT_AUTOMAKE], 554[AC_PREREQ([2.62])dnl 555dnl Autoconf wants to disallow AM_ names. We explicitly allow 556dnl the ones we care about. 557m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 558AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 559AC_REQUIRE([AC_PROG_INSTALL])dnl 560if test "`cd $srcdir && pwd`" != "`pwd`"; then 561 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 562 # is not polluted with repeated "-I." 563 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 564 # test to see if srcdir already configured 565 if test -f $srcdir/config.status; then 566 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 567 fi 568fi 569 570# test whether we have cygpath 571if test -z "$CYGPATH_W"; then 572 if (cygpath --version) >/dev/null 2>/dev/null; then 573 CYGPATH_W='cygpath -w' 574 else 575 CYGPATH_W=echo 576 fi 577fi 578AC_SUBST([CYGPATH_W]) 579 580# Define the identity of the package. 581dnl Distinguish between old-style and new-style calls. 582m4_ifval([$2], 583[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 584 AC_SUBST([PACKAGE], [$1])dnl 585 AC_SUBST([VERSION], [$2])], 586[_AM_SET_OPTIONS([$1])dnl 587dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 588m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 589 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 590 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 591 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 592 593_AM_IF_OPTION([no-define],, 594[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 595 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 596 597# Some tools Automake needs. 598AC_REQUIRE([AM_SANITY_CHECK])dnl 599AC_REQUIRE([AC_ARG_PROGRAM])dnl 600AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 601AM_MISSING_PROG(AUTOCONF, autoconf) 602AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 603AM_MISSING_PROG(AUTOHEADER, autoheader) 604AM_MISSING_PROG(MAKEINFO, makeinfo) 605AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 606AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 607AC_REQUIRE([AM_PROG_MKDIR_P])dnl 608# We need awk for the "check" target. The system "awk" is bad on 609# some platforms. 610AC_REQUIRE([AC_PROG_AWK])dnl 611AC_REQUIRE([AC_PROG_MAKE_SET])dnl 612AC_REQUIRE([AM_SET_LEADING_DOT])dnl 613_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 614 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 615 [_AM_PROG_TAR([v7])])]) 616_AM_IF_OPTION([no-dependencies],, 617[AC_PROVIDE_IFELSE([AC_PROG_CC], 618 [_AM_DEPENDENCIES(CC)], 619 [define([AC_PROG_CC], 620 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 621AC_PROVIDE_IFELSE([AC_PROG_CXX], 622 [_AM_DEPENDENCIES(CXX)], 623 [define([AC_PROG_CXX], 624 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 625AC_PROVIDE_IFELSE([AC_PROG_OBJC], 626 [_AM_DEPENDENCIES(OBJC)], 627 [define([AC_PROG_OBJC], 628 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 629]) 630_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 631dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 632dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 633dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 634AC_CONFIG_COMMANDS_PRE(dnl 635[m4_provide_if([_AM_COMPILER_EXEEXT], 636 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 637]) 638 639dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 640dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 641dnl mangled by Autoconf and run in a shell conditional statement. 642m4_define([_AC_COMPILER_EXEEXT], 643m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 644 645 646# When config.status generates a header, we must update the stamp-h file. 647# This file resides in the same directory as the config header 648# that is generated. The stamp files are numbered to have different names. 649 650# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 651# loop where config.status creates the headers, so we can generate 652# our stamp files there. 653AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 654[# Compute $1's index in $config_headers. 655_am_arg=$1 656_am_stamp_count=1 657for _am_header in $config_headers :; do 658 case $_am_header in 659 $_am_arg | $_am_arg:* ) 660 break ;; 661 * ) 662 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 663 esac 664done 665echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 666 667# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 668# 669# This file is free software; the Free Software Foundation 670# gives unlimited permission to copy and/or distribute it, 671# with or without modifications, as long as this notice is preserved. 672 673# AM_PROG_INSTALL_SH 674# ------------------ 675# Define $install_sh. 676AC_DEFUN([AM_PROG_INSTALL_SH], 677[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 678if test x"${install_sh}" != xset; then 679 case $am_aux_dir in 680 *\ * | *\ *) 681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 682 *) 683 install_sh="\${SHELL} $am_aux_dir/install-sh" 684 esac 685fi 686AC_SUBST(install_sh)]) 687 688# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 689# 690# This file is free software; the Free Software Foundation 691# gives unlimited permission to copy and/or distribute it, 692# with or without modifications, as long as this notice is preserved. 693 694# serial 2 695 696# Check whether the underlying file-system supports filenames 697# with a leading dot. For instance MS-DOS doesn't. 698AC_DEFUN([AM_SET_LEADING_DOT], 699[rm -rf .tst 2>/dev/null 700mkdir .tst 2>/dev/null 701if test -d .tst; then 702 am__leading_dot=. 703else 704 am__leading_dot=_ 705fi 706rmdir .tst 2>/dev/null 707AC_SUBST([am__leading_dot])]) 708 709# Check to see how 'make' treats includes. -*- Autoconf -*- 710 711# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 712# 713# This file is free software; the Free Software Foundation 714# gives unlimited permission to copy and/or distribute it, 715# with or without modifications, as long as this notice is preserved. 716 717# serial 4 718 719# AM_MAKE_INCLUDE() 720# ----------------- 721# Check to see how make treats includes. 722AC_DEFUN([AM_MAKE_INCLUDE], 723[am_make=${MAKE-make} 724cat > confinc << 'END' 725am__doit: 726 @echo this is the am__doit target 727.PHONY: am__doit 728END 729# If we don't find an include directive, just comment out the code. 730AC_MSG_CHECKING([for style of include used by $am_make]) 731am__include="#" 732am__quote= 733_am_result=none 734# First try GNU make style include. 735echo "include confinc" > confmf 736# Ignore all kinds of additional output from `make'. 737case `$am_make -s -f confmf 2> /dev/null` in #( 738*the\ am__doit\ target*) 739 am__include=include 740 am__quote= 741 _am_result=GNU 742 ;; 743esac 744# Now try BSD make style include. 745if test "$am__include" = "#"; then 746 echo '.include "confinc"' > confmf 747 case `$am_make -s -f confmf 2> /dev/null` in #( 748 *the\ am__doit\ target*) 749 am__include=.include 750 am__quote="\"" 751 _am_result=BSD 752 ;; 753 esac 754fi 755AC_SUBST([am__include]) 756AC_SUBST([am__quote]) 757AC_MSG_RESULT([$_am_result]) 758rm -f confinc confmf 759]) 760 761# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 762# Free Software Foundation, Inc. 763# 764# This file is free software; the Free Software Foundation 765# gives unlimited permission to copy and/or distribute it, 766# with or without modifications, as long as this notice is preserved. 767 768# serial 6 769 770# AM_PROG_CC_C_O 771# -------------- 772# Like AC_PROG_CC_C_O, but changed for automake. 773AC_DEFUN([AM_PROG_CC_C_O], 774[AC_REQUIRE([AC_PROG_CC_C_O])dnl 775AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 776AC_REQUIRE_AUX_FILE([compile])dnl 777# FIXME: we rely on the cache variable name because 778# there is no other way. 779set dummy $CC 780am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 781eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 782if test "$am_t" != yes; then 783 # Losing compiler, so override with the script. 784 # FIXME: It is wrong to rewrite CC. 785 # But if we don't then we get into trouble of one sort or another. 786 # A longer-term fix would be to have automake use am__CC in this case, 787 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 788 CC="$am_aux_dir/compile $CC" 789fi 790dnl Make sure AC_PROG_CC is never called again, or it will override our 791dnl setting of CC. 792m4_define([AC_PROG_CC], 793 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 794]) 795 796# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 797 798# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 799# Free Software Foundation, Inc. 800# 801# This file is free software; the Free Software Foundation 802# gives unlimited permission to copy and/or distribute it, 803# with or without modifications, as long as this notice is preserved. 804 805# serial 6 806 807# AM_MISSING_PROG(NAME, PROGRAM) 808# ------------------------------ 809AC_DEFUN([AM_MISSING_PROG], 810[AC_REQUIRE([AM_MISSING_HAS_RUN]) 811$1=${$1-"${am_missing_run}$2"} 812AC_SUBST($1)]) 813 814 815# AM_MISSING_HAS_RUN 816# ------------------ 817# Define MISSING if not defined so far and test if it supports --run. 818# If it does, set am_missing_run to use it, otherwise, to nothing. 819AC_DEFUN([AM_MISSING_HAS_RUN], 820[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 821AC_REQUIRE_AUX_FILE([missing])dnl 822if test x"${MISSING+set}" != xset; then 823 case $am_aux_dir in 824 *\ * | *\ *) 825 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 826 *) 827 MISSING="\${SHELL} $am_aux_dir/missing" ;; 828 esac 829fi 830# Use eval to expand $SHELL 831if eval "$MISSING --run true"; then 832 am_missing_run="$MISSING --run " 833else 834 am_missing_run= 835 AC_MSG_WARN([`missing' script is too old or missing]) 836fi 837]) 838 839# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 840# 841# This file is free software; the Free Software Foundation 842# gives unlimited permission to copy and/or distribute it, 843# with or without modifications, as long as this notice is preserved. 844 845# AM_PROG_MKDIR_P 846# --------------- 847# Check for `mkdir -p'. 848AC_DEFUN([AM_PROG_MKDIR_P], 849[AC_PREREQ([2.60])dnl 850AC_REQUIRE([AC_PROG_MKDIR_P])dnl 851dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 852dnl while keeping a definition of mkdir_p for backward compatibility. 853dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 854dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 855dnl Makefile.ins that do not define MKDIR_P, so we do our own 856dnl adjustment using top_builddir (which is defined more often than 857dnl MKDIR_P). 858AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 859case $mkdir_p in 860 [[\\/$]]* | ?:[[\\/]]*) ;; 861 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 862esac 863]) 864 865# Helper functions for option handling. -*- Autoconf -*- 866 867# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 868# 869# This file is free software; the Free Software Foundation 870# gives unlimited permission to copy and/or distribute it, 871# with or without modifications, as long as this notice is preserved. 872 873# serial 4 874 875# _AM_MANGLE_OPTION(NAME) 876# ----------------------- 877AC_DEFUN([_AM_MANGLE_OPTION], 878[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 879 880# _AM_SET_OPTION(NAME) 881# ------------------------------ 882# Set option NAME. Presently that only means defining a flag for this option. 883AC_DEFUN([_AM_SET_OPTION], 884[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 885 886# _AM_SET_OPTIONS(OPTIONS) 887# ---------------------------------- 888# OPTIONS is a space-separated list of Automake options. 889AC_DEFUN([_AM_SET_OPTIONS], 890[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 891 892# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 893# ------------------------------------------- 894# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 895AC_DEFUN([_AM_IF_OPTION], 896[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 897 898# Check to make sure that the build environment is sane. -*- Autoconf -*- 899 900# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 901# Free Software Foundation, Inc. 902# 903# This file is free software; the Free Software Foundation 904# gives unlimited permission to copy and/or distribute it, 905# with or without modifications, as long as this notice is preserved. 906 907# serial 5 908 909# AM_SANITY_CHECK 910# --------------- 911AC_DEFUN([AM_SANITY_CHECK], 912[AC_MSG_CHECKING([whether build environment is sane]) 913# Just in case 914sleep 1 915echo timestamp > conftest.file 916# Reject unsafe characters in $srcdir or the absolute working directory 917# name. Accept space and tab only in the latter. 918am_lf=' 919' 920case `pwd` in 921 *[[\\\"\#\$\&\'\`$am_lf]]*) 922 AC_MSG_ERROR([unsafe absolute working directory name]);; 923esac 924case $srcdir in 925 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 926 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 927esac 928 929# Do `set' in a subshell so we don't clobber the current shell's 930# arguments. Must try -L first in case configure is actually a 931# symlink; some systems play weird games with the mod time of symlinks 932# (eg FreeBSD returns the mod time of the symlink's containing 933# directory). 934if ( 935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 936 if test "$[*]" = "X"; then 937 # -L didn't work. 938 set X `ls -t "$srcdir/configure" conftest.file` 939 fi 940 rm -f conftest.file 941 if test "$[*]" != "X $srcdir/configure conftest.file" \ 942 && test "$[*]" != "X conftest.file $srcdir/configure"; then 943 944 # If neither matched, then we have a broken ls. This can happen 945 # if, for instance, CONFIG_SHELL is bash and it inherits a 946 # broken ls alias from the environment. This has actually 947 # happened. Such a system could not be considered "sane". 948 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 949alias in your environment]) 950 fi 951 952 test "$[2]" = conftest.file 953 ) 954then 955 # Ok. 956 : 957else 958 AC_MSG_ERROR([newly created file is older than distributed files! 959Check your system clock]) 960fi 961AC_MSG_RESULT(yes)]) 962 963# Copyright (C) 2009 Free Software Foundation, Inc. 964# 965# This file is free software; the Free Software Foundation 966# gives unlimited permission to copy and/or distribute it, 967# with or without modifications, as long as this notice is preserved. 968 969# serial 1 970 971# AM_SILENT_RULES([DEFAULT]) 972# -------------------------- 973# Enable less verbose build rules; with the default set to DEFAULT 974# (`yes' being less verbose, `no' or empty being verbose). 975AC_DEFUN([AM_SILENT_RULES], 976[AC_ARG_ENABLE([silent-rules], 977[ --enable-silent-rules less verbose build output (undo: `make V=1') 978 --disable-silent-rules verbose build output (undo: `make V=0')]) 979case $enable_silent_rules in 980yes) AM_DEFAULT_VERBOSITY=0;; 981no) AM_DEFAULT_VERBOSITY=1;; 982*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 983esac 984AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 985AM_BACKSLASH='\' 986AC_SUBST([AM_BACKSLASH])dnl 987_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 988]) 989 990# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 991# 992# This file is free software; the Free Software Foundation 993# gives unlimited permission to copy and/or distribute it, 994# with or without modifications, as long as this notice is preserved. 995 996# AM_PROG_INSTALL_STRIP 997# --------------------- 998# One issue with vendor `install' (even GNU) is that you can't 999# specify the program used to strip binaries. This is especially 1000# annoying in cross-compiling environments, where the build's strip 1001# is unlikely to handle the host's binaries. 1002# Fortunately install-sh will honor a STRIPPROG variable, so we 1003# always use install-sh in `make install-strip', and initialize 1004# STRIPPROG with the value of the STRIP variable (set by the user). 1005AC_DEFUN([AM_PROG_INSTALL_STRIP], 1006[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1007# Installed binaries are usually stripped using `strip' when the user 1008# run `make install-strip'. However `strip' might not be the right 1009# tool to use in cross-compilation environments, therefore Automake 1010# will honor the `STRIP' environment variable to overrule this program. 1011dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1012if test "$cross_compiling" != no; then 1013 AC_CHECK_TOOL([STRIP], [strip], :) 1014fi 1015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1016AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1017 1018# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 1019# 1020# This file is free software; the Free Software Foundation 1021# gives unlimited permission to copy and/or distribute it, 1022# with or without modifications, as long as this notice is preserved. 1023 1024# serial 2 1025 1026# _AM_SUBST_NOTMAKE(VARIABLE) 1027# --------------------------- 1028# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1029# This macro is traced by Automake. 1030AC_DEFUN([_AM_SUBST_NOTMAKE]) 1031 1032# AM_SUBST_NOTMAKE(VARIABLE) 1033# --------------------------- 1034# Public sister of _AM_SUBST_NOTMAKE. 1035AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1036 1037# Check how to create a tarball. -*- Autoconf -*- 1038 1039# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 1040# 1041# This file is free software; the Free Software Foundation 1042# gives unlimited permission to copy and/or distribute it, 1043# with or without modifications, as long as this notice is preserved. 1044 1045# serial 2 1046 1047# _AM_PROG_TAR(FORMAT) 1048# -------------------- 1049# Check how to create a tarball in format FORMAT. 1050# FORMAT should be one of `v7', `ustar', or `pax'. 1051# 1052# Substitute a variable $(am__tar) that is a command 1053# writing to stdout a FORMAT-tarball containing the directory 1054# $tardir. 1055# tardir=directory && $(am__tar) > result.tar 1056# 1057# Substitute a variable $(am__untar) that extract such 1058# a tarball read from stdin. 1059# $(am__untar) < result.tar 1060AC_DEFUN([_AM_PROG_TAR], 1061[# Always define AMTAR for backward compatibility. 1062AM_MISSING_PROG([AMTAR], [tar]) 1063m4_if([$1], [v7], 1064 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 1065 [m4_case([$1], [ustar],, [pax],, 1066 [m4_fatal([Unknown tar format])]) 1067AC_MSG_CHECKING([how to create a $1 tar archive]) 1068# Loop over all known methods to create a tar archive until one works. 1069_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1070_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1071# Do not fold the above two line into one, because Tru64 sh and 1072# Solaris sh will not grok spaces in the rhs of `-'. 1073for _am_tool in $_am_tools 1074do 1075 case $_am_tool in 1076 gnutar) 1077 for _am_tar in tar gnutar gtar; 1078 do 1079 AM_RUN_LOG([$_am_tar --version]) && break 1080 done 1081 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1082 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1083 am__untar="$_am_tar -xf -" 1084 ;; 1085 plaintar) 1086 # Must skip GNU tar: if it does not support --format= it doesn't create 1087 # ustar tarball either. 1088 (tar --version) >/dev/null 2>&1 && continue 1089 am__tar='tar chf - "$$tardir"' 1090 am__tar_='tar chf - "$tardir"' 1091 am__untar='tar xf -' 1092 ;; 1093 pax) 1094 am__tar='pax -L -x $1 -w "$$tardir"' 1095 am__tar_='pax -L -x $1 -w "$tardir"' 1096 am__untar='pax -r' 1097 ;; 1098 cpio) 1099 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1100 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1101 am__untar='cpio -i -H $1 -d' 1102 ;; 1103 none) 1104 am__tar=false 1105 am__tar_=false 1106 am__untar=false 1107 ;; 1108 esac 1109 1110 # If the value was cached, stop now. We just wanted to have am__tar 1111 # and am__untar set. 1112 test -n "${am_cv_prog_tar_$1}" && break 1113 1114 # tar/untar a dummy directory, and stop if the command works 1115 rm -rf conftest.dir 1116 mkdir conftest.dir 1117 echo GrepMe > conftest.dir/file 1118 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1119 rm -rf conftest.dir 1120 if test -s conftest.tar; then 1121 AM_RUN_LOG([$am__untar <conftest.tar]) 1122 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1123 fi 1124done 1125rm -rf conftest.dir 1126 1127AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1128AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1129AC_SUBST([am__tar]) 1130AC_SUBST([am__untar]) 1131]) # _AM_PROG_TAR 1132 1133m4_include([sntp/libopts/m4/libopts.m4]) 1134m4_include([sntp/libopts/m4/stdnoreturn.m4]) 1135m4_include([sntp/m4/ax_c99_struct_init.m4]) 1136m4_include([sntp/m4/define_dir.m4]) 1137m4_include([sntp/m4/hms_search_lib.m4]) 1138m4_include([sntp/m4/libtool.m4]) 1139m4_include([sntp/m4/ltoptions.m4]) 1140m4_include([sntp/m4/ltsugar.m4]) 1141m4_include([sntp/m4/ltversion.m4]) 1142m4_include([sntp/m4/lt~obsolete.m4]) 1143m4_include([sntp/m4/ntp_cacheversion.m4]) 1144m4_include([sntp/m4/ntp_compiler.m4]) 1145m4_include([sntp/m4/ntp_crosscompile.m4]) 1146m4_include([sntp/m4/ntp_crypto_rand.m4]) 1147m4_include([sntp/m4/ntp_debug.m4]) 1148m4_include([sntp/m4/ntp_dir_sep.m4]) 1149m4_include([sntp/m4/ntp_facilitynames.m4]) 1150m4_include([sntp/m4/ntp_googletest.m4]) 1151m4_include([sntp/m4/ntp_ipv6.m4]) 1152m4_include([sntp/m4/ntp_lib_m.m4]) 1153m4_include([sntp/m4/ntp_libevent.m4]) 1154m4_include([sntp/m4/ntp_libntp.m4]) 1155m4_include([sntp/m4/ntp_lineeditlibs.m4]) 1156m4_include([sntp/m4/ntp_locinfo.m4]) 1157m4_include([sntp/m4/ntp_openssl.m4]) 1158m4_include([sntp/m4/ntp_pkg_config.m4]) 1159m4_include([sntp/m4/ntp_prog_cc.m4]) 1160m4_include([sntp/m4/ntp_rlimit.m4]) 1161m4_include([sntp/m4/ntp_sntp.m4]) 1162m4_include([sntp/m4/ntp_ver_suffix.m4]) 1163m4_include([sntp/m4/ntp_vpathhack.m4]) 1164m4_include([sntp/m4/openldap-thread-check.m4]) 1165m4_include([sntp/m4/openldap.m4]) 1166m4_include([sntp/m4/os_cflags.m4]) 1167m4_include([sntp/m4/snprintf.m4]) 1168