1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
24 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
25 # serial 42 IT_PROG_INTLTOOL
26 AC_DEFUN([IT_PROG_INTLTOOL], [
28 AC_REQUIRE([AM_NLS])dnl
30 case "$am__api_version" in
32 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
38 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
39 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
40 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
42 AC_MSG_CHECKING([for intltool >= $1])
43 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
44 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
45 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
48 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
49 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
50 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
51 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
52 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
55 if test -z "$AM_DEFAULT_VERBOSITY"; then
56 AM_DEFAULT_VERBOSITY=1
58 AC_SUBST([AM_DEFAULT_VERBOSITY])
60 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
61 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
62 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
63 AC_SUBST(INTLTOOL_V_MERGE)
64 AC_SUBST(INTLTOOL__v_MERGE_)
65 AC_SUBST(INTLTOOL__v_MERGE_0)
67 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
68 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
69 intltool__v_merge_options_0='-q'
70 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
71 AC_SUBST(intltool__v_merge_options_)
72 AC_SUBST(intltool__v_merge_options_0)
74 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
75 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
76 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
77 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
78 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
79 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
80 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
81 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
82 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
83 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
84 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
85 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
86 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
88 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
90 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
91 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
92 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
93 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
94 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
95 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
96 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
98 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
99 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
100 _IT_SUBST(INTLTOOL_KEYS_RULE)
101 _IT_SUBST(INTLTOOL_PROP_RULE)
102 _IT_SUBST(INTLTOOL_OAF_RULE)
103 _IT_SUBST(INTLTOOL_PONG_RULE)
104 _IT_SUBST(INTLTOOL_SERVER_RULE)
105 _IT_SUBST(INTLTOOL_SHEET_RULE)
106 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
107 _IT_SUBST(INTLTOOL_UI_RULE)
108 _IT_SUBST(INTLTOOL_XAM_RULE)
109 _IT_SUBST(INTLTOOL_KBD_RULE)
110 _IT_SUBST(INTLTOOL_XML_RULE)
111 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
112 _IT_SUBST(INTLTOOL_CAVES_RULE)
113 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
114 _IT_SUBST(INTLTOOL_THEME_RULE)
115 _IT_SUBST(INTLTOOL_SERVICE_RULE)
116 _IT_SUBST(INTLTOOL_POLICY_RULE)
118 # Check the gettext tools to make sure they are GNU
119 AC_PATH_PROG(XGETTEXT, xgettext)
120 AC_PATH_PROG(MSGMERGE, msgmerge)
121 AC_PATH_PROG(MSGFMT, msgfmt)
122 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
123 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
124 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
126 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
127 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
128 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
129 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
130 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
133 AC_PATH_PROG(INTLTOOL_PERL, perl)
134 if test -z "$INTLTOOL_PERL"; then
135 AC_MSG_ERROR([perl not found])
137 AC_MSG_CHECKING([for perl >= 5.8.1])
138 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
139 if test $? -ne 0; then
140 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
142 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
143 AC_MSG_RESULT([$IT_PERL_VERSION])
145 if test "x$2" != "xno-xml"; then
146 AC_MSG_CHECKING([for XML::Parser])
147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
150 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
154 # Substitute ALL_LINGUAS so we can use it in po/Makefile
155 AC_SUBST(ALL_LINGUAS)
157 # Set DATADIRNAME correctly if it is not set yet
158 # (copied from glib-gettext.m4)
159 if test -z "$DATADIRNAME"; then
161 [AC_LANG_PROGRAM([[]],
162 [[extern int _nl_msg_cat_cntr;
163 return _nl_msg_cat_cntr]])],
167 dnl On Solaris, if bind_textdomain_codeset is in libc,
168 dnl GNU format message catalog is always supported,
169 dnl since both are added to the libc all together.
170 dnl Hence, we'd like to go with DATADIRNAME=share
172 AC_CHECK_FUNC(bind_textdomain_codeset,
173 [DATADIRNAME=share], [DATADIRNAME=lib])
180 AC_SUBST(DATADIRNAME)
187 # IT_PO_SUBDIR(DIRNAME)
188 # ---------------------
189 # All po subdirs have to be declared with this macro; the subdir "po" is
190 # declared by IT_PROG_INTLTOOL.
192 AC_DEFUN([IT_PO_SUBDIR],
193 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
195 dnl The following CONFIG_COMMANDS should be executed at the very end
196 dnl of config.status.
197 AC_CONFIG_COMMANDS_PRE([
198 AC_CONFIG_COMMANDS([$1/stamp-it], [
199 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
200 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
202 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
207 '"s|^| $ac_top_srcdir/|" \
208 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
210 [sed '/^POTFILES =/,/[^\\]$/ {
214 ' "$1/Makefile.in" >"$1/Makefile"]
215 rm -f "$1/Makefile.tmp"
216 mv "$1/stamp-it.tmp" "$1/stamp-it"
221 # _IT_SUBST(VARIABLE)
222 # -------------------
223 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
225 AC_DEFUN([_IT_SUBST],
228 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
233 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
234 # A hint is needed for aclocal from Automake <= 1.9.4:
235 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
238 # nls.m4 serial 5 (gettext-0.18)
239 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
241 dnl This file is free software; the Free Software Foundation
242 dnl gives unlimited permission to copy and/or distribute it,
243 dnl with or without modifications, as long as this notice is preserved.
245 dnl This file can can be used in projects which are not available under
246 dnl the GNU General Public License or the GNU Library General Public
247 dnl License but which still want to provide support for the GNU gettext
249 dnl Please note that the actual code of the GNU gettext library is covered
250 dnl by the GNU Library General Public License, and the rest of the GNU
251 dnl gettext package package is covered by the GNU General Public License.
252 dnl They are *not* in the public domain.
255 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
256 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
262 AC_MSG_CHECKING([whether NLS is requested])
263 dnl Default is enabled NLS
265 [ --disable-nls do not use Native Language Support],
266 USE_NLS=$enableval, USE_NLS=yes)
267 AC_MSG_RESULT([$USE_NLS])
271 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
274 # This file is free software; the Free Software Foundation
275 # gives unlimited permission to copy and/or distribute it,
276 # with or without modifications, as long as this notice is preserved.
280 # AM_AUTOMAKE_VERSION(VERSION)
281 # ----------------------------
282 # Automake X.Y traces this macro to ensure aclocal.m4 has been
283 # generated from the m4 files accompanying Automake X.Y.
284 # (This private macro should not be called outside this file.)
285 AC_DEFUN([AM_AUTOMAKE_VERSION],
286 [am__api_version='1.11'
287 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
288 dnl require some minimum version. Point them to the right macro.
289 m4_if([$1], [1.11.6], [],
290 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
293 # _AM_AUTOCONF_VERSION(VERSION)
294 # -----------------------------
295 # aclocal traces this macro to find the Autoconf version.
296 # This is a private macro too. Using m4_define simplifies
297 # the logic in aclocal, which can simply ignore this definition.
298 m4_define([_AM_AUTOCONF_VERSION], [])
300 # AM_SET_CURRENT_AUTOMAKE_VERSION
301 # -------------------------------
302 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
303 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
304 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
305 [AM_AUTOMAKE_VERSION([1.11.6])dnl
306 m4_ifndef([AC_AUTOCONF_VERSION],
307 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
308 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
310 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
312 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
314 # This file is free software; the Free Software Foundation
315 # gives unlimited permission to copy and/or distribute it,
316 # with or without modifications, as long as this notice is preserved.
320 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
321 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
322 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
324 # Of course, Automake must honor this variable whenever it calls a
325 # tool from the auxiliary directory. The problem is that $srcdir (and
326 # therefore $ac_aux_dir as well) can be either absolute or relative,
327 # depending on how configure is run. This is pretty annoying, since
328 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
329 # source directory, any form will work fine, but in subdirectories a
330 # relative path needs to be adjusted first.
332 # $ac_aux_dir/missing
333 # fails when called from a subdirectory if $ac_aux_dir is relative
334 # $top_srcdir/$ac_aux_dir/missing
335 # fails if $ac_aux_dir is absolute,
336 # fails when called from a subdirectory in a VPATH build with
337 # a relative $ac_aux_dir
339 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
340 # are both prefixed by $srcdir. In an in-source build this is usually
341 # harmless because $srcdir is `.', but things will broke when you
342 # start a VPATH build or use an absolute $srcdir.
344 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
345 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
346 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
347 # and then we would define $MISSING as
348 # MISSING="\${SHELL} $am_aux_dir/missing"
349 # This will work as long as MISSING is not called from configure, because
350 # unfortunately $(top_srcdir) has no meaning in configure.
351 # However there are other variables, like CC, which are often used in
352 # configure, and could therefore not use this "fixed" $ac_aux_dir.
354 # Another solution, used here, is to always expand $ac_aux_dir to an
355 # absolute PATH. The drawback is that using absolute paths prevent a
356 # configured tree to be moved without reconfiguration.
358 AC_DEFUN([AM_AUX_DIR_EXPAND],
359 [dnl Rely on autoconf to set up CDPATH properly.
361 # expand $ac_aux_dir to an absolute path
362 am_aux_dir=`cd $ac_aux_dir && pwd`
365 # AM_CONDITIONAL -*- Autoconf -*-
367 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
368 # Free Software Foundation, Inc.
370 # This file is free software; the Free Software Foundation
371 # gives unlimited permission to copy and/or distribute it,
372 # with or without modifications, as long as this notice is preserved.
376 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
377 # -------------------------------------
378 # Define a conditional.
379 AC_DEFUN([AM_CONDITIONAL],
381 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
382 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
383 AC_SUBST([$1_TRUE])dnl
384 AC_SUBST([$1_FALSE])dnl
385 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
386 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
387 m4_define([_AM_COND_VALUE_$1], [$2])dnl
395 AC_CONFIG_COMMANDS_PRE(
396 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
397 AC_MSG_ERROR([[conditional "$1" was never defined.
398 Usually this means the macro was only invoked conditionally.]])
401 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
402 # 2010, 2011 Free Software Foundation, Inc.
404 # This file is free software; the Free Software Foundation
405 # gives unlimited permission to copy and/or distribute it,
406 # with or without modifications, as long as this notice is preserved.
410 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
411 # written in clear, in which case automake, when reading aclocal.m4,
412 # will think it sees a *use*, and therefore will trigger all it's
413 # C support machinery. Also note that it means that autoscan, seeing
414 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
417 # _AM_DEPENDENCIES(NAME)
418 # ----------------------
419 # See how the compiler implements dependency checking.
420 # NAME is "CC", "CXX", "GCJ", or "OBJC".
421 # We try a few techniques and use that to set a single cache variable.
423 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
424 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
425 # dependency, and given that the user is not expected to run this macro,
426 # just rely on AC_PROG_CC.
427 AC_DEFUN([_AM_DEPENDENCIES],
428 [AC_REQUIRE([AM_SET_DEPDIR])dnl
429 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
430 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
431 AC_REQUIRE([AM_DEP_TRACK])dnl
433 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
434 [$1], CXX, [depcc="$CXX" am_compiler_list=],
435 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
436 [$1], UPC, [depcc="$UPC" am_compiler_list=],
437 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
438 [depcc="$$1" am_compiler_list=])
440 AC_CACHE_CHECK([dependency style of $depcc],
441 [am_cv_$1_dependencies_compiler_type],
442 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
443 # We make a subdir and do the tests there. Otherwise we can end up
444 # making bogus files that we don't know about and never remove. For
445 # instance it was reported that on HP-UX the gcc test will end up
446 # making a dummy file named `D' -- because `-MD' means `put the output
450 # Copy depcomp to subdir because otherwise we won't find it if we're
451 # using a relative directory.
452 cp "$am_depcomp" conftest.dir
454 # We will build objects and dependencies in a subdirectory because
455 # it helps to detect inapplicable dependency modes. For instance
456 # both Tru64's cc and ICC support -MD to output dependencies as a
457 # side effect of compilation, but ICC will put the dependencies in
458 # the current directory while Tru64 will put them in the object
462 am_cv_$1_dependencies_compiler_type=none
463 if test "$am_compiler_list" = ""; then
464 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
468 [case " $depcc " in #(
469 *\ -arch\ *\ -arch\ *) am__universal=true ;;
472 [case " $depcc " in #(
473 *\ -arch\ *\ -arch\ *) am__universal=true ;;
476 for depmode in $am_compiler_list; do
477 # Setup a source with many dependencies, because some compilers
478 # like to wrap large dependency lists on column 80 (with \), and
479 # we should not choose a depcomp mode which is confused by this.
481 # We need to recreate these files for each test, as the compiler may
482 # overwrite some of them when testing with obscure command lines.
483 # This happens at least with the AIX C compiler.
485 for i in 1 2 3 4 5 6; do
486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
488 # Solaris 8's {/usr,}/bin/sh.
489 touch sub/conftst$i.h
491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
493 # We check with `-c' and `-o' for the sake of the "dashmstdout"
494 # mode. It turns out that the SunPro C++ compiler does not properly
495 # handle `-M -o', and we need to detect this. Also, some Intel
496 # versions had trouble with output in subdirs
497 am__obj=sub/conftest.${OBJEXT-o}
498 am__minus_obj="-o $am__obj"
501 # This depmode causes a compiler race in universal mode.
502 test "$am__universal" = false || continue
505 # after this tag, mechanisms are not by side-effect, so they'll
506 # only be used when explicitly requested
507 if test "x$enable_dependency_tracking" = xyes; then
513 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
514 # This compiler won't grok `-c -o', but also, the minuso test has
515 # not run yet. These depmodes are late enough in the game, and
516 # so weak that their functioning should not be impacted.
517 am__obj=conftest.${OBJEXT-o}
522 if depmode=$depmode \
523 source=sub/conftest.c object=$am__obj \
524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
525 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
526 >/dev/null 2>conftest.err &&
527 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
529 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
531 # icc doesn't choke on unknown options, it will just issue warnings
532 # or remarks (even with -Werror). So we grep stderr for any message
533 # that says an option was ignored or not supported.
534 # When given -MP, icc 7.0 and 7.1 complain thusly:
535 # icc: Command line warning: ignoring option '-M'; no argument required
536 # The diagnosis changed in icc 8.0:
537 # icc: Command line remark: option '-MP' not supported
538 if (grep 'ignoring option' conftest.err ||
539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
540 am_cv_$1_dependencies_compiler_type=$depmode
549 am_cv_$1_dependencies_compiler_type=none
552 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
553 AM_CONDITIONAL([am__fastdep$1], [
554 test "x$enable_dependency_tracking" != xno \
555 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
561 # Choose a directory name for dependency files.
562 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
563 AC_DEFUN([AM_SET_DEPDIR],
564 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
565 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
571 AC_DEFUN([AM_DEP_TRACK],
572 [AC_ARG_ENABLE(dependency-tracking,
573 [ --disable-dependency-tracking speeds up one-time build
574 --enable-dependency-tracking do not reject slow dependency extractors])
575 if test "x$enable_dependency_tracking" != xno; then
576 am_depcomp="$ac_aux_dir/depcomp"
580 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
581 AC_SUBST([AMDEPBACKSLASH])dnl
582 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
583 AC_SUBST([am__nodep])dnl
584 _AM_SUBST_NOTMAKE([am__nodep])dnl
587 # Generate code to set up dependency tracking. -*- Autoconf -*-
589 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
590 # Free Software Foundation, Inc.
592 # This file is free software; the Free Software Foundation
593 # gives unlimited permission to copy and/or distribute it,
594 # with or without modifications, as long as this notice is preserved.
598 # _AM_OUTPUT_DEPENDENCY_COMMANDS
599 # ------------------------------
600 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
602 # Autoconf 2.62 quotes --file arguments for eval, but not when files
603 # are listed without --file. Let's play safe and only enable the eval
604 # if we detect the quoting.
605 case $CONFIG_FILES in
606 *\'*) eval set x "$CONFIG_FILES" ;;
607 *) set x $CONFIG_FILES ;;
612 # Strip MF so we end up with the name of the file.
613 mf=`echo "$mf" | sed -e 's/:.*$//'`
614 # Check whether this is an Automake generated Makefile or not.
615 # We used to match only the files named `Makefile.in', but
616 # some people rename them; so instead we look at the file content.
617 # Grep'ing the first line is not enough: some people post-process
618 # each Makefile.in and add a new line on top of each file to say so.
619 # Grep'ing the whole file is not good either: AIX grep has a line
620 # limit of 2048, but all sed's we know have understand at least 4000.
621 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
622 dirpart=`AS_DIRNAME("$mf")`
626 # Extract the definition of DEPDIR, am__include, and am__quote
627 # from the Makefile without running `make'.
628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
629 test -z "$DEPDIR" && continue
630 am__include=`sed -n 's/^am__include = //p' < "$mf"`
631 test -z "am__include" && continue
632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
633 # When using ansi2knr, U may be empty or an underscore; expand it
634 U=`sed -n 's/^U = //p' < "$mf"`
635 # Find all dependency output files, they are included files with
636 # $(DEPDIR) in their names. We invoke sed twice because it is the
637 # simplest approach to changing $(DEPDIR) to its actual value in the
639 for file in `sed -n "
640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
642 # Make sure the directory exists.
643 test -f "$dirpart/$file" && continue
644 fdir=`AS_DIRNAME(["$file"])`
645 AS_MKDIR_P([$dirpart/$fdir])
646 # echo "creating $dirpart/$file"
647 echo '# dummy' > "$dirpart/$file"
651 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
654 # AM_OUTPUT_DEPENDENCY_COMMANDS
655 # -----------------------------
656 # This macro should only be invoked once -- use via AC_REQUIRE.
658 # This code is only required when automatic dependency tracking
659 # is enabled. FIXME. This creates each `.P' file that we will
660 # need in order to bootstrap the dependency handling code.
661 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
662 [AC_CONFIG_COMMANDS([depfiles],
663 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
664 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
667 # Do all the work for Automake. -*- Autoconf -*-
669 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
670 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
672 # This file is free software; the Free Software Foundation
673 # gives unlimited permission to copy and/or distribute it,
674 # with or without modifications, as long as this notice is preserved.
678 # This macro actually does too much. Some checks are only needed if
679 # your package does certain things. But this isn't really a big deal.
681 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
682 # AM_INIT_AUTOMAKE([OPTIONS])
683 # -----------------------------------------------
684 # The call with PACKAGE and VERSION arguments is the old style
685 # call (pre autoconf-2.50), which is being phased out. PACKAGE
686 # and VERSION should now be passed to AC_INIT and removed from
687 # the call to AM_INIT_AUTOMAKE.
688 # We support both call styles for the transition. After
689 # the next Automake release, Autoconf can make the AC_INIT
690 # arguments mandatory, and then we can depend on a new Autoconf
691 # release and drop the old call support.
692 AC_DEFUN([AM_INIT_AUTOMAKE],
693 [AC_PREREQ([2.62])dnl
694 dnl Autoconf wants to disallow AM_ names. We explicitly allow
695 dnl the ones we care about.
696 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
697 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
698 AC_REQUIRE([AC_PROG_INSTALL])dnl
699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
701 # is not polluted with repeated "-I."
702 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
703 # test to see if srcdir already configured
704 if test -f $srcdir/config.status; then
705 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
709 # test whether we have cygpath
710 if test -z "$CYGPATH_W"; then
711 if (cygpath --version) >/dev/null 2>/dev/null; then
712 CYGPATH_W='cygpath -w'
717 AC_SUBST([CYGPATH_W])
719 # Define the identity of the package.
720 dnl Distinguish between old-style and new-style calls.
722 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
723 AC_SUBST([PACKAGE], [$1])dnl
724 AC_SUBST([VERSION], [$2])],
725 [_AM_SET_OPTIONS([$1])dnl
726 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
727 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
728 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
729 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
730 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
732 _AM_IF_OPTION([no-define],,
733 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
734 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
736 # Some tools Automake needs.
737 AC_REQUIRE([AM_SANITY_CHECK])dnl
738 AC_REQUIRE([AC_ARG_PROGRAM])dnl
739 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
740 AM_MISSING_PROG(AUTOCONF, autoconf)
741 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
742 AM_MISSING_PROG(AUTOHEADER, autoheader)
743 AM_MISSING_PROG(MAKEINFO, makeinfo)
744 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
745 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
746 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
747 # We need awk for the "check" target. The system "awk" is bad on
749 AC_REQUIRE([AC_PROG_AWK])dnl
750 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
751 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
752 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
753 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
754 [_AM_PROG_TAR([v7])])])
755 _AM_IF_OPTION([no-dependencies],,
756 [AC_PROVIDE_IFELSE([AC_PROG_CC],
757 [_AM_DEPENDENCIES(CC)],
758 [define([AC_PROG_CC],
759 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
760 AC_PROVIDE_IFELSE([AC_PROG_CXX],
761 [_AM_DEPENDENCIES(CXX)],
762 [define([AC_PROG_CXX],
763 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
764 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
765 [_AM_DEPENDENCIES(OBJC)],
766 [define([AC_PROG_OBJC],
767 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
769 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
770 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
771 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
772 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
773 AC_CONFIG_COMMANDS_PRE(dnl
774 [m4_provide_if([_AM_COMPILER_EXEEXT],
775 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
778 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
779 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
780 dnl mangled by Autoconf and run in a shell conditional statement.
781 m4_define([_AC_COMPILER_EXEEXT],
782 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
785 # When config.status generates a header, we must update the stamp-h file.
786 # This file resides in the same directory as the config header
787 # that is generated. The stamp files are numbered to have different names.
789 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
790 # loop where config.status creates the headers, so we can generate
791 # our stamp files there.
792 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
793 [# Compute $1's index in $config_headers.
796 for _am_header in $config_headers :; do
798 $_am_arg | $_am_arg:* )
801 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
804 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
806 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
809 # This file is free software; the Free Software Foundation
810 # gives unlimited permission to copy and/or distribute it,
811 # with or without modifications, as long as this notice is preserved.
817 # Define $install_sh.
818 AC_DEFUN([AM_PROG_INSTALL_SH],
819 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
820 if test x"${install_sh}" != xset; then
823 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
825 install_sh="\${SHELL} $am_aux_dir/install-sh"
828 AC_SUBST(install_sh)])
830 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
832 # This file is free software; the Free Software Foundation
833 # gives unlimited permission to copy and/or distribute it,
834 # with or without modifications, as long as this notice is preserved.
838 # Check whether the underlying file-system supports filenames
839 # with a leading dot. For instance MS-DOS doesn't.
840 AC_DEFUN([AM_SET_LEADING_DOT],
841 [rm -rf .tst 2>/dev/null
842 mkdir .tst 2>/dev/null
843 if test -d .tst; then
848 rmdir .tst 2>/dev/null
849 AC_SUBST([am__leading_dot])])
851 # Check to see how 'make' treats includes. -*- Autoconf -*-
853 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
855 # This file is free software; the Free Software Foundation
856 # gives unlimited permission to copy and/or distribute it,
857 # with or without modifications, as long as this notice is preserved.
863 # Check to see how make treats includes.
864 AC_DEFUN([AM_MAKE_INCLUDE],
865 [am_make=${MAKE-make}
866 cat > confinc << 'END'
868 @echo this is the am__doit target
871 # If we don't find an include directive, just comment out the code.
872 AC_MSG_CHECKING([for style of include used by $am_make])
876 # First try GNU make style include.
877 echo "include confinc" > confmf
878 # Ignore all kinds of additional output from `make'.
879 case `$am_make -s -f confmf 2> /dev/null` in #(
880 *the\ am__doit\ target*)
886 # Now try BSD make style include.
887 if test "$am__include" = "#"; then
888 echo '.include "confinc"' > confmf
889 case `$am_make -s -f confmf 2> /dev/null` in #(
890 *the\ am__doit\ target*)
897 AC_SUBST([am__include])
898 AC_SUBST([am__quote])
899 AC_MSG_RESULT([$_am_result])
903 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
905 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
906 # Free Software Foundation, Inc.
908 # This file is free software; the Free Software Foundation
909 # gives unlimited permission to copy and/or distribute it,
910 # with or without modifications, as long as this notice is preserved.
914 # AM_MISSING_PROG(NAME, PROGRAM)
915 # ------------------------------
916 AC_DEFUN([AM_MISSING_PROG],
917 [AC_REQUIRE([AM_MISSING_HAS_RUN])
918 $1=${$1-"${am_missing_run}$2"}
924 # Define MISSING if not defined so far and test if it supports --run.
925 # If it does, set am_missing_run to use it, otherwise, to nothing.
926 AC_DEFUN([AM_MISSING_HAS_RUN],
927 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
928 AC_REQUIRE_AUX_FILE([missing])dnl
929 if test x"${MISSING+set}" != xset; then
932 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
934 MISSING="\${SHELL} $am_aux_dir/missing" ;;
937 # Use eval to expand $SHELL
938 if eval "$MISSING --run true"; then
939 am_missing_run="$MISSING --run "
942 AC_MSG_WARN([`missing' script is too old or missing])
946 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
949 # This file is free software; the Free Software Foundation
950 # gives unlimited permission to copy and/or distribute it,
951 # with or without modifications, as long as this notice is preserved.
957 # Check for `mkdir -p'.
958 AC_DEFUN([AM_PROG_MKDIR_P],
959 [AC_PREREQ([2.60])dnl
960 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
961 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
962 dnl while keeping a definition of mkdir_p for backward compatibility.
963 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
964 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
965 dnl Makefile.ins that do not define MKDIR_P, so we do our own
966 dnl adjustment using top_builddir (which is defined more often than
968 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
970 [[\\/$]]* | ?:[[\\/]]*) ;;
971 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
975 # Helper functions for option handling. -*- Autoconf -*-
977 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
980 # This file is free software; the Free Software Foundation
981 # gives unlimited permission to copy and/or distribute it,
982 # with or without modifications, as long as this notice is preserved.
986 # _AM_MANGLE_OPTION(NAME)
987 # -----------------------
988 AC_DEFUN([_AM_MANGLE_OPTION],
989 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
991 # _AM_SET_OPTION(NAME)
992 # --------------------
993 # Set option NAME. Presently that only means defining a flag for this option.
994 AC_DEFUN([_AM_SET_OPTION],
995 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
997 # _AM_SET_OPTIONS(OPTIONS)
998 # ------------------------
999 # OPTIONS is a space-separated list of Automake options.
1000 AC_DEFUN([_AM_SET_OPTIONS],
1001 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1003 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1004 # -------------------------------------------
1005 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1006 AC_DEFUN([_AM_IF_OPTION],
1007 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1009 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1011 # This file is free software; the Free Software Foundation
1012 # gives unlimited permission to copy and/or distribute it,
1013 # with or without modifications, as long as this notice is preserved.
1017 # AM_RUN_LOG(COMMAND)
1018 # -------------------
1019 # Run COMMAND, save the exit status in ac_status, and log it.
1020 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1021 AC_DEFUN([AM_RUN_LOG],
1022 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1023 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1025 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1026 (exit $ac_status); }])
1028 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1030 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1031 # Free Software Foundation, Inc.
1033 # This file is free software; the Free Software Foundation
1034 # gives unlimited permission to copy and/or distribute it,
1035 # with or without modifications, as long as this notice is preserved.
1041 AC_DEFUN([AM_SANITY_CHECK],
1042 [AC_MSG_CHECKING([whether build environment is sane])
1045 echo timestamp > conftest.file
1046 # Reject unsafe characters in $srcdir or the absolute working directory
1047 # name. Accept space and tab only in the latter.
1051 *[[\\\"\#\$\&\'\`$am_lf]]*)
1052 AC_MSG_ERROR([unsafe absolute working directory name]);;
1055 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1056 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1059 # Do `set' in a subshell so we don't clobber the current shell's
1060 # arguments. Must try -L first in case configure is actually a
1061 # symlink; some systems play weird games with the mod time of symlinks
1062 # (eg FreeBSD returns the mod time of the symlink's containing
1065 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1066 if test "$[*]" = "X"; then
1068 set X `ls -t "$srcdir/configure" conftest.file`
1071 if test "$[*]" != "X $srcdir/configure conftest.file" \
1072 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1074 # If neither matched, then we have a broken ls. This can happen
1075 # if, for instance, CONFIG_SHELL is bash and it inherits a
1076 # broken ls alias from the environment. This has actually
1077 # happened. Such a system could not be considered "sane".
1078 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1079 alias in your environment])
1082 test "$[2]" = conftest.file
1088 AC_MSG_ERROR([newly created file is older than distributed files!
1089 Check your system clock])
1091 AC_MSG_RESULT(yes)])
1093 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1095 # This file is free software; the Free Software Foundation
1096 # gives unlimited permission to copy and/or distribute it,
1097 # with or without modifications, as long as this notice is preserved.
1101 # AM_SILENT_RULES([DEFAULT])
1102 # --------------------------
1103 # Enable less verbose build rules; with the default set to DEFAULT
1104 # (`yes' being less verbose, `no' or empty being verbose).
1105 AC_DEFUN([AM_SILENT_RULES],
1106 [AC_ARG_ENABLE([silent-rules],
1107 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1108 --disable-silent-rules verbose build output (undo: `make V=0')])
1109 case $enable_silent_rules in
1110 yes) AM_DEFAULT_VERBOSITY=0;;
1111 no) AM_DEFAULT_VERBOSITY=1;;
1112 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1115 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1116 dnl do not support nested variable expansions.
1117 dnl See automake bug#9928 and bug#10237.
1118 am_make=${MAKE-make}
1119 AC_CACHE_CHECK([whether $am_make supports nested variables],
1120 [am_cv_make_support_nested_variables],
1121 [if AS_ECHO([['TRUE=$(BAR$(V))
1127 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1128 am_cv_make_support_nested_variables=yes
1130 am_cv_make_support_nested_variables=no
1132 if test $am_cv_make_support_nested_variables = yes; then
1133 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1137 AM_V=$AM_DEFAULT_VERBOSITY
1138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1141 AM_SUBST_NOTMAKE([AM_V])dnl
1142 AC_SUBST([AM_DEFAULT_V])dnl
1143 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1144 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1146 AC_SUBST([AM_BACKSLASH])dnl
1147 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1150 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1152 # This file is free software; the Free Software Foundation
1153 # gives unlimited permission to copy and/or distribute it,
1154 # with or without modifications, as long as this notice is preserved.
1158 # AM_PROG_INSTALL_STRIP
1159 # ---------------------
1160 # One issue with vendor `install' (even GNU) is that you can't
1161 # specify the program used to strip binaries. This is especially
1162 # annoying in cross-compiling environments, where the build's strip
1163 # is unlikely to handle the host's binaries.
1164 # Fortunately install-sh will honor a STRIPPROG variable, so we
1165 # always use install-sh in `make install-strip', and initialize
1166 # STRIPPROG with the value of the STRIP variable (set by the user).
1167 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1168 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1169 # Installed binaries are usually stripped using `strip' when the user
1170 # run `make install-strip'. However `strip' might not be the right
1171 # tool to use in cross-compilation environments, therefore Automake
1172 # will honor the `STRIP' environment variable to overrule this program.
1173 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1174 if test "$cross_compiling" != no; then
1175 AC_CHECK_TOOL([STRIP], [strip], :)
1177 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1178 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1180 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1182 # This file is free software; the Free Software Foundation
1183 # gives unlimited permission to copy and/or distribute it,
1184 # with or without modifications, as long as this notice is preserved.
1188 # _AM_SUBST_NOTMAKE(VARIABLE)
1189 # ---------------------------
1190 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1191 # This macro is traced by Automake.
1192 AC_DEFUN([_AM_SUBST_NOTMAKE])
1194 # AM_SUBST_NOTMAKE(VARIABLE)
1195 # --------------------------
1196 # Public sister of _AM_SUBST_NOTMAKE.
1197 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1199 # Check how to create a tarball. -*- Autoconf -*-
1201 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1203 # This file is free software; the Free Software Foundation
1204 # gives unlimited permission to copy and/or distribute it,
1205 # with or without modifications, as long as this notice is preserved.
1209 # _AM_PROG_TAR(FORMAT)
1210 # --------------------
1211 # Check how to create a tarball in format FORMAT.
1212 # FORMAT should be one of `v7', `ustar', or `pax'.
1214 # Substitute a variable $(am__tar) that is a command
1215 # writing to stdout a FORMAT-tarball containing the directory
1217 # tardir=directory && $(am__tar) > result.tar
1219 # Substitute a variable $(am__untar) that extract such
1220 # a tarball read from stdin.
1221 # $(am__untar) < result.tar
1222 AC_DEFUN([_AM_PROG_TAR],
1223 [# Always define AMTAR for backward compatibility. Yes, it's still used
1224 # in the wild :-( We should find a proper way to deprecate it ...
1225 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1227 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1228 [m4_case([$1], [ustar],, [pax],,
1229 [m4_fatal([Unknown tar format])])
1230 AC_MSG_CHECKING([how to create a $1 tar archive])
1231 # Loop over all known methods to create a tar archive until one works.
1232 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1233 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1234 # Do not fold the above two line into one, because Tru64 sh and
1235 # Solaris sh will not grok spaces in the rhs of `-'.
1236 for _am_tool in $_am_tools
1240 for _am_tar in tar gnutar gtar;
1242 AM_RUN_LOG([$_am_tar --version]) && break
1244 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1245 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1246 am__untar="$_am_tar -xf -"
1249 # Must skip GNU tar: if it does not support --format= it doesn't create
1250 # ustar tarball either.
1251 (tar --version) >/dev/null 2>&1 && continue
1252 am__tar='tar chf - "$$tardir"'
1253 am__tar_='tar chf - "$tardir"'
1254 am__untar='tar xf -'
1257 am__tar='pax -L -x $1 -w "$$tardir"'
1258 am__tar_='pax -L -x $1 -w "$tardir"'
1262 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1263 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1264 am__untar='cpio -i -H $1 -d'
1273 # If the value was cached, stop now. We just wanted to have am__tar
1274 # and am__untar set.
1275 test -n "${am_cv_prog_tar_$1}" && break
1277 # tar/untar a dummy directory, and stop if the command works
1280 echo GrepMe > conftest.dir/file
1281 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1283 if test -s conftest.tar; then
1284 AM_RUN_LOG([$am__untar <conftest.tar])
1285 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1290 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1291 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1293 AC_SUBST([am__untar])
1296 m4_include([m4/acx-pthread.m4])
1297 m4_include([m4/check-ssl.m4])
1298 m4_include([m4/glib-gettext.m4])
1299 m4_include([m4/libtool.m4])
1300 m4_include([m4/ltoptions.m4])
1301 m4_include([m4/ltsugar.m4])
1302 m4_include([m4/ltversion.m4])
1303 m4_include([m4/lt~obsolete.m4])
1304 m4_include([m4/pkg.m4])
1305 m4_include([m4/zlib.m4])