Import upstream version 1.7.7
[platform/upstream/edbus.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_CONDITIONAL                                            -*- Autoconf -*-
276
277 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
278 # Free Software Foundation, Inc.
279 #
280 # This file is free software; the Free Software Foundation
281 # gives unlimited permission to copy and/or distribute it,
282 # with or without modifications, as long as this notice is preserved.
283
284 # serial 9
285
286 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
287 # -------------------------------------
288 # Define a conditional.
289 AC_DEFUN([AM_CONDITIONAL],
290 [AC_PREREQ(2.52)dnl
291  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
292         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
293 AC_SUBST([$1_TRUE])dnl
294 AC_SUBST([$1_FALSE])dnl
295 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
296 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
297 m4_define([_AM_COND_VALUE_$1], [$2])dnl
298 if $2; then
299   $1_TRUE=
300   $1_FALSE='#'
301 else
302   $1_TRUE='#'
303   $1_FALSE=
304 fi
305 AC_CONFIG_COMMANDS_PRE(
306 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
307   AC_MSG_ERROR([[conditional "$1" was never defined.
308 Usually this means the macro was only invoked conditionally.]])
309 fi])])
310
311 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
312 # 2010, 2011 Free Software Foundation, Inc.
313 #
314 # This file is free software; the Free Software Foundation
315 # gives unlimited permission to copy and/or distribute it,
316 # with or without modifications, as long as this notice is preserved.
317
318 # serial 12
319
320 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
321 # written in clear, in which case automake, when reading aclocal.m4,
322 # will think it sees a *use*, and therefore will trigger all it's
323 # C support machinery.  Also note that it means that autoscan, seeing
324 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
325
326
327 # _AM_DEPENDENCIES(NAME)
328 # ----------------------
329 # See how the compiler implements dependency checking.
330 # NAME is "CC", "CXX", "GCJ", or "OBJC".
331 # We try a few techniques and use that to set a single cache variable.
332 #
333 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
334 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
335 # dependency, and given that the user is not expected to run this macro,
336 # just rely on AC_PROG_CC.
337 AC_DEFUN([_AM_DEPENDENCIES],
338 [AC_REQUIRE([AM_SET_DEPDIR])dnl
339 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
340 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
341 AC_REQUIRE([AM_DEP_TRACK])dnl
342
343 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
344        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
345        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
346        [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
347        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
348                    [depcc="$$1"   am_compiler_list=])
349
350 AC_CACHE_CHECK([dependency style of $depcc],
351                [am_cv_$1_dependencies_compiler_type],
352 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
353   # We make a subdir and do the tests there.  Otherwise we can end up
354   # making bogus files that we don't know about and never remove.  For
355   # instance it was reported that on HP-UX the gcc test will end up
356   # making a dummy file named `D' -- because `-MD' means `put the output
357   # in D'.
358   rm -rf conftest.dir
359   mkdir conftest.dir
360   # Copy depcomp to subdir because otherwise we won't find it if we're
361   # using a relative directory.
362   cp "$am_depcomp" conftest.dir
363   cd conftest.dir
364   # We will build objects and dependencies in a subdirectory because
365   # it helps to detect inapplicable dependency modes.  For instance
366   # both Tru64's cc and ICC support -MD to output dependencies as a
367   # side effect of compilation, but ICC will put the dependencies in
368   # the current directory while Tru64 will put them in the object
369   # directory.
370   mkdir sub
371
372   am_cv_$1_dependencies_compiler_type=none
373   if test "$am_compiler_list" = ""; then
374      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
375   fi
376   am__universal=false
377   m4_case([$1], [CC],
378     [case " $depcc " in #(
379      *\ -arch\ *\ -arch\ *) am__universal=true ;;
380      esac],
381     [CXX],
382     [case " $depcc " in #(
383      *\ -arch\ *\ -arch\ *) am__universal=true ;;
384      esac])
385
386   for depmode in $am_compiler_list; do
387     # Setup a source with many dependencies, because some compilers
388     # like to wrap large dependency lists on column 80 (with \), and
389     # we should not choose a depcomp mode which is confused by this.
390     #
391     # We need to recreate these files for each test, as the compiler may
392     # overwrite some of them when testing with obscure command lines.
393     # This happens at least with the AIX C compiler.
394     : > sub/conftest.c
395     for i in 1 2 3 4 5 6; do
396       echo '#include "conftst'$i'.h"' >> sub/conftest.c
397       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
398       # Solaris 8's {/usr,}/bin/sh.
399       touch sub/conftst$i.h
400     done
401     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
402
403     # We check with `-c' and `-o' for the sake of the "dashmstdout"
404     # mode.  It turns out that the SunPro C++ compiler does not properly
405     # handle `-M -o', and we need to detect this.  Also, some Intel
406     # versions had trouble with output in subdirs
407     am__obj=sub/conftest.${OBJEXT-o}
408     am__minus_obj="-o $am__obj"
409     case $depmode in
410     gcc)
411       # This depmode causes a compiler race in universal mode.
412       test "$am__universal" = false || continue
413       ;;
414     nosideeffect)
415       # after this tag, mechanisms are not by side-effect, so they'll
416       # only be used when explicitly requested
417       if test "x$enable_dependency_tracking" = xyes; then
418         continue
419       else
420         break
421       fi
422       ;;
423     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
424       # This compiler won't grok `-c -o', but also, the minuso test has
425       # not run yet.  These depmodes are late enough in the game, and
426       # so weak that their functioning should not be impacted.
427       am__obj=conftest.${OBJEXT-o}
428       am__minus_obj=
429       ;;
430     none) break ;;
431     esac
432     if depmode=$depmode \
433        source=sub/conftest.c object=$am__obj \
434        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
435        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
436          >/dev/null 2>conftest.err &&
437        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
438        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
439        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
440        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
441       # icc doesn't choke on unknown options, it will just issue warnings
442       # or remarks (even with -Werror).  So we grep stderr for any message
443       # that says an option was ignored or not supported.
444       # When given -MP, icc 7.0 and 7.1 complain thusly:
445       #   icc: Command line warning: ignoring option '-M'; no argument required
446       # The diagnosis changed in icc 8.0:
447       #   icc: Command line remark: option '-MP' not supported
448       if (grep 'ignoring option' conftest.err ||
449           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
450         am_cv_$1_dependencies_compiler_type=$depmode
451         break
452       fi
453     fi
454   done
455
456   cd ..
457   rm -rf conftest.dir
458 else
459   am_cv_$1_dependencies_compiler_type=none
460 fi
461 ])
462 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
463 AM_CONDITIONAL([am__fastdep$1], [
464   test "x$enable_dependency_tracking" != xno \
465   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
466 ])
467
468
469 # AM_SET_DEPDIR
470 # -------------
471 # Choose a directory name for dependency files.
472 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
473 AC_DEFUN([AM_SET_DEPDIR],
474 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
475 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
476 ])
477
478
479 # AM_DEP_TRACK
480 # ------------
481 AC_DEFUN([AM_DEP_TRACK],
482 [AC_ARG_ENABLE(dependency-tracking,
483 [  --disable-dependency-tracking  speeds up one-time build
484   --enable-dependency-tracking   do not reject slow dependency extractors])
485 if test "x$enable_dependency_tracking" != xno; then
486   am_depcomp="$ac_aux_dir/depcomp"
487   AMDEPBACKSLASH='\'
488   am__nodep='_no'
489 fi
490 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
491 AC_SUBST([AMDEPBACKSLASH])dnl
492 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
493 AC_SUBST([am__nodep])dnl
494 _AM_SUBST_NOTMAKE([am__nodep])dnl
495 ])
496
497 # Generate code to set up dependency tracking.              -*- Autoconf -*-
498
499 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
500 # Free Software Foundation, Inc.
501 #
502 # This file is free software; the Free Software Foundation
503 # gives unlimited permission to copy and/or distribute it,
504 # with or without modifications, as long as this notice is preserved.
505
506 #serial 5
507
508 # _AM_OUTPUT_DEPENDENCY_COMMANDS
509 # ------------------------------
510 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
511 [{
512   # Autoconf 2.62 quotes --file arguments for eval, but not when files
513   # are listed without --file.  Let's play safe and only enable the eval
514   # if we detect the quoting.
515   case $CONFIG_FILES in
516   *\'*) eval set x "$CONFIG_FILES" ;;
517   *)   set x $CONFIG_FILES ;;
518   esac
519   shift
520   for mf
521   do
522     # Strip MF so we end up with the name of the file.
523     mf=`echo "$mf" | sed -e 's/:.*$//'`
524     # Check whether this is an Automake generated Makefile or not.
525     # We used to match only the files named `Makefile.in', but
526     # some people rename them; so instead we look at the file content.
527     # Grep'ing the first line is not enough: some people post-process
528     # each Makefile.in and add a new line on top of each file to say so.
529     # Grep'ing the whole file is not good either: AIX grep has a line
530     # limit of 2048, but all sed's we know have understand at least 4000.
531     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
532       dirpart=`AS_DIRNAME("$mf")`
533     else
534       continue
535     fi
536     # Extract the definition of DEPDIR, am__include, and am__quote
537     # from the Makefile without running `make'.
538     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
539     test -z "$DEPDIR" && continue
540     am__include=`sed -n 's/^am__include = //p' < "$mf"`
541     test -z "am__include" && continue
542     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
543     # When using ansi2knr, U may be empty or an underscore; expand it
544     U=`sed -n 's/^U = //p' < "$mf"`
545     # Find all dependency output files, they are included files with
546     # $(DEPDIR) in their names.  We invoke sed twice because it is the
547     # simplest approach to changing $(DEPDIR) to its actual value in the
548     # expansion.
549     for file in `sed -n "
550       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
551          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
552       # Make sure the directory exists.
553       test -f "$dirpart/$file" && continue
554       fdir=`AS_DIRNAME(["$file"])`
555       AS_MKDIR_P([$dirpart/$fdir])
556       # echo "creating $dirpart/$file"
557       echo '# dummy' > "$dirpart/$file"
558     done
559   done
560 }
561 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
562
563
564 # AM_OUTPUT_DEPENDENCY_COMMANDS
565 # -----------------------------
566 # This macro should only be invoked once -- use via AC_REQUIRE.
567 #
568 # This code is only required when automatic dependency tracking
569 # is enabled.  FIXME.  This creates each `.P' file that we will
570 # need in order to bootstrap the dependency handling code.
571 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
572 [AC_CONFIG_COMMANDS([depfiles],
573      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
574      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
575 ])
576
577 # Do all the work for Automake.                             -*- Autoconf -*-
578
579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
580 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
581 #
582 # This file is free software; the Free Software Foundation
583 # gives unlimited permission to copy and/or distribute it,
584 # with or without modifications, as long as this notice is preserved.
585
586 # serial 16
587
588 # This macro actually does too much.  Some checks are only needed if
589 # your package does certain things.  But this isn't really a big deal.
590
591 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
592 # AM_INIT_AUTOMAKE([OPTIONS])
593 # -----------------------------------------------
594 # The call with PACKAGE and VERSION arguments is the old style
595 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
596 # and VERSION should now be passed to AC_INIT and removed from
597 # the call to AM_INIT_AUTOMAKE.
598 # We support both call styles for the transition.  After
599 # the next Automake release, Autoconf can make the AC_INIT
600 # arguments mandatory, and then we can depend on a new Autoconf
601 # release and drop the old call support.
602 AC_DEFUN([AM_INIT_AUTOMAKE],
603 [AC_PREREQ([2.62])dnl
604 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
605 dnl the ones we care about.
606 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
607 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
608 AC_REQUIRE([AC_PROG_INSTALL])dnl
609 if test "`cd $srcdir && pwd`" != "`pwd`"; then
610   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
611   # is not polluted with repeated "-I."
612   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
613   # test to see if srcdir already configured
614   if test -f $srcdir/config.status; then
615     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
616   fi
617 fi
618
619 # test whether we have cygpath
620 if test -z "$CYGPATH_W"; then
621   if (cygpath --version) >/dev/null 2>/dev/null; then
622     CYGPATH_W='cygpath -w'
623   else
624     CYGPATH_W=echo
625   fi
626 fi
627 AC_SUBST([CYGPATH_W])
628
629 # Define the identity of the package.
630 dnl Distinguish between old-style and new-style calls.
631 m4_ifval([$2],
632 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
633  AC_SUBST([PACKAGE], [$1])dnl
634  AC_SUBST([VERSION], [$2])],
635 [_AM_SET_OPTIONS([$1])dnl
636 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
637 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
638   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
639  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
640  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
641
642 _AM_IF_OPTION([no-define],,
643 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
644  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
645
646 # Some tools Automake needs.
647 AC_REQUIRE([AM_SANITY_CHECK])dnl
648 AC_REQUIRE([AC_ARG_PROGRAM])dnl
649 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
650 AM_MISSING_PROG(AUTOCONF, autoconf)
651 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
652 AM_MISSING_PROG(AUTOHEADER, autoheader)
653 AM_MISSING_PROG(MAKEINFO, makeinfo)
654 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
655 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
656 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
657 # We need awk for the "check" target.  The system "awk" is bad on
658 # some platforms.
659 AC_REQUIRE([AC_PROG_AWK])dnl
660 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
661 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
662 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
663               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
664                              [_AM_PROG_TAR([v7])])])
665 _AM_IF_OPTION([no-dependencies],,
666 [AC_PROVIDE_IFELSE([AC_PROG_CC],
667                   [_AM_DEPENDENCIES(CC)],
668                   [define([AC_PROG_CC],
669                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
670 AC_PROVIDE_IFELSE([AC_PROG_CXX],
671                   [_AM_DEPENDENCIES(CXX)],
672                   [define([AC_PROG_CXX],
673                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
674 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
675                   [_AM_DEPENDENCIES(OBJC)],
676                   [define([AC_PROG_OBJC],
677                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
678 ])
679 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
680 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
681 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
682 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
683 AC_CONFIG_COMMANDS_PRE(dnl
684 [m4_provide_if([_AM_COMPILER_EXEEXT],
685   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
686 ])
687
688 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
689 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
690 dnl mangled by Autoconf and run in a shell conditional statement.
691 m4_define([_AC_COMPILER_EXEEXT],
692 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
693
694
695 # When config.status generates a header, we must update the stamp-h file.
696 # This file resides in the same directory as the config header
697 # that is generated.  The stamp files are numbered to have different names.
698
699 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
700 # loop where config.status creates the headers, so we can generate
701 # our stamp files there.
702 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
703 [# Compute $1's index in $config_headers.
704 _am_arg=$1
705 _am_stamp_count=1
706 for _am_header in $config_headers :; do
707   case $_am_header in
708     $_am_arg | $_am_arg:* )
709       break ;;
710     * )
711       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
712   esac
713 done
714 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
715
716 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
717 # Inc.
718 #
719 # This file is free software; the Free Software Foundation
720 # gives unlimited permission to copy and/or distribute it,
721 # with or without modifications, as long as this notice is preserved.
722
723 # serial 1
724
725 # AM_PROG_INSTALL_SH
726 # ------------------
727 # Define $install_sh.
728 AC_DEFUN([AM_PROG_INSTALL_SH],
729 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
730 if test x"${install_sh}" != xset; then
731   case $am_aux_dir in
732   *\ * | *\     *)
733     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
734   *)
735     install_sh="\${SHELL} $am_aux_dir/install-sh"
736   esac
737 fi
738 AC_SUBST(install_sh)])
739
740 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
741 #
742 # This file is free software; the Free Software Foundation
743 # gives unlimited permission to copy and/or distribute it,
744 # with or without modifications, as long as this notice is preserved.
745
746 # serial 2
747
748 # Check whether the underlying file-system supports filenames
749 # with a leading dot.  For instance MS-DOS doesn't.
750 AC_DEFUN([AM_SET_LEADING_DOT],
751 [rm -rf .tst 2>/dev/null
752 mkdir .tst 2>/dev/null
753 if test -d .tst; then
754   am__leading_dot=.
755 else
756   am__leading_dot=_
757 fi
758 rmdir .tst 2>/dev/null
759 AC_SUBST([am__leading_dot])])
760
761 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
762
763 # Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
764 #
765 # This file is free software; the Free Software Foundation
766 # gives unlimited permission to copy and/or distribute it,
767 # with or without modifications, as long as this notice is preserved.
768
769 # serial 4
770
771 # AM_MAKE_INCLUDE()
772 # -----------------
773 # Check to see how make treats includes.
774 AC_DEFUN([AM_MAKE_INCLUDE],
775 [am_make=${MAKE-make}
776 cat > confinc << 'END'
777 am__doit:
778         @echo this is the am__doit target
779 .PHONY: am__doit
780 END
781 # If we don't find an include directive, just comment out the code.
782 AC_MSG_CHECKING([for style of include used by $am_make])
783 am__include="#"
784 am__quote=
785 _am_result=none
786 # First try GNU make style include.
787 echo "include confinc" > confmf
788 # Ignore all kinds of additional output from `make'.
789 case `$am_make -s -f confmf 2> /dev/null` in #(
790 *the\ am__doit\ target*)
791   am__include=include
792   am__quote=
793   _am_result=GNU
794   ;;
795 esac
796 # Now try BSD make style include.
797 if test "$am__include" = "#"; then
798    echo '.include "confinc"' > confmf
799    case `$am_make -s -f confmf 2> /dev/null` in #(
800    *the\ am__doit\ target*)
801      am__include=.include
802      am__quote="\""
803      _am_result=BSD
804      ;;
805    esac
806 fi
807 AC_SUBST([am__include])
808 AC_SUBST([am__quote])
809 AC_MSG_RESULT([$_am_result])
810 rm -f confinc confmf
811 ])
812
813 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
814 # Free Software Foundation, Inc.
815 #
816 # This file is free software; the Free Software Foundation
817 # gives unlimited permission to copy and/or distribute it,
818 # with or without modifications, as long as this notice is preserved.
819
820 # serial 6
821
822 # AM_PROG_CC_C_O
823 # --------------
824 # Like AC_PROG_CC_C_O, but changed for automake.
825 AC_DEFUN([AM_PROG_CC_C_O],
826 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
827 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
828 AC_REQUIRE_AUX_FILE([compile])dnl
829 # FIXME: we rely on the cache variable name because
830 # there is no other way.
831 set dummy $CC
832 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
833 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
834 if test "$am_t" != yes; then
835    # Losing compiler, so override with the script.
836    # FIXME: It is wrong to rewrite CC.
837    # But if we don't then we get into trouble of one sort or another.
838    # A longer-term fix would be to have automake use am__CC in this case,
839    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
840    CC="$am_aux_dir/compile $CC"
841 fi
842 dnl Make sure AC_PROG_CC is never called again, or it will override our
843 dnl setting of CC.
844 m4_define([AC_PROG_CC],
845           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
846 ])
847
848 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
849
850 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
851 # Free Software Foundation, Inc.
852 #
853 # This file is free software; the Free Software Foundation
854 # gives unlimited permission to copy and/or distribute it,
855 # with or without modifications, as long as this notice is preserved.
856
857 # serial 6
858
859 # AM_MISSING_PROG(NAME, PROGRAM)
860 # ------------------------------
861 AC_DEFUN([AM_MISSING_PROG],
862 [AC_REQUIRE([AM_MISSING_HAS_RUN])
863 $1=${$1-"${am_missing_run}$2"}
864 AC_SUBST($1)])
865
866
867 # AM_MISSING_HAS_RUN
868 # ------------------
869 # Define MISSING if not defined so far and test if it supports --run.
870 # If it does, set am_missing_run to use it, otherwise, to nothing.
871 AC_DEFUN([AM_MISSING_HAS_RUN],
872 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
873 AC_REQUIRE_AUX_FILE([missing])dnl
874 if test x"${MISSING+set}" != xset; then
875   case $am_aux_dir in
876   *\ * | *\     *)
877     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
878   *)
879     MISSING="\${SHELL} $am_aux_dir/missing" ;;
880   esac
881 fi
882 # Use eval to expand $SHELL
883 if eval "$MISSING --run true"; then
884   am_missing_run="$MISSING --run "
885 else
886   am_missing_run=
887   AC_MSG_WARN([`missing' script is too old or missing])
888 fi
889 ])
890
891 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
892 # Inc.
893 #
894 # This file is free software; the Free Software Foundation
895 # gives unlimited permission to copy and/or distribute it,
896 # with or without modifications, as long as this notice is preserved.
897
898 # serial 1
899
900 # AM_PROG_MKDIR_P
901 # ---------------
902 # Check for `mkdir -p'.
903 AC_DEFUN([AM_PROG_MKDIR_P],
904 [AC_PREREQ([2.60])dnl
905 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
906 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
907 dnl while keeping a definition of mkdir_p for backward compatibility.
908 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
909 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
910 dnl Makefile.ins that do not define MKDIR_P, so we do our own
911 dnl adjustment using top_builddir (which is defined more often than
912 dnl MKDIR_P).
913 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
914 case $mkdir_p in
915   [[\\/$]]* | ?:[[\\/]]*) ;;
916   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
917 esac
918 ])
919
920 # Helper functions for option handling.                     -*- Autoconf -*-
921
922 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
923 # Foundation, Inc.
924 #
925 # This file is free software; the Free Software Foundation
926 # gives unlimited permission to copy and/or distribute it,
927 # with or without modifications, as long as this notice is preserved.
928
929 # serial 5
930
931 # _AM_MANGLE_OPTION(NAME)
932 # -----------------------
933 AC_DEFUN([_AM_MANGLE_OPTION],
934 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
935
936 # _AM_SET_OPTION(NAME)
937 # --------------------
938 # Set option NAME.  Presently that only means defining a flag for this option.
939 AC_DEFUN([_AM_SET_OPTION],
940 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
941
942 # _AM_SET_OPTIONS(OPTIONS)
943 # ------------------------
944 # OPTIONS is a space-separated list of Automake options.
945 AC_DEFUN([_AM_SET_OPTIONS],
946 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
947
948 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
949 # -------------------------------------------
950 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
951 AC_DEFUN([_AM_IF_OPTION],
952 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
953
954 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
955
956 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
957 # Free Software Foundation, Inc.
958 #
959 # This file is free software; the Free Software Foundation
960 # gives unlimited permission to copy and/or distribute it,
961 # with or without modifications, as long as this notice is preserved.
962
963 # serial 5
964
965 # AM_SANITY_CHECK
966 # ---------------
967 AC_DEFUN([AM_SANITY_CHECK],
968 [AC_MSG_CHECKING([whether build environment is sane])
969 # Just in case
970 sleep 1
971 echo timestamp > conftest.file
972 # Reject unsafe characters in $srcdir or the absolute working directory
973 # name.  Accept space and tab only in the latter.
974 am_lf='
975 '
976 case `pwd` in
977   *[[\\\"\#\$\&\'\`$am_lf]]*)
978     AC_MSG_ERROR([unsafe absolute working directory name]);;
979 esac
980 case $srcdir in
981   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
982     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
983 esac
984
985 # Do `set' in a subshell so we don't clobber the current shell's
986 # arguments.  Must try -L first in case configure is actually a
987 # symlink; some systems play weird games with the mod time of symlinks
988 # (eg FreeBSD returns the mod time of the symlink's containing
989 # directory).
990 if (
991    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
992    if test "$[*]" = "X"; then
993       # -L didn't work.
994       set X `ls -t "$srcdir/configure" conftest.file`
995    fi
996    rm -f conftest.file
997    if test "$[*]" != "X $srcdir/configure conftest.file" \
998       && test "$[*]" != "X conftest.file $srcdir/configure"; then
999
1000       # If neither matched, then we have a broken ls.  This can happen
1001       # if, for instance, CONFIG_SHELL is bash and it inherits a
1002       # broken ls alias from the environment.  This has actually
1003       # happened.  Such a system could not be considered "sane".
1004       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1005 alias in your environment])
1006    fi
1007
1008    test "$[2]" = conftest.file
1009    )
1010 then
1011    # Ok.
1012    :
1013 else
1014    AC_MSG_ERROR([newly created file is older than distributed files!
1015 Check your system clock])
1016 fi
1017 AC_MSG_RESULT(yes)])
1018
1019 # Copyright (C) 2009, 2011  Free Software Foundation, Inc.
1020 #
1021 # This file is free software; the Free Software Foundation
1022 # gives unlimited permission to copy and/or distribute it,
1023 # with or without modifications, as long as this notice is preserved.
1024
1025 # serial 2
1026
1027 # AM_SILENT_RULES([DEFAULT])
1028 # --------------------------
1029 # Enable less verbose build rules; with the default set to DEFAULT
1030 # (`yes' being less verbose, `no' or empty being verbose).
1031 AC_DEFUN([AM_SILENT_RULES],
1032 [AC_ARG_ENABLE([silent-rules],
1033 [  --enable-silent-rules          less verbose build output (undo: `make V=1')
1034   --disable-silent-rules         verbose build output (undo: `make V=0')])
1035 case $enable_silent_rules in
1036 yes) AM_DEFAULT_VERBOSITY=0;;
1037 no)  AM_DEFAULT_VERBOSITY=1;;
1038 *)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1039 esac
1040 dnl
1041 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1042 dnl do not support nested variable expansions.
1043 dnl See automake bug#9928 and bug#10237.
1044 am_make=${MAKE-make}
1045 AC_CACHE_CHECK([whether $am_make supports nested variables],
1046    [am_cv_make_support_nested_variables],
1047    [if AS_ECHO([['TRUE=$(BAR$(V))
1048 BAR0=false
1049 BAR1=true
1050 V=1
1051 am__doit:
1052         @$(TRUE)
1053 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1054   am_cv_make_support_nested_variables=yes
1055 else
1056   am_cv_make_support_nested_variables=no
1057 fi])
1058 if test $am_cv_make_support_nested_variables = yes; then
1059   dnl Using `$V' instead of `$(V)' breaks IRIX make.
1060   AM_V='$(V)'
1061   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1062 else
1063   AM_V=$AM_DEFAULT_VERBOSITY
1064   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1065 fi
1066 AC_SUBST([AM_V])dnl
1067 AM_SUBST_NOTMAKE([AM_V])dnl
1068 AC_SUBST([AM_DEFAULT_V])dnl
1069 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1070 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1071 AM_BACKSLASH='\'
1072 AC_SUBST([AM_BACKSLASH])dnl
1073 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1074 ])
1075
1076 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1077 #
1078 # This file is free software; the Free Software Foundation
1079 # gives unlimited permission to copy and/or distribute it,
1080 # with or without modifications, as long as this notice is preserved.
1081
1082 # serial 1
1083
1084 # AM_PROG_INSTALL_STRIP
1085 # ---------------------
1086 # One issue with vendor `install' (even GNU) is that you can't
1087 # specify the program used to strip binaries.  This is especially
1088 # annoying in cross-compiling environments, where the build's strip
1089 # is unlikely to handle the host's binaries.
1090 # Fortunately install-sh will honor a STRIPPROG variable, so we
1091 # always use install-sh in `make install-strip', and initialize
1092 # STRIPPROG with the value of the STRIP variable (set by the user).
1093 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1094 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1095 # Installed binaries are usually stripped using `strip' when the user
1096 # run `make install-strip'.  However `strip' might not be the right
1097 # tool to use in cross-compilation environments, therefore Automake
1098 # will honor the `STRIP' environment variable to overrule this program.
1099 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1100 if test "$cross_compiling" != no; then
1101   AC_CHECK_TOOL([STRIP], [strip], :)
1102 fi
1103 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1104 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1105
1106 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1107 #
1108 # This file is free software; the Free Software Foundation
1109 # gives unlimited permission to copy and/or distribute it,
1110 # with or without modifications, as long as this notice is preserved.
1111
1112 # serial 3
1113
1114 # _AM_SUBST_NOTMAKE(VARIABLE)
1115 # ---------------------------
1116 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1117 # This macro is traced by Automake.
1118 AC_DEFUN([_AM_SUBST_NOTMAKE])
1119
1120 # AM_SUBST_NOTMAKE(VARIABLE)
1121 # --------------------------
1122 # Public sister of _AM_SUBST_NOTMAKE.
1123 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1124
1125 # Check how to create a tarball.                            -*- Autoconf -*-
1126
1127 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1128 #
1129 # This file is free software; the Free Software Foundation
1130 # gives unlimited permission to copy and/or distribute it,
1131 # with or without modifications, as long as this notice is preserved.
1132
1133 # serial 2
1134
1135 # _AM_PROG_TAR(FORMAT)
1136 # --------------------
1137 # Check how to create a tarball in format FORMAT.
1138 # FORMAT should be one of `v7', `ustar', or `pax'.
1139 #
1140 # Substitute a variable $(am__tar) that is a command
1141 # writing to stdout a FORMAT-tarball containing the directory
1142 # $tardir.
1143 #     tardir=directory && $(am__tar) > result.tar
1144 #
1145 # Substitute a variable $(am__untar) that extract such
1146 # a tarball read from stdin.
1147 #     $(am__untar) < result.tar
1148 AC_DEFUN([_AM_PROG_TAR],
1149 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1150 # in the wild :-(  We should find a proper way to deprecate it ...
1151 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1152 m4_if([$1], [v7],
1153      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1154      [m4_case([$1], [ustar],, [pax],,
1155               [m4_fatal([Unknown tar format])])
1156 AC_MSG_CHECKING([how to create a $1 tar archive])
1157 # Loop over all known methods to create a tar archive until one works.
1158 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1159 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1160 # Do not fold the above two line into one, because Tru64 sh and
1161 # Solaris sh will not grok spaces in the rhs of `-'.
1162 for _am_tool in $_am_tools
1163 do
1164   case $_am_tool in
1165   gnutar)
1166     for _am_tar in tar gnutar gtar;
1167     do
1168       AM_RUN_LOG([$_am_tar --version]) && break
1169     done
1170     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1171     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1172     am__untar="$_am_tar -xf -"
1173     ;;
1174   plaintar)
1175     # Must skip GNU tar: if it does not support --format= it doesn't create
1176     # ustar tarball either.
1177     (tar --version) >/dev/null 2>&1 && continue
1178     am__tar='tar chf - "$$tardir"'
1179     am__tar_='tar chf - "$tardir"'
1180     am__untar='tar xf -'
1181     ;;
1182   pax)
1183     am__tar='pax -L -x $1 -w "$$tardir"'
1184     am__tar_='pax -L -x $1 -w "$tardir"'
1185     am__untar='pax -r'
1186     ;;
1187   cpio)
1188     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1189     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1190     am__untar='cpio -i -H $1 -d'
1191     ;;
1192   none)
1193     am__tar=false
1194     am__tar_=false
1195     am__untar=false
1196     ;;
1197   esac
1198
1199   # If the value was cached, stop now.  We just wanted to have am__tar
1200   # and am__untar set.
1201   test -n "${am_cv_prog_tar_$1}" && break
1202
1203   # tar/untar a dummy directory, and stop if the command works
1204   rm -rf conftest.dir
1205   mkdir conftest.dir
1206   echo GrepMe > conftest.dir/file
1207   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1208   rm -rf conftest.dir
1209   if test -s conftest.tar; then
1210     AM_RUN_LOG([$am__untar <conftest.tar])
1211     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1212   fi
1213 done
1214 rm -rf conftest.dir
1215
1216 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1217 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1218 AC_SUBST([am__tar])
1219 AC_SUBST([am__untar])
1220 ]) # _AM_PROG_TAR
1221
1222 m4_include([m4/ac_attribute.m4])
1223 m4_include([m4/efl_binary.m4])
1224 m4_include([m4/efl_compiler_flag.m4])
1225 m4_include([m4/efl_doxygen.m4])
1226 m4_include([m4/libtool.m4])
1227 m4_include([m4/ltoptions.m4])
1228 m4_include([m4/ltsugar.m4])
1229 m4_include([m4/ltversion.m4])
1230 m4_include([m4/lt~obsolete.m4])