uploaded original spice-server-0.12.4 and celt-0.5.1.3
[sdk/emulator/libs/spice-server.git] / spice-common / spice-protocol / aclocal.m4
1 # generated automatically by aclocal 1.12.2 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
4
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf.  It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
23 #
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
27
28 # serial 8
29
30 # AM_AUTOMAKE_VERSION(VERSION)
31 # ----------------------------
32 # Automake X.Y traces this macro to ensure aclocal.m4 has been
33 # generated from the m4 files accompanying Automake X.Y.
34 # (This private macro should not be called outside this file.)
35 AC_DEFUN([AM_AUTOMAKE_VERSION],
36 [am__api_version='1.12'
37 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
38 dnl require some minimum version.  Point them to the right macro.
39 m4_if([$1], [1.12.2], [],
40       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41 ])
42
43 # _AM_AUTOCONF_VERSION(VERSION)
44 # -----------------------------
45 # aclocal traces this macro to find the Autoconf version.
46 # This is a private macro too.  Using m4_define simplifies
47 # the logic in aclocal, which can simply ignore this definition.
48 m4_define([_AM_AUTOCONF_VERSION], [])
49
50 # AM_SET_CURRENT_AUTOMAKE_VERSION
51 # -------------------------------
52 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
53 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
54 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
55 [AM_AUTOMAKE_VERSION([1.12.2])dnl
56 m4_ifndef([AC_AUTOCONF_VERSION],
57   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
58 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
59
60 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
61
62 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
63 #
64 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
67
68 # serial 2
69
70 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
71 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
72 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
73 #
74 # Of course, Automake must honor this variable whenever it calls a
75 # tool from the auxiliary directory.  The problem is that $srcdir (and
76 # therefore $ac_aux_dir as well) can be either absolute or relative,
77 # depending on how configure is run.  This is pretty annoying, since
78 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
79 # source directory, any form will work fine, but in subdirectories a
80 # relative path needs to be adjusted first.
81 #
82 # $ac_aux_dir/missing
83 #    fails when called from a subdirectory if $ac_aux_dir is relative
84 # $top_srcdir/$ac_aux_dir/missing
85 #    fails if $ac_aux_dir is absolute,
86 #    fails when called from a subdirectory in a VPATH build with
87 #          a relative $ac_aux_dir
88 #
89 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
90 # are both prefixed by $srcdir.  In an in-source build this is usually
91 # harmless because $srcdir is '.', but things will broke when you
92 # start a VPATH build or use an absolute $srcdir.
93 #
94 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
95 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
96 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
97 # and then we would define $MISSING as
98 #   MISSING="\${SHELL} $am_aux_dir/missing"
99 # This will work as long as MISSING is not called from configure, because
100 # unfortunately $(top_srcdir) has no meaning in configure.
101 # However there are other variables, like CC, which are often used in
102 # configure, and could therefore not use this "fixed" $ac_aux_dir.
103 #
104 # Another solution, used here, is to always expand $ac_aux_dir to an
105 # absolute PATH.  The drawback is that using absolute paths prevent a
106 # configured tree to be moved without reconfiguration.
107
108 AC_DEFUN([AM_AUX_DIR_EXPAND],
109 [dnl Rely on autoconf to set up CDPATH properly.
110 AC_PREREQ([2.50])dnl
111 # expand $ac_aux_dir to an absolute path
112 am_aux_dir=`cd $ac_aux_dir && pwd`
113 ])
114
115 # AM_CONDITIONAL                                            -*- Autoconf -*-
116
117 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
118 #
119 # This file is free software; the Free Software Foundation
120 # gives unlimited permission to copy and/or distribute it,
121 # with or without modifications, as long as this notice is preserved.
122
123 # serial 10
124
125 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
126 # -------------------------------------
127 # Define a conditional.
128 AC_DEFUN([AM_CONDITIONAL],
129 [AC_PREREQ([2.52])dnl
130  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
131        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
132 AC_SUBST([$1_TRUE])dnl
133 AC_SUBST([$1_FALSE])dnl
134 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
135 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
136 m4_define([_AM_COND_VALUE_$1], [$2])dnl
137 if $2; then
138   $1_TRUE=
139   $1_FALSE='#'
140 else
141   $1_TRUE='#'
142   $1_FALSE=
143 fi
144 AC_CONFIG_COMMANDS_PRE(
145 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
146   AC_MSG_ERROR([[conditional "$1" was never defined.
147 Usually this means the macro was only invoked conditionally.]])
148 fi])])
149
150 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
151 #
152 # This file is free software; the Free Software Foundation
153 # gives unlimited permission to copy and/or distribute it,
154 # with or without modifications, as long as this notice is preserved.
155
156 # serial 8
157
158 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
159 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
160
161 # Do all the work for Automake.                             -*- Autoconf -*-
162
163 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
164 #
165 # This file is free software; the Free Software Foundation
166 # gives unlimited permission to copy and/or distribute it,
167 # with or without modifications, as long as this notice is preserved.
168
169 # serial 19
170
171 # This macro actually does too much.  Some checks are only needed if
172 # your package does certain things.  But this isn't really a big deal.
173
174 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
175 # AM_INIT_AUTOMAKE([OPTIONS])
176 # -----------------------------------------------
177 # The call with PACKAGE and VERSION arguments is the old style
178 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
179 # and VERSION should now be passed to AC_INIT and removed from
180 # the call to AM_INIT_AUTOMAKE.
181 # We support both call styles for the transition.  After
182 # the next Automake release, Autoconf can make the AC_INIT
183 # arguments mandatory, and then we can depend on a new Autoconf
184 # release and drop the old call support.
185 AC_DEFUN([AM_INIT_AUTOMAKE],
186 [AC_PREREQ([2.62])dnl
187 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
188 dnl the ones we care about.
189 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
190 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
191 AC_REQUIRE([AC_PROG_INSTALL])dnl
192 if test "`cd $srcdir && pwd`" != "`pwd`"; then
193   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
194   # is not polluted with repeated "-I."
195   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
196   # test to see if srcdir already configured
197   if test -f $srcdir/config.status; then
198     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
199   fi
200 fi
201
202 # test whether we have cygpath
203 if test -z "$CYGPATH_W"; then
204   if (cygpath --version) >/dev/null 2>/dev/null; then
205     CYGPATH_W='cygpath -w'
206   else
207     CYGPATH_W=echo
208   fi
209 fi
210 AC_SUBST([CYGPATH_W])
211
212 # Define the identity of the package.
213 dnl Distinguish between old-style and new-style calls.
214 m4_ifval([$2],
215 [AC_DIAGNOSE([obsolete],
216 [$0: two- and three-arguments forms are deprecated.  For more info, see:
217 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
218 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
219  AC_SUBST([PACKAGE], [$1])dnl
220  AC_SUBST([VERSION], [$2])],
221 [_AM_SET_OPTIONS([$1])dnl
222 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
223 m4_if(
224   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
225   [ok:ok],,
226   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
227  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
228  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
229
230 _AM_IF_OPTION([no-define],,
231 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
232  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
233
234 # Some tools Automake needs.
235 AC_REQUIRE([AM_SANITY_CHECK])dnl
236 AC_REQUIRE([AC_ARG_PROGRAM])dnl
237 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
238 AM_MISSING_PROG([AUTOCONF], [autoconf])
239 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
240 AM_MISSING_PROG([AUTOHEADER], [autoheader])
241 AM_MISSING_PROG([MAKEINFO], [makeinfo])
242 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
243 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
244 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
245 # For better backward compatibility.  To be removed once Automake 1.9.x
246 # dies out for good.  For more background, see:
247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
248 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
249 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
250 # We need awk for the "check" target.  The system "awk" is bad on
251 # some platforms.
252 AC_REQUIRE([AC_PROG_AWK])dnl
253 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
254 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
255 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
256               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
257                              [_AM_PROG_TAR([v7])])])
258 _AM_IF_OPTION([no-dependencies],,
259 [AC_PROVIDE_IFELSE([AC_PROG_CC],
260                   [_AM_DEPENDENCIES([CC])],
261                   [m4_define([AC_PROG_CC],
262                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
263 AC_PROVIDE_IFELSE([AC_PROG_CXX],
264                   [_AM_DEPENDENCIES([CXX])],
265                   [m4_define([AC_PROG_CXX],
266                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
267 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
268                   [_AM_DEPENDENCIES([OBJC])],
269                   [m4_define([AC_PROG_OBJC],
270                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
271 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
272 dnl but we still cater to Autoconf 2.62.
273 m4_ifdef([AC_PROG_OBJCXX],
274 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
275                   [_AM_DEPENDENCIES([OBJCXX])],
276                   [m4_define([AC_PROG_OBJCXX],
277                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
278 ])
279 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
280 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
281 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
282 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
283 AC_CONFIG_COMMANDS_PRE(dnl
284 [m4_provide_if([_AM_COMPILER_EXEEXT],
285   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
286 ])
287
288 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
289 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
290 dnl mangled by Autoconf and run in a shell conditional statement.
291 m4_define([_AC_COMPILER_EXEEXT],
292 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
293
294
295 # When config.status generates a header, we must update the stamp-h file.
296 # This file resides in the same directory as the config header
297 # that is generated.  The stamp files are numbered to have different names.
298
299 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
300 # loop where config.status creates the headers, so we can generate
301 # our stamp files there.
302 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
303 [# Compute $1's index in $config_headers.
304 _am_arg=$1
305 _am_stamp_count=1
306 for _am_header in $config_headers :; do
307   case $_am_header in
308     $_am_arg | $_am_arg:* )
309       break ;;
310     * )
311       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
312   esac
313 done
314 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
315
316 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
317 #
318 # This file is free software; the Free Software Foundation
319 # gives unlimited permission to copy and/or distribute it,
320 # with or without modifications, as long as this notice is preserved.
321
322 # serial 8
323
324 # AM_PROG_INSTALL_SH
325 # ------------------
326 # Define $install_sh.
327 AC_DEFUN([AM_PROG_INSTALL_SH],
328 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
329 if test x"${install_sh}" != xset; then
330   case $am_aux_dir in
331   *\ * | *\     *)
332     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
333   *)
334     install_sh="\${SHELL} $am_aux_dir/install-sh"
335   esac
336 fi
337 AC_SUBST([install_sh])])
338
339 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
340 #
341 # This file is free software; the Free Software Foundation
342 # gives unlimited permission to copy and/or distribute it,
343 # with or without modifications, as long as this notice is preserved.
344
345 # serial 2
346
347 # Check whether the underlying file-system supports filenames
348 # with a leading dot.  For instance MS-DOS doesn't.
349 AC_DEFUN([AM_SET_LEADING_DOT],
350 [rm -rf .tst 2>/dev/null
351 mkdir .tst 2>/dev/null
352 if test -d .tst; then
353   am__leading_dot=.
354 else
355   am__leading_dot=_
356 fi
357 rmdir .tst 2>/dev/null
358 AC_SUBST([am__leading_dot])])
359
360 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
361 # From Jim Meyering
362
363 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
364 #
365 # This file is free software; the Free Software Foundation
366 # gives unlimited permission to copy and/or distribute it,
367 # with or without modifications, as long as this notice is preserved.
368
369 # serial 7
370
371 # AM_MAINTAINER_MODE([DEFAULT-MODE])
372 # ----------------------------------
373 # Control maintainer-specific portions of Makefiles.
374 # Default is to disable them, unless 'enable' is passed literally.
375 # For symmetry, 'disable' may be passed as well.  Anyway, the user
376 # can override the default with the --enable/--disable switch.
377 AC_DEFUN([AM_MAINTAINER_MODE],
378 [m4_case(m4_default([$1], [disable]),
379        [enable], [m4_define([am_maintainer_other], [disable])],
380        [disable], [m4_define([am_maintainer_other], [enable])],
381        [m4_define([am_maintainer_other], [enable])
382         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
383 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
384   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
385   AC_ARG_ENABLE([maintainer-mode],
386     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
387       am_maintainer_other[ make rules and dependencies not useful
388       (and sometimes confusing) to the casual installer])],
389     [USE_MAINTAINER_MODE=$enableval],
390     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
391   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
392   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
393   MAINT=$MAINTAINER_MODE_TRUE
394   AC_SUBST([MAINT])dnl
395 ]
396 )
397
398 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
399
400 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
401
402 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
403 #
404 # This file is free software; the Free Software Foundation
405 # gives unlimited permission to copy and/or distribute it,
406 # with or without modifications, as long as this notice is preserved.
407
408 # serial 7
409
410 # AM_MISSING_PROG(NAME, PROGRAM)
411 # ------------------------------
412 AC_DEFUN([AM_MISSING_PROG],
413 [AC_REQUIRE([AM_MISSING_HAS_RUN])
414 $1=${$1-"${am_missing_run}$2"}
415 AC_SUBST($1)])
416
417
418 # AM_MISSING_HAS_RUN
419 # ------------------
420 # Define MISSING if not defined so far and test if it supports --run.
421 # If it does, set am_missing_run to use it, otherwise, to nothing.
422 AC_DEFUN([AM_MISSING_HAS_RUN],
423 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
424 AC_REQUIRE_AUX_FILE([missing])dnl
425 if test x"${MISSING+set}" != xset; then
426   case $am_aux_dir in
427   *\ * | *\     *)
428     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
429   *)
430     MISSING="\${SHELL} $am_aux_dir/missing" ;;
431   esac
432 fi
433 # Use eval to expand $SHELL
434 if eval "$MISSING --run true"; then
435   am_missing_run="$MISSING --run "
436 else
437   am_missing_run=
438   AC_MSG_WARN(['missing' script is too old or missing])
439 fi
440 ])
441
442 # Helper functions for option handling.                     -*- Autoconf -*-
443
444 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
445 #
446 # This file is free software; the Free Software Foundation
447 # gives unlimited permission to copy and/or distribute it,
448 # with or without modifications, as long as this notice is preserved.
449
450 # serial 6
451
452 # _AM_MANGLE_OPTION(NAME)
453 # -----------------------
454 AC_DEFUN([_AM_MANGLE_OPTION],
455 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
456
457 # _AM_SET_OPTION(NAME)
458 # --------------------
459 # Set option NAME.  Presently that only means defining a flag for this option.
460 AC_DEFUN([_AM_SET_OPTION],
461 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
462
463 # _AM_SET_OPTIONS(OPTIONS)
464 # ------------------------
465 # OPTIONS is a space-separated list of Automake options.
466 AC_DEFUN([_AM_SET_OPTIONS],
467 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
468
469 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
470 # -------------------------------------------
471 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
472 AC_DEFUN([_AM_IF_OPTION],
473 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
474
475 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
476
477 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
478 #
479 # This file is free software; the Free Software Foundation
480 # gives unlimited permission to copy and/or distribute it,
481 # with or without modifications, as long as this notice is preserved.
482
483 # serial 9
484
485 # AM_SANITY_CHECK
486 # ---------------
487 AC_DEFUN([AM_SANITY_CHECK],
488 [AC_MSG_CHECKING([whether build environment is sane])
489 # Reject unsafe characters in $srcdir or the absolute working directory
490 # name.  Accept space and tab only in the latter.
491 am_lf='
492 '
493 case `pwd` in
494   *[[\\\"\#\$\&\'\`$am_lf]]*)
495     AC_MSG_ERROR([unsafe absolute working directory name]);;
496 esac
497 case $srcdir in
498   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
499     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
500 esac
501
502 # Do 'set' in a subshell so we don't clobber the current shell's
503 # arguments.  Must try -L first in case configure is actually a
504 # symlink; some systems play weird games with the mod time of symlinks
505 # (eg FreeBSD returns the mod time of the symlink's containing
506 # directory).
507 if (
508    am_has_slept=no
509    for am_try in 1 2; do
510      echo "timestamp, slept: $am_has_slept" > conftest.file
511      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
512      if test "$[*]" = "X"; then
513         # -L didn't work.
514         set X `ls -t "$srcdir/configure" conftest.file`
515      fi
516      if test "$[*]" != "X $srcdir/configure conftest.file" \
517         && test "$[*]" != "X conftest.file $srcdir/configure"; then
518
519         # If neither matched, then we have a broken ls.  This can happen
520         # if, for instance, CONFIG_SHELL is bash and it inherits a
521         # broken ls alias from the environment.  This has actually
522         # happened.  Such a system could not be considered "sane".
523         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
524   alias in your environment])
525      fi
526      if test "$[2]" = conftest.file || test $am_try -eq 2; then
527        break
528      fi
529      # Just in case.
530      sleep 1
531      am_has_slept=yes
532    done
533    test "$[2]" = conftest.file
534    )
535 then
536    # Ok.
537    :
538 else
539    AC_MSG_ERROR([newly created file is older than distributed files!
540 Check your system clock])
541 fi
542 AC_MSG_RESULT([yes])
543 # If we didn't sleep, we still need to ensure time stamps of config.status and
544 # generated files are strictly newer.
545 am_sleep_pid=
546 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
547   ( sleep 1 ) &
548   am_sleep_pid=$!
549 fi
550 AC_CONFIG_COMMANDS_PRE(
551   [AC_MSG_CHECKING([that generated files are newer than configure])
552    if test -n "$am_sleep_pid"; then
553      # Hide warnings about reused PIDs.
554      wait $am_sleep_pid 2>/dev/null
555    fi
556    AC_MSG_RESULT([done])])
557 rm -f conftest.file
558 ])
559
560 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
561 #
562 # This file is free software; the Free Software Foundation
563 # gives unlimited permission to copy and/or distribute it,
564 # with or without modifications, as long as this notice is preserved.
565
566 # serial 3
567
568 # AM_SILENT_RULES([DEFAULT])
569 # --------------------------
570 # Enable less verbose build rules; with the default set to DEFAULT
571 # ("yes" being less verbose, "no" or empty being verbose).
572 AC_DEFUN([AM_SILENT_RULES],
573 [AC_ARG_ENABLE([silent-rules], [dnl
574 AS_HELP_STRING(
575   [--enable-silent-rules],
576   [less verbose build output (undo: "make V=1")])
577 AS_HELP_STRING(
578   [--disable-silent-rules],
579   [verbose build output (undo: "make V=0")])dnl
580 ])
581 case $enable_silent_rules in @%:@ (((
582   yes) AM_DEFAULT_VERBOSITY=0;;
583    no) AM_DEFAULT_VERBOSITY=1;;
584     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
585 esac
586 dnl
587 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
588 dnl do not support nested variable expansions.
589 dnl See automake bug#9928 and bug#10237.
590 am_make=${MAKE-make}
591 AC_CACHE_CHECK([whether $am_make supports nested variables],
592    [am_cv_make_support_nested_variables],
593    [if AS_ECHO([['TRUE=$(BAR$(V))
594 BAR0=false
595 BAR1=true
596 V=1
597 am__doit:
598         @$(TRUE)
599 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
600   am_cv_make_support_nested_variables=yes
601 else
602   am_cv_make_support_nested_variables=no
603 fi])
604 if test $am_cv_make_support_nested_variables = yes; then
605   dnl Using '$V' instead of '$(V)' breaks IRIX make.
606   AM_V='$(V)'
607   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
608 else
609   AM_V=$AM_DEFAULT_VERBOSITY
610   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
611 fi
612 AC_SUBST([AM_V])dnl
613 AM_SUBST_NOTMAKE([AM_V])dnl
614 AC_SUBST([AM_DEFAULT_V])dnl
615 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
616 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
617 AM_BACKSLASH='\'
618 AC_SUBST([AM_BACKSLASH])dnl
619 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
620 ])
621
622 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
623 #
624 # This file is free software; the Free Software Foundation
625 # gives unlimited permission to copy and/or distribute it,
626 # with or without modifications, as long as this notice is preserved.
627
628 # serial 2
629
630 # AM_PROG_INSTALL_STRIP
631 # ---------------------
632 # One issue with vendor 'install' (even GNU) is that you can't
633 # specify the program used to strip binaries.  This is especially
634 # annoying in cross-compiling environments, where the build's strip
635 # is unlikely to handle the host's binaries.
636 # Fortunately install-sh will honor a STRIPPROG variable, so we
637 # always use install-sh in "make install-strip", and initialize
638 # STRIPPROG with the value of the STRIP variable (set by the user).
639 AC_DEFUN([AM_PROG_INSTALL_STRIP],
640 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
641 # Installed binaries are usually stripped using 'strip' when the user
642 # run "make install-strip".  However 'strip' might not be the right
643 # tool to use in cross-compilation environments, therefore Automake
644 # will honor the 'STRIP' environment variable to overrule this program.
645 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
646 if test "$cross_compiling" != no; then
647   AC_CHECK_TOOL([STRIP], [strip], :)
648 fi
649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
650 AC_SUBST([INSTALL_STRIP_PROGRAM])])
651
652 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
653 #
654 # This file is free software; the Free Software Foundation
655 # gives unlimited permission to copy and/or distribute it,
656 # with or without modifications, as long as this notice is preserved.
657
658 # serial 3
659
660 # _AM_SUBST_NOTMAKE(VARIABLE)
661 # ---------------------------
662 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
663 # This macro is traced by Automake.
664 AC_DEFUN([_AM_SUBST_NOTMAKE])
665
666 # AM_SUBST_NOTMAKE(VARIABLE)
667 # --------------------------
668 # Public sister of _AM_SUBST_NOTMAKE.
669 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
670
671 # Check how to create a tarball.                            -*- Autoconf -*-
672
673 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
674 #
675 # This file is free software; the Free Software Foundation
676 # gives unlimited permission to copy and/or distribute it,
677 # with or without modifications, as long as this notice is preserved.
678
679 # serial 3
680
681 # _AM_PROG_TAR(FORMAT)
682 # --------------------
683 # Check how to create a tarball in format FORMAT.
684 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
685 #
686 # Substitute a variable $(am__tar) that is a command
687 # writing to stdout a FORMAT-tarball containing the directory
688 # $tardir.
689 #     tardir=directory && $(am__tar) > result.tar
690 #
691 # Substitute a variable $(am__untar) that extract such
692 # a tarball read from stdin.
693 #     $(am__untar) < result.tar
694 AC_DEFUN([_AM_PROG_TAR],
695 [# Always define AMTAR for backward compatibility.  Yes, it's still used
696 # in the wild :-(  We should find a proper way to deprecate it ...
697 AC_SUBST([AMTAR], ['$${TAR-tar}'])
698 m4_if([$1], [v7],
699      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
700      [m4_case([$1], [ustar],, [pax],,
701               [m4_fatal([Unknown tar format])])
702 AC_MSG_CHECKING([how to create a $1 tar archive])
703 # Loop over all known methods to create a tar archive until one works.
704 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
705 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
706 # Do not fold the above two line into one, because Tru64 sh and
707 # Solaris sh will not grok spaces in the rhs of '-'.
708 for _am_tool in $_am_tools
709 do
710   case $_am_tool in
711   gnutar)
712     for _am_tar in tar gnutar gtar;
713     do
714       AM_RUN_LOG([$_am_tar --version]) && break
715     done
716     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
717     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
718     am__untar="$_am_tar -xf -"
719     ;;
720   plaintar)
721     # Must skip GNU tar: if it does not support --format= it doesn't create
722     # ustar tarball either.
723     (tar --version) >/dev/null 2>&1 && continue
724     am__tar='tar chf - "$$tardir"'
725     am__tar_='tar chf - "$tardir"'
726     am__untar='tar xf -'
727     ;;
728   pax)
729     am__tar='pax -L -x $1 -w "$$tardir"'
730     am__tar_='pax -L -x $1 -w "$tardir"'
731     am__untar='pax -r'
732     ;;
733   cpio)
734     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
735     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
736     am__untar='cpio -i -H $1 -d'
737     ;;
738   none)
739     am__tar=false
740     am__tar_=false
741     am__untar=false
742     ;;
743   esac
744
745   # If the value was cached, stop now.  We just wanted to have am__tar
746   # and am__untar set.
747   test -n "${am_cv_prog_tar_$1}" && break
748
749   # tar/untar a dummy directory, and stop if the command works
750   rm -rf conftest.dir
751   mkdir conftest.dir
752   echo GrepMe > conftest.dir/file
753   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
754   rm -rf conftest.dir
755   if test -s conftest.tar; then
756     AM_RUN_LOG([$am__untar <conftest.tar])
757     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
758   fi
759 done
760 rm -rf conftest.dir
761
762 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
763 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
764 AC_SUBST([am__tar])
765 AC_SUBST([am__untar])
766 ]) # _AM_PROG_TAR
767