Imported Upstream version 1.6
[debian/gzip] / aclocal.m4
1 # generated automatically by aclocal 1.99a -*- Autoconf -*-
2
3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69.97-b1aba91],,
18 [m4_warning([this file was generated for autoconf 2.69.97-b1aba91.
19 You have another version of autoconf.  It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # AM_AUTOMAKE_VERSION(VERSION)
30 # ----------------------------
31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
32 # generated from the m4 files accompanying Automake X.Y.
33 # (This private macro should not be called outside this file.)
34 AC_DEFUN([AM_AUTOMAKE_VERSION],
35 [am__api_version='1.99a'
36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37 dnl require some minimum version.  Point them to the right macro.
38 m4_if([$1], [1.99a], [],
39       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40 ])
41
42 # _AM_AUTOCONF_VERSION(VERSION)
43 # -----------------------------
44 # aclocal traces this macro to find the Autoconf version.
45 # This is a private macro too.  Using m4_define simplifies
46 # the logic in aclocal, which can simply ignore this definition.
47 m4_define([_AM_AUTOCONF_VERSION], [])
48
49 # AM_SET_CURRENT_AUTOMAKE_VERSION
50 # -------------------------------
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54 [AM_AUTOMAKE_VERSION([1.99a])dnl
55 m4_ifndef([AC_AUTOCONF_VERSION],
56   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
60
61 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
62 #
63 # This file is free software; the Free Software Foundation
64 # gives unlimited permission to copy and/or distribute it,
65 # with or without modifications, as long as this notice is preserved.
66
67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70 #
71 # Of course, Automake must honor this variable whenever it calls a
72 # tool from the auxiliary directory.  The problem is that $srcdir (and
73 # therefore $ac_aux_dir as well) can be either absolute or relative,
74 # depending on how configure is run.  This is pretty annoying, since
75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
76 # source directory, any form will work fine, but in subdirectories a
77 # relative path needs to be adjusted first.
78 #
79 # $ac_aux_dir/missing
80 #    fails when called from a subdirectory if $ac_aux_dir is relative
81 # $top_srcdir/$ac_aux_dir/missing
82 #    fails if $ac_aux_dir is absolute,
83 #    fails when called from a subdirectory in a VPATH build with
84 #          a relative $ac_aux_dir
85 #
86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87 # are both prefixed by $srcdir.  In an in-source build this is usually
88 # harmless because $srcdir is '.', but things will broke when you
89 # start a VPATH build or use an absolute $srcdir.
90 #
91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
93 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94 # and then we would define $MISSING as
95 #   MISSING="\${SHELL} $am_aux_dir/missing"
96 # This will work as long as MISSING is not called from configure, because
97 # unfortunately $(top_srcdir) has no meaning in configure.
98 # However there are other variables, like CC, which are often used in
99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
100 #
101 # Another solution, used here, is to always expand $ac_aux_dir to an
102 # absolute PATH.  The drawback is that using absolute paths prevent a
103 # configured tree to be moved without reconfiguration.
104
105 AC_DEFUN([AM_AUX_DIR_EXPAND],
106 [dnl Rely on autoconf to set up CDPATH properly.
107 AC_PREREQ([2.50])dnl
108 # expand $ac_aux_dir to an absolute path
109 am_aux_dir=`cd $ac_aux_dir && pwd`
110 ])
111
112 # AM_CONDITIONAL                                            -*- Autoconf -*-
113
114 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
115 #
116 # This file is free software; the Free Software Foundation
117 # gives unlimited permission to copy and/or distribute it,
118 # with or without modifications, as long as this notice is preserved.
119
120 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
121 # -------------------------------------
122 # Define a conditional.
123 AC_DEFUN([AM_CONDITIONAL],
124 [AC_PREREQ([2.52])dnl
125  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
126        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
127 AC_SUBST([$1_TRUE])dnl
128 AC_SUBST([$1_FALSE])dnl
129 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
130 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
131 m4_define([_AM_COND_VALUE_$1], [$2])dnl
132 if $2; then
133   $1_TRUE=
134   $1_FALSE='#'
135 else
136   $1_TRUE='#'
137   $1_FALSE=
138 fi
139 AC_CONFIG_COMMANDS_PRE(
140 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
141   AC_MSG_ERROR([[conditional "$1" was never defined.
142 Usually this means the macro was only invoked conditionally.]])
143 fi])])
144
145 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
146 #
147 # This file is free software; the Free Software Foundation
148 # gives unlimited permission to copy and/or distribute it,
149 # with or without modifications, as long as this notice is preserved.
150
151
152 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
153 # written in clear, in which case automake, when reading aclocal.m4,
154 # will think it sees a *use*, and therefore will trigger all it's
155 # C support machinery.  Also note that it means that autoscan, seeing
156 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
157
158
159 # _AM_DEPENDENCIES(NAME)
160 # ----------------------
161 # See how the compiler implements dependency checking.
162 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
163 # We try a few techniques and use that to set a single cache variable.
164 #
165 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
166 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
167 # dependency, and given that the user is not expected to run this macro,
168 # just rely on AC_PROG_CC.
169 AC_DEFUN([_AM_DEPENDENCIES],
170 [AC_REQUIRE([AM_SET_DEPDIR])dnl
171 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
172 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
173 AC_REQUIRE([AM_DEP_TRACK])dnl
174
175 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
176       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
177       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
180       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
181                     [depcc="$$1"   am_compiler_list=])
182
183 AC_CACHE_CHECK([dependency style of $depcc],
184                [am_cv_$1_dependencies_compiler_type],
185 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
186   # We make a subdir and do the tests there.  Otherwise we can end up
187   # making bogus files that we don't know about and never remove.  For
188   # instance it was reported that on HP-UX the gcc test will end up
189   # making a dummy file named 'D' -- because '-MD' means "put the output
190   # in D".
191   rm -rf conftest.dir
192   mkdir conftest.dir
193   # Copy depcomp to subdir because otherwise we won't find it if we're
194   # using a relative directory.
195   cp "$am_depcomp" conftest.dir
196   cd conftest.dir
197   # We will build objects and dependencies in a subdirectory because
198   # it helps to detect inapplicable dependency modes.  For instance
199   # both Tru64's cc and ICC support -MD to output dependencies as a
200   # side effect of compilation, but ICC will put the dependencies in
201   # the current directory while Tru64 will put them in the object
202   # directory.
203   mkdir sub
204
205   am_cv_$1_dependencies_compiler_type=none
206   if test "$am_compiler_list" = ""; then
207      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
208   fi
209   am__universal=false
210   m4_case([$1], [CC],
211     [case " $depcc " in #(
212      *\ -arch\ *\ -arch\ *) am__universal=true ;;
213      esac],
214     [CXX],
215     [case " $depcc " in #(
216      *\ -arch\ *\ -arch\ *) am__universal=true ;;
217      esac])
218
219   for depmode in $am_compiler_list; do
220     # Setup a source with many dependencies, because some compilers
221     # like to wrap large dependency lists on column 80 (with \), and
222     # we should not choose a depcomp mode which is confused by this.
223     #
224     # We need to recreate these files for each test, as the compiler may
225     # overwrite some of them when testing with obscure command lines.
226     # This happens at least with the AIX C compiler.
227     : > sub/conftest.c
228     for i in 1 2 3 4 5 6; do
229       echo '#include "conftst'$i'.h"' >> sub/conftest.c
230       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
231       # Solaris 10 /bin/sh.
232       echo '/* dummy */' > sub/conftst$i.h
233     done
234     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
235
236     # We check with '-c' and '-o' for the sake of the "dashmstdout"
237     # mode.  It turns out that the SunPro C++ compiler does not properly
238     # handle '-M -o', and we need to detect this.  Also, some Intel
239     # versions had trouble with output in subdirs.
240     am__obj=sub/conftest.${OBJEXT-o}
241     am__minus_obj="-o $am__obj"
242     case $depmode in
243     gcc)
244       # This depmode causes a compiler race in universal mode.
245       test "$am__universal" = false || continue
246       ;;
247     nosideeffect)
248       # After this tag, mechanisms are not by side-effect, so they'll
249       # only be used when explicitly requested.
250       if test "x$enable_dependency_tracking" = xyes; then
251         continue
252       else
253         break
254       fi
255       ;;
256     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
257       # This compiler won't grok '-c -o', but also, the minuso test has
258       # not run yet.  These depmodes are late enough in the game, and
259       # so weak that their functioning should not be impacted.
260       am__obj=conftest.${OBJEXT-o}
261       am__minus_obj=
262       ;;
263     none) break ;;
264     esac
265     if depmode=$depmode \
266        source=sub/conftest.c object=$am__obj \
267        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
268        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
269          >/dev/null 2>conftest.err &&
270        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
271        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
272        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
273        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
274       # icc doesn't choke on unknown options, it will just issue warnings
275       # or remarks (even with -Werror).  So we grep stderr for any message
276       # that says an option was ignored or not supported.
277       # When given -MP, icc 7.0 and 7.1 complain thusly:
278       #   icc: Command line warning: ignoring option '-M'; no argument required
279       # The diagnosis changed in icc 8.0:
280       #   icc: Command line remark: option '-MP' not supported
281       if (grep 'ignoring option' conftest.err ||
282           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
283         am_cv_$1_dependencies_compiler_type=$depmode
284         break
285       fi
286     fi
287   done
288
289   cd ..
290   rm -rf conftest.dir
291 else
292   am_cv_$1_dependencies_compiler_type=none
293 fi
294 ])
295 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
296 AM_CONDITIONAL([am__fastdep$1], [
297   test "x$enable_dependency_tracking" != xno \
298   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
299 ])
300
301
302 # AM_SET_DEPDIR
303 # -------------
304 # Choose a directory name for dependency files.
305 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
306 AC_DEFUN([AM_SET_DEPDIR], [AC_SUBST([DEPDIR], [.deps])])
307
308
309 # AM_DEP_TRACK
310 # ------------
311 AC_DEFUN([AM_DEP_TRACK],
312 [AC_ARG_ENABLE([dependency-tracking], [dnl
313 AS_HELP_STRING(
314   [--enable-dependency-tracking],
315   [do not reject slow dependency extractors])
316 AS_HELP_STRING(
317   [--disable-dependency-tracking],
318   [speeds up one-time build])])
319 if test "x$enable_dependency_tracking" != xno; then
320   am_depcomp="$ac_aux_dir/depcomp"
321   AMDEPBACKSLASH='\'
322   am__nodep='_no'
323 fi
324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325 AC_SUBST([AMDEPBACKSLASH])dnl
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
327 AC_SUBST([am__nodep])dnl
328 _AM_SUBST_NOTMAKE([am__nodep])dnl
329 ])
330
331 # Generate code to set up dependency tracking.              -*- Autoconf -*-
332
333 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
334 #
335 # This file is free software; the Free Software Foundation
336 # gives unlimited permission to copy and/or distribute it,
337 # with or without modifications, as long as this notice is preserved.
338
339
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343 [{
344   # Older Autoconf quotes --file arguments for eval, but not when files
345   # are listed without --file.  Let's play safe and only enable the eval
346   # if we detect the quoting.
347   case $CONFIG_FILES in
348   *\'*) eval set x "$CONFIG_FILES" ;;
349   *)   set x $CONFIG_FILES ;;
350   esac
351   shift
352   for mf
353   do
354     # Strip MF so we end up with the name of the file.
355     mf=`echo "$mf" | sed -e 's/:.*$//'`
356     # Check whether this is an Automake generated Makefile or not.
357     # We used to match only the files named 'Makefile.in', but
358     # some people rename them; so instead we look at the file content.
359     # Grep'ing the first line is not enough: some people post-process
360     # each Makefile.in and add a new line on top of each file to say so.
361     # Grep'ing the whole file is not good either: AIX grep has a line
362     # limit of 2048, but all sed's we know have understand at least 4000.
363     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364       dirpart=`AS_DIRNAME("$mf")`
365     else
366       continue
367     fi
368     # Extract the definition of DEPDIR, am__include, and am__quote
369     # from the Makefile without running 'make'.
370     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371     test -z "$DEPDIR" && continue
372     am__include=`sed -n 's/^am__include = //p' < "$mf"`
373     test -z "$am__include" && continue
374     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375     # Find all dependency output files, they are included files with
376     # $(DEPDIR) in their names.  We invoke sed twice because it is the
377     # simplest approach to changing $(DEPDIR) to its actual value in the
378     # expansion.
379     for file in `sed -n "
380       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
381          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
382       # Make sure the directory exists.
383       test -f "$dirpart/$file" && continue
384       fdir=`AS_DIRNAME(["$file"])`
385       AS_MKDIR_P([$dirpart/$fdir])
386       # echo "creating $dirpart/$file"
387       echo '# dummy' > "$dirpart/$file"
388     done
389   done
390 }
391 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
392
393
394 # AM_OUTPUT_DEPENDENCY_COMMANDS
395 # -----------------------------
396 # This macro should only be invoked once -- use via AC_REQUIRE.
397 #
398 # This code is only required when automatic dependency tracking
399 # is enabled.  FIXME.  This creates each '.P' file that we will
400 # need in order to bootstrap the dependency handling code.
401 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
402 [AC_CONFIG_COMMANDS([depfiles],
403      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
404      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
405 ])
406
407 # Do all the work for Automake.                             -*- Autoconf -*-
408
409 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
410 #
411 # This file is free software; the Free Software Foundation
412 # gives unlimited permission to copy and/or distribute it,
413 # with or without modifications, as long as this notice is preserved.
414
415 # This macro actually does too much.  Some checks are only needed if
416 # your package does certain things.  But this isn't really a big deal.
417
418 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
419 m4_define([AC_PROG_CC],
420 m4_defn([AC_PROG_CC])
421 [_AM_PROG_CC_C_O
422 ])
423
424 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
425 # AM_INIT_AUTOMAKE([OPTIONS])
426 # -----------------------------------------------
427 # The call with PACKAGE and VERSION arguments is the old style
428 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
429 # and VERSION should now be passed to AC_INIT and removed from
430 # the call to AM_INIT_AUTOMAKE.
431 # We support both call styles for the transition.  After
432 # the next Automake release, Autoconf can make the AC_INIT
433 # arguments mandatory, and then we can depend on a new Autoconf
434 # release and drop the old call support.
435 AC_DEFUN([AM_INIT_AUTOMAKE],
436 [AC_PREREQ([2.65])dnl
437 dnl Without this, packages using Gettext 0.18.2 might break horribly.
438 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])dnl
439 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
440 dnl the ones we care about.
441 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
442 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
443 AC_REQUIRE([AC_PROG_INSTALL])dnl
444 if test "`cd $srcdir && pwd`" != "`pwd`"; then
445   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
446   # is not polluted with repeated "-I."
447   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
448   # test to see if srcdir already configured
449   if test -f $srcdir/config.status; then
450     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
451   fi
452 fi
453
454 # test whether we have cygpath
455 if test -z "$CYGPATH_W"; then
456   if (cygpath --version) >/dev/null 2>/dev/null; then
457     CYGPATH_W='cygpath -w'
458   else
459     CYGPATH_W=echo
460   fi
461 fi
462 AC_SUBST([CYGPATH_W])
463
464 # Define the identity of the package.
465 dnl Distinguish between old-style and new-style calls.
466 m4_ifval([$2],
467 [AC_DIAGNOSE([obsolete],
468              [$0: two- and three-arguments forms are deprecated.])
469 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
470  AC_SUBST([PACKAGE], [$1])dnl
471  AC_SUBST([VERSION], [$2])],
472 [_AM_SET_OPTIONS([$1])dnl
473 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
474 m4_if(
475   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
476   [ok:ok],,
477   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
478  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
479  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
480
481 _AM_IF_OPTION([no-define],,
482 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
483  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
484
485 # Some tools Automake needs.
486 AC_REQUIRE([AM_SANITY_CHECK])dnl
487 AC_REQUIRE([AC_ARG_PROGRAM])dnl
488 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
489 AM_MISSING_PROG([AUTOCONF], [autoconf])
490 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
491 AM_MISSING_PROG([AUTOHEADER], [autoheader])
492 AM_MISSING_PROG([MAKEINFO], [makeinfo])
493 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
494 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
495 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
496 # We need awk for the "check" target.  The system "awk" is bad on
497 # some platforms.
498 AC_REQUIRE([AC_PROG_AWK])dnl
499 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
500 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
501               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
502                              [_AM_PROG_TAR([v7])])])
503 _AM_IF_OPTION([no-dependencies],,
504 [AC_PROVIDE_IFELSE([AC_PROG_CC],
505                   [_AM_DEPENDENCIES([CC])],
506                   [m4_define([AC_PROG_CC],
507                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
508 AC_PROVIDE_IFELSE([AC_PROG_CXX],
509                   [_AM_DEPENDENCIES([CXX])],
510                   [m4_define([AC_PROG_CXX],
511                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
512 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
513                   [_AM_DEPENDENCIES([OBJC])],
514                   [m4_define([AC_PROG_OBJC],
515                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
516 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
517                   [_AM_DEPENDENCIES([OBJCXX])],
518                   [m4_define([AC_PROG_OBJCXX],
519                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
520 ])
521 AC_REQUIRE([AM_SILENT_RULES])dnl
522 dnl The testsuite driver may need to know about EXEEXT, so add the
523 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
524 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
525 AC_CONFIG_COMMANDS_PRE(dnl
526 [m4_provide_if([_AM_COMPILER_EXEEXT],
527   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
528
529 # POSIX will say in a future version that running "rm -f" with no argument
530 # is OK; and we want to be able to make that assumption in our Makefile
531 # recipes.  So use an aggressive probe to check that the usage we want is
532 # actually supported "in the wild" to an acceptable degree.
533 # See automake bug#10828.
534 # To make any issue more visible, cause the running configure to be aborted
535 # by default if the 'rm' program in use doesn't match our expectations; the
536 # user can still override this though.
537 if rm -f && rm -fr && rm -rf; then : OK; else
538   cat >&2 <<'END'
539 Oops!
540
541 Your 'rm' program seems unable to run without file operands specified
542 on the command line, even when the '-f' option is present.  This is contrary
543 to the behaviour of most rm programs out there, and not conforming with
544 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
545
546 Please tell bug-automake@gnu.org about your system, including the value
547 of your $PATH and any error possibly output before this message.  This
548 can help us improve future automake versions.
549
550 END
551   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
552     echo 'Configuration will proceed anyway, since you have set the' >&2
553     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
554     echo >&2
555   else
556     cat >&2 <<'END'
557 Aborting the configuration process, to ensure you take notice of the issue.
558
559 You can download and install GNU coreutils to get an 'rm' implementation
560 that behaves properly: <http://www.gnu.org/software/coreutils/>.
561
562 If you want to complete the configuration process using your problematic
563 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
564 to "yes", and re-run configure.
565
566 END
567     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
568   fi
569 fi])
570
571 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
572 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
573 dnl mangled by Autoconf and run in a shell conditional statement.
574 m4_define([_AC_COMPILER_EXEEXT],
575 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
576
577 # When config.status generates a header, we must update the stamp-h file.
578 # This file resides in the same directory as the config header
579 # that is generated.  The stamp files are numbered to have different names.
580
581 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
582 # loop where config.status creates the headers, so we can generate
583 # our stamp files there.
584 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
585 [# Compute $1's index in $config_headers.
586 _am_arg=$1
587 _am_stamp_count=1
588 for _am_header in $config_headers :; do
589   case $_am_header in
590     $_am_arg | $_am_arg:* )
591       break ;;
592     * )
593       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
594   esac
595 done
596 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
597
598 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
599 #
600 # This file is free software; the Free Software Foundation
601 # gives unlimited permission to copy and/or distribute it,
602 # with or without modifications, as long as this notice is preserved.
603
604 # AM_PROG_INSTALL_SH
605 # ------------------
606 # Define $install_sh.
607 AC_DEFUN([AM_PROG_INSTALL_SH],
608 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
609 if test x"${install_sh}" != xset; then
610   case $am_aux_dir in
611   *\ * | *\     *)
612     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
613   *)
614     install_sh="\${SHELL} $am_aux_dir/install-sh"
615   esac
616 fi
617 AC_SUBST([install_sh])])
618
619 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
620
621 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
622 #
623 # This file is free software; the Free Software Foundation
624 # gives unlimited permission to copy and/or distribute it,
625 # with or without modifications, as long as this notice is preserved.
626
627 # AM_MAKE_INCLUDE()
628 # -----------------
629 # Check to see how make treats includes.
630 AC_DEFUN([AM_MAKE_INCLUDE],
631 [am_make=${MAKE-make}
632 cat > confinc << 'END'
633 am__doit:
634         @echo this is the am__doit target
635 .PHONY: am__doit
636 END
637 # If we don't find an include directive, just comment out the code.
638 AC_MSG_CHECKING([for style of include used by $am_make])
639 am__include="#"
640 am__quote=
641 _am_result=none
642 # First try GNU make style include.
643 echo "include confinc" > confmf
644 # Ignore all kinds of additional output from 'make'.
645 case `$am_make -s -f confmf 2> /dev/null` in #(
646 *the\ am__doit\ target*)
647   am__include=include
648   am__quote=
649   _am_result=GNU
650   ;;
651 esac
652 # Now try BSD make style include.
653 if test "$am__include" = "#"; then
654    echo '.include "confinc"' > confmf
655    case `$am_make -s -f confmf 2> /dev/null` in #(
656    *the\ am__doit\ target*)
657      am__include=.include
658      am__quote="\""
659      _am_result=BSD
660      ;;
661    esac
662 fi
663 AC_SUBST([am__include])
664 AC_SUBST([am__quote])
665 AC_MSG_RESULT([$_am_result])
666 rm -f confinc confmf
667 ])
668
669 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
670
671 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
672 #
673 # This file is free software; the Free Software Foundation
674 # gives unlimited permission to copy and/or distribute it,
675 # with or without modifications, as long as this notice is preserved.
676
677 # AM_MISSING_PROG(NAME, PROGRAM)
678 # ------------------------------
679 AC_DEFUN([AM_MISSING_PROG],
680 [AC_REQUIRE([AM_MISSING_HAS_RUN])
681 $1=${$1-"${am_missing_run}$2"}
682 AC_SUBST($1)])
683
684 # AM_MISSING_HAS_RUN
685 # ------------------
686 # Define MISSING if not defined so far and test if it is modern enough.
687 # If it is, set am_missing_run to use it, otherwise, to nothing.
688 AC_DEFUN([AM_MISSING_HAS_RUN],
689 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
690 AC_REQUIRE_AUX_FILE([missing])dnl
691 if test x"${MISSING+set}" != xset; then
692   case $am_aux_dir in
693   *\ * | *\     *)
694     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
695   *)
696     MISSING="\${SHELL} $am_aux_dir/missing" ;;
697   esac
698 fi
699 # Use eval to expand $SHELL
700 if eval "$MISSING --is-lightweight"; then
701   am_missing_run="$MISSING "
702 else
703   am_missing_run=
704   AC_MSG_WARN(['missing' script is too old or missing])
705 fi
706 ])
707
708 # Helper functions for option handling.                     -*- Autoconf -*-
709
710 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
711 #
712 # This file is free software; the Free Software Foundation
713 # gives unlimited permission to copy and/or distribute it,
714 # with or without modifications, as long as this notice is preserved.
715
716 # _AM_MANGLE_OPTION(NAME)
717 # -----------------------
718 AC_DEFUN([_AM_MANGLE_OPTION],
719 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
720
721 # _AM_SET_OPTION(NAME)
722 # --------------------
723 # Set option NAME.  Presently that only means defining a flag for this option.
724 AC_DEFUN([_AM_SET_OPTION],
725 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
726
727 # _AM_SET_OPTIONS(OPTIONS)
728 # ------------------------
729 # OPTIONS is a space-separated list of Automake options.
730 AC_DEFUN([_AM_SET_OPTIONS],
731 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
732
733 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
734 # -------------------------------------------
735 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
736 AC_DEFUN([_AM_IF_OPTION],
737 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
738
739 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
740 #
741 # This file is free software; the Free Software Foundation
742 # gives unlimited permission to copy and/or distribute it,
743 # with or without modifications, as long as this notice is preserved.
744
745 # _AM_PROG_CC_C_O
746 # ---------------
747 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
748 # to automatically call this.
749 AC_DEFUN([_AM_PROG_CC_C_O],
750 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
751 AC_REQUIRE_AUX_FILE([compile])dnl
752 AC_LANG_PUSH([C])dnl
753 AC_CACHE_CHECK(
754   [whether $CC understands -c and -o together],
755   [am_cv_prog_cc_c_o],
756   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
757   # Make sure it works both with $CC and with simple cc.
758   # Following AC_PROG_CC_C_O, we do the test twice because some
759   # compilers refuse to overwrite an existing .o file with -o,
760   # though they will create one.
761   am_cv_prog_cc_c_o=yes
762   for am_i in 1 2; do
763     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
764          && test -f conftest2.$ac_objext; then
765       : OK
766     else
767       am_cv_prog_cc_c_o=no
768       break
769     fi
770   done
771   rm -f core conftest*
772   unset am_i])
773 if test "$am_cv_prog_cc_c_o" != yes; then
774    # Losing compiler, so override with the script.
775    # FIXME: It is wrong to rewrite CC.
776    # But if we don't then we get into trouble of one sort or another.
777    # A longer-term fix would be to have automake use am__CC in this case,
778    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
779    CC="$am_aux_dir/compile $CC"
780 fi
781 AC_LANG_POP([C])])
782
783 # For backward compatibility.
784 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
785
786 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
787 #
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
791
792 # AM_RUN_LOG(COMMAND)
793 # -------------------
794 # Run COMMAND, save the exit status in ac_status, and log it.
795 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
796 AC_DEFUN([AM_RUN_LOG],
797 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
798    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
799    ac_status=$?
800    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
801    (exit $ac_status); }])
802
803 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
804
805 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
806 #
807 # This file is free software; the Free Software Foundation
808 # gives unlimited permission to copy and/or distribute it,
809 # with or without modifications, as long as this notice is preserved.
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Reject unsafe characters in $srcdir or the absolute working directory
816 # name.  Accept space and tab only in the latter.
817 am_lf='
818 '
819 case `pwd` in
820   *[[\\\"\#\$\&\'\`$am_lf]]*)
821     AC_MSG_ERROR([unsafe absolute working directory name]);;
822 esac
823 case $srcdir in
824   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
825     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
826 esac
827
828 # Do 'set' in a subshell so we don't clobber the current shell's
829 # arguments.  Must try -L first in case configure is actually a
830 # symlink; some systems play weird games with the mod time of symlinks
831 # (eg FreeBSD returns the mod time of the symlink's containing
832 # directory).
833 if (
834    am_has_slept=no
835    for am_try in 1 2; do
836      echo "timestamp, slept: $am_has_slept" > conftest.file
837      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838      if test "$[*]" = "X"; then
839         # -L didn't work.
840         set X `ls -t "$srcdir/configure" conftest.file`
841      fi
842      if test "$[*]" != "X $srcdir/configure conftest.file" \
843         && test "$[*]" != "X conftest.file $srcdir/configure"; then
844
845         # If neither matched, then we have a broken ls.  This can happen
846         # if, for instance, CONFIG_SHELL is bash and it inherits a
847         # broken ls alias from the environment.  This has actually
848         # happened.  Such a system could not be considered "sane".
849         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
850   alias in your environment])
851      fi
852      if test "$[2]" = conftest.file || test $am_try -eq 2; then
853        break
854      fi
855      # Just in case.
856      sleep 1
857      am_has_slept=yes
858    done
859    test "$[2]" = conftest.file
860    )
861 then
862    # Ok.
863    :
864 else
865    AC_MSG_ERROR([newly created file is older than distributed files!
866 Check your system clock])
867 fi
868 AC_MSG_RESULT([yes])
869 # If we didn't sleep, we still need to ensure time stamps of config.status and
870 # generated files are strictly newer.
871 am_sleep_pid=
872 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
873   ( sleep 1 ) &
874   am_sleep_pid=$!
875 fi
876 AC_CONFIG_COMMANDS_PRE(
877   [AC_MSG_CHECKING([that generated files are newer than configure])
878    if test -n "$am_sleep_pid"; then
879      # Hide warnings about reused PIDs.
880      wait $am_sleep_pid 2>/dev/null
881    fi
882    AC_MSG_RESULT([done])])
883 rm -f conftest.file
884 ])
885
886 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
887 #
888 # This file is free software; the Free Software Foundation
889 # gives unlimited permission to copy and/or distribute it,
890 # with or without modifications, as long as this notice is preserved.
891
892 # AM_SILENT_RULES([DEFAULT])
893 # --------------------------
894 # Enable less verbose build rules; with the default set to DEFAULT
895 # ("yes" being less verbose, "no" or empty being verbose).
896 AC_DEFUN([AM_SILENT_RULES],
897 [AC_ARG_ENABLE([silent-rules], [dnl
898 AS_HELP_STRING(
899   [--enable-silent-rules],
900   [less verbose build output (undo: "make V=1")])
901 AS_HELP_STRING(
902   [--disable-silent-rules],
903   [verbose build output (undo: "make V=0")])dnl
904 ])
905 case $enable_silent_rules in @%:@ (((
906   yes) AM_DEFAULT_VERBOSITY=0;;
907    no) AM_DEFAULT_VERBOSITY=1;;
908     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
909 esac
910 dnl
911 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
912 dnl do not support nested variable expansions.
913 dnl See automake bug#9928 and bug#10237.
914 am_make=${MAKE-make}
915 AC_CACHE_CHECK([whether $am_make supports nested variables],
916    [am_cv_make_support_nested_variables],
917    [if AS_ECHO([['TRUE=$(BAR$(V))
918 BAR0=false
919 BAR1=true
920 V=1
921 am__doit:
922         @$(TRUE)
923 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
924   am_cv_make_support_nested_variables=yes
925 else
926   am_cv_make_support_nested_variables=no
927 fi])
928 if test $am_cv_make_support_nested_variables = yes; then
929   dnl Using '$V' instead of '$(V)' breaks IRIX make.
930   AM_V='$(V)'
931   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
932 else
933   AM_V=$AM_DEFAULT_VERBOSITY
934   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
935 fi
936 AC_SUBST([AM_V])dnl
937 AM_SUBST_NOTMAKE([AM_V])dnl
938 AC_SUBST([AM_DEFAULT_V])dnl
939 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
940 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
941 AM_BACKSLASH='\'
942 AC_SUBST([AM_BACKSLASH])dnl
943 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
944 ])
945
946 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
947 #
948 # This file is free software; the Free Software Foundation
949 # gives unlimited permission to copy and/or distribute it,
950 # with or without modifications, as long as this notice is preserved.
951
952 # AM_PROG_INSTALL_STRIP
953 # ---------------------
954 # One issue with vendor 'install' (even GNU) is that you can't
955 # specify the program used to strip binaries.  This is especially
956 # annoying in cross-compiling environments, where the build's strip
957 # is unlikely to handle the host's binaries.
958 # Fortunately install-sh will honor a STRIPPROG variable, so we
959 # always use install-sh in "make install-strip", and initialize
960 # STRIPPROG with the value of the STRIP variable (set by the user).
961 AC_DEFUN([AM_PROG_INSTALL_STRIP],
962 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
963 # Installed binaries are usually stripped using 'strip' when the user
964 # run "make install-strip".  However 'strip' might not be the right
965 # tool to use in cross-compilation environments, therefore Automake
966 # will honor the 'STRIP' environment variable to overrule this program.
967 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
968 if test "$cross_compiling" != no; then
969   AC_CHECK_TOOL([STRIP], [strip], :)
970 fi
971 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
972 AC_SUBST([INSTALL_STRIP_PROGRAM])])
973
974 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
975 #
976 # This file is free software; the Free Software Foundation
977 # gives unlimited permission to copy and/or distribute it,
978 # with or without modifications, as long as this notice is preserved.
979
980 # _AM_SUBST_NOTMAKE(VARIABLE)
981 # ---------------------------
982 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
983 # This macro is traced by Automake.
984 AC_DEFUN([_AM_SUBST_NOTMAKE])
985
986 # AM_SUBST_NOTMAKE(VARIABLE)
987 # --------------------------
988 # Public sister of _AM_SUBST_NOTMAKE.
989 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
990
991 # Check how to create a tarball.                            -*- Autoconf -*-
992
993 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
994 #
995 # This file is free software; the Free Software Foundation
996 # gives unlimited permission to copy and/or distribute it,
997 # with or without modifications, as long as this notice is preserved.
998
999 # _AM_PROG_TAR(FORMAT)
1000 # --------------------
1001 # Check how to create a tarball in format FORMAT.
1002 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1003 #
1004 # Substitute a variable $(am__tar) that is a command
1005 # writing to stdout a FORMAT-tarball containing the directory
1006 # $tardir.
1007 #     tardir=directory && $(am__tar) > result.tar
1008 #
1009 # Substitute a variable $(am__untar) that extract such
1010 # a tarball read from stdin.
1011 #     $(am__untar) < result.tar
1012 #
1013 AC_DEFUN([_AM_PROG_TAR],
1014 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1015 # in the wild :-(  We should find a proper way to deprecate it ...
1016 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1017
1018 # We'll loop over all known methods to create a tar archive until one works.
1019 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1020
1021 m4_if([$1], [v7],
1022   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1023
1024   [m4_case([$1],
1025     [ustar],
1026      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1027       # There is notably a 21 bits limit for the UID and the GID.  In fact,
1028       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1029       # and bug#13588).
1030       am_max_uid=2097151 # 2^21 - 1
1031       am_max_gid=$am_max_uid
1032       # The $UID and $GID variables are not portable, so we need to resort
1033       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1034       # below are definitely unexpected, so allow the users to see them
1035       # (that is, avoid stderr redirection).
1036       am_uid=`id -u || echo unknown`
1037       am_gid=`id -g || echo unknown`
1038       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1039       if test $am_uid -le $am_max_uid; then
1040          AC_MSG_RESULT([yes])
1041       else
1042          AC_MSG_RESULT([no])
1043          _am_tools=none
1044       fi
1045       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1046       if test $am_gid -le $am_max_gid; then
1047          AC_MSG_RESULT([yes])
1048       else
1049         AC_MSG_RESULT([no])
1050         _am_tools=none
1051       fi],
1052
1053   [pax],
1054     [],
1055
1056   [m4_fatal([Unknown tar format])])
1057
1058   AC_MSG_CHECKING([how to create a $1 tar archive])
1059
1060   # Go ahead even if we have the value already cached.  We do so because we
1061   # need to set the values for the 'am__tar' and 'am__untar' variables.
1062   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1063
1064   for _am_tool in $_am_tools; do
1065     case $_am_tool in
1066     gnutar)
1067       for _am_tar in tar gnutar gtar; do
1068         AM_RUN_LOG([$_am_tar --version]) && break
1069       done
1070       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1071       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1072       am__untar="$_am_tar -xf -"
1073       ;;
1074     plaintar)
1075       # Must skip GNU tar: if it does not support --format= it doesn't create
1076       # ustar tarball either.
1077       (tar --version) >/dev/null 2>&1 && continue
1078       am__tar='tar chf - "$$tardir"'
1079       am__tar_='tar chf - "$tardir"'
1080       am__untar='tar xf -'
1081       ;;
1082     pax)
1083       am__tar='pax -L -x $1 -w "$$tardir"'
1084       am__tar_='pax -L -x $1 -w "$tardir"'
1085       am__untar='pax -r'
1086       ;;
1087     cpio)
1088       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1089       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1090       am__untar='cpio -i -H $1 -d'
1091       ;;
1092     none)
1093       am__tar=false
1094       am__tar_=false
1095       am__untar=false
1096       ;;
1097     esac
1098
1099     # If the value was cached, stop now.  We just wanted to have am__tar
1100     # and am__untar set.
1101     test -n "${am_cv_prog_tar_$1}" && break
1102
1103     # tar/untar a dummy directory, and stop if the command works.
1104     rm -rf conftest.dir
1105     mkdir conftest.dir
1106     echo GrepMe > conftest.dir/file
1107     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1108     rm -rf conftest.dir
1109     if test -s conftest.tar; then
1110       AM_RUN_LOG([$am__untar <conftest.tar])
1111       AM_RUN_LOG([cat conftest.dir/file])
1112       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1113     fi
1114   done
1115   rm -rf conftest.dir
1116
1117   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1118   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1119
1120 AC_SUBST([am__tar])
1121 AC_SUBST([am__untar])
1122 ]) # _AM_PROG_TAR
1123
1124 # po.m4 serial 20 (gettext-0.18.2)
1125 dnl Copyright (C) 1995-2012 Free Software Foundation, Inc.
1126 dnl This file is free software; the Free Software Foundation
1127 dnl gives unlimited permission to copy and/or distribute it,
1128 dnl with or without modifications, as long as this notice is preserved.
1129 dnl
1130 dnl This file can can be used in projects which are not available under
1131 dnl the GNU General Public License or the GNU Library General Public
1132 dnl License but which still want to provide support for the GNU gettext
1133 dnl functionality.
1134 dnl Please note that the actual code of the GNU gettext library is covered
1135 dnl by the GNU Library General Public License, and the rest of the GNU
1136 dnl gettext package package is covered by the GNU General Public License.
1137 dnl They are *not* in the public domain.
1138
1139 dnl Authors:
1140 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1141 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1142
1143 AC_PREREQ([2.60])
1144
1145 dnl Checks for all prerequisites of the po subdirectory.
1146 AC_DEFUN([AM_PO_SUBDIRS],
1147 [
1148   AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1149   AC_REQUIRE([AC_PROG_INSTALL])dnl
1150   AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1151   AC_REQUIRE([AM_NLS])dnl
1152
1153   dnl Release version of the gettext macros. This is used to ensure that
1154   dnl the gettext macros and po/Makefile.in.in are in sync.
1155   AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
1156
1157   dnl Perform the following tests also if --disable-nls has been given,
1158   dnl because they are needed for "make dist" to work.
1159
1160   dnl Search for GNU msgfmt in the PATH.
1161   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
1162   dnl The second test excludes FreeBSD msgfmt.
1163   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1164     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1165      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1166     :)
1167   AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
1168
1169   dnl Test whether it is GNU msgfmt >= 0.15.
1170 changequote(,)dnl
1171   case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
1172     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
1173     *) MSGFMT_015=$MSGFMT ;;
1174   esac
1175 changequote([,])dnl
1176   AC_SUBST([MSGFMT_015])
1177 changequote(,)dnl
1178   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
1179     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
1180     *) GMSGFMT_015=$GMSGFMT ;;
1181   esac
1182 changequote([,])dnl
1183   AC_SUBST([GMSGFMT_015])
1184
1185   dnl Search for GNU xgettext 0.12 or newer in the PATH.
1186   dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
1187   dnl The second test excludes FreeBSD xgettext.
1188   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1189     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1190      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1191     :)
1192   dnl Remove leftover from FreeBSD xgettext call.
1193   rm -f messages.po
1194
1195   dnl Test whether it is GNU xgettext >= 0.15.
1196 changequote(,)dnl
1197   case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
1198     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
1199     *) XGETTEXT_015=$XGETTEXT ;;
1200   esac
1201 changequote([,])dnl
1202   AC_SUBST([XGETTEXT_015])
1203
1204   dnl Search for GNU msgmerge 0.11 or newer in the PATH.
1205   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
1206     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
1207
1208   dnl Installation directories.
1209   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
1210   dnl have to define it here, so that it can be used in po/Makefile.
1211   test -n "$localedir" || localedir='${datadir}/locale'
1212   AC_SUBST([localedir])
1213
1214   dnl Support for AM_XGETTEXT_OPTION.
1215   test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
1216   AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
1217
1218   AC_CONFIG_COMMANDS([po-directories], [[
1219     for ac_file in $CONFIG_FILES; do
1220       # Support "outfile[:infile[:infile...]]"
1221       case "$ac_file" in
1222         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1223       esac
1224       # PO directories have a Makefile.in generated from Makefile.in.in.
1225       case "$ac_file" in */Makefile.in)
1226         # Adjust a relative srcdir.
1227         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1228         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
1229         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1230         # In autoconf-2.13 it is called $ac_given_srcdir.
1231         # In autoconf-2.50 it is called $srcdir.
1232         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1233         case "$ac_given_srcdir" in
1234           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1235           /*) top_srcdir="$ac_given_srcdir" ;;
1236           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
1237         esac
1238         # Treat a directory as a PO directory if and only if it has a
1239         # POTFILES.in file. This allows packages to have multiple PO
1240         # directories under different names or in different locations.
1241         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
1242           rm -f "$ac_dir/POTFILES"
1243           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1244           gt_tab=`printf '\t'`
1245           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1246           POMAKEFILEDEPS="POTFILES.in"
1247           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1248           # on $ac_dir but don't depend on user-specified configuration
1249           # parameters.
1250           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1251             # The LINGUAS file contains the set of available languages.
1252             if test -n "$OBSOLETE_ALL_LINGUAS"; then
1253               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1254             fi
1255             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1256             # Hide the ALL_LINGUAS assignment from automake < 1.5.
1257             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1258             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1259           else
1260             # The set of available languages was given in configure.in.
1261             # Hide the ALL_LINGUAS assignment from automake < 1.5.
1262             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
1263           fi
1264           # Compute POFILES
1265           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1266           # Compute UPDATEPOFILES
1267           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1268           # Compute DUMMYPOFILES
1269           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1270           # Compute GMOFILES
1271           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1272           case "$ac_given_srcdir" in
1273             .) srcdirpre= ;;
1274             *) srcdirpre='$(srcdir)/' ;;
1275           esac
1276           POFILES=
1277           UPDATEPOFILES=
1278           DUMMYPOFILES=
1279           GMOFILES=
1280           for lang in $ALL_LINGUAS; do
1281             POFILES="$POFILES $srcdirpre$lang.po"
1282             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1283             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1284             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1285           done
1286           # CATALOGS depends on both $ac_dir and the user's LINGUAS
1287           # environment variable.
1288           INST_LINGUAS=
1289           if test -n "$ALL_LINGUAS"; then
1290             for presentlang in $ALL_LINGUAS; do
1291               useit=no
1292               if test "%UNSET%" != "$LINGUAS"; then
1293                 desiredlanguages="$LINGUAS"
1294               else
1295                 desiredlanguages="$ALL_LINGUAS"
1296               fi
1297               for desiredlang in $desiredlanguages; do
1298                 # Use the presentlang catalog if desiredlang is
1299                 #   a. equal to presentlang, or
1300                 #   b. a variant of presentlang (because in this case,
1301                 #      presentlang can be used as a fallback for messages
1302                 #      which are not translated in the desiredlang catalog).
1303                 case "$desiredlang" in
1304                   "$presentlang"*) useit=yes;;
1305                 esac
1306               done
1307               if test $useit = yes; then
1308                 INST_LINGUAS="$INST_LINGUAS $presentlang"
1309               fi
1310             done
1311           fi
1312           CATALOGS=
1313           if test -n "$INST_LINGUAS"; then
1314             for lang in $INST_LINGUAS; do
1315               CATALOGS="$CATALOGS $lang.gmo"
1316             done
1317           fi
1318           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
1319           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
1320           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
1321             if test -f "$f"; then
1322               case "$f" in
1323                 *.orig | *.bak | *~) ;;
1324                 *) cat "$f" >> "$ac_dir/Makefile" ;;
1325               esac
1326             fi
1327           done
1328         fi
1329         ;;
1330       esac
1331     done]],
1332    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
1333     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
1334     # from automake < 1.5.
1335     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
1336     # Capture the value of LINGUAS because we need it to compute CATALOGS.
1337     LINGUAS="${LINGUAS-%UNSET%}"
1338    ])
1339 ])
1340
1341 dnl Postprocesses a Makefile in a directory containing PO files.
1342 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
1343 [
1344   # When this code is run, in config.status, two variables have already been
1345   # set:
1346   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
1347   # - LINGUAS is the value of the environment variable LINGUAS at configure
1348   #   time.
1349
1350 changequote(,)dnl
1351   # Adjust a relative srcdir.
1352   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1353   ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
1354   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1355   # In autoconf-2.13 it is called $ac_given_srcdir.
1356   # In autoconf-2.50 it is called $srcdir.
1357   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1358   case "$ac_given_srcdir" in
1359     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1360     /*) top_srcdir="$ac_given_srcdir" ;;
1361     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
1362   esac
1363
1364   # Find a way to echo strings without interpreting backslash.
1365   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
1366     gt_echo='echo'
1367   else
1368     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
1369       gt_echo='printf %s\n'
1370     else
1371       echo_func () {
1372         cat <<EOT
1373 $*
1374 EOT
1375       }
1376       gt_echo='echo_func'
1377     fi
1378   fi
1379
1380   # A sed script that extracts the value of VARIABLE from a Makefile.
1381   tab=`printf '\t'`
1382   sed_x_variable='
1383 # Test if the hold space is empty.
1384 x
1385 s/P/P/
1386 x
1387 ta
1388 # Yes it was empty. Look if we have the expected variable definition.
1389 /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
1390   # Seen the first line of the variable definition.
1391   s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
1392   ba
1393 }
1394 bd
1395 :a
1396 # Here we are processing a line from the variable definition.
1397 # Remove comment, more precisely replace it with a space.
1398 s/#.*$/ /
1399 # See if the line ends in a backslash.
1400 tb
1401 :b
1402 s/\\$//
1403 # Print the line, without the trailing backslash.
1404 p
1405 tc
1406 # There was no trailing backslash. The end of the variable definition is
1407 # reached. Clear the hold space.
1408 s/^.*$//
1409 x
1410 bd
1411 :c
1412 # A trailing backslash means that the variable definition continues in the
1413 # next line. Put a nonempty string into the hold space to indicate this.
1414 s/^.*$/P/
1415 x
1416 :d
1417 '
1418 changequote([,])dnl
1419
1420   # Set POTFILES to the value of the Makefile variable POTFILES.
1421   sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
1422   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
1423   # Compute POTFILES_DEPS as
1424   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
1425   POTFILES_DEPS=
1426   for file in $POTFILES; do
1427     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
1428   done
1429   POMAKEFILEDEPS=""
1430
1431   if test -n "$OBSOLETE_ALL_LINGUAS"; then
1432     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1433   fi
1434   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1435     # The LINGUAS file contains the set of available languages.
1436     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1437     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1438   else
1439     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
1440     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
1441     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
1442   fi
1443   # Hide the ALL_LINGUAS assignment from automake < 1.5.
1444   eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1445   # Compute POFILES
1446   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1447   # Compute UPDATEPOFILES
1448   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1449   # Compute DUMMYPOFILES
1450   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1451   # Compute GMOFILES
1452   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1453   # Compute PROPERTIESFILES
1454   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
1455   # Compute CLASSFILES
1456   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
1457   # Compute QMFILES
1458   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
1459   # Compute MSGFILES
1460   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
1461   # Compute RESOURCESDLLFILES
1462   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
1463   case "$ac_given_srcdir" in
1464     .) srcdirpre= ;;
1465     *) srcdirpre='$(srcdir)/' ;;
1466   esac
1467   POFILES=
1468   UPDATEPOFILES=
1469   DUMMYPOFILES=
1470   GMOFILES=
1471   PROPERTIESFILES=
1472   CLASSFILES=
1473   QMFILES=
1474   MSGFILES=
1475   RESOURCESDLLFILES=
1476   for lang in $ALL_LINGUAS; do
1477     POFILES="$POFILES $srcdirpre$lang.po"
1478     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1479     DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1480     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1481     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
1482     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
1483     QMFILES="$QMFILES $srcdirpre$lang.qm"
1484     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1485     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
1486     frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1487     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
1488   done
1489   # CATALOGS depends on both $ac_dir and the user's LINGUAS
1490   # environment variable.
1491   INST_LINGUAS=
1492   if test -n "$ALL_LINGUAS"; then
1493     for presentlang in $ALL_LINGUAS; do
1494       useit=no
1495       if test "%UNSET%" != "$LINGUAS"; then
1496         desiredlanguages="$LINGUAS"
1497       else
1498         desiredlanguages="$ALL_LINGUAS"
1499       fi
1500       for desiredlang in $desiredlanguages; do
1501         # Use the presentlang catalog if desiredlang is
1502         #   a. equal to presentlang, or
1503         #   b. a variant of presentlang (because in this case,
1504         #      presentlang can be used as a fallback for messages
1505         #      which are not translated in the desiredlang catalog).
1506         case "$desiredlang" in
1507           "$presentlang"*) useit=yes;;
1508         esac
1509       done
1510       if test $useit = yes; then
1511         INST_LINGUAS="$INST_LINGUAS $presentlang"
1512       fi
1513     done
1514   fi
1515   CATALOGS=
1516   JAVACATALOGS=
1517   QTCATALOGS=
1518   TCLCATALOGS=
1519   CSHARPCATALOGS=
1520   if test -n "$INST_LINGUAS"; then
1521     for lang in $INST_LINGUAS; do
1522       CATALOGS="$CATALOGS $lang.gmo"
1523       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
1524       QTCATALOGS="$QTCATALOGS $lang.qm"
1525       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1526       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
1527       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1528       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
1529     done
1530   fi
1531
1532   sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
1533   tab=`printf '\t'`
1534   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
1535     # Add dependencies that cannot be formulated as a simple suffix rule.
1536     for lang in $ALL_LINGUAS; do
1537       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1538       cat >> "$ac_file.tmp" <<EOF
1539 $frobbedlang.msg: $lang.po
1540 ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
1541 ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1542 EOF
1543     done
1544   fi
1545   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
1546     # Add dependencies that cannot be formulated as a simple suffix rule.
1547     for lang in $ALL_LINGUAS; do
1548       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1549       cat >> "$ac_file.tmp" <<EOF
1550 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
1551 ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
1552 ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1553 EOF
1554     done
1555   fi
1556   if test -n "$POMAKEFILEDEPS"; then
1557     cat >> "$ac_file.tmp" <<EOF
1558 Makefile: $POMAKEFILEDEPS
1559 EOF
1560   fi
1561   mv "$ac_file.tmp" "$ac_file"
1562 ])
1563
1564 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
1565 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
1566 [
1567   XGETTEXT_EXTRA_OPTIONS=
1568 ])
1569
1570 dnl Registers an option to be passed to xgettext in the po subdirectory.
1571 AC_DEFUN([AM_XGETTEXT_OPTION],
1572 [
1573   AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
1574   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
1575 ])
1576
1577 m4_include([m4/00gnulib.m4])
1578 m4_include([m4/alloca.m4])
1579 m4_include([m4/asm-underscore.m4])
1580 m4_include([m4/calloc.m4])
1581 m4_include([m4/chdir-long.m4])
1582 m4_include([m4/clock_time.m4])
1583 m4_include([m4/close-stream.m4])
1584 m4_include([m4/close.m4])
1585 m4_include([m4/closedir.m4])
1586 m4_include([m4/closein.m4])
1587 m4_include([m4/closeout.m4])
1588 m4_include([m4/codeset.m4])
1589 m4_include([m4/configmake.m4])
1590 m4_include([m4/dirent-safer.m4])
1591 m4_include([m4/dirent_h.m4])
1592 m4_include([m4/dirfd.m4])
1593 m4_include([m4/dirname.m4])
1594 m4_include([m4/double-slash-root.m4])
1595 m4_include([m4/dup.m4])
1596 m4_include([m4/dup2.m4])
1597 m4_include([m4/errno_h.m4])
1598 m4_include([m4/error.m4])
1599 m4_include([m4/exponentd.m4])
1600 m4_include([m4/exponentf.m4])
1601 m4_include([m4/exponentl.m4])
1602 m4_include([m4/extensions.m4])
1603 m4_include([m4/extern-inline.m4])
1604 m4_include([m4/fchdir.m4])
1605 m4_include([m4/fclose.m4])
1606 m4_include([m4/fcntl-o.m4])
1607 m4_include([m4/fcntl-safer.m4])
1608 m4_include([m4/fcntl.m4])
1609 m4_include([m4/fcntl_h.m4])
1610 m4_include([m4/fdopendir.m4])
1611 m4_include([m4/fflush.m4])
1612 m4_include([m4/filenamecat.m4])
1613 m4_include([m4/float_h.m4])
1614 m4_include([m4/fpending.m4])
1615 m4_include([m4/fpieee.m4])
1616 m4_include([m4/fprintf-posix.m4])
1617 m4_include([m4/fpurge.m4])
1618 m4_include([m4/freadahead.m4])
1619 m4_include([m4/freading.m4])
1620 m4_include([m4/frexp.m4])
1621 m4_include([m4/frexpl.m4])
1622 m4_include([m4/fseek.m4])
1623 m4_include([m4/fseeko.m4])
1624 m4_include([m4/fseterr.m4])
1625 m4_include([m4/fstat.m4])
1626 m4_include([m4/ftell.m4])
1627 m4_include([m4/ftello.m4])
1628 m4_include([m4/getcwd.m4])
1629 m4_include([m4/getdtablesize.m4])
1630 m4_include([m4/getopt.m4])
1631 m4_include([m4/gettime.m4])
1632 m4_include([m4/gettimeofday.m4])
1633 m4_include([m4/glibc21.m4])
1634 m4_include([m4/gnu-make.m4])
1635 m4_include([m4/gnulib-common.m4])
1636 m4_include([m4/gnulib-comp.m4])
1637 m4_include([m4/include_next.m4])
1638 m4_include([m4/intmax_t.m4])
1639 m4_include([m4/inttypes_h.m4])
1640 m4_include([m4/isnand.m4])
1641 m4_include([m4/isnanf.m4])
1642 m4_include([m4/isnanl.m4])
1643 m4_include([m4/largefile.m4])
1644 m4_include([m4/ldexpl.m4])
1645 m4_include([m4/lib-ignore.m4])
1646 m4_include([m4/lib-ld.m4])
1647 m4_include([m4/lib-link.m4])
1648 m4_include([m4/lib-prefix.m4])
1649 m4_include([m4/localcharset.m4])
1650 m4_include([m4/locale-fr.m4])
1651 m4_include([m4/locale-ja.m4])
1652 m4_include([m4/locale-zh.m4])
1653 m4_include([m4/lock.m4])
1654 m4_include([m4/longlong.m4])
1655 m4_include([m4/lseek.m4])
1656 m4_include([m4/lstat.m4])
1657 m4_include([m4/malloc.m4])
1658 m4_include([m4/manywarnings.m4])
1659 m4_include([m4/math_h.m4])
1660 m4_include([m4/mbrtowc.m4])
1661 m4_include([m4/mbsinit.m4])
1662 m4_include([m4/mbstate_t.m4])
1663 m4_include([m4/memchr.m4])
1664 m4_include([m4/mempcpy.m4])
1665 m4_include([m4/memrchr.m4])
1666 m4_include([m4/mmap-anon.m4])
1667 m4_include([m4/mode_t.m4])
1668 m4_include([m4/msvc-inval.m4])
1669 m4_include([m4/msvc-nothrow.m4])
1670 m4_include([m4/multiarch.m4])
1671 m4_include([m4/nocrash.m4])
1672 m4_include([m4/off_t.m4])
1673 m4_include([m4/open.m4])
1674 m4_include([m4/openat.m4])
1675 m4_include([m4/opendir.m4])
1676 m4_include([m4/pathmax.m4])
1677 m4_include([m4/perror.m4])
1678 m4_include([m4/printf-frexp.m4])
1679 m4_include([m4/printf-frexpl.m4])
1680 m4_include([m4/printf-posix-rpl.m4])
1681 m4_include([m4/printf.m4])
1682 m4_include([m4/quotearg.m4])
1683 m4_include([m4/readdir.m4])
1684 m4_include([m4/realloc.m4])
1685 m4_include([m4/save-cwd.m4])
1686 m4_include([m4/savedir.m4])
1687 m4_include([m4/shell.m4])
1688 m4_include([m4/signbit.m4])
1689 m4_include([m4/size_max.m4])
1690 m4_include([m4/ssize_t.m4])
1691 m4_include([m4/stat-time.m4])
1692 m4_include([m4/stat.m4])
1693 m4_include([m4/stdbool.m4])
1694 m4_include([m4/stddef_h.m4])
1695 m4_include([m4/stdint.m4])
1696 m4_include([m4/stdint_h.m4])
1697 m4_include([m4/stdio_h.m4])
1698 m4_include([m4/stdlib_h.m4])
1699 m4_include([m4/strdup.m4])
1700 m4_include([m4/strerror.m4])
1701 m4_include([m4/strerror_r.m4])
1702 m4_include([m4/string_h.m4])
1703 m4_include([m4/sys_socket_h.m4])
1704 m4_include([m4/sys_stat_h.m4])
1705 m4_include([m4/sys_time_h.m4])
1706 m4_include([m4/sys_types_h.m4])
1707 m4_include([m4/threadlib.m4])
1708 m4_include([m4/time_h.m4])
1709 m4_include([m4/timespec.m4])
1710 m4_include([m4/unistd-safer.m4])
1711 m4_include([m4/unistd_h.m4])
1712 m4_include([m4/utimbuf.m4])
1713 m4_include([m4/utimens.m4])
1714 m4_include([m4/utimes.m4])
1715 m4_include([m4/vasnprintf.m4])
1716 m4_include([m4/vfprintf-posix.m4])
1717 m4_include([m4/warnings.m4])
1718 m4_include([m4/wchar_h.m4])
1719 m4_include([m4/wchar_t.m4])
1720 m4_include([m4/wctype_h.m4])
1721 m4_include([m4/wint_t.m4])
1722 m4_include([m4/xalloc.m4])
1723 m4_include([m4/xsize.m4])
1724 m4_include([m4/yesno.m4])