annotate aclocal.m4 @ 177:d340e9c8191f 2.2

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