]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/aclocal.m4
be41bbe051bccefd87d604dd725d17fcaf22fad9
[thirdparty/gcc.git] / libphobos / aclocal.m4
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
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.64],,
18 [m4_warning([this file was generated for autoconf 2.64.
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, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24 # Foundation, Inc.
25 #
26 # This file is free software; the Free Software Foundation
27 # gives unlimited permission to copy and/or distribute it,
28 # with or without modifications, as long as this notice is preserved.
29
30 # serial 1
31
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 # (This private macro should not be called outside this file.)
37 AC_DEFUN([AM_AUTOMAKE_VERSION],
38 [am__api_version='1.11'
39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40 dnl require some minimum version. Point them to the right macro.
41 m4_if([$1], [1.11.6], [],
42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
43 ])
44
45 # _AM_AUTOCONF_VERSION(VERSION)
46 # -----------------------------
47 # aclocal traces this macro to find the Autoconf version.
48 # This is a private macro too. Using m4_define simplifies
49 # the logic in aclocal, which can simply ignore this definition.
50 m4_define([_AM_AUTOCONF_VERSION], [])
51
52 # AM_SET_CURRENT_AUTOMAKE_VERSION
53 # -------------------------------
54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57 [AM_AUTOMAKE_VERSION([1.11.6])dnl
58 m4_ifndef([AC_AUTOCONF_VERSION],
59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
61
62 # Figure out how to run the assembler. -*- Autoconf -*-
63
64 # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
65 #
66 # This file is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
68 # with or without modifications, as long as this notice is preserved.
69
70 # serial 5
71
72 # AM_PROG_AS
73 # ----------
74 AC_DEFUN([AM_PROG_AS],
75 [# By default we simply use the C compiler to build assembly code.
76 AC_REQUIRE([AC_PROG_CC])
77 test "${CCAS+set}" = set || CCAS=$CC
78 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
79 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
80 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
81 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
82 ])
83
84 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
85
86 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
87 #
88 # This file is free software; the Free Software Foundation
89 # gives unlimited permission to copy and/or distribute it,
90 # with or without modifications, as long as this notice is preserved.
91
92 # serial 1
93
94 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
95 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
96 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
97 #
98 # Of course, Automake must honor this variable whenever it calls a
99 # tool from the auxiliary directory. The problem is that $srcdir (and
100 # therefore $ac_aux_dir as well) can be either absolute or relative,
101 # depending on how configure is run. This is pretty annoying, since
102 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
103 # source directory, any form will work fine, but in subdirectories a
104 # relative path needs to be adjusted first.
105 #
106 # $ac_aux_dir/missing
107 # fails when called from a subdirectory if $ac_aux_dir is relative
108 # $top_srcdir/$ac_aux_dir/missing
109 # fails if $ac_aux_dir is absolute,
110 # fails when called from a subdirectory in a VPATH build with
111 # a relative $ac_aux_dir
112 #
113 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
114 # are both prefixed by $srcdir. In an in-source build this is usually
115 # harmless because $srcdir is `.', but things will broke when you
116 # start a VPATH build or use an absolute $srcdir.
117 #
118 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
119 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
120 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
121 # and then we would define $MISSING as
122 # MISSING="\${SHELL} $am_aux_dir/missing"
123 # This will work as long as MISSING is not called from configure, because
124 # unfortunately $(top_srcdir) has no meaning in configure.
125 # However there are other variables, like CC, which are often used in
126 # configure, and could therefore not use this "fixed" $ac_aux_dir.
127 #
128 # Another solution, used here, is to always expand $ac_aux_dir to an
129 # absolute PATH. The drawback is that using absolute paths prevent a
130 # configured tree to be moved without reconfiguration.
131
132 AC_DEFUN([AM_AUX_DIR_EXPAND],
133 [dnl Rely on autoconf to set up CDPATH properly.
134 AC_PREREQ([2.50])dnl
135 # expand $ac_aux_dir to an absolute path
136 am_aux_dir=`cd $ac_aux_dir && pwd`
137 ])
138
139 # AM_CONDITIONAL -*- Autoconf -*-
140
141 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
142 # Free Software Foundation, Inc.
143 #
144 # This file is free software; the Free Software Foundation
145 # gives unlimited permission to copy and/or distribute it,
146 # with or without modifications, as long as this notice is preserved.
147
148 # serial 9
149
150 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
151 # -------------------------------------
152 # Define a conditional.
153 AC_DEFUN([AM_CONDITIONAL],
154 [AC_PREREQ(2.52)dnl
155 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
156 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
157 AC_SUBST([$1_TRUE])dnl
158 AC_SUBST([$1_FALSE])dnl
159 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
160 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
161 m4_define([_AM_COND_VALUE_$1], [$2])dnl
162 if $2; then
163 $1_TRUE=
164 $1_FALSE='#'
165 else
166 $1_TRUE='#'
167 $1_FALSE=
168 fi
169 AC_CONFIG_COMMANDS_PRE(
170 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
171 AC_MSG_ERROR([[conditional "$1" was never defined.
172 Usually this means the macro was only invoked conditionally.]])
173 fi])])
174
175 # Do all the work for Automake. -*- Autoconf -*-
176
177 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
178 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
179 #
180 # This file is free software; the Free Software Foundation
181 # gives unlimited permission to copy and/or distribute it,
182 # with or without modifications, as long as this notice is preserved.
183
184 # serial 16
185
186 # This macro actually does too much. Some checks are only needed if
187 # your package does certain things. But this isn't really a big deal.
188
189 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
190 # AM_INIT_AUTOMAKE([OPTIONS])
191 # -----------------------------------------------
192 # The call with PACKAGE and VERSION arguments is the old style
193 # call (pre autoconf-2.50), which is being phased out. PACKAGE
194 # and VERSION should now be passed to AC_INIT and removed from
195 # the call to AM_INIT_AUTOMAKE.
196 # We support both call styles for the transition. After
197 # the next Automake release, Autoconf can make the AC_INIT
198 # arguments mandatory, and then we can depend on a new Autoconf
199 # release and drop the old call support.
200 AC_DEFUN([AM_INIT_AUTOMAKE],
201 [AC_PREREQ([2.62])dnl
202 dnl Autoconf wants to disallow AM_ names. We explicitly allow
203 dnl the ones we care about.
204 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
205 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
206 AC_REQUIRE([AC_PROG_INSTALL])dnl
207 if test "`cd $srcdir && pwd`" != "`pwd`"; then
208 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
209 # is not polluted with repeated "-I."
210 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
211 # test to see if srcdir already configured
212 if test -f $srcdir/config.status; then
213 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
214 fi
215 fi
216
217 # test whether we have cygpath
218 if test -z "$CYGPATH_W"; then
219 if (cygpath --version) >/dev/null 2>/dev/null; then
220 CYGPATH_W='cygpath -w'
221 else
222 CYGPATH_W=echo
223 fi
224 fi
225 AC_SUBST([CYGPATH_W])
226
227 # Define the identity of the package.
228 dnl Distinguish between old-style and new-style calls.
229 m4_ifval([$2],
230 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
231 AC_SUBST([PACKAGE], [$1])dnl
232 AC_SUBST([VERSION], [$2])],
233 [_AM_SET_OPTIONS([$1])dnl
234 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
235 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
236 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
237 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
238 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
239
240 _AM_IF_OPTION([no-define],,
241 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
242 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
243
244 # Some tools Automake needs.
245 AC_REQUIRE([AM_SANITY_CHECK])dnl
246 AC_REQUIRE([AC_ARG_PROGRAM])dnl
247 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
248 AM_MISSING_PROG(AUTOCONF, autoconf)
249 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
250 AM_MISSING_PROG(AUTOHEADER, autoheader)
251 AM_MISSING_PROG(MAKEINFO, makeinfo)
252 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
253 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
254 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
255 # We need awk for the "check" target. The system "awk" is bad on
256 # some platforms.
257 AC_REQUIRE([AC_PROG_AWK])dnl
258 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
259 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
260 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
261 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
262 [_AM_PROG_TAR([v7])])])
263 _AM_IF_OPTION([no-dependencies],,
264 [AC_PROVIDE_IFELSE([AC_PROG_CC],
265 [_AM_DEPENDENCIES(CC)],
266 [define([AC_PROG_CC],
267 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
268 AC_PROVIDE_IFELSE([AC_PROG_CXX],
269 [_AM_DEPENDENCIES(CXX)],
270 [define([AC_PROG_CXX],
271 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
272 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
273 [_AM_DEPENDENCIES(OBJC)],
274 [define([AC_PROG_OBJC],
275 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
276 ])
277 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
278 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
279 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
280 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
281 AC_CONFIG_COMMANDS_PRE(dnl
282 [m4_provide_if([_AM_COMPILER_EXEEXT],
283 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
284 ])
285
286 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
287 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
288 dnl mangled by Autoconf and run in a shell conditional statement.
289 m4_define([_AC_COMPILER_EXEEXT],
290 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
291
292
293 # When config.status generates a header, we must update the stamp-h file.
294 # This file resides in the same directory as the config header
295 # that is generated. The stamp files are numbered to have different names.
296
297 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
298 # loop where config.status creates the headers, so we can generate
299 # our stamp files there.
300 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
301 [# Compute $1's index in $config_headers.
302 _am_arg=$1
303 _am_stamp_count=1
304 for _am_header in $config_headers :; do
305 case $_am_header in
306 $_am_arg | $_am_arg:* )
307 break ;;
308 * )
309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
310 esac
311 done
312 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
313
314 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
315 # Inc.
316 #
317 # This file is free software; the Free Software Foundation
318 # gives unlimited permission to copy and/or distribute it,
319 # with or without modifications, as long as this notice is preserved.
320
321 # serial 1
322
323 # AM_PROG_INSTALL_SH
324 # ------------------
325 # Define $install_sh.
326 AC_DEFUN([AM_PROG_INSTALL_SH],
327 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
328 if test x"${install_sh}" != xset; then
329 case $am_aux_dir in
330 *\ * | *\ *)
331 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
332 *)
333 install_sh="\${SHELL} $am_aux_dir/install-sh"
334 esac
335 fi
336 AC_SUBST(install_sh)])
337
338 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
339 # From Jim Meyering
340
341 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
342 # 2011 Free Software Foundation, Inc.
343 #
344 # This file is free software; the Free Software Foundation
345 # gives unlimited permission to copy and/or distribute it,
346 # with or without modifications, as long as this notice is preserved.
347
348 # serial 5
349
350 # AM_MAINTAINER_MODE([DEFAULT-MODE])
351 # ----------------------------------
352 # Control maintainer-specific portions of Makefiles.
353 # Default is to disable them, unless `enable' is passed literally.
354 # For symmetry, `disable' may be passed as well. Anyway, the user
355 # can override the default with the --enable/--disable switch.
356 AC_DEFUN([AM_MAINTAINER_MODE],
357 [m4_case(m4_default([$1], [disable]),
358 [enable], [m4_define([am_maintainer_other], [disable])],
359 [disable], [m4_define([am_maintainer_other], [enable])],
360 [m4_define([am_maintainer_other], [enable])
361 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
362 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
363 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
364 AC_ARG_ENABLE([maintainer-mode],
365 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
366 (and sometimes confusing) to the casual installer],
367 [USE_MAINTAINER_MODE=$enableval],
368 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
369 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
370 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
371 MAINT=$MAINTAINER_MODE_TRUE
372 AC_SUBST([MAINT])dnl
373 ]
374 )
375
376 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
377
378 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
379
380 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
381 # Free Software Foundation, Inc.
382 #
383 # This file is free software; the Free Software Foundation
384 # gives unlimited permission to copy and/or distribute it,
385 # with or without modifications, as long as this notice is preserved.
386
387 # serial 6
388
389 # AM_MISSING_PROG(NAME, PROGRAM)
390 # ------------------------------
391 AC_DEFUN([AM_MISSING_PROG],
392 [AC_REQUIRE([AM_MISSING_HAS_RUN])
393 $1=${$1-"${am_missing_run}$2"}
394 AC_SUBST($1)])
395
396
397 # AM_MISSING_HAS_RUN
398 # ------------------
399 # Define MISSING if not defined so far and test if it supports --run.
400 # If it does, set am_missing_run to use it, otherwise, to nothing.
401 AC_DEFUN([AM_MISSING_HAS_RUN],
402 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
403 AC_REQUIRE_AUX_FILE([missing])dnl
404 if test x"${MISSING+set}" != xset; then
405 case $am_aux_dir in
406 *\ * | *\ *)
407 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
408 *)
409 MISSING="\${SHELL} $am_aux_dir/missing" ;;
410 esac
411 fi
412 # Use eval to expand $SHELL
413 if eval "$MISSING --run true"; then
414 am_missing_run="$MISSING --run "
415 else
416 am_missing_run=
417 AC_MSG_WARN([`missing' script is too old or missing])
418 fi
419 ])
420
421 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
422 # 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 # serial 1
429
430 # AM_PROG_MKDIR_P
431 # ---------------
432 # Check for `mkdir -p'.
433 AC_DEFUN([AM_PROG_MKDIR_P],
434 [AC_PREREQ([2.60])dnl
435 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
436 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
437 dnl while keeping a definition of mkdir_p for backward compatibility.
438 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
439 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
440 dnl Makefile.ins that do not define MKDIR_P, so we do our own
441 dnl adjustment using top_builddir (which is defined more often than
442 dnl MKDIR_P).
443 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
444 case $mkdir_p in
445 [[\\/$]]* | ?:[[\\/]]*) ;;
446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
447 esac
448 ])
449
450 # Helper functions for option handling. -*- Autoconf -*-
451
452 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
453 # Foundation, Inc.
454 #
455 # This file is free software; the Free Software Foundation
456 # gives unlimited permission to copy and/or distribute it,
457 # with or without modifications, as long as this notice is preserved.
458
459 # serial 5
460
461 # _AM_MANGLE_OPTION(NAME)
462 # -----------------------
463 AC_DEFUN([_AM_MANGLE_OPTION],
464 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
465
466 # _AM_SET_OPTION(NAME)
467 # --------------------
468 # Set option NAME. Presently that only means defining a flag for this option.
469 AC_DEFUN([_AM_SET_OPTION],
470 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
471
472 # _AM_SET_OPTIONS(OPTIONS)
473 # ------------------------
474 # OPTIONS is a space-separated list of Automake options.
475 AC_DEFUN([_AM_SET_OPTIONS],
476 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
477
478 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
479 # -------------------------------------------
480 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
481 AC_DEFUN([_AM_IF_OPTION],
482 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
483
484 # Check to make sure that the build environment is sane. -*- Autoconf -*-
485
486 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
487 # Free Software Foundation, Inc.
488 #
489 # This file is free software; the Free Software Foundation
490 # gives unlimited permission to copy and/or distribute it,
491 # with or without modifications, as long as this notice is preserved.
492
493 # serial 5
494
495 # AM_SANITY_CHECK
496 # ---------------
497 AC_DEFUN([AM_SANITY_CHECK],
498 [AC_MSG_CHECKING([whether build environment is sane])
499 # Just in case
500 sleep 1
501 echo timestamp > conftest.file
502 # Reject unsafe characters in $srcdir or the absolute working directory
503 # name. Accept space and tab only in the latter.
504 am_lf='
505 '
506 case `pwd` in
507 *[[\\\"\#\$\&\'\`$am_lf]]*)
508 AC_MSG_ERROR([unsafe absolute working directory name]);;
509 esac
510 case $srcdir in
511 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
512 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
513 esac
514
515 # Do `set' in a subshell so we don't clobber the current shell's
516 # arguments. Must try -L first in case configure is actually a
517 # symlink; some systems play weird games with the mod time of symlinks
518 # (eg FreeBSD returns the mod time of the symlink's containing
519 # directory).
520 if (
521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
522 if test "$[*]" = "X"; then
523 # -L didn't work.
524 set X `ls -t "$srcdir/configure" conftest.file`
525 fi
526 rm -f conftest.file
527 if test "$[*]" != "X $srcdir/configure conftest.file" \
528 && test "$[*]" != "X conftest.file $srcdir/configure"; then
529
530 # If neither matched, then we have a broken ls. This can happen
531 # if, for instance, CONFIG_SHELL is bash and it inherits a
532 # broken ls alias from the environment. This has actually
533 # happened. Such a system could not be considered "sane".
534 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
535 alias in your environment])
536 fi
537
538 test "$[2]" = conftest.file
539 )
540 then
541 # Ok.
542 :
543 else
544 AC_MSG_ERROR([newly created file is older than distributed files!
545 Check your system clock])
546 fi
547 AC_MSG_RESULT(yes)])
548
549 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
550 #
551 # This file is free software; the Free Software Foundation
552 # gives unlimited permission to copy and/or distribute it,
553 # with or without modifications, as long as this notice is preserved.
554
555 # serial 1
556
557 # AM_PROG_INSTALL_STRIP
558 # ---------------------
559 # One issue with vendor `install' (even GNU) is that you can't
560 # specify the program used to strip binaries. This is especially
561 # annoying in cross-compiling environments, where the build's strip
562 # is unlikely to handle the host's binaries.
563 # Fortunately install-sh will honor a STRIPPROG variable, so we
564 # always use install-sh in `make install-strip', and initialize
565 # STRIPPROG with the value of the STRIP variable (set by the user).
566 AC_DEFUN([AM_PROG_INSTALL_STRIP],
567 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
568 # Installed binaries are usually stripped using `strip' when the user
569 # run `make install-strip'. However `strip' might not be the right
570 # tool to use in cross-compilation environments, therefore Automake
571 # will honor the `STRIP' environment variable to overrule this program.
572 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
573 if test "$cross_compiling" != no; then
574 AC_CHECK_TOOL([STRIP], [strip], :)
575 fi
576 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
577 AC_SUBST([INSTALL_STRIP_PROGRAM])])
578
579 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
580 #
581 # This file is free software; the Free Software Foundation
582 # gives unlimited permission to copy and/or distribute it,
583 # with or without modifications, as long as this notice is preserved.
584
585 # serial 3
586
587 # _AM_SUBST_NOTMAKE(VARIABLE)
588 # ---------------------------
589 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
590 # This macro is traced by Automake.
591 AC_DEFUN([_AM_SUBST_NOTMAKE])
592
593 # AM_SUBST_NOTMAKE(VARIABLE)
594 # --------------------------
595 # Public sister of _AM_SUBST_NOTMAKE.
596 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
597
598 # Check how to create a tarball. -*- Autoconf -*-
599
600 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
601 #
602 # This file is free software; the Free Software Foundation
603 # gives unlimited permission to copy and/or distribute it,
604 # with or without modifications, as long as this notice is preserved.
605
606 # serial 2
607
608 # _AM_PROG_TAR(FORMAT)
609 # --------------------
610 # Check how to create a tarball in format FORMAT.
611 # FORMAT should be one of `v7', `ustar', or `pax'.
612 #
613 # Substitute a variable $(am__tar) that is a command
614 # writing to stdout a FORMAT-tarball containing the directory
615 # $tardir.
616 # tardir=directory && $(am__tar) > result.tar
617 #
618 # Substitute a variable $(am__untar) that extract such
619 # a tarball read from stdin.
620 # $(am__untar) < result.tar
621 AC_DEFUN([_AM_PROG_TAR],
622 [# Always define AMTAR for backward compatibility. Yes, it's still used
623 # in the wild :-( We should find a proper way to deprecate it ...
624 AC_SUBST([AMTAR], ['$${TAR-tar}'])
625 m4_if([$1], [v7],
626 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
627 [m4_case([$1], [ustar],, [pax],,
628 [m4_fatal([Unknown tar format])])
629 AC_MSG_CHECKING([how to create a $1 tar archive])
630 # Loop over all known methods to create a tar archive until one works.
631 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
632 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
633 # Do not fold the above two line into one, because Tru64 sh and
634 # Solaris sh will not grok spaces in the rhs of `-'.
635 for _am_tool in $_am_tools
636 do
637 case $_am_tool in
638 gnutar)
639 for _am_tar in tar gnutar gtar;
640 do
641 AM_RUN_LOG([$_am_tar --version]) && break
642 done
643 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
644 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
645 am__untar="$_am_tar -xf -"
646 ;;
647 plaintar)
648 # Must skip GNU tar: if it does not support --format= it doesn't create
649 # ustar tarball either.
650 (tar --version) >/dev/null 2>&1 && continue
651 am__tar='tar chf - "$$tardir"'
652 am__tar_='tar chf - "$tardir"'
653 am__untar='tar xf -'
654 ;;
655 pax)
656 am__tar='pax -L -x $1 -w "$$tardir"'
657 am__tar_='pax -L -x $1 -w "$tardir"'
658 am__untar='pax -r'
659 ;;
660 cpio)
661 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
662 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
663 am__untar='cpio -i -H $1 -d'
664 ;;
665 none)
666 am__tar=false
667 am__tar_=false
668 am__untar=false
669 ;;
670 esac
671
672 # If the value was cached, stop now. We just wanted to have am__tar
673 # and am__untar set.
674 test -n "${am_cv_prog_tar_$1}" && break
675
676 # tar/untar a dummy directory, and stop if the command works
677 rm -rf conftest.dir
678 mkdir conftest.dir
679 echo GrepMe > conftest.dir/file
680 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
681 rm -rf conftest.dir
682 if test -s conftest.tar; then
683 AM_RUN_LOG([$am__untar <conftest.tar])
684 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
685 fi
686 done
687 rm -rf conftest.dir
688
689 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
690 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
691 AC_SUBST([am__tar])
692 AC_SUBST([am__untar])
693 ]) # _AM_PROG_TAR
694
695 m4_include([../config/acx.m4])
696 m4_include([../config/lead-dot.m4])
697 m4_include([../config/multi.m4])
698 m4_include([../config/override.m4])
699 m4_include([../libtool.m4])
700 m4_include([../ltoptions.m4])
701 m4_include([../ltsugar.m4])
702 m4_include([../ltversion.m4])
703 m4_include([../lt~obsolete.m4])
704 m4_include([acinclude.m4])