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