annotate fft/fftw/fftw-3.3.4/aclocal.m4 @ 40:223f770b5341 kissfft-double tip

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