1169691Skan# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
297403Sobrien
3169691Skan# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4169691Skan# 2005  Free Software Foundation, Inc.
5132720Skan# This file is free software; the Free Software Foundation
6132720Skan# gives unlimited permission to copy and/or distribute it,
7132720Skan# with or without modifications, as long as this notice is preserved.
897403Sobrien
9132720Skan# This program is distributed in the hope that it will be useful,
10132720Skan# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11132720Skan# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12132720Skan# PARTICULAR PURPOSE.
1397403Sobrien
14169691Skan# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
15169691Skan#
16169691Skan# This file is free software; the Free Software Foundation
17169691Skan# gives unlimited permission to copy and/or distribute it,
18169691Skan# with or without modifications, as long as this notice is preserved.
19132720Skan
20169691Skan# AM_AUTOMAKE_VERSION(VERSION)
21169691Skan# ----------------------------
22169691Skan# Automake X.Y traces this macro to ensure aclocal.m4 has been
23169691Skan# generated from the m4 files accompanying Automake X.Y.
24169691SkanAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
2597403Sobrien
26169691Skan# AM_SET_CURRENT_AUTOMAKE_VERSION
27169691Skan# -------------------------------
28169691Skan# Call AM_AUTOMAKE_VERSION so it can be traced.
29169691Skan# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30169691SkanAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31169691Skan	 [AM_AUTOMAKE_VERSION([1.9.6])])
32132720Skan
33169691Skan# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
34132720Skan
35169691Skan# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
36169691Skan#
37169691Skan# This file is free software; the Free Software Foundation
38169691Skan# gives unlimited permission to copy and/or distribute it,
39169691Skan# with or without modifications, as long as this notice is preserved.
40132720Skan
41169691Skan# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
42169691Skan# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
43169691Skan# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
44169691Skan#
45169691Skan# Of course, Automake must honor this variable whenever it calls a
46169691Skan# tool from the auxiliary directory.  The problem is that $srcdir (and
47169691Skan# therefore $ac_aux_dir as well) can be either absolute or relative,
48169691Skan# depending on how configure is run.  This is pretty annoying, since
49169691Skan# it makes $ac_aux_dir quite unusable in subdirectories: in the top
50169691Skan# source directory, any form will work fine, but in subdirectories a
51169691Skan# relative path needs to be adjusted first.
52169691Skan#
53169691Skan# $ac_aux_dir/missing
54169691Skan#    fails when called from a subdirectory if $ac_aux_dir is relative
55169691Skan# $top_srcdir/$ac_aux_dir/missing
56169691Skan#    fails if $ac_aux_dir is absolute,
57169691Skan#    fails when called from a subdirectory in a VPATH build with
58169691Skan#          a relative $ac_aux_dir
59169691Skan#
60169691Skan# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
61169691Skan# are both prefixed by $srcdir.  In an in-source build this is usually
62169691Skan# harmless because $srcdir is `.', but things will broke when you
63169691Skan# start a VPATH build or use an absolute $srcdir.
64169691Skan#
65169691Skan# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
66169691Skan# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
67169691Skan#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
68169691Skan# and then we would define $MISSING as
69169691Skan#   MISSING="\${SHELL} $am_aux_dir/missing"
70169691Skan# This will work as long as MISSING is not called from configure, because
71169691Skan# unfortunately $(top_srcdir) has no meaning in configure.
72169691Skan# However there are other variables, like CC, which are often used in
73169691Skan# configure, and could therefore not use this "fixed" $ac_aux_dir.
74169691Skan#
75169691Skan# Another solution, used here, is to always expand $ac_aux_dir to an
76169691Skan# absolute PATH.  The drawback is that using absolute paths prevent a
77169691Skan# configured tree to be moved without reconfiguration.
78132720Skan
79169691SkanAC_DEFUN([AM_AUX_DIR_EXPAND],
80169691Skan[dnl Rely on autoconf to set up CDPATH properly.
81169691SkanAC_PREREQ([2.50])dnl
82169691Skan# expand $ac_aux_dir to an absolute path
83169691Skanam_aux_dir=`cd $ac_aux_dir && pwd`
84102782Skan])
8597403Sobrien
86169691Skan# AM_CONDITIONAL                                            -*- Autoconf -*-
87132720Skan
88169691Skan# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89169691Skan# Free Software Foundation, Inc.
9097403Sobrien#
91169691Skan# This file is free software; the Free Software Foundation
92169691Skan# gives unlimited permission to copy and/or distribute it,
93169691Skan# with or without modifications, as long as this notice is preserved.
9497403Sobrien
95169691Skan# serial 7
9697403Sobrien
97132720Skan# AM_CONDITIONAL(NAME, SHELL-CONDITION)
98132720Skan# -------------------------------------
99132720Skan# Define a conditional.
100132720SkanAC_DEFUN([AM_CONDITIONAL],
101169691Skan[AC_PREREQ(2.52)dnl
102169691Skan ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
103169691Skan	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
104132720SkanAC_SUBST([$1_TRUE])
105132720SkanAC_SUBST([$1_FALSE])
106132720Skanif $2; then
107132720Skan  $1_TRUE=
108132720Skan  $1_FALSE='#'
109132720Skanelse
110132720Skan  $1_TRUE='#'
111132720Skan  $1_FALSE=
11297403Sobrienfi
113132720SkanAC_CONFIG_COMMANDS_PRE(
114132720Skan[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
115169691Skan  AC_MSG_ERROR([[conditional "$1" was never defined.
116169691SkanUsually this means the macro was only invoked conditionally.]])
117132720Skanfi])])
11897403Sobrien
119169691Skan# Do all the work for Automake.                             -*- Autoconf -*-
12097403Sobrien
121169691Skan# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
122169691Skan# Free Software Foundation, Inc.
123169691Skan#
124169691Skan# This file is free software; the Free Software Foundation
125169691Skan# gives unlimited permission to copy and/or distribute it,
126169691Skan# with or without modifications, as long as this notice is preserved.
12797403Sobrien
128169691Skan# serial 12
12997403Sobrien
130169691Skan# This macro actually does too much.  Some checks are only needed if
131132720Skan# your package does certain things.  But this isn't really a big deal.
13297403Sobrien
133132720Skan# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
134132720Skan# AM_INIT_AUTOMAKE([OPTIONS])
135132720Skan# -----------------------------------------------
136132720Skan# The call with PACKAGE and VERSION arguments is the old style
137132720Skan# call (pre autoconf-2.50), which is being phased out.  PACKAGE
138132720Skan# and VERSION should now be passed to AC_INIT and removed from
139132720Skan# the call to AM_INIT_AUTOMAKE.
140132720Skan# We support both call styles for the transition.  After
141132720Skan# the next Automake release, Autoconf can make the AC_INIT
142132720Skan# arguments mandatory, and then we can depend on a new Autoconf
143132720Skan# release and drop the old call support.
14497403SobrienAC_DEFUN([AM_INIT_AUTOMAKE],
145169691Skan[AC_PREREQ([2.58])dnl
146169691Skandnl Autoconf wants to disallow AM_ names.  We explicitly allow
147169691Skandnl the ones we care about.
148169691Skanm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
149169691SkanAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
150169691SkanAC_REQUIRE([AC_PROG_INSTALL])dnl
151132720Skan# test to see if srcdir already configured
152132720Skanif test "`cd $srcdir && pwd`" != "`pwd`" &&
153132720Skan   test -f $srcdir/config.status; then
15497403Sobrien  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
15597403Sobrienfi
15697403Sobrien
157132720Skan# test whether we have cygpath
158132720Skanif test -z "$CYGPATH_W"; then
159132720Skan  if (cygpath --version) >/dev/null 2>/dev/null; then
160132720Skan    CYGPATH_W='cygpath -w'
161132720Skan  else
162132720Skan    CYGPATH_W=echo
163132720Skan  fi
164132720Skanfi
165132720SkanAC_SUBST([CYGPATH_W])
166132720Skan
167132720Skan# Define the identity of the package.
168132720Skandnl Distinguish between old-style and new-style calls.
169132720Skanm4_ifval([$2],
170132720Skan[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
171132720Skan AC_SUBST([PACKAGE], [$1])dnl
172132720Skan AC_SUBST([VERSION], [$2])],
173132720Skan[_AM_SET_OPTIONS([$1])dnl
174132720Skan AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
175132720Skan AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
176132720Skan
177132720Skan_AM_IF_OPTION([no-define],,
178132720Skan[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
179132720Skan AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
180132720Skan
181132720Skan# Some tools Automake needs.
182132720SkanAC_REQUIRE([AM_SANITY_CHECK])dnl
183132720SkanAC_REQUIRE([AC_ARG_PROGRAM])dnl
184132720SkanAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
185132720SkanAM_MISSING_PROG(AUTOCONF, autoconf)
186132720SkanAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
187132720SkanAM_MISSING_PROG(AUTOHEADER, autoheader)
188132720SkanAM_MISSING_PROG(MAKEINFO, makeinfo)
189132720SkanAM_PROG_INSTALL_SH
190132720SkanAM_PROG_INSTALL_STRIP
191169691SkanAC_REQUIRE([AM_PROG_MKDIR_P])dnl
192132720Skan# We need awk for the "check" target.  The system "awk" is bad on
193132720Skan# some platforms.
194132720SkanAC_REQUIRE([AC_PROG_AWK])dnl
195132720SkanAC_REQUIRE([AC_PROG_MAKE_SET])dnl
196132720SkanAC_REQUIRE([AM_SET_LEADING_DOT])dnl
197169691Skan_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
198169691Skan              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
199169691Skan	      		     [_AM_PROG_TAR([v7])])])
200132720Skan_AM_IF_OPTION([no-dependencies],,
201132720Skan[AC_PROVIDE_IFELSE([AC_PROG_CC],
202132720Skan                  [_AM_DEPENDENCIES(CC)],
203132720Skan                  [define([AC_PROG_CC],
204132720Skan                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
205132720SkanAC_PROVIDE_IFELSE([AC_PROG_CXX],
206132720Skan                  [_AM_DEPENDENCIES(CXX)],
207132720Skan                  [define([AC_PROG_CXX],
208132720Skan                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
209132720Skan])
210132720Skan])
211132720Skan
212132720Skan
213132720Skan# When config.status generates a header, we must update the stamp-h file.
214132720Skan# This file resides in the same directory as the config header
215132720Skan# that is generated.  The stamp files are numbered to have different names.
216132720Skan
217132720Skan# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
218132720Skan# loop where config.status creates the headers, so we can generate
219132720Skan# our stamp files there.
220132720SkanAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
221132720Skan[# Compute $1's index in $config_headers.
222132720Skan_am_stamp_count=1
223132720Skanfor _am_header in $config_headers :; do
224132720Skan  case $_am_header in
225132720Skan    $1 | $1:* )
226132720Skan      break ;;
227132720Skan    * )
228132720Skan      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
229132720Skan  esac
230132720Skandone
231132720Skanecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
232132720Skan
233169691Skan# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
234169691Skan#
235169691Skan# This file is free software; the Free Software Foundation
236169691Skan# gives unlimited permission to copy and/or distribute it,
237169691Skan# with or without modifications, as long as this notice is preserved.
238110614Skan
239169691Skan# AM_PROG_INSTALL_SH
240169691Skan# ------------------
241169691Skan# Define $install_sh.
242169691SkanAC_DEFUN([AM_PROG_INSTALL_SH],
243169691Skan[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
244169691Skaninstall_sh=${install_sh-"$am_aux_dir/install-sh"}
245169691SkanAC_SUBST(install_sh)])
246110614Skan
247169691Skan# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
248169691Skan# From Jim Meyering
249110614Skan
250169691Skan# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
251169691Skan# Free Software Foundation, Inc.
252169691Skan#
253169691Skan# This file is free software; the Free Software Foundation
254169691Skan# gives unlimited permission to copy and/or distribute it,
255169691Skan# with or without modifications, as long as this notice is preserved.
256110614Skan
257169691Skan# serial 4
258110614Skan
259169691SkanAC_DEFUN([AM_MAINTAINER_MODE],
260169691Skan[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
261169691Skan  dnl maintainer-mode is disabled by default
262169691Skan  AC_ARG_ENABLE(maintainer-mode,
263169691Skan[  --enable-maintainer-mode  enable make rules and dependencies not useful
264169691Skan			  (and sometimes confusing) to the casual installer],
265169691Skan      USE_MAINTAINER_MODE=$enableval,
266169691Skan      USE_MAINTAINER_MODE=no)
267169691Skan  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
268169691Skan  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
269169691Skan  MAINT=$MAINTAINER_MODE_TRUE
270169691Skan  AC_SUBST(MAINT)dnl
271169691Skan]
272169691Skan)
273110614Skan
274169691SkanAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
275132720Skan
276169691Skan# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
277132720Skan
278169691Skan# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
279169691Skan# Free Software Foundation, Inc.
280169691Skan#
281169691Skan# This file is free software; the Free Software Foundation
282169691Skan# gives unlimited permission to copy and/or distribute it,
283169691Skan# with or without modifications, as long as this notice is preserved.
284132720Skan
285169691Skan# serial 4
286132720Skan
287169691Skan# AM_MISSING_PROG(NAME, PROGRAM)
288169691Skan# ------------------------------
289169691SkanAC_DEFUN([AM_MISSING_PROG],
290169691Skan[AC_REQUIRE([AM_MISSING_HAS_RUN])
291169691Skan$1=${$1-"${am_missing_run}$2"}
292169691SkanAC_SUBST($1)])
293132720Skan
294132720Skan
295169691Skan# AM_MISSING_HAS_RUN
296169691Skan# ------------------
297169691Skan# Define MISSING if not defined so far and test if it supports --run.
298169691Skan# If it does, set am_missing_run to use it, otherwise, to nothing.
299169691SkanAC_DEFUN([AM_MISSING_HAS_RUN],
300169691Skan[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
301169691Skantest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
302169691Skan# Use eval to expand $SHELL
303169691Skanif eval "$MISSING --run true"; then
304169691Skan  am_missing_run="$MISSING --run "
305169691Skanelse
306169691Skan  am_missing_run=
307169691Skan  AC_MSG_WARN([`missing' script is too old or missing])
308169691Skanfi
309169691Skan])
310169691Skan
311169691Skan# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
312169691Skan#
313169691Skan# This file is free software; the Free Software Foundation
314169691Skan# gives unlimited permission to copy and/or distribute it,
315169691Skan# with or without modifications, as long as this notice is preserved.
316169691Skan
317169691Skan# AM_PROG_MKDIR_P
318169691Skan# ---------------
319169691Skan# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
320169691Skan#
321169691Skan# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
322169691Skan# created by `make install' are always world readable, even if the
323169691Skan# installer happens to have an overly restrictive umask (e.g. 077).
324169691Skan# This was a mistake.  There are at least two reasons why we must not
325169691Skan# use `-m 0755':
326169691Skan#   - it causes special bits like SGID to be ignored,
327169691Skan#   - it may be too restrictive (some setups expect 775 directories).
328169691Skan#
329169691Skan# Do not use -m 0755 and let people choose whatever they expect by
330169691Skan# setting umask.
331169691Skan#
332169691Skan# We cannot accept any implementation of `mkdir' that recognizes `-p'.
333169691Skan# Some implementations (such as Solaris 8's) are not thread-safe: if a
334169691Skan# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
335169691Skan# concurrently, both version can detect that a/ is missing, but only
336169691Skan# one can create it and the other will error out.  Consequently we
337169691Skan# restrict ourselves to GNU make (using the --version option ensures
338169691Skan# this.)
339169691SkanAC_DEFUN([AM_PROG_MKDIR_P],
340169691Skan[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
341169691Skan  # We used to keeping the `.' as first argument, in order to
342169691Skan  # allow $(mkdir_p) to be used without argument.  As in
343169691Skan  #   $(mkdir_p) $(somedir)
344169691Skan  # where $(somedir) is conditionally defined.  However this is wrong
345169691Skan  # for two reasons:
346169691Skan  #  1. if the package is installed by a user who cannot write `.'
347169691Skan  #     make install will fail,
348169691Skan  #  2. the above comment should most certainly read
349169691Skan  #     $(mkdir_p) $(DESTDIR)$(somedir)
350169691Skan  #     so it does not work when $(somedir) is undefined and
351169691Skan  #     $(DESTDIR) is not.
352169691Skan  #  To support the latter case, we have to write
353169691Skan  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
354169691Skan  #  so the `.' trick is pointless.
355169691Skan  mkdir_p='mkdir -p --'
356169691Skanelse
357169691Skan  # On NextStep and OpenStep, the `mkdir' command does not
358169691Skan  # recognize any option.  It will interpret all options as
359169691Skan  # directories to create, and then abort because `.' already
360169691Skan  # exists.
361169691Skan  for d in ./-p ./--version;
362169691Skan  do
363169691Skan    test -d $d && rmdir $d
364169691Skan  done
365169691Skan  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
366169691Skan  if test -f "$ac_aux_dir/mkinstalldirs"; then
367169691Skan    mkdir_p='$(mkinstalldirs)'
368169691Skan  else
369169691Skan    mkdir_p='$(install_sh) -d'
370169691Skan  fi
371169691Skanfi
372169691SkanAC_SUBST([mkdir_p])])
373169691Skan
374169691Skan# Helper functions for option handling.                     -*- Autoconf -*-
375169691Skan
376169691Skan# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
377169691Skan#
378169691Skan# This file is free software; the Free Software Foundation
379169691Skan# gives unlimited permission to copy and/or distribute it,
380169691Skan# with or without modifications, as long as this notice is preserved.
381169691Skan
382169691Skan# serial 3
383169691Skan
384132720Skan# _AM_MANGLE_OPTION(NAME)
385132720Skan# -----------------------
386132720SkanAC_DEFUN([_AM_MANGLE_OPTION],
387132720Skan[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
388132720Skan
389132720Skan# _AM_SET_OPTION(NAME)
390132720Skan# ------------------------------
391132720Skan# Set option NAME.  Presently that only means defining a flag for this option.
392132720SkanAC_DEFUN([_AM_SET_OPTION],
393132720Skan[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
394132720Skan
395132720Skan# _AM_SET_OPTIONS(OPTIONS)
396132720Skan# ----------------------------------
397132720Skan# OPTIONS is a space-separated list of Automake options.
398132720SkanAC_DEFUN([_AM_SET_OPTIONS],
399132720Skan[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
400132720Skan
401132720Skan# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
402132720Skan# -------------------------------------------
403132720Skan# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
404132720SkanAC_DEFUN([_AM_IF_OPTION],
405132720Skan[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
406132720Skan
407169691Skan# Check to make sure that the build environment is sane.    -*- Autoconf -*-
408169691Skan
409169691Skan# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
410169691Skan# Free Software Foundation, Inc.
41197403Sobrien#
412169691Skan# This file is free software; the Free Software Foundation
413169691Skan# gives unlimited permission to copy and/or distribute it,
414169691Skan# with or without modifications, as long as this notice is preserved.
41597403Sobrien
416169691Skan# serial 4
417132720Skan
418132720Skan# AM_SANITY_CHECK
419132720Skan# ---------------
42097403SobrienAC_DEFUN([AM_SANITY_CHECK],
42197403Sobrien[AC_MSG_CHECKING([whether build environment is sane])
42297403Sobrien# Just in case
42397403Sobriensleep 1
424132720Skanecho timestamp > conftest.file
42597403Sobrien# Do `set' in a subshell so we don't clobber the current shell's
42697403Sobrien# arguments.  Must try -L first in case configure is actually a
42797403Sobrien# symlink; some systems play weird games with the mod time of symlinks
42897403Sobrien# (eg FreeBSD returns the mod time of the symlink's containing
42997403Sobrien# directory).
43097403Sobrienif (
431132720Skan   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
432132720Skan   if test "$[*]" = "X"; then
43397403Sobrien      # -L didn't work.
434132720Skan      set X `ls -t $srcdir/configure conftest.file`
43597403Sobrien   fi
436132720Skan   rm -f conftest.file
437132720Skan   if test "$[*]" != "X $srcdir/configure conftest.file" \
438132720Skan      && test "$[*]" != "X conftest.file $srcdir/configure"; then
43997403Sobrien
44097403Sobrien      # If neither matched, then we have a broken ls.  This can happen
44197403Sobrien      # if, for instance, CONFIG_SHELL is bash and it inherits a
44297403Sobrien      # broken ls alias from the environment.  This has actually
44397403Sobrien      # happened.  Such a system could not be considered "sane".
44497403Sobrien      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
44597403Sobrienalias in your environment])
44697403Sobrien   fi
44797403Sobrien
448132720Skan   test "$[2]" = conftest.file
44997403Sobrien   )
45097403Sobrienthen
45197403Sobrien   # Ok.
45297403Sobrien   :
45397403Sobrienelse
45497403Sobrien   AC_MSG_ERROR([newly created file is older than distributed files!
45597403SobrienCheck your system clock])
45697403Sobrienfi
45797403SobrienAC_MSG_RESULT(yes)])
45897403Sobrien
459169691Skan# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
460132720Skan#
461169691Skan# This file is free software; the Free Software Foundation
462169691Skan# gives unlimited permission to copy and/or distribute it,
463169691Skan# with or without modifications, as long as this notice is preserved.
464132720Skan
465132720Skan# AM_PROG_INSTALL_STRIP
466169691Skan# ---------------------
467132720Skan# One issue with vendor `install' (even GNU) is that you can't
468132720Skan# specify the program used to strip binaries.  This is especially
469132720Skan# annoying in cross-compiling environments, where the build's strip
470132720Skan# is unlikely to handle the host's binaries.
471132720Skan# Fortunately install-sh will honor a STRIPPROG variable, so we
472132720Skan# always use install-sh in `make install-strip', and initialize
473132720Skan# STRIPPROG with the value of the STRIP variable (set by the user).
474132720SkanAC_DEFUN([AM_PROG_INSTALL_STRIP],
475132720Skan[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
476132720Skan# Installed binaries are usually stripped using `strip' when the user
477132720Skan# run `make install-strip'.  However `strip' might not be the right
478132720Skan# tool to use in cross-compilation environments, therefore Automake
479132720Skan# will honor the `STRIP' environment variable to overrule this program.
480132720Skandnl Don't test for $cross_compiling = yes, because it might be `maybe'.
481132720Skanif test "$cross_compiling" != no; then
482132720Skan  AC_CHECK_TOOL([STRIP], [strip], :)
483132720Skanfi
484132720SkanINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
485132720SkanAC_SUBST([INSTALL_STRIP_PROGRAM])])
486132720Skan
487169691Skan# Check how to create a tarball.                            -*- Autoconf -*-
488132720Skan
489169691Skan# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
490169691Skan#
491169691Skan# This file is free software; the Free Software Foundation
492169691Skan# gives unlimited permission to copy and/or distribute it,
493169691Skan# with or without modifications, as long as this notice is preserved.
494132720Skan
495169691Skan# serial 2
496132720Skan
497169691Skan# _AM_PROG_TAR(FORMAT)
498169691Skan# --------------------
499169691Skan# Check how to create a tarball in format FORMAT.
500169691Skan# FORMAT should be one of `v7', `ustar', or `pax'.
501132720Skan#
502169691Skan# Substitute a variable $(am__tar) that is a command
503169691Skan# writing to stdout a FORMAT-tarball containing the directory
504169691Skan# $tardir.
505169691Skan#     tardir=directory && $(am__tar) > result.tar
506169691Skan#
507169691Skan# Substitute a variable $(am__untar) that extract such
508169691Skan# a tarball read from stdin.
509169691Skan#     $(am__untar) < result.tar
510169691SkanAC_DEFUN([_AM_PROG_TAR],
511169691Skan[# Always define AMTAR for backward compatibility.
512169691SkanAM_MISSING_PROG([AMTAR], [tar])
513169691Skanm4_if([$1], [v7],
514169691Skan     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
515169691Skan     [m4_case([$1], [ustar],, [pax],,
516169691Skan              [m4_fatal([Unknown tar format])])
517169691SkanAC_MSG_CHECKING([how to create a $1 tar archive])
518169691Skan# Loop over all known methods to create a tar archive until one works.
519169691Skan_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
520169691Skan_am_tools=${am_cv_prog_tar_$1-$_am_tools}
521169691Skan# Do not fold the above two line into one, because Tru64 sh and
522169691Skan# Solaris sh will not grok spaces in the rhs of `-'.
523169691Skanfor _am_tool in $_am_tools
524169691Skando
525169691Skan  case $_am_tool in
526169691Skan  gnutar)
527169691Skan    for _am_tar in tar gnutar gtar;
528169691Skan    do
529169691Skan      AM_RUN_LOG([$_am_tar --version]) && break
530132720Skan    done
531169691Skan    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
532169691Skan    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
533169691Skan    am__untar="$_am_tar -xf -"
534169691Skan    ;;
535169691Skan  plaintar)
536169691Skan    # Must skip GNU tar: if it does not support --format= it doesn't create
537169691Skan    # ustar tarball either.
538169691Skan    (tar --version) >/dev/null 2>&1 && continue
539169691Skan    am__tar='tar chf - "$$tardir"'
540169691Skan    am__tar_='tar chf - "$tardir"'
541169691Skan    am__untar='tar xf -'
542169691Skan    ;;
543169691Skan  pax)
544169691Skan    am__tar='pax -L -x $1 -w "$$tardir"'
545169691Skan    am__tar_='pax -L -x $1 -w "$tardir"'
546169691Skan    am__untar='pax -r'
547169691Skan    ;;
548169691Skan  cpio)
549169691Skan    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
550169691Skan    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
551169691Skan    am__untar='cpio -i -H $1 -d'
552169691Skan    ;;
553169691Skan  none)
554169691Skan    am__tar=false
555169691Skan    am__tar_=false
556169691Skan    am__untar=false
557169691Skan    ;;
558169691Skan  esac
559132720Skan
560169691Skan  # If the value was cached, stop now.  We just wanted to have am__tar
561169691Skan  # and am__untar set.
562169691Skan  test -n "${am_cv_prog_tar_$1}" && break
563132720Skan
564169691Skan  # tar/untar a dummy directory, and stop if the command works
565132720Skan  rm -rf conftest.dir
566169691Skan  mkdir conftest.dir
567169691Skan  echo GrepMe > conftest.dir/file
568169691Skan  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
569169691Skan  rm -rf conftest.dir
570169691Skan  if test -s conftest.tar; then
571169691Skan    AM_RUN_LOG([$am__untar <conftest.tar])
572169691Skan    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
573132720Skan  fi
574132720Skandone
575169691Skanrm -rf conftest.dir
576132720Skan
577169691SkanAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
578169691SkanAC_MSG_RESULT([$am_cv_prog_tar_$1])])
579169691SkanAC_SUBST([am__tar])
580169691SkanAC_SUBST([am__untar])
581169691Skan]) # _AM_PROG_TAR
582132720Skan
583169691Skanm4_include([../config/enable.m4])
584169691Skanm4_include([../config/lead-dot.m4])
585169691Skanm4_include([../config/multi.m4])
586169691Skanm4_include([../config/no-executables.m4])
587169691Skanm4_include([../config/unwind_ipinfo.m4])
588169691Skanm4_include([../libtool.m4])
589169691Skanm4_include([crossconfig.m4])
590169691Skanm4_include([linkage.m4])
591169691Skanm4_include([acinclude.m4])
592