Home | History | Annotate | Line # | Download | only in libbacktrace
aclocal.m4 revision 1.1.1.2
      1  1.1.1.2  mrg # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
      2      1.1  mrg 
      3      1.1  mrg # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
      4  1.1.1.2  mrg # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
      5  1.1.1.2  mrg # Inc.
      6      1.1  mrg # This file is free software; the Free Software Foundation
      7      1.1  mrg # gives unlimited permission to copy and/or distribute it,
      8      1.1  mrg # with or without modifications, as long as this notice is preserved.
      9      1.1  mrg 
     10      1.1  mrg # This program is distributed in the hope that it will be useful,
     11      1.1  mrg # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     12      1.1  mrg # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     13      1.1  mrg # PARTICULAR PURPOSE.
     14      1.1  mrg 
     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  mrg m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
     18      1.1  mrg [m4_warning([this file was generated for autoconf 2.64.
     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  mrg To do so, use the procedure documented by the package, typically `autoreconf'.])])
     22      1.1  mrg 
     23  1.1.1.2  mrg # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
     24  1.1.1.2  mrg # Foundation, Inc.
     25      1.1  mrg #
     26      1.1  mrg # This file is free software; the Free Software Foundation
     27      1.1  mrg # gives unlimited permission to copy and/or distribute it,
     28      1.1  mrg # with or without modifications, as long as this notice is preserved.
     29      1.1  mrg 
     30  1.1.1.2  mrg # serial 1
     31  1.1.1.2  mrg 
     32      1.1  mrg # AM_AUTOMAKE_VERSION(VERSION)
     33      1.1  mrg # ----------------------------
     34      1.1  mrg # Automake X.Y traces this macro to ensure aclocal.m4 has been
     35      1.1  mrg # generated from the m4 files accompanying Automake X.Y.
     36      1.1  mrg # (This private macro should not be called outside this file.)
     37      1.1  mrg AC_DEFUN([AM_AUTOMAKE_VERSION],
     38      1.1  mrg [am__api_version='1.11'
     39      1.1  mrg dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
     40      1.1  mrg dnl require some minimum version.  Point them to the right macro.
     41  1.1.1.2  mrg m4_if([$1], [1.11.6], [],
     42      1.1  mrg       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
     43      1.1  mrg ])
     44      1.1  mrg 
     45      1.1  mrg # _AM_AUTOCONF_VERSION(VERSION)
     46      1.1  mrg # -----------------------------
     47      1.1  mrg # aclocal traces this macro to find the Autoconf version.
     48      1.1  mrg # This is a private macro too.  Using m4_define simplifies
     49      1.1  mrg # the logic in aclocal, which can simply ignore this definition.
     50      1.1  mrg m4_define([_AM_AUTOCONF_VERSION], [])
     51      1.1  mrg 
     52      1.1  mrg # AM_SET_CURRENT_AUTOMAKE_VERSION
     53      1.1  mrg # -------------------------------
     54      1.1  mrg # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
     55      1.1  mrg # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
     56      1.1  mrg AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     57  1.1.1.2  mrg [AM_AUTOMAKE_VERSION([1.11.6])dnl
     58      1.1  mrg m4_ifndef([AC_AUTOCONF_VERSION],
     59      1.1  mrg   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     60      1.1  mrg _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
     61      1.1  mrg 
     62      1.1  mrg # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     63      1.1  mrg 
     64  1.1.1.2  mrg # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
     65      1.1  mrg #
     66      1.1  mrg # This file is free software; the Free Software Foundation
     67      1.1  mrg # gives unlimited permission to copy and/or distribute it,
     68      1.1  mrg # with or without modifications, as long as this notice is preserved.
     69      1.1  mrg 
     70  1.1.1.2  mrg # serial 1
     71  1.1.1.2  mrg 
     72      1.1  mrg # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     73      1.1  mrg # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
     74      1.1  mrg # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     75      1.1  mrg #
     76      1.1  mrg # Of course, Automake must honor this variable whenever it calls a
     77      1.1  mrg # tool from the auxiliary directory.  The problem is that $srcdir (and
     78      1.1  mrg # therefore $ac_aux_dir as well) can be either absolute or relative,
     79      1.1  mrg # depending on how configure is run.  This is pretty annoying, since
     80      1.1  mrg # it makes $ac_aux_dir quite unusable in subdirectories: in the top
     81      1.1  mrg # source directory, any form will work fine, but in subdirectories a
     82      1.1  mrg # relative path needs to be adjusted first.
     83      1.1  mrg #
     84      1.1  mrg # $ac_aux_dir/missing
     85      1.1  mrg #    fails when called from a subdirectory if $ac_aux_dir is relative
     86      1.1  mrg # $top_srcdir/$ac_aux_dir/missing
     87      1.1  mrg #    fails if $ac_aux_dir is absolute,
     88      1.1  mrg #    fails when called from a subdirectory in a VPATH build with
     89      1.1  mrg #          a relative $ac_aux_dir
     90      1.1  mrg #
     91      1.1  mrg # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
     92      1.1  mrg # are both prefixed by $srcdir.  In an in-source build this is usually
     93      1.1  mrg # harmless because $srcdir is `.', but things will broke when you
     94      1.1  mrg # start a VPATH build or use an absolute $srcdir.
     95      1.1  mrg #
     96      1.1  mrg # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
     97      1.1  mrg # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
     98      1.1  mrg #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
     99      1.1  mrg # and then we would define $MISSING as
    100      1.1  mrg #   MISSING="\${SHELL} $am_aux_dir/missing"
    101      1.1  mrg # This will work as long as MISSING is not called from configure, because
    102      1.1  mrg # unfortunately $(top_srcdir) has no meaning in configure.
    103      1.1  mrg # However there are other variables, like CC, which are often used in
    104      1.1  mrg # configure, and could therefore not use this "fixed" $ac_aux_dir.
    105      1.1  mrg #
    106      1.1  mrg # Another solution, used here, is to always expand $ac_aux_dir to an
    107      1.1  mrg # absolute PATH.  The drawback is that using absolute paths prevent a
    108      1.1  mrg # configured tree to be moved without reconfiguration.
    109      1.1  mrg 
    110      1.1  mrg AC_DEFUN([AM_AUX_DIR_EXPAND],
    111      1.1  mrg [dnl Rely on autoconf to set up CDPATH properly.
    112      1.1  mrg AC_PREREQ([2.50])dnl
    113      1.1  mrg # expand $ac_aux_dir to an absolute path
    114      1.1  mrg am_aux_dir=`cd $ac_aux_dir && pwd`
    115      1.1  mrg ])
    116      1.1  mrg 
    117      1.1  mrg # AM_CONDITIONAL                                            -*- Autoconf -*-
    118      1.1  mrg 
    119      1.1  mrg # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
    120      1.1  mrg # Free Software Foundation, Inc.
    121      1.1  mrg #
    122      1.1  mrg # This file is free software; the Free Software Foundation
    123      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    124      1.1  mrg # with or without modifications, as long as this notice is preserved.
    125      1.1  mrg 
    126      1.1  mrg # serial 9
    127      1.1  mrg 
    128      1.1  mrg # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    129      1.1  mrg # -------------------------------------
    130      1.1  mrg # Define a conditional.
    131      1.1  mrg AC_DEFUN([AM_CONDITIONAL],
    132      1.1  mrg [AC_PREREQ(2.52)dnl
    133      1.1  mrg  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    134      1.1  mrg 	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    135      1.1  mrg AC_SUBST([$1_TRUE])dnl
    136      1.1  mrg AC_SUBST([$1_FALSE])dnl
    137      1.1  mrg _AM_SUBST_NOTMAKE([$1_TRUE])dnl
    138      1.1  mrg _AM_SUBST_NOTMAKE([$1_FALSE])dnl
    139      1.1  mrg m4_define([_AM_COND_VALUE_$1], [$2])dnl
    140      1.1  mrg if $2; then
    141      1.1  mrg   $1_TRUE=
    142      1.1  mrg   $1_FALSE='#'
    143      1.1  mrg else
    144      1.1  mrg   $1_TRUE='#'
    145      1.1  mrg   $1_FALSE=
    146      1.1  mrg fi
    147      1.1  mrg AC_CONFIG_COMMANDS_PRE(
    148      1.1  mrg [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    149      1.1  mrg   AC_MSG_ERROR([[conditional "$1" was never defined.
    150      1.1  mrg Usually this means the macro was only invoked conditionally.]])
    151      1.1  mrg fi])])
    152      1.1  mrg 
    153      1.1  mrg # Do all the work for Automake.                             -*- Autoconf -*-
    154      1.1  mrg 
    155      1.1  mrg # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    156      1.1  mrg # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
    157      1.1  mrg #
    158      1.1  mrg # This file is free software; the Free Software Foundation
    159      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    160      1.1  mrg # with or without modifications, as long as this notice is preserved.
    161      1.1  mrg 
    162      1.1  mrg # serial 16
    163      1.1  mrg 
    164      1.1  mrg # This macro actually does too much.  Some checks are only needed if
    165      1.1  mrg # your package does certain things.  But this isn't really a big deal.
    166      1.1  mrg 
    167      1.1  mrg # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    168      1.1  mrg # AM_INIT_AUTOMAKE([OPTIONS])
    169      1.1  mrg # -----------------------------------------------
    170      1.1  mrg # The call with PACKAGE and VERSION arguments is the old style
    171      1.1  mrg # call (pre autoconf-2.50), which is being phased out.  PACKAGE
    172      1.1  mrg # and VERSION should now be passed to AC_INIT and removed from
    173      1.1  mrg # the call to AM_INIT_AUTOMAKE.
    174      1.1  mrg # We support both call styles for the transition.  After
    175      1.1  mrg # the next Automake release, Autoconf can make the AC_INIT
    176      1.1  mrg # arguments mandatory, and then we can depend on a new Autoconf
    177      1.1  mrg # release and drop the old call support.
    178      1.1  mrg AC_DEFUN([AM_INIT_AUTOMAKE],
    179      1.1  mrg [AC_PREREQ([2.62])dnl
    180      1.1  mrg dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    181      1.1  mrg dnl the ones we care about.
    182      1.1  mrg m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    183      1.1  mrg AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    184      1.1  mrg AC_REQUIRE([AC_PROG_INSTALL])dnl
    185      1.1  mrg if test "`cd $srcdir && pwd`" != "`pwd`"; then
    186      1.1  mrg   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
    187      1.1  mrg   # is not polluted with repeated "-I."
    188      1.1  mrg   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
    189      1.1  mrg   # test to see if srcdir already configured
    190      1.1  mrg   if test -f $srcdir/config.status; then
    191      1.1  mrg     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    192      1.1  mrg   fi
    193      1.1  mrg fi
    194      1.1  mrg 
    195      1.1  mrg # test whether we have cygpath
    196      1.1  mrg if test -z "$CYGPATH_W"; then
    197      1.1  mrg   if (cygpath --version) >/dev/null 2>/dev/null; then
    198      1.1  mrg     CYGPATH_W='cygpath -w'
    199      1.1  mrg   else
    200      1.1  mrg     CYGPATH_W=echo
    201      1.1  mrg   fi
    202      1.1  mrg fi
    203      1.1  mrg AC_SUBST([CYGPATH_W])
    204      1.1  mrg 
    205      1.1  mrg # Define the identity of the package.
    206      1.1  mrg dnl Distinguish between old-style and new-style calls.
    207      1.1  mrg m4_ifval([$2],
    208      1.1  mrg [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
    209      1.1  mrg  AC_SUBST([PACKAGE], [$1])dnl
    210      1.1  mrg  AC_SUBST([VERSION], [$2])],
    211      1.1  mrg [_AM_SET_OPTIONS([$1])dnl
    212      1.1  mrg dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
    213      1.1  mrg m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
    214      1.1  mrg   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
    215      1.1  mrg  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    216      1.1  mrg  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    217      1.1  mrg 
    218      1.1  mrg _AM_IF_OPTION([no-define],,
    219      1.1  mrg [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    220      1.1  mrg  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
    221      1.1  mrg 
    222      1.1  mrg # Some tools Automake needs.
    223      1.1  mrg AC_REQUIRE([AM_SANITY_CHECK])dnl
    224      1.1  mrg AC_REQUIRE([AC_ARG_PROGRAM])dnl
    225      1.1  mrg AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
    226      1.1  mrg AM_MISSING_PROG(AUTOCONF, autoconf)
    227      1.1  mrg AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
    228      1.1  mrg AM_MISSING_PROG(AUTOHEADER, autoheader)
    229      1.1  mrg AM_MISSING_PROG(MAKEINFO, makeinfo)
    230      1.1  mrg AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    231      1.1  mrg AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
    232      1.1  mrg AC_REQUIRE([AM_PROG_MKDIR_P])dnl
    233      1.1  mrg # We need awk for the "check" target.  The system "awk" is bad on
    234      1.1  mrg # some platforms.
    235      1.1  mrg AC_REQUIRE([AC_PROG_AWK])dnl
    236      1.1  mrg AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    237      1.1  mrg AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    238      1.1  mrg _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
    239      1.1  mrg 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
    240      1.1  mrg 			     [_AM_PROG_TAR([v7])])])
    241      1.1  mrg _AM_IF_OPTION([no-dependencies],,
    242      1.1  mrg [AC_PROVIDE_IFELSE([AC_PROG_CC],
    243      1.1  mrg 		  [_AM_DEPENDENCIES(CC)],
    244      1.1  mrg 		  [define([AC_PROG_CC],
    245      1.1  mrg 			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
    246      1.1  mrg AC_PROVIDE_IFELSE([AC_PROG_CXX],
    247      1.1  mrg 		  [_AM_DEPENDENCIES(CXX)],
    248      1.1  mrg 		  [define([AC_PROG_CXX],
    249      1.1  mrg 			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
    250      1.1  mrg AC_PROVIDE_IFELSE([AC_PROG_OBJC],
    251      1.1  mrg 		  [_AM_DEPENDENCIES(OBJC)],
    252      1.1  mrg 		  [define([AC_PROG_OBJC],
    253      1.1  mrg 			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
    254      1.1  mrg ])
    255      1.1  mrg _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
    256      1.1  mrg dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
    257      1.1  mrg dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
    258      1.1  mrg dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
    259      1.1  mrg AC_CONFIG_COMMANDS_PRE(dnl
    260      1.1  mrg [m4_provide_if([_AM_COMPILER_EXEEXT],
    261      1.1  mrg   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
    262      1.1  mrg ])
    263      1.1  mrg 
    264      1.1  mrg dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
    265      1.1  mrg dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
    266      1.1  mrg dnl mangled by Autoconf and run in a shell conditional statement.
    267      1.1  mrg m4_define([_AC_COMPILER_EXEEXT],
    268      1.1  mrg m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
    269      1.1  mrg 
    270      1.1  mrg 
    271      1.1  mrg # When config.status generates a header, we must update the stamp-h file.
    272      1.1  mrg # This file resides in the same directory as the config header
    273      1.1  mrg # that is generated.  The stamp files are numbered to have different names.
    274      1.1  mrg 
    275      1.1  mrg # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
    276      1.1  mrg # loop where config.status creates the headers, so we can generate
    277      1.1  mrg # our stamp files there.
    278      1.1  mrg AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    279      1.1  mrg [# Compute $1's index in $config_headers.
    280      1.1  mrg _am_arg=$1
    281      1.1  mrg _am_stamp_count=1
    282      1.1  mrg for _am_header in $config_headers :; do
    283      1.1  mrg   case $_am_header in
    284      1.1  mrg     $_am_arg | $_am_arg:* )
    285      1.1  mrg       break ;;
    286      1.1  mrg     * )
    287      1.1  mrg       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
    288      1.1  mrg   esac
    289      1.1  mrg done
    290      1.1  mrg echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    291      1.1  mrg 
    292  1.1.1.2  mrg # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
    293  1.1.1.2  mrg # Inc.
    294      1.1  mrg #
    295      1.1  mrg # This file is free software; the Free Software Foundation
    296      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    297      1.1  mrg # with or without modifications, as long as this notice is preserved.
    298      1.1  mrg 
    299  1.1.1.2  mrg # serial 1
    300  1.1.1.2  mrg 
    301      1.1  mrg # AM_PROG_INSTALL_SH
    302      1.1  mrg # ------------------
    303      1.1  mrg # Define $install_sh.
    304      1.1  mrg AC_DEFUN([AM_PROG_INSTALL_SH],
    305      1.1  mrg [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    306      1.1  mrg if test x"${install_sh}" != xset; then
    307      1.1  mrg   case $am_aux_dir in
    308      1.1  mrg   *\ * | *\	*)
    309      1.1  mrg     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
    310      1.1  mrg   *)
    311      1.1  mrg     install_sh="\${SHELL} $am_aux_dir/install-sh"
    312      1.1  mrg   esac
    313      1.1  mrg fi
    314      1.1  mrg AC_SUBST(install_sh)])
    315      1.1  mrg 
    316      1.1  mrg # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
    317      1.1  mrg # From Jim Meyering
    318      1.1  mrg 
    319  1.1.1.2  mrg # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
    320  1.1.1.2  mrg # 2011 Free Software Foundation, Inc.
    321      1.1  mrg #
    322      1.1  mrg # This file is free software; the Free Software Foundation
    323      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    324      1.1  mrg # with or without modifications, as long as this notice is preserved.
    325      1.1  mrg 
    326      1.1  mrg # serial 5
    327      1.1  mrg 
    328      1.1  mrg # AM_MAINTAINER_MODE([DEFAULT-MODE])
    329      1.1  mrg # ----------------------------------
    330      1.1  mrg # Control maintainer-specific portions of Makefiles.
    331      1.1  mrg # Default is to disable them, unless `enable' is passed literally.
    332      1.1  mrg # For symmetry, `disable' may be passed as well.  Anyway, the user
    333      1.1  mrg # can override the default with the --enable/--disable switch.
    334      1.1  mrg AC_DEFUN([AM_MAINTAINER_MODE],
    335      1.1  mrg [m4_case(m4_default([$1], [disable]),
    336      1.1  mrg        [enable], [m4_define([am_maintainer_other], [disable])],
    337      1.1  mrg        [disable], [m4_define([am_maintainer_other], [enable])],
    338      1.1  mrg        [m4_define([am_maintainer_other], [enable])
    339      1.1  mrg         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
    340  1.1.1.2  mrg AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
    341      1.1  mrg   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
    342      1.1  mrg   AC_ARG_ENABLE([maintainer-mode],
    343      1.1  mrg [  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
    344      1.1  mrg 			  (and sometimes confusing) to the casual installer],
    345      1.1  mrg       [USE_MAINTAINER_MODE=$enableval],
    346      1.1  mrg       [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
    347      1.1  mrg   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
    348      1.1  mrg   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
    349      1.1  mrg   MAINT=$MAINTAINER_MODE_TRUE
    350      1.1  mrg   AC_SUBST([MAINT])dnl
    351      1.1  mrg ]
    352      1.1  mrg )
    353      1.1  mrg 
    354      1.1  mrg AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
    355      1.1  mrg 
    356      1.1  mrg # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    357      1.1  mrg 
    358      1.1  mrg # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
    359      1.1  mrg # Free Software Foundation, Inc.
    360      1.1  mrg #
    361      1.1  mrg # This file is free software; the Free Software Foundation
    362      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    363      1.1  mrg # with or without modifications, as long as this notice is preserved.
    364      1.1  mrg 
    365      1.1  mrg # serial 6
    366      1.1  mrg 
    367      1.1  mrg # AM_MISSING_PROG(NAME, PROGRAM)
    368      1.1  mrg # ------------------------------
    369      1.1  mrg AC_DEFUN([AM_MISSING_PROG],
    370      1.1  mrg [AC_REQUIRE([AM_MISSING_HAS_RUN])
    371      1.1  mrg $1=${$1-"${am_missing_run}$2"}
    372      1.1  mrg AC_SUBST($1)])
    373      1.1  mrg 
    374      1.1  mrg 
    375      1.1  mrg # AM_MISSING_HAS_RUN
    376      1.1  mrg # ------------------
    377      1.1  mrg # Define MISSING if not defined so far and test if it supports --run.
    378      1.1  mrg # If it does, set am_missing_run to use it, otherwise, to nothing.
    379      1.1  mrg AC_DEFUN([AM_MISSING_HAS_RUN],
    380      1.1  mrg [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    381      1.1  mrg AC_REQUIRE_AUX_FILE([missing])dnl
    382      1.1  mrg if test x"${MISSING+set}" != xset; then
    383      1.1  mrg   case $am_aux_dir in
    384      1.1  mrg   *\ * | *\	*)
    385      1.1  mrg     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
    386      1.1  mrg   *)
    387      1.1  mrg     MISSING="\${SHELL} $am_aux_dir/missing" ;;
    388      1.1  mrg   esac
    389      1.1  mrg fi
    390      1.1  mrg # Use eval to expand $SHELL
    391      1.1  mrg if eval "$MISSING --run true"; then
    392      1.1  mrg   am_missing_run="$MISSING --run "
    393      1.1  mrg else
    394      1.1  mrg   am_missing_run=
    395      1.1  mrg   AC_MSG_WARN([`missing' script is too old or missing])
    396      1.1  mrg fi
    397      1.1  mrg ])
    398      1.1  mrg 
    399  1.1.1.2  mrg # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
    400  1.1.1.2  mrg # Inc.
    401      1.1  mrg #
    402      1.1  mrg # This file is free software; the Free Software Foundation
    403      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    404      1.1  mrg # with or without modifications, as long as this notice is preserved.
    405      1.1  mrg 
    406  1.1.1.2  mrg # serial 1
    407  1.1.1.2  mrg 
    408      1.1  mrg # AM_PROG_MKDIR_P
    409      1.1  mrg # ---------------
    410      1.1  mrg # Check for `mkdir -p'.
    411      1.1  mrg AC_DEFUN([AM_PROG_MKDIR_P],
    412      1.1  mrg [AC_PREREQ([2.60])dnl
    413      1.1  mrg AC_REQUIRE([AC_PROG_MKDIR_P])dnl
    414      1.1  mrg dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
    415      1.1  mrg dnl while keeping a definition of mkdir_p for backward compatibility.
    416      1.1  mrg dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
    417      1.1  mrg dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
    418      1.1  mrg dnl Makefile.ins that do not define MKDIR_P, so we do our own
    419      1.1  mrg dnl adjustment using top_builddir (which is defined more often than
    420      1.1  mrg dnl MKDIR_P).
    421      1.1  mrg AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
    422      1.1  mrg case $mkdir_p in
    423      1.1  mrg   [[\\/$]]* | ?:[[\\/]]*) ;;
    424      1.1  mrg   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
    425      1.1  mrg esac
    426      1.1  mrg ])
    427      1.1  mrg 
    428      1.1  mrg # Helper functions for option handling.                     -*- Autoconf -*-
    429      1.1  mrg 
    430  1.1.1.2  mrg # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
    431  1.1.1.2  mrg # Foundation, Inc.
    432      1.1  mrg #
    433      1.1  mrg # This file is free software; the Free Software Foundation
    434      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    435      1.1  mrg # with or without modifications, as long as this notice is preserved.
    436      1.1  mrg 
    437  1.1.1.2  mrg # serial 5
    438      1.1  mrg 
    439      1.1  mrg # _AM_MANGLE_OPTION(NAME)
    440      1.1  mrg # -----------------------
    441      1.1  mrg AC_DEFUN([_AM_MANGLE_OPTION],
    442      1.1  mrg [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
    443      1.1  mrg 
    444      1.1  mrg # _AM_SET_OPTION(NAME)
    445  1.1.1.2  mrg # --------------------
    446      1.1  mrg # Set option NAME.  Presently that only means defining a flag for this option.
    447      1.1  mrg AC_DEFUN([_AM_SET_OPTION],
    448      1.1  mrg [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
    449      1.1  mrg 
    450      1.1  mrg # _AM_SET_OPTIONS(OPTIONS)
    451  1.1.1.2  mrg # ------------------------
    452      1.1  mrg # OPTIONS is a space-separated list of Automake options.
    453      1.1  mrg AC_DEFUN([_AM_SET_OPTIONS],
    454      1.1  mrg [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    455      1.1  mrg 
    456      1.1  mrg # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    457      1.1  mrg # -------------------------------------------
    458      1.1  mrg # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
    459      1.1  mrg AC_DEFUN([_AM_IF_OPTION],
    460      1.1  mrg [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    461      1.1  mrg 
    462      1.1  mrg # Check to make sure that the build environment is sane.    -*- Autoconf -*-
    463      1.1  mrg 
    464      1.1  mrg # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
    465      1.1  mrg # Free Software Foundation, Inc.
    466      1.1  mrg #
    467      1.1  mrg # This file is free software; the Free Software Foundation
    468      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    469      1.1  mrg # with or without modifications, as long as this notice is preserved.
    470      1.1  mrg 
    471      1.1  mrg # serial 5
    472      1.1  mrg 
    473      1.1  mrg # AM_SANITY_CHECK
    474      1.1  mrg # ---------------
    475      1.1  mrg AC_DEFUN([AM_SANITY_CHECK],
    476      1.1  mrg [AC_MSG_CHECKING([whether build environment is sane])
    477      1.1  mrg # Just in case
    478      1.1  mrg sleep 1
    479      1.1  mrg echo timestamp > conftest.file
    480      1.1  mrg # Reject unsafe characters in $srcdir or the absolute working directory
    481      1.1  mrg # name.  Accept space and tab only in the latter.
    482      1.1  mrg am_lf='
    483      1.1  mrg '
    484      1.1  mrg case `pwd` in
    485      1.1  mrg   *[[\\\"\#\$\&\'\`$am_lf]]*)
    486      1.1  mrg     AC_MSG_ERROR([unsafe absolute working directory name]);;
    487      1.1  mrg esac
    488      1.1  mrg case $srcdir in
    489      1.1  mrg   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
    490      1.1  mrg     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
    491      1.1  mrg esac
    492      1.1  mrg 
    493      1.1  mrg # Do `set' in a subshell so we don't clobber the current shell's
    494      1.1  mrg # arguments.  Must try -L first in case configure is actually a
    495      1.1  mrg # symlink; some systems play weird games with the mod time of symlinks
    496      1.1  mrg # (eg FreeBSD returns the mod time of the symlink's containing
    497      1.1  mrg # directory).
    498      1.1  mrg if (
    499      1.1  mrg    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
    500      1.1  mrg    if test "$[*]" = "X"; then
    501      1.1  mrg       # -L didn't work.
    502      1.1  mrg       set X `ls -t "$srcdir/configure" conftest.file`
    503      1.1  mrg    fi
    504      1.1  mrg    rm -f conftest.file
    505      1.1  mrg    if test "$[*]" != "X $srcdir/configure conftest.file" \
    506      1.1  mrg       && test "$[*]" != "X conftest.file $srcdir/configure"; then
    507      1.1  mrg 
    508      1.1  mrg       # If neither matched, then we have a broken ls.  This can happen
    509      1.1  mrg       # if, for instance, CONFIG_SHELL is bash and it inherits a
    510      1.1  mrg       # broken ls alias from the environment.  This has actually
    511      1.1  mrg       # happened.  Such a system could not be considered "sane".
    512      1.1  mrg       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
    513      1.1  mrg alias in your environment])
    514      1.1  mrg    fi
    515      1.1  mrg 
    516      1.1  mrg    test "$[2]" = conftest.file
    517      1.1  mrg    )
    518      1.1  mrg then
    519      1.1  mrg    # Ok.
    520      1.1  mrg    :
    521      1.1  mrg else
    522      1.1  mrg    AC_MSG_ERROR([newly created file is older than distributed files!
    523      1.1  mrg Check your system clock])
    524      1.1  mrg fi
    525      1.1  mrg AC_MSG_RESULT(yes)])
    526      1.1  mrg 
    527  1.1.1.2  mrg # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
    528      1.1  mrg #
    529      1.1  mrg # This file is free software; the Free Software Foundation
    530      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    531      1.1  mrg # with or without modifications, as long as this notice is preserved.
    532      1.1  mrg 
    533  1.1.1.2  mrg # serial 1
    534  1.1.1.2  mrg 
    535      1.1  mrg # AM_PROG_INSTALL_STRIP
    536      1.1  mrg # ---------------------
    537      1.1  mrg # One issue with vendor `install' (even GNU) is that you can't
    538      1.1  mrg # specify the program used to strip binaries.  This is especially
    539      1.1  mrg # annoying in cross-compiling environments, where the build's strip
    540      1.1  mrg # is unlikely to handle the host's binaries.
    541      1.1  mrg # Fortunately install-sh will honor a STRIPPROG variable, so we
    542      1.1  mrg # always use install-sh in `make install-strip', and initialize
    543      1.1  mrg # STRIPPROG with the value of the STRIP variable (set by the user).
    544      1.1  mrg AC_DEFUN([AM_PROG_INSTALL_STRIP],
    545      1.1  mrg [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    546      1.1  mrg # Installed binaries are usually stripped using `strip' when the user
    547      1.1  mrg # run `make install-strip'.  However `strip' might not be the right
    548      1.1  mrg # tool to use in cross-compilation environments, therefore Automake
    549      1.1  mrg # will honor the `STRIP' environment variable to overrule this program.
    550      1.1  mrg dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
    551      1.1  mrg if test "$cross_compiling" != no; then
    552      1.1  mrg   AC_CHECK_TOOL([STRIP], [strip], :)
    553      1.1  mrg fi
    554      1.1  mrg INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    555      1.1  mrg AC_SUBST([INSTALL_STRIP_PROGRAM])])
    556      1.1  mrg 
    557  1.1.1.2  mrg # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
    558      1.1  mrg #
    559      1.1  mrg # This file is free software; the Free Software Foundation
    560      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    561      1.1  mrg # with or without modifications, as long as this notice is preserved.
    562      1.1  mrg 
    563  1.1.1.2  mrg # serial 3
    564      1.1  mrg 
    565      1.1  mrg # _AM_SUBST_NOTMAKE(VARIABLE)
    566      1.1  mrg # ---------------------------
    567      1.1  mrg # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
    568      1.1  mrg # This macro is traced by Automake.
    569      1.1  mrg AC_DEFUN([_AM_SUBST_NOTMAKE])
    570      1.1  mrg 
    571      1.1  mrg # AM_SUBST_NOTMAKE(VARIABLE)
    572  1.1.1.2  mrg # --------------------------
    573      1.1  mrg # Public sister of _AM_SUBST_NOTMAKE.
    574      1.1  mrg AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
    575      1.1  mrg 
    576      1.1  mrg # Check how to create a tarball.                            -*- Autoconf -*-
    577      1.1  mrg 
    578  1.1.1.2  mrg # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
    579      1.1  mrg #
    580      1.1  mrg # This file is free software; the Free Software Foundation
    581      1.1  mrg # gives unlimited permission to copy and/or distribute it,
    582      1.1  mrg # with or without modifications, as long as this notice is preserved.
    583      1.1  mrg 
    584      1.1  mrg # serial 2
    585      1.1  mrg 
    586      1.1  mrg # _AM_PROG_TAR(FORMAT)
    587      1.1  mrg # --------------------
    588      1.1  mrg # Check how to create a tarball in format FORMAT.
    589      1.1  mrg # FORMAT should be one of `v7', `ustar', or `pax'.
    590      1.1  mrg #
    591      1.1  mrg # Substitute a variable $(am__tar) that is a command
    592      1.1  mrg # writing to stdout a FORMAT-tarball containing the directory
    593      1.1  mrg # $tardir.
    594      1.1  mrg #     tardir=directory && $(am__tar) > result.tar
    595      1.1  mrg #
    596      1.1  mrg # Substitute a variable $(am__untar) that extract such
    597      1.1  mrg # a tarball read from stdin.
    598      1.1  mrg #     $(am__untar) < result.tar
    599      1.1  mrg AC_DEFUN([_AM_PROG_TAR],
    600  1.1.1.2  mrg [# Always define AMTAR for backward compatibility.  Yes, it's still used
    601  1.1.1.2  mrg # in the wild :-(  We should find a proper way to deprecate it ...
    602  1.1.1.2  mrg AC_SUBST([AMTAR], ['$${TAR-tar}'])
    603      1.1  mrg m4_if([$1], [v7],
    604  1.1.1.2  mrg      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
    605      1.1  mrg      [m4_case([$1], [ustar],, [pax],,
    606      1.1  mrg               [m4_fatal([Unknown tar format])])
    607      1.1  mrg AC_MSG_CHECKING([how to create a $1 tar archive])
    608      1.1  mrg # Loop over all known methods to create a tar archive until one works.
    609      1.1  mrg _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
    610      1.1  mrg _am_tools=${am_cv_prog_tar_$1-$_am_tools}
    611      1.1  mrg # Do not fold the above two line into one, because Tru64 sh and
    612      1.1  mrg # Solaris sh will not grok spaces in the rhs of `-'.
    613      1.1  mrg for _am_tool in $_am_tools
    614      1.1  mrg do
    615      1.1  mrg   case $_am_tool in
    616      1.1  mrg   gnutar)
    617      1.1  mrg     for _am_tar in tar gnutar gtar;
    618      1.1  mrg     do
    619      1.1  mrg       AM_RUN_LOG([$_am_tar --version]) && break
    620      1.1  mrg     done
    621      1.1  mrg     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
    622      1.1  mrg     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
    623      1.1  mrg     am__untar="$_am_tar -xf -"
    624      1.1  mrg     ;;
    625      1.1  mrg   plaintar)
    626      1.1  mrg     # Must skip GNU tar: if it does not support --format= it doesn't create
    627      1.1  mrg     # ustar tarball either.
    628      1.1  mrg     (tar --version) >/dev/null 2>&1 && continue
    629      1.1  mrg     am__tar='tar chf - "$$tardir"'
    630      1.1  mrg     am__tar_='tar chf - "$tardir"'
    631      1.1  mrg     am__untar='tar xf -'
    632      1.1  mrg     ;;
    633      1.1  mrg   pax)
    634      1.1  mrg     am__tar='pax -L -x $1 -w "$$tardir"'
    635      1.1  mrg     am__tar_='pax -L -x $1 -w "$tardir"'
    636      1.1  mrg     am__untar='pax -r'
    637      1.1  mrg     ;;
    638      1.1  mrg   cpio)
    639      1.1  mrg     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
    640      1.1  mrg     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
    641      1.1  mrg     am__untar='cpio -i -H $1 -d'
    642      1.1  mrg     ;;
    643      1.1  mrg   none)
    644      1.1  mrg     am__tar=false
    645      1.1  mrg     am__tar_=false
    646      1.1  mrg     am__untar=false
    647      1.1  mrg     ;;
    648      1.1  mrg   esac
    649      1.1  mrg 
    650      1.1  mrg   # If the value was cached, stop now.  We just wanted to have am__tar
    651      1.1  mrg   # and am__untar set.
    652      1.1  mrg   test -n "${am_cv_prog_tar_$1}" && break
    653      1.1  mrg 
    654      1.1  mrg   # tar/untar a dummy directory, and stop if the command works
    655      1.1  mrg   rm -rf conftest.dir
    656      1.1  mrg   mkdir conftest.dir
    657      1.1  mrg   echo GrepMe > conftest.dir/file
    658      1.1  mrg   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
    659      1.1  mrg   rm -rf conftest.dir
    660      1.1  mrg   if test -s conftest.tar; then
    661      1.1  mrg     AM_RUN_LOG([$am__untar <conftest.tar])
    662      1.1  mrg     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
    663      1.1  mrg   fi
    664      1.1  mrg done
    665      1.1  mrg rm -rf conftest.dir
    666      1.1  mrg 
    667      1.1  mrg AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
    668      1.1  mrg AC_MSG_RESULT([$am_cv_prog_tar_$1])])
    669      1.1  mrg AC_SUBST([am__tar])
    670      1.1  mrg AC_SUBST([am__untar])
    671      1.1  mrg ]) # _AM_PROG_TAR
    672      1.1  mrg 
    673      1.1  mrg m4_include([../config/lead-dot.m4])
    674      1.1  mrg m4_include([../config/multi.m4])
    675      1.1  mrg m4_include([../config/override.m4])
    676      1.1  mrg m4_include([../config/stdint.m4])
    677      1.1  mrg m4_include([../config/unwind_ipinfo.m4])
    678      1.1  mrg m4_include([../config/warnings.m4])
    679      1.1  mrg m4_include([../libtool.m4])
    680      1.1  mrg m4_include([../ltoptions.m4])
    681      1.1  mrg m4_include([../ltsugar.m4])
    682      1.1  mrg m4_include([../ltversion.m4])
    683      1.1  mrg m4_include([../lt~obsolete.m4])
    684