blob: f77c03b4ebce8d3919b3f1b91bf55a4477494d7a [file] [log] [blame]
Jeff Thompsonef3c40b2013-08-02 11:50:15 -07001# generated automatically by aclocal 1.13.3 -*- 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
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# ============================================================================
24# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
25# ============================================================================
26#
27# SYNOPSIS
28#
29# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
30#
31# DESCRIPTION
32#
33# Check for baseline language coverage in the compiler for the C++11
34# standard; if necessary, add switches to CXXFLAGS to enable support.
35#
36# The first argument, if specified, indicates whether you insist on an
37# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
38# -std=c++11). If neither is specified, you get whatever works, with
39# preference for an extended mode.
40#
41# The second argument, if specified 'mandatory' or if left unspecified,
42# indicates that baseline C++11 support is required and that the macro
43# should error out if no mode with that support is found. If specified
44# 'optional', then configuration proceeds regardless, after defining
45# HAVE_CXX11 if and only if a supporting mode is found.
46#
47# LICENSE
48#
49# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
50# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
51# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
52#
53# Copying and distribution of this file, with or without modification, are
54# permitted in any medium without royalty provided the copyright notice
55# and this notice are preserved. This file is offered as-is, without any
56# warranty.
57
58#serial 3
59
60m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [
61 template <typename T>
62 struct check
63 {
64 static_assert(sizeof(int) <= sizeof(T), "not big enough");
65 };
66
67 typedef check<check<bool>> right_angle_brackets;
68
69 int a;
70 decltype(a) b;
71
72 typedef check<int> check_type;
73 check_type c;
74 check_type&& cr = static_cast<check_type&&>(c);
75
76 auto d = a;
77])
78
79AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
80 m4_if([$1], [], [],
81 [$1], [ext], [],
82 [$1], [noext], [],
83 [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl
84 m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
85 [$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
86 [$2], [optional], [ax_cxx_compile_cxx11_required=false],
87 [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])dnl
88 AC_LANG_PUSH([C++])dnl
89 ac_success=no
90 AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
91 ax_cv_cxx_compile_cxx11,
92 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
93 [ax_cv_cxx_compile_cxx11=yes],
94 [ax_cv_cxx_compile_cxx11=no])])
95 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
96 ac_success=yes
97 fi
98
99 m4_if([$1], [noext], [], [dnl
100 if test x$ac_success = xno; then
101 for switch in -std=gnu++11 -std=gnu++0x; do
102 cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
103 AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
104 $cachevar,
105 [ac_save_CXXFLAGS="$CXXFLAGS"
106 CXXFLAGS="$CXXFLAGS $switch"
107 AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
108 [eval $cachevar=yes],
109 [eval $cachevar=no])
110 CXXFLAGS="$ac_save_CXXFLAGS"])
111 if eval test x\$$cachevar = xyes; then
112 CXXFLAGS="$CXXFLAGS $switch"
113 ac_success=yes
114 break
115 fi
116 done
117 fi])
118
119 m4_if([$1], [ext], [], [dnl
120 if test x$ac_success = xno; then
121 for switch in -std=c++11 -std=c++0x; do
122 cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
123 AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
124 $cachevar,
125 [ac_save_CXXFLAGS="$CXXFLAGS"
126 CXXFLAGS="$CXXFLAGS $switch"
127 AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
128 [eval $cachevar=yes],
129 [eval $cachevar=no])
130 CXXFLAGS="$ac_save_CXXFLAGS"])
131 if eval test x\$$cachevar = xyes; then
132 CXXFLAGS="$CXXFLAGS $switch"
133 ac_success=yes
134 break
135 fi
136 done
137 fi])
138 AC_LANG_POP([C++])
139 if test x$ax_cxx_compile_cxx11_required = xtrue; then
140 if test x$ac_success = xno; then
141 AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.])
142 fi
143 else
144 if test x$ac_success = xno; then
145 HAVE_CXX11=0
146 AC_MSG_NOTICE([No compiler with C++11 support was found])
147 else
148 HAVE_CXX11=1
149 AC_DEFINE(HAVE_CXX11,1,
150 [define if the compiler supports basic C++11 syntax])
151 fi
152
153 AC_SUBST(HAVE_CXX11)
154 fi
155])
156
157# ===========================================================================
158# http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
159# ===========================================================================
160#
161# SYNOPSIS
162#
163# DX_INIT_DOXYGEN(PROJECT-NAME, DOXYFILE-PATH, [OUTPUT-DIR])
164# DX_DOXYGEN_FEATURE(ON|OFF)
165# DX_DOT_FEATURE(ON|OFF)
166# DX_HTML_FEATURE(ON|OFF)
167# DX_CHM_FEATURE(ON|OFF)
168# DX_CHI_FEATURE(ON|OFF)
169# DX_MAN_FEATURE(ON|OFF)
170# DX_RTF_FEATURE(ON|OFF)
171# DX_XML_FEATURE(ON|OFF)
172# DX_PDF_FEATURE(ON|OFF)
173# DX_PS_FEATURE(ON|OFF)
174#
175# DESCRIPTION
176#
177# The DX_*_FEATURE macros control the default setting for the given
178# Doxygen feature. Supported features are 'DOXYGEN' itself, 'DOT' for
179# generating graphics, 'HTML' for plain HTML, 'CHM' for compressed HTML
180# help (for MS users), 'CHI' for generating a seperate .chi file by the
181# .chm file, and 'MAN', 'RTF', 'XML', 'PDF' and 'PS' for the appropriate
182# output formats. The environment variable DOXYGEN_PAPER_SIZE may be
183# specified to override the default 'a4wide' paper size.
184#
185# By default, HTML, PDF and PS documentation is generated as this seems to
186# be the most popular and portable combination. MAN pages created by
187# Doxygen are usually problematic, though by picking an appropriate subset
188# and doing some massaging they might be better than nothing. CHM and RTF
189# are specific for MS (note that you can't generate both HTML and CHM at
190# the same time). The XML is rather useless unless you apply specialized
191# post-processing to it.
192#
193# The macros mainly control the default state of the feature. The use can
194# override the default by specifying --enable or --disable. The macros
195# ensure that contradictory flags are not given (e.g.,
196# --enable-doxygen-html and --enable-doxygen-chm,
197# --enable-doxygen-anything with --disable-doxygen, etc.) Finally, each
198# feature will be automatically disabled (with a warning) if the required
199# programs are missing.
200#
201# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN
202# with the following parameters: a one-word name for the project for use
203# as a filename base etc., an optional configuration file name (the
204# default is 'Doxyfile', the same as Doxygen's default), and an optional
205# output directory name (the default is 'doxygen-doc').
206#
207# Automake Support
208#
209# The following is a template aminclude.am file for use with Automake.
210# Make targets and variables values are controlled by the various
211# DX_COND_* conditionals set by autoconf.
212#
213# The provided targets are:
214#
215# doxygen-doc: Generate all doxygen documentation.
216#
217# doxygen-run: Run doxygen, which will generate some of the
218# documentation (HTML, CHM, CHI, MAN, RTF, XML)
219# but will not do the post processing required
220# for the rest of it (PS, PDF, and some MAN).
221#
222# doxygen-man: Rename some doxygen generated man pages.
223#
224# doxygen-ps: Generate doxygen PostScript documentation.
225#
226# doxygen-pdf: Generate doxygen PDF documentation.
227#
228# Note that by default these are not integrated into the automake targets.
229# If doxygen is used to generate man pages, you can achieve this
230# integration by setting man3_MANS to the list of man pages generated and
231# then adding the dependency:
232#
233# $(man3_MANS): doxygen-doc
234#
235# This will cause make to run doxygen and generate all the documentation.
236#
237# The following variable is intended for use in Makefile.am:
238#
239# DX_CLEANFILES = everything to clean.
240#
241# Then add this variable to MOSTLYCLEANFILES.
242#
243# ----- begin aminclude.am -------------------------------------
244#
245# ## --------------------------------- ##
246# ## Format-independent Doxygen rules. ##
247# ## --------------------------------- ##
248#
249# if DX_COND_doc
250#
251# ## ------------------------------- ##
252# ## Rules specific for HTML output. ##
253# ## ------------------------------- ##
254#
255# if DX_COND_html
256#
257# DX_CLEAN_HTML = @DX_DOCDIR@/html
258#
259# endif DX_COND_html
260#
261# ## ------------------------------ ##
262# ## Rules specific for CHM output. ##
263# ## ------------------------------ ##
264#
265# if DX_COND_chm
266#
267# DX_CLEAN_CHM = @DX_DOCDIR@/chm
268#
269# if DX_COND_chi
270#
271# DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
272#
273# endif DX_COND_chi
274#
275# endif DX_COND_chm
276#
277# ## ------------------------------ ##
278# ## Rules specific for MAN output. ##
279# ## ------------------------------ ##
280#
281# if DX_COND_man
282#
283# DX_CLEAN_MAN = @DX_DOCDIR@/man
284#
285# endif DX_COND_man
286#
287# ## ------------------------------ ##
288# ## Rules specific for RTF output. ##
289# ## ------------------------------ ##
290#
291# if DX_COND_rtf
292#
293# DX_CLEAN_RTF = @DX_DOCDIR@/rtf
294#
295# endif DX_COND_rtf
296#
297# ## ------------------------------ ##
298# ## Rules specific for XML output. ##
299# ## ------------------------------ ##
300#
301# if DX_COND_xml
302#
303# DX_CLEAN_XML = @DX_DOCDIR@/xml
304#
305# endif DX_COND_xml
306#
307# ## ----------------------------- ##
308# ## Rules specific for PS output. ##
309# ## ----------------------------- ##
310#
311# if DX_COND_ps
312#
313# DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
314#
315# DX_PS_GOAL = doxygen-ps
316#
317# doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
318#
319# @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
320# cd @DX_DOCDIR@/latex; \
321# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
322# $(DX_LATEX) refman.tex; \
323# $(MAKEINDEX_PATH) refman.idx; \
324# $(DX_LATEX) refman.tex; \
325# countdown=5; \
326# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
327# refman.log > /dev/null 2>&1 \
328# && test $$countdown -gt 0; do \
329# $(DX_LATEX) refman.tex; \
330# countdown=`expr $$countdown - 1`; \
331# done; \
332# $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
333#
334# endif DX_COND_ps
335#
336# ## ------------------------------ ##
337# ## Rules specific for PDF output. ##
338# ## ------------------------------ ##
339#
340# if DX_COND_pdf
341#
342# DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
343#
344# DX_PDF_GOAL = doxygen-pdf
345#
346# doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
347#
348# @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
349# cd @DX_DOCDIR@/latex; \
350# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
351# $(DX_PDFLATEX) refman.tex; \
352# $(DX_MAKEINDEX) refman.idx; \
353# $(DX_PDFLATEX) refman.tex; \
354# countdown=5; \
355# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
356# refman.log > /dev/null 2>&1 \
357# && test $$countdown -gt 0; do \
358# $(DX_PDFLATEX) refman.tex; \
359# countdown=`expr $$countdown - 1`; \
360# done; \
361# mv refman.pdf ../@PACKAGE@.pdf
362#
363# endif DX_COND_pdf
364#
365# ## ------------------------------------------------- ##
366# ## Rules specific for LaTeX (shared for PS and PDF). ##
367# ## ------------------------------------------------- ##
368#
369# if DX_COND_latex
370#
371# DX_CLEAN_LATEX = @DX_DOCDIR@/latex
372#
373# endif DX_COND_latex
374#
375# .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
376#
377# .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
378#
379# doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
380#
381# doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
382#
383# @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
384# rm -rf @DX_DOCDIR@
385# $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
386#
387# DX_CLEANFILES = \
388# @DX_DOCDIR@/@PACKAGE@.tag \
389# -r \
390# $(DX_CLEAN_HTML) \
391# $(DX_CLEAN_CHM) \
392# $(DX_CLEAN_CHI) \
393# $(DX_CLEAN_MAN) \
394# $(DX_CLEAN_RTF) \
395# $(DX_CLEAN_XML) \
396# $(DX_CLEAN_PS) \
397# $(DX_CLEAN_PDF) \
398# $(DX_CLEAN_LATEX)
399#
400# endif DX_COND_doc
401#
402# ----- end aminclude.am ---------------------------------------
403#
404# LICENSE
405#
406# Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
407#
408# Copying and distribution of this file, with or without modification, are
409# permitted in any medium without royalty provided the copyright notice
410# and this notice are preserved. This file is offered as-is, without any
411# warranty.
412
413#serial 12
414
415
416DX_ENV=""
417AC_DEFUN([DX_FEATURE_doc], ON)
418AC_DEFUN([DX_FEATURE_dot], OFF)
419AC_DEFUN([DX_FEATURE_man], OFF)
420AC_DEFUN([DX_FEATURE_html], ON)
421AC_DEFUN([DX_FEATURE_chm], OFF)
422AC_DEFUN([DX_FEATURE_chi], OFF)
423AC_DEFUN([DX_FEATURE_rtf], OFF)
424AC_DEFUN([DX_FEATURE_xml], OFF)
425AC_DEFUN([DX_FEATURE_pdf], ON)
426AC_DEFUN([DX_FEATURE_ps], ON)
427
428
429# DX_ENV_APPEND(VARIABLE, VALUE)
430# ------------------------------
431# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
432AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
433
434# DX_DIRNAME_EXPR
435# ---------------
436# Expand into a shell expression prints the directory part of a path.
437AC_DEFUN([DX_DIRNAME_EXPR],
438 [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
439
440# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
441# -------------------------------------
442# Expands according to the M4 (static) status of the feature.
443AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
444
445# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
446# ----------------------------------
447# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
448AC_DEFUN([DX_REQUIRE_PROG], [
449AC_PATH_TOOL([$1], [$2])
450if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
451 AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
452 AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
453fi
454])
455
456# DX_TEST_FEATURE(FEATURE)
457# ------------------------
458# Expand to a shell expression testing whether the feature is active.
459AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
460
461# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
462# -------------------------------------------------
463# Verify that a required features has the right state before trying to turn on
464# the DX_CURRENT_FEATURE.
465AC_DEFUN([DX_CHECK_DEPEND], [
466test "$DX_FLAG_$1" = "$2" \
467|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
468 requires, contradicts) doxygen-DX_CURRENT_FEATURE])
469])
470
471# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
472# ----------------------------------------------------------
473# Turn off the DX_CURRENT_FEATURE if the required feature is off.
474AC_DEFUN([DX_CLEAR_DEPEND], [
475test "$DX_FLAG_$1" = "$2" || AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
476])
477
478# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
479# CHECK_DEPEND, CLEAR_DEPEND,
480# REQUIRE, DO-IF-ON, DO-IF-OFF)
481# --------------------------------------------
482# Parse the command-line option controlling a feature. CHECK_DEPEND is called
483# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
484# otherwise CLEAR_DEPEND is called to turn off the default state if a required
485# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
486# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
487# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
488AC_DEFUN([DX_ARG_ABLE], [
489 AC_DEFUN([DX_CURRENT_FEATURE], [$1])
490 AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
491 AC_ARG_ENABLE(doxygen-$1,
492 [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
493 [--enable-doxygen-$1]),
494 DX_IF_FEATURE([$1], [don't $2], [$2]))],
495 [
496case "$enableval" in
497#(
498y|Y|yes|Yes|YES)
499 AC_SUBST([DX_FLAG_$1], 1)
500 $3
501;; #(
502n|N|no|No|NO)
503 AC_SUBST([DX_FLAG_$1], 0)
504;; #(
505*)
506 AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
507;;
508esac
509], [
510AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
511$4
512])
513if DX_TEST_FEATURE([$1]); then
514 $5
515 :
516fi
517AM_CONDITIONAL(DX_COND_$1, DX_TEST_FEATURE([$1]))
518if DX_TEST_FEATURE([$1]); then
519 $6
520 :
521else
522 $7
523 :
524fi
525])
526
527
528# DX_XXX_FEATURE(DEFAULT_STATE)
529# -----------------------------
530AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
531AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])])
532AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
533AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
534AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
535AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
536AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
537AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
538AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
539AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
540AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
541
542# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
543# ---------------------------------------------------------
544# PROJECT also serves as the base name for the documentation files.
545# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
546AC_DEFUN([DX_INIT_DOXYGEN], [
547
548# Files:
549AC_SUBST([DX_PROJECT], [$1])
550AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
551AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
552
553# Environment variables used inside doxygen.cfg:
554DX_ENV_APPEND(SRCDIR, $srcdir)
555DX_ENV_APPEND(PROJECT, $DX_PROJECT)
556DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
557DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
558
559# Doxygen itself:
560DX_ARG_ABLE(doc, [generate any doxygen documentation],
561 [],
562 [],
563 [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
564 DX_REQUIRE_PROG([DX_PERL], perl)],
565 [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
566
567# Dot for graphics:
568DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
569 [DX_CHECK_DEPEND(doc, 1)],
570 [DX_CLEAR_DEPEND(doc, 1)],
571 [DX_REQUIRE_PROG([DX_DOT], dot)],
572 [DX_ENV_APPEND(HAVE_DOT, YES)
573 DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
574 [DX_ENV_APPEND(HAVE_DOT, NO)])
575
576# Man pages generation:
577DX_ARG_ABLE(man, [generate doxygen manual pages],
578 [DX_CHECK_DEPEND(doc, 1)],
579 [DX_CLEAR_DEPEND(doc, 1)],
580 [],
581 [DX_ENV_APPEND(GENERATE_MAN, YES)],
582 [DX_ENV_APPEND(GENERATE_MAN, NO)])
583
584# RTF file generation:
585DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
586 [DX_CHECK_DEPEND(doc, 1)],
587 [DX_CLEAR_DEPEND(doc, 1)],
588 [],
589 [DX_ENV_APPEND(GENERATE_RTF, YES)],
590 [DX_ENV_APPEND(GENERATE_RTF, NO)])
591
592# XML file generation:
593DX_ARG_ABLE(xml, [generate doxygen XML documentation],
594 [DX_CHECK_DEPEND(doc, 1)],
595 [DX_CLEAR_DEPEND(doc, 1)],
596 [],
597 [DX_ENV_APPEND(GENERATE_XML, YES)],
598 [DX_ENV_APPEND(GENERATE_XML, NO)])
599
600# (Compressed) HTML help generation:
601DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
602 [DX_CHECK_DEPEND(doc, 1)],
603 [DX_CLEAR_DEPEND(doc, 1)],
604 [DX_REQUIRE_PROG([DX_HHC], hhc)],
605 [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
606 DX_ENV_APPEND(GENERATE_HTML, YES)
607 DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
608 [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
609
610# Seperate CHI file generation.
611DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
612 [DX_CHECK_DEPEND(chm, 1)],
613 [DX_CLEAR_DEPEND(chm, 1)],
614 [],
615 [DX_ENV_APPEND(GENERATE_CHI, YES)],
616 [DX_ENV_APPEND(GENERATE_CHI, NO)])
617
618# Plain HTML pages generation:
619DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
620 [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
621 [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
622 [],
623 [DX_ENV_APPEND(GENERATE_HTML, YES)],
624 [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
625
626# PostScript file generation:
627DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
628 [DX_CHECK_DEPEND(doc, 1)],
629 [DX_CLEAR_DEPEND(doc, 1)],
630 [DX_REQUIRE_PROG([DX_LATEX], latex)
631 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
632 DX_REQUIRE_PROG([DX_DVIPS], dvips)
633 DX_REQUIRE_PROG([DX_EGREP], egrep)])
634
635# PDF file generation:
636DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
637 [DX_CHECK_DEPEND(doc, 1)],
638 [DX_CLEAR_DEPEND(doc, 1)],
639 [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
640 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
641 DX_REQUIRE_PROG([DX_EGREP], egrep)])
642
643# LaTeX generation for PS and/or PDF:
644AM_CONDITIONAL(DX_COND_latex, DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf))
645if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
646 DX_ENV_APPEND(GENERATE_LATEX, YES)
647else
648 DX_ENV_APPEND(GENERATE_LATEX, NO)
649fi
650
651# Paper size for PS and/or PDF:
652AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
653 [a4wide (default), a4, letter, legal or executive])
654case "$DOXYGEN_PAPER_SIZE" in
655#(
656"")
657 AC_SUBST(DOXYGEN_PAPER_SIZE, "")
658;; #(
659a4wide|a4|letter|legal|executive)
660 DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
661;; #(
662*)
663 AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
664;;
665esac
666
667#For debugging:
668#echo DX_FLAG_doc=$DX_FLAG_doc
669#echo DX_FLAG_dot=$DX_FLAG_dot
670#echo DX_FLAG_man=$DX_FLAG_man
671#echo DX_FLAG_html=$DX_FLAG_html
672#echo DX_FLAG_chm=$DX_FLAG_chm
673#echo DX_FLAG_chi=$DX_FLAG_chi
674#echo DX_FLAG_rtf=$DX_FLAG_rtf
675#echo DX_FLAG_xml=$DX_FLAG_xml
676#echo DX_FLAG_pdf=$DX_FLAG_pdf
677#echo DX_FLAG_ps=$DX_FLAG_ps
678#echo DX_ENV=$DX_ENV
679])
680
681# Copyright (C) 2002-2013 Free Software Foundation, Inc.
682#
683# This file is free software; the Free Software Foundation
684# gives unlimited permission to copy and/or distribute it,
685# with or without modifications, as long as this notice is preserved.
686
687# AM_AUTOMAKE_VERSION(VERSION)
688# ----------------------------
689# Automake X.Y traces this macro to ensure aclocal.m4 has been
690# generated from the m4 files accompanying Automake X.Y.
691# (This private macro should not be called outside this file.)
692AC_DEFUN([AM_AUTOMAKE_VERSION],
693[am__api_version='1.13'
694dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
695dnl require some minimum version. Point them to the right macro.
696m4_if([$1], [1.13.3], [],
697 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
698])
699
700# _AM_AUTOCONF_VERSION(VERSION)
701# -----------------------------
702# aclocal traces this macro to find the Autoconf version.
703# This is a private macro too. Using m4_define simplifies
704# the logic in aclocal, which can simply ignore this definition.
705m4_define([_AM_AUTOCONF_VERSION], [])
706
707# AM_SET_CURRENT_AUTOMAKE_VERSION
708# -------------------------------
709# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
710# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
711AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
712[AM_AUTOMAKE_VERSION([1.13.3])dnl
713m4_ifndef([AC_AUTOCONF_VERSION],
714 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
715_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
716
717# Copyright (C) 2011-2013 Free Software Foundation, 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# AM_PROG_AR([ACT-IF-FAIL])
724# -------------------------
725# Try to determine the archiver interface, and trigger the ar-lib wrapper
726# if it is needed. If the detection of archiver interface fails, run
727# ACT-IF-FAIL (default is to abort configure with a proper error message).
728AC_DEFUN([AM_PROG_AR],
729[AC_BEFORE([$0], [LT_INIT])dnl
730AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
731AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
732AC_REQUIRE_AUX_FILE([ar-lib])dnl
733AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
734: ${AR=ar}
735
736AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
737 [am_cv_ar_interface=ar
738 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
739 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
740 AC_TRY_EVAL([am_ar_try])
741 if test "$ac_status" -eq 0; then
742 am_cv_ar_interface=ar
743 else
744 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
745 AC_TRY_EVAL([am_ar_try])
746 if test "$ac_status" -eq 0; then
747 am_cv_ar_interface=lib
748 else
749 am_cv_ar_interface=unknown
750 fi
751 fi
752 rm -f conftest.lib libconftest.a
753 ])
754 ])
755
756case $am_cv_ar_interface in
757ar)
758 ;;
759lib)
760 # Microsoft lib, so override with the ar-lib wrapper script.
761 # FIXME: It is wrong to rewrite AR.
762 # But if we don't then we get into trouble of one sort or another.
763 # A longer-term fix would be to have automake use am__AR in this case,
764 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
765 # similar.
766 AR="$am_aux_dir/ar-lib $AR"
767 ;;
768unknown)
769 m4_default([$1],
770 [AC_MSG_ERROR([could not determine $AR interface])])
771 ;;
772esac
773AC_SUBST([AR])dnl
774])
775
776# AM_AUX_DIR_EXPAND -*- Autoconf -*-
777
778# Copyright (C) 2001-2013 Free Software Foundation, Inc.
779#
780# This file is free software; the Free Software Foundation
781# gives unlimited permission to copy and/or distribute it,
782# with or without modifications, as long as this notice is preserved.
783
784# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
785# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
786# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
787#
788# Of course, Automake must honor this variable whenever it calls a
789# tool from the auxiliary directory. The problem is that $srcdir (and
790# therefore $ac_aux_dir as well) can be either absolute or relative,
791# depending on how configure is run. This is pretty annoying, since
792# it makes $ac_aux_dir quite unusable in subdirectories: in the top
793# source directory, any form will work fine, but in subdirectories a
794# relative path needs to be adjusted first.
795#
796# $ac_aux_dir/missing
797# fails when called from a subdirectory if $ac_aux_dir is relative
798# $top_srcdir/$ac_aux_dir/missing
799# fails if $ac_aux_dir is absolute,
800# fails when called from a subdirectory in a VPATH build with
801# a relative $ac_aux_dir
802#
803# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
804# are both prefixed by $srcdir. In an in-source build this is usually
805# harmless because $srcdir is '.', but things will broke when you
806# start a VPATH build or use an absolute $srcdir.
807#
808# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
809# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
810# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
811# and then we would define $MISSING as
812# MISSING="\${SHELL} $am_aux_dir/missing"
813# This will work as long as MISSING is not called from configure, because
814# unfortunately $(top_srcdir) has no meaning in configure.
815# However there are other variables, like CC, which are often used in
816# configure, and could therefore not use this "fixed" $ac_aux_dir.
817#
818# Another solution, used here, is to always expand $ac_aux_dir to an
819# absolute PATH. The drawback is that using absolute paths prevent a
820# configured tree to be moved without reconfiguration.
821
822AC_DEFUN([AM_AUX_DIR_EXPAND],
823[dnl Rely on autoconf to set up CDPATH properly.
824AC_PREREQ([2.50])dnl
825# expand $ac_aux_dir to an absolute path
826am_aux_dir=`cd $ac_aux_dir && pwd`
827])
828
829# AM_CONDITIONAL -*- Autoconf -*-
830
831# Copyright (C) 1997-2013 Free Software Foundation, Inc.
832#
833# This file is free software; the Free Software Foundation
834# gives unlimited permission to copy and/or distribute it,
835# with or without modifications, as long as this notice is preserved.
836
837# AM_CONDITIONAL(NAME, SHELL-CONDITION)
838# -------------------------------------
839# Define a conditional.
840AC_DEFUN([AM_CONDITIONAL],
841[AC_PREREQ([2.52])dnl
842 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
843 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
844AC_SUBST([$1_TRUE])dnl
845AC_SUBST([$1_FALSE])dnl
846_AM_SUBST_NOTMAKE([$1_TRUE])dnl
847_AM_SUBST_NOTMAKE([$1_FALSE])dnl
848m4_define([_AM_COND_VALUE_$1], [$2])dnl
849if $2; then
850 $1_TRUE=
851 $1_FALSE='#'
852else
853 $1_TRUE='#'
854 $1_FALSE=
855fi
856AC_CONFIG_COMMANDS_PRE(
857[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858 AC_MSG_ERROR([[conditional "$1" was never defined.
859Usually this means the macro was only invoked conditionally.]])
860fi])])
861
862# Copyright (C) 1999-2013 Free Software Foundation, Inc.
863#
864# This file is free software; the Free Software Foundation
865# gives unlimited permission to copy and/or distribute it,
866# with or without modifications, as long as this notice is preserved.
867
868
869# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
870# written in clear, in which case automake, when reading aclocal.m4,
871# will think it sees a *use*, and therefore will trigger all it's
872# C support machinery. Also note that it means that autoscan, seeing
873# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
874
875
876# _AM_DEPENDENCIES(NAME)
877# ----------------------
878# See how the compiler implements dependency checking.
879# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
880# We try a few techniques and use that to set a single cache variable.
881#
882# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
883# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
884# dependency, and given that the user is not expected to run this macro,
885# just rely on AC_PROG_CC.
886AC_DEFUN([_AM_DEPENDENCIES],
887[AC_REQUIRE([AM_SET_DEPDIR])dnl
888AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
889AC_REQUIRE([AM_MAKE_INCLUDE])dnl
890AC_REQUIRE([AM_DEP_TRACK])dnl
891
892m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
893 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
894 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
895 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
896 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
897 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
898 [depcc="$$1" am_compiler_list=])
899
900AC_CACHE_CHECK([dependency style of $depcc],
901 [am_cv_$1_dependencies_compiler_type],
902[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
903 # We make a subdir and do the tests there. Otherwise we can end up
904 # making bogus files that we don't know about and never remove. For
905 # instance it was reported that on HP-UX the gcc test will end up
906 # making a dummy file named 'D' -- because '-MD' means "put the output
907 # in D".
908 rm -rf conftest.dir
909 mkdir conftest.dir
910 # Copy depcomp to subdir because otherwise we won't find it if we're
911 # using a relative directory.
912 cp "$am_depcomp" conftest.dir
913 cd conftest.dir
914 # We will build objects and dependencies in a subdirectory because
915 # it helps to detect inapplicable dependency modes. For instance
916 # both Tru64's cc and ICC support -MD to output dependencies as a
917 # side effect of compilation, but ICC will put the dependencies in
918 # the current directory while Tru64 will put them in the object
919 # directory.
920 mkdir sub
921
922 am_cv_$1_dependencies_compiler_type=none
923 if test "$am_compiler_list" = ""; then
924 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
925 fi
926 am__universal=false
927 m4_case([$1], [CC],
928 [case " $depcc " in #(
929 *\ -arch\ *\ -arch\ *) am__universal=true ;;
930 esac],
931 [CXX],
932 [case " $depcc " in #(
933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
934 esac])
935
936 for depmode in $am_compiler_list; do
937 # Setup a source with many dependencies, because some compilers
938 # like to wrap large dependency lists on column 80 (with \), and
939 # we should not choose a depcomp mode which is confused by this.
940 #
941 # We need to recreate these files for each test, as the compiler may
942 # overwrite some of them when testing with obscure command lines.
943 # This happens at least with the AIX C compiler.
944 : > sub/conftest.c
945 for i in 1 2 3 4 5 6; do
946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
947 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
948 # Solaris 10 /bin/sh.
949 echo '/* dummy */' > sub/conftst$i.h
950 done
951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
952
953 # We check with '-c' and '-o' for the sake of the "dashmstdout"
954 # mode. It turns out that the SunPro C++ compiler does not properly
955 # handle '-M -o', and we need to detect this. Also, some Intel
956 # versions had trouble with output in subdirs.
957 am__obj=sub/conftest.${OBJEXT-o}
958 am__minus_obj="-o $am__obj"
959 case $depmode in
960 gcc)
961 # This depmode causes a compiler race in universal mode.
962 test "$am__universal" = false || continue
963 ;;
964 nosideeffect)
965 # After this tag, mechanisms are not by side-effect, so they'll
966 # only be used when explicitly requested.
967 if test "x$enable_dependency_tracking" = xyes; then
968 continue
969 else
970 break
971 fi
972 ;;
973 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
974 # This compiler won't grok '-c -o', but also, the minuso test has
975 # not run yet. These depmodes are late enough in the game, and
976 # so weak that their functioning should not be impacted.
977 am__obj=conftest.${OBJEXT-o}
978 am__minus_obj=
979 ;;
980 none) break ;;
981 esac
982 if depmode=$depmode \
983 source=sub/conftest.c object=$am__obj \
984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
986 >/dev/null 2>conftest.err &&
987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
991 # icc doesn't choke on unknown options, it will just issue warnings
992 # or remarks (even with -Werror). So we grep stderr for any message
993 # that says an option was ignored or not supported.
994 # When given -MP, icc 7.0 and 7.1 complain thusly:
995 # icc: Command line warning: ignoring option '-M'; no argument required
996 # The diagnosis changed in icc 8.0:
997 # icc: Command line remark: option '-MP' not supported
998 if (grep 'ignoring option' conftest.err ||
999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1000 am_cv_$1_dependencies_compiler_type=$depmode
1001 break
1002 fi
1003 fi
1004 done
1005
1006 cd ..
1007 rm -rf conftest.dir
1008else
1009 am_cv_$1_dependencies_compiler_type=none
1010fi
1011])
1012AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1013AM_CONDITIONAL([am__fastdep$1], [
1014 test "x$enable_dependency_tracking" != xno \
1015 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1016])
1017
1018
1019# AM_SET_DEPDIR
1020# -------------
1021# Choose a directory name for dependency files.
1022# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1023AC_DEFUN([AM_SET_DEPDIR],
1024[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1025AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1026])
1027
1028
1029# AM_DEP_TRACK
1030# ------------
1031AC_DEFUN([AM_DEP_TRACK],
1032[AC_ARG_ENABLE([dependency-tracking], [dnl
1033AS_HELP_STRING(
1034 [--enable-dependency-tracking],
1035 [do not reject slow dependency extractors])
1036AS_HELP_STRING(
1037 [--disable-dependency-tracking],
1038 [speeds up one-time build])])
1039if test "x$enable_dependency_tracking" != xno; then
1040 am_depcomp="$ac_aux_dir/depcomp"
1041 AMDEPBACKSLASH='\'
1042 am__nodep='_no'
1043fi
1044AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1045AC_SUBST([AMDEPBACKSLASH])dnl
1046_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1047AC_SUBST([am__nodep])dnl
1048_AM_SUBST_NOTMAKE([am__nodep])dnl
1049])
1050
1051# Generate code to set up dependency tracking. -*- Autoconf -*-
1052
1053# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1054#
1055# This file is free software; the Free Software Foundation
1056# gives unlimited permission to copy and/or distribute it,
1057# with or without modifications, as long as this notice is preserved.
1058
1059
1060# _AM_OUTPUT_DEPENDENCY_COMMANDS
1061# ------------------------------
1062AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1063[{
1064 # Older Autoconf quotes --file arguments for eval, but not when files
1065 # are listed without --file. Let's play safe and only enable the eval
1066 # if we detect the quoting.
1067 case $CONFIG_FILES in
1068 *\'*) eval set x "$CONFIG_FILES" ;;
1069 *) set x $CONFIG_FILES ;;
1070 esac
1071 shift
1072 for mf
1073 do
1074 # Strip MF so we end up with the name of the file.
1075 mf=`echo "$mf" | sed -e 's/:.*$//'`
1076 # Check whether this is an Automake generated Makefile or not.
1077 # We used to match only the files named 'Makefile.in', but
1078 # some people rename them; so instead we look at the file content.
1079 # Grep'ing the first line is not enough: some people post-process
1080 # each Makefile.in and add a new line on top of each file to say so.
1081 # Grep'ing the whole file is not good either: AIX grep has a line
1082 # limit of 2048, but all sed's we know have understand at least 4000.
1083 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1084 dirpart=`AS_DIRNAME("$mf")`
1085 else
1086 continue
1087 fi
1088 # Extract the definition of DEPDIR, am__include, and am__quote
1089 # from the Makefile without running 'make'.
1090 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1091 test -z "$DEPDIR" && continue
1092 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1093 test -z "$am__include" && continue
1094 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1095 # Find all dependency output files, they are included files with
1096 # $(DEPDIR) in their names. We invoke sed twice because it is the
1097 # simplest approach to changing $(DEPDIR) to its actual value in the
1098 # expansion.
1099 for file in `sed -n "
1100 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1101 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1102 # Make sure the directory exists.
1103 test -f "$dirpart/$file" && continue
1104 fdir=`AS_DIRNAME(["$file"])`
1105 AS_MKDIR_P([$dirpart/$fdir])
1106 # echo "creating $dirpart/$file"
1107 echo '# dummy' > "$dirpart/$file"
1108 done
1109 done
1110}
1111])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1112
1113
1114# AM_OUTPUT_DEPENDENCY_COMMANDS
1115# -----------------------------
1116# This macro should only be invoked once -- use via AC_REQUIRE.
1117#
1118# This code is only required when automatic dependency tracking
1119# is enabled. FIXME. This creates each '.P' file that we will
1120# need in order to bootstrap the dependency handling code.
1121AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1122[AC_CONFIG_COMMANDS([depfiles],
1123 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1124 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1125])
1126
1127# Do all the work for Automake. -*- Autoconf -*-
1128
1129# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1130#
1131# This file is free software; the Free Software Foundation
1132# gives unlimited permission to copy and/or distribute it,
1133# with or without modifications, as long as this notice is preserved.
1134
1135# This macro actually does too much. Some checks are only needed if
1136# your package does certain things. But this isn't really a big deal.
1137
1138# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1139# AM_INIT_AUTOMAKE([OPTIONS])
1140# -----------------------------------------------
1141# The call with PACKAGE and VERSION arguments is the old style
1142# call (pre autoconf-2.50), which is being phased out. PACKAGE
1143# and VERSION should now be passed to AC_INIT and removed from
1144# the call to AM_INIT_AUTOMAKE.
1145# We support both call styles for the transition. After
1146# the next Automake release, Autoconf can make the AC_INIT
1147# arguments mandatory, and then we can depend on a new Autoconf
1148# release and drop the old call support.
1149AC_DEFUN([AM_INIT_AUTOMAKE],
1150[AC_PREREQ([2.65])dnl
1151dnl Autoconf wants to disallow AM_ names. We explicitly allow
1152dnl the ones we care about.
1153m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1154AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1155AC_REQUIRE([AC_PROG_INSTALL])dnl
1156if test "`cd $srcdir && pwd`" != "`pwd`"; then
1157 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1158 # is not polluted with repeated "-I."
1159 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1160 # test to see if srcdir already configured
1161 if test -f $srcdir/config.status; then
1162 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1163 fi
1164fi
1165
1166# test whether we have cygpath
1167if test -z "$CYGPATH_W"; then
1168 if (cygpath --version) >/dev/null 2>/dev/null; then
1169 CYGPATH_W='cygpath -w'
1170 else
1171 CYGPATH_W=echo
1172 fi
1173fi
1174AC_SUBST([CYGPATH_W])
1175
1176# Define the identity of the package.
1177dnl Distinguish between old-style and new-style calls.
1178m4_ifval([$2],
1179[AC_DIAGNOSE([obsolete],
1180 [$0: two- and three-arguments forms are deprecated.])
1181m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1182 AC_SUBST([PACKAGE], [$1])dnl
1183 AC_SUBST([VERSION], [$2])],
1184[_AM_SET_OPTIONS([$1])dnl
1185dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1186m4_if(
1187 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1188 [ok:ok],,
1189 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1190 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1191 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1192
1193_AM_IF_OPTION([no-define],,
1194[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1195 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1196
1197# Some tools Automake needs.
1198AC_REQUIRE([AM_SANITY_CHECK])dnl
1199AC_REQUIRE([AC_ARG_PROGRAM])dnl
1200AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1201AM_MISSING_PROG([AUTOCONF], [autoconf])
1202AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1203AM_MISSING_PROG([AUTOHEADER], [autoheader])
1204AM_MISSING_PROG([MAKEINFO], [makeinfo])
1205AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1206AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1207AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1208# For better backward compatibility. To be removed once Automake 1.9.x
1209# dies out for good. For more background, see:
1210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1212AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1213# We need awk for the "check" target. The system "awk" is bad on
1214# some platforms.
1215AC_REQUIRE([AC_PROG_AWK])dnl
1216AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1217AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1218_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1219 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1220 [_AM_PROG_TAR([v7])])])
1221_AM_IF_OPTION([no-dependencies],,
1222[AC_PROVIDE_IFELSE([AC_PROG_CC],
1223 [_AM_DEPENDENCIES([CC])],
1224 [m4_define([AC_PROG_CC],
1225 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1226AC_PROVIDE_IFELSE([AC_PROG_CXX],
1227 [_AM_DEPENDENCIES([CXX])],
1228 [m4_define([AC_PROG_CXX],
1229 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1230AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1231 [_AM_DEPENDENCIES([OBJC])],
1232 [m4_define([AC_PROG_OBJC],
1233 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1234AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1235 [_AM_DEPENDENCIES([OBJCXX])],
1236 [m4_define([AC_PROG_OBJCXX],
1237 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1238])
1239AC_REQUIRE([AM_SILENT_RULES])dnl
1240dnl The testsuite driver may need to know about EXEEXT, so add the
1241dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1242dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1243AC_CONFIG_COMMANDS_PRE(dnl
1244[m4_provide_if([_AM_COMPILER_EXEEXT],
1245 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1246])
1247
1248dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1249dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1250dnl mangled by Autoconf and run in a shell conditional statement.
1251m4_define([_AC_COMPILER_EXEEXT],
1252m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1253
1254
1255# When config.status generates a header, we must update the stamp-h file.
1256# This file resides in the same directory as the config header
1257# that is generated. The stamp files are numbered to have different names.
1258
1259# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1260# loop where config.status creates the headers, so we can generate
1261# our stamp files there.
1262AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1263[# Compute $1's index in $config_headers.
1264_am_arg=$1
1265_am_stamp_count=1
1266for _am_header in $config_headers :; do
1267 case $_am_header in
1268 $_am_arg | $_am_arg:* )
1269 break ;;
1270 * )
1271 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1272 esac
1273done
1274echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1275
1276# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1277#
1278# This file is free software; the Free Software Foundation
1279# gives unlimited permission to copy and/or distribute it,
1280# with or without modifications, as long as this notice is preserved.
1281
1282# AM_PROG_INSTALL_SH
1283# ------------------
1284# Define $install_sh.
1285AC_DEFUN([AM_PROG_INSTALL_SH],
1286[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1287if test x"${install_sh}" != xset; then
1288 case $am_aux_dir in
1289 *\ * | *\ *)
1290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1291 *)
1292 install_sh="\${SHELL} $am_aux_dir/install-sh"
1293 esac
1294fi
1295AC_SUBST([install_sh])])
1296
1297# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1298#
1299# This file is free software; the Free Software Foundation
1300# gives unlimited permission to copy and/or distribute it,
1301# with or without modifications, as long as this notice is preserved.
1302
1303# Check whether the underlying file-system supports filenames
1304# with a leading dot. For instance MS-DOS doesn't.
1305AC_DEFUN([AM_SET_LEADING_DOT],
1306[rm -rf .tst 2>/dev/null
1307mkdir .tst 2>/dev/null
1308if test -d .tst; then
1309 am__leading_dot=.
1310else
1311 am__leading_dot=_
1312fi
1313rmdir .tst 2>/dev/null
1314AC_SUBST([am__leading_dot])])
1315
1316# Check to see how 'make' treats includes. -*- Autoconf -*-
1317
1318# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1319#
1320# This file is free software; the Free Software Foundation
1321# gives unlimited permission to copy and/or distribute it,
1322# with or without modifications, as long as this notice is preserved.
1323
1324# AM_MAKE_INCLUDE()
1325# -----------------
1326# Check to see how make treats includes.
1327AC_DEFUN([AM_MAKE_INCLUDE],
1328[am_make=${MAKE-make}
1329cat > confinc << 'END'
1330am__doit:
1331 @echo this is the am__doit target
1332.PHONY: am__doit
1333END
1334# If we don't find an include directive, just comment out the code.
1335AC_MSG_CHECKING([for style of include used by $am_make])
1336am__include="#"
1337am__quote=
1338_am_result=none
1339# First try GNU make style include.
1340echo "include confinc" > confmf
1341# Ignore all kinds of additional output from 'make'.
1342case `$am_make -s -f confmf 2> /dev/null` in #(
1343*the\ am__doit\ target*)
1344 am__include=include
1345 am__quote=
1346 _am_result=GNU
1347 ;;
1348esac
1349# Now try BSD make style include.
1350if test "$am__include" = "#"; then
1351 echo '.include "confinc"' > confmf
1352 case `$am_make -s -f confmf 2> /dev/null` in #(
1353 *the\ am__doit\ target*)
1354 am__include=.include
1355 am__quote="\""
1356 _am_result=BSD
1357 ;;
1358 esac
1359fi
1360AC_SUBST([am__include])
1361AC_SUBST([am__quote])
1362AC_MSG_RESULT([$_am_result])
1363rm -f confinc confmf
1364])
1365
1366# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1367#
1368# This file is free software; the Free Software Foundation
1369# gives unlimited permission to copy and/or distribute it,
1370# with or without modifications, as long as this notice is preserved.
1371
1372# AM_PROG_CC_C_O
1373# --------------
1374# Like AC_PROG_CC_C_O, but changed for automake.
1375AC_DEFUN([AM_PROG_CC_C_O],
1376[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1377AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1378AC_REQUIRE_AUX_FILE([compile])dnl
1379# FIXME: we rely on the cache variable name because
1380# there is no other way.
1381set dummy $CC
1382am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1383eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1384if test "$am_t" != yes; then
1385 # Losing compiler, so override with the script.
1386 # FIXME: It is wrong to rewrite CC.
1387 # But if we don't then we get into trouble of one sort or another.
1388 # A longer-term fix would be to have automake use am__CC in this case,
1389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1390 CC="$am_aux_dir/compile $CC"
1391fi
1392dnl Make sure AC_PROG_CC is never called again, or it will override our
1393dnl setting of CC.
1394m4_define([AC_PROG_CC],
1395 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1396])
1397
1398# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1399
1400# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1401#
1402# This file is free software; the Free Software Foundation
1403# gives unlimited permission to copy and/or distribute it,
1404# with or without modifications, as long as this notice is preserved.
1405
1406# AM_MISSING_PROG(NAME, PROGRAM)
1407# ------------------------------
1408AC_DEFUN([AM_MISSING_PROG],
1409[AC_REQUIRE([AM_MISSING_HAS_RUN])
1410$1=${$1-"${am_missing_run}$2"}
1411AC_SUBST($1)])
1412
1413# AM_MISSING_HAS_RUN
1414# ------------------
1415# Define MISSING if not defined so far and test if it is modern enough.
1416# If it is, set am_missing_run to use it, otherwise, to nothing.
1417AC_DEFUN([AM_MISSING_HAS_RUN],
1418[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1419AC_REQUIRE_AUX_FILE([missing])dnl
1420if test x"${MISSING+set}" != xset; then
1421 case $am_aux_dir in
1422 *\ * | *\ *)
1423 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1424 *)
1425 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1426 esac
1427fi
1428# Use eval to expand $SHELL
1429if eval "$MISSING --is-lightweight"; then
1430 am_missing_run="$MISSING "
1431else
1432 am_missing_run=
1433 AC_MSG_WARN(['missing' script is too old or missing])
1434fi
1435])
1436
1437# Helper functions for option handling. -*- Autoconf -*-
1438
1439# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1440#
1441# This file is free software; the Free Software Foundation
1442# gives unlimited permission to copy and/or distribute it,
1443# with or without modifications, as long as this notice is preserved.
1444
1445# _AM_MANGLE_OPTION(NAME)
1446# -----------------------
1447AC_DEFUN([_AM_MANGLE_OPTION],
1448[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1449
1450# _AM_SET_OPTION(NAME)
1451# --------------------
1452# Set option NAME. Presently that only means defining a flag for this option.
1453AC_DEFUN([_AM_SET_OPTION],
1454[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1455
1456# _AM_SET_OPTIONS(OPTIONS)
1457# ------------------------
1458# OPTIONS is a space-separated list of Automake options.
1459AC_DEFUN([_AM_SET_OPTIONS],
1460[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1461
1462# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1463# -------------------------------------------
1464# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1465AC_DEFUN([_AM_IF_OPTION],
1466[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1467
1468# Check to make sure that the build environment is sane. -*- Autoconf -*-
1469
1470# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1471#
1472# This file is free software; the Free Software Foundation
1473# gives unlimited permission to copy and/or distribute it,
1474# with or without modifications, as long as this notice is preserved.
1475
1476# AM_SANITY_CHECK
1477# ---------------
1478AC_DEFUN([AM_SANITY_CHECK],
1479[AC_MSG_CHECKING([whether build environment is sane])
1480# Reject unsafe characters in $srcdir or the absolute working directory
1481# name. Accept space and tab only in the latter.
1482am_lf='
1483'
1484case `pwd` in
1485 *[[\\\"\#\$\&\'\`$am_lf]]*)
1486 AC_MSG_ERROR([unsafe absolute working directory name]);;
1487esac
1488case $srcdir in
1489 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1490 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1491esac
1492
1493# Do 'set' in a subshell so we don't clobber the current shell's
1494# arguments. Must try -L first in case configure is actually a
1495# symlink; some systems play weird games with the mod time of symlinks
1496# (eg FreeBSD returns the mod time of the symlink's containing
1497# directory).
1498if (
1499 am_has_slept=no
1500 for am_try in 1 2; do
1501 echo "timestamp, slept: $am_has_slept" > conftest.file
1502 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1503 if test "$[*]" = "X"; then
1504 # -L didn't work.
1505 set X `ls -t "$srcdir/configure" conftest.file`
1506 fi
1507 if test "$[*]" != "X $srcdir/configure conftest.file" \
1508 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1509
1510 # If neither matched, then we have a broken ls. This can happen
1511 # if, for instance, CONFIG_SHELL is bash and it inherits a
1512 # broken ls alias from the environment. This has actually
1513 # happened. Such a system could not be considered "sane".
1514 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1515 alias in your environment])
1516 fi
1517 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1518 break
1519 fi
1520 # Just in case.
1521 sleep 1
1522 am_has_slept=yes
1523 done
1524 test "$[2]" = conftest.file
1525 )
1526then
1527 # Ok.
1528 :
1529else
1530 AC_MSG_ERROR([newly created file is older than distributed files!
1531Check your system clock])
1532fi
1533AC_MSG_RESULT([yes])
1534# If we didn't sleep, we still need to ensure time stamps of config.status and
1535# generated files are strictly newer.
1536am_sleep_pid=
1537if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1538 ( sleep 1 ) &
1539 am_sleep_pid=$!
1540fi
1541AC_CONFIG_COMMANDS_PRE(
1542 [AC_MSG_CHECKING([that generated files are newer than configure])
1543 if test -n "$am_sleep_pid"; then
1544 # Hide warnings about reused PIDs.
1545 wait $am_sleep_pid 2>/dev/null
1546 fi
1547 AC_MSG_RESULT([done])])
1548rm -f conftest.file
1549])
1550
1551# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1552#
1553# This file is free software; the Free Software Foundation
1554# gives unlimited permission to copy and/or distribute it,
1555# with or without modifications, as long as this notice is preserved.
1556
1557# AM_SILENT_RULES([DEFAULT])
1558# --------------------------
1559# Enable less verbose build rules; with the default set to DEFAULT
1560# ("yes" being less verbose, "no" or empty being verbose).
1561AC_DEFUN([AM_SILENT_RULES],
1562[AC_ARG_ENABLE([silent-rules], [dnl
1563AS_HELP_STRING(
1564 [--enable-silent-rules],
1565 [less verbose build output (undo: "make V=1")])
1566AS_HELP_STRING(
1567 [--disable-silent-rules],
1568 [verbose build output (undo: "make V=0")])dnl
1569])
1570case $enable_silent_rules in @%:@ (((
1571 yes) AM_DEFAULT_VERBOSITY=0;;
1572 no) AM_DEFAULT_VERBOSITY=1;;
1573 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1574esac
1575dnl
1576dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1577dnl do not support nested variable expansions.
1578dnl See automake bug#9928 and bug#10237.
1579am_make=${MAKE-make}
1580AC_CACHE_CHECK([whether $am_make supports nested variables],
1581 [am_cv_make_support_nested_variables],
1582 [if AS_ECHO([['TRUE=$(BAR$(V))
1583BAR0=false
1584BAR1=true
1585V=1
1586am__doit:
1587 @$(TRUE)
1588.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1589 am_cv_make_support_nested_variables=yes
1590else
1591 am_cv_make_support_nested_variables=no
1592fi])
1593if test $am_cv_make_support_nested_variables = yes; then
1594 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1595 AM_V='$(V)'
1596 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1597else
1598 AM_V=$AM_DEFAULT_VERBOSITY
1599 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1600fi
1601AC_SUBST([AM_V])dnl
1602AM_SUBST_NOTMAKE([AM_V])dnl
1603AC_SUBST([AM_DEFAULT_V])dnl
1604AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1605AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1606AM_BACKSLASH='\'
1607AC_SUBST([AM_BACKSLASH])dnl
1608_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1609])
1610
1611# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1612#
1613# This file is free software; the Free Software Foundation
1614# gives unlimited permission to copy and/or distribute it,
1615# with or without modifications, as long as this notice is preserved.
1616
1617# AM_PROG_INSTALL_STRIP
1618# ---------------------
1619# One issue with vendor 'install' (even GNU) is that you can't
1620# specify the program used to strip binaries. This is especially
1621# annoying in cross-compiling environments, where the build's strip
1622# is unlikely to handle the host's binaries.
1623# Fortunately install-sh will honor a STRIPPROG variable, so we
1624# always use install-sh in "make install-strip", and initialize
1625# STRIPPROG with the value of the STRIP variable (set by the user).
1626AC_DEFUN([AM_PROG_INSTALL_STRIP],
1627[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1628# Installed binaries are usually stripped using 'strip' when the user
1629# run "make install-strip". However 'strip' might not be the right
1630# tool to use in cross-compilation environments, therefore Automake
1631# will honor the 'STRIP' environment variable to overrule this program.
1632dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1633if test "$cross_compiling" != no; then
1634 AC_CHECK_TOOL([STRIP], [strip], :)
1635fi
1636INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1637AC_SUBST([INSTALL_STRIP_PROGRAM])])
1638
1639# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1640#
1641# This file is free software; the Free Software Foundation
1642# gives unlimited permission to copy and/or distribute it,
1643# with or without modifications, as long as this notice is preserved.
1644
1645# _AM_SUBST_NOTMAKE(VARIABLE)
1646# ---------------------------
1647# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1648# This macro is traced by Automake.
1649AC_DEFUN([_AM_SUBST_NOTMAKE])
1650
1651# AM_SUBST_NOTMAKE(VARIABLE)
1652# --------------------------
1653# Public sister of _AM_SUBST_NOTMAKE.
1654AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1655
1656# Check how to create a tarball. -*- Autoconf -*-
1657
1658# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1659#
1660# This file is free software; the Free Software Foundation
1661# gives unlimited permission to copy and/or distribute it,
1662# with or without modifications, as long as this notice is preserved.
1663
1664# _AM_PROG_TAR(FORMAT)
1665# --------------------
1666# Check how to create a tarball in format FORMAT.
1667# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1668#
1669# Substitute a variable $(am__tar) that is a command
1670# writing to stdout a FORMAT-tarball containing the directory
1671# $tardir.
1672# tardir=directory && $(am__tar) > result.tar
1673#
1674# Substitute a variable $(am__untar) that extract such
1675# a tarball read from stdin.
1676# $(am__untar) < result.tar
1677#
1678AC_DEFUN([_AM_PROG_TAR],
1679[# Always define AMTAR for backward compatibility. Yes, it's still used
1680# in the wild :-( We should find a proper way to deprecate it ...
1681AC_SUBST([AMTAR], ['$${TAR-tar}'])
1682
1683# We'll loop over all known methods to create a tar archive until one works.
1684_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1685
1686m4_if([$1], [v7],
1687 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1688
1689 [m4_case([$1],
1690 [ustar],
1691 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1692 # There is notably a 21 bits limit for the UID and the GID. In fact,
1693 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1694 # and bug#13588).
1695 am_max_uid=2097151 # 2^21 - 1
1696 am_max_gid=$am_max_uid
1697 # The $UID and $GID variables are not portable, so we need to resort
1698 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1699 # below are definitely unexpected, so allow the users to see them
1700 # (that is, avoid stderr redirection).
1701 am_uid=`id -u || echo unknown`
1702 am_gid=`id -g || echo unknown`
1703 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1704 if test $am_uid -le $am_max_uid; then
1705 AC_MSG_RESULT([yes])
1706 else
1707 AC_MSG_RESULT([no])
1708 _am_tools=none
1709 fi
1710 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1711 if test $am_gid -le $am_max_gid; then
1712 AC_MSG_RESULT([yes])
1713 else
1714 AC_MSG_RESULT([no])
1715 _am_tools=none
1716 fi],
1717
1718 [pax],
1719 [],
1720
1721 [m4_fatal([Unknown tar format])])
1722
1723 AC_MSG_CHECKING([how to create a $1 tar archive])
1724
1725 # Go ahead even if we have the value already cached. We do so because we
1726 # need to set the values for the 'am__tar' and 'am__untar' variables.
1727 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1728
1729 for _am_tool in $_am_tools; do
1730 case $_am_tool in
1731 gnutar)
1732 for _am_tar in tar gnutar gtar; do
1733 AM_RUN_LOG([$_am_tar --version]) && break
1734 done
1735 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1736 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1737 am__untar="$_am_tar -xf -"
1738 ;;
1739 plaintar)
1740 # Must skip GNU tar: if it does not support --format= it doesn't create
1741 # ustar tarball either.
1742 (tar --version) >/dev/null 2>&1 && continue
1743 am__tar='tar chf - "$$tardir"'
1744 am__tar_='tar chf - "$tardir"'
1745 am__untar='tar xf -'
1746 ;;
1747 pax)
1748 am__tar='pax -L -x $1 -w "$$tardir"'
1749 am__tar_='pax -L -x $1 -w "$tardir"'
1750 am__untar='pax -r'
1751 ;;
1752 cpio)
1753 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1754 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1755 am__untar='cpio -i -H $1 -d'
1756 ;;
1757 none)
1758 am__tar=false
1759 am__tar_=false
1760 am__untar=false
1761 ;;
1762 esac
1763
1764 # If the value was cached, stop now. We just wanted to have am__tar
1765 # and am__untar set.
1766 test -n "${am_cv_prog_tar_$1}" && break
1767
1768 # tar/untar a dummy directory, and stop if the command works.
1769 rm -rf conftest.dir
1770 mkdir conftest.dir
1771 echo GrepMe > conftest.dir/file
1772 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1773 rm -rf conftest.dir
1774 if test -s conftest.tar; then
1775 AM_RUN_LOG([$am__untar <conftest.tar])
1776 AM_RUN_LOG([cat conftest.dir/file])
1777 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1778 fi
1779 done
1780 rm -rf conftest.dir
1781
1782 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1783 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1784
1785AC_SUBST([am__tar])
1786AC_SUBST([am__untar])
1787]) # _AM_PROG_TAR
1788