|
Lines 1-7
Link Here
|
| 1 |
# generated automatically by aclocal 1.13.3 -*- Autoconf -*- |
1 |
# generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
| 2 |
|
|
|
| 3 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 4 |
|
2 |
|
|
|
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 |
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 5 |
# This file is free software; the Free Software Foundation |
5 |
# This file is free software; the Free Software Foundation |
| 6 |
# gives unlimited permission to copy and/or distribute it, |
6 |
# gives unlimited permission to copy and/or distribute it, |
| 7 |
# with or without modifications, as long as this notice is preserved. |
7 |
# with or without modifications, as long as this notice is preserved. |
|
Lines 11-24
Link Here
|
| 11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 |
# PARTICULAR PURPOSE. |
12 |
# PARTICULAR PURPOSE. |
| 13 |
|
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], |
14 |
m4_ifndef([AC_AUTOCONF_VERSION], |
| 16 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 17 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
16 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, |
| 18 |
[m4_warning([this file was generated for autoconf 2.69. |
17 |
[m4_warning([this file was generated for autoconf 2.63. |
| 19 |
You have another version of autoconf. It may work, but is not guaranteed to. |
18 |
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. |
19 |
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'.])]) |
20 |
To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
| 22 |
|
21 |
|
| 23 |
# Configure paths for GLIB |
22 |
# Configure paths for GLIB |
| 24 |
# Owen Taylor 1997-2001 |
23 |
# Owen Taylor 1997-2001 |
|
Lines 86-92
AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run
Link Here
|
| 86 |
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` |
85 |
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` |
| 87 |
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` |
86 |
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` |
| 88 |
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
87 |
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
| 89 |
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` |
|
|
| 90 |
|
88 |
|
| 91 |
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` |
89 |
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` |
| 92 |
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` |
90 |
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` |
|
Lines 114-127
dnl
Link Here
|
| 114 |
int |
112 |
int |
| 115 |
main () |
113 |
main () |
| 116 |
{ |
114 |
{ |
| 117 |
unsigned int major, minor, micro; |
115 |
int major, minor, micro; |
| 118 |
char *tmp_version; |
116 |
char *tmp_version; |
|
|
117 |
int ignored; |
| 119 |
|
118 |
|
| 120 |
fclose (fopen ("conf.glibtest", "w")); |
119 |
ignored = system ("touch conf.glibtest"); |
| 121 |
|
120 |
|
| 122 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
121 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 123 |
tmp_version = g_strdup("$min_glib_version"); |
122 |
tmp_version = g_strdup("$min_glib_version"); |
| 124 |
if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { |
123 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 125 |
printf("%s, bad version string\n", "$min_glib_version"); |
124 |
printf("%s, bad version string\n", "$min_glib_version"); |
| 126 |
exit(1); |
125 |
exit(1); |
| 127 |
} |
126 |
} |
|
Lines 160-168
main ()
Link Here
|
| 160 |
} |
159 |
} |
| 161 |
else |
160 |
else |
| 162 |
{ |
161 |
{ |
| 163 |
printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", |
162 |
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", |
| 164 |
glib_major_version, glib_minor_version, glib_micro_version); |
163 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 165 |
printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", |
164 |
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", |
| 166 |
major, minor, micro); |
165 |
major, minor, micro); |
| 167 |
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
166 |
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
| 168 |
printf("***\n"); |
167 |
printf("***\n"); |
|
Lines 223-229
main ()
Link Here
|
| 223 |
GLIB_GENMARSHAL="" |
222 |
GLIB_GENMARSHAL="" |
| 224 |
GOBJECT_QUERY="" |
223 |
GOBJECT_QUERY="" |
| 225 |
GLIB_MKENUMS="" |
224 |
GLIB_MKENUMS="" |
| 226 |
GLIB_COMPILE_RESOURCES="" |
|
|
| 227 |
ifelse([$3], , :, [$3]) |
225 |
ifelse([$3], , :, [$3]) |
| 228 |
fi |
226 |
fi |
| 229 |
AC_SUBST(GLIB_CFLAGS) |
227 |
AC_SUBST(GLIB_CFLAGS) |
|
Lines 231-237
main ()
Link Here
|
| 231 |
AC_SUBST(GLIB_GENMARSHAL) |
229 |
AC_SUBST(GLIB_GENMARSHAL) |
| 232 |
AC_SUBST(GOBJECT_QUERY) |
230 |
AC_SUBST(GOBJECT_QUERY) |
| 233 |
AC_SUBST(GLIB_MKENUMS) |
231 |
AC_SUBST(GLIB_MKENUMS) |
| 234 |
AC_SUBST(GLIB_COMPILE_RESOURCES) |
|
|
| 235 |
rm -f conf.glibtest |
232 |
rm -f conf.glibtest |
| 236 |
]) |
233 |
]) |
| 237 |
|
234 |
|
|
Lines 322-328
main ()
Link Here
|
| 322 |
int major, minor, micro; |
319 |
int major, minor, micro; |
| 323 |
char *tmp_version; |
320 |
char *tmp_version; |
| 324 |
|
321 |
|
| 325 |
fclose (fopen ("conf.gtktest", "w")); |
322 |
system ("touch conf.gtktest"); |
| 326 |
|
323 |
|
| 327 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
324 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 328 |
tmp_version = g_strdup("$min_gtk_version"); |
325 |
tmp_version = g_strdup("$min_gtk_version"); |
|
Lines 433-439
main ()
Link Here
|
| 433 |
]) |
430 |
]) |
| 434 |
|
431 |
|
| 435 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
432 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
| 436 |
# serial 1 (pkg-config-0.24) |
|
|
| 437 |
# |
433 |
# |
| 438 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
434 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
| 439 |
# |
435 |
# |
|
Lines 460-471
main ()
Link Here
|
| 460 |
# ---------------------------------- |
456 |
# ---------------------------------- |
| 461 |
AC_DEFUN([PKG_PROG_PKG_CONFIG], |
457 |
AC_DEFUN([PKG_PROG_PKG_CONFIG], |
| 462 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
458 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
| 463 |
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
459 |
m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
| 464 |
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) |
460 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl |
| 465 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
|
|
| 466 |
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
| 467 |
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
| 468 |
|
| 469 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
461 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 470 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
462 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
| 471 |
fi |
463 |
fi |
|
Lines 478-483
if test -n "$PKG_CONFIG"; then
Link Here
|
| 478 |
AC_MSG_RESULT([no]) |
470 |
AC_MSG_RESULT([no]) |
| 479 |
PKG_CONFIG="" |
471 |
PKG_CONFIG="" |
| 480 |
fi |
472 |
fi |
|
|
473 |
|
| 481 |
fi[]dnl |
474 |
fi[]dnl |
| 482 |
])# PKG_PROG_PKG_CONFIG |
475 |
])# PKG_PROG_PKG_CONFIG |
| 483 |
|
476 |
|
|
Lines 486-505
fi[]dnl
Link Here
|
| 486 |
# Check to see whether a particular set of modules exists. Similar |
479 |
# Check to see whether a particular set of modules exists. Similar |
| 487 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
480 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
| 488 |
# |
481 |
# |
| 489 |
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
482 |
# |
| 490 |
# only at the first occurence in configure.ac, so if the first place |
483 |
# Similar to PKG_CHECK_MODULES, make sure that the first instance of |
| 491 |
# it's called might be skipped (such as if it is within an "if", you |
484 |
# this or PKG_CHECK_MODULES is called, or make sure to call |
| 492 |
# have to call PKG_CHECK_EXISTS manually |
485 |
# PKG_CHECK_EXISTS manually |
| 493 |
# -------------------------------------------------------------- |
486 |
# -------------------------------------------------------------- |
| 494 |
AC_DEFUN([PKG_CHECK_EXISTS], |
487 |
AC_DEFUN([PKG_CHECK_EXISTS], |
| 495 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
488 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 496 |
if test -n "$PKG_CONFIG" && \ |
489 |
if test -n "$PKG_CONFIG" && \ |
| 497 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
490 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
| 498 |
m4_default([$2], [:]) |
491 |
m4_ifval([$2], [$2], [:]) |
| 499 |
m4_ifvaln([$3], [else |
492 |
m4_ifvaln([$3], [else |
| 500 |
$3])dnl |
493 |
$3])dnl |
| 501 |
fi]) |
494 |
fi]) |
| 502 |
|
495 |
|
|
|
496 |
|
| 503 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
497 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
| 504 |
# --------------------------------------------- |
498 |
# --------------------------------------------- |
| 505 |
m4_define([_PKG_CONFIG], |
499 |
m4_define([_PKG_CONFIG], |
|
Lines 507-514
m4_define([_PKG_CONFIG],
Link Here
|
| 507 |
pkg_cv_[]$1="$$1" |
501 |
pkg_cv_[]$1="$$1" |
| 508 |
elif test -n "$PKG_CONFIG"; then |
502 |
elif test -n "$PKG_CONFIG"; then |
| 509 |
PKG_CHECK_EXISTS([$3], |
503 |
PKG_CHECK_EXISTS([$3], |
| 510 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
504 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], |
| 511 |
test "x$?" != "x0" && pkg_failed=yes ], |
|
|
| 512 |
[pkg_failed=yes]) |
505 |
[pkg_failed=yes]) |
| 513 |
else |
506 |
else |
| 514 |
pkg_failed=untried |
507 |
pkg_failed=untried |
|
Lines 553-569
and $1[]_LIBS to avoid the need to call pkg-config.
Link Here
|
| 553 |
See the pkg-config man page for more details.]) |
546 |
See the pkg-config man page for more details.]) |
| 554 |
|
547 |
|
| 555 |
if test $pkg_failed = yes; then |
548 |
if test $pkg_failed = yes; then |
| 556 |
AC_MSG_RESULT([no]) |
|
|
| 557 |
_PKG_SHORT_ERRORS_SUPPORTED |
549 |
_PKG_SHORT_ERRORS_SUPPORTED |
| 558 |
if test $_pkg_short_errors_supported = yes; then |
550 |
if test $_pkg_short_errors_supported = yes; then |
| 559 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` |
551 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` |
| 560 |
else |
552 |
else |
| 561 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` |
553 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` |
| 562 |
fi |
554 |
fi |
| 563 |
# Put the nasty error message in config.log where it belongs |
555 |
# Put the nasty error message in config.log where it belongs |
| 564 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
556 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
| 565 |
|
557 |
|
| 566 |
m4_default([$4], [AC_MSG_ERROR( |
558 |
ifelse([$4], , [AC_MSG_ERROR(dnl |
| 567 |
[Package requirements ($2) were not met: |
559 |
[Package requirements ($2) were not met: |
| 568 |
|
560 |
|
| 569 |
$$1_PKG_ERRORS |
561 |
$$1_PKG_ERRORS |
|
Lines 571-598
$$1_PKG_ERRORS
Link Here
|
| 571 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
563 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 572 |
installed software in a non-standard prefix. |
564 |
installed software in a non-standard prefix. |
| 573 |
|
565 |
|
| 574 |
_PKG_TEXT])[]dnl |
566 |
_PKG_TEXT |
| 575 |
]) |
567 |
])], |
|
|
568 |
[AC_MSG_RESULT([no]) |
| 569 |
$4]) |
| 576 |
elif test $pkg_failed = untried; then |
570 |
elif test $pkg_failed = untried; then |
| 577 |
AC_MSG_RESULT([no]) |
571 |
ifelse([$4], , [AC_MSG_FAILURE(dnl |
| 578 |
m4_default([$4], [AC_MSG_FAILURE( |
|
|
| 579 |
[The pkg-config script could not be found or is too old. Make sure it |
572 |
[The pkg-config script could not be found or is too old. Make sure it |
| 580 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
573 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
| 581 |
path to pkg-config. |
574 |
path to pkg-config. |
| 582 |
|
575 |
|
| 583 |
_PKG_TEXT |
576 |
_PKG_TEXT |
| 584 |
|
577 |
|
| 585 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
578 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], |
| 586 |
]) |
579 |
[$4]) |
| 587 |
else |
580 |
else |
| 588 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
581 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
| 589 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
582 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
| 590 |
AC_MSG_RESULT([yes]) |
583 |
AC_MSG_RESULT([yes]) |
| 591 |
$3 |
584 |
ifelse([$3], , :, [$3]) |
| 592 |
fi[]dnl |
585 |
fi[]dnl |
| 593 |
])# PKG_CHECK_MODULES |
586 |
])# PKG_CHECK_MODULES |
| 594 |
|
587 |
|
| 595 |
# Copyright (C) 2002-2013 Free Software Foundation, Inc. |
588 |
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 596 |
# |
589 |
# |
| 597 |
# This file is free software; the Free Software Foundation |
590 |
# This file is free software; the Free Software Foundation |
| 598 |
# gives unlimited permission to copy and/or distribute it, |
591 |
# gives unlimited permission to copy and/or distribute it, |
|
Lines 604-613
fi[]dnl
Link Here
|
| 604 |
# generated from the m4 files accompanying Automake X.Y. |
597 |
# generated from the m4 files accompanying Automake X.Y. |
| 605 |
# (This private macro should not be called outside this file.) |
598 |
# (This private macro should not be called outside this file.) |
| 606 |
AC_DEFUN([AM_AUTOMAKE_VERSION], |
599 |
AC_DEFUN([AM_AUTOMAKE_VERSION], |
| 607 |
[am__api_version='1.13' |
600 |
[am__api_version='1.11' |
| 608 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
601 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 609 |
dnl require some minimum version. Point them to the right macro. |
602 |
dnl require some minimum version. Point them to the right macro. |
| 610 |
m4_if([$1], [1.13.3], [], |
603 |
m4_if([$1], [1.11.1], [], |
| 611 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
604 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 612 |
]) |
605 |
]) |
| 613 |
|
606 |
|
|
Lines 623-644
m4_define([_AM_AUTOCONF_VERSION], [])
Link Here
|
| 623 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
616 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| 624 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
617 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
| 625 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
618 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 626 |
[AM_AUTOMAKE_VERSION([1.13.3])dnl |
619 |
[AM_AUTOMAKE_VERSION([1.11.1])dnl |
| 627 |
m4_ifndef([AC_AUTOCONF_VERSION], |
620 |
m4_ifndef([AC_AUTOCONF_VERSION], |
| 628 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
621 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 629 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
622 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
| 630 |
|
623 |
|
| 631 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
624 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| 632 |
|
625 |
|
| 633 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
626 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 634 |
# |
627 |
# |
| 635 |
# This file is free software; the Free Software Foundation |
628 |
# This file is free software; the Free Software Foundation |
| 636 |
# gives unlimited permission to copy and/or distribute it, |
629 |
# gives unlimited permission to copy and/or distribute it, |
| 637 |
# with or without modifications, as long as this notice is preserved. |
630 |
# with or without modifications, as long as this notice is preserved. |
| 638 |
|
631 |
|
| 639 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
632 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 640 |
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
633 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 641 |
# '$srcdir', '$srcdir/..', or '$srcdir/../..'. |
634 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 642 |
# |
635 |
# |
| 643 |
# Of course, Automake must honor this variable whenever it calls a |
636 |
# Of course, Automake must honor this variable whenever it calls a |
| 644 |
# tool from the auxiliary directory. The problem is that $srcdir (and |
637 |
# tool from the auxiliary directory. The problem is that $srcdir (and |
|
Lines 657-663
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Link Here
|
| 657 |
# |
650 |
# |
| 658 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
651 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 659 |
# are both prefixed by $srcdir. In an in-source build this is usually |
652 |
# are both prefixed by $srcdir. In an in-source build this is usually |
| 660 |
# harmless because $srcdir is '.', but things will broke when you |
653 |
# harmless because $srcdir is `.', but things will broke when you |
| 661 |
# start a VPATH build or use an absolute $srcdir. |
654 |
# start a VPATH build or use an absolute $srcdir. |
| 662 |
# |
655 |
# |
| 663 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
656 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|
Lines 683-701
am_aux_dir=`cd $ac_aux_dir && pwd`
Link Here
|
| 683 |
|
676 |
|
| 684 |
# AM_CONDITIONAL -*- Autoconf -*- |
677 |
# AM_CONDITIONAL -*- Autoconf -*- |
| 685 |
|
678 |
|
| 686 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
679 |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
|
|
680 |
# Free Software Foundation, Inc. |
| 687 |
# |
681 |
# |
| 688 |
# This file is free software; the Free Software Foundation |
682 |
# This file is free software; the Free Software Foundation |
| 689 |
# gives unlimited permission to copy and/or distribute it, |
683 |
# gives unlimited permission to copy and/or distribute it, |
| 690 |
# with or without modifications, as long as this notice is preserved. |
684 |
# with or without modifications, as long as this notice is preserved. |
| 691 |
|
685 |
|
|
|
686 |
# serial 9 |
| 687 |
|
| 692 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
688 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 693 |
# ------------------------------------- |
689 |
# ------------------------------------- |
| 694 |
# Define a conditional. |
690 |
# Define a conditional. |
| 695 |
AC_DEFUN([AM_CONDITIONAL], |
691 |
AC_DEFUN([AM_CONDITIONAL], |
| 696 |
[AC_PREREQ([2.52])dnl |
692 |
[AC_PREREQ(2.52)dnl |
| 697 |
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
693 |
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 698 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
694 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 699 |
AC_SUBST([$1_TRUE])dnl |
695 |
AC_SUBST([$1_TRUE])dnl |
| 700 |
AC_SUBST([$1_FALSE])dnl |
696 |
AC_SUBST([$1_FALSE])dnl |
| 701 |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
697 |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
|
Lines 714-727
AC_CONFIG_COMMANDS_PRE(
Link Here
|
| 714 |
Usually this means the macro was only invoked conditionally.]]) |
710 |
Usually this means the macro was only invoked conditionally.]]) |
| 715 |
fi])]) |
711 |
fi])]) |
| 716 |
|
712 |
|
| 717 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
713 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 |
|
|
714 |
# Free Software Foundation, Inc. |
| 718 |
# |
715 |
# |
| 719 |
# This file is free software; the Free Software Foundation |
716 |
# This file is free software; the Free Software Foundation |
| 720 |
# gives unlimited permission to copy and/or distribute it, |
717 |
# gives unlimited permission to copy and/or distribute it, |
| 721 |
# with or without modifications, as long as this notice is preserved. |
718 |
# with or without modifications, as long as this notice is preserved. |
| 722 |
|
719 |
|
|
|
720 |
# serial 10 |
| 723 |
|
721 |
|
| 724 |
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
722 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 725 |
# written in clear, in which case automake, when reading aclocal.m4, |
723 |
# written in clear, in which case automake, when reading aclocal.m4, |
| 726 |
# will think it sees a *use*, and therefore will trigger all it's |
724 |
# will think it sees a *use*, and therefore will trigger all it's |
| 727 |
# C support machinery. Also note that it means that autoscan, seeing |
725 |
# C support machinery. Also note that it means that autoscan, seeing |
|
Lines 731-737
fi])])
Link Here
|
| 731 |
# _AM_DEPENDENCIES(NAME) |
729 |
# _AM_DEPENDENCIES(NAME) |
| 732 |
# ---------------------- |
730 |
# ---------------------- |
| 733 |
# See how the compiler implements dependency checking. |
731 |
# See how the compiler implements dependency checking. |
| 734 |
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". |
732 |
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 735 |
# We try a few techniques and use that to set a single cache variable. |
733 |
# We try a few techniques and use that to set a single cache variable. |
| 736 |
# |
734 |
# |
| 737 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
735 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|
Lines 744-756
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Link Here
|
| 744 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
742 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 745 |
AC_REQUIRE([AM_DEP_TRACK])dnl |
743 |
AC_REQUIRE([AM_DEP_TRACK])dnl |
| 746 |
|
744 |
|
| 747 |
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], |
745 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 748 |
[$1], [CXX], [depcc="$CXX" am_compiler_list=], |
746 |
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 749 |
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
747 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 750 |
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], |
748 |
[$1], UPC, [depcc="$UPC" am_compiler_list=], |
| 751 |
[$1], [UPC], [depcc="$UPC" am_compiler_list=], |
749 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 752 |
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
750 |
[depcc="$$1" am_compiler_list=]) |
| 753 |
[depcc="$$1" am_compiler_list=]) |
|
|
| 754 |
|
751 |
|
| 755 |
AC_CACHE_CHECK([dependency style of $depcc], |
752 |
AC_CACHE_CHECK([dependency style of $depcc], |
| 756 |
[am_cv_$1_dependencies_compiler_type], |
753 |
[am_cv_$1_dependencies_compiler_type], |
|
Lines 758-766
AC_CACHE_CHECK([dependency style of $depcc],
Link Here
|
| 758 |
# We make a subdir and do the tests there. Otherwise we can end up |
755 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 759 |
# making bogus files that we don't know about and never remove. For |
756 |
# making bogus files that we don't know about and never remove. For |
| 760 |
# instance it was reported that on HP-UX the gcc test will end up |
757 |
# instance it was reported that on HP-UX the gcc test will end up |
| 761 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
758 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 762 |
# in D". |
759 |
# in D'. |
| 763 |
rm -rf conftest.dir |
|
|
| 764 |
mkdir conftest.dir |
760 |
mkdir conftest.dir |
| 765 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
761 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 766 |
# using a relative directory. |
762 |
# using a relative directory. |
|
Lines 799-814
AC_CACHE_CHECK([dependency style of $depcc],
Link Here
|
| 799 |
: > sub/conftest.c |
795 |
: > sub/conftest.c |
| 800 |
for i in 1 2 3 4 5 6; do |
796 |
for i in 1 2 3 4 5 6; do |
| 801 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
797 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 802 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
798 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 803 |
# Solaris 10 /bin/sh. |
799 |
# Solaris 8's {/usr,}/bin/sh. |
| 804 |
echo '/* dummy */' > sub/conftst$i.h |
800 |
touch sub/conftst$i.h |
| 805 |
done |
801 |
done |
| 806 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
802 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 807 |
|
803 |
|
| 808 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
804 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 809 |
# mode. It turns out that the SunPro C++ compiler does not properly |
805 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 810 |
# handle '-M -o', and we need to detect this. Also, some Intel |
806 |
# handle `-M -o', and we need to detect this. Also, some Intel |
| 811 |
# versions had trouble with output in subdirs. |
807 |
# versions had trouble with output in subdirs |
| 812 |
am__obj=sub/conftest.${OBJEXT-o} |
808 |
am__obj=sub/conftest.${OBJEXT-o} |
| 813 |
am__minus_obj="-o $am__obj" |
809 |
am__minus_obj="-o $am__obj" |
| 814 |
case $depmode in |
810 |
case $depmode in |
|
Lines 817-832
AC_CACHE_CHECK([dependency style of $depcc],
Link Here
|
| 817 |
test "$am__universal" = false || continue |
813 |
test "$am__universal" = false || continue |
| 818 |
;; |
814 |
;; |
| 819 |
nosideeffect) |
815 |
nosideeffect) |
| 820 |
# After this tag, mechanisms are not by side-effect, so they'll |
816 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 821 |
# only be used when explicitly requested. |
817 |
# only be used when explicitly requested |
| 822 |
if test "x$enable_dependency_tracking" = xyes; then |
818 |
if test "x$enable_dependency_tracking" = xyes; then |
| 823 |
continue |
819 |
continue |
| 824 |
else |
820 |
else |
| 825 |
break |
821 |
break |
| 826 |
fi |
822 |
fi |
| 827 |
;; |
823 |
;; |
| 828 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
824 |
msvisualcpp | msvcmsys) |
| 829 |
# This compiler won't grok '-c -o', but also, the minuso test has |
825 |
# This compiler won't grok `-c -o', but also, the minuso test has |
| 830 |
# not run yet. These depmodes are late enough in the game, and |
826 |
# not run yet. These depmodes are late enough in the game, and |
| 831 |
# so weak that their functioning should not be impacted. |
827 |
# so weak that their functioning should not be impacted. |
| 832 |
am__obj=conftest.${OBJEXT-o} |
828 |
am__obj=conftest.${OBJEXT-o} |
|
Lines 874-880
AM_CONDITIONAL([am__fastdep$1], [
Link Here
|
| 874 |
# AM_SET_DEPDIR |
870 |
# AM_SET_DEPDIR |
| 875 |
# ------------- |
871 |
# ------------- |
| 876 |
# Choose a directory name for dependency files. |
872 |
# Choose a directory name for dependency files. |
| 877 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES. |
873 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 878 |
AC_DEFUN([AM_SET_DEPDIR], |
874 |
AC_DEFUN([AM_SET_DEPDIR], |
| 879 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
875 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 880 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
876 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|
Lines 884-922
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Link Here
|
| 884 |
# AM_DEP_TRACK |
880 |
# AM_DEP_TRACK |
| 885 |
# ------------ |
881 |
# ------------ |
| 886 |
AC_DEFUN([AM_DEP_TRACK], |
882 |
AC_DEFUN([AM_DEP_TRACK], |
| 887 |
[AC_ARG_ENABLE([dependency-tracking], [dnl |
883 |
[AC_ARG_ENABLE(dependency-tracking, |
| 888 |
AS_HELP_STRING( |
884 |
[ --disable-dependency-tracking speeds up one-time build |
| 889 |
[--enable-dependency-tracking], |
885 |
--enable-dependency-tracking do not reject slow dependency extractors]) |
| 890 |
[do not reject slow dependency extractors]) |
|
|
| 891 |
AS_HELP_STRING( |
| 892 |
[--disable-dependency-tracking], |
| 893 |
[speeds up one-time build])]) |
| 894 |
if test "x$enable_dependency_tracking" != xno; then |
886 |
if test "x$enable_dependency_tracking" != xno; then |
| 895 |
am_depcomp="$ac_aux_dir/depcomp" |
887 |
am_depcomp="$ac_aux_dir/depcomp" |
| 896 |
AMDEPBACKSLASH='\' |
888 |
AMDEPBACKSLASH='\' |
| 897 |
am__nodep='_no' |
|
|
| 898 |
fi |
889 |
fi |
| 899 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
890 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 900 |
AC_SUBST([AMDEPBACKSLASH])dnl |
891 |
AC_SUBST([AMDEPBACKSLASH])dnl |
| 901 |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
892 |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
| 902 |
AC_SUBST([am__nodep])dnl |
|
|
| 903 |
_AM_SUBST_NOTMAKE([am__nodep])dnl |
| 904 |
]) |
893 |
]) |
| 905 |
|
894 |
|
| 906 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
895 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
| 907 |
|
896 |
|
| 908 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
897 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
|
|
898 |
# Free Software Foundation, Inc. |
| 909 |
# |
899 |
# |
| 910 |
# This file is free software; the Free Software Foundation |
900 |
# This file is free software; the Free Software Foundation |
| 911 |
# gives unlimited permission to copy and/or distribute it, |
901 |
# gives unlimited permission to copy and/or distribute it, |
| 912 |
# with or without modifications, as long as this notice is preserved. |
902 |
# with or without modifications, as long as this notice is preserved. |
| 913 |
|
903 |
|
|
|
904 |
#serial 5 |
| 914 |
|
905 |
|
| 915 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
906 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 916 |
# ------------------------------ |
907 |
# ------------------------------ |
| 917 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
908 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 918 |
[{ |
909 |
[{ |
| 919 |
# Older Autoconf quotes --file arguments for eval, but not when files |
910 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 920 |
# are listed without --file. Let's play safe and only enable the eval |
911 |
# are listed without --file. Let's play safe and only enable the eval |
| 921 |
# if we detect the quoting. |
912 |
# if we detect the quoting. |
| 922 |
case $CONFIG_FILES in |
913 |
case $CONFIG_FILES in |
|
Lines 929-935
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Link Here
|
| 929 |
# Strip MF so we end up with the name of the file. |
920 |
# Strip MF so we end up with the name of the file. |
| 930 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
921 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 931 |
# Check whether this is an Automake generated Makefile or not. |
922 |
# Check whether this is an Automake generated Makefile or not. |
| 932 |
# We used to match only the files named 'Makefile.in', but |
923 |
# We used to match only the files named `Makefile.in', but |
| 933 |
# some people rename them; so instead we look at the file content. |
924 |
# some people rename them; so instead we look at the file content. |
| 934 |
# Grep'ing the first line is not enough: some people post-process |
925 |
# Grep'ing the first line is not enough: some people post-process |
| 935 |
# each Makefile.in and add a new line on top of each file to say so. |
926 |
# each Makefile.in and add a new line on top of each file to say so. |
|
Lines 941-959
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Link Here
|
| 941 |
continue |
932 |
continue |
| 942 |
fi |
933 |
fi |
| 943 |
# Extract the definition of DEPDIR, am__include, and am__quote |
934 |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 944 |
# from the Makefile without running 'make'. |
935 |
# from the Makefile without running `make'. |
| 945 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
936 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 946 |
test -z "$DEPDIR" && continue |
937 |
test -z "$DEPDIR" && continue |
| 947 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
938 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 948 |
test -z "$am__include" && continue |
939 |
test -z "am__include" && continue |
| 949 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
940 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
|
941 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 942 |
U=`sed -n 's/^U = //p' < "$mf"` |
| 950 |
# Find all dependency output files, they are included files with |
943 |
# Find all dependency output files, they are included files with |
| 951 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
944 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 952 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
945 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 953 |
# expansion. |
946 |
# expansion. |
| 954 |
for file in `sed -n " |
947 |
for file in `sed -n " |
| 955 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
948 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 956 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
949 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 957 |
# Make sure the directory exists. |
950 |
# Make sure the directory exists. |
| 958 |
test -f "$dirpart/$file" && continue |
951 |
test -f "$dirpart/$file" && continue |
| 959 |
fdir=`AS_DIRNAME(["$file"])` |
952 |
fdir=`AS_DIRNAME(["$file"])` |
|
Lines 971-977
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Link Here
|
| 971 |
# This macro should only be invoked once -- use via AC_REQUIRE. |
964 |
# This macro should only be invoked once -- use via AC_REQUIRE. |
| 972 |
# |
965 |
# |
| 973 |
# This code is only required when automatic dependency tracking |
966 |
# This code is only required when automatic dependency tracking |
| 974 |
# is enabled. FIXME. This creates each '.P' file that we will |
967 |
# is enabled. FIXME. This creates each `.P' file that we will |
| 975 |
# need in order to bootstrap the dependency handling code. |
968 |
# need in order to bootstrap the dependency handling code. |
| 976 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
969 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 977 |
[AC_CONFIG_COMMANDS([depfiles], |
970 |
[AC_CONFIG_COMMANDS([depfiles], |
|
Lines 981-992
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Link Here
|
| 981 |
|
974 |
|
| 982 |
# Do all the work for Automake. -*- Autoconf -*- |
975 |
# Do all the work for Automake. -*- Autoconf -*- |
| 983 |
|
976 |
|
| 984 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
977 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
|
|
978 |
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
| 985 |
# |
979 |
# |
| 986 |
# This file is free software; the Free Software Foundation |
980 |
# This file is free software; the Free Software Foundation |
| 987 |
# gives unlimited permission to copy and/or distribute it, |
981 |
# gives unlimited permission to copy and/or distribute it, |
| 988 |
# with or without modifications, as long as this notice is preserved. |
982 |
# with or without modifications, as long as this notice is preserved. |
| 989 |
|
983 |
|
|
|
984 |
# serial 16 |
| 985 |
|
| 990 |
# This macro actually does too much. Some checks are only needed if |
986 |
# This macro actually does too much. Some checks are only needed if |
| 991 |
# your package does certain things. But this isn't really a big deal. |
987 |
# your package does certain things. But this isn't really a big deal. |
| 992 |
|
988 |
|
|
Lines 1002-1008
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Link Here
|
| 1002 |
# arguments mandatory, and then we can depend on a new Autoconf |
998 |
# arguments mandatory, and then we can depend on a new Autoconf |
| 1003 |
# release and drop the old call support. |
999 |
# release and drop the old call support. |
| 1004 |
AC_DEFUN([AM_INIT_AUTOMAKE], |
1000 |
AC_DEFUN([AM_INIT_AUTOMAKE], |
| 1005 |
[AC_PREREQ([2.65])dnl |
1001 |
[AC_PREREQ([2.62])dnl |
| 1006 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
1002 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| 1007 |
dnl the ones we care about. |
1003 |
dnl the ones we care about. |
| 1008 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
1004 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
Lines 1031-1070
AC_SUBST([CYGPATH_W])
Link Here
|
| 1031 |
# Define the identity of the package. |
1027 |
# Define the identity of the package. |
| 1032 |
dnl Distinguish between old-style and new-style calls. |
1028 |
dnl Distinguish between old-style and new-style calls. |
| 1033 |
m4_ifval([$2], |
1029 |
m4_ifval([$2], |
| 1034 |
[AC_DIAGNOSE([obsolete], |
1030 |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 1035 |
[$0: two- and three-arguments forms are deprecated.]) |
|
|
| 1036 |
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 1037 |
AC_SUBST([PACKAGE], [$1])dnl |
1031 |
AC_SUBST([PACKAGE], [$1])dnl |
| 1038 |
AC_SUBST([VERSION], [$2])], |
1032 |
AC_SUBST([VERSION], [$2])], |
| 1039 |
[_AM_SET_OPTIONS([$1])dnl |
1033 |
[_AM_SET_OPTIONS([$1])dnl |
| 1040 |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
1034 |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 1041 |
m4_if( |
1035 |
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| 1042 |
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), |
|
|
| 1043 |
[ok:ok],, |
| 1044 |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
1036 |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
| 1045 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
1037 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 1046 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
1038 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 1047 |
|
1039 |
|
| 1048 |
_AM_IF_OPTION([no-define],, |
1040 |
_AM_IF_OPTION([no-define],, |
| 1049 |
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) |
1041 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 1050 |
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl |
1042 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
| 1051 |
|
1043 |
|
| 1052 |
# Some tools Automake needs. |
1044 |
# Some tools Automake needs. |
| 1053 |
AC_REQUIRE([AM_SANITY_CHECK])dnl |
1045 |
AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 1054 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
1046 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 1055 |
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) |
1047 |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
| 1056 |
AM_MISSING_PROG([AUTOCONF], [autoconf]) |
1048 |
AM_MISSING_PROG(AUTOCONF, autoconf) |
| 1057 |
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) |
1049 |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
| 1058 |
AM_MISSING_PROG([AUTOHEADER], [autoheader]) |
1050 |
AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 1059 |
AM_MISSING_PROG([MAKEINFO], [makeinfo]) |
1051 |
AM_MISSING_PROG(MAKEINFO, makeinfo) |
| 1060 |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
1052 |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 1061 |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
1053 |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
| 1062 |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
1054 |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
| 1063 |
# For better backward compatibility. To be removed once Automake 1.9.x |
|
|
| 1064 |
# dies out for good. For more background, see: |
| 1065 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 1066 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 1067 |
AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
| 1068 |
# We need awk for the "check" target. The system "awk" is bad on |
1055 |
# We need awk for the "check" target. The system "awk" is bad on |
| 1069 |
# some platforms. |
1056 |
# some platforms. |
| 1070 |
AC_REQUIRE([AC_PROG_AWK])dnl |
1057 |
AC_REQUIRE([AC_PROG_AWK])dnl |
|
Lines 1075-1106
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Link Here
|
| 1075 |
[_AM_PROG_TAR([v7])])]) |
1062 |
[_AM_PROG_TAR([v7])])]) |
| 1076 |
_AM_IF_OPTION([no-dependencies],, |
1063 |
_AM_IF_OPTION([no-dependencies],, |
| 1077 |
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
1064 |
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 1078 |
[_AM_DEPENDENCIES([CC])], |
1065 |
[_AM_DEPENDENCIES(CC)], |
| 1079 |
[m4_define([AC_PROG_CC], |
1066 |
[define([AC_PROG_CC], |
| 1080 |
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl |
1067 |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
| 1081 |
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
1068 |
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 1082 |
[_AM_DEPENDENCIES([CXX])], |
1069 |
[_AM_DEPENDENCIES(CXX)], |
| 1083 |
[m4_define([AC_PROG_CXX], |
1070 |
[define([AC_PROG_CXX], |
| 1084 |
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl |
1071 |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 1085 |
AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
1072 |
AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| 1086 |
[_AM_DEPENDENCIES([OBJC])], |
1073 |
[_AM_DEPENDENCIES(OBJC)], |
| 1087 |
[m4_define([AC_PROG_OBJC], |
1074 |
[define([AC_PROG_OBJC], |
| 1088 |
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
1075 |
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
| 1089 |
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], |
|
|
| 1090 |
[_AM_DEPENDENCIES([OBJCXX])], |
| 1091 |
[m4_define([AC_PROG_OBJCXX], |
| 1092 |
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
| 1093 |
]) |
1076 |
]) |
| 1094 |
AC_REQUIRE([AM_SILENT_RULES])dnl |
1077 |
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl |
| 1095 |
dnl The testsuite driver may need to know about EXEEXT, so add the |
1078 |
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
| 1096 |
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
1079 |
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
| 1097 |
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. |
1080 |
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. |
| 1098 |
AC_CONFIG_COMMANDS_PRE(dnl |
1081 |
AC_CONFIG_COMMANDS_PRE(dnl |
| 1099 |
[m4_provide_if([_AM_COMPILER_EXEEXT], |
1082 |
[m4_provide_if([_AM_COMPILER_EXEEXT], |
| 1100 |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
1083 |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
| 1101 |
]) |
1084 |
]) |
| 1102 |
|
1085 |
|
| 1103 |
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
1086 |
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| 1104 |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
1087 |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
| 1105 |
dnl mangled by Autoconf and run in a shell conditional statement. |
1088 |
dnl mangled by Autoconf and run in a shell conditional statement. |
| 1106 |
m4_define([_AC_COMPILER_EXEEXT], |
1089 |
m4_define([_AC_COMPILER_EXEEXT], |
|
Lines 1128-1134
for _am_header in $config_headers :; do
Link Here
|
| 1128 |
done |
1111 |
done |
| 1129 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
1112 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
| 1130 |
|
1113 |
|
| 1131 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
1114 |
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
| 1132 |
# |
1115 |
# |
| 1133 |
# This file is free software; the Free Software Foundation |
1116 |
# This file is free software; the Free Software Foundation |
| 1134 |
# gives unlimited permission to copy and/or distribute it, |
1117 |
# gives unlimited permission to copy and/or distribute it, |
|
Lines 1147-1160
if test x"${install_sh}" != xset; then
Link Here
|
| 1147 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
1130 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 1148 |
esac |
1131 |
esac |
| 1149 |
fi |
1132 |
fi |
| 1150 |
AC_SUBST([install_sh])]) |
1133 |
AC_SUBST(install_sh)]) |
| 1151 |
|
1134 |
|
| 1152 |
# Copyright (C) 2003-2013 Free Software Foundation, Inc. |
1135 |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
| 1153 |
# |
1136 |
# |
| 1154 |
# This file is free software; the Free Software Foundation |
1137 |
# This file is free software; the Free Software Foundation |
| 1155 |
# gives unlimited permission to copy and/or distribute it, |
1138 |
# gives unlimited permission to copy and/or distribute it, |
| 1156 |
# with or without modifications, as long as this notice is preserved. |
1139 |
# with or without modifications, as long as this notice is preserved. |
| 1157 |
|
1140 |
|
|
|
1141 |
# serial 2 |
| 1142 |
|
| 1158 |
# Check whether the underlying file-system supports filenames |
1143 |
# Check whether the underlying file-system supports filenames |
| 1159 |
# with a leading dot. For instance MS-DOS doesn't. |
1144 |
# with a leading dot. For instance MS-DOS doesn't. |
| 1160 |
AC_DEFUN([AM_SET_LEADING_DOT], |
1145 |
AC_DEFUN([AM_SET_LEADING_DOT], |
|
Lines 1171-1187
AC_SUBST([am__leading_dot])])
Link Here
|
| 1171 |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
1156 |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 1172 |
# From Jim Meyering |
1157 |
# From Jim Meyering |
| 1173 |
|
1158 |
|
| 1174 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
1159 |
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
|
|
1160 |
# Free Software Foundation, Inc. |
| 1175 |
# |
1161 |
# |
| 1176 |
# This file is free software; the Free Software Foundation |
1162 |
# This file is free software; the Free Software Foundation |
| 1177 |
# gives unlimited permission to copy and/or distribute it, |
1163 |
# gives unlimited permission to copy and/or distribute it, |
| 1178 |
# with or without modifications, as long as this notice is preserved. |
1164 |
# with or without modifications, as long as this notice is preserved. |
| 1179 |
|
1165 |
|
|
|
1166 |
# serial 5 |
| 1167 |
|
| 1180 |
# AM_MAINTAINER_MODE([DEFAULT-MODE]) |
1168 |
# AM_MAINTAINER_MODE([DEFAULT-MODE]) |
| 1181 |
# ---------------------------------- |
1169 |
# ---------------------------------- |
| 1182 |
# Control maintainer-specific portions of Makefiles. |
1170 |
# Control maintainer-specific portions of Makefiles. |
| 1183 |
# Default is to disable them, unless 'enable' is passed literally. |
1171 |
# Default is to disable them, unless `enable' is passed literally. |
| 1184 |
# For symmetry, 'disable' may be passed as well. Anyway, the user |
1172 |
# For symmetry, `disable' may be passed as well. Anyway, the user |
| 1185 |
# can override the default with the --enable/--disable switch. |
1173 |
# can override the default with the --enable/--disable switch. |
| 1186 |
AC_DEFUN([AM_MAINTAINER_MODE], |
1174 |
AC_DEFUN([AM_MAINTAINER_MODE], |
| 1187 |
[m4_case(m4_default([$1], [disable]), |
1175 |
[m4_case(m4_default([$1], [disable]), |
|
Lines 1189-1202
AC_DEFUN([AM_MAINTAINER_MODE],
Link Here
|
| 1189 |
[disable], [m4_define([am_maintainer_other], [enable])], |
1177 |
[disable], [m4_define([am_maintainer_other], [enable])], |
| 1190 |
[m4_define([am_maintainer_other], [enable]) |
1178 |
[m4_define([am_maintainer_other], [enable]) |
| 1191 |
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
1179 |
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
| 1192 |
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
1180 |
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) |
| 1193 |
dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
1181 |
dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
| 1194 |
AC_ARG_ENABLE([maintainer-mode], |
1182 |
AC_ARG_ENABLE([maintainer-mode], |
| 1195 |
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
1183 |
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful |
| 1196 |
am_maintainer_other[ make rules and dependencies not useful |
1184 |
(and sometimes confusing) to the casual installer], |
| 1197 |
(and sometimes confusing) to the casual installer])], |
1185 |
[USE_MAINTAINER_MODE=$enableval], |
| 1198 |
[USE_MAINTAINER_MODE=$enableval], |
1186 |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
| 1199 |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
|
|
| 1200 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
1187 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 1201 |
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
1188 |
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
| 1202 |
MAINT=$MAINTAINER_MODE_TRUE |
1189 |
MAINT=$MAINTAINER_MODE_TRUE |
|
Lines 1204-1217
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Link Here
|
| 1204 |
] |
1191 |
] |
| 1205 |
) |
1192 |
) |
| 1206 |
|
1193 |
|
|
|
1194 |
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
| 1195 |
|
| 1207 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
1196 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
| 1208 |
|
1197 |
|
| 1209 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
1198 |
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
| 1210 |
# |
1199 |
# |
| 1211 |
# This file is free software; the Free Software Foundation |
1200 |
# This file is free software; the Free Software Foundation |
| 1212 |
# gives unlimited permission to copy and/or distribute it, |
1201 |
# gives unlimited permission to copy and/or distribute it, |
| 1213 |
# with or without modifications, as long as this notice is preserved. |
1202 |
# with or without modifications, as long as this notice is preserved. |
| 1214 |
|
1203 |
|
|
|
1204 |
# serial 4 |
| 1205 |
|
| 1215 |
# AM_MAKE_INCLUDE() |
1206 |
# AM_MAKE_INCLUDE() |
| 1216 |
# ----------------- |
1207 |
# ----------------- |
| 1217 |
# Check to see how make treats includes. |
1208 |
# Check to see how make treats includes. |
|
Lines 1229-1235
am__quote=
Link Here
|
| 1229 |
_am_result=none |
1220 |
_am_result=none |
| 1230 |
# First try GNU make style include. |
1221 |
# First try GNU make style include. |
| 1231 |
echo "include confinc" > confmf |
1222 |
echo "include confinc" > confmf |
| 1232 |
# Ignore all kinds of additional output from 'make'. |
1223 |
# Ignore all kinds of additional output from `make'. |
| 1233 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
1224 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 1234 |
*the\ am__doit\ target*) |
1225 |
*the\ am__doit\ target*) |
| 1235 |
am__include=include |
1226 |
am__include=include |
|
Lines 1256-1267
rm -f confinc confmf
Link Here
|
| 1256 |
|
1247 |
|
| 1257 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
1248 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
| 1258 |
|
1249 |
|
| 1259 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
1250 |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
|
|
1251 |
# Free Software Foundation, Inc. |
| 1260 |
# |
1252 |
# |
| 1261 |
# This file is free software; the Free Software Foundation |
1253 |
# This file is free software; the Free Software Foundation |
| 1262 |
# gives unlimited permission to copy and/or distribute it, |
1254 |
# gives unlimited permission to copy and/or distribute it, |
| 1263 |
# with or without modifications, as long as this notice is preserved. |
1255 |
# with or without modifications, as long as this notice is preserved. |
| 1264 |
|
1256 |
|
|
|
1257 |
# serial 6 |
| 1258 |
|
| 1265 |
# AM_MISSING_PROG(NAME, PROGRAM) |
1259 |
# AM_MISSING_PROG(NAME, PROGRAM) |
| 1266 |
# ------------------------------ |
1260 |
# ------------------------------ |
| 1267 |
AC_DEFUN([AM_MISSING_PROG], |
1261 |
AC_DEFUN([AM_MISSING_PROG], |
|
Lines 1269-1278
AC_DEFUN([AM_MISSING_PROG],
Link Here
|
| 1269 |
$1=${$1-"${am_missing_run}$2"} |
1263 |
$1=${$1-"${am_missing_run}$2"} |
| 1270 |
AC_SUBST($1)]) |
1264 |
AC_SUBST($1)]) |
| 1271 |
|
1265 |
|
|
|
1266 |
|
| 1272 |
# AM_MISSING_HAS_RUN |
1267 |
# AM_MISSING_HAS_RUN |
| 1273 |
# ------------------ |
1268 |
# ------------------ |
| 1274 |
# Define MISSING if not defined so far and test if it is modern enough. |
1269 |
# Define MISSING if not defined so far and test if it supports --run. |
| 1275 |
# If it is, set am_missing_run to use it, otherwise, to nothing. |
1270 |
# If it does, set am_missing_run to use it, otherwise, to nothing. |
| 1276 |
AC_DEFUN([AM_MISSING_HAS_RUN], |
1271 |
AC_DEFUN([AM_MISSING_HAS_RUN], |
| 1277 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
1272 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 1278 |
AC_REQUIRE_AUX_FILE([missing])dnl |
1273 |
AC_REQUIRE_AUX_FILE([missing])dnl |
|
Lines 1285-1319
if test x"${MISSING+set}" != xset; then
Link Here
|
| 1285 |
esac |
1280 |
esac |
| 1286 |
fi |
1281 |
fi |
| 1287 |
# Use eval to expand $SHELL |
1282 |
# Use eval to expand $SHELL |
| 1288 |
if eval "$MISSING --is-lightweight"; then |
1283 |
if eval "$MISSING --run true"; then |
| 1289 |
am_missing_run="$MISSING " |
1284 |
am_missing_run="$MISSING --run " |
| 1290 |
else |
1285 |
else |
| 1291 |
am_missing_run= |
1286 |
am_missing_run= |
| 1292 |
AC_MSG_WARN(['missing' script is too old or missing]) |
1287 |
AC_MSG_WARN([`missing' script is too old or missing]) |
| 1293 |
fi |
1288 |
fi |
| 1294 |
]) |
1289 |
]) |
| 1295 |
|
1290 |
|
|
|
1291 |
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 1292 |
# |
| 1293 |
# This file is free software; the Free Software Foundation |
| 1294 |
# gives unlimited permission to copy and/or distribute it, |
| 1295 |
# with or without modifications, as long as this notice is preserved. |
| 1296 |
|
| 1297 |
# AM_PROG_MKDIR_P |
| 1298 |
# --------------- |
| 1299 |
# Check for `mkdir -p'. |
| 1300 |
AC_DEFUN([AM_PROG_MKDIR_P], |
| 1301 |
[AC_PREREQ([2.60])dnl |
| 1302 |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 1303 |
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| 1304 |
dnl while keeping a definition of mkdir_p for backward compatibility. |
| 1305 |
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| 1306 |
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| 1307 |
dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| 1308 |
dnl adjustment using top_builddir (which is defined more often than |
| 1309 |
dnl MKDIR_P). |
| 1310 |
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| 1311 |
case $mkdir_p in |
| 1312 |
[[\\/$]]* | ?:[[\\/]]*) ;; |
| 1313 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 1314 |
esac |
| 1315 |
]) |
| 1316 |
|
| 1296 |
# Helper functions for option handling. -*- Autoconf -*- |
1317 |
# Helper functions for option handling. -*- Autoconf -*- |
| 1297 |
|
1318 |
|
| 1298 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
1319 |
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
| 1299 |
# |
1320 |
# |
| 1300 |
# This file is free software; the Free Software Foundation |
1321 |
# This file is free software; the Free Software Foundation |
| 1301 |
# gives unlimited permission to copy and/or distribute it, |
1322 |
# gives unlimited permission to copy and/or distribute it, |
| 1302 |
# with or without modifications, as long as this notice is preserved. |
1323 |
# with or without modifications, as long as this notice is preserved. |
| 1303 |
|
1324 |
|
|
|
1325 |
# serial 4 |
| 1326 |
|
| 1304 |
# _AM_MANGLE_OPTION(NAME) |
1327 |
# _AM_MANGLE_OPTION(NAME) |
| 1305 |
# ----------------------- |
1328 |
# ----------------------- |
| 1306 |
AC_DEFUN([_AM_MANGLE_OPTION], |
1329 |
AC_DEFUN([_AM_MANGLE_OPTION], |
| 1307 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
1330 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 1308 |
|
1331 |
|
| 1309 |
# _AM_SET_OPTION(NAME) |
1332 |
# _AM_SET_OPTION(NAME) |
| 1310 |
# -------------------- |
1333 |
# ------------------------------ |
| 1311 |
# Set option NAME. Presently that only means defining a flag for this option. |
1334 |
# Set option NAME. Presently that only means defining a flag for this option. |
| 1312 |
AC_DEFUN([_AM_SET_OPTION], |
1335 |
AC_DEFUN([_AM_SET_OPTION], |
| 1313 |
[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) |
1336 |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 1314 |
|
1337 |
|
| 1315 |
# _AM_SET_OPTIONS(OPTIONS) |
1338 |
# _AM_SET_OPTIONS(OPTIONS) |
| 1316 |
# ------------------------ |
1339 |
# ---------------------------------- |
| 1317 |
# OPTIONS is a space-separated list of Automake options. |
1340 |
# OPTIONS is a space-separated list of Automake options. |
| 1318 |
AC_DEFUN([_AM_SET_OPTIONS], |
1341 |
AC_DEFUN([_AM_SET_OPTIONS], |
| 1319 |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
1342 |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
|
Lines 1326-1341
AC_DEFUN([_AM_IF_OPTION],
Link Here
|
| 1326 |
|
1349 |
|
| 1327 |
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
1350 |
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 1328 |
|
1351 |
|
| 1329 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
1352 |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 |
|
|
1353 |
# Free Software Foundation, Inc. |
| 1330 |
# |
1354 |
# |
| 1331 |
# This file is free software; the Free Software Foundation |
1355 |
# This file is free software; the Free Software Foundation |
| 1332 |
# gives unlimited permission to copy and/or distribute it, |
1356 |
# gives unlimited permission to copy and/or distribute it, |
| 1333 |
# with or without modifications, as long as this notice is preserved. |
1357 |
# with or without modifications, as long as this notice is preserved. |
| 1334 |
|
1358 |
|
|
|
1359 |
# serial 5 |
| 1360 |
|
| 1335 |
# AM_SANITY_CHECK |
1361 |
# AM_SANITY_CHECK |
| 1336 |
# --------------- |
1362 |
# --------------- |
| 1337 |
AC_DEFUN([AM_SANITY_CHECK], |
1363 |
AC_DEFUN([AM_SANITY_CHECK], |
| 1338 |
[AC_MSG_CHECKING([whether build environment is sane]) |
1364 |
[AC_MSG_CHECKING([whether build environment is sane]) |
|
|
1365 |
# Just in case |
| 1366 |
sleep 1 |
| 1367 |
echo timestamp > conftest.file |
| 1339 |
# Reject unsafe characters in $srcdir or the absolute working directory |
1368 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 1340 |
# name. Accept space and tab only in the latter. |
1369 |
# name. Accept space and tab only in the latter. |
| 1341 |
am_lf=' |
1370 |
am_lf=' |
|
Lines 1346-1385
case `pwd` in
Link Here
|
| 1346 |
esac |
1375 |
esac |
| 1347 |
case $srcdir in |
1376 |
case $srcdir in |
| 1348 |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
1377 |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
| 1349 |
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; |
1378 |
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
| 1350 |
esac |
1379 |
esac |
| 1351 |
|
1380 |
|
| 1352 |
# Do 'set' in a subshell so we don't clobber the current shell's |
1381 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 1353 |
# arguments. Must try -L first in case configure is actually a |
1382 |
# arguments. Must try -L first in case configure is actually a |
| 1354 |
# symlink; some systems play weird games with the mod time of symlinks |
1383 |
# symlink; some systems play weird games with the mod time of symlinks |
| 1355 |
# (eg FreeBSD returns the mod time of the symlink's containing |
1384 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 1356 |
# directory). |
1385 |
# directory). |
| 1357 |
if ( |
1386 |
if ( |
| 1358 |
am_has_slept=no |
1387 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 1359 |
for am_try in 1 2; do |
1388 |
if test "$[*]" = "X"; then |
| 1360 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
1389 |
# -L didn't work. |
| 1361 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
1390 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 1362 |
if test "$[*]" = "X"; then |
1391 |
fi |
| 1363 |
# -L didn't work. |
1392 |
rm -f conftest.file |
| 1364 |
set X `ls -t "$srcdir/configure" conftest.file` |
1393 |
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 1365 |
fi |
1394 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 1366 |
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
1395 |
|
| 1367 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
1396 |
# If neither matched, then we have a broken ls. This can happen |
| 1368 |
|
1397 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1369 |
# If neither matched, then we have a broken ls. This can happen |
1398 |
# broken ls alias from the environment. This has actually |
| 1370 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
1399 |
# happened. Such a system could not be considered "sane". |
| 1371 |
# broken ls alias from the environment. This has actually |
1400 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 1372 |
# happened. Such a system could not be considered "sane". |
1401 |
alias in your environment]) |
| 1373 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
1402 |
fi |
| 1374 |
alias in your environment]) |
1403 |
|
| 1375 |
fi |
|
|
| 1376 |
if test "$[2]" = conftest.file || test $am_try -eq 2; then |
| 1377 |
break |
| 1378 |
fi |
| 1379 |
# Just in case. |
| 1380 |
sleep 1 |
| 1381 |
am_has_slept=yes |
| 1382 |
done |
| 1383 |
test "$[2]" = conftest.file |
1404 |
test "$[2]" = conftest.file |
| 1384 |
) |
1405 |
) |
| 1385 |
then |
1406 |
then |
|
Lines 1389-1473
else
Link Here
|
| 1389 |
AC_MSG_ERROR([newly created file is older than distributed files! |
1410 |
AC_MSG_ERROR([newly created file is older than distributed files! |
| 1390 |
Check your system clock]) |
1411 |
Check your system clock]) |
| 1391 |
fi |
1412 |
fi |
| 1392 |
AC_MSG_RESULT([yes]) |
1413 |
AC_MSG_RESULT(yes)]) |
| 1393 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
|
|
| 1394 |
# generated files are strictly newer. |
| 1395 |
am_sleep_pid= |
| 1396 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 1397 |
( sleep 1 ) & |
| 1398 |
am_sleep_pid=$! |
| 1399 |
fi |
| 1400 |
AC_CONFIG_COMMANDS_PRE( |
| 1401 |
[AC_MSG_CHECKING([that generated files are newer than configure]) |
| 1402 |
if test -n "$am_sleep_pid"; then |
| 1403 |
# Hide warnings about reused PIDs. |
| 1404 |
wait $am_sleep_pid 2>/dev/null |
| 1405 |
fi |
| 1406 |
AC_MSG_RESULT([done])]) |
| 1407 |
rm -f conftest.file |
| 1408 |
]) |
| 1409 |
|
| 1410 |
# Copyright (C) 2009-2013 Free Software Foundation, Inc. |
| 1411 |
# |
| 1412 |
# This file is free software; the Free Software Foundation |
| 1413 |
# gives unlimited permission to copy and/or distribute it, |
| 1414 |
# with or without modifications, as long as this notice is preserved. |
| 1415 |
|
| 1416 |
# AM_SILENT_RULES([DEFAULT]) |
| 1417 |
# -------------------------- |
| 1418 |
# Enable less verbose build rules; with the default set to DEFAULT |
| 1419 |
# ("yes" being less verbose, "no" or empty being verbose). |
| 1420 |
AC_DEFUN([AM_SILENT_RULES], |
| 1421 |
[AC_ARG_ENABLE([silent-rules], [dnl |
| 1422 |
AS_HELP_STRING( |
| 1423 |
[--enable-silent-rules], |
| 1424 |
[less verbose build output (undo: "make V=1")]) |
| 1425 |
AS_HELP_STRING( |
| 1426 |
[--disable-silent-rules], |
| 1427 |
[verbose build output (undo: "make V=0")])dnl |
| 1428 |
]) |
| 1429 |
case $enable_silent_rules in @%:@ ((( |
| 1430 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 1431 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 1432 |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; |
| 1433 |
esac |
| 1434 |
dnl |
| 1435 |
dnl A few 'make' implementations (e.g., NonStop OS and NextStep) |
| 1436 |
dnl do not support nested variable expansions. |
| 1437 |
dnl See automake bug#9928 and bug#10237. |
| 1438 |
am_make=${MAKE-make} |
| 1439 |
AC_CACHE_CHECK([whether $am_make supports nested variables], |
| 1440 |
[am_cv_make_support_nested_variables], |
| 1441 |
[if AS_ECHO([['TRUE=$(BAR$(V)) |
| 1442 |
BAR0=false |
| 1443 |
BAR1=true |
| 1444 |
V=1 |
| 1445 |
am__doit: |
| 1446 |
@$(TRUE) |
| 1447 |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then |
| 1448 |
am_cv_make_support_nested_variables=yes |
| 1449 |
else |
| 1450 |
am_cv_make_support_nested_variables=no |
| 1451 |
fi]) |
| 1452 |
if test $am_cv_make_support_nested_variables = yes; then |
| 1453 |
dnl Using '$V' instead of '$(V)' breaks IRIX make. |
| 1454 |
AM_V='$(V)' |
| 1455 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 1456 |
else |
| 1457 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 1458 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 1459 |
fi |
| 1460 |
AC_SUBST([AM_V])dnl |
| 1461 |
AM_SUBST_NOTMAKE([AM_V])dnl |
| 1462 |
AC_SUBST([AM_DEFAULT_V])dnl |
| 1463 |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl |
| 1464 |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl |
| 1465 |
AM_BACKSLASH='\' |
| 1466 |
AC_SUBST([AM_BACKSLASH])dnl |
| 1467 |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
| 1468 |
]) |
| 1469 |
|
1414 |
|
| 1470 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
1415 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 1471 |
# |
1416 |
# |
| 1472 |
# This file is free software; the Free Software Foundation |
1417 |
# This file is free software; the Free Software Foundation |
| 1473 |
# gives unlimited permission to copy and/or distribute it, |
1418 |
# gives unlimited permission to copy and/or distribute it, |
|
Lines 1475-1506
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Link Here
|
| 1475 |
|
1420 |
|
| 1476 |
# AM_PROG_INSTALL_STRIP |
1421 |
# AM_PROG_INSTALL_STRIP |
| 1477 |
# --------------------- |
1422 |
# --------------------- |
| 1478 |
# One issue with vendor 'install' (even GNU) is that you can't |
1423 |
# One issue with vendor `install' (even GNU) is that you can't |
| 1479 |
# specify the program used to strip binaries. This is especially |
1424 |
# specify the program used to strip binaries. This is especially |
| 1480 |
# annoying in cross-compiling environments, where the build's strip |
1425 |
# annoying in cross-compiling environments, where the build's strip |
| 1481 |
# is unlikely to handle the host's binaries. |
1426 |
# is unlikely to handle the host's binaries. |
| 1482 |
# Fortunately install-sh will honor a STRIPPROG variable, so we |
1427 |
# Fortunately install-sh will honor a STRIPPROG variable, so we |
| 1483 |
# always use install-sh in "make install-strip", and initialize |
1428 |
# always use install-sh in `make install-strip', and initialize |
| 1484 |
# STRIPPROG with the value of the STRIP variable (set by the user). |
1429 |
# STRIPPROG with the value of the STRIP variable (set by the user). |
| 1485 |
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
1430 |
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 1486 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
1431 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 1487 |
# Installed binaries are usually stripped using 'strip' when the user |
1432 |
# Installed binaries are usually stripped using `strip' when the user |
| 1488 |
# run "make install-strip". However 'strip' might not be the right |
1433 |
# run `make install-strip'. However `strip' might not be the right |
| 1489 |
# tool to use in cross-compilation environments, therefore Automake |
1434 |
# tool to use in cross-compilation environments, therefore Automake |
| 1490 |
# will honor the 'STRIP' environment variable to overrule this program. |
1435 |
# will honor the `STRIP' environment variable to overrule this program. |
| 1491 |
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. |
1436 |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
| 1492 |
if test "$cross_compiling" != no; then |
1437 |
if test "$cross_compiling" != no; then |
| 1493 |
AC_CHECK_TOOL([STRIP], [strip], :) |
1438 |
AC_CHECK_TOOL([STRIP], [strip], :) |
| 1494 |
fi |
1439 |
fi |
| 1495 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1440 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 1496 |
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1441 |
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 1497 |
|
1442 |
|
| 1498 |
# Copyright (C) 2006-2013 Free Software Foundation, Inc. |
1443 |
# Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
| 1499 |
# |
1444 |
# |
| 1500 |
# This file is free software; the Free Software Foundation |
1445 |
# This file is free software; the Free Software Foundation |
| 1501 |
# gives unlimited permission to copy and/or distribute it, |
1446 |
# gives unlimited permission to copy and/or distribute it, |
| 1502 |
# with or without modifications, as long as this notice is preserved. |
1447 |
# with or without modifications, as long as this notice is preserved. |
| 1503 |
|
1448 |
|
|
|
1449 |
# serial 2 |
| 1450 |
|
| 1504 |
# _AM_SUBST_NOTMAKE(VARIABLE) |
1451 |
# _AM_SUBST_NOTMAKE(VARIABLE) |
| 1505 |
# --------------------------- |
1452 |
# --------------------------- |
| 1506 |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
1453 |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
|
Lines 1508-1529
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Link Here
|
| 1508 |
AC_DEFUN([_AM_SUBST_NOTMAKE]) |
1455 |
AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| 1509 |
|
1456 |
|
| 1510 |
# AM_SUBST_NOTMAKE(VARIABLE) |
1457 |
# AM_SUBST_NOTMAKE(VARIABLE) |
| 1511 |
# -------------------------- |
1458 |
# --------------------------- |
| 1512 |
# Public sister of _AM_SUBST_NOTMAKE. |
1459 |
# Public sister of _AM_SUBST_NOTMAKE. |
| 1513 |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
1460 |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
| 1514 |
|
1461 |
|
| 1515 |
# Check how to create a tarball. -*- Autoconf -*- |
1462 |
# Check how to create a tarball. -*- Autoconf -*- |
| 1516 |
|
1463 |
|
| 1517 |
# Copyright (C) 2004-2013 Free Software Foundation, Inc. |
1464 |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| 1518 |
# |
1465 |
# |
| 1519 |
# This file is free software; the Free Software Foundation |
1466 |
# This file is free software; the Free Software Foundation |
| 1520 |
# gives unlimited permission to copy and/or distribute it, |
1467 |
# gives unlimited permission to copy and/or distribute it, |
| 1521 |
# with or without modifications, as long as this notice is preserved. |
1468 |
# with or without modifications, as long as this notice is preserved. |
| 1522 |
|
1469 |
|
|
|
1470 |
# serial 2 |
| 1471 |
|
| 1523 |
# _AM_PROG_TAR(FORMAT) |
1472 |
# _AM_PROG_TAR(FORMAT) |
| 1524 |
# -------------------- |
1473 |
# -------------------- |
| 1525 |
# Check how to create a tarball in format FORMAT. |
1474 |
# Check how to create a tarball in format FORMAT. |
| 1526 |
# FORMAT should be one of 'v7', 'ustar', or 'pax'. |
1475 |
# FORMAT should be one of `v7', `ustar', or `pax'. |
| 1527 |
# |
1476 |
# |
| 1528 |
# Substitute a variable $(am__tar) that is a command |
1477 |
# Substitute a variable $(am__tar) that is a command |
| 1529 |
# writing to stdout a FORMAT-tarball containing the directory |
1478 |
# writing to stdout a FORMAT-tarball containing the directory |
|
Lines 1533-1646
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Link Here
|
| 1533 |
# Substitute a variable $(am__untar) that extract such |
1482 |
# Substitute a variable $(am__untar) that extract such |
| 1534 |
# a tarball read from stdin. |
1483 |
# a tarball read from stdin. |
| 1535 |
# $(am__untar) < result.tar |
1484 |
# $(am__untar) < result.tar |
| 1536 |
# |
|
|
| 1537 |
AC_DEFUN([_AM_PROG_TAR], |
1485 |
AC_DEFUN([_AM_PROG_TAR], |
| 1538 |
[# Always define AMTAR for backward compatibility. Yes, it's still used |
1486 |
[# Always define AMTAR for backward compatibility. |
| 1539 |
# in the wild :-( We should find a proper way to deprecate it ... |
1487 |
AM_MISSING_PROG([AMTAR], [tar]) |
| 1540 |
AC_SUBST([AMTAR], ['$${TAR-tar}']) |
1488 |
m4_if([$1], [v7], |
| 1541 |
|
1489 |
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
| 1542 |
# We'll loop over all known methods to create a tar archive until one works. |
1490 |
[m4_case([$1], [ustar],, [pax],, |
|
|
1491 |
[m4_fatal([Unknown tar format])]) |
| 1492 |
AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 1493 |
# Loop over all known methods to create a tar archive until one works. |
| 1543 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
1494 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|
|
1495 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 1496 |
# Do not fold the above two line into one, because Tru64 sh and |
| 1497 |
# Solaris sh will not grok spaces in the rhs of `-'. |
| 1498 |
for _am_tool in $_am_tools |
| 1499 |
do |
| 1500 |
case $_am_tool in |
| 1501 |
gnutar) |
| 1502 |
for _am_tar in tar gnutar gtar; |
| 1503 |
do |
| 1504 |
AM_RUN_LOG([$_am_tar --version]) && break |
| 1505 |
done |
| 1506 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
| 1507 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
| 1508 |
am__untar="$_am_tar -xf -" |
| 1509 |
;; |
| 1510 |
plaintar) |
| 1511 |
# Must skip GNU tar: if it does not support --format= it doesn't create |
| 1512 |
# ustar tarball either. |
| 1513 |
(tar --version) >/dev/null 2>&1 && continue |
| 1514 |
am__tar='tar chf - "$$tardir"' |
| 1515 |
am__tar_='tar chf - "$tardir"' |
| 1516 |
am__untar='tar xf -' |
| 1517 |
;; |
| 1518 |
pax) |
| 1519 |
am__tar='pax -L -x $1 -w "$$tardir"' |
| 1520 |
am__tar_='pax -L -x $1 -w "$tardir"' |
| 1521 |
am__untar='pax -r' |
| 1522 |
;; |
| 1523 |
cpio) |
| 1524 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 1525 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 1526 |
am__untar='cpio -i -H $1 -d' |
| 1527 |
;; |
| 1528 |
none) |
| 1529 |
am__tar=false |
| 1530 |
am__tar_=false |
| 1531 |
am__untar=false |
| 1532 |
;; |
| 1533 |
esac |
| 1544 |
|
1534 |
|
| 1545 |
m4_if([$1], [v7], |
1535 |
# If the value was cached, stop now. We just wanted to have am__tar |
| 1546 |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
1536 |
# and am__untar set. |
| 1547 |
|
1537 |
test -n "${am_cv_prog_tar_$1}" && break |
| 1548 |
[m4_case([$1], |
|
|
| 1549 |
[ustar], |
| 1550 |
[# The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 1551 |
# There is notably a 21 bits limit for the UID and the GID. In fact, |
| 1552 |
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 1553 |
# and bug#13588). |
| 1554 |
am_max_uid=2097151 # 2^21 - 1 |
| 1555 |
am_max_gid=$am_max_uid |
| 1556 |
# The $UID and $GID variables are not portable, so we need to resort |
| 1557 |
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 1558 |
# below are definitely unexpected, so allow the users to see them |
| 1559 |
# (that is, avoid stderr redirection). |
| 1560 |
am_uid=`id -u || echo unknown` |
| 1561 |
am_gid=`id -g || echo unknown` |
| 1562 |
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) |
| 1563 |
if test $am_uid -le $am_max_uid; then |
| 1564 |
AC_MSG_RESULT([yes]) |
| 1565 |
else |
| 1566 |
AC_MSG_RESULT([no]) |
| 1567 |
_am_tools=none |
| 1568 |
fi |
| 1569 |
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) |
| 1570 |
if test $am_gid -le $am_max_gid; then |
| 1571 |
AC_MSG_RESULT([yes]) |
| 1572 |
else |
| 1573 |
AC_MSG_RESULT([no]) |
| 1574 |
_am_tools=none |
| 1575 |
fi], |
| 1576 |
|
| 1577 |
[pax], |
| 1578 |
[], |
| 1579 |
|
| 1580 |
[m4_fatal([Unknown tar format])]) |
| 1581 |
|
| 1582 |
AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 1583 |
|
| 1584 |
# Go ahead even if we have the value already cached. We do so because we |
| 1585 |
# need to set the values for the 'am__tar' and 'am__untar' variables. |
| 1586 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 1587 |
|
| 1588 |
for _am_tool in $_am_tools; do |
| 1589 |
case $_am_tool in |
| 1590 |
gnutar) |
| 1591 |
for _am_tar in tar gnutar gtar; do |
| 1592 |
AM_RUN_LOG([$_am_tar --version]) && break |
| 1593 |
done |
| 1594 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
| 1595 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
| 1596 |
am__untar="$_am_tar -xf -" |
| 1597 |
;; |
| 1598 |
plaintar) |
| 1599 |
# Must skip GNU tar: if it does not support --format= it doesn't create |
| 1600 |
# ustar tarball either. |
| 1601 |
(tar --version) >/dev/null 2>&1 && continue |
| 1602 |
am__tar='tar chf - "$$tardir"' |
| 1603 |
am__tar_='tar chf - "$tardir"' |
| 1604 |
am__untar='tar xf -' |
| 1605 |
;; |
| 1606 |
pax) |
| 1607 |
am__tar='pax -L -x $1 -w "$$tardir"' |
| 1608 |
am__tar_='pax -L -x $1 -w "$tardir"' |
| 1609 |
am__untar='pax -r' |
| 1610 |
;; |
| 1611 |
cpio) |
| 1612 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 1613 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 1614 |
am__untar='cpio -i -H $1 -d' |
| 1615 |
;; |
| 1616 |
none) |
| 1617 |
am__tar=false |
| 1618 |
am__tar_=false |
| 1619 |
am__untar=false |
| 1620 |
;; |
| 1621 |
esac |
| 1622 |
|
1538 |
|
| 1623 |
# If the value was cached, stop now. We just wanted to have am__tar |
1539 |
# tar/untar a dummy directory, and stop if the command works |
| 1624 |
# and am__untar set. |
|
|
| 1625 |
test -n "${am_cv_prog_tar_$1}" && break |
| 1626 |
|
| 1627 |
# tar/untar a dummy directory, and stop if the command works. |
| 1628 |
rm -rf conftest.dir |
| 1629 |
mkdir conftest.dir |
| 1630 |
echo GrepMe > conftest.dir/file |
| 1631 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 1632 |
rm -rf conftest.dir |
| 1633 |
if test -s conftest.tar; then |
| 1634 |
AM_RUN_LOG([$am__untar <conftest.tar]) |
| 1635 |
AM_RUN_LOG([cat conftest.dir/file]) |
| 1636 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 1637 |
fi |
| 1638 |
done |
| 1639 |
rm -rf conftest.dir |
1540 |
rm -rf conftest.dir |
|
|
1541 |
mkdir conftest.dir |
| 1542 |
echo GrepMe > conftest.dir/file |
| 1543 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 1544 |
rm -rf conftest.dir |
| 1545 |
if test -s conftest.tar; then |
| 1546 |
AM_RUN_LOG([$am__untar <conftest.tar]) |
| 1547 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 1548 |
fi |
| 1549 |
done |
| 1550 |
rm -rf conftest.dir |
| 1640 |
|
1551 |
|
| 1641 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
1552 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
| 1642 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
1553 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
| 1643 |
|
|
|
| 1644 |
AC_SUBST([am__tar]) |
1554 |
AC_SUBST([am__tar]) |
| 1645 |
AC_SUBST([am__untar]) |
1555 |
AC_SUBST([am__untar]) |
| 1646 |
]) # _AM_PROG_TAR |
1556 |
]) # _AM_PROG_TAR |