Debian Codegraph @

check_mysql_health/check_mysql_health-2.2.2/acinclude.m4

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