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