universe@48: # generated automatically by aclocal 1.13.4 -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1996-2013 Free Software Foundation, Inc. universe@48: universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # This program is distributed in the hope that it will be useful, universe@48: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without universe@48: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A universe@48: # PARTICULAR PURPOSE. universe@48: universe@48: m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) universe@48: m4_ifndef([AC_AUTOCONF_VERSION], universe@48: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl universe@48: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, universe@48: [m4_warning([this file was generated for autoconf 2.69. universe@48: You have another version of autoconf. It may work, but is not guaranteed to. universe@48: If you have problems, you may need to regenerate the build system entirely. universe@48: To do so, use the procedure documented by the package, typically 'autoreconf'.])]) universe@48: universe@48: # Copyright (C) 2002-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_AUTOMAKE_VERSION(VERSION) universe@48: # ---------------------------- universe@48: # Automake X.Y traces this macro to ensure aclocal.m4 has been universe@48: # generated from the m4 files accompanying Automake X.Y. universe@48: # (This private macro should not be called outside this file.) universe@48: AC_DEFUN([AM_AUTOMAKE_VERSION], universe@48: [am__api_version='1.13' universe@48: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to universe@48: dnl require some minimum version. Point them to the right macro. universe@48: m4_if([$1], [1.13.4], [], universe@48: [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl universe@48: ]) universe@48: universe@48: # _AM_AUTOCONF_VERSION(VERSION) universe@48: # ----------------------------- universe@48: # aclocal traces this macro to find the Autoconf version. universe@48: # This is a private macro too. Using m4_define simplifies universe@48: # the logic in aclocal, which can simply ignore this definition. universe@48: m4_define([_AM_AUTOCONF_VERSION], []) universe@48: universe@48: # AM_SET_CURRENT_AUTOMAKE_VERSION universe@48: # ------------------------------- universe@48: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. universe@48: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. universe@48: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], universe@48: [AM_AUTOMAKE_VERSION([1.13.4])dnl universe@48: m4_ifndef([AC_AUTOCONF_VERSION], universe@48: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl universe@48: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) universe@48: universe@48: # AM_AUX_DIR_EXPAND -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 2001-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets universe@48: # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to universe@48: # '$srcdir', '$srcdir/..', or '$srcdir/../..'. universe@48: # universe@48: # Of course, Automake must honor this variable whenever it calls a universe@48: # tool from the auxiliary directory. The problem is that $srcdir (and universe@48: # therefore $ac_aux_dir as well) can be either absolute or relative, universe@48: # depending on how configure is run. This is pretty annoying, since universe@48: # it makes $ac_aux_dir quite unusable in subdirectories: in the top universe@48: # source directory, any form will work fine, but in subdirectories a universe@48: # relative path needs to be adjusted first. universe@48: # universe@48: # $ac_aux_dir/missing universe@48: # fails when called from a subdirectory if $ac_aux_dir is relative universe@48: # $top_srcdir/$ac_aux_dir/missing universe@48: # fails if $ac_aux_dir is absolute, universe@48: # fails when called from a subdirectory in a VPATH build with universe@48: # a relative $ac_aux_dir universe@48: # universe@48: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir universe@48: # are both prefixed by $srcdir. In an in-source build this is usually universe@48: # harmless because $srcdir is '.', but things will broke when you universe@48: # start a VPATH build or use an absolute $srcdir. universe@48: # universe@48: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, universe@48: # iff we strip the leading $srcdir from $ac_aux_dir. That would be: universe@48: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` universe@48: # and then we would define $MISSING as universe@48: # MISSING="\${SHELL} $am_aux_dir/missing" universe@48: # This will work as long as MISSING is not called from configure, because universe@48: # unfortunately $(top_srcdir) has no meaning in configure. universe@48: # However there are other variables, like CC, which are often used in universe@48: # configure, and could therefore not use this "fixed" $ac_aux_dir. universe@48: # universe@48: # Another solution, used here, is to always expand $ac_aux_dir to an universe@48: # absolute PATH. The drawback is that using absolute paths prevent a universe@48: # configured tree to be moved without reconfiguration. universe@48: universe@48: AC_DEFUN([AM_AUX_DIR_EXPAND], universe@48: [dnl Rely on autoconf to set up CDPATH properly. universe@48: AC_PREREQ([2.50])dnl universe@48: # expand $ac_aux_dir to an absolute path universe@48: am_aux_dir=`cd $ac_aux_dir && pwd` universe@48: ]) universe@48: universe@48: # AM_CONDITIONAL -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1997-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_CONDITIONAL(NAME, SHELL-CONDITION) universe@48: # ------------------------------------- universe@48: # Define a conditional. universe@48: AC_DEFUN([AM_CONDITIONAL], universe@48: [AC_PREREQ([2.52])dnl universe@48: m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], universe@48: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl universe@48: AC_SUBST([$1_TRUE])dnl universe@48: AC_SUBST([$1_FALSE])dnl universe@48: _AM_SUBST_NOTMAKE([$1_TRUE])dnl universe@48: _AM_SUBST_NOTMAKE([$1_FALSE])dnl universe@48: m4_define([_AM_COND_VALUE_$1], [$2])dnl universe@48: if $2; then universe@48: $1_TRUE= universe@48: $1_FALSE='#' universe@48: else universe@48: $1_TRUE='#' universe@48: $1_FALSE= universe@48: fi universe@48: AC_CONFIG_COMMANDS_PRE( universe@48: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then universe@48: AC_MSG_ERROR([[conditional "$1" was never defined. universe@48: Usually this means the macro was only invoked conditionally.]]) universe@48: fi])]) universe@48: universe@48: # Copyright (C) 1999-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: universe@48: # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be universe@48: # written in clear, in which case automake, when reading aclocal.m4, universe@48: # will think it sees a *use*, and therefore will trigger all it's universe@48: # C support machinery. Also note that it means that autoscan, seeing universe@48: # CC etc. in the Makefile, will ask for an AC_PROG_CC use... universe@48: universe@48: universe@48: # _AM_DEPENDENCIES(NAME) universe@48: # ---------------------- universe@48: # See how the compiler implements dependency checking. universe@48: # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". universe@48: # We try a few techniques and use that to set a single cache variable. universe@48: # universe@48: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was universe@48: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular universe@48: # dependency, and given that the user is not expected to run this macro, universe@48: # just rely on AC_PROG_CC. universe@48: AC_DEFUN([_AM_DEPENDENCIES], universe@48: [AC_REQUIRE([AM_SET_DEPDIR])dnl universe@48: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl universe@48: AC_REQUIRE([AM_MAKE_INCLUDE])dnl universe@48: AC_REQUIRE([AM_DEP_TRACK])dnl universe@48: universe@48: m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], universe@48: [$1], [CXX], [depcc="$CXX" am_compiler_list=], universe@48: [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], universe@48: [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], universe@48: [$1], [UPC], [depcc="$UPC" am_compiler_list=], universe@48: [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], universe@48: [depcc="$$1" am_compiler_list=]) universe@48: universe@48: AC_CACHE_CHECK([dependency style of $depcc], universe@48: [am_cv_$1_dependencies_compiler_type], universe@48: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then universe@48: # We make a subdir and do the tests there. Otherwise we can end up universe@48: # making bogus files that we don't know about and never remove. For universe@48: # instance it was reported that on HP-UX the gcc test will end up universe@48: # making a dummy file named 'D' -- because '-MD' means "put the output universe@48: # in D". universe@48: rm -rf conftest.dir universe@48: mkdir conftest.dir universe@48: # Copy depcomp to subdir because otherwise we won't find it if we're universe@48: # using a relative directory. universe@48: cp "$am_depcomp" conftest.dir universe@48: cd conftest.dir universe@48: # We will build objects and dependencies in a subdirectory because universe@48: # it helps to detect inapplicable dependency modes. For instance universe@48: # both Tru64's cc and ICC support -MD to output dependencies as a universe@48: # side effect of compilation, but ICC will put the dependencies in universe@48: # the current directory while Tru64 will put them in the object universe@48: # directory. universe@48: mkdir sub universe@48: universe@48: am_cv_$1_dependencies_compiler_type=none universe@48: if test "$am_compiler_list" = ""; then universe@48: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` universe@48: fi universe@48: am__universal=false universe@48: m4_case([$1], [CC], universe@48: [case " $depcc " in #( universe@48: *\ -arch\ *\ -arch\ *) am__universal=true ;; universe@48: esac], universe@48: [CXX], universe@48: [case " $depcc " in #( universe@48: *\ -arch\ *\ -arch\ *) am__universal=true ;; universe@48: esac]) universe@48: universe@48: for depmode in $am_compiler_list; do universe@48: # Setup a source with many dependencies, because some compilers universe@48: # like to wrap large dependency lists on column 80 (with \), and universe@48: # we should not choose a depcomp mode which is confused by this. universe@48: # universe@48: # We need to recreate these files for each test, as the compiler may universe@48: # overwrite some of them when testing with obscure command lines. universe@48: # This happens at least with the AIX C compiler. universe@48: : > sub/conftest.c universe@48: for i in 1 2 3 4 5 6; do universe@48: echo '#include "conftst'$i'.h"' >> sub/conftest.c universe@48: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with universe@48: # Solaris 10 /bin/sh. universe@48: echo '/* dummy */' > sub/conftst$i.h universe@48: done universe@48: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf universe@48: universe@48: # We check with '-c' and '-o' for the sake of the "dashmstdout" universe@48: # mode. It turns out that the SunPro C++ compiler does not properly universe@48: # handle '-M -o', and we need to detect this. Also, some Intel universe@48: # versions had trouble with output in subdirs. universe@48: am__obj=sub/conftest.${OBJEXT-o} universe@48: am__minus_obj="-o $am__obj" universe@48: case $depmode in universe@48: gcc) universe@48: # This depmode causes a compiler race in universal mode. universe@48: test "$am__universal" = false || continue universe@48: ;; universe@48: nosideeffect) universe@48: # After this tag, mechanisms are not by side-effect, so they'll universe@48: # only be used when explicitly requested. universe@48: if test "x$enable_dependency_tracking" = xyes; then universe@48: continue universe@48: else universe@48: break universe@48: fi universe@48: ;; universe@48: msvc7 | msvc7msys | msvisualcpp | msvcmsys) universe@48: # This compiler won't grok '-c -o', but also, the minuso test has universe@48: # not run yet. These depmodes are late enough in the game, and universe@48: # so weak that their functioning should not be impacted. universe@48: am__obj=conftest.${OBJEXT-o} universe@48: am__minus_obj= universe@48: ;; universe@48: none) break ;; universe@48: esac universe@48: if depmode=$depmode \ universe@48: source=sub/conftest.c object=$am__obj \ universe@48: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ universe@48: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ universe@48: >/dev/null 2>conftest.err && universe@48: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && universe@48: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && universe@48: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && universe@48: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then universe@48: # icc doesn't choke on unknown options, it will just issue warnings universe@48: # or remarks (even with -Werror). So we grep stderr for any message universe@48: # that says an option was ignored or not supported. universe@48: # When given -MP, icc 7.0 and 7.1 complain thusly: universe@48: # icc: Command line warning: ignoring option '-M'; no argument required universe@48: # The diagnosis changed in icc 8.0: universe@48: # icc: Command line remark: option '-MP' not supported universe@48: if (grep 'ignoring option' conftest.err || universe@48: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else universe@48: am_cv_$1_dependencies_compiler_type=$depmode universe@48: break universe@48: fi universe@48: fi universe@48: done universe@48: universe@48: cd .. universe@48: rm -rf conftest.dir universe@48: else universe@48: am_cv_$1_dependencies_compiler_type=none universe@48: fi universe@48: ]) universe@48: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) universe@48: AM_CONDITIONAL([am__fastdep$1], [ universe@48: test "x$enable_dependency_tracking" != xno \ universe@48: && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) universe@48: ]) universe@48: universe@48: universe@48: # AM_SET_DEPDIR universe@48: # ------------- universe@48: # Choose a directory name for dependency files. universe@48: # This macro is AC_REQUIREd in _AM_DEPENDENCIES. universe@48: AC_DEFUN([AM_SET_DEPDIR], universe@48: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl universe@48: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl universe@48: ]) universe@48: universe@48: universe@48: # AM_DEP_TRACK universe@48: # ------------ universe@48: AC_DEFUN([AM_DEP_TRACK], universe@48: [AC_ARG_ENABLE([dependency-tracking], [dnl universe@48: AS_HELP_STRING( universe@48: [--enable-dependency-tracking], universe@48: [do not reject slow dependency extractors]) universe@48: AS_HELP_STRING( universe@48: [--disable-dependency-tracking], universe@48: [speeds up one-time build])]) universe@48: if test "x$enable_dependency_tracking" != xno; then universe@48: am_depcomp="$ac_aux_dir/depcomp" universe@48: AMDEPBACKSLASH='\' universe@48: am__nodep='_no' universe@48: fi universe@48: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) universe@48: AC_SUBST([AMDEPBACKSLASH])dnl universe@48: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl universe@48: AC_SUBST([am__nodep])dnl universe@48: _AM_SUBST_NOTMAKE([am__nodep])dnl universe@48: ]) universe@48: universe@48: # Generate code to set up dependency tracking. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1999-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: universe@48: # _AM_OUTPUT_DEPENDENCY_COMMANDS universe@48: # ------------------------------ universe@48: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], universe@48: [{ universe@48: # Older Autoconf quotes --file arguments for eval, but not when files universe@48: # are listed without --file. Let's play safe and only enable the eval universe@48: # if we detect the quoting. universe@48: case $CONFIG_FILES in universe@48: *\'*) eval set x "$CONFIG_FILES" ;; universe@48: *) set x $CONFIG_FILES ;; universe@48: esac universe@48: shift universe@48: for mf universe@48: do universe@48: # Strip MF so we end up with the name of the file. universe@48: mf=`echo "$mf" | sed -e 's/:.*$//'` universe@48: # Check whether this is an Automake generated Makefile or not. universe@48: # We used to match only the files named 'Makefile.in', but universe@48: # some people rename them; so instead we look at the file content. universe@48: # Grep'ing the first line is not enough: some people post-process universe@48: # each Makefile.in and add a new line on top of each file to say so. universe@48: # Grep'ing the whole file is not good either: AIX grep has a line universe@48: # limit of 2048, but all sed's we know have understand at least 4000. universe@48: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then universe@48: dirpart=`AS_DIRNAME("$mf")` universe@48: else universe@48: continue universe@48: fi universe@48: # Extract the definition of DEPDIR, am__include, and am__quote universe@48: # from the Makefile without running 'make'. universe@48: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` universe@48: test -z "$DEPDIR" && continue universe@48: am__include=`sed -n 's/^am__include = //p' < "$mf"` universe@48: test -z "$am__include" && continue universe@48: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` universe@48: # Find all dependency output files, they are included files with universe@48: # $(DEPDIR) in their names. We invoke sed twice because it is the universe@48: # simplest approach to changing $(DEPDIR) to its actual value in the universe@48: # expansion. universe@48: for file in `sed -n " universe@48: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ universe@48: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do universe@48: # Make sure the directory exists. universe@48: test -f "$dirpart/$file" && continue universe@48: fdir=`AS_DIRNAME(["$file"])` universe@48: AS_MKDIR_P([$dirpart/$fdir]) universe@48: # echo "creating $dirpart/$file" universe@48: echo '# dummy' > "$dirpart/$file" universe@48: done universe@48: done universe@48: } universe@48: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS universe@48: universe@48: universe@48: # AM_OUTPUT_DEPENDENCY_COMMANDS universe@48: # ----------------------------- universe@48: # This macro should only be invoked once -- use via AC_REQUIRE. universe@48: # universe@48: # This code is only required when automatic dependency tracking universe@48: # is enabled. FIXME. This creates each '.P' file that we will universe@48: # need in order to bootstrap the dependency handling code. universe@48: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], universe@48: [AC_CONFIG_COMMANDS([depfiles], universe@48: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], universe@48: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) universe@48: ]) universe@48: universe@48: # Do all the work for Automake. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1996-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # This macro actually does too much. Some checks are only needed if universe@48: # your package does certain things. But this isn't really a big deal. universe@48: universe@48: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) universe@48: # AM_INIT_AUTOMAKE([OPTIONS]) universe@48: # ----------------------------------------------- universe@48: # The call with PACKAGE and VERSION arguments is the old style universe@48: # call (pre autoconf-2.50), which is being phased out. PACKAGE universe@48: # and VERSION should now be passed to AC_INIT and removed from universe@48: # the call to AM_INIT_AUTOMAKE. universe@48: # We support both call styles for the transition. After universe@48: # the next Automake release, Autoconf can make the AC_INIT universe@48: # arguments mandatory, and then we can depend on a new Autoconf universe@48: # release and drop the old call support. universe@48: AC_DEFUN([AM_INIT_AUTOMAKE], universe@48: [AC_PREREQ([2.65])dnl universe@48: dnl Autoconf wants to disallow AM_ names. We explicitly allow universe@48: dnl the ones we care about. universe@48: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl universe@48: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl universe@48: AC_REQUIRE([AC_PROG_INSTALL])dnl universe@48: if test "`cd $srcdir && pwd`" != "`pwd`"; then universe@48: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output universe@48: # is not polluted with repeated "-I." universe@48: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl universe@48: # test to see if srcdir already configured universe@48: if test -f $srcdir/config.status; then universe@48: AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) universe@48: fi universe@48: fi universe@48: universe@48: # test whether we have cygpath universe@48: if test -z "$CYGPATH_W"; then universe@48: if (cygpath --version) >/dev/null 2>/dev/null; then universe@48: CYGPATH_W='cygpath -w' universe@48: else universe@48: CYGPATH_W=echo universe@48: fi universe@48: fi universe@48: AC_SUBST([CYGPATH_W]) universe@48: universe@48: # Define the identity of the package. universe@48: dnl Distinguish between old-style and new-style calls. universe@48: m4_ifval([$2], universe@48: [AC_DIAGNOSE([obsolete], universe@48: [$0: two- and three-arguments forms are deprecated.]) universe@48: m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl universe@48: AC_SUBST([PACKAGE], [$1])dnl universe@48: AC_SUBST([VERSION], [$2])], universe@48: [_AM_SET_OPTIONS([$1])dnl universe@48: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. universe@48: m4_if( universe@48: m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), universe@48: [ok:ok],, universe@48: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl universe@48: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl universe@48: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl universe@48: universe@48: _AM_IF_OPTION([no-define],, universe@48: [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) universe@48: AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl universe@48: universe@48: # Some tools Automake needs. universe@48: AC_REQUIRE([AM_SANITY_CHECK])dnl universe@48: AC_REQUIRE([AC_ARG_PROGRAM])dnl universe@48: AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) universe@48: AM_MISSING_PROG([AUTOCONF], [autoconf]) universe@48: AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) universe@48: AM_MISSING_PROG([AUTOHEADER], [autoheader]) universe@48: AM_MISSING_PROG([MAKEINFO], [makeinfo]) universe@48: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl universe@48: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl universe@48: AC_REQUIRE([AC_PROG_MKDIR_P])dnl universe@48: # For better backward compatibility. To be removed once Automake 1.9.x universe@48: # dies out for good. For more background, see: universe@48: # universe@48: # universe@48: AC_SUBST([mkdir_p], ['$(MKDIR_P)']) universe@48: # We need awk for the "check" target. The system "awk" is bad on universe@48: # some platforms. universe@48: AC_REQUIRE([AC_PROG_AWK])dnl universe@48: AC_REQUIRE([AC_PROG_MAKE_SET])dnl universe@48: AC_REQUIRE([AM_SET_LEADING_DOT])dnl universe@48: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], universe@48: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], universe@48: [_AM_PROG_TAR([v7])])]) universe@48: _AM_IF_OPTION([no-dependencies],, universe@48: [AC_PROVIDE_IFELSE([AC_PROG_CC], universe@48: [_AM_DEPENDENCIES([CC])], universe@48: [m4_define([AC_PROG_CC], universe@48: m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl universe@48: AC_PROVIDE_IFELSE([AC_PROG_CXX], universe@48: [_AM_DEPENDENCIES([CXX])], universe@48: [m4_define([AC_PROG_CXX], universe@48: m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl universe@48: AC_PROVIDE_IFELSE([AC_PROG_OBJC], universe@48: [_AM_DEPENDENCIES([OBJC])], universe@48: [m4_define([AC_PROG_OBJC], universe@48: m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl universe@48: AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], universe@48: [_AM_DEPENDENCIES([OBJCXX])], universe@48: [m4_define([AC_PROG_OBJCXX], universe@48: m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl universe@48: ]) universe@48: AC_REQUIRE([AM_SILENT_RULES])dnl universe@48: dnl The testsuite driver may need to know about EXEEXT, so add the universe@48: dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This universe@48: dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. universe@48: AC_CONFIG_COMMANDS_PRE(dnl universe@48: [m4_provide_if([_AM_COMPILER_EXEEXT], universe@48: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl universe@48: ]) universe@48: universe@48: dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not universe@48: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further universe@48: dnl mangled by Autoconf and run in a shell conditional statement. universe@48: m4_define([_AC_COMPILER_EXEEXT], universe@48: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) universe@48: universe@48: universe@48: # When config.status generates a header, we must update the stamp-h file. universe@48: # This file resides in the same directory as the config header universe@48: # that is generated. The stamp files are numbered to have different names. universe@48: universe@48: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the universe@48: # loop where config.status creates the headers, so we can generate universe@48: # our stamp files there. universe@48: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], universe@48: [# Compute $1's index in $config_headers. universe@48: _am_arg=$1 universe@48: _am_stamp_count=1 universe@48: for _am_header in $config_headers :; do universe@48: case $_am_header in universe@48: $_am_arg | $_am_arg:* ) universe@48: break ;; universe@48: * ) universe@48: _am_stamp_count=`expr $_am_stamp_count + 1` ;; universe@48: esac universe@48: done universe@48: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) universe@48: universe@48: # Copyright (C) 2001-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_PROG_INSTALL_SH universe@48: # ------------------ universe@48: # Define $install_sh. universe@48: AC_DEFUN([AM_PROG_INSTALL_SH], universe@48: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl universe@48: if test x"${install_sh}" != xset; then universe@48: case $am_aux_dir in universe@48: *\ * | *\ *) universe@48: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; universe@48: *) universe@48: install_sh="\${SHELL} $am_aux_dir/install-sh" universe@48: esac universe@48: fi universe@48: AC_SUBST([install_sh])]) universe@48: universe@48: # Copyright (C) 2003-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # Check whether the underlying file-system supports filenames universe@48: # with a leading dot. For instance MS-DOS doesn't. universe@48: AC_DEFUN([AM_SET_LEADING_DOT], universe@48: [rm -rf .tst 2>/dev/null universe@48: mkdir .tst 2>/dev/null universe@48: if test -d .tst; then universe@48: am__leading_dot=. universe@48: else universe@48: am__leading_dot=_ universe@48: fi universe@48: rmdir .tst 2>/dev/null universe@48: AC_SUBST([am__leading_dot])]) universe@48: universe@48: # Check to see how 'make' treats includes. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 2001-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_MAKE_INCLUDE() universe@48: # ----------------- universe@48: # Check to see how make treats includes. universe@48: AC_DEFUN([AM_MAKE_INCLUDE], universe@48: [am_make=${MAKE-make} universe@48: cat > confinc << 'END' universe@48: am__doit: universe@48: @echo this is the am__doit target universe@48: .PHONY: am__doit universe@48: END universe@48: # If we don't find an include directive, just comment out the code. universe@48: AC_MSG_CHECKING([for style of include used by $am_make]) universe@48: am__include="#" universe@48: am__quote= universe@48: _am_result=none universe@48: # First try GNU make style include. universe@48: echo "include confinc" > confmf universe@48: # Ignore all kinds of additional output from 'make'. universe@48: case `$am_make -s -f confmf 2> /dev/null` in #( universe@48: *the\ am__doit\ target*) universe@48: am__include=include universe@48: am__quote= universe@48: _am_result=GNU universe@48: ;; universe@48: esac universe@48: # Now try BSD make style include. universe@48: if test "$am__include" = "#"; then universe@48: echo '.include "confinc"' > confmf universe@48: case `$am_make -s -f confmf 2> /dev/null` in #( universe@48: *the\ am__doit\ target*) universe@48: am__include=.include universe@48: am__quote="\"" universe@48: _am_result=BSD universe@48: ;; universe@48: esac universe@48: fi universe@48: AC_SUBST([am__include]) universe@48: AC_SUBST([am__quote]) universe@48: AC_MSG_RESULT([$_am_result]) universe@48: rm -f confinc confmf universe@48: ]) universe@48: universe@48: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1997-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_MISSING_PROG(NAME, PROGRAM) universe@48: # ------------------------------ universe@48: AC_DEFUN([AM_MISSING_PROG], universe@48: [AC_REQUIRE([AM_MISSING_HAS_RUN]) universe@48: $1=${$1-"${am_missing_run}$2"} universe@48: AC_SUBST($1)]) universe@48: universe@48: # AM_MISSING_HAS_RUN universe@48: # ------------------ universe@48: # Define MISSING if not defined so far and test if it is modern enough. universe@48: # If it is, set am_missing_run to use it, otherwise, to nothing. universe@48: AC_DEFUN([AM_MISSING_HAS_RUN], universe@48: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl universe@48: AC_REQUIRE_AUX_FILE([missing])dnl universe@48: if test x"${MISSING+set}" != xset; then universe@48: case $am_aux_dir in universe@48: *\ * | *\ *) universe@48: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; universe@48: *) universe@48: MISSING="\${SHELL} $am_aux_dir/missing" ;; universe@48: esac universe@48: fi universe@48: # Use eval to expand $SHELL universe@48: if eval "$MISSING --is-lightweight"; then universe@48: am_missing_run="$MISSING " universe@48: else universe@48: am_missing_run= universe@48: AC_MSG_WARN(['missing' script is too old or missing]) universe@48: fi universe@48: ]) universe@48: universe@48: # Helper functions for option handling. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 2001-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # _AM_MANGLE_OPTION(NAME) universe@48: # ----------------------- universe@48: AC_DEFUN([_AM_MANGLE_OPTION], universe@48: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) universe@48: universe@48: # _AM_SET_OPTION(NAME) universe@48: # -------------------- universe@48: # Set option NAME. Presently that only means defining a flag for this option. universe@48: AC_DEFUN([_AM_SET_OPTION], universe@48: [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) universe@48: universe@48: # _AM_SET_OPTIONS(OPTIONS) universe@48: # ------------------------ universe@48: # OPTIONS is a space-separated list of Automake options. universe@48: AC_DEFUN([_AM_SET_OPTIONS], universe@48: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) universe@48: universe@48: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) universe@48: # ------------------------------------------- universe@48: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. universe@48: AC_DEFUN([_AM_IF_OPTION], universe@48: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) universe@48: universe@48: # Check to make sure that the build environment is sane. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 1996-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_SANITY_CHECK universe@48: # --------------- universe@48: AC_DEFUN([AM_SANITY_CHECK], universe@48: [AC_MSG_CHECKING([whether build environment is sane]) universe@48: # Reject unsafe characters in $srcdir or the absolute working directory universe@48: # name. Accept space and tab only in the latter. universe@48: am_lf=' universe@48: ' universe@48: case `pwd` in universe@48: *[[\\\"\#\$\&\'\`$am_lf]]*) universe@48: AC_MSG_ERROR([unsafe absolute working directory name]);; universe@48: esac universe@48: case $srcdir in universe@48: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) universe@48: AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; universe@48: esac universe@48: universe@48: # Do 'set' in a subshell so we don't clobber the current shell's universe@48: # arguments. Must try -L first in case configure is actually a universe@48: # symlink; some systems play weird games with the mod time of symlinks universe@48: # (eg FreeBSD returns the mod time of the symlink's containing universe@48: # directory). universe@48: if ( universe@48: am_has_slept=no universe@48: for am_try in 1 2; do universe@48: echo "timestamp, slept: $am_has_slept" > conftest.file universe@48: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` universe@48: if test "$[*]" = "X"; then universe@48: # -L didn't work. universe@48: set X `ls -t "$srcdir/configure" conftest.file` universe@48: fi universe@48: if test "$[*]" != "X $srcdir/configure conftest.file" \ universe@48: && test "$[*]" != "X conftest.file $srcdir/configure"; then universe@48: universe@48: # If neither matched, then we have a broken ls. This can happen universe@48: # if, for instance, CONFIG_SHELL is bash and it inherits a universe@48: # broken ls alias from the environment. This has actually universe@48: # happened. Such a system could not be considered "sane". universe@48: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken universe@48: alias in your environment]) universe@48: fi universe@48: if test "$[2]" = conftest.file || test $am_try -eq 2; then universe@48: break universe@48: fi universe@48: # Just in case. universe@48: sleep 1 universe@48: am_has_slept=yes universe@48: done universe@48: test "$[2]" = conftest.file universe@48: ) universe@48: then universe@48: # Ok. universe@48: : universe@48: else universe@48: AC_MSG_ERROR([newly created file is older than distributed files! universe@48: Check your system clock]) universe@48: fi universe@48: AC_MSG_RESULT([yes]) universe@48: # If we didn't sleep, we still need to ensure time stamps of config.status and universe@48: # generated files are strictly newer. universe@48: am_sleep_pid= universe@48: if grep 'slept: no' conftest.file >/dev/null 2>&1; then universe@48: ( sleep 1 ) & universe@48: am_sleep_pid=$! universe@48: fi universe@48: AC_CONFIG_COMMANDS_PRE( universe@48: [AC_MSG_CHECKING([that generated files are newer than configure]) universe@48: if test -n "$am_sleep_pid"; then universe@48: # Hide warnings about reused PIDs. universe@48: wait $am_sleep_pid 2>/dev/null universe@48: fi universe@48: AC_MSG_RESULT([done])]) universe@48: rm -f conftest.file universe@48: ]) universe@48: universe@48: # Copyright (C) 2009-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_SILENT_RULES([DEFAULT]) universe@48: # -------------------------- universe@48: # Enable less verbose build rules; with the default set to DEFAULT universe@48: # ("yes" being less verbose, "no" or empty being verbose). universe@48: AC_DEFUN([AM_SILENT_RULES], universe@48: [AC_ARG_ENABLE([silent-rules], [dnl universe@48: AS_HELP_STRING( universe@48: [--enable-silent-rules], universe@48: [less verbose build output (undo: "make V=1")]) universe@48: AS_HELP_STRING( universe@48: [--disable-silent-rules], universe@48: [verbose build output (undo: "make V=0")])dnl universe@48: ]) universe@48: case $enable_silent_rules in @%:@ ((( universe@48: yes) AM_DEFAULT_VERBOSITY=0;; universe@48: no) AM_DEFAULT_VERBOSITY=1;; universe@48: *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; universe@48: esac universe@48: dnl universe@48: dnl A few 'make' implementations (e.g., NonStop OS and NextStep) universe@48: dnl do not support nested variable expansions. universe@48: dnl See automake bug#9928 and bug#10237. universe@48: am_make=${MAKE-make} universe@48: AC_CACHE_CHECK([whether $am_make supports nested variables], universe@48: [am_cv_make_support_nested_variables], universe@48: [if AS_ECHO([['TRUE=$(BAR$(V)) universe@48: BAR0=false universe@48: BAR1=true universe@48: V=1 universe@48: am__doit: universe@48: @$(TRUE) universe@48: .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then universe@48: am_cv_make_support_nested_variables=yes universe@48: else universe@48: am_cv_make_support_nested_variables=no universe@48: fi]) universe@48: if test $am_cv_make_support_nested_variables = yes; then universe@48: dnl Using '$V' instead of '$(V)' breaks IRIX make. universe@48: AM_V='$(V)' universe@48: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' universe@48: else universe@48: AM_V=$AM_DEFAULT_VERBOSITY universe@48: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY universe@48: fi universe@48: AC_SUBST([AM_V])dnl universe@48: AM_SUBST_NOTMAKE([AM_V])dnl universe@48: AC_SUBST([AM_DEFAULT_V])dnl universe@48: AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl universe@48: AC_SUBST([AM_DEFAULT_VERBOSITY])dnl universe@48: AM_BACKSLASH='\' universe@48: AC_SUBST([AM_BACKSLASH])dnl universe@48: _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl universe@48: ]) universe@48: universe@48: # Copyright (C) 2001-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # AM_PROG_INSTALL_STRIP universe@48: # --------------------- universe@48: # One issue with vendor 'install' (even GNU) is that you can't universe@48: # specify the program used to strip binaries. This is especially universe@48: # annoying in cross-compiling environments, where the build's strip universe@48: # is unlikely to handle the host's binaries. universe@48: # Fortunately install-sh will honor a STRIPPROG variable, so we universe@48: # always use install-sh in "make install-strip", and initialize universe@48: # STRIPPROG with the value of the STRIP variable (set by the user). universe@48: AC_DEFUN([AM_PROG_INSTALL_STRIP], universe@48: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl universe@48: # Installed binaries are usually stripped using 'strip' when the user universe@48: # run "make install-strip". However 'strip' might not be the right universe@48: # tool to use in cross-compilation environments, therefore Automake universe@48: # will honor the 'STRIP' environment variable to overrule this program. universe@48: dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. universe@48: if test "$cross_compiling" != no; then universe@48: AC_CHECK_TOOL([STRIP], [strip], :) universe@48: fi universe@48: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" universe@48: AC_SUBST([INSTALL_STRIP_PROGRAM])]) universe@48: universe@48: # Copyright (C) 2006-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # _AM_SUBST_NOTMAKE(VARIABLE) universe@48: # --------------------------- universe@48: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. universe@48: # This macro is traced by Automake. universe@48: AC_DEFUN([_AM_SUBST_NOTMAKE]) universe@48: universe@48: # AM_SUBST_NOTMAKE(VARIABLE) universe@48: # -------------------------- universe@48: # Public sister of _AM_SUBST_NOTMAKE. universe@48: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) universe@48: universe@48: # Check how to create a tarball. -*- Autoconf -*- universe@48: universe@48: # Copyright (C) 2004-2013 Free Software Foundation, Inc. universe@48: # universe@48: # This file is free software; the Free Software Foundation universe@48: # gives unlimited permission to copy and/or distribute it, universe@48: # with or without modifications, as long as this notice is preserved. universe@48: universe@48: # _AM_PROG_TAR(FORMAT) universe@48: # -------------------- universe@48: # Check how to create a tarball in format FORMAT. universe@48: # FORMAT should be one of 'v7', 'ustar', or 'pax'. universe@48: # universe@48: # Substitute a variable $(am__tar) that is a command universe@48: # writing to stdout a FORMAT-tarball containing the directory universe@48: # $tardir. universe@48: # tardir=directory && $(am__tar) > result.tar universe@48: # universe@48: # Substitute a variable $(am__untar) that extract such universe@48: # a tarball read from stdin. universe@48: # $(am__untar) < result.tar universe@48: # universe@48: AC_DEFUN([_AM_PROG_TAR], universe@48: [# Always define AMTAR for backward compatibility. Yes, it's still used universe@48: # in the wild :-( We should find a proper way to deprecate it ... universe@48: AC_SUBST([AMTAR], ['$${TAR-tar}']) universe@48: universe@48: # We'll loop over all known methods to create a tar archive until one works. universe@48: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' universe@48: universe@48: m4_if([$1], [v7], universe@48: [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], universe@48: universe@48: [m4_case([$1], universe@48: [ustar], universe@48: [# The POSIX 1988 'ustar' format is defined with fixed-size fields. universe@48: # There is notably a 21 bits limit for the UID and the GID. In fact, universe@48: # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 universe@48: # and bug#13588). universe@48: am_max_uid=2097151 # 2^21 - 1 universe@48: am_max_gid=$am_max_uid universe@48: # The $UID and $GID variables are not portable, so we need to resort universe@48: # to the POSIX-mandated id(1) utility. Errors in the 'id' calls universe@48: # below are definitely unexpected, so allow the users to see them universe@48: # (that is, avoid stderr redirection). universe@48: am_uid=`id -u || echo unknown` universe@48: am_gid=`id -g || echo unknown` universe@48: AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) universe@48: if test $am_uid -le $am_max_uid; then universe@48: AC_MSG_RESULT([yes]) universe@48: else universe@48: AC_MSG_RESULT([no]) universe@48: _am_tools=none universe@48: fi universe@48: AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) universe@48: if test $am_gid -le $am_max_gid; then universe@48: AC_MSG_RESULT([yes]) universe@48: else universe@48: AC_MSG_RESULT([no]) universe@48: _am_tools=none universe@48: fi], universe@48: universe@48: [pax], universe@48: [], universe@48: universe@48: [m4_fatal([Unknown tar format])]) universe@48: universe@48: AC_MSG_CHECKING([how to create a $1 tar archive]) universe@48: universe@48: # Go ahead even if we have the value already cached. We do so because we universe@48: # need to set the values for the 'am__tar' and 'am__untar' variables. universe@48: _am_tools=${am_cv_prog_tar_$1-$_am_tools} universe@48: universe@48: for _am_tool in $_am_tools; do universe@48: case $_am_tool in universe@48: gnutar) universe@48: for _am_tar in tar gnutar gtar; do universe@48: AM_RUN_LOG([$_am_tar --version]) && break universe@48: done universe@48: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' universe@48: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' universe@48: am__untar="$_am_tar -xf -" universe@48: ;; universe@48: plaintar) universe@48: # Must skip GNU tar: if it does not support --format= it doesn't create universe@48: # ustar tarball either. universe@48: (tar --version) >/dev/null 2>&1 && continue universe@48: am__tar='tar chf - "$$tardir"' universe@48: am__tar_='tar chf - "$tardir"' universe@48: am__untar='tar xf -' universe@48: ;; universe@48: pax) universe@48: am__tar='pax -L -x $1 -w "$$tardir"' universe@48: am__tar_='pax -L -x $1 -w "$tardir"' universe@48: am__untar='pax -r' universe@48: ;; universe@48: cpio) universe@48: am__tar='find "$$tardir" -print | cpio -o -H $1 -L' universe@48: am__tar_='find "$tardir" -print | cpio -o -H $1 -L' universe@48: am__untar='cpio -i -H $1 -d' universe@48: ;; universe@48: none) universe@48: am__tar=false universe@48: am__tar_=false universe@48: am__untar=false universe@48: ;; universe@48: esac universe@48: universe@48: # If the value was cached, stop now. We just wanted to have am__tar universe@48: # and am__untar set. universe@48: test -n "${am_cv_prog_tar_$1}" && break universe@48: universe@48: # tar/untar a dummy directory, and stop if the command works. universe@48: rm -rf conftest.dir universe@48: mkdir conftest.dir universe@48: echo GrepMe > conftest.dir/file universe@48: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) universe@48: rm -rf conftest.dir universe@48: if test -s conftest.tar; then universe@48: AM_RUN_LOG([$am__untar /dev/null 2>&1 && break universe@48: fi universe@48: done universe@48: rm -rf conftest.dir universe@48: universe@48: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) universe@48: AC_MSG_RESULT([$am_cv_prog_tar_$1])]) universe@48: universe@48: AC_SUBST([am__tar]) universe@48: AC_SUBST([am__untar]) universe@48: ]) # _AM_PROG_TAR universe@48: