1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
\r
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
\r
4 # 2005 Free Software Foundation, Inc.
\r
5 # This file is free software; the Free Software Foundation
\r
6 # gives unlimited permission to copy and/or distribute it,
\r
7 # with or without modifications, as long as this notice is preserved.
\r
9 # This program is distributed in the hope that it will be useful,
\r
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
\r
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
\r
12 # PARTICULAR PURPOSE.
\r
14 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
\r
16 # This file is free software; the Free Software Foundation
\r
17 # gives unlimited permission to copy and/or distribute it,
\r
18 # with or without modifications, as long as this notice is preserved.
\r
20 # AM_AUTOMAKE_VERSION(VERSION)
\r
21 # ----------------------------
\r
22 # Automake X.Y traces this macro to ensure aclocal.m4 has been
\r
23 # generated from the m4 files accompanying Automake X.Y.
\r
24 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
\r
26 # AM_SET_CURRENT_AUTOMAKE_VERSION
\r
27 # -------------------------------
\r
28 # Call AM_AUTOMAKE_VERSION so it can be traced.
\r
29 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
\r
30 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
\r
31 [AM_AUTOMAKE_VERSION([1.9.6])])
\r
33 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
\r
35 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
\r
37 # This file is free software; the Free Software Foundation
\r
38 # gives unlimited permission to copy and/or distribute it,
\r
39 # with or without modifications, as long as this notice is preserved.
\r
41 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
\r
42 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
\r
43 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
\r
45 # Of course, Automake must honor this variable whenever it calls a
\r
46 # tool from the auxiliary directory. The problem is that $srcdir (and
\r
47 # therefore $ac_aux_dir as well) can be either absolute or relative,
\r
48 # depending on how configure is run. This is pretty annoying, since
\r
49 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
\r
50 # source directory, any form will work fine, but in subdirectories a
\r
51 # relative path needs to be adjusted first.
\r
53 # $ac_aux_dir/missing
\r
54 # fails when called from a subdirectory if $ac_aux_dir is relative
\r
55 # $top_srcdir/$ac_aux_dir/missing
\r
56 # fails if $ac_aux_dir is absolute,
\r
57 # fails when called from a subdirectory in a VPATH build with
\r
58 # a relative $ac_aux_dir
\r
60 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
\r
61 # are both prefixed by $srcdir. In an in-source build this is usually
\r
62 # harmless because $srcdir is `.', but things will broke when you
\r
63 # start a VPATH build or use an absolute $srcdir.
\r
65 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
\r
66 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
\r
67 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
\r
68 # and then we would define $MISSING as
\r
69 # MISSING="\${SHELL} $am_aux_dir/missing"
\r
70 # This will work as long as MISSING is not called from configure, because
\r
71 # unfortunately $(top_srcdir) has no meaning in configure.
\r
72 # However there are other variables, like CC, which are often used in
\r
73 # configure, and could therefore not use this "fixed" $ac_aux_dir.
\r
75 # Another solution, used here, is to always expand $ac_aux_dir to an
\r
76 # absolute PATH. The drawback is that using absolute paths prevent a
\r
77 # configured tree to be moved without reconfiguration.
\r
79 AC_DEFUN([AM_AUX_DIR_EXPAND],
\r
80 [dnl Rely on autoconf to set up CDPATH properly.
\r
81 AC_PREREQ([2.50])dnl
\r
82 # expand $ac_aux_dir to an absolute path
\r
83 am_aux_dir=`cd $ac_aux_dir && pwd`
\r
86 # AM_CONDITIONAL -*- Autoconf -*-
\r
88 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
\r
89 # Free Software Foundation, Inc.
\r
91 # This file is free software; the Free Software Foundation
\r
92 # gives unlimited permission to copy and/or distribute it,
\r
93 # with or without modifications, as long as this notice is preserved.
\r
97 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
\r
98 # -------------------------------------
\r
99 # Define a conditional.
\r
100 AC_DEFUN([AM_CONDITIONAL],
\r
101 [AC_PREREQ(2.52)dnl
\r
102 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
\r
103 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
\r
104 AC_SUBST([$1_TRUE])
\r
105 AC_SUBST([$1_FALSE])
\r
113 AC_CONFIG_COMMANDS_PRE(
\r
114 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
\r
115 AC_MSG_ERROR([[conditional "$1" was never defined.
\r
116 Usually this means the macro was only invoked conditionally.]])
\r
120 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
\r
121 # Free Software Foundation, Inc.
\r
123 # This file is free software; the Free Software Foundation
\r
124 # gives unlimited permission to copy and/or distribute it,
\r
125 # with or without modifications, as long as this notice is preserved.
\r
129 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
\r
130 # written in clear, in which case automake, when reading aclocal.m4,
\r
131 # will think it sees a *use*, and therefore will trigger all it's
\r
132 # C support machinery. Also note that it means that autoscan, seeing
\r
133 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
\r
136 # _AM_DEPENDENCIES(NAME)
\r
137 # ----------------------
\r
138 # See how the compiler implements dependency checking.
\r
139 # NAME is "CC", "CXX", "GCJ", or "OBJC".
\r
140 # We try a few techniques and use that to set a single cache variable.
\r
142 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
\r
143 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
\r
144 # dependency, and given that the user is not expected to run this macro,
\r
145 # just rely on AC_PROG_CC.
\r
146 AC_DEFUN([_AM_DEPENDENCIES],
\r
147 [AC_REQUIRE([AM_SET_DEPDIR])dnl
\r
148 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
\r
149 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
\r
150 AC_REQUIRE([AM_DEP_TRACK])dnl
\r
152 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
\r
153 [$1], CXX, [depcc="$CXX" am_compiler_list=],
\r
154 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
\r
155 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
\r
156 [depcc="$$1" am_compiler_list=])
\r
158 AC_CACHE_CHECK([dependency style of $depcc],
\r
159 [am_cv_$1_dependencies_compiler_type],
\r
160 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
\r
161 # We make a subdir and do the tests there. Otherwise we can end up
\r
162 # making bogus files that we don't know about and never remove. For
\r
163 # instance it was reported that on HP-UX the gcc test will end up
\r
164 # making a dummy file named `D' -- because `-MD' means `put the output
\r
167 # Copy depcomp to subdir because otherwise we won't find it if we're
\r
168 # using a relative directory.
\r
169 cp "$am_depcomp" conftest.dir
\r
171 # We will build objects and dependencies in a subdirectory because
\r
172 # it helps to detect inapplicable dependency modes. For instance
\r
173 # both Tru64's cc and ICC support -MD to output dependencies as a
\r
174 # side effect of compilation, but ICC will put the dependencies in
\r
175 # the current directory while Tru64 will put them in the object
\r
179 am_cv_$1_dependencies_compiler_type=none
\r
180 if test "$am_compiler_list" = ""; then
\r
181 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
\r
183 for depmode in $am_compiler_list; do
\r
184 # Setup a source with many dependencies, because some compilers
\r
185 # like to wrap large dependency lists on column 80 (with \), and
\r
186 # we should not choose a depcomp mode which is confused by this.
\r
188 # We need to recreate these files for each test, as the compiler may
\r
189 # overwrite some of them when testing with obscure command lines.
\r
190 # This happens at least with the AIX C compiler.
\r
192 for i in 1 2 3 4 5 6; do
\r
193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
\r
194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
\r
195 # Solaris 8's {/usr,}/bin/sh.
\r
196 touch sub/conftst$i.h
\r
198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
\r
202 # after this tag, mechanisms are not by side-effect, so they'll
\r
203 # only be used when explicitly requested
\r
204 if test "x$enable_dependency_tracking" = xyes; then
\r
212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
\r
213 # mode. It turns out that the SunPro C++ compiler does not properly
\r
214 # handle `-M -o', and we need to detect this.
\r
215 if depmode=$depmode \
\r
216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
\r
217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
\r
218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
\r
219 >/dev/null 2>conftest.err &&
\r
220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
\r
221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
\r
222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
\r
223 # icc doesn't choke on unknown options, it will just issue warnings
\r
224 # or remarks (even with -Werror). So we grep stderr for any message
\r
225 # that says an option was ignored or not supported.
\r
226 # When given -MP, icc 7.0 and 7.1 complain thusly:
\r
227 # icc: Command line warning: ignoring option '-M'; no argument required
\r
228 # The diagnosis changed in icc 8.0:
\r
229 # icc: Command line remark: option '-MP' not supported
\r
230 if (grep 'ignoring option' conftest.err ||
\r
231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
\r
232 am_cv_$1_dependencies_compiler_type=$depmode
\r
239 rm -rf conftest.dir
\r
241 am_cv_$1_dependencies_compiler_type=none
\r
244 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
\r
245 AM_CONDITIONAL([am__fastdep$1], [
\r
246 test "x$enable_dependency_tracking" != xno \
\r
247 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
\r
253 # Choose a directory name for dependency files.
\r
254 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
\r
255 AC_DEFUN([AM_SET_DEPDIR],
\r
256 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
\r
257 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
\r
263 AC_DEFUN([AM_DEP_TRACK],
\r
264 [AC_ARG_ENABLE(dependency-tracking,
\r
265 [ --disable-dependency-tracking speeds up one-time build
\r
266 --enable-dependency-tracking do not reject slow dependency extractors])
\r
267 if test "x$enable_dependency_tracking" != xno; then
\r
268 am_depcomp="$ac_aux_dir/depcomp"
\r
271 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
\r
272 AC_SUBST([AMDEPBACKSLASH])
\r
275 # Generate code to set up dependency tracking. -*- Autoconf -*-
\r
277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
\r
278 # Free Software Foundation, Inc.
\r
280 # This file is free software; the Free Software Foundation
\r
281 # gives unlimited permission to copy and/or distribute it,
\r
282 # with or without modifications, as long as this notice is preserved.
\r
286 # _AM_OUTPUT_DEPENDENCY_COMMANDS
\r
287 # ------------------------------
\r
288 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
\r
289 [for mf in $CONFIG_FILES; do
\r
290 # Strip MF so we end up with the name of the file.
\r
291 mf=`echo "$mf" | sed -e 's/:.*$//'`
\r
292 # Check whether this is an Automake generated Makefile or not.
\r
293 # We used to match only the files named `Makefile.in', but
\r
294 # some people rename them; so instead we look at the file content.
\r
295 # Grep'ing the first line is not enough: some people post-process
\r
296 # each Makefile.in and add a new line on top of each file to say so.
\r
297 # So let's grep whole file.
\r
298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
\r
299 dirpart=`AS_DIRNAME("$mf")`
\r
303 # Extract the definition of DEPDIR, am__include, and am__quote
\r
304 # from the Makefile without running `make'.
\r
305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
\r
306 test -z "$DEPDIR" && continue
\r
307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
\r
308 test -z "am__include" && continue
\r
309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
\r
310 # When using ansi2knr, U may be empty or an underscore; expand it
\r
311 U=`sed -n 's/^U = //p' < "$mf"`
\r
312 # Find all dependency output files, they are included files with
\r
313 # $(DEPDIR) in their names. We invoke sed twice because it is the
\r
314 # simplest approach to changing $(DEPDIR) to its actual value in the
\r
316 for file in `sed -n "
\r
317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
\r
318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
\r
319 # Make sure the directory exists.
\r
320 test -f "$dirpart/$file" && continue
\r
321 fdir=`AS_DIRNAME(["$file"])`
\r
322 AS_MKDIR_P([$dirpart/$fdir])
\r
323 # echo "creating $dirpart/$file"
\r
324 echo '# dummy' > "$dirpart/$file"
\r
327 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
\r
330 # AM_OUTPUT_DEPENDENCY_COMMANDS
\r
331 # -----------------------------
\r
332 # This macro should only be invoked once -- use via AC_REQUIRE.
\r
334 # This code is only required when automatic dependency tracking
\r
335 # is enabled. FIXME. This creates each `.P' file that we will
\r
336 # need in order to bootstrap the dependency handling code.
\r
337 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
\r
338 [AC_CONFIG_COMMANDS([depfiles],
\r
339 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
\r
340 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
\r
343 # Do all the work for Automake. -*- Autoconf -*-
\r
345 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
\r
346 # Free Software Foundation, Inc.
\r
348 # This file is free software; the Free Software Foundation
\r
349 # gives unlimited permission to copy and/or distribute it,
\r
350 # with or without modifications, as long as this notice is preserved.
\r
354 # This macro actually does too much. Some checks are only needed if
\r
355 # your package does certain things. But this isn't really a big deal.
\r
357 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
\r
358 # AM_INIT_AUTOMAKE([OPTIONS])
\r
359 # -----------------------------------------------
\r
360 # The call with PACKAGE and VERSION arguments is the old style
\r
361 # call (pre autoconf-2.50), which is being phased out. PACKAGE
\r
362 # and VERSION should now be passed to AC_INIT and removed from
\r
363 # the call to AM_INIT_AUTOMAKE.
\r
364 # We support both call styles for the transition. After
\r
365 # the next Automake release, Autoconf can make the AC_INIT
\r
366 # arguments mandatory, and then we can depend on a new Autoconf
\r
367 # release and drop the old call support.
\r
368 AC_DEFUN([AM_INIT_AUTOMAKE],
\r
369 [AC_PREREQ([2.58])dnl
\r
370 dnl Autoconf wants to disallow AM_ names. We explicitly allow
\r
371 dnl the ones we care about.
\r
372 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
\r
373 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
\r
374 AC_REQUIRE([AC_PROG_INSTALL])dnl
\r
375 # test to see if srcdir already configured
\r
376 if test "`cd $srcdir && pwd`" != "`pwd`" &&
\r
377 test -f $srcdir/config.status; then
\r
378 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
\r
381 # test whether we have cygpath
\r
382 if test -z "$CYGPATH_W"; then
\r
383 if (cygpath --version) >/dev/null 2>/dev/null; then
\r
384 CYGPATH_W='cygpath -w'
\r
389 AC_SUBST([CYGPATH_W])
\r
391 # Define the identity of the package.
\r
392 dnl Distinguish between old-style and new-style calls.
\r
394 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
\r
395 AC_SUBST([PACKAGE], [$1])dnl
\r
396 AC_SUBST([VERSION], [$2])],
\r
397 [_AM_SET_OPTIONS([$1])dnl
\r
398 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
\r
399 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
\r
401 _AM_IF_OPTION([no-define],,
\r
402 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
\r
403 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
\r
405 # Some tools Automake needs.
\r
406 AC_REQUIRE([AM_SANITY_CHECK])dnl
\r
407 AC_REQUIRE([AC_ARG_PROGRAM])dnl
\r
408 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
\r
409 AM_MISSING_PROG(AUTOCONF, autoconf)
\r
410 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
\r
411 AM_MISSING_PROG(AUTOHEADER, autoheader)
\r
412 AM_MISSING_PROG(MAKEINFO, makeinfo)
\r
414 AM_PROG_INSTALL_STRIP
\r
415 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
\r
416 # We need awk for the "check" target. The system "awk" is bad on
\r
418 AC_REQUIRE([AC_PROG_AWK])dnl
\r
419 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
\r
420 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
\r
421 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
\r
422 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
\r
423 [_AM_PROG_TAR([v7])])])
\r
424 _AM_IF_OPTION([no-dependencies],,
\r
425 [AC_PROVIDE_IFELSE([AC_PROG_CC],
\r
426 [_AM_DEPENDENCIES(CC)],
\r
427 [define([AC_PROG_CC],
\r
428 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
\r
429 AC_PROVIDE_IFELSE([AC_PROG_CXX],
\r
430 [_AM_DEPENDENCIES(CXX)],
\r
431 [define([AC_PROG_CXX],
\r
432 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
\r
437 # When config.status generates a header, we must update the stamp-h file.
\r
438 # This file resides in the same directory as the config header
\r
439 # that is generated. The stamp files are numbered to have different names.
\r
441 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
\r
442 # loop where config.status creates the headers, so we can generate
\r
443 # our stamp files there.
\r
444 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
\r
445 [# Compute $1's index in $config_headers.
\r
447 for _am_header in $config_headers :; do
\r
448 case $_am_header in
\r
452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
\r
455 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
\r
457 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
\r
459 # This file is free software; the Free Software Foundation
\r
460 # gives unlimited permission to copy and/or distribute it,
\r
461 # with or without modifications, as long as this notice is preserved.
\r
463 # AM_PROG_INSTALL_SH
\r
464 # ------------------
\r
465 # Define $install_sh.
\r
466 AC_DEFUN([AM_PROG_INSTALL_SH],
\r
467 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
\r
468 install_sh=${install_sh-"$am_aux_dir/install-sh"}
\r
469 AC_SUBST(install_sh)])
\r
471 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
\r
473 # This file is free software; the Free Software Foundation
\r
474 # gives unlimited permission to copy and/or distribute it,
\r
475 # with or without modifications, as long as this notice is preserved.
\r
479 # Check whether the underlying file-system supports filenames
\r
480 # with a leading dot. For instance MS-DOS doesn't.
\r
481 AC_DEFUN([AM_SET_LEADING_DOT],
\r
482 [rm -rf .tst 2>/dev/null
\r
483 mkdir .tst 2>/dev/null
\r
484 if test -d .tst; then
\r
489 rmdir .tst 2>/dev/null
\r
490 AC_SUBST([am__leading_dot])])
\r
492 # Check to see how 'make' treats includes. -*- Autoconf -*-
\r
494 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
\r
496 # This file is free software; the Free Software Foundation
\r
497 # gives unlimited permission to copy and/or distribute it,
\r
498 # with or without modifications, as long as this notice is preserved.
\r
502 # AM_MAKE_INCLUDE()
\r
503 # -----------------
\r
504 # Check to see how make treats includes.
\r
505 AC_DEFUN([AM_MAKE_INCLUDE],
\r
506 [am_make=${MAKE-make}
\r
507 cat > confinc << 'END'
\r
512 # If we don't find an include directive, just comment out the code.
\r
513 AC_MSG_CHECKING([for style of include used by $am_make])
\r
517 # First try GNU make style include.
\r
518 echo "include confinc" > confmf
\r
519 # We grep out `Entering directory' and `Leaving directory'
\r
520 # messages which can occur if `w' ends up in MAKEFLAGS.
\r
521 # In particular we don't look at `^make:' because GNU make might
\r
522 # be invoked under some other name (usually "gmake"), in which
\r
523 # case it prints its new name instead of `make'.
\r
524 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
\r
525 am__include=include
\r
529 # Now try BSD make style include.
\r
530 if test "$am__include" = "#"; then
\r
531 echo '.include "confinc"' > confmf
\r
532 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
\r
533 am__include=.include
\r
538 AC_SUBST([am__include])
\r
539 AC_SUBST([am__quote])
\r
540 AC_MSG_RESULT([$_am_result])
\r
541 rm -f confinc confmf
\r
544 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
\r
546 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
\r
547 # Free Software Foundation, Inc.
\r
549 # This file is free software; the Free Software Foundation
\r
550 # gives unlimited permission to copy and/or distribute it,
\r
551 # with or without modifications, as long as this notice is preserved.
\r
555 # AM_MISSING_PROG(NAME, PROGRAM)
\r
556 # ------------------------------
\r
557 AC_DEFUN([AM_MISSING_PROG],
\r
558 [AC_REQUIRE([AM_MISSING_HAS_RUN])
\r
559 $1=${$1-"${am_missing_run}$2"}
\r
563 # AM_MISSING_HAS_RUN
\r
564 # ------------------
\r
565 # Define MISSING if not defined so far and test if it supports --run.
\r
566 # If it does, set am_missing_run to use it, otherwise, to nothing.
\r
567 AC_DEFUN([AM_MISSING_HAS_RUN],
\r
568 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
\r
569 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
\r
570 # Use eval to expand $SHELL
\r
571 if eval "$MISSING --run true"; then
\r
572 am_missing_run="$MISSING --run "
\r
575 AC_MSG_WARN([`missing' script is too old or missing])
\r
579 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
\r
581 # This file is free software; the Free Software Foundation
\r
582 # gives unlimited permission to copy and/or distribute it,
\r
583 # with or without modifications, as long as this notice is preserved.
\r
587 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
\r
589 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
\r
590 # created by `make install' are always world readable, even if the
\r
591 # installer happens to have an overly restrictive umask (e.g. 077).
\r
592 # This was a mistake. There are at least two reasons why we must not
\r
594 # - it causes special bits like SGID to be ignored,
\r
595 # - it may be too restrictive (some setups expect 775 directories).
\r
597 # Do not use -m 0755 and let people choose whatever they expect by
\r
600 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
\r
601 # Some implementations (such as Solaris 8's) are not thread-safe: if a
\r
602 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
\r
603 # concurrently, both version can detect that a/ is missing, but only
\r
604 # one can create it and the other will error out. Consequently we
\r
605 # restrict ourselves to GNU make (using the --version option ensures
\r
607 AC_DEFUN([AM_PROG_MKDIR_P],
\r
608 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
\r
609 # We used to keeping the `.' as first argument, in order to
\r
610 # allow $(mkdir_p) to be used without argument. As in
\r
611 # $(mkdir_p) $(somedir)
\r
612 # where $(somedir) is conditionally defined. However this is wrong
\r
614 # 1. if the package is installed by a user who cannot write `.'
\r
615 # make install will fail,
\r
616 # 2. the above comment should most certainly read
\r
617 # $(mkdir_p) $(DESTDIR)$(somedir)
\r
618 # so it does not work when $(somedir) is undefined and
\r
619 # $(DESTDIR) is not.
\r
620 # To support the latter case, we have to write
\r
621 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
\r
622 # so the `.' trick is pointless.
\r
623 mkdir_p='mkdir -p --'
\r
625 # On NextStep and OpenStep, the `mkdir' command does not
\r
626 # recognize any option. It will interpret all options as
\r
627 # directories to create, and then abort because `.' already
\r
629 for d in ./-p ./--version;
\r
631 test -d $d && rmdir $d
\r
633 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
\r
634 if test -f "$ac_aux_dir/mkinstalldirs"; then
\r
635 mkdir_p='$(mkinstalldirs)'
\r
637 mkdir_p='$(install_sh) -d'
\r
640 AC_SUBST([mkdir_p])])
\r
642 # Helper functions for option handling. -*- Autoconf -*-
\r
644 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
\r
646 # This file is free software; the Free Software Foundation
\r
647 # gives unlimited permission to copy and/or distribute it,
\r
648 # with or without modifications, as long as this notice is preserved.
\r
652 # _AM_MANGLE_OPTION(NAME)
\r
653 # -----------------------
\r
654 AC_DEFUN([_AM_MANGLE_OPTION],
\r
655 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
\r
657 # _AM_SET_OPTION(NAME)
\r
658 # ------------------------------
\r
659 # Set option NAME. Presently that only means defining a flag for this option.
\r
660 AC_DEFUN([_AM_SET_OPTION],
\r
661 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
\r
663 # _AM_SET_OPTIONS(OPTIONS)
\r
664 # ----------------------------------
\r
665 # OPTIONS is a space-separated list of Automake options.
\r
666 AC_DEFUN([_AM_SET_OPTIONS],
\r
667 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
\r
669 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
\r
670 # -------------------------------------------
\r
671 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
\r
672 AC_DEFUN([_AM_IF_OPTION],
\r
673 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
\r
675 # Check to make sure that the build environment is sane. -*- Autoconf -*-
\r
677 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
\r
678 # Free Software Foundation, Inc.
\r
680 # This file is free software; the Free Software Foundation
\r
681 # gives unlimited permission to copy and/or distribute it,
\r
682 # with or without modifications, as long as this notice is preserved.
\r
688 AC_DEFUN([AM_SANITY_CHECK],
\r
689 [AC_MSG_CHECKING([whether build environment is sane])
\r
692 echo timestamp > conftest.file
\r
693 # Do `set' in a subshell so we don't clobber the current shell's
\r
694 # arguments. Must try -L first in case configure is actually a
\r
695 # symlink; some systems play weird games with the mod time of symlinks
\r
696 # (eg FreeBSD returns the mod time of the symlink's containing
\r
699 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
\r
700 if test "$[*]" = "X"; then
\r
702 set X `ls -t $srcdir/configure conftest.file`
\r
704 rm -f conftest.file
\r
705 if test "$[*]" != "X $srcdir/configure conftest.file" \
\r
706 && test "$[*]" != "X conftest.file $srcdir/configure"; then
\r
708 # If neither matched, then we have a broken ls. This can happen
\r
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
\r
710 # broken ls alias from the environment. This has actually
\r
711 # happened. Such a system could not be considered "sane".
\r
712 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
\r
713 alias in your environment])
\r
716 test "$[2]" = conftest.file
\r
722 AC_MSG_ERROR([newly created file is older than distributed files!
\r
723 Check your system clock])
\r
725 AC_MSG_RESULT(yes)])
\r
727 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
\r
729 # This file is free software; the Free Software Foundation
\r
730 # gives unlimited permission to copy and/or distribute it,
\r
731 # with or without modifications, as long as this notice is preserved.
\r
733 # AM_PROG_INSTALL_STRIP
\r
734 # ---------------------
\r
735 # One issue with vendor `install' (even GNU) is that you can't
\r
736 # specify the program used to strip binaries. This is especially
\r
737 # annoying in cross-compiling environments, where the build's strip
\r
738 # is unlikely to handle the host's binaries.
\r
739 # Fortunately install-sh will honor a STRIPPROG variable, so we
\r
740 # always use install-sh in `make install-strip', and initialize
\r
741 # STRIPPROG with the value of the STRIP variable (set by the user).
\r
742 AC_DEFUN([AM_PROG_INSTALL_STRIP],
\r
743 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
\r
744 # Installed binaries are usually stripped using `strip' when the user
\r
745 # run `make install-strip'. However `strip' might not be the right
\r
746 # tool to use in cross-compilation environments, therefore Automake
\r
747 # will honor the `STRIP' environment variable to overrule this program.
\r
748 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
\r
749 if test "$cross_compiling" != no; then
\r
750 AC_CHECK_TOOL([STRIP], [strip], :)
\r
752 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
\r
753 AC_SUBST([INSTALL_STRIP_PROGRAM])])
\r
755 # Check how to create a tarball. -*- Autoconf -*-
\r
757 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
\r
759 # This file is free software; the Free Software Foundation
\r
760 # gives unlimited permission to copy and/or distribute it,
\r
761 # with or without modifications, as long as this notice is preserved.
\r
765 # _AM_PROG_TAR(FORMAT)
\r
766 # --------------------
\r
767 # Check how to create a tarball in format FORMAT.
\r
768 # FORMAT should be one of `v7', `ustar', or `pax'.
\r
770 # Substitute a variable $(am__tar) that is a command
\r
771 # writing to stdout a FORMAT-tarball containing the directory
\r
773 # tardir=directory && $(am__tar) > result.tar
\r
775 # Substitute a variable $(am__untar) that extract such
\r
776 # a tarball read from stdin.
\r
777 # $(am__untar) < result.tar
\r
778 AC_DEFUN([_AM_PROG_TAR],
\r
779 [# Always define AMTAR for backward compatibility.
\r
780 AM_MISSING_PROG([AMTAR], [tar])
\r
782 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
\r
783 [m4_case([$1], [ustar],, [pax],,
\r
784 [m4_fatal([Unknown tar format])])
\r
785 AC_MSG_CHECKING([how to create a $1 tar archive])
\r
786 # Loop over all known methods to create a tar archive until one works.
\r
787 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
\r
788 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
\r
789 # Do not fold the above two line into one, because Tru64 sh and
\r
790 # Solaris sh will not grok spaces in the rhs of `-'.
\r
791 for _am_tool in $_am_tools
\r
795 for _am_tar in tar gnutar gtar;
\r
797 AM_RUN_LOG([$_am_tar --version]) && break
\r
799 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
\r
800 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
\r
801 am__untar="$_am_tar -xf -"
\r
804 # Must skip GNU tar: if it does not support --format= it doesn't create
\r
805 # ustar tarball either.
\r
806 (tar --version) >/dev/null 2>&1 && continue
\r
807 am__tar='tar chf - "$$tardir"'
\r
808 am__tar_='tar chf - "$tardir"'
\r
809 am__untar='tar xf -'
\r
812 am__tar='pax -L -x $1 -w "$$tardir"'
\r
813 am__tar_='pax -L -x $1 -w "$tardir"'
\r
817 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
\r
818 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
\r
819 am__untar='cpio -i -H $1 -d'
\r
828 # If the value was cached, stop now. We just wanted to have am__tar
\r
829 # and am__untar set.
\r
830 test -n "${am_cv_prog_tar_$1}" && break
\r
832 # tar/untar a dummy directory, and stop if the command works
\r
833 rm -rf conftest.dir
\r
835 echo GrepMe > conftest.dir/file
\r
836 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
\r
837 rm -rf conftest.dir
\r
838 if test -s conftest.tar; then
\r
839 AM_RUN_LOG([$am__untar <conftest.tar])
\r
840 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
\r
843 rm -rf conftest.dir
\r
845 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
\r
846 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
\r
847 AC_SUBST([am__tar])
\r
848 AC_SUBST([am__untar])
\r