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