"Fossies" - the Fresh Open Source Software Archive

Member "scalasca-2.6/vendor/otf2/aclocal.m4" (19 Apr 2021, 39614 Bytes) of package /linux/misc/scalasca-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 2.3.1_vs_2.4.

    1 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
    4 
    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 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
   18 [m4_warning([this file was generated for autoconf 2.69.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If you have problems, you may need to regenerate the build system entirely.
   21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
   22 
   23 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
   24 #
   25 # This file is free software; the Free Software Foundation
   26 # gives unlimited permission to copy and/or distribute it,
   27 # with or without modifications, as long as this notice is preserved.
   28 
   29 # AM_AUTOMAKE_VERSION(VERSION)
   30 # ----------------------------
   31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
   32 # generated from the m4 files accompanying Automake X.Y.
   33 # (This private macro should not be called outside this file.)
   34 AC_DEFUN([AM_AUTOMAKE_VERSION],
   35 [am__api_version='1.13'
   36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
   37 dnl require some minimum version.  Point them to the right macro.
   38 m4_if([$1], [1.13.4], [],
   39       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
   40 ])
   41 
   42 # _AM_AUTOCONF_VERSION(VERSION)
   43 # -----------------------------
   44 # aclocal traces this macro to find the Autoconf version.
   45 # This is a private macro too.  Using m4_define simplifies
   46 # the logic in aclocal, which can simply ignore this definition.
   47 m4_define([_AM_AUTOCONF_VERSION], [])
   48 
   49 # AM_SET_CURRENT_AUTOMAKE_VERSION
   50 # -------------------------------
   51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
   52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
   53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   54 [AM_AUTOMAKE_VERSION([1.13.4])dnl
   55 m4_ifndef([AC_AUTOCONF_VERSION],
   56   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
   58 
   59 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
   60 
   61 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
   62 #
   63 # This file is free software; the Free Software Foundation
   64 # gives unlimited permission to copy and/or distribute it,
   65 # with or without modifications, as long as this notice is preserved.
   66 
   67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   68 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
   69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
   70 #
   71 # Of course, Automake must honor this variable whenever it calls a
   72 # tool from the auxiliary directory.  The problem is that $srcdir (and
   73 # therefore $ac_aux_dir as well) can be either absolute or relative,
   74 # depending on how configure is run.  This is pretty annoying, since
   75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
   76 # source directory, any form will work fine, but in subdirectories a
   77 # relative path needs to be adjusted first.
   78 #
   79 # $ac_aux_dir/missing
   80 #    fails when called from a subdirectory if $ac_aux_dir is relative
   81 # $top_srcdir/$ac_aux_dir/missing
   82 #    fails if $ac_aux_dir is absolute,
   83 #    fails when called from a subdirectory in a VPATH build with
   84 #          a relative $ac_aux_dir
   85 #
   86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   87 # are both prefixed by $srcdir.  In an in-source build this is usually
   88 # harmless because $srcdir is '.', but things will broke when you
   89 # start a VPATH build or use an absolute $srcdir.
   90 #
   91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   92 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   93 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   94 # and then we would define $MISSING as
   95 #   MISSING="\${SHELL} $am_aux_dir/missing"
   96 # This will work as long as MISSING is not called from configure, because
   97 # unfortunately $(top_srcdir) has no meaning in configure.
   98 # However there are other variables, like CC, which are often used in
   99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
  100 #
  101 # Another solution, used here, is to always expand $ac_aux_dir to an
  102 # absolute PATH.  The drawback is that using absolute paths prevent a
  103 # configured tree to be moved without reconfiguration.
  104 
  105 AC_DEFUN([AM_AUX_DIR_EXPAND],
  106 [dnl Rely on autoconf to set up CDPATH properly.
  107 AC_PREREQ([2.50])dnl
  108 # expand $ac_aux_dir to an absolute path
  109 am_aux_dir=`cd $ac_aux_dir && pwd`
  110 ])
  111 
  112 # AM_COND_IF                                            -*- Autoconf -*-
  113 
  114 # Copyright (C) 2008-2013 Free Software Foundation, Inc.
  115 #
  116 # This file is free software; the Free Software Foundation
  117 # gives unlimited permission to copy and/or distribute it,
  118 # with or without modifications, as long as this notice is preserved.
  119 
  120 # _AM_COND_IF
  121 # _AM_COND_ELSE
  122 # _AM_COND_ENDIF
  123 # --------------
  124 # These macros are only used for tracing.
  125 m4_define([_AM_COND_IF])
  126 m4_define([_AM_COND_ELSE])
  127 m4_define([_AM_COND_ENDIF])
  128 
  129 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
  130 # ---------------------------------------
  131 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
  132 # IF-FALSE.  Allow automake to learn about conditional instantiating macros
  133 # (the AC_CONFIG_FOOS).
  134 AC_DEFUN([AM_COND_IF],
  135 [m4_ifndef([_AM_COND_VALUE_$1],
  136 	   [m4_fatal([$0: no such condition "$1"])])dnl
  137 _AM_COND_IF([$1])dnl
  138 if test -z "$$1_TRUE"; then :
  139   m4_n([$2])[]dnl
  140 m4_ifval([$3],
  141 [_AM_COND_ELSE([$1])dnl
  142 else
  143   $3
  144 ])dnl
  145 _AM_COND_ENDIF([$1])dnl
  146 fi[]dnl
  147 ])
  148 
  149 # AM_CONDITIONAL                                            -*- Autoconf -*-
  150 
  151 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  152 #
  153 # This file is free software; the Free Software Foundation
  154 # gives unlimited permission to copy and/or distribute it,
  155 # with or without modifications, as long as this notice is preserved.
  156 
  157 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  158 # -------------------------------------
  159 # Define a conditional.
  160 AC_DEFUN([AM_CONDITIONAL],
  161 [AC_PREREQ([2.52])dnl
  162  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  163        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  164 AC_SUBST([$1_TRUE])dnl
  165 AC_SUBST([$1_FALSE])dnl
  166 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  167 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  168 m4_define([_AM_COND_VALUE_$1], [$2])dnl
  169 if $2; then
  170   $1_TRUE=
  171   $1_FALSE='#'
  172 else
  173   $1_TRUE='#'
  174   $1_FALSE=
  175 fi
  176 AC_CONFIG_COMMANDS_PRE(
  177 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  178   AC_MSG_ERROR([[conditional "$1" was never defined.
  179 Usually this means the macro was only invoked conditionally.]])
  180 fi])])
  181 
  182 # Do all the work for Automake.                             -*- Autoconf -*-
  183 
  184 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  185 #
  186 # This file is free software; the Free Software Foundation
  187 # gives unlimited permission to copy and/or distribute it,
  188 # with or without modifications, as long as this notice is preserved.
  189 
  190 # This macro actually does too much.  Some checks are only needed if
  191 # your package does certain things.  But this isn't really a big deal.
  192 
  193 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  194 # AM_INIT_AUTOMAKE([OPTIONS])
  195 # -----------------------------------------------
  196 # The call with PACKAGE and VERSION arguments is the old style
  197 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
  198 # and VERSION should now be passed to AC_INIT and removed from
  199 # the call to AM_INIT_AUTOMAKE.
  200 # We support both call styles for the transition.  After
  201 # the next Automake release, Autoconf can make the AC_INIT
  202 # arguments mandatory, and then we can depend on a new Autoconf
  203 # release and drop the old call support.
  204 AC_DEFUN([AM_INIT_AUTOMAKE],
  205 [AC_PREREQ([2.65])dnl
  206 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  207 dnl the ones we care about.
  208 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  209 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  210 AC_REQUIRE([AC_PROG_INSTALL])dnl
  211 if test "`cd $srcdir && pwd`" != "`pwd`"; then
  212   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  213   # is not polluted with repeated "-I."
  214   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  215   # test to see if srcdir already configured
  216   if test -f $srcdir/config.status; then
  217     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  218   fi
  219 fi
  220 
  221 # test whether we have cygpath
  222 if test -z "$CYGPATH_W"; then
  223   if (cygpath --version) >/dev/null 2>/dev/null; then
  224     CYGPATH_W='cygpath -w'
  225   else
  226     CYGPATH_W=echo
  227   fi
  228 fi
  229 AC_SUBST([CYGPATH_W])
  230 
  231 # Define the identity of the package.
  232 dnl Distinguish between old-style and new-style calls.
  233 m4_ifval([$2],
  234 [AC_DIAGNOSE([obsolete],
  235              [$0: two- and three-arguments forms are deprecated.])
  236 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  237  AC_SUBST([PACKAGE], [$1])dnl
  238  AC_SUBST([VERSION], [$2])],
  239 [_AM_SET_OPTIONS([$1])dnl
  240 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  241 m4_if(
  242   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  243   [ok:ok],,
  244   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  245  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  246  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  247 
  248 _AM_IF_OPTION([no-define],,
  249 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  250  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  251 
  252 # Some tools Automake needs.
  253 AC_REQUIRE([AM_SANITY_CHECK])dnl
  254 AC_REQUIRE([AC_ARG_PROGRAM])dnl
  255 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  256 AM_MISSING_PROG([AUTOCONF], [autoconf])
  257 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  258 AM_MISSING_PROG([AUTOHEADER], [autoheader])
  259 AM_MISSING_PROG([MAKEINFO], [makeinfo])
  260 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  261 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  262 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  263 # For better backward compatibility.  To be removed once Automake 1.9.x
  264 # dies out for good.  For more background, see:
  265 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  266 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  267 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  268 # We need awk for the "check" target.  The system "awk" is bad on
  269 # some platforms.
  270 AC_REQUIRE([AC_PROG_AWK])dnl
  271 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  272 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  273 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  274 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  275 			     [_AM_PROG_TAR([v7])])])
  276 _AM_IF_OPTION([no-dependencies],,
  277 [AC_PROVIDE_IFELSE([AC_PROG_CC],
  278 		  [_AM_DEPENDENCIES([CC])],
  279 		  [m4_define([AC_PROG_CC],
  280 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  281 AC_PROVIDE_IFELSE([AC_PROG_CXX],
  282 		  [_AM_DEPENDENCIES([CXX])],
  283 		  [m4_define([AC_PROG_CXX],
  284 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  285 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  286 		  [_AM_DEPENDENCIES([OBJC])],
  287 		  [m4_define([AC_PROG_OBJC],
  288 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  289 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  290 		  [_AM_DEPENDENCIES([OBJCXX])],
  291 		  [m4_define([AC_PROG_OBJCXX],
  292 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  293 ])
  294 AC_REQUIRE([AM_SILENT_RULES])dnl
  295 dnl The testsuite driver may need to know about EXEEXT, so add the
  296 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
  297 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  298 AC_CONFIG_COMMANDS_PRE(dnl
  299 [m4_provide_if([_AM_COMPILER_EXEEXT],
  300   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  301 ])
  302 
  303 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
  304 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  305 dnl mangled by Autoconf and run in a shell conditional statement.
  306 m4_define([_AC_COMPILER_EXEEXT],
  307 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  308 
  309 
  310 # When config.status generates a header, we must update the stamp-h file.
  311 # This file resides in the same directory as the config header
  312 # that is generated.  The stamp files are numbered to have different names.
  313 
  314 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  315 # loop where config.status creates the headers, so we can generate
  316 # our stamp files there.
  317 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  318 [# Compute $1's index in $config_headers.
  319 _am_arg=$1
  320 _am_stamp_count=1
  321 for _am_header in $config_headers :; do
  322   case $_am_header in
  323     $_am_arg | $_am_arg:* )
  324       break ;;
  325     * )
  326       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  327   esac
  328 done
  329 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  330 
  331 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  332 #
  333 # This file is free software; the Free Software Foundation
  334 # gives unlimited permission to copy and/or distribute it,
  335 # with or without modifications, as long as this notice is preserved.
  336 
  337 # AM_PROG_INSTALL_SH
  338 # ------------------
  339 # Define $install_sh.
  340 AC_DEFUN([AM_PROG_INSTALL_SH],
  341 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  342 if test x"${install_sh}" != xset; then
  343   case $am_aux_dir in
  344   *\ * | *\	*)
  345     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  346   *)
  347     install_sh="\${SHELL} $am_aux_dir/install-sh"
  348   esac
  349 fi
  350 AC_SUBST([install_sh])])
  351 
  352 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  353 #
  354 # This file is free software; the Free Software Foundation
  355 # gives unlimited permission to copy and/or distribute it,
  356 # with or without modifications, as long as this notice is preserved.
  357 
  358 # Check whether the underlying file-system supports filenames
  359 # with a leading dot.  For instance MS-DOS doesn't.
  360 AC_DEFUN([AM_SET_LEADING_DOT],
  361 [rm -rf .tst 2>/dev/null
  362 mkdir .tst 2>/dev/null
  363 if test -d .tst; then
  364   am__leading_dot=.
  365 else
  366   am__leading_dot=_
  367 fi
  368 rmdir .tst 2>/dev/null
  369 AC_SUBST([am__leading_dot])])
  370 
  371 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
  372 # From Jim Meyering
  373 
  374 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  375 #
  376 # This file is free software; the Free Software Foundation
  377 # gives unlimited permission to copy and/or distribute it,
  378 # with or without modifications, as long as this notice is preserved.
  379 
  380 # AM_MAINTAINER_MODE([DEFAULT-MODE])
  381 # ----------------------------------
  382 # Control maintainer-specific portions of Makefiles.
  383 # Default is to disable them, unless 'enable' is passed literally.
  384 # For symmetry, 'disable' may be passed as well.  Anyway, the user
  385 # can override the default with the --enable/--disable switch.
  386 AC_DEFUN([AM_MAINTAINER_MODE],
  387 [m4_case(m4_default([$1], [disable]),
  388        [enable], [m4_define([am_maintainer_other], [disable])],
  389        [disable], [m4_define([am_maintainer_other], [enable])],
  390        [m4_define([am_maintainer_other], [enable])
  391         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  392 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  393   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  394   AC_ARG_ENABLE([maintainer-mode],
  395     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  396       am_maintainer_other[ make rules and dependencies not useful
  397       (and sometimes confusing) to the casual installer])],
  398     [USE_MAINTAINER_MODE=$enableval],
  399     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  400   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  401   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  402   MAINT=$MAINTAINER_MODE_TRUE
  403   AC_SUBST([MAINT])dnl
  404 ]
  405 )
  406 
  407 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  408 
  409 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  410 #
  411 # This file is free software; the Free Software Foundation
  412 # gives unlimited permission to copy and/or distribute it,
  413 # with or without modifications, as long as this notice is preserved.
  414 
  415 # AM_MISSING_PROG(NAME, PROGRAM)
  416 # ------------------------------
  417 AC_DEFUN([AM_MISSING_PROG],
  418 [AC_REQUIRE([AM_MISSING_HAS_RUN])
  419 $1=${$1-"${am_missing_run}$2"}
  420 AC_SUBST($1)])
  421 
  422 # AM_MISSING_HAS_RUN
  423 # ------------------
  424 # Define MISSING if not defined so far and test if it is modern enough.
  425 # If it is, set am_missing_run to use it, otherwise, to nothing.
  426 AC_DEFUN([AM_MISSING_HAS_RUN],
  427 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  428 AC_REQUIRE_AUX_FILE([missing])dnl
  429 if test x"${MISSING+set}" != xset; then
  430   case $am_aux_dir in
  431   *\ * | *\	*)
  432     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  433   *)
  434     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  435   esac
  436 fi
  437 # Use eval to expand $SHELL
  438 if eval "$MISSING --is-lightweight"; then
  439   am_missing_run="$MISSING "
  440 else
  441   am_missing_run=
  442   AC_MSG_WARN(['missing' script is too old or missing])
  443 fi
  444 ])
  445 
  446 # Helper functions for option handling.                     -*- Autoconf -*-
  447 
  448 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  449 #
  450 # This file is free software; the Free Software Foundation
  451 # gives unlimited permission to copy and/or distribute it,
  452 # with or without modifications, as long as this notice is preserved.
  453 
  454 # _AM_MANGLE_OPTION(NAME)
  455 # -----------------------
  456 AC_DEFUN([_AM_MANGLE_OPTION],
  457 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  458 
  459 # _AM_SET_OPTION(NAME)
  460 # --------------------
  461 # Set option NAME.  Presently that only means defining a flag for this option.
  462 AC_DEFUN([_AM_SET_OPTION],
  463 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  464 
  465 # _AM_SET_OPTIONS(OPTIONS)
  466 # ------------------------
  467 # OPTIONS is a space-separated list of Automake options.
  468 AC_DEFUN([_AM_SET_OPTIONS],
  469 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  470 
  471 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  472 # -------------------------------------------
  473 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  474 AC_DEFUN([_AM_IF_OPTION],
  475 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  476 
  477 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  478 #
  479 # This file is free software; the Free Software Foundation
  480 # gives unlimited permission to copy and/or distribute it,
  481 # with or without modifications, as long as this notice is preserved.
  482 
  483 
  484 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  485 # ---------------------------------------------------------------------------
  486 # Adds support for distributing Python modules and packages.  To
  487 # install modules, copy them to $(pythondir), using the python_PYTHON
  488 # automake variable.  To install a package with the same name as the
  489 # automake package, install to $(pkgpythondir), or use the
  490 # pkgpython_PYTHON automake variable.
  491 #
  492 # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
  493 # locations to install python extension modules (shared libraries).
  494 # Another macro is required to find the appropriate flags to compile
  495 # extension modules.
  496 #
  497 # If your package is configured with a different prefix to python,
  498 # users will have to add the install directory to the PYTHONPATH
  499 # environment variable, or create a .pth file (see the python
  500 # documentation for details).
  501 #
  502 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
  503 # cause an error if the version of python installed on the system
  504 # doesn't meet the requirement.  MINIMUM-VERSION should consist of
  505 # numbers and dots only.
  506 AC_DEFUN([AM_PATH_PYTHON],
  507  [
  508   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
  509   dnl supported. (2.0 was released on October 16, 2000).
  510   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
  511 [python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
  512  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
  513 
  514   AC_ARG_VAR([PYTHON], [the Python interpreter])
  515 
  516   m4_if([$1],[],[
  517     dnl No version check is needed.
  518     # Find any Python interpreter.
  519     if test -z "$PYTHON"; then
  520       AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
  521     fi
  522     am_display_PYTHON=python
  523   ], [
  524     dnl A version check is needed.
  525     if test -n "$PYTHON"; then
  526       # If the user set $PYTHON, use it and don't search something else.
  527       AC_MSG_CHECKING([whether $PYTHON version is >= $1])
  528       AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
  529 			      [AC_MSG_RESULT([yes])],
  530 			      [AC_MSG_RESULT([no])
  531 			       AC_MSG_ERROR([Python interpreter is too old])])
  532       am_display_PYTHON=$PYTHON
  533     else
  534       # Otherwise, try each interpreter until we find one that satisfies
  535       # VERSION.
  536       AC_CACHE_CHECK([for a Python interpreter with version >= $1],
  537 	[am_cv_pathless_PYTHON],[
  538 	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
  539 	  test "$am_cv_pathless_PYTHON" = none && break
  540 	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
  541 	done])
  542       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  543       if test "$am_cv_pathless_PYTHON" = none; then
  544 	PYTHON=:
  545       else
  546         AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
  547       fi
  548       am_display_PYTHON=$am_cv_pathless_PYTHON
  549     fi
  550   ])
  551 
  552   if test "$PYTHON" = :; then
  553   dnl Run any user-specified action, or abort.
  554     m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
  555   else
  556 
  557   dnl Query Python for its version number.  Although site.py simply uses
  558   dnl sys.version[:3], printing that failed with Python 3.10, since the
  559   dnl trailing zero was eliminated. So now we output just the major
  560   dnl and minor version numbers, as numbers. Apparently the tertiary
  561   dnl version is not of interest.
  562 
  563   AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
  564     [am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[[:2]])"`])
  565   AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
  566 
  567   dnl Use the values of $prefix and $exec_prefix for the corresponding
  568   dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
  569   dnl distinct variables so they can be overridden if need be.  However,
  570   dnl general consensus is that you shouldn't need this ability.
  571 
  572   AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
  573   AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
  574 
  575   dnl At times (like when building shared libraries) you may want
  576   dnl to know which OS platform Python thinks this is.
  577 
  578   AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
  579     [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
  580   AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
  581 
  582   # Just factor out some code duplication.
  583   am_python_setup_sysconfig="\
  584 import sys
  585 # Prefer sysconfig over distutils.sysconfig, for better compatibility
  586 # with python 3.x.  See automake bug#10227.
  587 try:
  588     import sysconfig
  589 except ImportError:
  590     can_use_sysconfig = 0
  591 else:
  592     can_use_sysconfig = 1
  593 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
  594 # <https://github.com/pypa/virtualenv/issues/118>
  595 try:
  596     from platform import python_implementation
  597     if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
  598         can_use_sysconfig = 0
  599 except ImportError:
  600     pass"
  601 
  602   dnl Set up 4 directories:
  603 
  604   dnl pythondir -- where to install python scripts.  This is the
  605   dnl   site-packages directory, not the python standard library
  606   dnl   directory like in previous automake betas.  This behavior
  607   dnl   is more consistent with lispdir.m4 for example.
  608   dnl Query distutils for this directory.
  609   AC_CACHE_CHECK([for $am_display_PYTHON script directory],
  610     [am_cv_python_pythondir],
  611     [if test "x$prefix" = xNONE
  612      then
  613        am_py_prefix=$ac_default_prefix
  614      else
  615        am_py_prefix=$prefix
  616      fi
  617      am_cv_python_pythondir=`$PYTHON -c "
  618 $am_python_setup_sysconfig
  619 if can_use_sysconfig:
  620     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
  621 else:
  622     from distutils import sysconfig
  623     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
  624 sys.stdout.write(sitedir)"`
  625      case $am_cv_python_pythondir in
  626      $am_py_prefix*)
  627        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  628        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  629        ;;
  630      *)
  631        case $am_py_prefix in
  632          /usr|/System*) ;;
  633          *)
  634 	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  635 	  ;;
  636        esac
  637        ;;
  638      esac
  639     ])
  640   AC_SUBST([pythondir], [$am_cv_python_pythondir])
  641 
  642   dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
  643   dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
  644   dnl   more consistent with the rest of automake.
  645 
  646   AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
  647 
  648   dnl pyexecdir -- directory for installing python extension modules
  649   dnl   (shared libraries)
  650   dnl Query distutils for this directory.
  651   AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
  652     [am_cv_python_pyexecdir],
  653     [if test "x$exec_prefix" = xNONE
  654      then
  655        am_py_exec_prefix=$am_py_prefix
  656      else
  657        am_py_exec_prefix=$exec_prefix
  658      fi
  659      am_cv_python_pyexecdir=`$PYTHON -c "
  660 $am_python_setup_sysconfig
  661 if can_use_sysconfig:
  662     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
  663 else:
  664     from distutils import sysconfig
  665     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
  666 sys.stdout.write(sitedir)"`
  667      case $am_cv_python_pyexecdir in
  668      $am_py_exec_prefix*)
  669        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  670        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  671        ;;
  672      *)
  673        case $am_py_exec_prefix in
  674          /usr|/System*) ;;
  675          *)
  676 	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  677 	   ;;
  678        esac
  679        ;;
  680      esac
  681     ])
  682   AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
  683 
  684   dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
  685 
  686   AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
  687 
  688   dnl Run any user-specified action.
  689   $2
  690   fi
  691 
  692 ])
  693 
  694 
  695 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
  696 # ---------------------------------------------------------------------------
  697 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
  698 # Run ACTION-IF-FALSE otherwise.
  699 # This test uses sys.hexversion instead of the string equivalent (first
  700 # word of sys.version), in order to cope with versions such as 2.2c1.
  701 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
  702 AC_DEFUN([AM_PYTHON_CHECK_VERSION],
  703  [prog="import sys
  704 # split strings by '.' and convert to numeric.  Append some zeros
  705 # because we need at least 4 digits for the hex conversion.
  706 # map returns an iterator in Python 3.0 and a list in 2.x
  707 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
  708 minverhex = 0
  709 # xrange is not present in Python 3.0 and range returns an iterator
  710 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
  711 sys.exit(sys.hexversion < minverhex)"
  712   AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
  713 
  714 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  715 #
  716 # This file is free software; the Free Software Foundation
  717 # gives unlimited permission to copy and/or distribute it,
  718 # with or without modifications, as long as this notice is preserved.
  719 
  720 # AM_RUN_LOG(COMMAND)
  721 # -------------------
  722 # Run COMMAND, save the exit status in ac_status, and log it.
  723 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  724 AC_DEFUN([AM_RUN_LOG],
  725 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  726    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  727    ac_status=$?
  728    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  729    (exit $ac_status); }])
  730 
  731 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
  732 
  733 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  734 #
  735 # This file is free software; the Free Software Foundation
  736 # gives unlimited permission to copy and/or distribute it,
  737 # with or without modifications, as long as this notice is preserved.
  738 
  739 # AM_SANITY_CHECK
  740 # ---------------
  741 AC_DEFUN([AM_SANITY_CHECK],
  742 [AC_MSG_CHECKING([whether build environment is sane])
  743 # Reject unsafe characters in $srcdir or the absolute working directory
  744 # name.  Accept space and tab only in the latter.
  745 am_lf='
  746 '
  747 case `pwd` in
  748   *[[\\\"\#\$\&\'\`$am_lf]]*)
  749     AC_MSG_ERROR([unsafe absolute working directory name]);;
  750 esac
  751 case $srcdir in
  752   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
  753     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  754 esac
  755 
  756 # Do 'set' in a subshell so we don't clobber the current shell's
  757 # arguments.  Must try -L first in case configure is actually a
  758 # symlink; some systems play weird games with the mod time of symlinks
  759 # (eg FreeBSD returns the mod time of the symlink's containing
  760 # directory).
  761 if (
  762    am_has_slept=no
  763    for am_try in 1 2; do
  764      echo "timestamp, slept: $am_has_slept" > conftest.file
  765      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  766      if test "$[*]" = "X"; then
  767 	# -L didn't work.
  768 	set X `ls -t "$srcdir/configure" conftest.file`
  769      fi
  770      if test "$[*]" != "X $srcdir/configure conftest.file" \
  771 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
  772 
  773 	# If neither matched, then we have a broken ls.  This can happen
  774 	# if, for instance, CONFIG_SHELL is bash and it inherits a
  775 	# broken ls alias from the environment.  This has actually
  776 	# happened.  Such a system could not be considered "sane".
  777 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  778   alias in your environment])
  779      fi
  780      if test "$[2]" = conftest.file || test $am_try -eq 2; then
  781        break
  782      fi
  783      # Just in case.
  784      sleep 1
  785      am_has_slept=yes
  786    done
  787    test "$[2]" = conftest.file
  788    )
  789 then
  790    # Ok.
  791    :
  792 else
  793    AC_MSG_ERROR([newly created file is older than distributed files!
  794 Check your system clock])
  795 fi
  796 AC_MSG_RESULT([yes])
  797 # If we didn't sleep, we still need to ensure time stamps of config.status and
  798 # generated files are strictly newer.
  799 am_sleep_pid=
  800 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  801   ( sleep 1 ) &
  802   am_sleep_pid=$!
  803 fi
  804 AC_CONFIG_COMMANDS_PRE(
  805   [AC_MSG_CHECKING([that generated files are newer than configure])
  806    if test -n "$am_sleep_pid"; then
  807      # Hide warnings about reused PIDs.
  808      wait $am_sleep_pid 2>/dev/null
  809    fi
  810    AC_MSG_RESULT([done])])
  811 rm -f conftest.file
  812 ])
  813 
  814 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  815 #
  816 # This file is free software; the Free Software Foundation
  817 # gives unlimited permission to copy and/or distribute it,
  818 # with or without modifications, as long as this notice is preserved.
  819 
  820 # AM_SILENT_RULES([DEFAULT])
  821 # --------------------------
  822 # Enable less verbose build rules; with the default set to DEFAULT
  823 # ("yes" being less verbose, "no" or empty being verbose).
  824 AC_DEFUN([AM_SILENT_RULES],
  825 [AC_ARG_ENABLE([silent-rules], [dnl
  826 AS_HELP_STRING(
  827   [--enable-silent-rules],
  828   [less verbose build output (undo: "make V=1")])
  829 AS_HELP_STRING(
  830   [--disable-silent-rules],
  831   [verbose build output (undo: "make V=0")])dnl
  832 ])
  833 case $enable_silent_rules in @%:@ (((
  834   yes) AM_DEFAULT_VERBOSITY=0;;
  835    no) AM_DEFAULT_VERBOSITY=1;;
  836     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  837 esac
  838 dnl
  839 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  840 dnl do not support nested variable expansions.
  841 dnl See automake bug#9928 and bug#10237.
  842 am_make=${MAKE-make}
  843 AC_CACHE_CHECK([whether $am_make supports nested variables],
  844    [am_cv_make_support_nested_variables],
  845    [if AS_ECHO([['TRUE=$(BAR$(V))
  846 BAR0=false
  847 BAR1=true
  848 V=1
  849 am__doit:
  850 	@$(TRUE)
  851 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  852   am_cv_make_support_nested_variables=yes
  853 else
  854   am_cv_make_support_nested_variables=no
  855 fi])
  856 if test $am_cv_make_support_nested_variables = yes; then
  857   dnl Using '$V' instead of '$(V)' breaks IRIX make.
  858   AM_V='$(V)'
  859   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  860 else
  861   AM_V=$AM_DEFAULT_VERBOSITY
  862   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  863 fi
  864 AC_SUBST([AM_V])dnl
  865 AM_SUBST_NOTMAKE([AM_V])dnl
  866 AC_SUBST([AM_DEFAULT_V])dnl
  867 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  868 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  869 AM_BACKSLASH='\'
  870 AC_SUBST([AM_BACKSLASH])dnl
  871 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  872 ])
  873 
  874 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  875 #
  876 # This file is free software; the Free Software Foundation
  877 # gives unlimited permission to copy and/or distribute it,
  878 # with or without modifications, as long as this notice is preserved.
  879 
  880 # AM_PROG_INSTALL_STRIP
  881 # ---------------------
  882 # One issue with vendor 'install' (even GNU) is that you can't
  883 # specify the program used to strip binaries.  This is especially
  884 # annoying in cross-compiling environments, where the build's strip
  885 # is unlikely to handle the host's binaries.
  886 # Fortunately install-sh will honor a STRIPPROG variable, so we
  887 # always use install-sh in "make install-strip", and initialize
  888 # STRIPPROG with the value of the STRIP variable (set by the user).
  889 AC_DEFUN([AM_PROG_INSTALL_STRIP],
  890 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  891 # Installed binaries are usually stripped using 'strip' when the user
  892 # run "make install-strip".  However 'strip' might not be the right
  893 # tool to use in cross-compilation environments, therefore Automake
  894 # will honor the 'STRIP' environment variable to overrule this program.
  895 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  896 if test "$cross_compiling" != no; then
  897   AC_CHECK_TOOL([STRIP], [strip], :)
  898 fi
  899 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  900 AC_SUBST([INSTALL_STRIP_PROGRAM])])
  901 
  902 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  903 #
  904 # This file is free software; the Free Software Foundation
  905 # gives unlimited permission to copy and/or distribute it,
  906 # with or without modifications, as long as this notice is preserved.
  907 
  908 # _AM_SUBST_NOTMAKE(VARIABLE)
  909 # ---------------------------
  910 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  911 # This macro is traced by Automake.
  912 AC_DEFUN([_AM_SUBST_NOTMAKE])
  913 
  914 # AM_SUBST_NOTMAKE(VARIABLE)
  915 # --------------------------
  916 # Public sister of _AM_SUBST_NOTMAKE.
  917 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  918 
  919 # Check how to create a tarball.                            -*- Autoconf -*-
  920 
  921 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  922 #
  923 # This file is free software; the Free Software Foundation
  924 # gives unlimited permission to copy and/or distribute it,
  925 # with or without modifications, as long as this notice is preserved.
  926 
  927 # _AM_PROG_TAR(FORMAT)
  928 # --------------------
  929 # Check how to create a tarball in format FORMAT.
  930 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  931 #
  932 # Substitute a variable $(am__tar) that is a command
  933 # writing to stdout a FORMAT-tarball containing the directory
  934 # $tardir.
  935 #     tardir=directory && $(am__tar) > result.tar
  936 #
  937 # Substitute a variable $(am__untar) that extract such
  938 # a tarball read from stdin.
  939 #     $(am__untar) < result.tar
  940 #
  941 AC_DEFUN([_AM_PROG_TAR],
  942 [# Always define AMTAR for backward compatibility.  Yes, it's still used
  943 # in the wild :-(  We should find a proper way to deprecate it ...
  944 AC_SUBST([AMTAR], ['$${TAR-tar}'])
  945 
  946 # We'll loop over all known methods to create a tar archive until one works.
  947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  948 
  949 m4_if([$1], [v7],
  950   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  951 
  952   [m4_case([$1],
  953     [ustar],
  954      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  955       # There is notably a 21 bits limit for the UID and the GID.  In fact,
  956       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  957       # and bug#13588).
  958       am_max_uid=2097151 # 2^21 - 1
  959       am_max_gid=$am_max_uid
  960       # The $UID and $GID variables are not portable, so we need to resort
  961       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
  962       # below are definitely unexpected, so allow the users to see them
  963       # (that is, avoid stderr redirection).
  964       am_uid=`id -u || echo unknown`
  965       am_gid=`id -g || echo unknown`
  966       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  967       if test $am_uid -le $am_max_uid; then
  968          AC_MSG_RESULT([yes])
  969       else
  970          AC_MSG_RESULT([no])
  971          _am_tools=none
  972       fi
  973       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  974       if test $am_gid -le $am_max_gid; then
  975          AC_MSG_RESULT([yes])
  976       else
  977         AC_MSG_RESULT([no])
  978         _am_tools=none
  979       fi],
  980 
  981   [pax],
  982     [],
  983 
  984   [m4_fatal([Unknown tar format])])
  985 
  986   AC_MSG_CHECKING([how to create a $1 tar archive])
  987 
  988   # Go ahead even if we have the value already cached.  We do so because we
  989   # need to set the values for the 'am__tar' and 'am__untar' variables.
  990   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  991 
  992   for _am_tool in $_am_tools; do
  993     case $_am_tool in
  994     gnutar)
  995       for _am_tar in tar gnutar gtar; do
  996         AM_RUN_LOG([$_am_tar --version]) && break
  997       done
  998       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  999       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 1000       am__untar="$_am_tar -xf -"
 1001       ;;
 1002     plaintar)
 1003       # Must skip GNU tar: if it does not support --format= it doesn't create
 1004       # ustar tarball either.
 1005       (tar --version) >/dev/null 2>&1 && continue
 1006       am__tar='tar chf - "$$tardir"'
 1007       am__tar_='tar chf - "$tardir"'
 1008       am__untar='tar xf -'
 1009       ;;
 1010     pax)
 1011       am__tar='pax -L -x $1 -w "$$tardir"'
 1012       am__tar_='pax -L -x $1 -w "$tardir"'
 1013       am__untar='pax -r'
 1014       ;;
 1015     cpio)
 1016       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 1017       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 1018       am__untar='cpio -i -H $1 -d'
 1019       ;;
 1020     none)
 1021       am__tar=false
 1022       am__tar_=false
 1023       am__untar=false
 1024       ;;
 1025     esac
 1026 
 1027     # If the value was cached, stop now.  We just wanted to have am__tar
 1028     # and am__untar set.
 1029     test -n "${am_cv_prog_tar_$1}" && break
 1030 
 1031     # tar/untar a dummy directory, and stop if the command works.
 1032     rm -rf conftest.dir
 1033     mkdir conftest.dir
 1034     echo GrepMe > conftest.dir/file
 1035     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 1036     rm -rf conftest.dir
 1037     if test -s conftest.tar; then
 1038       AM_RUN_LOG([$am__untar <conftest.tar])
 1039       AM_RUN_LOG([cat conftest.dir/file])
 1040       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 1041     fi
 1042   done
 1043   rm -rf conftest.dir
 1044 
 1045   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 1046   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 1047 
 1048 AC_SUBST([am__tar])
 1049 AC_SUBST([am__untar])
 1050 ]) # _AM_PROG_TAR
 1051 
 1052 m4_include([build-config/common/m4/ac_common_package.m4])
 1053 m4_include([build-config/common/m4/ac_recursive_eval.m4])
 1054 m4_include([build-config/common/m4/ac_scorep_compiler_and_flags.m4])
 1055 m4_include([build-config/common/m4/ac_scorep_doxygen.m4])
 1056 m4_include([build-config/common/m4/ac_scorep_git_controlled.m4])
 1057 m4_include([build-config/common/m4/ac_scorep_sys_detection.m4])
 1058 m4_include([build-config/common/m4/ac_scorep_toplevel_args.m4])
 1059 m4_include([build-config/common/m4/ac_scorep_uncrustify.m4])
 1060 m4_include([build-config/common/m4/ac_scorep_version_and_revision.m4])
 1061 m4_include([build-config/common/m4/afs_am_conditional.m4])
 1062 m4_include([build-config/common/m4/afs_compiler_backend.m4])
 1063 m4_include([build-config/common/m4/afs_debug_option.m4])
 1064 m4_include([build-config/common/m4/afs_maintainer_mode.m4])
 1065 m4_include([build-config/common/m4/afs_summary.m4])
 1066 m4_include([build-config/common/m4/ax_config_subdir.m4])
 1067 m4_include([build-config/m4/ax_python_module.m4])