annotate src/fftw-3.3.3/aclocal.m4 @ 23:619f715526df sv_v2.1

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