annotate src/fftw-3.3.8/aclocal.m4 @ 83:ae30d91d2ffe

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