xref: /minix/external/bsd/file/dist/aclocal.m4 (revision 84d9c625)
1# generated automatically by aclocal 1.12.4 -*- Autoconf -*-
2
3# Copyright (C) 1996-2012 Free Software Foundation, Inc.
4
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17[m4_warning([this file was generated for autoconf 2.69.
18You have another version of autoconf.  It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22# visibility.m4 serial 3 (gettext-0.18)
23dnl Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc.
24dnl This file is free software; the Free Software Foundation
25dnl gives unlimited permission to copy and/or distribute it,
26dnl with or without modifications, as long as this notice is preserved.
27
28dnl From Bruno Haible.
29
30dnl Tests whether the compiler supports the command-line option
31dnl -fvisibility=hidden and the function and variable attributes
32dnl __attribute__((__visibility__("hidden"))) and
33dnl __attribute__((__visibility__("default"))).
34dnl Does *not* test for __visibility__("protected") - which has tricky
35dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on
36dnl MacOS X.
37dnl Does *not* test for __visibility__("internal") - which has processor
38dnl dependent semantics.
39dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
40dnl "really only recommended for legacy code".
41dnl Set the variable CFLAG_VISIBILITY.
42dnl Defines and sets the variable HAVE_VISIBILITY.
43
44AC_DEFUN([gl_VISIBILITY],
45[
46  AC_REQUIRE([AC_PROG_CC])
47  CFLAG_VISIBILITY=
48  HAVE_VISIBILITY=0
49  if test -n "$GCC"; then
50    dnl First, check whether -Werror can be added to the command line, or
51    dnl whether it leads to an error because of some other option that the
52    dnl user has put into $CC $CFLAGS $CPPFLAGS.
53    AC_MSG_CHECKING([whether the -Werror option is usable])
54    AC_CACHE_VAL([gl_cv_cc_vis_werror], [
55      gl_save_CFLAGS="$CFLAGS"
56      CFLAGS="$CFLAGS -Werror"
57      AC_TRY_COMPILE([], [],
58        [gl_cv_cc_vis_werror=yes],
59        [gl_cv_cc_vis_werror=no])
60      CFLAGS="$gl_save_CFLAGS"])
61    AC_MSG_RESULT([$gl_cv_cc_vis_werror])
62    dnl Now check whether visibility declarations are supported.
63    AC_MSG_CHECKING([for simple visibility declarations])
64    AC_CACHE_VAL([gl_cv_cc_visibility], [
65      gl_save_CFLAGS="$CFLAGS"
66      CFLAGS="$CFLAGS -fvisibility=hidden"
67      dnl We use the option -Werror and a function dummyfunc, because on some
68      dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
69      dnl "visibility attribute not supported in this configuration; ignored"
70      dnl at the first function definition in every compilation unit, and we
71      dnl don't want to use the option in this case.
72      if test $gl_cv_cc_vis_werror = yes; then
73        CFLAGS="$CFLAGS -Werror"
74      fi
75      AC_TRY_COMPILE(
76        [extern __attribute__((__visibility__("hidden"))) int hiddenvar;
77         extern __attribute__((__visibility__("default"))) int exportedvar;
78         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
79         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
80         void dummyfunc (void) {}],
81        [],
82        [gl_cv_cc_visibility=yes],
83        [gl_cv_cc_visibility=no])
84      CFLAGS="$gl_save_CFLAGS"])
85    AC_MSG_RESULT([$gl_cv_cc_visibility])
86    if test $gl_cv_cc_visibility = yes; then
87      CFLAG_VISIBILITY="-fvisibility=hidden"
88      HAVE_VISIBILITY=1
89    fi
90  fi
91  AC_SUBST([CFLAG_VISIBILITY])
92  AC_SUBST([HAVE_VISIBILITY])
93  AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
94    [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
95])
96
97# Copyright (C) 2002-2012 Free Software Foundation, Inc.
98#
99# This file is free software; the Free Software Foundation
100# gives unlimited permission to copy and/or distribute it,
101# with or without modifications, as long as this notice is preserved.
102
103# AM_AUTOMAKE_VERSION(VERSION)
104# ----------------------------
105# Automake X.Y traces this macro to ensure aclocal.m4 has been
106# generated from the m4 files accompanying Automake X.Y.
107# (This private macro should not be called outside this file.)
108AC_DEFUN([AM_AUTOMAKE_VERSION],
109[am__api_version='1.12'
110dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
111dnl require some minimum version.  Point them to the right macro.
112m4_if([$1], [1.12.4], [],
113      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
114])
115
116# _AM_AUTOCONF_VERSION(VERSION)
117# -----------------------------
118# aclocal traces this macro to find the Autoconf version.
119# This is a private macro too.  Using m4_define simplifies
120# the logic in aclocal, which can simply ignore this definition.
121m4_define([_AM_AUTOCONF_VERSION], [])
122
123# AM_SET_CURRENT_AUTOMAKE_VERSION
124# -------------------------------
125# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
126# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
127AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
128[AM_AUTOMAKE_VERSION([1.12.4])dnl
129m4_ifndef([AC_AUTOCONF_VERSION],
130  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
131_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
132
133# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
134
135# Copyright (C) 2001-2012 Free Software Foundation, Inc.
136#
137# This file is free software; the Free Software Foundation
138# gives unlimited permission to copy and/or distribute it,
139# with or without modifications, as long as this notice is preserved.
140
141# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
142# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
143# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
144#
145# Of course, Automake must honor this variable whenever it calls a
146# tool from the auxiliary directory.  The problem is that $srcdir (and
147# therefore $ac_aux_dir as well) can be either absolute or relative,
148# depending on how configure is run.  This is pretty annoying, since
149# it makes $ac_aux_dir quite unusable in subdirectories: in the top
150# source directory, any form will work fine, but in subdirectories a
151# relative path needs to be adjusted first.
152#
153# $ac_aux_dir/missing
154#    fails when called from a subdirectory if $ac_aux_dir is relative
155# $top_srcdir/$ac_aux_dir/missing
156#    fails if $ac_aux_dir is absolute,
157#    fails when called from a subdirectory in a VPATH build with
158#          a relative $ac_aux_dir
159#
160# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
161# are both prefixed by $srcdir.  In an in-source build this is usually
162# harmless because $srcdir is '.', but things will broke when you
163# start a VPATH build or use an absolute $srcdir.
164#
165# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
166# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
167#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
168# and then we would define $MISSING as
169#   MISSING="\${SHELL} $am_aux_dir/missing"
170# This will work as long as MISSING is not called from configure, because
171# unfortunately $(top_srcdir) has no meaning in configure.
172# However there are other variables, like CC, which are often used in
173# configure, and could therefore not use this "fixed" $ac_aux_dir.
174#
175# Another solution, used here, is to always expand $ac_aux_dir to an
176# absolute PATH.  The drawback is that using absolute paths prevent a
177# configured tree to be moved without reconfiguration.
178
179AC_DEFUN([AM_AUX_DIR_EXPAND],
180[dnl Rely on autoconf to set up CDPATH properly.
181AC_PREREQ([2.50])dnl
182# expand $ac_aux_dir to an absolute path
183am_aux_dir=`cd $ac_aux_dir && pwd`
184])
185
186# AM_CONDITIONAL                                            -*- Autoconf -*-
187
188# Copyright (C) 1997-2012 Free Software Foundation, Inc.
189#
190# This file is free software; the Free Software Foundation
191# gives unlimited permission to copy and/or distribute it,
192# with or without modifications, as long as this notice is preserved.
193
194# AM_CONDITIONAL(NAME, SHELL-CONDITION)
195# -------------------------------------
196# Define a conditional.
197AC_DEFUN([AM_CONDITIONAL],
198[AC_PREREQ([2.52])dnl
199 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
200       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
201AC_SUBST([$1_TRUE])dnl
202AC_SUBST([$1_FALSE])dnl
203_AM_SUBST_NOTMAKE([$1_TRUE])dnl
204_AM_SUBST_NOTMAKE([$1_FALSE])dnl
205m4_define([_AM_COND_VALUE_$1], [$2])dnl
206if $2; then
207  $1_TRUE=
208  $1_FALSE='#'
209else
210  $1_TRUE='#'
211  $1_FALSE=
212fi
213AC_CONFIG_COMMANDS_PRE(
214[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
215  AC_MSG_ERROR([[conditional "$1" was never defined.
216Usually this means the macro was only invoked conditionally.]])
217fi])])
218
219# Copyright (C) 1999-2012 Free Software Foundation, Inc.
220#
221# This file is free software; the Free Software Foundation
222# gives unlimited permission to copy and/or distribute it,
223# with or without modifications, as long as this notice is preserved.
224
225
226# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
227# written in clear, in which case automake, when reading aclocal.m4,
228# will think it sees a *use*, and therefore will trigger all it's
229# C support machinery.  Also note that it means that autoscan, seeing
230# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
231
232
233# _AM_DEPENDENCIES(NAME)
234# ----------------------
235# See how the compiler implements dependency checking.
236# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
237# We try a few techniques and use that to set a single cache variable.
238#
239# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
240# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
241# dependency, and given that the user is not expected to run this macro,
242# just rely on AC_PROG_CC.
243AC_DEFUN([_AM_DEPENDENCIES],
244[AC_REQUIRE([AM_SET_DEPDIR])dnl
245AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
246AC_REQUIRE([AM_MAKE_INCLUDE])dnl
247AC_REQUIRE([AM_DEP_TRACK])dnl
248
249m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
250      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
251      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
252      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
253      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
254      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
255                    [depcc="$$1"   am_compiler_list=])
256
257AC_CACHE_CHECK([dependency style of $depcc],
258               [am_cv_$1_dependencies_compiler_type],
259[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
260  # We make a subdir and do the tests there.  Otherwise we can end up
261  # making bogus files that we don't know about and never remove.  For
262  # instance it was reported that on HP-UX the gcc test will end up
263  # making a dummy file named 'D' -- because '-MD' means "put the output
264  # in D".
265  rm -rf conftest.dir
266  mkdir conftest.dir
267  # Copy depcomp to subdir because otherwise we won't find it if we're
268  # using a relative directory.
269  cp "$am_depcomp" conftest.dir
270  cd conftest.dir
271  # We will build objects and dependencies in a subdirectory because
272  # it helps to detect inapplicable dependency modes.  For instance
273  # both Tru64's cc and ICC support -MD to output dependencies as a
274  # side effect of compilation, but ICC will put the dependencies in
275  # the current directory while Tru64 will put them in the object
276  # directory.
277  mkdir sub
278
279  am_cv_$1_dependencies_compiler_type=none
280  if test "$am_compiler_list" = ""; then
281     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
282  fi
283  am__universal=false
284  m4_case([$1], [CC],
285    [case " $depcc " in #(
286     *\ -arch\ *\ -arch\ *) am__universal=true ;;
287     esac],
288    [CXX],
289    [case " $depcc " in #(
290     *\ -arch\ *\ -arch\ *) am__universal=true ;;
291     esac])
292
293  for depmode in $am_compiler_list; do
294    # Setup a source with many dependencies, because some compilers
295    # like to wrap large dependency lists on column 80 (with \), and
296    # we should not choose a depcomp mode which is confused by this.
297    #
298    # We need to recreate these files for each test, as the compiler may
299    # overwrite some of them when testing with obscure command lines.
300    # This happens at least with the AIX C compiler.
301    : > sub/conftest.c
302    for i in 1 2 3 4 5 6; do
303      echo '#include "conftst'$i'.h"' >> sub/conftest.c
304      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
305      # Solaris 10 /bin/sh.
306      echo '/* dummy */' > sub/conftst$i.h
307    done
308    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
309
310    # We check with '-c' and '-o' for the sake of the "dashmstdout"
311    # mode.  It turns out that the SunPro C++ compiler does not properly
312    # handle '-M -o', and we need to detect this.  Also, some Intel
313    # versions had trouble with output in subdirs.
314    am__obj=sub/conftest.${OBJEXT-o}
315    am__minus_obj="-o $am__obj"
316    case $depmode in
317    gcc)
318      # This depmode causes a compiler race in universal mode.
319      test "$am__universal" = false || continue
320      ;;
321    nosideeffect)
322      # After this tag, mechanisms are not by side-effect, so they'll
323      # only be used when explicitly requested.
324      if test "x$enable_dependency_tracking" = xyes; then
325	continue
326      else
327	break
328      fi
329      ;;
330    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
331      # This compiler won't grok '-c -o', but also, the minuso test has
332      # not run yet.  These depmodes are late enough in the game, and
333      # so weak that their functioning should not be impacted.
334      am__obj=conftest.${OBJEXT-o}
335      am__minus_obj=
336      ;;
337    none) break ;;
338    esac
339    if depmode=$depmode \
340       source=sub/conftest.c object=$am__obj \
341       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
342       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
343         >/dev/null 2>conftest.err &&
344       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
345       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
346       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
347       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
348      # icc doesn't choke on unknown options, it will just issue warnings
349      # or remarks (even with -Werror).  So we grep stderr for any message
350      # that says an option was ignored or not supported.
351      # When given -MP, icc 7.0 and 7.1 complain thusly:
352      #   icc: Command line warning: ignoring option '-M'; no argument required
353      # The diagnosis changed in icc 8.0:
354      #   icc: Command line remark: option '-MP' not supported
355      if (grep 'ignoring option' conftest.err ||
356          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
357        am_cv_$1_dependencies_compiler_type=$depmode
358        break
359      fi
360    fi
361  done
362
363  cd ..
364  rm -rf conftest.dir
365else
366  am_cv_$1_dependencies_compiler_type=none
367fi
368])
369AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
370AM_CONDITIONAL([am__fastdep$1], [
371  test "x$enable_dependency_tracking" != xno \
372  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
373])
374
375
376# AM_SET_DEPDIR
377# -------------
378# Choose a directory name for dependency files.
379# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
380AC_DEFUN([AM_SET_DEPDIR],
381[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
382AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
383])
384
385
386# AM_DEP_TRACK
387# ------------
388AC_DEFUN([AM_DEP_TRACK],
389[AC_ARG_ENABLE([dependency-tracking], [dnl
390AS_HELP_STRING(
391  [--enable-dependency-tracking],
392  [do not reject slow dependency extractors])
393AS_HELP_STRING(
394  [--disable-dependency-tracking],
395  [speeds up one-time build])])
396if test "x$enable_dependency_tracking" != xno; then
397  am_depcomp="$ac_aux_dir/depcomp"
398  AMDEPBACKSLASH='\'
399  am__nodep='_no'
400fi
401AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
402AC_SUBST([AMDEPBACKSLASH])dnl
403_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
404AC_SUBST([am__nodep])dnl
405_AM_SUBST_NOTMAKE([am__nodep])dnl
406])
407
408# Generate code to set up dependency tracking.              -*- Autoconf -*-
409
410# Copyright (C) 1999-2012 Free Software Foundation, Inc.
411#
412# This file is free software; the Free Software Foundation
413# gives unlimited permission to copy and/or distribute it,
414# with or without modifications, as long as this notice is preserved.
415
416
417# _AM_OUTPUT_DEPENDENCY_COMMANDS
418# ------------------------------
419AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
420[{
421  # Autoconf 2.62 quotes --file arguments for eval, but not when files
422  # are listed without --file.  Let's play safe and only enable the eval
423  # if we detect the quoting.
424  case $CONFIG_FILES in
425  *\'*) eval set x "$CONFIG_FILES" ;;
426  *)   set x $CONFIG_FILES ;;
427  esac
428  shift
429  for mf
430  do
431    # Strip MF so we end up with the name of the file.
432    mf=`echo "$mf" | sed -e 's/:.*$//'`
433    # Check whether this is an Automake generated Makefile or not.
434    # We used to match only the files named 'Makefile.in', but
435    # some people rename them; so instead we look at the file content.
436    # Grep'ing the first line is not enough: some people post-process
437    # each Makefile.in and add a new line on top of each file to say so.
438    # Grep'ing the whole file is not good either: AIX grep has a line
439    # limit of 2048, but all sed's we know have understand at least 4000.
440    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
441      dirpart=`AS_DIRNAME("$mf")`
442    else
443      continue
444    fi
445    # Extract the definition of DEPDIR, am__include, and am__quote
446    # from the Makefile without running 'make'.
447    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
448    test -z "$DEPDIR" && continue
449    am__include=`sed -n 's/^am__include = //p' < "$mf"`
450    test -z "am__include" && continue
451    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
452    # Find all dependency output files, they are included files with
453    # $(DEPDIR) in their names.  We invoke sed twice because it is the
454    # simplest approach to changing $(DEPDIR) to its actual value in the
455    # expansion.
456    for file in `sed -n "
457      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
458	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
459      # Make sure the directory exists.
460      test -f "$dirpart/$file" && continue
461      fdir=`AS_DIRNAME(["$file"])`
462      AS_MKDIR_P([$dirpart/$fdir])
463      # echo "creating $dirpart/$file"
464      echo '# dummy' > "$dirpart/$file"
465    done
466  done
467}
468])# _AM_OUTPUT_DEPENDENCY_COMMANDS
469
470
471# AM_OUTPUT_DEPENDENCY_COMMANDS
472# -----------------------------
473# This macro should only be invoked once -- use via AC_REQUIRE.
474#
475# This code is only required when automatic dependency tracking
476# is enabled.  FIXME.  This creates each '.P' file that we will
477# need in order to bootstrap the dependency handling code.
478AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
479[AC_CONFIG_COMMANDS([depfiles],
480     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
481     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
482])
483
484# Do all the work for Automake.                             -*- Autoconf -*-
485
486# Copyright (C) 1996-2012 Free Software Foundation, Inc.
487#
488# This file is free software; the Free Software Foundation
489# gives unlimited permission to copy and/or distribute it,
490# with or without modifications, as long as this notice is preserved.
491
492# This macro actually does too much.  Some checks are only needed if
493# your package does certain things.  But this isn't really a big deal.
494
495# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
496# AM_INIT_AUTOMAKE([OPTIONS])
497# -----------------------------------------------
498# The call with PACKAGE and VERSION arguments is the old style
499# call (pre autoconf-2.50), which is being phased out.  PACKAGE
500# and VERSION should now be passed to AC_INIT and removed from
501# the call to AM_INIT_AUTOMAKE.
502# We support both call styles for the transition.  After
503# the next Automake release, Autoconf can make the AC_INIT
504# arguments mandatory, and then we can depend on a new Autoconf
505# release and drop the old call support.
506AC_DEFUN([AM_INIT_AUTOMAKE],
507[AC_PREREQ([2.62])dnl
508dnl Autoconf wants to disallow AM_ names.  We explicitly allow
509dnl the ones we care about.
510m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
511AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
512AC_REQUIRE([AC_PROG_INSTALL])dnl
513if test "`cd $srcdir && pwd`" != "`pwd`"; then
514  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
515  # is not polluted with repeated "-I."
516  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
517  # test to see if srcdir already configured
518  if test -f $srcdir/config.status; then
519    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
520  fi
521fi
522
523# test whether we have cygpath
524if test -z "$CYGPATH_W"; then
525  if (cygpath --version) >/dev/null 2>/dev/null; then
526    CYGPATH_W='cygpath -w'
527  else
528    CYGPATH_W=echo
529  fi
530fi
531AC_SUBST([CYGPATH_W])
532
533# Define the identity of the package.
534dnl Distinguish between old-style and new-style calls.
535m4_ifval([$2],
536[AC_DIAGNOSE([obsolete],
537[$0: two- and three-arguments forms are deprecated.  For more info, see:
538http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
539m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
540 AC_SUBST([PACKAGE], [$1])dnl
541 AC_SUBST([VERSION], [$2])],
542[_AM_SET_OPTIONS([$1])dnl
543dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
544m4_if(
545  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
546  [ok:ok],,
547  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
548 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
549 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
550
551_AM_IF_OPTION([no-define],,
552[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
553 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
554
555# Some tools Automake needs.
556AC_REQUIRE([AM_SANITY_CHECK])dnl
557AC_REQUIRE([AC_ARG_PROGRAM])dnl
558AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
559AM_MISSING_PROG([AUTOCONF], [autoconf])
560AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
561AM_MISSING_PROG([AUTOHEADER], [autoheader])
562AM_MISSING_PROG([MAKEINFO], [makeinfo])
563AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
564AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
565AC_REQUIRE([AC_PROG_MKDIR_P])dnl
566# For better backward compatibility.  To be removed once Automake 1.9.x
567# dies out for good.  For more background, see:
568# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
569# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
570AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
571# We need awk for the "check" target.  The system "awk" is bad on
572# some platforms.
573AC_REQUIRE([AC_PROG_AWK])dnl
574AC_REQUIRE([AC_PROG_MAKE_SET])dnl
575AC_REQUIRE([AM_SET_LEADING_DOT])dnl
576_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
577	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
578			     [_AM_PROG_TAR([v7])])])
579_AM_IF_OPTION([no-dependencies],,
580[AC_PROVIDE_IFELSE([AC_PROG_CC],
581		  [_AM_DEPENDENCIES([CC])],
582		  [m4_define([AC_PROG_CC],
583			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
584AC_PROVIDE_IFELSE([AC_PROG_CXX],
585		  [_AM_DEPENDENCIES([CXX])],
586		  [m4_define([AC_PROG_CXX],
587			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
588AC_PROVIDE_IFELSE([AC_PROG_OBJC],
589		  [_AM_DEPENDENCIES([OBJC])],
590		  [m4_define([AC_PROG_OBJC],
591			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
592dnl Support for Objective C++ was only introduced in Autoconf 2.65,
593dnl but we still cater to Autoconf 2.62.
594m4_ifdef([AC_PROG_OBJCXX],
595[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
596		  [_AM_DEPENDENCIES([OBJCXX])],
597		  [m4_define([AC_PROG_OBJCXX],
598			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
599])
600_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
601dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
602dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
603dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
604AC_CONFIG_COMMANDS_PRE(dnl
605[m4_provide_if([_AM_COMPILER_EXEEXT],
606  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
607])
608
609dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
610dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
611dnl mangled by Autoconf and run in a shell conditional statement.
612m4_define([_AC_COMPILER_EXEEXT],
613m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
614
615
616# When config.status generates a header, we must update the stamp-h file.
617# This file resides in the same directory as the config header
618# that is generated.  The stamp files are numbered to have different names.
619
620# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
621# loop where config.status creates the headers, so we can generate
622# our stamp files there.
623AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
624[# Compute $1's index in $config_headers.
625_am_arg=$1
626_am_stamp_count=1
627for _am_header in $config_headers :; do
628  case $_am_header in
629    $_am_arg | $_am_arg:* )
630      break ;;
631    * )
632      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
633  esac
634done
635echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
636
637# Copyright (C) 2001-2012 Free Software Foundation, Inc.
638#
639# This file is free software; the Free Software Foundation
640# gives unlimited permission to copy and/or distribute it,
641# with or without modifications, as long as this notice is preserved.
642
643# AM_PROG_INSTALL_SH
644# ------------------
645# Define $install_sh.
646AC_DEFUN([AM_PROG_INSTALL_SH],
647[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
648if test x"${install_sh}" != xset; then
649  case $am_aux_dir in
650  *\ * | *\	*)
651    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
652  *)
653    install_sh="\${SHELL} $am_aux_dir/install-sh"
654  esac
655fi
656AC_SUBST([install_sh])])
657
658# Copyright (C) 2003-2012 Free Software Foundation, Inc.
659#
660# This file is free software; the Free Software Foundation
661# gives unlimited permission to copy and/or distribute it,
662# with or without modifications, as long as this notice is preserved.
663
664# Check whether the underlying file-system supports filenames
665# with a leading dot.  For instance MS-DOS doesn't.
666AC_DEFUN([AM_SET_LEADING_DOT],
667[rm -rf .tst 2>/dev/null
668mkdir .tst 2>/dev/null
669if test -d .tst; then
670  am__leading_dot=.
671else
672  am__leading_dot=_
673fi
674rmdir .tst 2>/dev/null
675AC_SUBST([am__leading_dot])])
676
677# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
678# From Jim Meyering
679
680# Copyright (C) 1996-2012 Free Software Foundation, Inc.
681#
682# This file is free software; the Free Software Foundation
683# gives unlimited permission to copy and/or distribute it,
684# with or without modifications, as long as this notice is preserved.
685
686# AM_MAINTAINER_MODE([DEFAULT-MODE])
687# ----------------------------------
688# Control maintainer-specific portions of Makefiles.
689# Default is to disable them, unless 'enable' is passed literally.
690# For symmetry, 'disable' may be passed as well.  Anyway, the user
691# can override the default with the --enable/--disable switch.
692AC_DEFUN([AM_MAINTAINER_MODE],
693[m4_case(m4_default([$1], [disable]),
694       [enable], [m4_define([am_maintainer_other], [disable])],
695       [disable], [m4_define([am_maintainer_other], [enable])],
696       [m4_define([am_maintainer_other], [enable])
697        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
698AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
699  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
700  AC_ARG_ENABLE([maintainer-mode],
701    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
702      am_maintainer_other[ make rules and dependencies not useful
703      (and sometimes confusing) to the casual installer])],
704    [USE_MAINTAINER_MODE=$enableval],
705    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
706  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
707  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
708  MAINT=$MAINTAINER_MODE_TRUE
709  AC_SUBST([MAINT])dnl
710]
711)
712
713AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
714
715# Check to see how 'make' treats includes.	            -*- Autoconf -*-
716
717# Copyright (C) 2001-2012 Free Software Foundation, Inc.
718#
719# This file is free software; the Free Software Foundation
720# gives unlimited permission to copy and/or distribute it,
721# with or without modifications, as long as this notice is preserved.
722
723# AM_MAKE_INCLUDE()
724# -----------------
725# Check to see how make treats includes.
726AC_DEFUN([AM_MAKE_INCLUDE],
727[am_make=${MAKE-make}
728cat > confinc << 'END'
729am__doit:
730	@echo this is the am__doit target
731.PHONY: am__doit
732END
733# If we don't find an include directive, just comment out the code.
734AC_MSG_CHECKING([for style of include used by $am_make])
735am__include="#"
736am__quote=
737_am_result=none
738# First try GNU make style include.
739echo "include confinc" > confmf
740# Ignore all kinds of additional output from 'make'.
741case `$am_make -s -f confmf 2> /dev/null` in #(
742*the\ am__doit\ target*)
743  am__include=include
744  am__quote=
745  _am_result=GNU
746  ;;
747esac
748# Now try BSD make style include.
749if test "$am__include" = "#"; then
750   echo '.include "confinc"' > confmf
751   case `$am_make -s -f confmf 2> /dev/null` in #(
752   *the\ am__doit\ target*)
753     am__include=.include
754     am__quote="\""
755     _am_result=BSD
756     ;;
757   esac
758fi
759AC_SUBST([am__include])
760AC_SUBST([am__quote])
761AC_MSG_RESULT([$_am_result])
762rm -f confinc confmf
763])
764
765# Copyright (C) 1999-2012 Free Software Foundation, Inc.
766#
767# This file is free software; the Free Software Foundation
768# gives unlimited permission to copy and/or distribute it,
769# with or without modifications, as long as this notice is preserved.
770
771# AM_PROG_CC_C_O
772# --------------
773# Like AC_PROG_CC_C_O, but changed for automake.
774AC_DEFUN([AM_PROG_CC_C_O],
775[AC_REQUIRE([AC_PROG_CC_C_O])dnl
776AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
777AC_REQUIRE_AUX_FILE([compile])dnl
778# FIXME: we rely on the cache variable name because
779# there is no other way.
780set dummy $CC
781am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
782eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
783if test "$am_t" != yes; then
784   # Losing compiler, so override with the script.
785   # FIXME: It is wrong to rewrite CC.
786   # But if we don't then we get into trouble of one sort or another.
787   # A longer-term fix would be to have automake use am__CC in this case,
788   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
789   CC="$am_aux_dir/compile $CC"
790fi
791dnl Make sure AC_PROG_CC is never called again, or it will override our
792dnl setting of CC.
793m4_define([AC_PROG_CC],
794          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
795])
796
797# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
798
799# Copyright (C) 1997-2012 Free Software Foundation, Inc.
800#
801# This file is free software; the Free Software Foundation
802# gives unlimited permission to copy and/or distribute it,
803# with or without modifications, as long as this notice is preserved.
804
805# AM_MISSING_PROG(NAME, PROGRAM)
806# ------------------------------
807AC_DEFUN([AM_MISSING_PROG],
808[AC_REQUIRE([AM_MISSING_HAS_RUN])
809$1=${$1-"${am_missing_run}$2"}
810AC_SUBST($1)])
811
812# AM_MISSING_HAS_RUN
813# ------------------
814# Define MISSING if not defined so far and test if it supports --run.
815# If it does, set am_missing_run to use it, otherwise, to nothing.
816AC_DEFUN([AM_MISSING_HAS_RUN],
817[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
818AC_REQUIRE_AUX_FILE([missing])dnl
819if test x"${MISSING+set}" != xset; then
820  case $am_aux_dir in
821  *\ * | *\	*)
822    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
823  *)
824    MISSING="\${SHELL} $am_aux_dir/missing" ;;
825  esac
826fi
827# Use eval to expand $SHELL
828if eval "$MISSING --run true"; then
829  am_missing_run="$MISSING --run "
830else
831  am_missing_run=
832  AC_MSG_WARN(['missing' script is too old or missing])
833fi
834])
835
836# Helper functions for option handling.                     -*- Autoconf -*-
837
838# Copyright (C) 2001-2012 Free Software Foundation, Inc.
839#
840# This file is free software; the Free Software Foundation
841# gives unlimited permission to copy and/or distribute it,
842# with or without modifications, as long as this notice is preserved.
843
844# _AM_MANGLE_OPTION(NAME)
845# -----------------------
846AC_DEFUN([_AM_MANGLE_OPTION],
847[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
848
849# _AM_SET_OPTION(NAME)
850# --------------------
851# Set option NAME.  Presently that only means defining a flag for this option.
852AC_DEFUN([_AM_SET_OPTION],
853[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
854
855# _AM_SET_OPTIONS(OPTIONS)
856# ------------------------
857# OPTIONS is a space-separated list of Automake options.
858AC_DEFUN([_AM_SET_OPTIONS],
859[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
860
861# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
862# -------------------------------------------
863# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
864AC_DEFUN([_AM_IF_OPTION],
865[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
866
867# Check to make sure that the build environment is sane.    -*- Autoconf -*-
868
869# Copyright (C) 1996-2012 Free Software Foundation, Inc.
870#
871# This file is free software; the Free Software Foundation
872# gives unlimited permission to copy and/or distribute it,
873# with or without modifications, as long as this notice is preserved.
874
875# AM_SANITY_CHECK
876# ---------------
877AC_DEFUN([AM_SANITY_CHECK],
878[AC_MSG_CHECKING([whether build environment is sane])
879# Reject unsafe characters in $srcdir or the absolute working directory
880# name.  Accept space and tab only in the latter.
881am_lf='
882'
883case `pwd` in
884  *[[\\\"\#\$\&\'\`$am_lf]]*)
885    AC_MSG_ERROR([unsafe absolute working directory name]);;
886esac
887case $srcdir in
888  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
889    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
890esac
891
892# Do 'set' in a subshell so we don't clobber the current shell's
893# arguments.  Must try -L first in case configure is actually a
894# symlink; some systems play weird games with the mod time of symlinks
895# (eg FreeBSD returns the mod time of the symlink's containing
896# directory).
897if (
898   am_has_slept=no
899   for am_try in 1 2; do
900     echo "timestamp, slept: $am_has_slept" > conftest.file
901     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
902     if test "$[*]" = "X"; then
903	# -L didn't work.
904	set X `ls -t "$srcdir/configure" conftest.file`
905     fi
906     if test "$[*]" != "X $srcdir/configure conftest.file" \
907	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
908
909	# If neither matched, then we have a broken ls.  This can happen
910	# if, for instance, CONFIG_SHELL is bash and it inherits a
911	# broken ls alias from the environment.  This has actually
912	# happened.  Such a system could not be considered "sane".
913	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
914  alias in your environment])
915     fi
916     if test "$[2]" = conftest.file || test $am_try -eq 2; then
917       break
918     fi
919     # Just in case.
920     sleep 1
921     am_has_slept=yes
922   done
923   test "$[2]" = conftest.file
924   )
925then
926   # Ok.
927   :
928else
929   AC_MSG_ERROR([newly created file is older than distributed files!
930Check your system clock])
931fi
932AC_MSG_RESULT([yes])
933# If we didn't sleep, we still need to ensure time stamps of config.status and
934# generated files are strictly newer.
935am_sleep_pid=
936if grep 'slept: no' conftest.file >/dev/null 2>&1; then
937  ( sleep 1 ) &
938  am_sleep_pid=$!
939fi
940AC_CONFIG_COMMANDS_PRE(
941  [AC_MSG_CHECKING([that generated files are newer than configure])
942   if test -n "$am_sleep_pid"; then
943     # Hide warnings about reused PIDs.
944     wait $am_sleep_pid 2>/dev/null
945   fi
946   AC_MSG_RESULT([done])])
947rm -f conftest.file
948])
949
950# Copyright (C) 2009-2012 Free Software Foundation, Inc.
951#
952# This file is free software; the Free Software Foundation
953# gives unlimited permission to copy and/or distribute it,
954# with or without modifications, as long as this notice is preserved.
955
956# AM_SILENT_RULES([DEFAULT])
957# --------------------------
958# Enable less verbose build rules; with the default set to DEFAULT
959# ("yes" being less verbose, "no" or empty being verbose).
960AC_DEFUN([AM_SILENT_RULES],
961[AC_ARG_ENABLE([silent-rules], [dnl
962AS_HELP_STRING(
963  [--enable-silent-rules],
964  [less verbose build output (undo: "make V=1")])
965AS_HELP_STRING(
966  [--disable-silent-rules],
967  [verbose build output (undo: "make V=0")])dnl
968])
969case $enable_silent_rules in @%:@ (((
970  yes) AM_DEFAULT_VERBOSITY=0;;
971   no) AM_DEFAULT_VERBOSITY=1;;
972    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
973esac
974dnl
975dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
976dnl do not support nested variable expansions.
977dnl See automake bug#9928 and bug#10237.
978am_make=${MAKE-make}
979AC_CACHE_CHECK([whether $am_make supports nested variables],
980   [am_cv_make_support_nested_variables],
981   [if AS_ECHO([['TRUE=$(BAR$(V))
982BAR0=false
983BAR1=true
984V=1
985am__doit:
986	@$(TRUE)
987.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
988  am_cv_make_support_nested_variables=yes
989else
990  am_cv_make_support_nested_variables=no
991fi])
992if test $am_cv_make_support_nested_variables = yes; then
993  dnl Using '$V' instead of '$(V)' breaks IRIX make.
994  AM_V='$(V)'
995  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
996else
997  AM_V=$AM_DEFAULT_VERBOSITY
998  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
999fi
1000AC_SUBST([AM_V])dnl
1001AM_SUBST_NOTMAKE([AM_V])dnl
1002AC_SUBST([AM_DEFAULT_V])dnl
1003AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1004AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1005AM_BACKSLASH='\'
1006AC_SUBST([AM_BACKSLASH])dnl
1007_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1008])
1009
1010# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1011#
1012# This file is free software; the Free Software Foundation
1013# gives unlimited permission to copy and/or distribute it,
1014# with or without modifications, as long as this notice is preserved.
1015
1016# AM_PROG_INSTALL_STRIP
1017# ---------------------
1018# One issue with vendor 'install' (even GNU) is that you can't
1019# specify the program used to strip binaries.  This is especially
1020# annoying in cross-compiling environments, where the build's strip
1021# is unlikely to handle the host's binaries.
1022# Fortunately install-sh will honor a STRIPPROG variable, so we
1023# always use install-sh in "make install-strip", and initialize
1024# STRIPPROG with the value of the STRIP variable (set by the user).
1025AC_DEFUN([AM_PROG_INSTALL_STRIP],
1026[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1027# Installed binaries are usually stripped using 'strip' when the user
1028# run "make install-strip".  However 'strip' might not be the right
1029# tool to use in cross-compilation environments, therefore Automake
1030# will honor the 'STRIP' environment variable to overrule this program.
1031dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1032if test "$cross_compiling" != no; then
1033  AC_CHECK_TOOL([STRIP], [strip], :)
1034fi
1035INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1036AC_SUBST([INSTALL_STRIP_PROGRAM])])
1037
1038# Copyright (C) 2006-2012 Free Software Foundation, Inc.
1039#
1040# This file is free software; the Free Software Foundation
1041# gives unlimited permission to copy and/or distribute it,
1042# with or without modifications, as long as this notice is preserved.
1043
1044# _AM_SUBST_NOTMAKE(VARIABLE)
1045# ---------------------------
1046# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1047# This macro is traced by Automake.
1048AC_DEFUN([_AM_SUBST_NOTMAKE])
1049
1050# AM_SUBST_NOTMAKE(VARIABLE)
1051# --------------------------
1052# Public sister of _AM_SUBST_NOTMAKE.
1053AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1054
1055# Check how to create a tarball.                            -*- Autoconf -*-
1056
1057# Copyright (C) 2004-2012 Free Software Foundation, Inc.
1058#
1059# This file is free software; the Free Software Foundation
1060# gives unlimited permission to copy and/or distribute it,
1061# with or without modifications, as long as this notice is preserved.
1062
1063# _AM_PROG_TAR(FORMAT)
1064# --------------------
1065# Check how to create a tarball in format FORMAT.
1066# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1067#
1068# Substitute a variable $(am__tar) that is a command
1069# writing to stdout a FORMAT-tarball containing the directory
1070# $tardir.
1071#     tardir=directory && $(am__tar) > result.tar
1072#
1073# Substitute a variable $(am__untar) that extract such
1074# a tarball read from stdin.
1075#     $(am__untar) < result.tar
1076AC_DEFUN([_AM_PROG_TAR],
1077[# Always define AMTAR for backward compatibility.  Yes, it's still used
1078# in the wild :-(  We should find a proper way to deprecate it ...
1079AC_SUBST([AMTAR], ['$${TAR-tar}'])
1080m4_if([$1], [v7],
1081     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1082     [m4_case([$1], [ustar],, [pax],,
1083              [m4_fatal([Unknown tar format])])
1084AC_MSG_CHECKING([how to create a $1 tar archive])
1085# Loop over all known methods to create a tar archive until one works.
1086_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1087_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1088# Do not fold the above two line into one, because Tru64 sh and
1089# Solaris sh will not grok spaces in the rhs of '-'.
1090for _am_tool in $_am_tools
1091do
1092  case $_am_tool in
1093  gnutar)
1094    for _am_tar in tar gnutar gtar;
1095    do
1096      AM_RUN_LOG([$_am_tar --version]) && break
1097    done
1098    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1099    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1100    am__untar="$_am_tar -xf -"
1101    ;;
1102  plaintar)
1103    # Must skip GNU tar: if it does not support --format= it doesn't create
1104    # ustar tarball either.
1105    (tar --version) >/dev/null 2>&1 && continue
1106    am__tar='tar chf - "$$tardir"'
1107    am__tar_='tar chf - "$tardir"'
1108    am__untar='tar xf -'
1109    ;;
1110  pax)
1111    am__tar='pax -L -x $1 -w "$$tardir"'
1112    am__tar_='pax -L -x $1 -w "$tardir"'
1113    am__untar='pax -r'
1114    ;;
1115  cpio)
1116    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1117    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1118    am__untar='cpio -i -H $1 -d'
1119    ;;
1120  none)
1121    am__tar=false
1122    am__tar_=false
1123    am__untar=false
1124    ;;
1125  esac
1126
1127  # If the value was cached, stop now.  We just wanted to have am__tar
1128  # and am__untar set.
1129  test -n "${am_cv_prog_tar_$1}" && break
1130
1131  # tar/untar a dummy directory, and stop if the command works
1132  rm -rf conftest.dir
1133  mkdir conftest.dir
1134  echo GrepMe > conftest.dir/file
1135  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1136  rm -rf conftest.dir
1137  if test -s conftest.tar; then
1138    AM_RUN_LOG([$am__untar <conftest.tar])
1139    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1140  fi
1141done
1142rm -rf conftest.dir
1143
1144AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1145AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1146AC_SUBST([am__tar])
1147AC_SUBST([am__untar])
1148]) # _AM_PROG_TAR
1149
1150m4_include([m4/libtool.m4])
1151m4_include([m4/ltoptions.m4])
1152m4_include([m4/ltsugar.m4])
1153m4_include([m4/ltversion.m4])
1154m4_include([m4/lt~obsolete.m4])
1155m4_include([acinclude.m4])
1156