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