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