source: aclocal.m4 @ bb91487

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since bb91487 was 9def87a, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Added macros to select build target in configure

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