Mercurial > hg > CbC > CbC_gcc
comparison libssp/aclocal.m4 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, |
5 # Inc. | |
5 # This file is free software; the Free Software Foundation | 6 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 7 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 8 # with or without modifications, as long as this notice is preserved. |
8 | 9 |
9 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
17 [m4_warning([this file was generated for autoconf 2.64. | 18 [m4_warning([this file was generated for autoconf 2.64. |
18 You have another version of autoconf. It may work, but is not guaranteed to. | 19 You have another version of autoconf. It may work, but is not guaranteed to. |
19 If you have problems, you may need to regenerate the build system entirely. | 20 If you have problems, you may need to regenerate the build system entirely. |
20 To do so, use the procedure documented by the package, typically `autoreconf'.])]) | 21 To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
21 | 22 |
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 23 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software |
23 # | 24 # Foundation, Inc. |
24 # This file is free software; the Free Software Foundation | 25 # |
25 # gives unlimited permission to copy and/or distribute it, | 26 # This file is free software; the Free Software Foundation |
26 # with or without modifications, as long as this notice is preserved. | 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 | |
27 | 31 |
28 # AM_AUTOMAKE_VERSION(VERSION) | 32 # AM_AUTOMAKE_VERSION(VERSION) |
29 # ---------------------------- | 33 # ---------------------------- |
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 34 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
31 # generated from the m4 files accompanying Automake X.Y. | 35 # generated from the m4 files accompanying Automake X.Y. |
32 # (This private macro should not be called outside this file.) | 36 # (This private macro should not be called outside this file.) |
33 AC_DEFUN([AM_AUTOMAKE_VERSION], | 37 AC_DEFUN([AM_AUTOMAKE_VERSION], |
34 [am__api_version='1.11' | 38 [am__api_version='1.11' |
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | 39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
36 dnl require some minimum version. Point them to the right macro. | 40 dnl require some minimum version. Point them to the right macro. |
37 m4_if([$1], [1.11.1], [], | 41 m4_if([$1], [1.11.6], [], |
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | 42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
39 ]) | 43 ]) |
40 | 44 |
41 # _AM_AUTOCONF_VERSION(VERSION) | 45 # _AM_AUTOCONF_VERSION(VERSION) |
42 # ----------------------------- | 46 # ----------------------------- |
48 # AM_SET_CURRENT_AUTOMAKE_VERSION | 52 # AM_SET_CURRENT_AUTOMAKE_VERSION |
49 # ------------------------------- | 53 # ------------------------------- |
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | 54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | 55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
53 [AM_AUTOMAKE_VERSION([1.11.1])dnl | 57 [AM_AUTOMAKE_VERSION([1.11.6])dnl |
54 m4_ifndef([AC_AUTOCONF_VERSION], | 58 m4_ifndef([AC_AUTOCONF_VERSION], |
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | 60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
57 | 61 |
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*- | 62 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
59 | 63 |
60 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | 64 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. |
61 # | 65 # |
62 # This file is free software; the Free Software Foundation | 66 # This file is free software; the Free Software Foundation |
63 # gives unlimited permission to copy and/or distribute it, | 67 # gives unlimited permission to copy and/or distribute it, |
64 # with or without modifications, as long as this notice is preserved. | 68 # with or without modifications, as long as this notice is preserved. |
69 | |
70 # serial 1 | |
65 | 71 |
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | 72 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
67 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | 73 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
68 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | 74 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
69 # | 75 # |
142 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | 148 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
143 AC_MSG_ERROR([[conditional "$1" was never defined. | 149 AC_MSG_ERROR([[conditional "$1" was never defined. |
144 Usually this means the macro was only invoked conditionally.]]) | 150 Usually this means the macro was only invoked conditionally.]]) |
145 fi])]) | 151 fi])]) |
146 | 152 |
147 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | 153 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, |
148 # Free Software Foundation, Inc. | 154 # 2010, 2011 Free Software Foundation, Inc. |
149 # | 155 # |
150 # This file is free software; the Free Software Foundation | 156 # This file is free software; the Free Software Foundation |
151 # gives unlimited permission to copy and/or distribute it, | 157 # gives unlimited permission to copy and/or distribute it, |
152 # with or without modifications, as long as this notice is preserved. | 158 # with or without modifications, as long as this notice is preserved. |
153 | 159 |
154 # serial 10 | 160 # serial 12 |
155 | 161 |
156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | 162 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
157 # written in clear, in which case automake, when reading aclocal.m4, | 163 # written in clear, in which case automake, when reading aclocal.m4, |
158 # will think it sees a *use*, and therefore will trigger all it's | 164 # will think it sees a *use*, and therefore will trigger all it's |
159 # C support machinery. Also note that it means that autoscan, seeing | 165 # C support machinery. Also note that it means that autoscan, seeing |
189 # We make a subdir and do the tests there. Otherwise we can end up | 195 # We make a subdir and do the tests there. Otherwise we can end up |
190 # making bogus files that we don't know about and never remove. For | 196 # making bogus files that we don't know about and never remove. For |
191 # instance it was reported that on HP-UX the gcc test will end up | 197 # instance it was reported that on HP-UX the gcc test will end up |
192 # making a dummy file named `D' -- because `-MD' means `put the output | 198 # making a dummy file named `D' -- because `-MD' means `put the output |
193 # in D'. | 199 # in D'. |
200 rm -rf conftest.dir | |
194 mkdir conftest.dir | 201 mkdir conftest.dir |
195 # Copy depcomp to subdir because otherwise we won't find it if we're | 202 # Copy depcomp to subdir because otherwise we won't find it if we're |
196 # using a relative directory. | 203 # using a relative directory. |
197 cp "$am_depcomp" conftest.dir | 204 cp "$am_depcomp" conftest.dir |
198 cd conftest.dir | 205 cd conftest.dir |
253 continue | 260 continue |
254 else | 261 else |
255 break | 262 break |
256 fi | 263 fi |
257 ;; | 264 ;; |
258 msvisualcpp | msvcmsys) | 265 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
259 # This compiler won't grok `-c -o', but also, the minuso test has | 266 # This compiler won't grok `-c -o', but also, the minuso test has |
260 # not run yet. These depmodes are late enough in the game, and | 267 # not run yet. These depmodes are late enough in the game, and |
261 # so weak that their functioning should not be impacted. | 268 # so weak that their functioning should not be impacted. |
262 am__obj=conftest.${OBJEXT-o} | 269 am__obj=conftest.${OBJEXT-o} |
263 am__minus_obj= | 270 am__minus_obj= |
318 [ --disable-dependency-tracking speeds up one-time build | 325 [ --disable-dependency-tracking speeds up one-time build |
319 --enable-dependency-tracking do not reject slow dependency extractors]) | 326 --enable-dependency-tracking do not reject slow dependency extractors]) |
320 if test "x$enable_dependency_tracking" != xno; then | 327 if test "x$enable_dependency_tracking" != xno; then |
321 am_depcomp="$ac_aux_dir/depcomp" | 328 am_depcomp="$ac_aux_dir/depcomp" |
322 AMDEPBACKSLASH='\' | 329 AMDEPBACKSLASH='\' |
330 am__nodep='_no' | |
323 fi | 331 fi |
324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | 332 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
325 AC_SUBST([AMDEPBACKSLASH])dnl | 333 AC_SUBST([AMDEPBACKSLASH])dnl |
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | 334 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
335 AC_SUBST([am__nodep])dnl | |
336 _AM_SUBST_NOTMAKE([am__nodep])dnl | |
327 ]) | 337 ]) |
328 | 338 |
329 # Generate code to set up dependency tracking. -*- Autoconf -*- | 339 # Generate code to set up dependency tracking. -*- Autoconf -*- |
330 | 340 |
331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | 341 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
543 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 553 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
544 esac | 554 esac |
545 done | 555 done |
546 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | 556 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
547 | 557 |
548 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | 558 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, |
549 # | 559 # Inc. |
550 # This file is free software; the Free Software Foundation | 560 # |
551 # gives unlimited permission to copy and/or distribute it, | 561 # This file is free software; the Free Software Foundation |
552 # with or without modifications, as long as this notice is preserved. | 562 # gives unlimited permission to copy and/or distribute it, |
563 # with or without modifications, as long as this notice is preserved. | |
564 | |
565 # serial 1 | |
553 | 566 |
554 # AM_PROG_INSTALL_SH | 567 # AM_PROG_INSTALL_SH |
555 # ------------------ | 568 # ------------------ |
556 # Define $install_sh. | 569 # Define $install_sh. |
557 AC_DEFUN([AM_PROG_INSTALL_SH], | 570 AC_DEFUN([AM_PROG_INSTALL_SH], |
567 AC_SUBST(install_sh)]) | 580 AC_SUBST(install_sh)]) |
568 | 581 |
569 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | 582 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
570 # From Jim Meyering | 583 # From Jim Meyering |
571 | 584 |
572 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | 585 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, |
573 # Free Software Foundation, Inc. | 586 # 2011 Free Software Foundation, Inc. |
574 # | 587 # |
575 # This file is free software; the Free Software Foundation | 588 # This file is free software; the Free Software Foundation |
576 # gives unlimited permission to copy and/or distribute it, | 589 # gives unlimited permission to copy and/or distribute it, |
577 # with or without modifications, as long as this notice is preserved. | 590 # with or without modifications, as long as this notice is preserved. |
578 | 591 |
588 [m4_case(m4_default([$1], [disable]), | 601 [m4_case(m4_default([$1], [disable]), |
589 [enable], [m4_define([am_maintainer_other], [disable])], | 602 [enable], [m4_define([am_maintainer_other], [disable])], |
590 [disable], [m4_define([am_maintainer_other], [enable])], | 603 [disable], [m4_define([am_maintainer_other], [enable])], |
591 [m4_define([am_maintainer_other], [enable]) | 604 [m4_define([am_maintainer_other], [enable]) |
592 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | 605 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
593 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | 606 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
594 dnl maintainer-mode's default is 'disable' unless 'enable' is passed | 607 dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
595 AC_ARG_ENABLE([maintainer-mode], | 608 AC_ARG_ENABLE([maintainer-mode], |
596 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | 609 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful |
597 (and sometimes confusing) to the casual installer], | 610 (and sometimes confusing) to the casual installer], |
598 [USE_MAINTAINER_MODE=$enableval], | 611 [USE_MAINTAINER_MODE=$enableval], |
699 am_missing_run= | 712 am_missing_run= |
700 AC_MSG_WARN([`missing' script is too old or missing]) | 713 AC_MSG_WARN([`missing' script is too old or missing]) |
701 fi | 714 fi |
702 ]) | 715 ]) |
703 | 716 |
704 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 717 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, |
705 # | 718 # Inc. |
706 # This file is free software; the Free Software Foundation | 719 # |
707 # gives unlimited permission to copy and/or distribute it, | 720 # This file is free software; the Free Software Foundation |
708 # with or without modifications, as long as this notice is preserved. | 721 # gives unlimited permission to copy and/or distribute it, |
722 # with or without modifications, as long as this notice is preserved. | |
723 | |
724 # serial 1 | |
709 | 725 |
710 # AM_PROG_MKDIR_P | 726 # AM_PROG_MKDIR_P |
711 # --------------- | 727 # --------------- |
712 # Check for `mkdir -p'. | 728 # Check for `mkdir -p'. |
713 AC_DEFUN([AM_PROG_MKDIR_P], | 729 AC_DEFUN([AM_PROG_MKDIR_P], |
727 esac | 743 esac |
728 ]) | 744 ]) |
729 | 745 |
730 # Helper functions for option handling. -*- Autoconf -*- | 746 # Helper functions for option handling. -*- Autoconf -*- |
731 | 747 |
732 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | 748 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software |
733 # | 749 # Foundation, Inc. |
734 # This file is free software; the Free Software Foundation | 750 # |
735 # gives unlimited permission to copy and/or distribute it, | 751 # This file is free software; the Free Software Foundation |
736 # with or without modifications, as long as this notice is preserved. | 752 # gives unlimited permission to copy and/or distribute it, |
737 | 753 # with or without modifications, as long as this notice is preserved. |
738 # serial 4 | 754 |
755 # serial 5 | |
739 | 756 |
740 # _AM_MANGLE_OPTION(NAME) | 757 # _AM_MANGLE_OPTION(NAME) |
741 # ----------------------- | 758 # ----------------------- |
742 AC_DEFUN([_AM_MANGLE_OPTION], | 759 AC_DEFUN([_AM_MANGLE_OPTION], |
743 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | 760 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
744 | 761 |
745 # _AM_SET_OPTION(NAME) | 762 # _AM_SET_OPTION(NAME) |
746 # ------------------------------ | 763 # -------------------- |
747 # Set option NAME. Presently that only means defining a flag for this option. | 764 # Set option NAME. Presently that only means defining a flag for this option. |
748 AC_DEFUN([_AM_SET_OPTION], | 765 AC_DEFUN([_AM_SET_OPTION], |
749 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | 766 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
750 | 767 |
751 # _AM_SET_OPTIONS(OPTIONS) | 768 # _AM_SET_OPTIONS(OPTIONS) |
752 # ---------------------------------- | 769 # ------------------------ |
753 # OPTIONS is a space-separated list of Automake options. | 770 # OPTIONS is a space-separated list of Automake options. |
754 AC_DEFUN([_AM_SET_OPTIONS], | 771 AC_DEFUN([_AM_SET_OPTIONS], |
755 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | 772 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
756 | 773 |
757 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | 774 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
823 AC_MSG_ERROR([newly created file is older than distributed files! | 840 AC_MSG_ERROR([newly created file is older than distributed files! |
824 Check your system clock]) | 841 Check your system clock]) |
825 fi | 842 fi |
826 AC_MSG_RESULT(yes)]) | 843 AC_MSG_RESULT(yes)]) |
827 | 844 |
828 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | 845 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. |
829 # | 846 # |
830 # This file is free software; the Free Software Foundation | 847 # This file is free software; the Free Software Foundation |
831 # gives unlimited permission to copy and/or distribute it, | 848 # gives unlimited permission to copy and/or distribute it, |
832 # with or without modifications, as long as this notice is preserved. | 849 # with or without modifications, as long as this notice is preserved. |
850 | |
851 # serial 1 | |
833 | 852 |
834 # AM_PROG_INSTALL_STRIP | 853 # AM_PROG_INSTALL_STRIP |
835 # --------------------- | 854 # --------------------- |
836 # One issue with vendor `install' (even GNU) is that you can't | 855 # One issue with vendor `install' (even GNU) is that you can't |
837 # specify the program used to strip binaries. This is especially | 856 # specify the program used to strip binaries. This is especially |
851 AC_CHECK_TOOL([STRIP], [strip], :) | 870 AC_CHECK_TOOL([STRIP], [strip], :) |
852 fi | 871 fi |
853 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 872 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
854 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 873 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
855 | 874 |
856 # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | 875 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. |
857 # | 876 # |
858 # This file is free software; the Free Software Foundation | 877 # This file is free software; the Free Software Foundation |
859 # gives unlimited permission to copy and/or distribute it, | 878 # gives unlimited permission to copy and/or distribute it, |
860 # with or without modifications, as long as this notice is preserved. | 879 # with or without modifications, as long as this notice is preserved. |
861 | 880 |
862 # serial 2 | 881 # serial 3 |
863 | 882 |
864 # _AM_SUBST_NOTMAKE(VARIABLE) | 883 # _AM_SUBST_NOTMAKE(VARIABLE) |
865 # --------------------------- | 884 # --------------------------- |
866 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | 885 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
867 # This macro is traced by Automake. | 886 # This macro is traced by Automake. |
868 AC_DEFUN([_AM_SUBST_NOTMAKE]) | 887 AC_DEFUN([_AM_SUBST_NOTMAKE]) |
869 | 888 |
870 # AM_SUBST_NOTMAKE(VARIABLE) | 889 # AM_SUBST_NOTMAKE(VARIABLE) |
871 # --------------------------- | 890 # -------------------------- |
872 # Public sister of _AM_SUBST_NOTMAKE. | 891 # Public sister of _AM_SUBST_NOTMAKE. |
873 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | 892 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
874 | 893 |
875 # Check how to create a tarball. -*- Autoconf -*- | 894 # Check how to create a tarball. -*- Autoconf -*- |
876 | 895 |
877 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | 896 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. |
878 # | 897 # |
879 # This file is free software; the Free Software Foundation | 898 # This file is free software; the Free Software Foundation |
880 # gives unlimited permission to copy and/or distribute it, | 899 # gives unlimited permission to copy and/or distribute it, |
881 # with or without modifications, as long as this notice is preserved. | 900 # with or without modifications, as long as this notice is preserved. |
882 | 901 |
894 # | 913 # |
895 # Substitute a variable $(am__untar) that extract such | 914 # Substitute a variable $(am__untar) that extract such |
896 # a tarball read from stdin. | 915 # a tarball read from stdin. |
897 # $(am__untar) < result.tar | 916 # $(am__untar) < result.tar |
898 AC_DEFUN([_AM_PROG_TAR], | 917 AC_DEFUN([_AM_PROG_TAR], |
899 [# Always define AMTAR for backward compatibility. | 918 [# Always define AMTAR for backward compatibility. Yes, it's still used |
900 AM_MISSING_PROG([AMTAR], [tar]) | 919 # in the wild :-( We should find a proper way to deprecate it ... |
920 AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
901 m4_if([$1], [v7], | 921 m4_if([$1], [v7], |
902 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | 922 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
903 [m4_case([$1], [ustar],, [pax],, | 923 [m4_case([$1], [ustar],, [pax],, |
904 [m4_fatal([Unknown tar format])]) | 924 [m4_fatal([Unknown tar format])]) |
905 AC_MSG_CHECKING([how to create a $1 tar archive]) | 925 AC_MSG_CHECKING([how to create a $1 tar archive]) |
906 # Loop over all known methods to create a tar archive until one works. | 926 # Loop over all known methods to create a tar archive until one works. |
907 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | 927 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |