annotate src/opusfile-0.9/aclocal.m4 @ 69:7aeed7906520

Add Opus sources and macOS builds
author Chris Cannam
date Wed, 23 Jan 2019 13:48:08 +0000
parents
children
rev   line source
Chris@69 1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
Chris@69 2
Chris@69 3 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
Chris@69 4
Chris@69 5 # This file is free software; the Free Software Foundation
Chris@69 6 # gives unlimited permission to copy and/or distribute it,
Chris@69 7 # with or without modifications, as long as this notice is preserved.
Chris@69 8
Chris@69 9 # This program is distributed in the hope that it will be useful,
Chris@69 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Chris@69 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Chris@69 12 # PARTICULAR PURPOSE.
Chris@69 13
Chris@69 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
Chris@69 15 m4_ifndef([AC_AUTOCONF_VERSION],
Chris@69 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Chris@69 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Chris@69 18 [m4_warning([this file was generated for autoconf 2.69.
Chris@69 19 You have another version of autoconf. It may work, but is not guaranteed to.
Chris@69 20 If you have problems, you may need to regenerate the build system entirely.
Chris@69 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Chris@69 22
Chris@69 23 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
Chris@69 24 # serial 11 (pkg-config-0.29.1)
Chris@69 25
Chris@69 26 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Chris@69 27 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
Chris@69 28 dnl
Chris@69 29 dnl This program is free software; you can redistribute it and/or modify
Chris@69 30 dnl it under the terms of the GNU General Public License as published by
Chris@69 31 dnl the Free Software Foundation; either version 2 of the License, or
Chris@69 32 dnl (at your option) any later version.
Chris@69 33 dnl
Chris@69 34 dnl This program is distributed in the hope that it will be useful, but
Chris@69 35 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@69 36 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Chris@69 37 dnl General Public License for more details.
Chris@69 38 dnl
Chris@69 39 dnl You should have received a copy of the GNU General Public License
Chris@69 40 dnl along with this program; if not, write to the Free Software
Chris@69 41 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
Chris@69 42 dnl 02111-1307, USA.
Chris@69 43 dnl
Chris@69 44 dnl As a special exception to the GNU General Public License, if you
Chris@69 45 dnl distribute this file as part of a program that contains a
Chris@69 46 dnl configuration script generated by Autoconf, you may include it under
Chris@69 47 dnl the same distribution terms that you use for the rest of that
Chris@69 48 dnl program.
Chris@69 49
Chris@69 50 dnl PKG_PREREQ(MIN-VERSION)
Chris@69 51 dnl -----------------------
Chris@69 52 dnl Since: 0.29
Chris@69 53 dnl
Chris@69 54 dnl Verify that the version of the pkg-config macros are at least
Chris@69 55 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
Chris@69 56 dnl installed version of pkg-config, this checks the developer's version
Chris@69 57 dnl of pkg.m4 when generating configure.
Chris@69 58 dnl
Chris@69 59 dnl To ensure that this macro is defined, also add:
Chris@69 60 dnl m4_ifndef([PKG_PREREQ],
Chris@69 61 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
Chris@69 62 dnl
Chris@69 63 dnl See the "Since" comment for each macro you use to see what version
Chris@69 64 dnl of the macros you require.
Chris@69 65 m4_defun([PKG_PREREQ],
Chris@69 66 [m4_define([PKG_MACROS_VERSION], [0.29.1])
Chris@69 67 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
Chris@69 68 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
Chris@69 69 ])dnl PKG_PREREQ
Chris@69 70
Chris@69 71 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
Chris@69 72 dnl ----------------------------------
Chris@69 73 dnl Since: 0.16
Chris@69 74 dnl
Chris@69 75 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
Chris@69 76 dnl first found in the path. Checks that the version of pkg-config found
Chris@69 77 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
Chris@69 78 dnl used since that's the first version where most current features of
Chris@69 79 dnl pkg-config existed.
Chris@69 80 AC_DEFUN([PKG_PROG_PKG_CONFIG],
Chris@69 81 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Chris@69 82 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Chris@69 83 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Chris@69 84 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Chris@69 85 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Chris@69 86 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Chris@69 87
Chris@69 88 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@69 89 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Chris@69 90 fi
Chris@69 91 if test -n "$PKG_CONFIG"; then
Chris@69 92 _pkg_min_version=m4_default([$1], [0.9.0])
Chris@69 93 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Chris@69 94 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@69 95 AC_MSG_RESULT([yes])
Chris@69 96 else
Chris@69 97 AC_MSG_RESULT([no])
Chris@69 98 PKG_CONFIG=""
Chris@69 99 fi
Chris@69 100 fi[]dnl
Chris@69 101 ])dnl PKG_PROG_PKG_CONFIG
Chris@69 102
Chris@69 103 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Chris@69 104 dnl -------------------------------------------------------------------
Chris@69 105 dnl Since: 0.18
Chris@69 106 dnl
Chris@69 107 dnl Check to see whether a particular set of modules exists. Similar to
Chris@69 108 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
Chris@69 109 dnl
Chris@69 110 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Chris@69 111 dnl only at the first occurence in configure.ac, so if the first place
Chris@69 112 dnl it's called might be skipped (such as if it is within an "if", you
Chris@69 113 dnl have to call PKG_CHECK_EXISTS manually
Chris@69 114 AC_DEFUN([PKG_CHECK_EXISTS],
Chris@69 115 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Chris@69 116 if test -n "$PKG_CONFIG" && \
Chris@69 117 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Chris@69 118 m4_default([$2], [:])
Chris@69 119 m4_ifvaln([$3], [else
Chris@69 120 $3])dnl
Chris@69 121 fi])
Chris@69 122
Chris@69 123 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Chris@69 124 dnl ---------------------------------------------
Chris@69 125 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
Chris@69 126 dnl pkg_failed based on the result.
Chris@69 127 m4_define([_PKG_CONFIG],
Chris@69 128 [if test -n "$$1"; then
Chris@69 129 pkg_cv_[]$1="$$1"
Chris@69 130 elif test -n "$PKG_CONFIG"; then
Chris@69 131 PKG_CHECK_EXISTS([$3],
Chris@69 132 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Chris@69 133 test "x$?" != "x0" && pkg_failed=yes ],
Chris@69 134 [pkg_failed=yes])
Chris@69 135 else
Chris@69 136 pkg_failed=untried
Chris@69 137 fi[]dnl
Chris@69 138 ])dnl _PKG_CONFIG
Chris@69 139
Chris@69 140 dnl _PKG_SHORT_ERRORS_SUPPORTED
Chris@69 141 dnl ---------------------------
Chris@69 142 dnl Internal check to see if pkg-config supports short errors.
Chris@69 143 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Chris@69 144 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Chris@69 145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@69 146 _pkg_short_errors_supported=yes
Chris@69 147 else
Chris@69 148 _pkg_short_errors_supported=no
Chris@69 149 fi[]dnl
Chris@69 150 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
Chris@69 151
Chris@69 152
Chris@69 153 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Chris@69 154 dnl [ACTION-IF-NOT-FOUND])
Chris@69 155 dnl --------------------------------------------------------------
Chris@69 156 dnl Since: 0.4.0
Chris@69 157 dnl
Chris@69 158 dnl Note that if there is a possibility the first call to
Chris@69 159 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
Chris@69 160 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Chris@69 161 AC_DEFUN([PKG_CHECK_MODULES],
Chris@69 162 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Chris@69 163 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Chris@69 164 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Chris@69 165
Chris@69 166 pkg_failed=no
Chris@69 167 AC_MSG_CHECKING([for $1])
Chris@69 168
Chris@69 169 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Chris@69 170 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
Chris@69 171
Chris@69 172 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Chris@69 173 and $1[]_LIBS to avoid the need to call pkg-config.
Chris@69 174 See the pkg-config man page for more details.])
Chris@69 175
Chris@69 176 if test $pkg_failed = yes; then
Chris@69 177 AC_MSG_RESULT([no])
Chris@69 178 _PKG_SHORT_ERRORS_SUPPORTED
Chris@69 179 if test $_pkg_short_errors_supported = yes; then
Chris@69 180 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Chris@69 181 else
Chris@69 182 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Chris@69 183 fi
Chris@69 184 # Put the nasty error message in config.log where it belongs
Chris@69 185 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Chris@69 186
Chris@69 187 m4_default([$4], [AC_MSG_ERROR(
Chris@69 188 [Package requirements ($2) were not met:
Chris@69 189
Chris@69 190 $$1_PKG_ERRORS
Chris@69 191
Chris@69 192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
Chris@69 193 installed software in a non-standard prefix.
Chris@69 194
Chris@69 195 _PKG_TEXT])[]dnl
Chris@69 196 ])
Chris@69 197 elif test $pkg_failed = untried; then
Chris@69 198 AC_MSG_RESULT([no])
Chris@69 199 m4_default([$4], [AC_MSG_FAILURE(
Chris@69 200 [The pkg-config script could not be found or is too old. Make sure it
Chris@69 201 is in your PATH or set the PKG_CONFIG environment variable to the full
Chris@69 202 path to pkg-config.
Chris@69 203
Chris@69 204 _PKG_TEXT
Chris@69 205
Chris@69 206 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Chris@69 207 ])
Chris@69 208 else
Chris@69 209 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Chris@69 210 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Chris@69 211 AC_MSG_RESULT([yes])
Chris@69 212 $3
Chris@69 213 fi[]dnl
Chris@69 214 ])dnl PKG_CHECK_MODULES
Chris@69 215
Chris@69 216
Chris@69 217 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Chris@69 218 dnl [ACTION-IF-NOT-FOUND])
Chris@69 219 dnl ---------------------------------------------------------------------
Chris@69 220 dnl Since: 0.29
Chris@69 221 dnl
Chris@69 222 dnl Checks for existence of MODULES and gathers its build flags with
Chris@69 223 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
Chris@69 224 dnl and VARIABLE-PREFIX_LIBS from --libs.
Chris@69 225 dnl
Chris@69 226 dnl Note that if there is a possibility the first call to
Chris@69 227 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
Chris@69 228 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
Chris@69 229 dnl configure.ac.
Chris@69 230 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
Chris@69 231 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Chris@69 232 _save_PKG_CONFIG=$PKG_CONFIG
Chris@69 233 PKG_CONFIG="$PKG_CONFIG --static"
Chris@69 234 PKG_CHECK_MODULES($@)
Chris@69 235 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
Chris@69 236 ])dnl PKG_CHECK_MODULES_STATIC
Chris@69 237
Chris@69 238
Chris@69 239 dnl PKG_INSTALLDIR([DIRECTORY])
Chris@69 240 dnl -------------------------
Chris@69 241 dnl Since: 0.27
Chris@69 242 dnl
Chris@69 243 dnl Substitutes the variable pkgconfigdir as the location where a module
Chris@69 244 dnl should install pkg-config .pc files. By default the directory is
Chris@69 245 dnl $libdir/pkgconfig, but the default can be changed by passing
Chris@69 246 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
Chris@69 247 dnl parameter.
Chris@69 248 AC_DEFUN([PKG_INSTALLDIR],
Chris@69 249 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
Chris@69 250 m4_pushdef([pkg_description],
Chris@69 251 [pkg-config installation directory @<:@]pkg_default[@:>@])
Chris@69 252 AC_ARG_WITH([pkgconfigdir],
Chris@69 253 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
Chris@69 254 [with_pkgconfigdir=]pkg_default)
Chris@69 255 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
Chris@69 256 m4_popdef([pkg_default])
Chris@69 257 m4_popdef([pkg_description])
Chris@69 258 ])dnl PKG_INSTALLDIR
Chris@69 259
Chris@69 260
Chris@69 261 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
Chris@69 262 dnl --------------------------------
Chris@69 263 dnl Since: 0.27
Chris@69 264 dnl
Chris@69 265 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
Chris@69 266 dnl module should install arch-independent pkg-config .pc files. By
Chris@69 267 dnl default the directory is $datadir/pkgconfig, but the default can be
Chris@69 268 dnl changed by passing DIRECTORY. The user can override through the
Chris@69 269 dnl --with-noarch-pkgconfigdir parameter.
Chris@69 270 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
Chris@69 271 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
Chris@69 272 m4_pushdef([pkg_description],
Chris@69 273 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
Chris@69 274 AC_ARG_WITH([noarch-pkgconfigdir],
Chris@69 275 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
Chris@69 276 [with_noarch_pkgconfigdir=]pkg_default)
Chris@69 277 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
Chris@69 278 m4_popdef([pkg_default])
Chris@69 279 m4_popdef([pkg_description])
Chris@69 280 ])dnl PKG_NOARCH_INSTALLDIR
Chris@69 281
Chris@69 282
Chris@69 283 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
Chris@69 284 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Chris@69 285 dnl -------------------------------------------
Chris@69 286 dnl Since: 0.28
Chris@69 287 dnl
Chris@69 288 dnl Retrieves the value of the pkg-config variable for the given module.
Chris@69 289 AC_DEFUN([PKG_CHECK_VAR],
Chris@69 290 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Chris@69 291 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
Chris@69 292
Chris@69 293 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
Chris@69 294 AS_VAR_COPY([$1], [pkg_cv_][$1])
Chris@69 295
Chris@69 296 AS_VAR_IF([$1], [""], [$5], [$4])dnl
Chris@69 297 ])dnl PKG_CHECK_VAR
Chris@69 298
Chris@69 299 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Chris@69 300 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
Chris@69 301 dnl [DESCRIPTION], [DEFAULT])
Chris@69 302 dnl ------------------------------------------
Chris@69 303 dnl
Chris@69 304 dnl Prepare a "--with-" configure option using the lowercase
Chris@69 305 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
Chris@69 306 dnl PKG_CHECK_MODULES in a single macro.
Chris@69 307 AC_DEFUN([PKG_WITH_MODULES],
Chris@69 308 [
Chris@69 309 m4_pushdef([with_arg], m4_tolower([$1]))
Chris@69 310
Chris@69 311 m4_pushdef([description],
Chris@69 312 [m4_default([$5], [build with ]with_arg[ support])])
Chris@69 313
Chris@69 314 m4_pushdef([def_arg], [m4_default([$6], [auto])])
Chris@69 315 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
Chris@69 316 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
Chris@69 317
Chris@69 318 m4_case(def_arg,
Chris@69 319 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
Chris@69 320 [m4_pushdef([with_without],[--with-]with_arg)])
Chris@69 321
Chris@69 322 AC_ARG_WITH(with_arg,
Chris@69 323 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
Chris@69 324 [AS_TR_SH([with_]with_arg)=def_arg])
Chris@69 325
Chris@69 326 AS_CASE([$AS_TR_SH([with_]with_arg)],
Chris@69 327 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
Chris@69 328 [auto],[PKG_CHECK_MODULES([$1],[$2],
Chris@69 329 [m4_n([def_action_if_found]) $3],
Chris@69 330 [m4_n([def_action_if_not_found]) $4])])
Chris@69 331
Chris@69 332 m4_popdef([with_arg])
Chris@69 333 m4_popdef([description])
Chris@69 334 m4_popdef([def_arg])
Chris@69 335
Chris@69 336 ])dnl PKG_WITH_MODULES
Chris@69 337
Chris@69 338 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Chris@69 339 dnl [DESCRIPTION], [DEFAULT])
Chris@69 340 dnl -----------------------------------------------
Chris@69 341 dnl
Chris@69 342 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
Chris@69 343 dnl check._[VARIABLE-PREFIX] is exported as make variable.
Chris@69 344 AC_DEFUN([PKG_HAVE_WITH_MODULES],
Chris@69 345 [
Chris@69 346 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
Chris@69 347
Chris@69 348 AM_CONDITIONAL([HAVE_][$1],
Chris@69 349 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
Chris@69 350 ])dnl PKG_HAVE_WITH_MODULES
Chris@69 351
Chris@69 352 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Chris@69 353 dnl [DESCRIPTION], [DEFAULT])
Chris@69 354 dnl ------------------------------------------------------
Chris@69 355 dnl
Chris@69 356 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
Chris@69 357 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
Chris@69 358 dnl and preprocessor variable.
Chris@69 359 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
Chris@69 360 [
Chris@69 361 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
Chris@69 362
Chris@69 363 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
Chris@69 364 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
Chris@69 365 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
Chris@69 366
Chris@69 367 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
Chris@69 368 #
Chris@69 369 # This file is free software; the Free Software Foundation
Chris@69 370 # gives unlimited permission to copy and/or distribute it,
Chris@69 371 # with or without modifications, as long as this notice is preserved.
Chris@69 372
Chris@69 373 # AM_AUTOMAKE_VERSION(VERSION)
Chris@69 374 # ----------------------------
Chris@69 375 # Automake X.Y traces this macro to ensure aclocal.m4 has been
Chris@69 376 # generated from the m4 files accompanying Automake X.Y.
Chris@69 377 # (This private macro should not be called outside this file.)
Chris@69 378 AC_DEFUN([AM_AUTOMAKE_VERSION],
Chris@69 379 [am__api_version='1.15'
Chris@69 380 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Chris@69 381 dnl require some minimum version. Point them to the right macro.
Chris@69 382 m4_if([$1], [1.15], [],
Chris@69 383 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Chris@69 384 ])
Chris@69 385
Chris@69 386 # _AM_AUTOCONF_VERSION(VERSION)
Chris@69 387 # -----------------------------
Chris@69 388 # aclocal traces this macro to find the Autoconf version.
Chris@69 389 # This is a private macro too. Using m4_define simplifies
Chris@69 390 # the logic in aclocal, which can simply ignore this definition.
Chris@69 391 m4_define([_AM_AUTOCONF_VERSION], [])
Chris@69 392
Chris@69 393 # AM_SET_CURRENT_AUTOMAKE_VERSION
Chris@69 394 # -------------------------------
Chris@69 395 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Chris@69 396 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Chris@69 397 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Chris@69 398 [AM_AUTOMAKE_VERSION([1.15])dnl
Chris@69 399 m4_ifndef([AC_AUTOCONF_VERSION],
Chris@69 400 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Chris@69 401 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Chris@69 402
Chris@69 403 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
Chris@69 404
Chris@69 405 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 406 #
Chris@69 407 # This file is free software; the Free Software Foundation
Chris@69 408 # gives unlimited permission to copy and/or distribute it,
Chris@69 409 # with or without modifications, as long as this notice is preserved.
Chris@69 410
Chris@69 411 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Chris@69 412 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
Chris@69 413 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Chris@69 414 #
Chris@69 415 # Of course, Automake must honor this variable whenever it calls a
Chris@69 416 # tool from the auxiliary directory. The problem is that $srcdir (and
Chris@69 417 # therefore $ac_aux_dir as well) can be either absolute or relative,
Chris@69 418 # depending on how configure is run. This is pretty annoying, since
Chris@69 419 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
Chris@69 420 # source directory, any form will work fine, but in subdirectories a
Chris@69 421 # relative path needs to be adjusted first.
Chris@69 422 #
Chris@69 423 # $ac_aux_dir/missing
Chris@69 424 # fails when called from a subdirectory if $ac_aux_dir is relative
Chris@69 425 # $top_srcdir/$ac_aux_dir/missing
Chris@69 426 # fails if $ac_aux_dir is absolute,
Chris@69 427 # fails when called from a subdirectory in a VPATH build with
Chris@69 428 # a relative $ac_aux_dir
Chris@69 429 #
Chris@69 430 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Chris@69 431 # are both prefixed by $srcdir. In an in-source build this is usually
Chris@69 432 # harmless because $srcdir is '.', but things will broke when you
Chris@69 433 # start a VPATH build or use an absolute $srcdir.
Chris@69 434 #
Chris@69 435 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Chris@69 436 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
Chris@69 437 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Chris@69 438 # and then we would define $MISSING as
Chris@69 439 # MISSING="\${SHELL} $am_aux_dir/missing"
Chris@69 440 # This will work as long as MISSING is not called from configure, because
Chris@69 441 # unfortunately $(top_srcdir) has no meaning in configure.
Chris@69 442 # However there are other variables, like CC, which are often used in
Chris@69 443 # configure, and could therefore not use this "fixed" $ac_aux_dir.
Chris@69 444 #
Chris@69 445 # Another solution, used here, is to always expand $ac_aux_dir to an
Chris@69 446 # absolute PATH. The drawback is that using absolute paths prevent a
Chris@69 447 # configured tree to be moved without reconfiguration.
Chris@69 448
Chris@69 449 AC_DEFUN([AM_AUX_DIR_EXPAND],
Chris@69 450 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Chris@69 451 # Expand $ac_aux_dir to an absolute path.
Chris@69 452 am_aux_dir=`cd "$ac_aux_dir" && pwd`
Chris@69 453 ])
Chris@69 454
Chris@69 455 # AM_COND_IF -*- Autoconf -*-
Chris@69 456
Chris@69 457 # Copyright (C) 2008-2014 Free Software Foundation, Inc.
Chris@69 458 #
Chris@69 459 # This file is free software; the Free Software Foundation
Chris@69 460 # gives unlimited permission to copy and/or distribute it,
Chris@69 461 # with or without modifications, as long as this notice is preserved.
Chris@69 462
Chris@69 463 # _AM_COND_IF
Chris@69 464 # _AM_COND_ELSE
Chris@69 465 # _AM_COND_ENDIF
Chris@69 466 # --------------
Chris@69 467 # These macros are only used for tracing.
Chris@69 468 m4_define([_AM_COND_IF])
Chris@69 469 m4_define([_AM_COND_ELSE])
Chris@69 470 m4_define([_AM_COND_ENDIF])
Chris@69 471
Chris@69 472 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
Chris@69 473 # ---------------------------------------
Chris@69 474 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
Chris@69 475 # IF-FALSE. Allow automake to learn about conditional instantiating macros
Chris@69 476 # (the AC_CONFIG_FOOS).
Chris@69 477 AC_DEFUN([AM_COND_IF],
Chris@69 478 [m4_ifndef([_AM_COND_VALUE_$1],
Chris@69 479 [m4_fatal([$0: no such condition "$1"])])dnl
Chris@69 480 _AM_COND_IF([$1])dnl
Chris@69 481 if test -z "$$1_TRUE"; then :
Chris@69 482 m4_n([$2])[]dnl
Chris@69 483 m4_ifval([$3],
Chris@69 484 [_AM_COND_ELSE([$1])dnl
Chris@69 485 else
Chris@69 486 $3
Chris@69 487 ])dnl
Chris@69 488 _AM_COND_ENDIF([$1])dnl
Chris@69 489 fi[]dnl
Chris@69 490 ])
Chris@69 491
Chris@69 492 # AM_CONDITIONAL -*- Autoconf -*-
Chris@69 493
Chris@69 494 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
Chris@69 495 #
Chris@69 496 # This file is free software; the Free Software Foundation
Chris@69 497 # gives unlimited permission to copy and/or distribute it,
Chris@69 498 # with or without modifications, as long as this notice is preserved.
Chris@69 499
Chris@69 500 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
Chris@69 501 # -------------------------------------
Chris@69 502 # Define a conditional.
Chris@69 503 AC_DEFUN([AM_CONDITIONAL],
Chris@69 504 [AC_PREREQ([2.52])dnl
Chris@69 505 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
Chris@69 506 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Chris@69 507 AC_SUBST([$1_TRUE])dnl
Chris@69 508 AC_SUBST([$1_FALSE])dnl
Chris@69 509 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
Chris@69 510 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
Chris@69 511 m4_define([_AM_COND_VALUE_$1], [$2])dnl
Chris@69 512 if $2; then
Chris@69 513 $1_TRUE=
Chris@69 514 $1_FALSE='#'
Chris@69 515 else
Chris@69 516 $1_TRUE='#'
Chris@69 517 $1_FALSE=
Chris@69 518 fi
Chris@69 519 AC_CONFIG_COMMANDS_PRE(
Chris@69 520 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Chris@69 521 AC_MSG_ERROR([[conditional "$1" was never defined.
Chris@69 522 Usually this means the macro was only invoked conditionally.]])
Chris@69 523 fi])])
Chris@69 524
Chris@69 525 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
Chris@69 526 #
Chris@69 527 # This file is free software; the Free Software Foundation
Chris@69 528 # gives unlimited permission to copy and/or distribute it,
Chris@69 529 # with or without modifications, as long as this notice is preserved.
Chris@69 530
Chris@69 531
Chris@69 532 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Chris@69 533 # written in clear, in which case automake, when reading aclocal.m4,
Chris@69 534 # will think it sees a *use*, and therefore will trigger all it's
Chris@69 535 # C support machinery. Also note that it means that autoscan, seeing
Chris@69 536 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Chris@69 537
Chris@69 538
Chris@69 539 # _AM_DEPENDENCIES(NAME)
Chris@69 540 # ----------------------
Chris@69 541 # See how the compiler implements dependency checking.
Chris@69 542 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Chris@69 543 # We try a few techniques and use that to set a single cache variable.
Chris@69 544 #
Chris@69 545 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Chris@69 546 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Chris@69 547 # dependency, and given that the user is not expected to run this macro,
Chris@69 548 # just rely on AC_PROG_CC.
Chris@69 549 AC_DEFUN([_AM_DEPENDENCIES],
Chris@69 550 [AC_REQUIRE([AM_SET_DEPDIR])dnl
Chris@69 551 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Chris@69 552 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Chris@69 553 AC_REQUIRE([AM_DEP_TRACK])dnl
Chris@69 554
Chris@69 555 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
Chris@69 556 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
Chris@69 557 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Chris@69 558 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Chris@69 559 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
Chris@69 560 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
Chris@69 561 [depcc="$$1" am_compiler_list=])
Chris@69 562
Chris@69 563 AC_CACHE_CHECK([dependency style of $depcc],
Chris@69 564 [am_cv_$1_dependencies_compiler_type],
Chris@69 565 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@69 566 # We make a subdir and do the tests there. Otherwise we can end up
Chris@69 567 # making bogus files that we don't know about and never remove. For
Chris@69 568 # instance it was reported that on HP-UX the gcc test will end up
Chris@69 569 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@69 570 # in D".
Chris@69 571 rm -rf conftest.dir
Chris@69 572 mkdir conftest.dir
Chris@69 573 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@69 574 # using a relative directory.
Chris@69 575 cp "$am_depcomp" conftest.dir
Chris@69 576 cd conftest.dir
Chris@69 577 # We will build objects and dependencies in a subdirectory because
Chris@69 578 # it helps to detect inapplicable dependency modes. For instance
Chris@69 579 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@69 580 # side effect of compilation, but ICC will put the dependencies in
Chris@69 581 # the current directory while Tru64 will put them in the object
Chris@69 582 # directory.
Chris@69 583 mkdir sub
Chris@69 584
Chris@69 585 am_cv_$1_dependencies_compiler_type=none
Chris@69 586 if test "$am_compiler_list" = ""; then
Chris@69 587 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Chris@69 588 fi
Chris@69 589 am__universal=false
Chris@69 590 m4_case([$1], [CC],
Chris@69 591 [case " $depcc " in #(
Chris@69 592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@69 593 esac],
Chris@69 594 [CXX],
Chris@69 595 [case " $depcc " in #(
Chris@69 596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@69 597 esac])
Chris@69 598
Chris@69 599 for depmode in $am_compiler_list; do
Chris@69 600 # Setup a source with many dependencies, because some compilers
Chris@69 601 # like to wrap large dependency lists on column 80 (with \), and
Chris@69 602 # we should not choose a depcomp mode which is confused by this.
Chris@69 603 #
Chris@69 604 # We need to recreate these files for each test, as the compiler may
Chris@69 605 # overwrite some of them when testing with obscure command lines.
Chris@69 606 # This happens at least with the AIX C compiler.
Chris@69 607 : > sub/conftest.c
Chris@69 608 for i in 1 2 3 4 5 6; do
Chris@69 609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@69 610 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@69 611 # Solaris 10 /bin/sh.
Chris@69 612 echo '/* dummy */' > sub/conftst$i.h
Chris@69 613 done
Chris@69 614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@69 615
Chris@69 616 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@69 617 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@69 618 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@69 619 # versions had trouble with output in subdirs.
Chris@69 620 am__obj=sub/conftest.${OBJEXT-o}
Chris@69 621 am__minus_obj="-o $am__obj"
Chris@69 622 case $depmode in
Chris@69 623 gcc)
Chris@69 624 # This depmode causes a compiler race in universal mode.
Chris@69 625 test "$am__universal" = false || continue
Chris@69 626 ;;
Chris@69 627 nosideeffect)
Chris@69 628 # After this tag, mechanisms are not by side-effect, so they'll
Chris@69 629 # only be used when explicitly requested.
Chris@69 630 if test "x$enable_dependency_tracking" = xyes; then
Chris@69 631 continue
Chris@69 632 else
Chris@69 633 break
Chris@69 634 fi
Chris@69 635 ;;
Chris@69 636 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@69 637 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@69 638 # not run yet. These depmodes are late enough in the game, and
Chris@69 639 # so weak that their functioning should not be impacted.
Chris@69 640 am__obj=conftest.${OBJEXT-o}
Chris@69 641 am__minus_obj=
Chris@69 642 ;;
Chris@69 643 none) break ;;
Chris@69 644 esac
Chris@69 645 if depmode=$depmode \
Chris@69 646 source=sub/conftest.c object=$am__obj \
Chris@69 647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@69 648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@69 649 >/dev/null 2>conftest.err &&
Chris@69 650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@69 654 # icc doesn't choke on unknown options, it will just issue warnings
Chris@69 655 # or remarks (even with -Werror). So we grep stderr for any message
Chris@69 656 # that says an option was ignored or not supported.
Chris@69 657 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@69 658 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@69 659 # The diagnosis changed in icc 8.0:
Chris@69 660 # icc: Command line remark: option '-MP' not supported
Chris@69 661 if (grep 'ignoring option' conftest.err ||
Chris@69 662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@69 663 am_cv_$1_dependencies_compiler_type=$depmode
Chris@69 664 break
Chris@69 665 fi
Chris@69 666 fi
Chris@69 667 done
Chris@69 668
Chris@69 669 cd ..
Chris@69 670 rm -rf conftest.dir
Chris@69 671 else
Chris@69 672 am_cv_$1_dependencies_compiler_type=none
Chris@69 673 fi
Chris@69 674 ])
Chris@69 675 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Chris@69 676 AM_CONDITIONAL([am__fastdep$1], [
Chris@69 677 test "x$enable_dependency_tracking" != xno \
Chris@69 678 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Chris@69 679 ])
Chris@69 680
Chris@69 681
Chris@69 682 # AM_SET_DEPDIR
Chris@69 683 # -------------
Chris@69 684 # Choose a directory name for dependency files.
Chris@69 685 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Chris@69 686 AC_DEFUN([AM_SET_DEPDIR],
Chris@69 687 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Chris@69 688 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Chris@69 689 ])
Chris@69 690
Chris@69 691
Chris@69 692 # AM_DEP_TRACK
Chris@69 693 # ------------
Chris@69 694 AC_DEFUN([AM_DEP_TRACK],
Chris@69 695 [AC_ARG_ENABLE([dependency-tracking], [dnl
Chris@69 696 AS_HELP_STRING(
Chris@69 697 [--enable-dependency-tracking],
Chris@69 698 [do not reject slow dependency extractors])
Chris@69 699 AS_HELP_STRING(
Chris@69 700 [--disable-dependency-tracking],
Chris@69 701 [speeds up one-time build])])
Chris@69 702 if test "x$enable_dependency_tracking" != xno; then
Chris@69 703 am_depcomp="$ac_aux_dir/depcomp"
Chris@69 704 AMDEPBACKSLASH='\'
Chris@69 705 am__nodep='_no'
Chris@69 706 fi
Chris@69 707 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Chris@69 708 AC_SUBST([AMDEPBACKSLASH])dnl
Chris@69 709 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Chris@69 710 AC_SUBST([am__nodep])dnl
Chris@69 711 _AM_SUBST_NOTMAKE([am__nodep])dnl
Chris@69 712 ])
Chris@69 713
Chris@69 714 # Generate code to set up dependency tracking. -*- Autoconf -*-
Chris@69 715
Chris@69 716 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
Chris@69 717 #
Chris@69 718 # This file is free software; the Free Software Foundation
Chris@69 719 # gives unlimited permission to copy and/or distribute it,
Chris@69 720 # with or without modifications, as long as this notice is preserved.
Chris@69 721
Chris@69 722
Chris@69 723 # _AM_OUTPUT_DEPENDENCY_COMMANDS
Chris@69 724 # ------------------------------
Chris@69 725 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Chris@69 726 [{
Chris@69 727 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@69 728 # are listed without --file. Let's play safe and only enable the eval
Chris@69 729 # if we detect the quoting.
Chris@69 730 case $CONFIG_FILES in
Chris@69 731 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@69 732 *) set x $CONFIG_FILES ;;
Chris@69 733 esac
Chris@69 734 shift
Chris@69 735 for mf
Chris@69 736 do
Chris@69 737 # Strip MF so we end up with the name of the file.
Chris@69 738 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@69 739 # Check whether this is an Automake generated Makefile or not.
Chris@69 740 # We used to match only the files named 'Makefile.in', but
Chris@69 741 # some people rename them; so instead we look at the file content.
Chris@69 742 # Grep'ing the first line is not enough: some people post-process
Chris@69 743 # each Makefile.in and add a new line on top of each file to say so.
Chris@69 744 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@69 745 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@69 746 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@69 747 dirpart=`AS_DIRNAME("$mf")`
Chris@69 748 else
Chris@69 749 continue
Chris@69 750 fi
Chris@69 751 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@69 752 # from the Makefile without running 'make'.
Chris@69 753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@69 754 test -z "$DEPDIR" && continue
Chris@69 755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@69 756 test -z "$am__include" && continue
Chris@69 757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@69 758 # Find all dependency output files, they are included files with
Chris@69 759 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@69 760 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@69 761 # expansion.
Chris@69 762 for file in `sed -n "
Chris@69 763 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@69 764 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@69 765 # Make sure the directory exists.
Chris@69 766 test -f "$dirpart/$file" && continue
Chris@69 767 fdir=`AS_DIRNAME(["$file"])`
Chris@69 768 AS_MKDIR_P([$dirpart/$fdir])
Chris@69 769 # echo "creating $dirpart/$file"
Chris@69 770 echo '# dummy' > "$dirpart/$file"
Chris@69 771 done
Chris@69 772 done
Chris@69 773 }
Chris@69 774 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Chris@69 775
Chris@69 776
Chris@69 777 # AM_OUTPUT_DEPENDENCY_COMMANDS
Chris@69 778 # -----------------------------
Chris@69 779 # This macro should only be invoked once -- use via AC_REQUIRE.
Chris@69 780 #
Chris@69 781 # This code is only required when automatic dependency tracking
Chris@69 782 # is enabled. FIXME. This creates each '.P' file that we will
Chris@69 783 # need in order to bootstrap the dependency handling code.
Chris@69 784 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Chris@69 785 [AC_CONFIG_COMMANDS([depfiles],
Chris@69 786 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Chris@69 787 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Chris@69 788 ])
Chris@69 789
Chris@69 790 # Do all the work for Automake. -*- Autoconf -*-
Chris@69 791
Chris@69 792 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
Chris@69 793 #
Chris@69 794 # This file is free software; the Free Software Foundation
Chris@69 795 # gives unlimited permission to copy and/or distribute it,
Chris@69 796 # with or without modifications, as long as this notice is preserved.
Chris@69 797
Chris@69 798 # This macro actually does too much. Some checks are only needed if
Chris@69 799 # your package does certain things. But this isn't really a big deal.
Chris@69 800
Chris@69 801 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
Chris@69 802 m4_define([AC_PROG_CC],
Chris@69 803 m4_defn([AC_PROG_CC])
Chris@69 804 [_AM_PROG_CC_C_O
Chris@69 805 ])
Chris@69 806
Chris@69 807 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Chris@69 808 # AM_INIT_AUTOMAKE([OPTIONS])
Chris@69 809 # -----------------------------------------------
Chris@69 810 # The call with PACKAGE and VERSION arguments is the old style
Chris@69 811 # call (pre autoconf-2.50), which is being phased out. PACKAGE
Chris@69 812 # and VERSION should now be passed to AC_INIT and removed from
Chris@69 813 # the call to AM_INIT_AUTOMAKE.
Chris@69 814 # We support both call styles for the transition. After
Chris@69 815 # the next Automake release, Autoconf can make the AC_INIT
Chris@69 816 # arguments mandatory, and then we can depend on a new Autoconf
Chris@69 817 # release and drop the old call support.
Chris@69 818 AC_DEFUN([AM_INIT_AUTOMAKE],
Chris@69 819 [AC_PREREQ([2.65])dnl
Chris@69 820 dnl Autoconf wants to disallow AM_ names. We explicitly allow
Chris@69 821 dnl the ones we care about.
Chris@69 822 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Chris@69 823 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Chris@69 824 AC_REQUIRE([AC_PROG_INSTALL])dnl
Chris@69 825 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@69 826 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@69 827 # is not polluted with repeated "-I."
Chris@69 828 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Chris@69 829 # test to see if srcdir already configured
Chris@69 830 if test -f $srcdir/config.status; then
Chris@69 831 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Chris@69 832 fi
Chris@69 833 fi
Chris@69 834
Chris@69 835 # test whether we have cygpath
Chris@69 836 if test -z "$CYGPATH_W"; then
Chris@69 837 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@69 838 CYGPATH_W='cygpath -w'
Chris@69 839 else
Chris@69 840 CYGPATH_W=echo
Chris@69 841 fi
Chris@69 842 fi
Chris@69 843 AC_SUBST([CYGPATH_W])
Chris@69 844
Chris@69 845 # Define the identity of the package.
Chris@69 846 dnl Distinguish between old-style and new-style calls.
Chris@69 847 m4_ifval([$2],
Chris@69 848 [AC_DIAGNOSE([obsolete],
Chris@69 849 [$0: two- and three-arguments forms are deprecated.])
Chris@69 850 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Chris@69 851 AC_SUBST([PACKAGE], [$1])dnl
Chris@69 852 AC_SUBST([VERSION], [$2])],
Chris@69 853 [_AM_SET_OPTIONS([$1])dnl
Chris@69 854 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Chris@69 855 m4_if(
Chris@69 856 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Chris@69 857 [ok:ok],,
Chris@69 858 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Chris@69 859 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Chris@69 860 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Chris@69 861
Chris@69 862 _AM_IF_OPTION([no-define],,
Chris@69 863 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Chris@69 864 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Chris@69 865
Chris@69 866 # Some tools Automake needs.
Chris@69 867 AC_REQUIRE([AM_SANITY_CHECK])dnl
Chris@69 868 AC_REQUIRE([AC_ARG_PROGRAM])dnl
Chris@69 869 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Chris@69 870 AM_MISSING_PROG([AUTOCONF], [autoconf])
Chris@69 871 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Chris@69 872 AM_MISSING_PROG([AUTOHEADER], [autoheader])
Chris@69 873 AM_MISSING_PROG([MAKEINFO], [makeinfo])
Chris@69 874 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Chris@69 875 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Chris@69 876 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Chris@69 877 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@69 878 # dies out for good. For more background, see:
Chris@69 879 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@69 880 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@69 881 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Chris@69 882 # We need awk for the "check" target (and possibly the TAP driver). The
Chris@69 883 # system "awk" is bad on some platforms.
Chris@69 884 AC_REQUIRE([AC_PROG_AWK])dnl
Chris@69 885 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Chris@69 886 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Chris@69 887 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Chris@69 888 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Chris@69 889 [_AM_PROG_TAR([v7])])])
Chris@69 890 _AM_IF_OPTION([no-dependencies],,
Chris@69 891 [AC_PROVIDE_IFELSE([AC_PROG_CC],
Chris@69 892 [_AM_DEPENDENCIES([CC])],
Chris@69 893 [m4_define([AC_PROG_CC],
Chris@69 894 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Chris@69 895 AC_PROVIDE_IFELSE([AC_PROG_CXX],
Chris@69 896 [_AM_DEPENDENCIES([CXX])],
Chris@69 897 [m4_define([AC_PROG_CXX],
Chris@69 898 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Chris@69 899 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Chris@69 900 [_AM_DEPENDENCIES([OBJC])],
Chris@69 901 [m4_define([AC_PROG_OBJC],
Chris@69 902 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Chris@69 903 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Chris@69 904 [_AM_DEPENDENCIES([OBJCXX])],
Chris@69 905 [m4_define([AC_PROG_OBJCXX],
Chris@69 906 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
Chris@69 907 ])
Chris@69 908 AC_REQUIRE([AM_SILENT_RULES])dnl
Chris@69 909 dnl The testsuite driver may need to know about EXEEXT, so add the
Chris@69 910 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
Chris@69 911 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
Chris@69 912 AC_CONFIG_COMMANDS_PRE(dnl
Chris@69 913 [m4_provide_if([_AM_COMPILER_EXEEXT],
Chris@69 914 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Chris@69 915
Chris@69 916 # POSIX will say in a future version that running "rm -f" with no argument
Chris@69 917 # is OK; and we want to be able to make that assumption in our Makefile
Chris@69 918 # recipes. So use an aggressive probe to check that the usage we want is
Chris@69 919 # actually supported "in the wild" to an acceptable degree.
Chris@69 920 # See automake bug#10828.
Chris@69 921 # To make any issue more visible, cause the running configure to be aborted
Chris@69 922 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@69 923 # user can still override this though.
Chris@69 924 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@69 925 cat >&2 <<'END'
Chris@69 926 Oops!
Chris@69 927
Chris@69 928 Your 'rm' program seems unable to run without file operands specified
Chris@69 929 on the command line, even when the '-f' option is present. This is contrary
Chris@69 930 to the behaviour of most rm programs out there, and not conforming with
Chris@69 931 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@69 932
Chris@69 933 Please tell bug-automake@gnu.org about your system, including the value
Chris@69 934 of your $PATH and any error possibly output before this message. This
Chris@69 935 can help us improve future automake versions.
Chris@69 936
Chris@69 937 END
Chris@69 938 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@69 939 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@69 940 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@69 941 echo >&2
Chris@69 942 else
Chris@69 943 cat >&2 <<'END'
Chris@69 944 Aborting the configuration process, to ensure you take notice of the issue.
Chris@69 945
Chris@69 946 You can download and install GNU coreutils to get an 'rm' implementation
Chris@69 947 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@69 948
Chris@69 949 If you want to complete the configuration process using your problematic
Chris@69 950 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@69 951 to "yes", and re-run configure.
Chris@69 952
Chris@69 953 END
Chris@69 954 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
Chris@69 955 fi
Chris@69 956 fi
Chris@69 957 dnl The trailing newline in this macro's definition is deliberate, for
Chris@69 958 dnl backward compatibility and to allow trailing 'dnl'-style comments
Chris@69 959 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
Chris@69 960 ])
Chris@69 961
Chris@69 962 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
Chris@69 963 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Chris@69 964 dnl mangled by Autoconf and run in a shell conditional statement.
Chris@69 965 m4_define([_AC_COMPILER_EXEEXT],
Chris@69 966 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Chris@69 967
Chris@69 968 # When config.status generates a header, we must update the stamp-h file.
Chris@69 969 # This file resides in the same directory as the config header
Chris@69 970 # that is generated. The stamp files are numbered to have different names.
Chris@69 971
Chris@69 972 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Chris@69 973 # loop where config.status creates the headers, so we can generate
Chris@69 974 # our stamp files there.
Chris@69 975 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Chris@69 976 [# Compute $1's index in $config_headers.
Chris@69 977 _am_arg=$1
Chris@69 978 _am_stamp_count=1
Chris@69 979 for _am_header in $config_headers :; do
Chris@69 980 case $_am_header in
Chris@69 981 $_am_arg | $_am_arg:* )
Chris@69 982 break ;;
Chris@69 983 * )
Chris@69 984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@69 985 esac
Chris@69 986 done
Chris@69 987 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Chris@69 988
Chris@69 989 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 990 #
Chris@69 991 # This file is free software; the Free Software Foundation
Chris@69 992 # gives unlimited permission to copy and/or distribute it,
Chris@69 993 # with or without modifications, as long as this notice is preserved.
Chris@69 994
Chris@69 995 # AM_PROG_INSTALL_SH
Chris@69 996 # ------------------
Chris@69 997 # Define $install_sh.
Chris@69 998 AC_DEFUN([AM_PROG_INSTALL_SH],
Chris@69 999 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Chris@69 1000 if test x"${install_sh+set}" != xset; then
Chris@69 1001 case $am_aux_dir in
Chris@69 1002 *\ * | *\ *)
Chris@69 1003 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@69 1004 *)
Chris@69 1005 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@69 1006 esac
Chris@69 1007 fi
Chris@69 1008 AC_SUBST([install_sh])])
Chris@69 1009
Chris@69 1010 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
Chris@69 1011 #
Chris@69 1012 # This file is free software; the Free Software Foundation
Chris@69 1013 # gives unlimited permission to copy and/or distribute it,
Chris@69 1014 # with or without modifications, as long as this notice is preserved.
Chris@69 1015
Chris@69 1016 # Check whether the underlying file-system supports filenames
Chris@69 1017 # with a leading dot. For instance MS-DOS doesn't.
Chris@69 1018 AC_DEFUN([AM_SET_LEADING_DOT],
Chris@69 1019 [rm -rf .tst 2>/dev/null
Chris@69 1020 mkdir .tst 2>/dev/null
Chris@69 1021 if test -d .tst; then
Chris@69 1022 am__leading_dot=.
Chris@69 1023 else
Chris@69 1024 am__leading_dot=_
Chris@69 1025 fi
Chris@69 1026 rmdir .tst 2>/dev/null
Chris@69 1027 AC_SUBST([am__leading_dot])])
Chris@69 1028
Chris@69 1029 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
Chris@69 1030 # From Jim Meyering
Chris@69 1031
Chris@69 1032 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
Chris@69 1033 #
Chris@69 1034 # This file is free software; the Free Software Foundation
Chris@69 1035 # gives unlimited permission to copy and/or distribute it,
Chris@69 1036 # with or without modifications, as long as this notice is preserved.
Chris@69 1037
Chris@69 1038 # AM_MAINTAINER_MODE([DEFAULT-MODE])
Chris@69 1039 # ----------------------------------
Chris@69 1040 # Control maintainer-specific portions of Makefiles.
Chris@69 1041 # Default is to disable them, unless 'enable' is passed literally.
Chris@69 1042 # For symmetry, 'disable' may be passed as well. Anyway, the user
Chris@69 1043 # can override the default with the --enable/--disable switch.
Chris@69 1044 AC_DEFUN([AM_MAINTAINER_MODE],
Chris@69 1045 [m4_case(m4_default([$1], [disable]),
Chris@69 1046 [enable], [m4_define([am_maintainer_other], [disable])],
Chris@69 1047 [disable], [m4_define([am_maintainer_other], [enable])],
Chris@69 1048 [m4_define([am_maintainer_other], [enable])
Chris@69 1049 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Chris@69 1050 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Chris@69 1051 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Chris@69 1052 AC_ARG_ENABLE([maintainer-mode],
Chris@69 1053 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
Chris@69 1054 am_maintainer_other[ make rules and dependencies not useful
Chris@69 1055 (and sometimes confusing) to the casual installer])],
Chris@69 1056 [USE_MAINTAINER_MODE=$enableval],
Chris@69 1057 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Chris@69 1058 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Chris@69 1059 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Chris@69 1060 MAINT=$MAINTAINER_MODE_TRUE
Chris@69 1061 AC_SUBST([MAINT])dnl
Chris@69 1062 ]
Chris@69 1063 )
Chris@69 1064
Chris@69 1065 # Check to see how 'make' treats includes. -*- Autoconf -*-
Chris@69 1066
Chris@69 1067 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 1068 #
Chris@69 1069 # This file is free software; the Free Software Foundation
Chris@69 1070 # gives unlimited permission to copy and/or distribute it,
Chris@69 1071 # with or without modifications, as long as this notice is preserved.
Chris@69 1072
Chris@69 1073 # AM_MAKE_INCLUDE()
Chris@69 1074 # -----------------
Chris@69 1075 # Check to see how make treats includes.
Chris@69 1076 AC_DEFUN([AM_MAKE_INCLUDE],
Chris@69 1077 [am_make=${MAKE-make}
Chris@69 1078 cat > confinc << 'END'
Chris@69 1079 am__doit:
Chris@69 1080 @echo this is the am__doit target
Chris@69 1081 .PHONY: am__doit
Chris@69 1082 END
Chris@69 1083 # If we don't find an include directive, just comment out the code.
Chris@69 1084 AC_MSG_CHECKING([for style of include used by $am_make])
Chris@69 1085 am__include="#"
Chris@69 1086 am__quote=
Chris@69 1087 _am_result=none
Chris@69 1088 # First try GNU make style include.
Chris@69 1089 echo "include confinc" > confmf
Chris@69 1090 # Ignore all kinds of additional output from 'make'.
Chris@69 1091 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 1092 *the\ am__doit\ target*)
Chris@69 1093 am__include=include
Chris@69 1094 am__quote=
Chris@69 1095 _am_result=GNU
Chris@69 1096 ;;
Chris@69 1097 esac
Chris@69 1098 # Now try BSD make style include.
Chris@69 1099 if test "$am__include" = "#"; then
Chris@69 1100 echo '.include "confinc"' > confmf
Chris@69 1101 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 1102 *the\ am__doit\ target*)
Chris@69 1103 am__include=.include
Chris@69 1104 am__quote="\""
Chris@69 1105 _am_result=BSD
Chris@69 1106 ;;
Chris@69 1107 esac
Chris@69 1108 fi
Chris@69 1109 AC_SUBST([am__include])
Chris@69 1110 AC_SUBST([am__quote])
Chris@69 1111 AC_MSG_RESULT([$_am_result])
Chris@69 1112 rm -f confinc confmf
Chris@69 1113 ])
Chris@69 1114
Chris@69 1115 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
Chris@69 1116
Chris@69 1117 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
Chris@69 1118 #
Chris@69 1119 # This file is free software; the Free Software Foundation
Chris@69 1120 # gives unlimited permission to copy and/or distribute it,
Chris@69 1121 # with or without modifications, as long as this notice is preserved.
Chris@69 1122
Chris@69 1123 # AM_MISSING_PROG(NAME, PROGRAM)
Chris@69 1124 # ------------------------------
Chris@69 1125 AC_DEFUN([AM_MISSING_PROG],
Chris@69 1126 [AC_REQUIRE([AM_MISSING_HAS_RUN])
Chris@69 1127 $1=${$1-"${am_missing_run}$2"}
Chris@69 1128 AC_SUBST($1)])
Chris@69 1129
Chris@69 1130 # AM_MISSING_HAS_RUN
Chris@69 1131 # ------------------
Chris@69 1132 # Define MISSING if not defined so far and test if it is modern enough.
Chris@69 1133 # If it is, set am_missing_run to use it, otherwise, to nothing.
Chris@69 1134 AC_DEFUN([AM_MISSING_HAS_RUN],
Chris@69 1135 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Chris@69 1136 AC_REQUIRE_AUX_FILE([missing])dnl
Chris@69 1137 if test x"${MISSING+set}" != xset; then
Chris@69 1138 case $am_aux_dir in
Chris@69 1139 *\ * | *\ *)
Chris@69 1140 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@69 1141 *)
Chris@69 1142 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@69 1143 esac
Chris@69 1144 fi
Chris@69 1145 # Use eval to expand $SHELL
Chris@69 1146 if eval "$MISSING --is-lightweight"; then
Chris@69 1147 am_missing_run="$MISSING "
Chris@69 1148 else
Chris@69 1149 am_missing_run=
Chris@69 1150 AC_MSG_WARN(['missing' script is too old or missing])
Chris@69 1151 fi
Chris@69 1152 ])
Chris@69 1153
Chris@69 1154 # Helper functions for option handling. -*- Autoconf -*-
Chris@69 1155
Chris@69 1156 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 1157 #
Chris@69 1158 # This file is free software; the Free Software Foundation
Chris@69 1159 # gives unlimited permission to copy and/or distribute it,
Chris@69 1160 # with or without modifications, as long as this notice is preserved.
Chris@69 1161
Chris@69 1162 # _AM_MANGLE_OPTION(NAME)
Chris@69 1163 # -----------------------
Chris@69 1164 AC_DEFUN([_AM_MANGLE_OPTION],
Chris@69 1165 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Chris@69 1166
Chris@69 1167 # _AM_SET_OPTION(NAME)
Chris@69 1168 # --------------------
Chris@69 1169 # Set option NAME. Presently that only means defining a flag for this option.
Chris@69 1170 AC_DEFUN([_AM_SET_OPTION],
Chris@69 1171 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Chris@69 1172
Chris@69 1173 # _AM_SET_OPTIONS(OPTIONS)
Chris@69 1174 # ------------------------
Chris@69 1175 # OPTIONS is a space-separated list of Automake options.
Chris@69 1176 AC_DEFUN([_AM_SET_OPTIONS],
Chris@69 1177 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Chris@69 1178
Chris@69 1179 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Chris@69 1180 # -------------------------------------------
Chris@69 1181 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Chris@69 1182 AC_DEFUN([_AM_IF_OPTION],
Chris@69 1183 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Chris@69 1184
Chris@69 1185 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
Chris@69 1186 #
Chris@69 1187 # This file is free software; the Free Software Foundation
Chris@69 1188 # gives unlimited permission to copy and/or distribute it,
Chris@69 1189 # with or without modifications, as long as this notice is preserved.
Chris@69 1190
Chris@69 1191 # _AM_PROG_CC_C_O
Chris@69 1192 # ---------------
Chris@69 1193 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
Chris@69 1194 # to automatically call this.
Chris@69 1195 AC_DEFUN([_AM_PROG_CC_C_O],
Chris@69 1196 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Chris@69 1197 AC_REQUIRE_AUX_FILE([compile])dnl
Chris@69 1198 AC_LANG_PUSH([C])dnl
Chris@69 1199 AC_CACHE_CHECK(
Chris@69 1200 [whether $CC understands -c and -o together],
Chris@69 1201 [am_cv_prog_cc_c_o],
Chris@69 1202 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
Chris@69 1203 # Make sure it works both with $CC and with simple cc.
Chris@69 1204 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@69 1205 # compilers refuse to overwrite an existing .o file with -o,
Chris@69 1206 # though they will create one.
Chris@69 1207 am_cv_prog_cc_c_o=yes
Chris@69 1208 for am_i in 1 2; do
Chris@69 1209 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
Chris@69 1210 && test -f conftest2.$ac_objext; then
Chris@69 1211 : OK
Chris@69 1212 else
Chris@69 1213 am_cv_prog_cc_c_o=no
Chris@69 1214 break
Chris@69 1215 fi
Chris@69 1216 done
Chris@69 1217 rm -f core conftest*
Chris@69 1218 unset am_i])
Chris@69 1219 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@69 1220 # Losing compiler, so override with the script.
Chris@69 1221 # FIXME: It is wrong to rewrite CC.
Chris@69 1222 # But if we don't then we get into trouble of one sort or another.
Chris@69 1223 # A longer-term fix would be to have automake use am__CC in this case,
Chris@69 1224 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@69 1225 CC="$am_aux_dir/compile $CC"
Chris@69 1226 fi
Chris@69 1227 AC_LANG_POP([C])])
Chris@69 1228
Chris@69 1229 # For backward compatibility.
Chris@69 1230 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
Chris@69 1231
Chris@69 1232 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 1233 #
Chris@69 1234 # This file is free software; the Free Software Foundation
Chris@69 1235 # gives unlimited permission to copy and/or distribute it,
Chris@69 1236 # with or without modifications, as long as this notice is preserved.
Chris@69 1237
Chris@69 1238 # AM_RUN_LOG(COMMAND)
Chris@69 1239 # -------------------
Chris@69 1240 # Run COMMAND, save the exit status in ac_status, and log it.
Chris@69 1241 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Chris@69 1242 AC_DEFUN([AM_RUN_LOG],
Chris@69 1243 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Chris@69 1244 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Chris@69 1245 ac_status=$?
Chris@69 1246 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Chris@69 1247 (exit $ac_status); }])
Chris@69 1248
Chris@69 1249 # Check to make sure that the build environment is sane. -*- Autoconf -*-
Chris@69 1250
Chris@69 1251 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
Chris@69 1252 #
Chris@69 1253 # This file is free software; the Free Software Foundation
Chris@69 1254 # gives unlimited permission to copy and/or distribute it,
Chris@69 1255 # with or without modifications, as long as this notice is preserved.
Chris@69 1256
Chris@69 1257 # AM_SANITY_CHECK
Chris@69 1258 # ---------------
Chris@69 1259 AC_DEFUN([AM_SANITY_CHECK],
Chris@69 1260 [AC_MSG_CHECKING([whether build environment is sane])
Chris@69 1261 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@69 1262 # name. Accept space and tab only in the latter.
Chris@69 1263 am_lf='
Chris@69 1264 '
Chris@69 1265 case `pwd` in
Chris@69 1266 *[[\\\"\#\$\&\'\`$am_lf]]*)
Chris@69 1267 AC_MSG_ERROR([unsafe absolute working directory name]);;
Chris@69 1268 esac
Chris@69 1269 case $srcdir in
Chris@69 1270 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
Chris@69 1271 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Chris@69 1272 esac
Chris@69 1273
Chris@69 1274 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@69 1275 # arguments. Must try -L first in case configure is actually a
Chris@69 1276 # symlink; some systems play weird games with the mod time of symlinks
Chris@69 1277 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@69 1278 # directory).
Chris@69 1279 if (
Chris@69 1280 am_has_slept=no
Chris@69 1281 for am_try in 1 2; do
Chris@69 1282 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@69 1283 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@69 1284 if test "$[*]" = "X"; then
Chris@69 1285 # -L didn't work.
Chris@69 1286 set X `ls -t "$srcdir/configure" conftest.file`
Chris@69 1287 fi
Chris@69 1288 if test "$[*]" != "X $srcdir/configure conftest.file" \
Chris@69 1289 && test "$[*]" != "X conftest.file $srcdir/configure"; then
Chris@69 1290
Chris@69 1291 # If neither matched, then we have a broken ls. This can happen
Chris@69 1292 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@69 1293 # broken ls alias from the environment. This has actually
Chris@69 1294 # happened. Such a system could not be considered "sane".
Chris@69 1295 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
Chris@69 1296 alias in your environment])
Chris@69 1297 fi
Chris@69 1298 if test "$[2]" = conftest.file || test $am_try -eq 2; then
Chris@69 1299 break
Chris@69 1300 fi
Chris@69 1301 # Just in case.
Chris@69 1302 sleep 1
Chris@69 1303 am_has_slept=yes
Chris@69 1304 done
Chris@69 1305 test "$[2]" = conftest.file
Chris@69 1306 )
Chris@69 1307 then
Chris@69 1308 # Ok.
Chris@69 1309 :
Chris@69 1310 else
Chris@69 1311 AC_MSG_ERROR([newly created file is older than distributed files!
Chris@69 1312 Check your system clock])
Chris@69 1313 fi
Chris@69 1314 AC_MSG_RESULT([yes])
Chris@69 1315 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@69 1316 # generated files are strictly newer.
Chris@69 1317 am_sleep_pid=
Chris@69 1318 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@69 1319 ( sleep 1 ) &
Chris@69 1320 am_sleep_pid=$!
Chris@69 1321 fi
Chris@69 1322 AC_CONFIG_COMMANDS_PRE(
Chris@69 1323 [AC_MSG_CHECKING([that generated files are newer than configure])
Chris@69 1324 if test -n "$am_sleep_pid"; then
Chris@69 1325 # Hide warnings about reused PIDs.
Chris@69 1326 wait $am_sleep_pid 2>/dev/null
Chris@69 1327 fi
Chris@69 1328 AC_MSG_RESULT([done])])
Chris@69 1329 rm -f conftest.file
Chris@69 1330 ])
Chris@69 1331
Chris@69 1332 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
Chris@69 1333 #
Chris@69 1334 # This file is free software; the Free Software Foundation
Chris@69 1335 # gives unlimited permission to copy and/or distribute it,
Chris@69 1336 # with or without modifications, as long as this notice is preserved.
Chris@69 1337
Chris@69 1338 # AM_SILENT_RULES([DEFAULT])
Chris@69 1339 # --------------------------
Chris@69 1340 # Enable less verbose build rules; with the default set to DEFAULT
Chris@69 1341 # ("yes" being less verbose, "no" or empty being verbose).
Chris@69 1342 AC_DEFUN([AM_SILENT_RULES],
Chris@69 1343 [AC_ARG_ENABLE([silent-rules], [dnl
Chris@69 1344 AS_HELP_STRING(
Chris@69 1345 [--enable-silent-rules],
Chris@69 1346 [less verbose build output (undo: "make V=1")])
Chris@69 1347 AS_HELP_STRING(
Chris@69 1348 [--disable-silent-rules],
Chris@69 1349 [verbose build output (undo: "make V=0")])dnl
Chris@69 1350 ])
Chris@69 1351 case $enable_silent_rules in @%:@ (((
Chris@69 1352 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@69 1353 no) AM_DEFAULT_VERBOSITY=1;;
Chris@69 1354 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Chris@69 1355 esac
Chris@69 1356 dnl
Chris@69 1357 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Chris@69 1358 dnl do not support nested variable expansions.
Chris@69 1359 dnl See automake bug#9928 and bug#10237.
Chris@69 1360 am_make=${MAKE-make}
Chris@69 1361 AC_CACHE_CHECK([whether $am_make supports nested variables],
Chris@69 1362 [am_cv_make_support_nested_variables],
Chris@69 1363 [if AS_ECHO([['TRUE=$(BAR$(V))
Chris@69 1364 BAR0=false
Chris@69 1365 BAR1=true
Chris@69 1366 V=1
Chris@69 1367 am__doit:
Chris@69 1368 @$(TRUE)
Chris@69 1369 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Chris@69 1370 am_cv_make_support_nested_variables=yes
Chris@69 1371 else
Chris@69 1372 am_cv_make_support_nested_variables=no
Chris@69 1373 fi])
Chris@69 1374 if test $am_cv_make_support_nested_variables = yes; then
Chris@69 1375 dnl Using '$V' instead of '$(V)' breaks IRIX make.
Chris@69 1376 AM_V='$(V)'
Chris@69 1377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@69 1378 else
Chris@69 1379 AM_V=$AM_DEFAULT_VERBOSITY
Chris@69 1380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@69 1381 fi
Chris@69 1382 AC_SUBST([AM_V])dnl
Chris@69 1383 AM_SUBST_NOTMAKE([AM_V])dnl
Chris@69 1384 AC_SUBST([AM_DEFAULT_V])dnl
Chris@69 1385 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Chris@69 1386 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Chris@69 1387 AM_BACKSLASH='\'
Chris@69 1388 AC_SUBST([AM_BACKSLASH])dnl
Chris@69 1389 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Chris@69 1390 ])
Chris@69 1391
Chris@69 1392 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
Chris@69 1393 #
Chris@69 1394 # This file is free software; the Free Software Foundation
Chris@69 1395 # gives unlimited permission to copy and/or distribute it,
Chris@69 1396 # with or without modifications, as long as this notice is preserved.
Chris@69 1397
Chris@69 1398 # AM_PROG_INSTALL_STRIP
Chris@69 1399 # ---------------------
Chris@69 1400 # One issue with vendor 'install' (even GNU) is that you can't
Chris@69 1401 # specify the program used to strip binaries. This is especially
Chris@69 1402 # annoying in cross-compiling environments, where the build's strip
Chris@69 1403 # is unlikely to handle the host's binaries.
Chris@69 1404 # Fortunately install-sh will honor a STRIPPROG variable, so we
Chris@69 1405 # always use install-sh in "make install-strip", and initialize
Chris@69 1406 # STRIPPROG with the value of the STRIP variable (set by the user).
Chris@69 1407 AC_DEFUN([AM_PROG_INSTALL_STRIP],
Chris@69 1408 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Chris@69 1409 # Installed binaries are usually stripped using 'strip' when the user
Chris@69 1410 # run "make install-strip". However 'strip' might not be the right
Chris@69 1411 # tool to use in cross-compilation environments, therefore Automake
Chris@69 1412 # will honor the 'STRIP' environment variable to overrule this program.
Chris@69 1413 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Chris@69 1414 if test "$cross_compiling" != no; then
Chris@69 1415 AC_CHECK_TOOL([STRIP], [strip], :)
Chris@69 1416 fi
Chris@69 1417 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@69 1418 AC_SUBST([INSTALL_STRIP_PROGRAM])])
Chris@69 1419
Chris@69 1420 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
Chris@69 1421 #
Chris@69 1422 # This file is free software; the Free Software Foundation
Chris@69 1423 # gives unlimited permission to copy and/or distribute it,
Chris@69 1424 # with or without modifications, as long as this notice is preserved.
Chris@69 1425
Chris@69 1426 # _AM_SUBST_NOTMAKE(VARIABLE)
Chris@69 1427 # ---------------------------
Chris@69 1428 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Chris@69 1429 # This macro is traced by Automake.
Chris@69 1430 AC_DEFUN([_AM_SUBST_NOTMAKE])
Chris@69 1431
Chris@69 1432 # AM_SUBST_NOTMAKE(VARIABLE)
Chris@69 1433 # --------------------------
Chris@69 1434 # Public sister of _AM_SUBST_NOTMAKE.
Chris@69 1435 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Chris@69 1436
Chris@69 1437 # Check how to create a tarball. -*- Autoconf -*-
Chris@69 1438
Chris@69 1439 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
Chris@69 1440 #
Chris@69 1441 # This file is free software; the Free Software Foundation
Chris@69 1442 # gives unlimited permission to copy and/or distribute it,
Chris@69 1443 # with or without modifications, as long as this notice is preserved.
Chris@69 1444
Chris@69 1445 # _AM_PROG_TAR(FORMAT)
Chris@69 1446 # --------------------
Chris@69 1447 # Check how to create a tarball in format FORMAT.
Chris@69 1448 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
Chris@69 1449 #
Chris@69 1450 # Substitute a variable $(am__tar) that is a command
Chris@69 1451 # writing to stdout a FORMAT-tarball containing the directory
Chris@69 1452 # $tardir.
Chris@69 1453 # tardir=directory && $(am__tar) > result.tar
Chris@69 1454 #
Chris@69 1455 # Substitute a variable $(am__untar) that extract such
Chris@69 1456 # a tarball read from stdin.
Chris@69 1457 # $(am__untar) < result.tar
Chris@69 1458 #
Chris@69 1459 AC_DEFUN([_AM_PROG_TAR],
Chris@69 1460 [# Always define AMTAR for backward compatibility. Yes, it's still used
Chris@69 1461 # in the wild :-( We should find a proper way to deprecate it ...
Chris@69 1462 AC_SUBST([AMTAR], ['$${TAR-tar}'])
Chris@69 1463
Chris@69 1464 # We'll loop over all known methods to create a tar archive until one works.
Chris@69 1465 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Chris@69 1466
Chris@69 1467 m4_if([$1], [v7],
Chris@69 1468 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Chris@69 1469
Chris@69 1470 [m4_case([$1],
Chris@69 1471 [ustar],
Chris@69 1472 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
Chris@69 1473 # There is notably a 21 bits limit for the UID and the GID. In fact,
Chris@69 1474 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
Chris@69 1475 # and bug#13588).
Chris@69 1476 am_max_uid=2097151 # 2^21 - 1
Chris@69 1477 am_max_gid=$am_max_uid
Chris@69 1478 # The $UID and $GID variables are not portable, so we need to resort
Chris@69 1479 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
Chris@69 1480 # below are definitely unexpected, so allow the users to see them
Chris@69 1481 # (that is, avoid stderr redirection).
Chris@69 1482 am_uid=`id -u || echo unknown`
Chris@69 1483 am_gid=`id -g || echo unknown`
Chris@69 1484 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
Chris@69 1485 if test $am_uid -le $am_max_uid; then
Chris@69 1486 AC_MSG_RESULT([yes])
Chris@69 1487 else
Chris@69 1488 AC_MSG_RESULT([no])
Chris@69 1489 _am_tools=none
Chris@69 1490 fi
Chris@69 1491 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
Chris@69 1492 if test $am_gid -le $am_max_gid; then
Chris@69 1493 AC_MSG_RESULT([yes])
Chris@69 1494 else
Chris@69 1495 AC_MSG_RESULT([no])
Chris@69 1496 _am_tools=none
Chris@69 1497 fi],
Chris@69 1498
Chris@69 1499 [pax],
Chris@69 1500 [],
Chris@69 1501
Chris@69 1502 [m4_fatal([Unknown tar format])])
Chris@69 1503
Chris@69 1504 AC_MSG_CHECKING([how to create a $1 tar archive])
Chris@69 1505
Chris@69 1506 # Go ahead even if we have the value already cached. We do so because we
Chris@69 1507 # need to set the values for the 'am__tar' and 'am__untar' variables.
Chris@69 1508 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
Chris@69 1509
Chris@69 1510 for _am_tool in $_am_tools; do
Chris@69 1511 case $_am_tool in
Chris@69 1512 gnutar)
Chris@69 1513 for _am_tar in tar gnutar gtar; do
Chris@69 1514 AM_RUN_LOG([$_am_tar --version]) && break
Chris@69 1515 done
Chris@69 1516 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Chris@69 1517 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Chris@69 1518 am__untar="$_am_tar -xf -"
Chris@69 1519 ;;
Chris@69 1520 plaintar)
Chris@69 1521 # Must skip GNU tar: if it does not support --format= it doesn't create
Chris@69 1522 # ustar tarball either.
Chris@69 1523 (tar --version) >/dev/null 2>&1 && continue
Chris@69 1524 am__tar='tar chf - "$$tardir"'
Chris@69 1525 am__tar_='tar chf - "$tardir"'
Chris@69 1526 am__untar='tar xf -'
Chris@69 1527 ;;
Chris@69 1528 pax)
Chris@69 1529 am__tar='pax -L -x $1 -w "$$tardir"'
Chris@69 1530 am__tar_='pax -L -x $1 -w "$tardir"'
Chris@69 1531 am__untar='pax -r'
Chris@69 1532 ;;
Chris@69 1533 cpio)
Chris@69 1534 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Chris@69 1535 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Chris@69 1536 am__untar='cpio -i -H $1 -d'
Chris@69 1537 ;;
Chris@69 1538 none)
Chris@69 1539 am__tar=false
Chris@69 1540 am__tar_=false
Chris@69 1541 am__untar=false
Chris@69 1542 ;;
Chris@69 1543 esac
Chris@69 1544
Chris@69 1545 # If the value was cached, stop now. We just wanted to have am__tar
Chris@69 1546 # and am__untar set.
Chris@69 1547 test -n "${am_cv_prog_tar_$1}" && break
Chris@69 1548
Chris@69 1549 # tar/untar a dummy directory, and stop if the command works.
Chris@69 1550 rm -rf conftest.dir
Chris@69 1551 mkdir conftest.dir
Chris@69 1552 echo GrepMe > conftest.dir/file
Chris@69 1553 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Chris@69 1554 rm -rf conftest.dir
Chris@69 1555 if test -s conftest.tar; then
Chris@69 1556 AM_RUN_LOG([$am__untar <conftest.tar])
Chris@69 1557 AM_RUN_LOG([cat conftest.dir/file])
Chris@69 1558 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Chris@69 1559 fi
Chris@69 1560 done
Chris@69 1561 rm -rf conftest.dir
Chris@69 1562
Chris@69 1563 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Chris@69 1564 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Chris@69 1565
Chris@69 1566 AC_SUBST([am__tar])
Chris@69 1567 AC_SUBST([am__untar])
Chris@69 1568 ]) # _AM_PROG_TAR
Chris@69 1569
Chris@69 1570 m4_include([m4/attributes.m4])
Chris@69 1571 m4_include([m4/libtool.m4])
Chris@69 1572 m4_include([m4/ltoptions.m4])
Chris@69 1573 m4_include([m4/ltsugar.m4])
Chris@69 1574 m4_include([m4/ltversion.m4])
Chris@69 1575 m4_include([m4/lt~obsolete.m4])