Home | History | Annotate | Line # | Download | only in libbacktrace
      1  1.1.1.6  mrg # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
      2  1.1.1.6  mrg 
      3  1.1.1.6  mrg # Copyright (C) 1996-2017 Free Software Foundation, Inc.
      4      1.1  mrg 
      5      1.1  mrg # This file is free software; the Free Software Foundation
      6      1.1  mrg # gives unlimited permission to copy and/or distribute it,
      7      1.1  mrg # with or without modifications, as long as this notice is preserved.
      8      1.1  mrg 
      9      1.1  mrg # This program is distributed in the hope that it will be useful,
     10      1.1  mrg # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     11      1.1  mrg # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     12      1.1  mrg # PARTICULAR PURPOSE.
     13      1.1  mrg 
     14  1.1.1.6  mrg m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
     15      1.1  mrg m4_ifndef([AC_AUTOCONF_VERSION],
     16      1.1  mrg   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     17  1.1.1.6  mrg m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
     18  1.1.1.6  mrg [m4_warning([this file was generated for autoconf 2.69.
     19      1.1  mrg You have another version of autoconf.  It may work, but is not guaranteed to.
     20      1.1  mrg If you have problems, you may need to regenerate the build system entirely.
     21  1.1.1.6  mrg To do so, use the procedure documented by the package, typically 'autoreconf'.])])
     22      1.1  mrg 
     23  1.1.1.6  mrg # Copyright (C) 2002-2017 Free Software Foundation, Inc.
     24      1.1  mrg #
     25      1.1  mrg # This file is free software; the Free Software Foundation
     26      1.1  mrg # gives unlimited permission to copy and/or distribute it,
     27      1.1  mrg # with or without modifications, as long as this notice is preserved.
     28      1.1  mrg 
     29      1.1  mrg # AM_AUTOMAKE_VERSION(VERSION)
     30      1.1  mrg # ----------------------------
     31      1.1  mrg # Automake X.Y traces this macro to ensure aclocal.m4 has been
     32      1.1  mrg # generated from the m4 files accompanying Automake X.Y.
     33      1.1  mrg # (This private macro should not be called outside this file.)
     34      1.1  mrg AC_DEFUN([AM_AUTOMAKE_VERSION],
     35  1.1.1.6  mrg [am__api_version='1.15'
     36      1.1  mrg dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
     37      1.1  mrg dnl require some minimum version.  Point them to the right macro.
     38  1.1.1.6  mrg m4_if([$1], [1.15.1], [],
     39      1.1  mrg       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
     40      1.1  mrg ])
     41      1.1  mrg 
     42      1.1  mrg # _AM_AUTOCONF_VERSION(VERSION)
     43      1.1  mrg # -----------------------------
     44      1.1  mrg # aclocal traces this macro to find the Autoconf version.
     45      1.1  mrg # This is a private macro too.  Using m4_define simplifies
     46      1.1  mrg # the logic in aclocal, which can simply ignore this definition.
     47      1.1  mrg m4_define([_AM_AUTOCONF_VERSION], [])
     48      1.1  mrg 
     49      1.1  mrg # AM_SET_CURRENT_AUTOMAKE_VERSION
     50      1.1  mrg # -------------------------------
     51      1.1  mrg # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
     52      1.1  mrg # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
     53      1.1  mrg AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     54  1.1.1.6  mrg [AM_AUTOMAKE_VERSION([1.15.1])dnl
     55      1.1  mrg m4_ifndef([AC_AUTOCONF_VERSION],
     56      1.1  mrg   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     57      1.1  mrg _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
     58      1.1  mrg 
     59      1.1  mrg # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     60      1.1  mrg 
     61  1.1.1.6  mrg # Copyright (C) 2001-2017 Free Software Foundation, Inc.
     62      1.1  mrg #
     63      1.1  mrg # This file is free software; the Free Software Foundation
     64      1.1  mrg # gives unlimited permission to copy and/or distribute it,
     65      1.1  mrg # with or without modifications, as long as this notice is preserved.
     66      1.1  mrg 
     67      1.1  mrg # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     68  1.1.1.6  mrg # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
     69  1.1.1.6  mrg # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
     70      1.1  mrg #
     71      1.1  mrg # Of course, Automake must honor this variable whenever it calls a
     72      1.1  mrg # tool from the auxiliary directory.  The problem is that $srcdir (and
     73      1.1  mrg # therefore $ac_aux_dir as well) can be either absolute or relative,
     74      1.1  mrg # depending on how configure is run.  This is pretty annoying, since
     75      1.1  mrg # it makes $ac_aux_dir quite unusable in subdirectories: in the top
     76      1.1  mrg # source directory, any form will work fine, but in subdirectories a
     77      1.1  mrg # relative path needs to be adjusted first.
     78      1.1  mrg #
     79      1.1  mrg # $ac_aux_dir/missing
     80      1.1  mrg #    fails when called from a subdirectory if $ac_aux_dir is relative
     81      1.1  mrg # $top_srcdir/$ac_aux_dir/missing
     82      1.1  mrg #    fails if $ac_aux_dir is absolute,
     83      1.1  mrg #    fails when called from a subdirectory in a VPATH build with
     84      1.1  mrg #          a relative $ac_aux_dir
     85      1.1  mrg #
     86      1.1  mrg # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
     87      1.1  mrg # are both prefixed by $srcdir.  In an in-source build this is usually
     88  1.1.1.6  mrg # harmless because $srcdir is '.', but things will broke when you
     89      1.1  mrg # start a VPATH build or use an absolute $srcdir.
     90      1.1  mrg #
     91      1.1  mrg # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
     92      1.1  mrg # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
     93      1.1  mrg #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
     94      1.1  mrg # and then we would define $MISSING as
     95      1.1  mrg #   MISSING="\${SHELL} $am_aux_dir/missing"
     96      1.1  mrg # This will work as long as MISSING is not called from configure, because
     97      1.1  mrg # unfortunately $(top_srcdir) has no meaning in configure.
     98      1.1  mrg # However there are other variables, like CC, which are often used in
     99      1.1  mrg # configure, and could therefore not use this "fixed" $ac_aux_dir.
    100      1.1  mrg #
    101      1.1  mrg # Another solution, used here, is to always expand $ac_aux_dir to an
    102      1.1  mrg # absolute PATH.  The drawback is that using absolute paths prevent a
    103      1.1  mrg # configured tree to be moved without reconfiguration.
    104      1.1  mrg 
    105      1.1  mrg AC_DEFUN([AM_AUX_DIR_EXPAND],
    106  1.1.1.6  mrg [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    107  1.1.1.6  mrg # Expand $ac_aux_dir to an absolute path.
    108  1.1.1.6  mrg am_aux_dir=`cd "$ac_aux_dir" && pwd`
    109      1.1  mrg ])
    110      1.1  mrg 
    111      1.1  mrg # AM_CONDITIONAL                                            -*- Autoconf -*-
    112      1.1  mrg 
    113  1.1.1.6  mrg # Copyright (C) 1997-2017 Free Software Foundation, Inc.
    114      1.1  mrg #
    115      1.1  mrg # This file is free software; the Free Software Foundation
    116      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    117      1.1  mrg # with or without modifications, as long as this notice is preserved.
    118      1.1  mrg 
    119      1.1  mrg # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    120      1.1  mrg # -------------------------------------
    121      1.1  mrg # Define a conditional.
    122      1.1  mrg AC_DEFUN([AM_CONDITIONAL],
    123  1.1.1.6  mrg [AC_PREREQ([2.52])dnl
    124  1.1.1.6  mrg  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    125  1.1.1.6  mrg        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    126      1.1  mrg AC_SUBST([$1_TRUE])dnl
    127      1.1  mrg AC_SUBST([$1_FALSE])dnl
    128      1.1  mrg _AM_SUBST_NOTMAKE([$1_TRUE])dnl
    129      1.1  mrg _AM_SUBST_NOTMAKE([$1_FALSE])dnl
    130      1.1  mrg m4_define([_AM_COND_VALUE_$1], [$2])dnl
    131      1.1  mrg if $2; then
    132      1.1  mrg   $1_TRUE=
    133      1.1  mrg   $1_FALSE='#'
    134      1.1  mrg else
    135      1.1  mrg   $1_TRUE='#'
    136      1.1  mrg   $1_FALSE=
    137      1.1  mrg fi
    138      1.1  mrg AC_CONFIG_COMMANDS_PRE(
    139      1.1  mrg [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    140      1.1  mrg   AC_MSG_ERROR([[conditional "$1" was never defined.
    141      1.1  mrg Usually this means the macro was only invoked conditionally.]])
    142      1.1  mrg fi])])
    143      1.1  mrg 
    144      1.1  mrg # Do all the work for Automake.                             -*- Autoconf -*-
    145      1.1  mrg 
    146  1.1.1.6  mrg # Copyright (C) 1996-2017 Free Software Foundation, Inc.
    147      1.1  mrg #
    148      1.1  mrg # This file is free software; the Free Software Foundation
    149      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    150      1.1  mrg # with or without modifications, as long as this notice is preserved.
    151      1.1  mrg 
    152      1.1  mrg # This macro actually does too much.  Some checks are only needed if
    153      1.1  mrg # your package does certain things.  But this isn't really a big deal.
    154      1.1  mrg 
    155  1.1.1.6  mrg dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
    156  1.1.1.6  mrg m4_define([AC_PROG_CC],
    157  1.1.1.6  mrg m4_defn([AC_PROG_CC])
    158  1.1.1.6  mrg [_AM_PROG_CC_C_O
    159  1.1.1.6  mrg ])
    160  1.1.1.6  mrg 
    161      1.1  mrg # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    162      1.1  mrg # AM_INIT_AUTOMAKE([OPTIONS])
    163      1.1  mrg # -----------------------------------------------
    164      1.1  mrg # The call with PACKAGE and VERSION arguments is the old style
    165      1.1  mrg # call (pre autoconf-2.50), which is being phased out.  PACKAGE
    166      1.1  mrg # and VERSION should now be passed to AC_INIT and removed from
    167      1.1  mrg # the call to AM_INIT_AUTOMAKE.
    168      1.1  mrg # We support both call styles for the transition.  After
    169      1.1  mrg # the next Automake release, Autoconf can make the AC_INIT
    170      1.1  mrg # arguments mandatory, and then we can depend on a new Autoconf
    171      1.1  mrg # release and drop the old call support.
    172      1.1  mrg AC_DEFUN([AM_INIT_AUTOMAKE],
    173  1.1.1.6  mrg [AC_PREREQ([2.65])dnl
    174      1.1  mrg dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    175      1.1  mrg dnl the ones we care about.
    176      1.1  mrg m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    177      1.1  mrg AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    178      1.1  mrg AC_REQUIRE([AC_PROG_INSTALL])dnl
    179      1.1  mrg if test "`cd $srcdir && pwd`" != "`pwd`"; then
    180      1.1  mrg   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
    181      1.1  mrg   # is not polluted with repeated "-I."
    182      1.1  mrg   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
    183      1.1  mrg   # test to see if srcdir already configured
    184      1.1  mrg   if test -f $srcdir/config.status; then
    185      1.1  mrg     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    186      1.1  mrg   fi
    187      1.1  mrg fi
    188      1.1  mrg 
    189      1.1  mrg # test whether we have cygpath
    190      1.1  mrg if test -z "$CYGPATH_W"; then
    191      1.1  mrg   if (cygpath --version) >/dev/null 2>/dev/null; then
    192      1.1  mrg     CYGPATH_W='cygpath -w'
    193      1.1  mrg   else
    194      1.1  mrg     CYGPATH_W=echo
    195      1.1  mrg   fi
    196      1.1  mrg fi
    197      1.1  mrg AC_SUBST([CYGPATH_W])
    198      1.1  mrg 
    199      1.1  mrg # Define the identity of the package.
    200      1.1  mrg dnl Distinguish between old-style and new-style calls.
    201      1.1  mrg m4_ifval([$2],
    202  1.1.1.6  mrg [AC_DIAGNOSE([obsolete],
    203  1.1.1.6  mrg              [$0: two- and three-arguments forms are deprecated.])
    204  1.1.1.6  mrg m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
    205      1.1  mrg  AC_SUBST([PACKAGE], [$1])dnl
    206      1.1  mrg  AC_SUBST([VERSION], [$2])],
    207      1.1  mrg [_AM_SET_OPTIONS([$1])dnl
    208      1.1  mrg dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
    209  1.1.1.6  mrg m4_if(
    210  1.1.1.6  mrg   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
    211  1.1.1.6  mrg   [ok:ok],,
    212      1.1  mrg   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
    213      1.1  mrg  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    214      1.1  mrg  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    215      1.1  mrg 
    216      1.1  mrg _AM_IF_OPTION([no-define],,
    217  1.1.1.6  mrg [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
    218  1.1.1.6  mrg  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
    219      1.1  mrg 
    220      1.1  mrg # Some tools Automake needs.
    221      1.1  mrg AC_REQUIRE([AM_SANITY_CHECK])dnl
    222      1.1  mrg AC_REQUIRE([AC_ARG_PROGRAM])dnl
    223  1.1.1.6  mrg AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
    224  1.1.1.6  mrg AM_MISSING_PROG([AUTOCONF], [autoconf])
    225  1.1.1.6  mrg AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
    226  1.1.1.6  mrg AM_MISSING_PROG([AUTOHEADER], [autoheader])
    227  1.1.1.6  mrg AM_MISSING_PROG([MAKEINFO], [makeinfo])
    228      1.1  mrg AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    229      1.1  mrg AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
    230  1.1.1.6  mrg AC_REQUIRE([AC_PROG_MKDIR_P])dnl
    231  1.1.1.6  mrg # For better backward compatibility.  To be removed once Automake 1.9.x
    232  1.1.1.6  mrg # dies out for good.  For more background, see:
    233  1.1.1.6  mrg # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
    234  1.1.1.6  mrg # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
    235  1.1.1.6  mrg AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
    236  1.1.1.6  mrg # We need awk for the "check" target (and possibly the TAP driver).  The
    237  1.1.1.6  mrg # system "awk" is bad on some platforms.
    238      1.1  mrg AC_REQUIRE([AC_PROG_AWK])dnl
    239      1.1  mrg AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    240      1.1  mrg AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    241      1.1  mrg _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
    242      1.1  mrg 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
    243      1.1  mrg 			     [_AM_PROG_TAR([v7])])])
    244      1.1  mrg _AM_IF_OPTION([no-dependencies],,
    245      1.1  mrg [AC_PROVIDE_IFELSE([AC_PROG_CC],
    246  1.1.1.6  mrg 		  [_AM_DEPENDENCIES([CC])],
    247  1.1.1.6  mrg 		  [m4_define([AC_PROG_CC],
    248  1.1.1.6  mrg 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
    249      1.1  mrg AC_PROVIDE_IFELSE([AC_PROG_CXX],
    250  1.1.1.6  mrg 		  [_AM_DEPENDENCIES([CXX])],
    251  1.1.1.6  mrg 		  [m4_define([AC_PROG_CXX],
    252  1.1.1.6  mrg 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
    253      1.1  mrg AC_PROVIDE_IFELSE([AC_PROG_OBJC],
    254  1.1.1.6  mrg 		  [_AM_DEPENDENCIES([OBJC])],
    255  1.1.1.6  mrg 		  [m4_define([AC_PROG_OBJC],
    256  1.1.1.6  mrg 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
    257  1.1.1.6  mrg AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
    258  1.1.1.6  mrg 		  [_AM_DEPENDENCIES([OBJCXX])],
    259  1.1.1.6  mrg 		  [m4_define([AC_PROG_OBJCXX],
    260  1.1.1.6  mrg 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
    261      1.1  mrg ])
    262  1.1.1.6  mrg AC_REQUIRE([AM_SILENT_RULES])dnl
    263  1.1.1.6  mrg dnl The testsuite driver may need to know about EXEEXT, so add the
    264  1.1.1.6  mrg dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
    265  1.1.1.6  mrg dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
    266      1.1  mrg AC_CONFIG_COMMANDS_PRE(dnl
    267      1.1  mrg [m4_provide_if([_AM_COMPILER_EXEEXT],
    268      1.1  mrg   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
    269  1.1.1.6  mrg 
    270  1.1.1.6  mrg # POSIX will say in a future version that running "rm -f" with no argument
    271  1.1.1.6  mrg # is OK; and we want to be able to make that assumption in our Makefile
    272  1.1.1.6  mrg # recipes.  So use an aggressive probe to check that the usage we want is
    273  1.1.1.6  mrg # actually supported "in the wild" to an acceptable degree.
    274  1.1.1.6  mrg # See automake bug#10828.
    275  1.1.1.6  mrg # To make any issue more visible, cause the running configure to be aborted
    276  1.1.1.6  mrg # by default if the 'rm' program in use doesn't match our expectations; the
    277  1.1.1.6  mrg # user can still override this though.
    278  1.1.1.6  mrg if rm -f && rm -fr && rm -rf; then : OK; else
    279  1.1.1.6  mrg   cat >&2 <<'END'
    280  1.1.1.6  mrg Oops!
    281  1.1.1.6  mrg 
    282  1.1.1.6  mrg Your 'rm' program seems unable to run without file operands specified
    283  1.1.1.6  mrg on the command line, even when the '-f' option is present.  This is contrary
    284  1.1.1.6  mrg to the behaviour of most rm programs out there, and not conforming with
    285  1.1.1.6  mrg the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
    286  1.1.1.6  mrg 
    287  1.1.1.6  mrg Please tell bug-automake (a] gnu.org about your system, including the value
    288  1.1.1.6  mrg of your $PATH and any error possibly output before this message.  This
    289  1.1.1.6  mrg can help us improve future automake versions.
    290  1.1.1.6  mrg 
    291  1.1.1.6  mrg END
    292  1.1.1.6  mrg   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    293  1.1.1.6  mrg     echo 'Configuration will proceed anyway, since you have set the' >&2
    294  1.1.1.6  mrg     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    295  1.1.1.6  mrg     echo >&2
    296  1.1.1.6  mrg   else
    297  1.1.1.6  mrg     cat >&2 <<'END'
    298  1.1.1.6  mrg Aborting the configuration process, to ensure you take notice of the issue.
    299  1.1.1.6  mrg 
    300  1.1.1.6  mrg You can download and install GNU coreutils to get an 'rm' implementation
    301  1.1.1.6  mrg that behaves properly: <http://www.gnu.org/software/coreutils/>.
    302  1.1.1.6  mrg 
    303  1.1.1.6  mrg If you want to complete the configuration process using your problematic
    304  1.1.1.6  mrg 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
    305  1.1.1.6  mrg to "yes", and re-run configure.
    306  1.1.1.6  mrg 
    307  1.1.1.6  mrg END
    308  1.1.1.6  mrg     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
    309  1.1.1.6  mrg   fi
    310  1.1.1.6  mrg fi
    311  1.1.1.6  mrg dnl The trailing newline in this macro's definition is deliberate, for
    312  1.1.1.6  mrg dnl backward compatibility and to allow trailing 'dnl'-style comments
    313  1.1.1.6  mrg dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
    314      1.1  mrg ])
    315      1.1  mrg 
    316  1.1.1.6  mrg dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
    317      1.1  mrg dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
    318      1.1  mrg dnl mangled by Autoconf and run in a shell conditional statement.
    319      1.1  mrg m4_define([_AC_COMPILER_EXEEXT],
    320      1.1  mrg m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
    321      1.1  mrg 
    322      1.1  mrg # When config.status generates a header, we must update the stamp-h file.
    323      1.1  mrg # This file resides in the same directory as the config header
    324      1.1  mrg # that is generated.  The stamp files are numbered to have different names.
    325      1.1  mrg 
    326      1.1  mrg # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
    327      1.1  mrg # loop where config.status creates the headers, so we can generate
    328      1.1  mrg # our stamp files there.
    329      1.1  mrg AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    330      1.1  mrg [# Compute $1's index in $config_headers.
    331      1.1  mrg _am_arg=$1
    332      1.1  mrg _am_stamp_count=1
    333      1.1  mrg for _am_header in $config_headers :; do
    334      1.1  mrg   case $_am_header in
    335      1.1  mrg     $_am_arg | $_am_arg:* )
    336      1.1  mrg       break ;;
    337      1.1  mrg     * )
    338      1.1  mrg       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
    339      1.1  mrg   esac
    340      1.1  mrg done
    341      1.1  mrg echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    342      1.1  mrg 
    343  1.1.1.6  mrg # Copyright (C) 2001-2017 Free Software Foundation, Inc.
    344      1.1  mrg #
    345      1.1  mrg # This file is free software; the Free Software Foundation
    346      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    347      1.1  mrg # with or without modifications, as long as this notice is preserved.
    348      1.1  mrg 
    349      1.1  mrg # AM_PROG_INSTALL_SH
    350      1.1  mrg # ------------------
    351      1.1  mrg # Define $install_sh.
    352      1.1  mrg AC_DEFUN([AM_PROG_INSTALL_SH],
    353      1.1  mrg [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    354  1.1.1.6  mrg if test x"${install_sh+set}" != xset; then
    355      1.1  mrg   case $am_aux_dir in
    356      1.1  mrg   *\ * | *\	*)
    357      1.1  mrg     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
    358      1.1  mrg   *)
    359      1.1  mrg     install_sh="\${SHELL} $am_aux_dir/install-sh"
    360      1.1  mrg   esac
    361      1.1  mrg fi
    362  1.1.1.6  mrg AC_SUBST([install_sh])])
    363      1.1  mrg 
    364      1.1  mrg # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
    365      1.1  mrg # From Jim Meyering
    366      1.1  mrg 
    367  1.1.1.6  mrg # Copyright (C) 1996-2017 Free Software Foundation, Inc.
    368      1.1  mrg #
    369      1.1  mrg # This file is free software; the Free Software Foundation
    370      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    371      1.1  mrg # with or without modifications, as long as this notice is preserved.
    372      1.1  mrg 
    373      1.1  mrg # AM_MAINTAINER_MODE([DEFAULT-MODE])
    374      1.1  mrg # ----------------------------------
    375      1.1  mrg # Control maintainer-specific portions of Makefiles.
    376  1.1.1.6  mrg # Default is to disable them, unless 'enable' is passed literally.
    377  1.1.1.6  mrg # For symmetry, 'disable' may be passed as well.  Anyway, the user
    378      1.1  mrg # can override the default with the --enable/--disable switch.
    379      1.1  mrg AC_DEFUN([AM_MAINTAINER_MODE],
    380      1.1  mrg [m4_case(m4_default([$1], [disable]),
    381      1.1  mrg        [enable], [m4_define([am_maintainer_other], [disable])],
    382      1.1  mrg        [disable], [m4_define([am_maintainer_other], [enable])],
    383      1.1  mrg        [m4_define([am_maintainer_other], [enable])
    384      1.1  mrg         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
    385  1.1.1.2  mrg AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
    386      1.1  mrg   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
    387      1.1  mrg   AC_ARG_ENABLE([maintainer-mode],
    388  1.1.1.6  mrg     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
    389  1.1.1.6  mrg       am_maintainer_other[ make rules and dependencies not useful
    390  1.1.1.6  mrg       (and sometimes confusing) to the casual installer])],
    391  1.1.1.6  mrg     [USE_MAINTAINER_MODE=$enableval],
    392  1.1.1.6  mrg     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
    393      1.1  mrg   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
    394      1.1  mrg   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
    395      1.1  mrg   MAINT=$MAINTAINER_MODE_TRUE
    396      1.1  mrg   AC_SUBST([MAINT])dnl
    397      1.1  mrg ]
    398      1.1  mrg )
    399      1.1  mrg 
    400      1.1  mrg # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    401      1.1  mrg 
    402  1.1.1.6  mrg # Copyright (C) 1997-2017 Free Software Foundation, Inc.
    403      1.1  mrg #
    404      1.1  mrg # This file is free software; the Free Software Foundation
    405      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    406      1.1  mrg # with or without modifications, as long as this notice is preserved.
    407      1.1  mrg 
    408      1.1  mrg # AM_MISSING_PROG(NAME, PROGRAM)
    409      1.1  mrg # ------------------------------
    410      1.1  mrg AC_DEFUN([AM_MISSING_PROG],
    411      1.1  mrg [AC_REQUIRE([AM_MISSING_HAS_RUN])
    412      1.1  mrg $1=${$1-"${am_missing_run}$2"}
    413      1.1  mrg AC_SUBST($1)])
    414      1.1  mrg 
    415      1.1  mrg # AM_MISSING_HAS_RUN
    416      1.1  mrg # ------------------
    417  1.1.1.6  mrg # Define MISSING if not defined so far and test if it is modern enough.
    418  1.1.1.6  mrg # If it is, set am_missing_run to use it, otherwise, to nothing.
    419      1.1  mrg AC_DEFUN([AM_MISSING_HAS_RUN],
    420      1.1  mrg [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    421      1.1  mrg AC_REQUIRE_AUX_FILE([missing])dnl
    422      1.1  mrg if test x"${MISSING+set}" != xset; then
    423      1.1  mrg   case $am_aux_dir in
    424      1.1  mrg   *\ * | *\	*)
    425      1.1  mrg     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
    426      1.1  mrg   *)
    427      1.1  mrg     MISSING="\${SHELL} $am_aux_dir/missing" ;;
    428      1.1  mrg   esac
    429      1.1  mrg fi
    430      1.1  mrg # Use eval to expand $SHELL
    431  1.1.1.6  mrg if eval "$MISSING --is-lightweight"; then
    432  1.1.1.6  mrg   am_missing_run="$MISSING "
    433      1.1  mrg else
    434      1.1  mrg   am_missing_run=
    435  1.1.1.6  mrg   AC_MSG_WARN(['missing' script is too old or missing])
    436      1.1  mrg fi
    437      1.1  mrg ])
    438      1.1  mrg 
    439      1.1  mrg # Helper functions for option handling.                     -*- Autoconf -*-
    440      1.1  mrg 
    441  1.1.1.6  mrg # Copyright (C) 2001-2017 Free Software Foundation, Inc.
    442      1.1  mrg #
    443      1.1  mrg # This file is free software; the Free Software Foundation
    444      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    445      1.1  mrg # with or without modifications, as long as this notice is preserved.
    446      1.1  mrg 
    447      1.1  mrg # _AM_MANGLE_OPTION(NAME)
    448      1.1  mrg # -----------------------
    449      1.1  mrg AC_DEFUN([_AM_MANGLE_OPTION],
    450      1.1  mrg [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
    451      1.1  mrg 
    452      1.1  mrg # _AM_SET_OPTION(NAME)
    453  1.1.1.2  mrg # --------------------
    454      1.1  mrg # Set option NAME.  Presently that only means defining a flag for this option.
    455      1.1  mrg AC_DEFUN([_AM_SET_OPTION],
    456  1.1.1.6  mrg [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
    457      1.1  mrg 
    458      1.1  mrg # _AM_SET_OPTIONS(OPTIONS)
    459  1.1.1.2  mrg # ------------------------
    460      1.1  mrg # OPTIONS is a space-separated list of Automake options.
    461      1.1  mrg AC_DEFUN([_AM_SET_OPTIONS],
    462      1.1  mrg [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    463      1.1  mrg 
    464      1.1  mrg # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    465      1.1  mrg # -------------------------------------------
    466      1.1  mrg # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
    467      1.1  mrg AC_DEFUN([_AM_IF_OPTION],
    468      1.1  mrg [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    469      1.1  mrg 
    470  1.1.1.6  mrg # Copyright (C) 1999-2017 Free Software Foundation, Inc.
    471  1.1.1.6  mrg #
    472  1.1.1.6  mrg # This file is free software; the Free Software Foundation
    473  1.1.1.6  mrg # gives unlimited permission to copy and/or distribute it,
    474  1.1.1.6  mrg # with or without modifications, as long as this notice is preserved.
    475  1.1.1.6  mrg 
    476  1.1.1.6  mrg # _AM_PROG_CC_C_O
    477  1.1.1.6  mrg # ---------------
    478  1.1.1.6  mrg # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
    479  1.1.1.6  mrg # to automatically call this.
    480  1.1.1.6  mrg AC_DEFUN([_AM_PROG_CC_C_O],
    481  1.1.1.6  mrg [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    482  1.1.1.6  mrg AC_REQUIRE_AUX_FILE([compile])dnl
    483  1.1.1.6  mrg AC_LANG_PUSH([C])dnl
    484  1.1.1.6  mrg AC_CACHE_CHECK(
    485  1.1.1.6  mrg   [whether $CC understands -c and -o together],
    486  1.1.1.6  mrg   [am_cv_prog_cc_c_o],
    487  1.1.1.6  mrg   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
    488  1.1.1.6  mrg   # Make sure it works both with $CC and with simple cc.
    489  1.1.1.6  mrg   # Following AC_PROG_CC_C_O, we do the test twice because some
    490  1.1.1.6  mrg   # compilers refuse to overwrite an existing .o file with -o,
    491  1.1.1.6  mrg   # though they will create one.
    492  1.1.1.6  mrg   am_cv_prog_cc_c_o=yes
    493  1.1.1.6  mrg   for am_i in 1 2; do
    494  1.1.1.6  mrg     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
    495  1.1.1.6  mrg          && test -f conftest2.$ac_objext; then
    496  1.1.1.6  mrg       : OK
    497  1.1.1.6  mrg     else
    498  1.1.1.6  mrg       am_cv_prog_cc_c_o=no
    499  1.1.1.6  mrg       break
    500  1.1.1.6  mrg     fi
    501  1.1.1.6  mrg   done
    502  1.1.1.6  mrg   rm -f core conftest*
    503  1.1.1.6  mrg   unset am_i])
    504  1.1.1.6  mrg if test "$am_cv_prog_cc_c_o" != yes; then
    505  1.1.1.6  mrg    # Losing compiler, so override with the script.
    506  1.1.1.6  mrg    # FIXME: It is wrong to rewrite CC.
    507  1.1.1.6  mrg    # But if we don't then we get into trouble of one sort or another.
    508  1.1.1.6  mrg    # A longer-term fix would be to have automake use am__CC in this case,
    509  1.1.1.6  mrg    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
    510  1.1.1.6  mrg    CC="$am_aux_dir/compile $CC"
    511  1.1.1.6  mrg fi
    512  1.1.1.6  mrg AC_LANG_POP([C])])
    513  1.1.1.6  mrg 
    514  1.1.1.6  mrg # For backward compatibility.
    515  1.1.1.6  mrg AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
    516      1.1  mrg 
    517  1.1.1.6  mrg # Copyright (C) 2001-2017 Free Software Foundation, Inc.
    518      1.1  mrg #
    519      1.1  mrg # This file is free software; the Free Software Foundation
    520      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    521      1.1  mrg # with or without modifications, as long as this notice is preserved.
    522      1.1  mrg 
    523  1.1.1.6  mrg # AM_RUN_LOG(COMMAND)
    524  1.1.1.6  mrg # -------------------
    525  1.1.1.6  mrg # Run COMMAND, save the exit status in ac_status, and log it.
    526  1.1.1.6  mrg # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
    527  1.1.1.6  mrg AC_DEFUN([AM_RUN_LOG],
    528  1.1.1.6  mrg [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
    529  1.1.1.6  mrg    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
    530  1.1.1.6  mrg    ac_status=$?
    531  1.1.1.6  mrg    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    532  1.1.1.6  mrg    (exit $ac_status); }])
    533  1.1.1.6  mrg 
    534  1.1.1.6  mrg # Check to make sure that the build environment is sane.    -*- Autoconf -*-
    535  1.1.1.6  mrg 
    536  1.1.1.6  mrg # Copyright (C) 1996-2017 Free Software Foundation, Inc.
    537  1.1.1.6  mrg #
    538  1.1.1.6  mrg # This file is free software; the Free Software Foundation
    539  1.1.1.6  mrg # gives unlimited permission to copy and/or distribute it,
    540  1.1.1.6  mrg # with or without modifications, as long as this notice is preserved.
    541      1.1  mrg 
    542      1.1  mrg # AM_SANITY_CHECK
    543      1.1  mrg # ---------------
    544      1.1  mrg AC_DEFUN([AM_SANITY_CHECK],
    545      1.1  mrg [AC_MSG_CHECKING([whether build environment is sane])
    546      1.1  mrg # Reject unsafe characters in $srcdir or the absolute working directory
    547      1.1  mrg # name.  Accept space and tab only in the latter.
    548      1.1  mrg am_lf='
    549      1.1  mrg '
    550      1.1  mrg case `pwd` in
    551      1.1  mrg   *[[\\\"\#\$\&\'\`$am_lf]]*)
    552      1.1  mrg     AC_MSG_ERROR([unsafe absolute working directory name]);;
    553      1.1  mrg esac
    554      1.1  mrg case $srcdir in
    555      1.1  mrg   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
    556  1.1.1.6  mrg     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
    557      1.1  mrg esac
    558      1.1  mrg 
    559  1.1.1.6  mrg # Do 'set' in a subshell so we don't clobber the current shell's
    560      1.1  mrg # arguments.  Must try -L first in case configure is actually a
    561      1.1  mrg # symlink; some systems play weird games with the mod time of symlinks
    562      1.1  mrg # (eg FreeBSD returns the mod time of the symlink's containing
    563      1.1  mrg # directory).
    564      1.1  mrg if (
    565  1.1.1.6  mrg    am_has_slept=no
    566  1.1.1.6  mrg    for am_try in 1 2; do
    567  1.1.1.6  mrg      echo "timestamp, slept: $am_has_slept" > conftest.file
    568  1.1.1.6  mrg      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
    569  1.1.1.6  mrg      if test "$[*]" = "X"; then
    570  1.1.1.6  mrg 	# -L didn't work.
    571  1.1.1.6  mrg 	set X `ls -t "$srcdir/configure" conftest.file`
    572  1.1.1.6  mrg      fi
    573  1.1.1.6  mrg      if test "$[*]" != "X $srcdir/configure conftest.file" \
    574  1.1.1.6  mrg 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
    575  1.1.1.6  mrg 
    576  1.1.1.6  mrg 	# If neither matched, then we have a broken ls.  This can happen
    577  1.1.1.6  mrg 	# if, for instance, CONFIG_SHELL is bash and it inherits a
    578  1.1.1.6  mrg 	# broken ls alias from the environment.  This has actually
    579  1.1.1.6  mrg 	# happened.  Such a system could not be considered "sane".
    580  1.1.1.6  mrg 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
    581  1.1.1.6  mrg   alias in your environment])
    582  1.1.1.6  mrg      fi
    583  1.1.1.6  mrg      if test "$[2]" = conftest.file || test $am_try -eq 2; then
    584  1.1.1.6  mrg        break
    585  1.1.1.6  mrg      fi
    586  1.1.1.6  mrg      # Just in case.
    587  1.1.1.6  mrg      sleep 1
    588  1.1.1.6  mrg      am_has_slept=yes
    589  1.1.1.6  mrg    done
    590      1.1  mrg    test "$[2]" = conftest.file
    591      1.1  mrg    )
    592      1.1  mrg then
    593      1.1  mrg    # Ok.
    594      1.1  mrg    :
    595      1.1  mrg else
    596      1.1  mrg    AC_MSG_ERROR([newly created file is older than distributed files!
    597      1.1  mrg Check your system clock])
    598      1.1  mrg fi
    599  1.1.1.6  mrg AC_MSG_RESULT([yes])
    600  1.1.1.6  mrg # If we didn't sleep, we still need to ensure time stamps of config.status and
    601  1.1.1.6  mrg # generated files are strictly newer.
    602  1.1.1.6  mrg am_sleep_pid=
    603  1.1.1.6  mrg if grep 'slept: no' conftest.file >/dev/null 2>&1; then
    604  1.1.1.6  mrg   ( sleep 1 ) &
    605  1.1.1.6  mrg   am_sleep_pid=$!
    606  1.1.1.6  mrg fi
    607  1.1.1.6  mrg AC_CONFIG_COMMANDS_PRE(
    608  1.1.1.6  mrg   [AC_MSG_CHECKING([that generated files are newer than configure])
    609  1.1.1.6  mrg    if test -n "$am_sleep_pid"; then
    610  1.1.1.6  mrg      # Hide warnings about reused PIDs.
    611  1.1.1.6  mrg      wait $am_sleep_pid 2>/dev/null
    612  1.1.1.6  mrg    fi
    613  1.1.1.6  mrg    AC_MSG_RESULT([done])])
    614  1.1.1.6  mrg rm -f conftest.file
    615  1.1.1.6  mrg ])
    616      1.1  mrg 
    617  1.1.1.6  mrg # Copyright (C) 2009-2017 Free Software Foundation, Inc.
    618      1.1  mrg #
    619      1.1  mrg # This file is free software; the Free Software Foundation
    620      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    621      1.1  mrg # with or without modifications, as long as this notice is preserved.
    622      1.1  mrg 
    623  1.1.1.6  mrg # AM_SILENT_RULES([DEFAULT])
    624  1.1.1.6  mrg # --------------------------
    625  1.1.1.6  mrg # Enable less verbose build rules; with the default set to DEFAULT
    626  1.1.1.6  mrg # ("yes" being less verbose, "no" or empty being verbose).
    627  1.1.1.6  mrg AC_DEFUN([AM_SILENT_RULES],
    628  1.1.1.6  mrg [AC_ARG_ENABLE([silent-rules], [dnl
    629  1.1.1.6  mrg AS_HELP_STRING(
    630  1.1.1.6  mrg   [--enable-silent-rules],
    631  1.1.1.6  mrg   [less verbose build output (undo: "make V=1")])
    632  1.1.1.6  mrg AS_HELP_STRING(
    633  1.1.1.6  mrg   [--disable-silent-rules],
    634  1.1.1.6  mrg   [verbose build output (undo: "make V=0")])dnl
    635  1.1.1.6  mrg ])
    636  1.1.1.6  mrg case $enable_silent_rules in @%:@ (((
    637  1.1.1.6  mrg   yes) AM_DEFAULT_VERBOSITY=0;;
    638  1.1.1.6  mrg    no) AM_DEFAULT_VERBOSITY=1;;
    639  1.1.1.6  mrg     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
    640  1.1.1.6  mrg esac
    641  1.1.1.6  mrg dnl
    642  1.1.1.6  mrg dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
    643  1.1.1.6  mrg dnl do not support nested variable expansions.
    644  1.1.1.6  mrg dnl See automake bug#9928 and bug#10237.
    645  1.1.1.6  mrg am_make=${MAKE-make}
    646  1.1.1.6  mrg AC_CACHE_CHECK([whether $am_make supports nested variables],
    647  1.1.1.6  mrg    [am_cv_make_support_nested_variables],
    648  1.1.1.6  mrg    [if AS_ECHO([['TRUE=$(BAR$(V))
    649  1.1.1.6  mrg BAR0=false
    650  1.1.1.6  mrg BAR1=true
    651  1.1.1.6  mrg V=1
    652  1.1.1.6  mrg am__doit:
    653  1.1.1.6  mrg 	@$(TRUE)
    654  1.1.1.6  mrg .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
    655  1.1.1.6  mrg   am_cv_make_support_nested_variables=yes
    656  1.1.1.6  mrg else
    657  1.1.1.6  mrg   am_cv_make_support_nested_variables=no
    658  1.1.1.6  mrg fi])
    659  1.1.1.6  mrg if test $am_cv_make_support_nested_variables = yes; then
    660  1.1.1.6  mrg   dnl Using '$V' instead of '$(V)' breaks IRIX make.
    661  1.1.1.6  mrg   AM_V='$(V)'
    662  1.1.1.6  mrg   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    663  1.1.1.6  mrg else
    664  1.1.1.6  mrg   AM_V=$AM_DEFAULT_VERBOSITY
    665  1.1.1.6  mrg   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
    666  1.1.1.6  mrg fi
    667  1.1.1.6  mrg AC_SUBST([AM_V])dnl
    668  1.1.1.6  mrg AM_SUBST_NOTMAKE([AM_V])dnl
    669  1.1.1.6  mrg AC_SUBST([AM_DEFAULT_V])dnl
    670  1.1.1.6  mrg AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
    671  1.1.1.6  mrg AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
    672  1.1.1.6  mrg AM_BACKSLASH='\'
    673  1.1.1.6  mrg AC_SUBST([AM_BACKSLASH])dnl
    674  1.1.1.6  mrg _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
    675  1.1.1.6  mrg ])
    676  1.1.1.6  mrg 
    677  1.1.1.6  mrg # Copyright (C) 2001-2017 Free Software Foundation, Inc.
    678  1.1.1.6  mrg #
    679  1.1.1.6  mrg # This file is free software; the Free Software Foundation
    680  1.1.1.6  mrg # gives unlimited permission to copy and/or distribute it,
    681  1.1.1.6  mrg # with or without modifications, as long as this notice is preserved.
    682  1.1.1.2  mrg 
    683      1.1  mrg # AM_PROG_INSTALL_STRIP
    684      1.1  mrg # ---------------------
    685  1.1.1.6  mrg # One issue with vendor 'install' (even GNU) is that you can't
    686      1.1  mrg # specify the program used to strip binaries.  This is especially
    687      1.1  mrg # annoying in cross-compiling environments, where the build's strip
    688      1.1  mrg # is unlikely to handle the host's binaries.
    689      1.1  mrg # Fortunately install-sh will honor a STRIPPROG variable, so we
    690  1.1.1.6  mrg # always use install-sh in "make install-strip", and initialize
    691      1.1  mrg # STRIPPROG with the value of the STRIP variable (set by the user).
    692      1.1  mrg AC_DEFUN([AM_PROG_INSTALL_STRIP],
    693      1.1  mrg [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    694  1.1.1.6  mrg # Installed binaries are usually stripped using 'strip' when the user
    695  1.1.1.6  mrg # run "make install-strip".  However 'strip' might not be the right
    696      1.1  mrg # tool to use in cross-compilation environments, therefore Automake
    697  1.1.1.6  mrg # will honor the 'STRIP' environment variable to overrule this program.
    698  1.1.1.6  mrg dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
    699      1.1  mrg if test "$cross_compiling" != no; then
    700      1.1  mrg   AC_CHECK_TOOL([STRIP], [strip], :)
    701      1.1  mrg fi
    702      1.1  mrg INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    703      1.1  mrg AC_SUBST([INSTALL_STRIP_PROGRAM])])
    704      1.1  mrg 
    705  1.1.1.6  mrg # Copyright (C) 2006-2017 Free Software Foundation, Inc.
    706      1.1  mrg #
    707      1.1  mrg # This file is free software; the Free Software Foundation
    708      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    709      1.1  mrg # with or without modifications, as long as this notice is preserved.
    710      1.1  mrg 
    711      1.1  mrg # _AM_SUBST_NOTMAKE(VARIABLE)
    712      1.1  mrg # ---------------------------
    713      1.1  mrg # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
    714      1.1  mrg # This macro is traced by Automake.
    715      1.1  mrg AC_DEFUN([_AM_SUBST_NOTMAKE])
    716      1.1  mrg 
    717      1.1  mrg # AM_SUBST_NOTMAKE(VARIABLE)
    718  1.1.1.2  mrg # --------------------------
    719      1.1  mrg # Public sister of _AM_SUBST_NOTMAKE.
    720      1.1  mrg AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
    721      1.1  mrg 
    722      1.1  mrg # Check how to create a tarball.                            -*- Autoconf -*-
    723      1.1  mrg 
    724  1.1.1.6  mrg # Copyright (C) 2004-2017 Free Software Foundation, Inc.
    725      1.1  mrg #
    726      1.1  mrg # This file is free software; the Free Software Foundation
    727      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    728      1.1  mrg # with or without modifications, as long as this notice is preserved.
    729      1.1  mrg 
    730      1.1  mrg # _AM_PROG_TAR(FORMAT)
    731      1.1  mrg # --------------------
    732      1.1  mrg # Check how to create a tarball in format FORMAT.
    733  1.1.1.6  mrg # FORMAT should be one of 'v7', 'ustar', or 'pax'.
    734      1.1  mrg #
    735      1.1  mrg # Substitute a variable $(am__tar) that is a command
    736      1.1  mrg # writing to stdout a FORMAT-tarball containing the directory
    737      1.1  mrg # $tardir.
    738      1.1  mrg #     tardir=directory && $(am__tar) > result.tar
    739      1.1  mrg #
    740      1.1  mrg # Substitute a variable $(am__untar) that extract such
    741      1.1  mrg # a tarball read from stdin.
    742      1.1  mrg #     $(am__untar) < result.tar
    743  1.1.1.6  mrg #
    744      1.1  mrg AC_DEFUN([_AM_PROG_TAR],
    745  1.1.1.2  mrg [# Always define AMTAR for backward compatibility.  Yes, it's still used
    746  1.1.1.2  mrg # in the wild :-(  We should find a proper way to deprecate it ...
    747  1.1.1.2  mrg AC_SUBST([AMTAR], ['$${TAR-tar}'])
    748  1.1.1.6  mrg 
    749  1.1.1.6  mrg # We'll loop over all known methods to create a tar archive until one works.
    750      1.1  mrg _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
    751      1.1  mrg 
    752  1.1.1.6  mrg m4_if([$1], [v7],
    753  1.1.1.6  mrg   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
    754      1.1  mrg 
    755  1.1.1.6  mrg   [m4_case([$1],
    756  1.1.1.6  mrg     [ustar],
    757  1.1.1.6  mrg      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
    758  1.1.1.6  mrg       # There is notably a 21 bits limit for the UID and the GID.  In fact,
    759  1.1.1.6  mrg       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
    760  1.1.1.6  mrg       # and bug#13588).
    761  1.1.1.6  mrg       am_max_uid=2097151 # 2^21 - 1
    762  1.1.1.6  mrg       am_max_gid=$am_max_uid
    763  1.1.1.6  mrg       # The $UID and $GID variables are not portable, so we need to resort
    764  1.1.1.6  mrg       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
    765  1.1.1.6  mrg       # below are definitely unexpected, so allow the users to see them
    766  1.1.1.6  mrg       # (that is, avoid stderr redirection).
    767  1.1.1.6  mrg       am_uid=`id -u || echo unknown`
    768  1.1.1.6  mrg       am_gid=`id -g || echo unknown`
    769  1.1.1.6  mrg       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
    770  1.1.1.6  mrg       if test $am_uid -le $am_max_uid; then
    771  1.1.1.6  mrg          AC_MSG_RESULT([yes])
    772  1.1.1.6  mrg       else
    773  1.1.1.6  mrg          AC_MSG_RESULT([no])
    774  1.1.1.6  mrg          _am_tools=none
    775  1.1.1.6  mrg       fi
    776  1.1.1.6  mrg       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
    777  1.1.1.6  mrg       if test $am_gid -le $am_max_gid; then
    778  1.1.1.6  mrg          AC_MSG_RESULT([yes])
    779  1.1.1.6  mrg       else
    780  1.1.1.6  mrg         AC_MSG_RESULT([no])
    781  1.1.1.6  mrg         _am_tools=none
    782  1.1.1.6  mrg       fi],
    783  1.1.1.6  mrg 
    784  1.1.1.6  mrg   [pax],
    785  1.1.1.6  mrg     [],
    786  1.1.1.6  mrg 
    787  1.1.1.6  mrg   [m4_fatal([Unknown tar format])])
    788  1.1.1.6  mrg 
    789  1.1.1.6  mrg   AC_MSG_CHECKING([how to create a $1 tar archive])
    790  1.1.1.6  mrg 
    791  1.1.1.6  mrg   # Go ahead even if we have the value already cached.  We do so because we
    792  1.1.1.6  mrg   # need to set the values for the 'am__tar' and 'am__untar' variables.
    793  1.1.1.6  mrg   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
    794  1.1.1.6  mrg 
    795  1.1.1.6  mrg   for _am_tool in $_am_tools; do
    796  1.1.1.6  mrg     case $_am_tool in
    797  1.1.1.6  mrg     gnutar)
    798  1.1.1.6  mrg       for _am_tar in tar gnutar gtar; do
    799  1.1.1.6  mrg         AM_RUN_LOG([$_am_tar --version]) && break
    800  1.1.1.6  mrg       done
    801  1.1.1.6  mrg       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
    802  1.1.1.6  mrg       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
    803  1.1.1.6  mrg       am__untar="$_am_tar -xf -"
    804  1.1.1.6  mrg       ;;
    805  1.1.1.6  mrg     plaintar)
    806  1.1.1.6  mrg       # Must skip GNU tar: if it does not support --format= it doesn't create
    807  1.1.1.6  mrg       # ustar tarball either.
    808  1.1.1.6  mrg       (tar --version) >/dev/null 2>&1 && continue
    809  1.1.1.6  mrg       am__tar='tar chf - "$$tardir"'
    810  1.1.1.6  mrg       am__tar_='tar chf - "$tardir"'
    811  1.1.1.6  mrg       am__untar='tar xf -'
    812  1.1.1.6  mrg       ;;
    813  1.1.1.6  mrg     pax)
    814  1.1.1.6  mrg       am__tar='pax -L -x $1 -w "$$tardir"'
    815  1.1.1.6  mrg       am__tar_='pax -L -x $1 -w "$tardir"'
    816  1.1.1.6  mrg       am__untar='pax -r'
    817  1.1.1.6  mrg       ;;
    818  1.1.1.6  mrg     cpio)
    819  1.1.1.6  mrg       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
    820  1.1.1.6  mrg       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
    821  1.1.1.6  mrg       am__untar='cpio -i -H $1 -d'
    822  1.1.1.6  mrg       ;;
    823  1.1.1.6  mrg     none)
    824  1.1.1.6  mrg       am__tar=false
    825  1.1.1.6  mrg       am__tar_=false
    826  1.1.1.6  mrg       am__untar=false
    827  1.1.1.6  mrg       ;;
    828  1.1.1.6  mrg     esac
    829  1.1.1.6  mrg 
    830  1.1.1.6  mrg     # If the value was cached, stop now.  We just wanted to have am__tar
    831  1.1.1.6  mrg     # and am__untar set.
    832  1.1.1.6  mrg     test -n "${am_cv_prog_tar_$1}" && break
    833  1.1.1.6  mrg 
    834  1.1.1.6  mrg     # tar/untar a dummy directory, and stop if the command works.
    835  1.1.1.6  mrg     rm -rf conftest.dir
    836  1.1.1.6  mrg     mkdir conftest.dir
    837  1.1.1.6  mrg     echo GrepMe > conftest.dir/file
    838  1.1.1.6  mrg     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
    839  1.1.1.6  mrg     rm -rf conftest.dir
    840  1.1.1.6  mrg     if test -s conftest.tar; then
    841  1.1.1.6  mrg       AM_RUN_LOG([$am__untar <conftest.tar])
    842  1.1.1.6  mrg       AM_RUN_LOG([cat conftest.dir/file])
    843  1.1.1.6  mrg       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
    844  1.1.1.6  mrg     fi
    845  1.1.1.6  mrg   done
    846      1.1  mrg   rm -rf conftest.dir
    847      1.1  mrg 
    848  1.1.1.6  mrg   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
    849  1.1.1.6  mrg   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
    850  1.1.1.6  mrg 
    851      1.1  mrg AC_SUBST([am__tar])
    852      1.1  mrg AC_SUBST([am__untar])
    853      1.1  mrg ]) # _AM_PROG_TAR
    854      1.1  mrg 
    855  1.1.1.5  mrg m4_include([../config/cet.m4])
    856  1.1.1.5  mrg m4_include([../config/enable.m4])
    857      1.1  mrg m4_include([../config/lead-dot.m4])
    858      1.1  mrg m4_include([../config/multi.m4])
    859      1.1  mrg m4_include([../config/override.m4])
    860      1.1  mrg m4_include([../config/stdint.m4])
    861      1.1  mrg m4_include([../config/unwind_ipinfo.m4])
    862      1.1  mrg m4_include([../config/warnings.m4])
    863      1.1  mrg m4_include([../libtool.m4])
    864      1.1  mrg m4_include([../ltoptions.m4])
    865      1.1  mrg m4_include([../ltsugar.m4])
    866      1.1  mrg m4_include([../ltversion.m4])
    867      1.1  mrg m4_include([../lt~obsolete.m4])
    868