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