1
# generated automatically by aclocal 1.11.4 -*- Autoconf -*-
1
# generated automatically by aclocal 1.12 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
[m4_warning([this file was generated for autoconf 2.68.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
26
25
# This file is free software; the Free Software Foundation
27
26
# gives unlimited permission to copy and/or distribute it,
28
27
# with or without modifications, as long as this notice is preserved.
32
31
# AM_AUTOMAKE_VERSION(VERSION)
33
32
# ----------------------------
35
34
# generated from the m4 files accompanying Automake X.Y.
36
35
# (This private macro should not be called outside this file.)
37
36
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
[am__api_version='1.11'
37
[am__api_version='1.12'
39
38
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
39
dnl require some minimum version. Point them to the right macro.
41
m4_if([$1], [1.11.4], [],
40
m4_if([$1], [1.12], [],
42
41
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
54
53
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
54
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
55
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
[AM_AUTOMAKE_VERSION([1.11.4])dnl
56
[AM_AUTOMAKE_VERSION([1.12])dnl
58
57
m4_ifndef([AC_AUTOCONF_VERSION],
59
58
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
59
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
62
61
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
63
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
66
65
# This file is free software; the Free Software Foundation
67
66
# gives unlimited permission to copy and/or distribute it,
68
67
# with or without modifications, as long as this notice is preserved.
72
71
# 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/../..'.
72
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
73
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
76
75
# Of course, Automake must honor this variable whenever it calls a
77
76
# tool from the auxiliary directory. The problem is that $srcdir (and
91
90
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92
91
# are both prefixed by $srcdir. In an in-source build this is usually
93
# harmless because $srcdir is `.', but things will broke when you
92
# harmless because $srcdir is '.', but things will broke when you
94
93
# start a VPATH build or use an absolute $srcdir.
96
95
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
117
116
# AM_CONDITIONAL -*- Autoconf -*-
119
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
# Free Software Foundation, Inc.
118
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
122
120
# This file is free software; the Free Software Foundation
123
121
# gives unlimited permission to copy and/or distribute it,
124
122
# with or without modifications, as long as this notice is preserved.
128
126
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
127
# -------------------------------------
130
128
# Define a conditional.
131
129
AC_DEFUN([AM_CONDITIONAL],
133
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
134
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
130
[AC_PREREQ([2.52])dnl
131
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
132
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135
133
AC_SUBST([$1_TRUE])dnl
136
134
AC_SUBST([$1_FALSE])dnl
137
135
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
148
Usually this means the macro was only invoked conditionally.]])
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
# 2010, 2011 Free Software Foundation, Inc.
151
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
156
153
# This file is free software; the Free Software Foundation
157
154
# gives unlimited permission to copy and/or distribute it,
158
155
# with or without modifications, as long as this notice is preserved.
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
159
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
163
160
# written in clear, in which case automake, when reading aclocal.m4,
164
161
# will think it sees a *use*, and therefore will trigger all it's
165
162
# C support machinery. Also note that it means that autoscan, seeing
182
179
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
180
AC_REQUIRE([AM_DEP_TRACK])dnl
185
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
186
[$1], CXX, [depcc="$CXX" am_compiler_list=],
187
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
[$1], UPC, [depcc="$UPC" am_compiler_list=],
189
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
190
[depcc="$$1" am_compiler_list=])
182
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
183
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
184
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
185
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
186
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
187
[depcc="$$1" am_compiler_list=])
192
189
AC_CACHE_CHECK([dependency style of $depcc],
193
190
[am_cv_$1_dependencies_compiler_type],
236
233
: > sub/conftest.c
237
234
for i in 1 2 3 4 5 6; do
238
235
echo '#include "conftst'$i'.h"' >> sub/conftest.c
239
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
240
# Solaris 8's {/usr,}/bin/sh.
241
touch sub/conftst$i.h
236
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
237
# Solaris 10 /bin/sh.
238
echo '/* dummy */' > sub/conftst$i.h
243
240
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
245
# We check with `-c' and `-o' for the sake of the "dashmstdout"
242
# We check with '-c' and '-o' for the sake of the "dashmstdout"
246
243
# mode. It turns out that the SunPro C++ compiler does not properly
247
# handle `-M -o', and we need to detect this. Also, some Intel
248
# versions had trouble with output in subdirs
244
# handle '-M -o', and we need to detect this. Also, some Intel
245
# versions had trouble with output in subdirs.
249
246
am__obj=sub/conftest.${OBJEXT-o}
250
247
am__minus_obj="-o $am__obj"
254
251
test "$am__universal" = false || continue
257
# after this tag, mechanisms are not by side-effect, so they'll
258
# only be used when explicitly requested
254
# After this tag, mechanisms are not by side-effect, so they'll
255
# only be used when explicitly requested.
259
256
if test "x$enable_dependency_tracking" = xyes; then
265
262
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
266
# This compiler won't grok `-c -o', but also, the minuso test has
263
# This compiler won't grok '-c -o', but also, the minuso test has
267
264
# not run yet. These depmodes are late enough in the game, and
268
265
# so weak that their functioning should not be impacted.
269
266
am__obj=conftest.${OBJEXT-o}
323
320
AC_DEFUN([AM_DEP_TRACK],
324
[AC_ARG_ENABLE(dependency-tracking,
325
[ --disable-dependency-tracking speeds up one-time build
326
--enable-dependency-tracking do not reject slow dependency extractors])
321
[AC_ARG_ENABLE([dependency-tracking], [dnl
323
[--enable-dependency-tracking],
324
[do not reject slow dependency extractors])
326
[--disable-dependency-tracking],
327
[speeds up one-time build])])
327
328
if test "x$enable_dependency_tracking" != xno; then
328
329
am_depcomp="$ac_aux_dir/depcomp"
329
330
AMDEPBACKSLASH='\'
339
340
# Generate code to set up dependency tracking. -*- Autoconf -*-
341
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
# Free Software Foundation, Inc.
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
344
344
# This file is free software; the Free Software Foundation
345
345
# gives unlimited permission to copy and/or distribute it,
346
346
# with or without modifications, as long as this notice is preserved.
350
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
351
# ------------------------------
364
364
# Strip MF so we end up with the name of the file.
365
365
mf=`echo "$mf" | sed -e 's/:.*$//'`
366
366
# Check whether this is an Automake generated Makefile or not.
367
# We used to match only the files named `Makefile.in', but
367
# We used to match only the files named 'Makefile.in', but
368
368
# some people rename them; so instead we look at the file content.
369
369
# Grep'ing the first line is not enough: some people post-process
370
370
# each Makefile.in and add a new line on top of each file to say so.
378
378
# Extract the definition of DEPDIR, am__include, and am__quote
379
# from the Makefile without running `make'.
379
# from the Makefile without running 'make'.
380
380
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
381
test -z "$DEPDIR" && continue
382
382
am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
383
test -z "am__include" && continue
384
384
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
# When using ansi2knr, U may be empty or an underscore; expand it
386
U=`sed -n 's/^U = //p' < "$mf"`
387
385
# Find all dependency output files, they are included files with
388
386
# $(DEPDIR) in their names. We invoke sed twice because it is the
389
387
# simplest approach to changing $(DEPDIR) to its actual value in the
391
389
for file in `sed -n "
392
390
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
391
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
392
# Make sure the directory exists.
395
393
test -f "$dirpart/$file" && continue
396
394
fdir=`AS_DIRNAME(["$file"])`
408
406
# This macro should only be invoked once -- use via AC_REQUIRE.
410
408
# This code is only required when automatic dependency tracking
411
# is enabled. FIXME. This creates each `.P' file that we will
409
# is enabled. FIXME. This creates each '.P' file that we will
412
410
# need in order to bootstrap the dependency handling code.
413
411
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
414
412
[AC_CONFIG_COMMANDS([depfiles],
416
414
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
419
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
420
# Free Software Foundation, Inc.
417
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
422
419
# This file is free software; the Free Software Foundation
423
420
# gives unlimited permission to copy and/or distribute it,
431
428
# Do all the work for Automake. -*- Autoconf -*-
433
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
434
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
430
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
436
432
# This file is free software; the Free Software Foundation
437
433
# gives unlimited permission to copy and/or distribute it,
438
434
# with or without modifications, as long as this notice is preserved.
442
438
# This macro actually does too much. Some checks are only needed if
443
439
# your package does certain things. But this isn't really a big deal.
488
484
AC_SUBST([VERSION], [$2])],
489
485
[_AM_SET_OPTIONS([$1])dnl
490
486
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
491
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
488
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
492
490
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
493
491
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
494
492
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
496
494
_AM_IF_OPTION([no-define],,
497
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
498
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
495
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
496
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
500
498
# Some tools Automake needs.
501
499
AC_REQUIRE([AM_SANITY_CHECK])dnl
502
500
AC_REQUIRE([AC_ARG_PROGRAM])dnl
503
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
504
AM_MISSING_PROG(AUTOCONF, autoconf)
505
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
506
AM_MISSING_PROG(AUTOHEADER, autoheader)
507
AM_MISSING_PROG(MAKEINFO, makeinfo)
501
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
502
AM_MISSING_PROG([AUTOCONF], [autoconf])
503
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
504
AM_MISSING_PROG([AUTOHEADER], [autoheader])
505
AM_MISSING_PROG([MAKEINFO], [makeinfo])
508
506
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
509
507
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
510
508
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
518
516
[_AM_PROG_TAR([v7])])])
519
517
_AM_IF_OPTION([no-dependencies],,
520
518
[AC_PROVIDE_IFELSE([AC_PROG_CC],
521
[_AM_DEPENDENCIES(CC)],
519
[_AM_DEPENDENCIES([CC])],
522
520
[define([AC_PROG_CC],
523
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
521
defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
524
522
AC_PROVIDE_IFELSE([AC_PROG_CXX],
525
[_AM_DEPENDENCIES(CXX)],
523
[_AM_DEPENDENCIES([CXX])],
526
524
[define([AC_PROG_CXX],
527
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
525
defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
528
526
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
529
[_AM_DEPENDENCIES(OBJC)],
527
[_AM_DEPENDENCIES([OBJC])],
530
528
[define([AC_PROG_OBJC],
531
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
529
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
533
531
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
534
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
535
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
532
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
533
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
536
534
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
537
535
AC_CONFIG_COMMANDS_PRE(dnl
538
536
[m4_provide_if([_AM_COMPILER_EXEEXT],
539
537
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
542
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
540
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
543
541
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
544
542
dnl mangled by Autoconf and run in a shell conditional statement.
545
543
m4_define([_AC_COMPILER_EXEEXT],
568
566
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
570
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
568
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
573
570
# This file is free software; the Free Software Foundation
574
571
# gives unlimited permission to copy and/or distribute it,
575
572
# with or without modifications, as long as this notice is preserved.
579
576
# AM_PROG_INSTALL_SH
580
577
# ------------------
615
612
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
616
613
# From Jim Meyering
618
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
619
# 2011 Free Software Foundation, Inc.
615
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
621
617
# This file is free software; the Free Software Foundation
622
618
# gives unlimited permission to copy and/or distribute it,
623
619
# with or without modifications, as long as this notice is preserved.
627
623
# AM_MAINTAINER_MODE([DEFAULT-MODE])
628
624
# ----------------------------------
629
625
# Control maintainer-specific portions of Makefiles.
630
# Default is to disable them, unless `enable' is passed literally.
631
# For symmetry, `disable' may be passed as well. Anyway, the user
626
# Default is to disable them, unless 'enable' is passed literally.
627
# For symmetry, 'disable' may be passed as well. Anyway, the user
632
628
# can override the default with the --enable/--disable switch.
633
629
AC_DEFUN([AM_MAINTAINER_MODE],
634
630
[m4_case(m4_default([$1], [disable]),
639
635
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
640
636
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
641
637
AC_ARG_ENABLE([maintainer-mode],
642
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
643
(and sometimes confusing) to the casual installer],
644
[USE_MAINTAINER_MODE=$enableval],
645
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
638
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
639
am_maintainer_other[ make rules and dependencies not useful
640
(and sometimes confusing) to the casual installer])],
641
[USE_MAINTAINER_MODE=$enableval],
642
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
646
643
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
647
644
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
648
645
MAINT=$MAINTAINER_MODE_TRUE
655
652
# Check to see how 'make' treats includes. -*- Autoconf -*-
657
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
654
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
659
656
# This file is free software; the Free Software Foundation
660
657
# gives unlimited permission to copy and/or distribute it,
661
658
# with or without modifications, as long as this notice is preserved.
665
662
# AM_MAKE_INCLUDE()
666
663
# -----------------
707
704
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
709
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
710
# Free Software Foundation, Inc.
706
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
712
708
# This file is free software; the Free Software Foundation
713
709
# gives unlimited permission to copy and/or distribute it,
714
710
# with or without modifications, as long as this notice is preserved.
718
714
# AM_MISSING_PROG(NAME, PROGRAM)
719
715
# ------------------------------
743
739
am_missing_run="$MISSING --run "
746
AC_MSG_WARN([`missing' script is too old or missing])
742
AC_MSG_WARN(['missing' script is too old or missing])
750
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
746
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
753
748
# This file is free software; the Free Software Foundation
754
749
# gives unlimited permission to copy and/or distribute it,
755
750
# with or without modifications, as long as this notice is preserved.
759
754
# AM_PROG_MKDIR_P
760
755
# ---------------
761
# Check for `mkdir -p'.
756
# Check for 'mkdir -p'.
762
757
AC_DEFUN([AM_PROG_MKDIR_P],
763
758
[AC_PREREQ([2.60])dnl
764
759
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
779
774
# Helper functions for option handling. -*- Autoconf -*-
781
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
776
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
784
778
# This file is free software; the Free Software Foundation
785
779
# gives unlimited permission to copy and/or distribute it,
786
780
# with or without modifications, as long as this notice is preserved.
790
784
# _AM_MANGLE_OPTION(NAME)
791
785
# -----------------------
813
807
# Check to make sure that the build environment is sane. -*- Autoconf -*-
815
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
816
# Free Software Foundation, Inc.
809
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
818
811
# This file is free software; the Free Software Foundation
819
812
# gives unlimited permission to copy and/or distribute it,
820
813
# with or without modifications, as long as this notice is preserved.
824
817
# AM_SANITY_CHECK
825
818
# ---------------
826
819
AC_DEFUN([AM_SANITY_CHECK],
827
820
[AC_MSG_CHECKING([whether build environment is sane])
830
echo timestamp > conftest.file
831
821
# Reject unsafe characters in $srcdir or the absolute working directory
832
822
# name. Accept space and tab only in the latter.
840
830
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
841
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
831
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
844
# Do `set' in a subshell so we don't clobber the current shell's
834
# Do 'set' in a subshell so we don't clobber the current shell's
845
835
# arguments. Must try -L first in case configure is actually a
846
836
# symlink; some systems play weird games with the mod time of symlinks
847
837
# (eg FreeBSD returns the mod time of the symlink's containing
850
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
851
if test "$[*]" = "X"; then
853
set X `ls -t "$srcdir/configure" conftest.file`
856
if test "$[*]" != "X $srcdir/configure conftest.file" \
857
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
859
# If neither matched, then we have a broken ls. This can happen
860
# if, for instance, CONFIG_SHELL is bash and it inherits a
861
# broken ls alias from the environment. This has actually
862
# happened. Such a system could not be considered "sane".
863
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
864
alias in your environment])
841
for am_try in 1 2; do
842
echo "timestamp, slept: $am_has_slept" > conftest.file
843
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
844
if test "$[*]" = "X"; then
846
set X `ls -t "$srcdir/configure" conftest.file`
848
if test "$[*]" != "X $srcdir/configure conftest.file" \
849
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
851
# If neither matched, then we have a broken ls. This can happen
852
# if, for instance, CONFIG_SHELL is bash and it inherits a
853
# broken ls alias from the environment. This has actually
854
# happened. Such a system could not be considered "sane".
855
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
856
alias in your environment])
858
if test "$[2]" = conftest.file || test $am_try -eq 2; then
867
865
test "$[2]" = conftest.file
873
871
AC_MSG_ERROR([newly created file is older than distributed files!
874
872
Check your system clock])
875
# If we didn't sleep, we still need to ensure time stamps of config.status and
876
# generated files are strictly newer.
878
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
882
AC_CONFIG_COMMANDS_PRE(
883
[AC_MSG_CHECKING([that generated files are newer than configure])
884
if test -n "$am_sleep_pid"; then
885
# Hide warnings about reused PIDs.
886
wait $am_sleep_pid 2>/dev/null
888
AC_MSG_RESULT([done])])
878
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
892
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
880
894
# This file is free software; the Free Software Foundation
881
895
# gives unlimited permission to copy and/or distribute it,
882
896
# with or without modifications, as long as this notice is preserved.
886
900
# AM_PROG_INSTALL_STRIP
887
901
# ---------------------
888
# One issue with vendor `install' (even GNU) is that you can't
902
# One issue with vendor 'install' (even GNU) is that you can't
889
903
# specify the program used to strip binaries. This is especially
890
904
# annoying in cross-compiling environments, where the build's strip
891
905
# is unlikely to handle the host's binaries.
892
906
# Fortunately install-sh will honor a STRIPPROG variable, so we
893
# always use install-sh in `make install-strip', and initialize
907
# always use install-sh in "make install-strip", and initialize
894
908
# STRIPPROG with the value of the STRIP variable (set by the user).
895
909
AC_DEFUN([AM_PROG_INSTALL_STRIP],
896
910
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
897
# Installed binaries are usually stripped using `strip' when the user
898
# run `make install-strip'. However `strip' might not be the right
911
# Installed binaries are usually stripped using 'strip' when the user
912
# run "make install-strip". However 'strip' might not be the right
899
913
# tool to use in cross-compilation environments, therefore Automake
900
# will honor the `STRIP' environment variable to overrule this program.
901
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
914
# will honor the 'STRIP' environment variable to overrule this program.
915
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
902
916
if test "$cross_compiling" != no; then
903
917
AC_CHECK_TOOL([STRIP], [strip], :)
905
919
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
906
920
AC_SUBST([INSTALL_STRIP_PROGRAM])])
908
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
922
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
910
924
# This file is free software; the Free Software Foundation
911
925
# gives unlimited permission to copy and/or distribute it,
927
941
# Check how to create a tarball. -*- Autoconf -*-
929
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
943
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
931
945
# This file is free software; the Free Software Foundation
932
946
# gives unlimited permission to copy and/or distribute it,
933
947
# with or without modifications, as long as this notice is preserved.
937
951
# _AM_PROG_TAR(FORMAT)
938
952
# --------------------
939
953
# Check how to create a tarball in format FORMAT.
940
# FORMAT should be one of `v7', `ustar', or `pax'.
954
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
942
956
# Substitute a variable $(am__tar) that is a command
943
957
# writing to stdout a FORMAT-tarball containing the directory