145
|
1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
|
2
|
|
3 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
4
|
|
5 # This file is free software; the Free Software Foundation
|
|
6 # gives unlimited permission to copy and/or distribute it,
|
|
7 # with or without modifications, as long as this notice is preserved.
|
|
8
|
|
9 # This program is distributed in the hope that it will be useful,
|
|
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
12 # PARTICULAR PURPOSE.
|
|
13
|
|
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
15 m4_ifndef([AC_AUTOCONF_VERSION],
|
|
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
|
18 [m4_warning([this file was generated for autoconf 2.69.
|
|
19 You have another version of autoconf. It may work, but is not guaranteed to.
|
|
20 If you have problems, you may need to regenerate the build system entirely.
|
|
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
22
|
|
23 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
|
24 #
|
|
25 # This file is free software; the Free Software Foundation
|
|
26 # gives unlimited permission to copy and/or distribute it,
|
|
27 # with or without modifications, as long as this notice is preserved.
|
|
28
|
|
29 # AM_AUTOMAKE_VERSION(VERSION)
|
|
30 # ----------------------------
|
|
31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
32 # generated from the m4 files accompanying Automake X.Y.
|
|
33 # (This private macro should not be called outside this file.)
|
|
34 AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
35 [am__api_version='1.15'
|
|
36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
37 dnl require some minimum version. Point them to the right macro.
|
|
38 m4_if([$1], [1.15.1], [],
|
|
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
40 ])
|
|
41
|
|
42 # _AM_AUTOCONF_VERSION(VERSION)
|
|
43 # -----------------------------
|
|
44 # aclocal traces this macro to find the Autoconf version.
|
|
45 # This is a private macro too. Using m4_define simplifies
|
|
46 # the logic in aclocal, which can simply ignore this definition.
|
|
47 m4_define([_AM_AUTOCONF_VERSION], [])
|
|
48
|
|
49 # AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
50 # -------------------------------
|
|
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
54 [AM_AUTOMAKE_VERSION([1.15.1])dnl
|
|
55 m4_ifndef([AC_AUTOCONF_VERSION],
|
|
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
58
|
|
59 # Figure out how to run the assembler. -*- Autoconf -*-
|
|
60
|
|
61 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
62 #
|
|
63 # This file is free software; the Free Software Foundation
|
|
64 # gives unlimited permission to copy and/or distribute it,
|
|
65 # with or without modifications, as long as this notice is preserved.
|
|
66
|
|
67 # AM_PROG_AS
|
|
68 # ----------
|
|
69 AC_DEFUN([AM_PROG_AS],
|
|
70 [# By default we simply use the C compiler to build assembly code.
|
|
71 AC_REQUIRE([AC_PROG_CC])
|
|
72 test "${CCAS+set}" = set || CCAS=$CC
|
|
73 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
|
74 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
|
|
75 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
|
|
76 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
|
|
77 ])
|
|
78
|
|
79 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
80
|
|
81 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
82 #
|
|
83 # This file is free software; the Free Software Foundation
|
|
84 # gives unlimited permission to copy and/or distribute it,
|
|
85 # with or without modifications, as long as this notice is preserved.
|
|
86
|
|
87 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
88 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
89 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
90 #
|
|
91 # Of course, Automake must honor this variable whenever it calls a
|
|
92 # tool from the auxiliary directory. The problem is that $srcdir (and
|
|
93 # therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
94 # depending on how configure is run. This is pretty annoying, since
|
|
95 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
96 # source directory, any form will work fine, but in subdirectories a
|
|
97 # relative path needs to be adjusted first.
|
|
98 #
|
|
99 # $ac_aux_dir/missing
|
|
100 # fails when called from a subdirectory if $ac_aux_dir is relative
|
|
101 # $top_srcdir/$ac_aux_dir/missing
|
|
102 # fails if $ac_aux_dir is absolute,
|
|
103 # fails when called from a subdirectory in a VPATH build with
|
|
104 # a relative $ac_aux_dir
|
|
105 #
|
|
106 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
107 # are both prefixed by $srcdir. In an in-source build this is usually
|
|
108 # harmless because $srcdir is '.', but things will broke when you
|
|
109 # start a VPATH build or use an absolute $srcdir.
|
|
110 #
|
|
111 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
112 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
113 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
114 # and then we would define $MISSING as
|
|
115 # MISSING="\${SHELL} $am_aux_dir/missing"
|
|
116 # This will work as long as MISSING is not called from configure, because
|
|
117 # unfortunately $(top_srcdir) has no meaning in configure.
|
|
118 # However there are other variables, like CC, which are often used in
|
|
119 # configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
120 #
|
|
121 # Another solution, used here, is to always expand $ac_aux_dir to an
|
|
122 # absolute PATH. The drawback is that using absolute paths prevent a
|
|
123 # configured tree to be moved without reconfiguration.
|
|
124
|
|
125 AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
126 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
127 # Expand $ac_aux_dir to an absolute path.
|
|
128 am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
129 ])
|
|
130
|
|
131 # AM_CONDITIONAL -*- Autoconf -*-
|
|
132
|
|
133 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
134 #
|
|
135 # This file is free software; the Free Software Foundation
|
|
136 # gives unlimited permission to copy and/or distribute it,
|
|
137 # with or without modifications, as long as this notice is preserved.
|
|
138
|
|
139 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
140 # -------------------------------------
|
|
141 # Define a conditional.
|
|
142 AC_DEFUN([AM_CONDITIONAL],
|
|
143 [AC_PREREQ([2.52])dnl
|
|
144 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
145 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
146 AC_SUBST([$1_TRUE])dnl
|
|
147 AC_SUBST([$1_FALSE])dnl
|
|
148 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
149 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
150 m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
151 if $2; then
|
|
152 $1_TRUE=
|
|
153 $1_FALSE='#'
|
|
154 else
|
|
155 $1_TRUE='#'
|
|
156 $1_FALSE=
|
|
157 fi
|
|
158 AC_CONFIG_COMMANDS_PRE(
|
|
159 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
160 AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
161 Usually this means the macro was only invoked conditionally.]])
|
|
162 fi])])
|
|
163
|
|
164 # Do all the work for Automake. -*- Autoconf -*-
|
|
165
|
|
166 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
167 #
|
|
168 # This file is free software; the Free Software Foundation
|
|
169 # gives unlimited permission to copy and/or distribute it,
|
|
170 # with or without modifications, as long as this notice is preserved.
|
|
171
|
|
172 # This macro actually does too much. Some checks are only needed if
|
|
173 # your package does certain things. But this isn't really a big deal.
|
|
174
|
|
175 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
|
|
176 m4_define([AC_PROG_CC],
|
|
177 m4_defn([AC_PROG_CC])
|
|
178 [_AM_PROG_CC_C_O
|
|
179 ])
|
|
180
|
|
181 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
182 # AM_INIT_AUTOMAKE([OPTIONS])
|
|
183 # -----------------------------------------------
|
|
184 # The call with PACKAGE and VERSION arguments is the old style
|
|
185 # call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
186 # and VERSION should now be passed to AC_INIT and removed from
|
|
187 # the call to AM_INIT_AUTOMAKE.
|
|
188 # We support both call styles for the transition. After
|
|
189 # the next Automake release, Autoconf can make the AC_INIT
|
|
190 # arguments mandatory, and then we can depend on a new Autoconf
|
|
191 # release and drop the old call support.
|
|
192 AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
193 [AC_PREREQ([2.65])dnl
|
|
194 dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
195 dnl the ones we care about.
|
|
196 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
197 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
198 AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
201 # is not polluted with repeated "-I."
|
|
202 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
203 # test to see if srcdir already configured
|
|
204 if test -f $srcdir/config.status; then
|
|
205 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
206 fi
|
|
207 fi
|
|
208
|
|
209 # test whether we have cygpath
|
|
210 if test -z "$CYGPATH_W"; then
|
|
211 if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
212 CYGPATH_W='cygpath -w'
|
|
213 else
|
|
214 CYGPATH_W=echo
|
|
215 fi
|
|
216 fi
|
|
217 AC_SUBST([CYGPATH_W])
|
|
218
|
|
219 # Define the identity of the package.
|
|
220 dnl Distinguish between old-style and new-style calls.
|
|
221 m4_ifval([$2],
|
|
222 [AC_DIAGNOSE([obsolete],
|
|
223 [$0: two- and three-arguments forms are deprecated.])
|
|
224 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
225 AC_SUBST([PACKAGE], [$1])dnl
|
|
226 AC_SUBST([VERSION], [$2])],
|
|
227 [_AM_SET_OPTIONS([$1])dnl
|
|
228 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
229 m4_if(
|
|
230 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
231 [ok:ok],,
|
|
232 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
233 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
234 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
235
|
|
236 _AM_IF_OPTION([no-define],,
|
|
237 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
238 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
|
239
|
|
240 # Some tools Automake needs.
|
|
241 AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
242 AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
243 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
|
244 AM_MISSING_PROG([AUTOCONF], [autoconf])
|
|
245 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
|
246 AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
|
247 AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
|
248 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
249 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
250 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
251 # For better backward compatibility. To be removed once Automake 1.9.x
|
|
252 # dies out for good. For more background, see:
|
|
253 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
254 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
255 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
256 # We need awk for the "check" target (and possibly the TAP driver). The
|
|
257 # system "awk" is bad on some platforms.
|
|
258 AC_REQUIRE([AC_PROG_AWK])dnl
|
|
259 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
260 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
261 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
262 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
263 [_AM_PROG_TAR([v7])])])
|
|
264 _AM_IF_OPTION([no-dependencies],,
|
|
265 [AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
266 [_AM_DEPENDENCIES([CC])],
|
|
267 [m4_define([AC_PROG_CC],
|
|
268 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
|
269 AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
270 [_AM_DEPENDENCIES([CXX])],
|
|
271 [m4_define([AC_PROG_CXX],
|
|
272 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
|
273 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
274 [_AM_DEPENDENCIES([OBJC])],
|
|
275 [m4_define([AC_PROG_OBJC],
|
|
276 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
|
277 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
278 [_AM_DEPENDENCIES([OBJCXX])],
|
|
279 [m4_define([AC_PROG_OBJCXX],
|
|
280 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
281 ])
|
|
282 AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
283 dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
284 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
285 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
286 AC_CONFIG_COMMANDS_PRE(dnl
|
|
287 [m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
288 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
289
|
|
290 # POSIX will say in a future version that running "rm -f" with no argument
|
|
291 # is OK; and we want to be able to make that assumption in our Makefile
|
|
292 # recipes. So use an aggressive probe to check that the usage we want is
|
|
293 # actually supported "in the wild" to an acceptable degree.
|
|
294 # See automake bug#10828.
|
|
295 # To make any issue more visible, cause the running configure to be aborted
|
|
296 # by default if the 'rm' program in use doesn't match our expectations; the
|
|
297 # user can still override this though.
|
|
298 if rm -f && rm -fr && rm -rf; then : OK; else
|
|
299 cat >&2 <<'END'
|
|
300 Oops!
|
|
301
|
|
302 Your 'rm' program seems unable to run without file operands specified
|
|
303 on the command line, even when the '-f' option is present. This is contrary
|
|
304 to the behaviour of most rm programs out there, and not conforming with
|
|
305 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
|
306
|
|
307 Please tell bug-automake@gnu.org about your system, including the value
|
|
308 of your $PATH and any error possibly output before this message. This
|
|
309 can help us improve future automake versions.
|
|
310
|
|
311 END
|
|
312 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
|
313 echo 'Configuration will proceed anyway, since you have set the' >&2
|
|
314 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
|
315 echo >&2
|
|
316 else
|
|
317 cat >&2 <<'END'
|
|
318 Aborting the configuration process, to ensure you take notice of the issue.
|
|
319
|
|
320 You can download and install GNU coreutils to get an 'rm' implementation
|
|
321 that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
322
|
|
323 If you want to complete the configuration process using your problematic
|
|
324 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
325 to "yes", and re-run configure.
|
|
326
|
|
327 END
|
|
328 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
|
329 fi
|
|
330 fi
|
|
331 dnl The trailing newline in this macro's definition is deliberate, for
|
|
332 dnl backward compatibility and to allow trailing 'dnl'-style comments
|
|
333 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
|
334 ])
|
|
335
|
|
336 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
337 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
338 dnl mangled by Autoconf and run in a shell conditional statement.
|
|
339 m4_define([_AC_COMPILER_EXEEXT],
|
|
340 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
341
|
|
342 # When config.status generates a header, we must update the stamp-h file.
|
|
343 # This file resides in the same directory as the config header
|
|
344 # that is generated. The stamp files are numbered to have different names.
|
|
345
|
|
346 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
347 # loop where config.status creates the headers, so we can generate
|
|
348 # our stamp files there.
|
|
349 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
350 [# Compute $1's index in $config_headers.
|
|
351 _am_arg=$1
|
|
352 _am_stamp_count=1
|
|
353 for _am_header in $config_headers :; do
|
|
354 case $_am_header in
|
|
355 $_am_arg | $_am_arg:* )
|
|
356 break ;;
|
|
357 * )
|
|
358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
359 esac
|
|
360 done
|
|
361 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
362
|
|
363 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
364 #
|
|
365 # This file is free software; the Free Software Foundation
|
|
366 # gives unlimited permission to copy and/or distribute it,
|
|
367 # with or without modifications, as long as this notice is preserved.
|
|
368
|
|
369 # AM_PROG_INSTALL_SH
|
|
370 # ------------------
|
|
371 # Define $install_sh.
|
|
372 AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
373 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
374 if test x"${install_sh+set}" != xset; then
|
|
375 case $am_aux_dir in
|
|
376 *\ * | *\ *)
|
|
377 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
378 *)
|
|
379 install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
380 esac
|
|
381 fi
|
|
382 AC_SUBST([install_sh])])
|
|
383
|
|
384 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
385 # From Jim Meyering
|
|
386
|
|
387 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
388 #
|
|
389 # This file is free software; the Free Software Foundation
|
|
390 # gives unlimited permission to copy and/or distribute it,
|
|
391 # with or without modifications, as long as this notice is preserved.
|
|
392
|
|
393 # AM_MAINTAINER_MODE([DEFAULT-MODE])
|
|
394 # ----------------------------------
|
|
395 # Control maintainer-specific portions of Makefiles.
|
|
396 # Default is to disable them, unless 'enable' is passed literally.
|
|
397 # For symmetry, 'disable' may be passed as well. Anyway, the user
|
|
398 # can override the default with the --enable/--disable switch.
|
|
399 AC_DEFUN([AM_MAINTAINER_MODE],
|
|
400 [m4_case(m4_default([$1], [disable]),
|
|
401 [enable], [m4_define([am_maintainer_other], [disable])],
|
|
402 [disable], [m4_define([am_maintainer_other], [enable])],
|
|
403 [m4_define([am_maintainer_other], [enable])
|
|
404 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
|
405 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
406 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
|
407 AC_ARG_ENABLE([maintainer-mode],
|
|
408 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
|
|
409 am_maintainer_other[ make rules and dependencies not useful
|
|
410 (and sometimes confusing) to the casual installer])],
|
|
411 [USE_MAINTAINER_MODE=$enableval],
|
|
412 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
|
413 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
414 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
|
415 MAINT=$MAINTAINER_MODE_TRUE
|
|
416 AC_SUBST([MAINT])dnl
|
|
417 ]
|
|
418 )
|
|
419
|
|
420 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
421
|
|
422 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
423 #
|
|
424 # This file is free software; the Free Software Foundation
|
|
425 # gives unlimited permission to copy and/or distribute it,
|
|
426 # with or without modifications, as long as this notice is preserved.
|
|
427
|
|
428 # AM_MISSING_PROG(NAME, PROGRAM)
|
|
429 # ------------------------------
|
|
430 AC_DEFUN([AM_MISSING_PROG],
|
|
431 [AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
432 $1=${$1-"${am_missing_run}$2"}
|
|
433 AC_SUBST($1)])
|
|
434
|
|
435 # AM_MISSING_HAS_RUN
|
|
436 # ------------------
|
|
437 # Define MISSING if not defined so far and test if it is modern enough.
|
|
438 # If it is, set am_missing_run to use it, otherwise, to nothing.
|
|
439 AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
440 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
441 AC_REQUIRE_AUX_FILE([missing])dnl
|
|
442 if test x"${MISSING+set}" != xset; then
|
|
443 case $am_aux_dir in
|
|
444 *\ * | *\ *)
|
|
445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
446 *)
|
|
447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
448 esac
|
|
449 fi
|
|
450 # Use eval to expand $SHELL
|
|
451 if eval "$MISSING --is-lightweight"; then
|
|
452 am_missing_run="$MISSING "
|
|
453 else
|
|
454 am_missing_run=
|
|
455 AC_MSG_WARN(['missing' script is too old or missing])
|
|
456 fi
|
|
457 ])
|
|
458
|
|
459 # Helper functions for option handling. -*- Autoconf -*-
|
|
460
|
|
461 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
462 #
|
|
463 # This file is free software; the Free Software Foundation
|
|
464 # gives unlimited permission to copy and/or distribute it,
|
|
465 # with or without modifications, as long as this notice is preserved.
|
|
466
|
|
467 # _AM_MANGLE_OPTION(NAME)
|
|
468 # -----------------------
|
|
469 AC_DEFUN([_AM_MANGLE_OPTION],
|
|
470 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
471
|
|
472 # _AM_SET_OPTION(NAME)
|
|
473 # --------------------
|
|
474 # Set option NAME. Presently that only means defining a flag for this option.
|
|
475 AC_DEFUN([_AM_SET_OPTION],
|
|
476 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
477
|
|
478 # _AM_SET_OPTIONS(OPTIONS)
|
|
479 # ------------------------
|
|
480 # OPTIONS is a space-separated list of Automake options.
|
|
481 AC_DEFUN([_AM_SET_OPTIONS],
|
|
482 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
483
|
|
484 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
485 # -------------------------------------------
|
|
486 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
487 AC_DEFUN([_AM_IF_OPTION],
|
|
488 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
489
|
|
490 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
491 #
|
|
492 # This file is free software; the Free Software Foundation
|
|
493 # gives unlimited permission to copy and/or distribute it,
|
|
494 # with or without modifications, as long as this notice is preserved.
|
|
495
|
|
496 # _AM_PROG_CC_C_O
|
|
497 # ---------------
|
|
498 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
|
|
499 # to automatically call this.
|
|
500 AC_DEFUN([_AM_PROG_CC_C_O],
|
|
501 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
502 AC_REQUIRE_AUX_FILE([compile])dnl
|
|
503 AC_LANG_PUSH([C])dnl
|
|
504 AC_CACHE_CHECK(
|
|
505 [whether $CC understands -c and -o together],
|
|
506 [am_cv_prog_cc_c_o],
|
|
507 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
|
508 # Make sure it works both with $CC and with simple cc.
|
|
509 # Following AC_PROG_CC_C_O, we do the test twice because some
|
|
510 # compilers refuse to overwrite an existing .o file with -o,
|
|
511 # though they will create one.
|
|
512 am_cv_prog_cc_c_o=yes
|
|
513 for am_i in 1 2; do
|
|
514 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
|
|
515 && test -f conftest2.$ac_objext; then
|
|
516 : OK
|
|
517 else
|
|
518 am_cv_prog_cc_c_o=no
|
|
519 break
|
|
520 fi
|
|
521 done
|
|
522 rm -f core conftest*
|
|
523 unset am_i])
|
|
524 if test "$am_cv_prog_cc_c_o" != yes; then
|
|
525 # Losing compiler, so override with the script.
|
|
526 # FIXME: It is wrong to rewrite CC.
|
|
527 # But if we don't then we get into trouble of one sort or another.
|
|
528 # A longer-term fix would be to have automake use am__CC in this case,
|
|
529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
530 CC="$am_aux_dir/compile $CC"
|
|
531 fi
|
|
532 AC_LANG_POP([C])])
|
|
533
|
|
534 # For backward compatibility.
|
|
535 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
536
|
|
537 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
538 #
|
|
539 # This file is free software; the Free Software Foundation
|
|
540 # gives unlimited permission to copy and/or distribute it,
|
|
541 # with or without modifications, as long as this notice is preserved.
|
|
542
|
|
543 # AM_RUN_LOG(COMMAND)
|
|
544 # -------------------
|
|
545 # Run COMMAND, save the exit status in ac_status, and log it.
|
|
546 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
|
547 AC_DEFUN([AM_RUN_LOG],
|
|
548 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
|
549 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
550 ac_status=$?
|
|
551 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
552 (exit $ac_status); }])
|
|
553
|
|
554 # Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
555
|
|
556 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
557 #
|
|
558 # This file is free software; the Free Software Foundation
|
|
559 # gives unlimited permission to copy and/or distribute it,
|
|
560 # with or without modifications, as long as this notice is preserved.
|
|
561
|
|
562 # AM_SANITY_CHECK
|
|
563 # ---------------
|
|
564 AC_DEFUN([AM_SANITY_CHECK],
|
|
565 [AC_MSG_CHECKING([whether build environment is sane])
|
|
566 # Reject unsafe characters in $srcdir or the absolute working directory
|
|
567 # name. Accept space and tab only in the latter.
|
|
568 am_lf='
|
|
569 '
|
|
570 case `pwd` in
|
|
571 *[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
572 AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
573 esac
|
|
574 case $srcdir in
|
|
575 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
576 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
577 esac
|
|
578
|
|
579 # Do 'set' in a subshell so we don't clobber the current shell's
|
|
580 # arguments. Must try -L first in case configure is actually a
|
|
581 # symlink; some systems play weird games with the mod time of symlinks
|
|
582 # (eg FreeBSD returns the mod time of the symlink's containing
|
|
583 # directory).
|
|
584 if (
|
|
585 am_has_slept=no
|
|
586 for am_try in 1 2; do
|
|
587 echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
589 if test "$[*]" = "X"; then
|
|
590 # -L didn't work.
|
|
591 set X `ls -t "$srcdir/configure" conftest.file`
|
|
592 fi
|
|
593 if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
594 && test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
595
|
|
596 # If neither matched, then we have a broken ls. This can happen
|
|
597 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
598 # broken ls alias from the environment. This has actually
|
|
599 # happened. Such a system could not be considered "sane".
|
|
600 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
601 alias in your environment])
|
|
602 fi
|
|
603 if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
|
604 break
|
|
605 fi
|
|
606 # Just in case.
|
|
607 sleep 1
|
|
608 am_has_slept=yes
|
|
609 done
|
|
610 test "$[2]" = conftest.file
|
|
611 )
|
|
612 then
|
|
613 # Ok.
|
|
614 :
|
|
615 else
|
|
616 AC_MSG_ERROR([newly created file is older than distributed files!
|
|
617 Check your system clock])
|
|
618 fi
|
|
619 AC_MSG_RESULT([yes])
|
|
620 # If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
621 # generated files are strictly newer.
|
|
622 am_sleep_pid=
|
|
623 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
|
624 ( sleep 1 ) &
|
|
625 am_sleep_pid=$!
|
|
626 fi
|
|
627 AC_CONFIG_COMMANDS_PRE(
|
|
628 [AC_MSG_CHECKING([that generated files are newer than configure])
|
|
629 if test -n "$am_sleep_pid"; then
|
|
630 # Hide warnings about reused PIDs.
|
|
631 wait $am_sleep_pid 2>/dev/null
|
|
632 fi
|
|
633 AC_MSG_RESULT([done])])
|
|
634 rm -f conftest.file
|
|
635 ])
|
|
636
|
|
637 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
|
|
638 #
|
|
639 # This file is free software; the Free Software Foundation
|
|
640 # gives unlimited permission to copy and/or distribute it,
|
|
641 # with or without modifications, as long as this notice is preserved.
|
|
642
|
|
643 # AM_SILENT_RULES([DEFAULT])
|
|
644 # --------------------------
|
|
645 # Enable less verbose build rules; with the default set to DEFAULT
|
|
646 # ("yes" being less verbose, "no" or empty being verbose).
|
|
647 AC_DEFUN([AM_SILENT_RULES],
|
|
648 [AC_ARG_ENABLE([silent-rules], [dnl
|
|
649 AS_HELP_STRING(
|
|
650 [--enable-silent-rules],
|
|
651 [less verbose build output (undo: "make V=1")])
|
|
652 AS_HELP_STRING(
|
|
653 [--disable-silent-rules],
|
|
654 [verbose build output (undo: "make V=0")])dnl
|
|
655 ])
|
|
656 case $enable_silent_rules in @%:@ (((
|
|
657 yes) AM_DEFAULT_VERBOSITY=0;;
|
|
658 no) AM_DEFAULT_VERBOSITY=1;;
|
|
659 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
660 esac
|
|
661 dnl
|
|
662 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
663 dnl do not support nested variable expansions.
|
|
664 dnl See automake bug#9928 and bug#10237.
|
|
665 am_make=${MAKE-make}
|
|
666 AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
667 [am_cv_make_support_nested_variables],
|
|
668 [if AS_ECHO([['TRUE=$(BAR$(V))
|
|
669 BAR0=false
|
|
670 BAR1=true
|
|
671 V=1
|
|
672 am__doit:
|
|
673 @$(TRUE)
|
|
674 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
675 am_cv_make_support_nested_variables=yes
|
|
676 else
|
|
677 am_cv_make_support_nested_variables=no
|
|
678 fi])
|
|
679 if test $am_cv_make_support_nested_variables = yes; then
|
|
680 dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
681 AM_V='$(V)'
|
|
682 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
683 else
|
|
684 AM_V=$AM_DEFAULT_VERBOSITY
|
|
685 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
686 fi
|
|
687 AC_SUBST([AM_V])dnl
|
|
688 AM_SUBST_NOTMAKE([AM_V])dnl
|
|
689 AC_SUBST([AM_DEFAULT_V])dnl
|
|
690 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
691 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
692 AM_BACKSLASH='\'
|
|
693 AC_SUBST([AM_BACKSLASH])dnl
|
|
694 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
695 ])
|
|
696
|
|
697 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
698 #
|
|
699 # This file is free software; the Free Software Foundation
|
|
700 # gives unlimited permission to copy and/or distribute it,
|
|
701 # with or without modifications, as long as this notice is preserved.
|
|
702
|
|
703 # AM_PROG_INSTALL_STRIP
|
|
704 # ---------------------
|
|
705 # One issue with vendor 'install' (even GNU) is that you can't
|
|
706 # specify the program used to strip binaries. This is especially
|
|
707 # annoying in cross-compiling environments, where the build's strip
|
|
708 # is unlikely to handle the host's binaries.
|
|
709 # Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
710 # always use install-sh in "make install-strip", and initialize
|
|
711 # STRIPPROG with the value of the STRIP variable (set by the user).
|
|
712 AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
713 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
714 # Installed binaries are usually stripped using 'strip' when the user
|
|
715 # run "make install-strip". However 'strip' might not be the right
|
|
716 # tool to use in cross-compilation environments, therefore Automake
|
|
717 # will honor the 'STRIP' environment variable to overrule this program.
|
|
718 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
|
719 if test "$cross_compiling" != no; then
|
|
720 AC_CHECK_TOOL([STRIP], [strip], :)
|
|
721 fi
|
|
722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
723 AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
724
|
|
725 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
|
726 #
|
|
727 # This file is free software; the Free Software Foundation
|
|
728 # gives unlimited permission to copy and/or distribute it,
|
|
729 # with or without modifications, as long as this notice is preserved.
|
|
730
|
|
731 # _AM_SUBST_NOTMAKE(VARIABLE)
|
|
732 # ---------------------------
|
|
733 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
734 # This macro is traced by Automake.
|
|
735 AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
736
|
|
737 # AM_SUBST_NOTMAKE(VARIABLE)
|
|
738 # --------------------------
|
|
739 # Public sister of _AM_SUBST_NOTMAKE.
|
|
740 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
741
|
|
742 # Check how to create a tarball. -*- Autoconf -*-
|
|
743
|
|
744 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
|
745 #
|
|
746 # This file is free software; the Free Software Foundation
|
|
747 # gives unlimited permission to copy and/or distribute it,
|
|
748 # with or without modifications, as long as this notice is preserved.
|
|
749
|
|
750 # _AM_PROG_TAR(FORMAT)
|
|
751 # --------------------
|
|
752 # Check how to create a tarball in format FORMAT.
|
|
753 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
|
754 #
|
|
755 # Substitute a variable $(am__tar) that is a command
|
|
756 # writing to stdout a FORMAT-tarball containing the directory
|
|
757 # $tardir.
|
|
758 # tardir=directory && $(am__tar) > result.tar
|
|
759 #
|
|
760 # Substitute a variable $(am__untar) that extract such
|
|
761 # a tarball read from stdin.
|
|
762 # $(am__untar) < result.tar
|
|
763 #
|
|
764 AC_DEFUN([_AM_PROG_TAR],
|
|
765 [# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
766 # in the wild :-( We should find a proper way to deprecate it ...
|
|
767 AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
768
|
|
769 # We'll loop over all known methods to create a tar archive until one works.
|
|
770 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
771
|
|
772 m4_if([$1], [v7],
|
|
773 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
774
|
|
775 [m4_case([$1],
|
|
776 [ustar],
|
|
777 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
|
778 # There is notably a 21 bits limit for the UID and the GID. In fact,
|
|
779 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
|
780 # and bug#13588).
|
|
781 am_max_uid=2097151 # 2^21 - 1
|
|
782 am_max_gid=$am_max_uid
|
|
783 # The $UID and $GID variables are not portable, so we need to resort
|
|
784 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
|
785 # below are definitely unexpected, so allow the users to see them
|
|
786 # (that is, avoid stderr redirection).
|
|
787 am_uid=`id -u || echo unknown`
|
|
788 am_gid=`id -g || echo unknown`
|
|
789 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
790 if test $am_uid -le $am_max_uid; then
|
|
791 AC_MSG_RESULT([yes])
|
|
792 else
|
|
793 AC_MSG_RESULT([no])
|
|
794 _am_tools=none
|
|
795 fi
|
|
796 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
797 if test $am_gid -le $am_max_gid; then
|
|
798 AC_MSG_RESULT([yes])
|
|
799 else
|
|
800 AC_MSG_RESULT([no])
|
|
801 _am_tools=none
|
|
802 fi],
|
|
803
|
|
804 [pax],
|
|
805 [],
|
|
806
|
|
807 [m4_fatal([Unknown tar format])])
|
|
808
|
|
809 AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
810
|
|
811 # Go ahead even if we have the value already cached. We do so because we
|
|
812 # need to set the values for the 'am__tar' and 'am__untar' variables.
|
|
813 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
814
|
|
815 for _am_tool in $_am_tools; do
|
|
816 case $_am_tool in
|
|
817 gnutar)
|
|
818 for _am_tar in tar gnutar gtar; do
|
|
819 AM_RUN_LOG([$_am_tar --version]) && break
|
|
820 done
|
|
821 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
822 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
823 am__untar="$_am_tar -xf -"
|
|
824 ;;
|
|
825 plaintar)
|
|
826 # Must skip GNU tar: if it does not support --format= it doesn't create
|
|
827 # ustar tarball either.
|
|
828 (tar --version) >/dev/null 2>&1 && continue
|
|
829 am__tar='tar chf - "$$tardir"'
|
|
830 am__tar_='tar chf - "$tardir"'
|
|
831 am__untar='tar xf -'
|
|
832 ;;
|
|
833 pax)
|
|
834 am__tar='pax -L -x $1 -w "$$tardir"'
|
|
835 am__tar_='pax -L -x $1 -w "$tardir"'
|
|
836 am__untar='pax -r'
|
|
837 ;;
|
|
838 cpio)
|
|
839 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
840 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
841 am__untar='cpio -i -H $1 -d'
|
|
842 ;;
|
|
843 none)
|
|
844 am__tar=false
|
|
845 am__tar_=false
|
|
846 am__untar=false
|
|
847 ;;
|
|
848 esac
|
|
849
|
|
850 # If the value was cached, stop now. We just wanted to have am__tar
|
|
851 # and am__untar set.
|
|
852 test -n "${am_cv_prog_tar_$1}" && break
|
|
853
|
|
854 # tar/untar a dummy directory, and stop if the command works.
|
|
855 rm -rf conftest.dir
|
|
856 mkdir conftest.dir
|
|
857 echo GrepMe > conftest.dir/file
|
|
858 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
859 rm -rf conftest.dir
|
|
860 if test -s conftest.tar; then
|
|
861 AM_RUN_LOG([$am__untar <conftest.tar])
|
|
862 AM_RUN_LOG([cat conftest.dir/file])
|
|
863 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
864 fi
|
|
865 done
|
|
866 rm -rf conftest.dir
|
|
867
|
|
868 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
869 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
870
|
|
871 AC_SUBST([am__tar])
|
|
872 AC_SUBST([am__untar])
|
|
873 ]) # _AM_PROG_TAR
|
|
874
|
|
875 m4_include([../config/acx.m4])
|
|
876 m4_include([../config/lead-dot.m4])
|
|
877 m4_include([../config/multi.m4])
|
|
878 m4_include([../config/override.m4])
|
|
879 m4_include([../config/toolexeclibdir.m4])
|
|
880 m4_include([../libtool.m4])
|
|
881 m4_include([../ltoptions.m4])
|
|
882 m4_include([../ltsugar.m4])
|
|
883 m4_include([../ltversion.m4])
|
|
884 m4_include([../lt~obsolete.m4])
|
|
885 m4_include([acinclude.m4])
|