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