1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005  Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14# uintmax_t.m4 serial 9
15dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
16dnl This file is free software; the Free Software Foundation
17dnl gives unlimited permission to copy and/or distribute it,
18dnl with or without modifications, as long as this notice is preserved.
19
20dnl From Paul Eggert.
21
22AC_PREREQ(2.13)
23
24# Define uintmax_t to 'unsigned long' or 'unsigned long long'
25# if it is not already defined in <stdint.h> or <inttypes.h>.
26
27AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
28[
29  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
30  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
31  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
32    AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
33    test $ac_cv_type_unsigned_long_long = yes \
34      && ac_type='unsigned long long' \
35      || ac_type='unsigned long'
36    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
37      [Define to unsigned long or unsigned long long
38       if <stdint.h> and <inttypes.h> don't define.])
39  else
40    AC_DEFINE(HAVE_UINTMAX_T, 1,
41      [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
42  fi
43])
44
45# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
46#
47# This file is free software; the Free Software Foundation
48# gives unlimited permission to copy and/or distribute it,
49# with or without modifications, as long as this notice is preserved.
50
51# AM_AUTOMAKE_VERSION(VERSION)
52# ----------------------------
53# Automake X.Y traces this macro to ensure aclocal.m4 has been
54# generated from the m4 files accompanying Automake X.Y.
55AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
56
57# AM_SET_CURRENT_AUTOMAKE_VERSION
58# -------------------------------
59# Call AM_AUTOMAKE_VERSION so it can be traced.
60# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
61AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
62	 [AM_AUTOMAKE_VERSION([1.9.6])])
63
64# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
65
66# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
67#
68# This file is free software; the Free Software Foundation
69# gives unlimited permission to copy and/or distribute it,
70# with or without modifications, as long as this notice is preserved.
71
72# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
74# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
75#
76# Of course, Automake must honor this variable whenever it calls a
77# tool from the auxiliary directory.  The problem is that $srcdir (and
78# therefore $ac_aux_dir as well) can be either absolute or relative,
79# depending on how configure is run.  This is pretty annoying, since
80# it makes $ac_aux_dir quite unusable in subdirectories: in the top
81# source directory, any form will work fine, but in subdirectories a
82# relative path needs to be adjusted first.
83#
84# $ac_aux_dir/missing
85#    fails when called from a subdirectory if $ac_aux_dir is relative
86# $top_srcdir/$ac_aux_dir/missing
87#    fails if $ac_aux_dir is absolute,
88#    fails when called from a subdirectory in a VPATH build with
89#          a relative $ac_aux_dir
90#
91# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92# are both prefixed by $srcdir.  In an in-source build this is usually
93# harmless because $srcdir is `.', but things will broke when you
94# start a VPATH build or use an absolute $srcdir.
95#
96# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
97# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
98#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
99# and then we would define $MISSING as
100#   MISSING="\${SHELL} $am_aux_dir/missing"
101# This will work as long as MISSING is not called from configure, because
102# unfortunately $(top_srcdir) has no meaning in configure.
103# However there are other variables, like CC, which are often used in
104# configure, and could therefore not use this "fixed" $ac_aux_dir.
105#
106# Another solution, used here, is to always expand $ac_aux_dir to an
107# absolute PATH.  The drawback is that using absolute paths prevent a
108# configured tree to be moved without reconfiguration.
109
110AC_DEFUN([AM_AUX_DIR_EXPAND],
111[dnl Rely on autoconf to set up CDPATH properly.
112AC_PREREQ([2.50])dnl
113# expand $ac_aux_dir to an absolute path
114am_aux_dir=`cd $ac_aux_dir && pwd`
115])
116
117# AM_CONDITIONAL                                            -*- Autoconf -*-
118
119# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
120# Free Software Foundation, Inc.
121#
122# This file is free software; the Free Software Foundation
123# gives unlimited permission to copy and/or distribute it,
124# with or without modifications, as long as this notice is preserved.
125
126# serial 7
127
128# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129# -------------------------------------
130# Define a conditional.
131AC_DEFUN([AM_CONDITIONAL],
132[AC_PREREQ(2.52)dnl
133 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
134	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135AC_SUBST([$1_TRUE])
136AC_SUBST([$1_FALSE])
137if $2; then
138  $1_TRUE=
139  $1_FALSE='#'
140else
141  $1_TRUE='#'
142  $1_FALSE=
143fi
144AC_CONFIG_COMMANDS_PRE(
145[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
146  AC_MSG_ERROR([[conditional "$1" was never defined.
147Usually this means the macro was only invoked conditionally.]])
148fi])])
149
150
151# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
152# Free Software Foundation, Inc.
153#
154# This file is free software; the Free Software Foundation
155# gives unlimited permission to copy and/or distribute it,
156# with or without modifications, as long as this notice is preserved.
157
158# serial 8
159
160# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
161# written in clear, in which case automake, when reading aclocal.m4,
162# will think it sees a *use*, and therefore will trigger all it's
163# C support machinery.  Also note that it means that autoscan, seeing
164# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
165
166
167# _AM_DEPENDENCIES(NAME)
168# ----------------------
169# See how the compiler implements dependency checking.
170# NAME is "CC", "CXX", "GCJ", or "OBJC".
171# We try a few techniques and use that to set a single cache variable.
172#
173# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
174# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
175# dependency, and given that the user is not expected to run this macro,
176# just rely on AC_PROG_CC.
177AC_DEFUN([_AM_DEPENDENCIES],
178[AC_REQUIRE([AM_SET_DEPDIR])dnl
179AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
180AC_REQUIRE([AM_MAKE_INCLUDE])dnl
181AC_REQUIRE([AM_DEP_TRACK])dnl
182
183ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
184       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
185       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
186       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
187                   [depcc="$$1"   am_compiler_list=])
188
189AC_CACHE_CHECK([dependency style of $depcc],
190               [am_cv_$1_dependencies_compiler_type],
191[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
192  # We make a subdir and do the tests there.  Otherwise we can end up
193  # making bogus files that we don't know about and never remove.  For
194  # instance it was reported that on HP-UX the gcc test will end up
195  # making a dummy file named `D' -- because `-MD' means `put the output
196  # in D'.
197  mkdir conftest.dir
198  # Copy depcomp to subdir because otherwise we won't find it if we're
199  # using a relative directory.
200  cp "$am_depcomp" conftest.dir
201  cd conftest.dir
202  # We will build objects and dependencies in a subdirectory because
203  # it helps to detect inapplicable dependency modes.  For instance
204  # both Tru64's cc and ICC support -MD to output dependencies as a
205  # side effect of compilation, but ICC will put the dependencies in
206  # the current directory while Tru64 will put them in the object
207  # directory.
208  mkdir sub
209
210  am_cv_$1_dependencies_compiler_type=none
211  if test "$am_compiler_list" = ""; then
212     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
213  fi
214  for depmode in $am_compiler_list; do
215    # Setup a source with many dependencies, because some compilers
216    # like to wrap large dependency lists on column 80 (with \), and
217    # we should not choose a depcomp mode which is confused by this.
218    #
219    # We need to recreate these files for each test, as the compiler may
220    # overwrite some of them when testing with obscure command lines.
221    # This happens at least with the AIX C compiler.
222    : > sub/conftest.c
223    for i in 1 2 3 4 5 6; do
224      echo '#include "conftst'$i'.h"' >> sub/conftest.c
225      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
226      # Solaris 8's {/usr,}/bin/sh.
227      touch sub/conftst$i.h
228    done
229    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
230
231    case $depmode in
232    nosideeffect)
233      # after this tag, mechanisms are not by side-effect, so they'll
234      # only be used when explicitly requested
235      if test "x$enable_dependency_tracking" = xyes; then
236	continue
237      else
238	break
239      fi
240      ;;
241    none) break ;;
242    esac
243    # We check with `-c' and `-o' for the sake of the "dashmstdout"
244    # mode.  It turns out that the SunPro C++ compiler does not properly
245    # handle `-M -o', and we need to detect this.
246    if depmode=$depmode \
247       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
248       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
249       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
250         >/dev/null 2>conftest.err &&
251       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
252       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
253       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
254      # icc doesn't choke on unknown options, it will just issue warnings
255      # or remarks (even with -Werror).  So we grep stderr for any message
256      # that says an option was ignored or not supported.
257      # When given -MP, icc 7.0 and 7.1 complain thusly:
258      #   icc: Command line warning: ignoring option '-M'; no argument required
259      # The diagnosis changed in icc 8.0:
260      #   icc: Command line remark: option '-MP' not supported
261      if (grep 'ignoring option' conftest.err ||
262          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
263        am_cv_$1_dependencies_compiler_type=$depmode
264        break
265      fi
266    fi
267  done
268
269  cd ..
270  rm -rf conftest.dir
271else
272  am_cv_$1_dependencies_compiler_type=none
273fi
274])
275AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
276AM_CONDITIONAL([am__fastdep$1], [
277  test "x$enable_dependency_tracking" != xno \
278  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
279])
280
281
282# AM_SET_DEPDIR
283# -------------
284# Choose a directory name for dependency files.
285# This macro is AC_REQUIREd in _AM_DEPENDENCIES
286AC_DEFUN([AM_SET_DEPDIR],
287[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
288AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
289])
290
291
292# AM_DEP_TRACK
293# ------------
294AC_DEFUN([AM_DEP_TRACK],
295[AC_ARG_ENABLE(dependency-tracking,
296[  --disable-dependency-tracking  speeds up one-time build
297  --enable-dependency-tracking   do not reject slow dependency extractors])
298if test "x$enable_dependency_tracking" != xno; then
299  am_depcomp="$ac_aux_dir/depcomp"
300  AMDEPBACKSLASH='\'
301fi
302AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
303AC_SUBST([AMDEPBACKSLASH])
304])
305
306# Generate code to set up dependency tracking.              -*- Autoconf -*-
307
308# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
309# Free Software Foundation, Inc.
310#
311# This file is free software; the Free Software Foundation
312# gives unlimited permission to copy and/or distribute it,
313# with or without modifications, as long as this notice is preserved.
314
315#serial 3
316
317# _AM_OUTPUT_DEPENDENCY_COMMANDS
318# ------------------------------
319AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
320[for mf in $CONFIG_FILES; do
321  # Strip MF so we end up with the name of the file.
322  mf=`echo "$mf" | sed -e 's/:.*$//'`
323  # Check whether this is an Automake generated Makefile or not.
324  # We used to match only the files named `Makefile.in', but
325  # some people rename them; so instead we look at the file content.
326  # Grep'ing the first line is not enough: some people post-process
327  # each Makefile.in and add a new line on top of each file to say so.
328  # So let's grep whole file.
329  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
330    dirpart=`AS_DIRNAME("$mf")`
331  else
332    continue
333  fi
334  # Extract the definition of DEPDIR, am__include, and am__quote
335  # from the Makefile without running `make'.
336  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
337  test -z "$DEPDIR" && continue
338  am__include=`sed -n 's/^am__include = //p' < "$mf"`
339  test -z "am__include" && continue
340  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
341  # When using ansi2knr, U may be empty or an underscore; expand it
342  U=`sed -n 's/^U = //p' < "$mf"`
343  # Find all dependency output files, they are included files with
344  # $(DEPDIR) in their names.  We invoke sed twice because it is the
345  # simplest approach to changing $(DEPDIR) to its actual value in the
346  # expansion.
347  for file in `sed -n "
348    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
349       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
350    # Make sure the directory exists.
351    test -f "$dirpart/$file" && continue
352    fdir=`AS_DIRNAME(["$file"])`
353    AS_MKDIR_P([$dirpart/$fdir])
354    # echo "creating $dirpart/$file"
355    echo '# dummy' > "$dirpart/$file"
356  done
357done
358])# _AM_OUTPUT_DEPENDENCY_COMMANDS
359
360
361# AM_OUTPUT_DEPENDENCY_COMMANDS
362# -----------------------------
363# This macro should only be invoked once -- use via AC_REQUIRE.
364#
365# This code is only required when automatic dependency tracking
366# is enabled.  FIXME.  This creates each `.P' file that we will
367# need in order to bootstrap the dependency handling code.
368AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
369[AC_CONFIG_COMMANDS([depfiles],
370     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
371     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
372])
373
374# Do all the work for Automake.                             -*- Autoconf -*-
375
376# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
377# Free Software Foundation, Inc.
378#
379# This file is free software; the Free Software Foundation
380# gives unlimited permission to copy and/or distribute it,
381# with or without modifications, as long as this notice is preserved.
382
383# serial 12
384
385# This macro actually does too much.  Some checks are only needed if
386# your package does certain things.  But this isn't really a big deal.
387
388# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
389# AM_INIT_AUTOMAKE([OPTIONS])
390# -----------------------------------------------
391# The call with PACKAGE and VERSION arguments is the old style
392# call (pre autoconf-2.50), which is being phased out.  PACKAGE
393# and VERSION should now be passed to AC_INIT and removed from
394# the call to AM_INIT_AUTOMAKE.
395# We support both call styles for the transition.  After
396# the next Automake release, Autoconf can make the AC_INIT
397# arguments mandatory, and then we can depend on a new Autoconf
398# release and drop the old call support.
399AC_DEFUN([AM_INIT_AUTOMAKE],
400[AC_PREREQ([2.58])dnl
401dnl Autoconf wants to disallow AM_ names.  We explicitly allow
402dnl the ones we care about.
403m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
404AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
405AC_REQUIRE([AC_PROG_INSTALL])dnl
406# test to see if srcdir already configured
407if test "`cd $srcdir && pwd`" != "`pwd`" &&
408   test -f $srcdir/config.status; then
409  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
410fi
411
412# test whether we have cygpath
413if test -z "$CYGPATH_W"; then
414  if (cygpath --version) >/dev/null 2>/dev/null; then
415    CYGPATH_W='cygpath -w'
416  else
417    CYGPATH_W=echo
418  fi
419fi
420AC_SUBST([CYGPATH_W])
421
422# Define the identity of the package.
423dnl Distinguish between old-style and new-style calls.
424m4_ifval([$2],
425[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
426 AC_SUBST([PACKAGE], [$1])dnl
427 AC_SUBST([VERSION], [$2])],
428[_AM_SET_OPTIONS([$1])dnl
429 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
430 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
431
432_AM_IF_OPTION([no-define],,
433[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
434 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
435
436# Some tools Automake needs.
437AC_REQUIRE([AM_SANITY_CHECK])dnl
438AC_REQUIRE([AC_ARG_PROGRAM])dnl
439AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
440AM_MISSING_PROG(AUTOCONF, autoconf)
441AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
442AM_MISSING_PROG(AUTOHEADER, autoheader)
443AM_MISSING_PROG(MAKEINFO, makeinfo)
444AM_PROG_INSTALL_SH
445AM_PROG_INSTALL_STRIP
446AC_REQUIRE([AM_PROG_MKDIR_P])dnl
447# We need awk for the "check" target.  The system "awk" is bad on
448# some platforms.
449AC_REQUIRE([AC_PROG_AWK])dnl
450AC_REQUIRE([AC_PROG_MAKE_SET])dnl
451AC_REQUIRE([AM_SET_LEADING_DOT])dnl
452_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
453              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
454	      		     [_AM_PROG_TAR([v7])])])
455_AM_IF_OPTION([no-dependencies],,
456[AC_PROVIDE_IFELSE([AC_PROG_CC],
457                  [_AM_DEPENDENCIES(CC)],
458                  [define([AC_PROG_CC],
459                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
460AC_PROVIDE_IFELSE([AC_PROG_CXX],
461                  [_AM_DEPENDENCIES(CXX)],
462                  [define([AC_PROG_CXX],
463                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
464])
465])
466
467
468# When config.status generates a header, we must update the stamp-h file.
469# This file resides in the same directory as the config header
470# that is generated.  The stamp files are numbered to have different names.
471
472# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
473# loop where config.status creates the headers, so we can generate
474# our stamp files there.
475AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
476[# Compute $1's index in $config_headers.
477_am_stamp_count=1
478for _am_header in $config_headers :; do
479  case $_am_header in
480    $1 | $1:* )
481      break ;;
482    * )
483      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
484  esac
485done
486echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
487
488# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
489#
490# This file is free software; the Free Software Foundation
491# gives unlimited permission to copy and/or distribute it,
492# with or without modifications, as long as this notice is preserved.
493
494# AM_PROG_INSTALL_SH
495# ------------------
496# Define $install_sh.
497AC_DEFUN([AM_PROG_INSTALL_SH],
498[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
499install_sh=${install_sh-"$am_aux_dir/install-sh"}
500AC_SUBST(install_sh)])
501
502# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
503#
504# This file is free software; the Free Software Foundation
505# gives unlimited permission to copy and/or distribute it,
506# with or without modifications, as long as this notice is preserved.
507
508# serial 2
509
510# Check whether the underlying file-system supports filenames
511# with a leading dot.  For instance MS-DOS doesn't.
512AC_DEFUN([AM_SET_LEADING_DOT],
513[rm -rf .tst 2>/dev/null
514mkdir .tst 2>/dev/null
515if test -d .tst; then
516  am__leading_dot=.
517else
518  am__leading_dot=_
519fi
520rmdir .tst 2>/dev/null
521AC_SUBST([am__leading_dot])])
522
523# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
524# Free Software Foundation, Inc.
525#
526# This file is free software; the Free Software Foundation
527# gives unlimited permission to copy and/or distribute it,
528# with or without modifications, as long as this notice is preserved.
529
530# serial 5
531
532# AM_PROG_LEX
533# -----------
534# Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
535# "missing" invocation, for better error output.
536AC_DEFUN([AM_PROG_LEX],
537[AC_PREREQ(2.50)dnl
538AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
539AC_REQUIRE([AC_PROG_LEX])dnl
540if test "$LEX" = :; then
541  LEX=${am_missing_run}flex
542fi])
543
544# Check to see how 'make' treats includes.	            -*- Autoconf -*-
545
546# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
547#
548# This file is free software; the Free Software Foundation
549# gives unlimited permission to copy and/or distribute it,
550# with or without modifications, as long as this notice is preserved.
551
552# serial 3
553
554# AM_MAKE_INCLUDE()
555# -----------------
556# Check to see how make treats includes.
557AC_DEFUN([AM_MAKE_INCLUDE],
558[am_make=${MAKE-make}
559cat > confinc << 'END'
560am__doit:
561	@echo done
562.PHONY: am__doit
563END
564# If we don't find an include directive, just comment out the code.
565AC_MSG_CHECKING([for style of include used by $am_make])
566am__include="#"
567am__quote=
568_am_result=none
569# First try GNU make style include.
570echo "include confinc" > confmf
571# We grep out `Entering directory' and `Leaving directory'
572# messages which can occur if `w' ends up in MAKEFLAGS.
573# In particular we don't look at `^make:' because GNU make might
574# be invoked under some other name (usually "gmake"), in which
575# case it prints its new name instead of `make'.
576if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
577   am__include=include
578   am__quote=
579   _am_result=GNU
580fi
581# Now try BSD make style include.
582if test "$am__include" = "#"; then
583   echo '.include "confinc"' > confmf
584   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
585      am__include=.include
586      am__quote="\""
587      _am_result=BSD
588   fi
589fi
590AC_SUBST([am__include])
591AC_SUBST([am__quote])
592AC_MSG_RESULT([$_am_result])
593rm -f confinc confmf
594])
595
596# Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
597#
598# This file is free software; the Free Software Foundation
599# gives unlimited permission to copy and/or distribute it,
600# with or without modifications, as long as this notice is preserved.
601
602# serial 3
603
604# AM_PROG_CC_C_O
605# --------------
606# Like AC_PROG_CC_C_O, but changed for automake.
607AC_DEFUN([AM_PROG_CC_C_O],
608[AC_REQUIRE([AC_PROG_CC_C_O])dnl
609AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
610# FIXME: we rely on the cache variable name because
611# there is no other way.
612set dummy $CC
613ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
614if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
615   # Losing compiler, so override with the script.
616   # FIXME: It is wrong to rewrite CC.
617   # But if we don't then we get into trouble of one sort or another.
618   # A longer-term fix would be to have automake use am__CC in this case,
619   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
620   CC="$am_aux_dir/compile $CC"
621fi
622])
623
624# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
625
626# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
627# Free Software Foundation, Inc.
628#
629# This file is free software; the Free Software Foundation
630# gives unlimited permission to copy and/or distribute it,
631# with or without modifications, as long as this notice is preserved.
632
633# serial 4
634
635# AM_MISSING_PROG(NAME, PROGRAM)
636# ------------------------------
637AC_DEFUN([AM_MISSING_PROG],
638[AC_REQUIRE([AM_MISSING_HAS_RUN])
639$1=${$1-"${am_missing_run}$2"}
640AC_SUBST($1)])
641
642
643# AM_MISSING_HAS_RUN
644# ------------------
645# Define MISSING if not defined so far and test if it supports --run.
646# If it does, set am_missing_run to use it, otherwise, to nothing.
647AC_DEFUN([AM_MISSING_HAS_RUN],
648[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
649test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
650# Use eval to expand $SHELL
651if eval "$MISSING --run true"; then
652  am_missing_run="$MISSING --run "
653else
654  am_missing_run=
655  AC_MSG_WARN([`missing' script is too old or missing])
656fi
657])
658
659# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
660#
661# This file is free software; the Free Software Foundation
662# gives unlimited permission to copy and/or distribute it,
663# with or without modifications, as long as this notice is preserved.
664
665# AM_PROG_MKDIR_P
666# ---------------
667# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
668#
669# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
670# created by `make install' are always world readable, even if the
671# installer happens to have an overly restrictive umask (e.g. 077).
672# This was a mistake.  There are at least two reasons why we must not
673# use `-m 0755':
674#   - it causes special bits like SGID to be ignored,
675#   - it may be too restrictive (some setups expect 775 directories).
676#
677# Do not use -m 0755 and let people choose whatever they expect by
678# setting umask.
679#
680# We cannot accept any implementation of `mkdir' that recognizes `-p'.
681# Some implementations (such as Solaris 8's) are not thread-safe: if a
682# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
683# concurrently, both version can detect that a/ is missing, but only
684# one can create it and the other will error out.  Consequently we
685# restrict ourselves to GNU make (using the --version option ensures
686# this.)
687AC_DEFUN([AM_PROG_MKDIR_P],
688[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
689  # We used to keeping the `.' as first argument, in order to
690  # allow $(mkdir_p) to be used without argument.  As in
691  #   $(mkdir_p) $(somedir)
692  # where $(somedir) is conditionally defined.  However this is wrong
693  # for two reasons:
694  #  1. if the package is installed by a user who cannot write `.'
695  #     make install will fail,
696  #  2. the above comment should most certainly read
697  #     $(mkdir_p) $(DESTDIR)$(somedir)
698  #     so it does not work when $(somedir) is undefined and
699  #     $(DESTDIR) is not.
700  #  To support the latter case, we have to write
701  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
702  #  so the `.' trick is pointless.
703  mkdir_p='mkdir -p --'
704else
705  # On NextStep and OpenStep, the `mkdir' command does not
706  # recognize any option.  It will interpret all options as
707  # directories to create, and then abort because `.' already
708  # exists.
709  for d in ./-p ./--version;
710  do
711    test -d $d && rmdir $d
712  done
713  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
714  if test -f "$ac_aux_dir/mkinstalldirs"; then
715    mkdir_p='$(mkinstalldirs)'
716  else
717    mkdir_p='$(install_sh) -d'
718  fi
719fi
720AC_SUBST([mkdir_p])])
721
722# Helper functions for option handling.                     -*- Autoconf -*-
723
724# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
725#
726# This file is free software; the Free Software Foundation
727# gives unlimited permission to copy and/or distribute it,
728# with or without modifications, as long as this notice is preserved.
729
730# serial 3
731
732# _AM_MANGLE_OPTION(NAME)
733# -----------------------
734AC_DEFUN([_AM_MANGLE_OPTION],
735[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
736
737# _AM_SET_OPTION(NAME)
738# ------------------------------
739# Set option NAME.  Presently that only means defining a flag for this option.
740AC_DEFUN([_AM_SET_OPTION],
741[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
742
743# _AM_SET_OPTIONS(OPTIONS)
744# ----------------------------------
745# OPTIONS is a space-separated list of Automake options.
746AC_DEFUN([_AM_SET_OPTIONS],
747[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
748
749# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
750# -------------------------------------------
751# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
752AC_DEFUN([_AM_IF_OPTION],
753[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
754
755# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
756# Free Software Foundation, Inc.
757#
758# This file is free software; the Free Software Foundation
759# gives unlimited permission to copy and/or distribute it,
760# with or without modifications, as long as this notice is preserved.
761
762# serial 4
763
764AC_DEFUN([AM_C_PROTOTYPES],
765[AC_REQUIRE([AC_C_PROTOTYPES])
766if test "$ac_cv_prog_cc_stdc" != no; then
767  U= ANSI2KNR=
768else
769  U=_ ANSI2KNR=./ansi2knr
770fi
771# Ensure some checks needed by ansi2knr itself.
772AC_REQUIRE([AC_HEADER_STDC])
773AC_CHECK_HEADERS(string.h)
774AC_SUBST(U)dnl
775AC_SUBST(ANSI2KNR)dnl
776])
777
778AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
779
780# Check to make sure that the build environment is sane.    -*- Autoconf -*-
781
782# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
783# Free Software Foundation, Inc.
784#
785# This file is free software; the Free Software Foundation
786# gives unlimited permission to copy and/or distribute it,
787# with or without modifications, as long as this notice is preserved.
788
789# serial 4
790
791# AM_SANITY_CHECK
792# ---------------
793AC_DEFUN([AM_SANITY_CHECK],
794[AC_MSG_CHECKING([whether build environment is sane])
795# Just in case
796sleep 1
797echo timestamp > conftest.file
798# Do `set' in a subshell so we don't clobber the current shell's
799# arguments.  Must try -L first in case configure is actually a
800# symlink; some systems play weird games with the mod time of symlinks
801# (eg FreeBSD returns the mod time of the symlink's containing
802# directory).
803if (
804   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
805   if test "$[*]" = "X"; then
806      # -L didn't work.
807      set X `ls -t $srcdir/configure conftest.file`
808   fi
809   rm -f conftest.file
810   if test "$[*]" != "X $srcdir/configure conftest.file" \
811      && test "$[*]" != "X conftest.file $srcdir/configure"; then
812
813      # If neither matched, then we have a broken ls.  This can happen
814      # if, for instance, CONFIG_SHELL is bash and it inherits a
815      # broken ls alias from the environment.  This has actually
816      # happened.  Such a system could not be considered "sane".
817      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
818alias in your environment])
819   fi
820
821   test "$[2]" = conftest.file
822   )
823then
824   # Ok.
825   :
826else
827   AC_MSG_ERROR([newly created file is older than distributed files!
828Check your system clock])
829fi
830AC_MSG_RESULT(yes)])
831
832# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
833#
834# This file is free software; the Free Software Foundation
835# gives unlimited permission to copy and/or distribute it,
836# with or without modifications, as long as this notice is preserved.
837
838# AM_PROG_INSTALL_STRIP
839# ---------------------
840# One issue with vendor `install' (even GNU) is that you can't
841# specify the program used to strip binaries.  This is especially
842# annoying in cross-compiling environments, where the build's strip
843# is unlikely to handle the host's binaries.
844# Fortunately install-sh will honor a STRIPPROG variable, so we
845# always use install-sh in `make install-strip', and initialize
846# STRIPPROG with the value of the STRIP variable (set by the user).
847AC_DEFUN([AM_PROG_INSTALL_STRIP],
848[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
849# Installed binaries are usually stripped using `strip' when the user
850# run `make install-strip'.  However `strip' might not be the right
851# tool to use in cross-compilation environments, therefore Automake
852# will honor the `STRIP' environment variable to overrule this program.
853dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
854if test "$cross_compiling" != no; then
855  AC_CHECK_TOOL([STRIP], [strip], :)
856fi
857INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
858AC_SUBST([INSTALL_STRIP_PROGRAM])])
859
860# Check how to create a tarball.                            -*- Autoconf -*-
861
862# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
863#
864# This file is free software; the Free Software Foundation
865# gives unlimited permission to copy and/or distribute it,
866# with or without modifications, as long as this notice is preserved.
867
868# serial 2
869
870# _AM_PROG_TAR(FORMAT)
871# --------------------
872# Check how to create a tarball in format FORMAT.
873# FORMAT should be one of `v7', `ustar', or `pax'.
874#
875# Substitute a variable $(am__tar) that is a command
876# writing to stdout a FORMAT-tarball containing the directory
877# $tardir.
878#     tardir=directory && $(am__tar) > result.tar
879#
880# Substitute a variable $(am__untar) that extract such
881# a tarball read from stdin.
882#     $(am__untar) < result.tar
883AC_DEFUN([_AM_PROG_TAR],
884[# Always define AMTAR for backward compatibility.
885AM_MISSING_PROG([AMTAR], [tar])
886m4_if([$1], [v7],
887     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
888     [m4_case([$1], [ustar],, [pax],,
889              [m4_fatal([Unknown tar format])])
890AC_MSG_CHECKING([how to create a $1 tar archive])
891# Loop over all known methods to create a tar archive until one works.
892_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
893_am_tools=${am_cv_prog_tar_$1-$_am_tools}
894# Do not fold the above two line into one, because Tru64 sh and
895# Solaris sh will not grok spaces in the rhs of `-'.
896for _am_tool in $_am_tools
897do
898  case $_am_tool in
899  gnutar)
900    for _am_tar in tar gnutar gtar;
901    do
902      AM_RUN_LOG([$_am_tar --version]) && break
903    done
904    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
905    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
906    am__untar="$_am_tar -xf -"
907    ;;
908  plaintar)
909    # Must skip GNU tar: if it does not support --format= it doesn't create
910    # ustar tarball either.
911    (tar --version) >/dev/null 2>&1 && continue
912    am__tar='tar chf - "$$tardir"'
913    am__tar_='tar chf - "$tardir"'
914    am__untar='tar xf -'
915    ;;
916  pax)
917    am__tar='pax -L -x $1 -w "$$tardir"'
918    am__tar_='pax -L -x $1 -w "$tardir"'
919    am__untar='pax -r'
920    ;;
921  cpio)
922    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
923    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
924    am__untar='cpio -i -H $1 -d'
925    ;;
926  none)
927    am__tar=false
928    am__tar_=false
929    am__untar=false
930    ;;
931  esac
932
933  # If the value was cached, stop now.  We just wanted to have am__tar
934  # and am__untar set.
935  test -n "${am_cv_prog_tar_$1}" && break
936
937  # tar/untar a dummy directory, and stop if the command works
938  rm -rf conftest.dir
939  mkdir conftest.dir
940  echo GrepMe > conftest.dir/file
941  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
942  rm -rf conftest.dir
943  if test -s conftest.tar; then
944    AM_RUN_LOG([$am__untar <conftest.tar])
945    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
946  fi
947done
948rm -rf conftest.dir
949
950AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
951AC_MSG_RESULT([$am_cv_prog_tar_$1])])
952AC_SUBST([am__tar])
953AC_SUBST([am__untar])
954]) # _AM_PROG_TAR
955
956m4_include([m4/absolute-header.m4])
957m4_include([m4/alloca.m4])
958m4_include([m4/allocsa.m4])
959m4_include([m4/argp.m4])
960m4_include([m4/calloc.m4])
961m4_include([m4/canonicalize.m4])
962m4_include([m4/cycle-check.m4])
963m4_include([m4/d-ino.m4])
964m4_include([m4/dirname.m4])
965m4_include([m4/dos.m4])
966m4_include([m4/double-slash-root.m4])
967m4_include([m4/eealloc.m4])
968m4_include([m4/eoverflow.m4])
969m4_include([m4/error.m4])
970m4_include([m4/exitfail.m4])
971m4_include([m4/extensions.m4])
972m4_include([m4/filenamecat.m4])
973m4_include([m4/free.m4])
974m4_include([m4/getcwd-abort-bug.m4])
975m4_include([m4/getcwd-path-max.m4])
976m4_include([m4/getcwd.m4])
977m4_include([m4/getdelim.m4])
978m4_include([m4/getline.m4])
979m4_include([m4/getopt.m4])
980m4_include([m4/gettimeofday.m4])
981m4_include([m4/gnulib-comp.m4])
982m4_include([m4/inline.m4])
983m4_include([m4/intmax_t.m4])
984m4_include([m4/inttypes_h.m4])
985m4_include([m4/langinfo.m4])
986m4_include([m4/longdouble.m4])
987m4_include([m4/longlong.m4])
988m4_include([m4/lstat.m4])
989m4_include([m4/mbchar.m4])
990m4_include([m4/mbiter.m4])
991m4_include([m4/mbrtowc.m4])
992m4_include([m4/mbstate_t.m4])
993m4_include([m4/memchr.m4])
994m4_include([m4/memcmp.m4])
995m4_include([m4/memcpy.m4])
996m4_include([m4/memmove.m4])
997m4_include([m4/mempcpy.m4])
998m4_include([m4/memset.m4])
999m4_include([m4/minmax.m4])
1000m4_include([m4/mktime.m4])
1001m4_include([m4/onceonly_2_57.m4])
1002m4_include([m4/pathmax.m4])
1003m4_include([m4/readlink.m4])
1004m4_include([m4/setenv.m4])
1005m4_include([m4/size_max.m4])
1006m4_include([m4/ssize_t.m4])
1007m4_include([m4/stdbool.m4])
1008m4_include([m4/stdint.m4])
1009m4_include([m4/stdint_h.m4])
1010m4_include([m4/strcase.m4])
1011m4_include([m4/strchrnul.m4])
1012m4_include([m4/strdup.m4])
1013m4_include([m4/strftime.m4])
1014m4_include([m4/strndup.m4])
1015m4_include([m4/strnlen.m4])
1016m4_include([m4/strpbrk.m4])
1017m4_include([m4/strstr.m4])
1018m4_include([m4/strtol.m4])
1019m4_include([m4/strtoul.m4])
1020m4_include([m4/sys_stat_h.m4])
1021m4_include([m4/sysexits.m4])
1022m4_include([m4/time_r.m4])
1023m4_include([m4/tm_gmtoff.m4])
1024m4_include([m4/tzset.m4])
1025m4_include([m4/ulonglong.m4])
1026m4_include([m4/unistd_h.m4])
1027m4_include([m4/unlocked-io.m4])
1028m4_include([m4/vasnprintf.m4])
1029m4_include([m4/vsnprintf.m4])
1030m4_include([m4/wchar_t.m4])
1031m4_include([m4/wcwidth.m4])
1032m4_include([m4/wint_t.m4])
1033m4_include([m4/xalloc.m4])
1034m4_include([m4/xgetcwd.m4])
1035m4_include([m4/xreadlink.m4])
1036m4_include([m4/xsize.m4])
1037m4_include([m4/xstrndup.m4])
1038