New upstream version 1.24
Jeremy Bicha
1 year, 8 months ago
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
237 | 237 | unique=`for i in $$list; do \ |
238 | 238 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
239 | 239 | done | $(am__uniquify_input)` |
240 | ETAGS = etags | |
241 | CTAGS = ctags | |
242 | CSCOPE = cscope | |
243 | 240 | DIST_SUBDIRS = $(SUBDIRS) |
244 | 241 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
245 | 242 | $(srcdir)/virt-what.in COPYING README compile config.guess \ |
282 | 279 | DIST_ARCHIVES = $(distdir).tar.gz |
283 | 280 | GZIP_ENV = --best |
284 | 281 | DIST_TARGETS = dist-gzip |
282 | # Exists only to be overridden by the user if desired. | |
283 | AM_DISTCHECK_DVI_TARGET = dvi | |
285 | 284 | distuninstallcheck_listfiles = find . -type f -print |
286 | 285 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
287 | 286 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
298 | 297 | CFLAGS = @CFLAGS@ |
299 | 298 | CPP = @CPP@ |
300 | 299 | CPPFLAGS = @CPPFLAGS@ |
300 | CSCOPE = @CSCOPE@ | |
301 | CTAGS = @CTAGS@ | |
301 | 302 | CYGPATH_W = @CYGPATH_W@ |
302 | 303 | DEFS = @DEFS@ |
303 | 304 | DEPDIR = @DEPDIR@ |
304 | 305 | ECHO_C = @ECHO_C@ |
305 | 306 | ECHO_N = @ECHO_N@ |
306 | 307 | ECHO_T = @ECHO_T@ |
308 | ETAGS = @ETAGS@ | |
307 | 309 | EXEEXT = @EXEEXT@ |
308 | 310 | INSTALL = @INSTALL@ |
309 | 311 | INSTALL_DATA = @INSTALL_DATA@ |
372 | 374 | prefix = @prefix@ |
373 | 375 | program_transform_name = @program_transform_name@ |
374 | 376 | psdir = @psdir@ |
377 | runstatedir = @runstatedir@ | |
375 | 378 | sbindir = @sbindir@ |
376 | 379 | sharedstatedir = @sharedstatedir@ |
377 | 380 | srcdir = @srcdir@ |
705 | 708 | distclean-tags: |
706 | 709 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
707 | 710 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
708 | ||
709 | 711 | distdir: $(BUILT_SOURCES) |
710 | 712 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
711 | 713 | |
852 | 854 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
853 | 855 | --srcdir=../.. --prefix="$$dc_install_base" \ |
854 | 856 | && $(MAKE) $(AM_MAKEFLAGS) \ |
855 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
857 | && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ | |
856 | 858 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
857 | 859 | && $(MAKE) $(AM_MAKEFLAGS) install \ |
858 | 860 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
0 | # generated automatically by aclocal 1.16.2 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2020 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.16.5 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
13 | 13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
14 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
15 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | [m4_warning([this file was generated for autoconf 2.69. | |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, | |
17 | [m4_warning([this file was generated for autoconf 2.71. | |
18 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | 20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
21 | 21 | |
22 | # Copyright (C) 2002-2020 Free Software Foundation, Inc. | |
22 | # Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
23 | 23 | # |
24 | 24 | # This file is free software; the Free Software Foundation |
25 | 25 | # gives unlimited permission to copy and/or distribute it, |
34 | 34 | [am__api_version='1.16' |
35 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
36 | 36 | dnl require some minimum version. Point them to the right macro. |
37 | m4_if([$1], [1.16.2], [], | |
37 | m4_if([$1], [1.16.5], [], | |
38 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
39 | 39 | ]) |
40 | 40 | |
50 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
51 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
52 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
53 | [AM_AUTOMAKE_VERSION([1.16.2])dnl | |
53 | [AM_AUTOMAKE_VERSION([1.16.5])dnl | |
54 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
55 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
56 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
57 | 57 | |
58 | 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
59 | 59 | |
60 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
60 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
61 | 61 | # |
62 | 62 | # This file is free software; the Free Software Foundation |
63 | 63 | # gives unlimited permission to copy and/or distribute it, |
109 | 109 | |
110 | 110 | # AM_CONDITIONAL -*- Autoconf -*- |
111 | 111 | |
112 | # Copyright (C) 1997-2020 Free Software Foundation, Inc. | |
112 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
113 | 113 | # |
114 | 114 | # This file is free software; the Free Software Foundation |
115 | 115 | # gives unlimited permission to copy and/or distribute it, |
140 | 140 | Usually this means the macro was only invoked conditionally.]]) |
141 | 141 | fi])]) |
142 | 142 | |
143 | # Copyright (C) 1999-2020 Free Software Foundation, Inc. | |
143 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
144 | 144 | # |
145 | 145 | # This file is free software; the Free Software Foundation |
146 | 146 | # gives unlimited permission to copy and/or distribute it, |
331 | 331 | |
332 | 332 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
333 | 333 | |
334 | # Copyright (C) 1999-2020 Free Software Foundation, Inc. | |
334 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
335 | 335 | # |
336 | 336 | # This file is free software; the Free Software Foundation |
337 | 337 | # gives unlimited permission to copy and/or distribute it, |
399 | 399 | |
400 | 400 | # Do all the work for Automake. -*- Autoconf -*- |
401 | 401 | |
402 | # Copyright (C) 1996-2020 Free Software Foundation, Inc. | |
402 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
403 | 403 | # |
404 | 404 | # This file is free software; the Free Software Foundation |
405 | 405 | # gives unlimited permission to copy and/or distribute it, |
427 | 427 | # release and drop the old call support. |
428 | 428 | AC_DEFUN([AM_INIT_AUTOMAKE], |
429 | 429 | [AC_PREREQ([2.65])dnl |
430 | m4_ifdef([_$0_ALREADY_INIT], | |
431 | [m4_fatal([$0 expanded multiple times | |
432 | ]m4_defn([_$0_ALREADY_INIT]))], | |
433 | [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl | |
430 | 434 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
431 | 435 | dnl the ones we care about. |
432 | 436 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
463 | 467 | [_AM_SET_OPTIONS([$1])dnl |
464 | 468 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
465 | 469 | m4_if( |
466 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
470 | m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), | |
467 | 471 | [ok:ok],, |
468 | 472 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
469 | 473 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
515 | 519 | [m4_define([AC_PROG_OBJCXX], |
516 | 520 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
517 | 521 | ]) |
522 | # Variables for tags utilities; see am/tags.am | |
523 | if test -z "$CTAGS"; then | |
524 | CTAGS=ctags | |
525 | fi | |
526 | AC_SUBST([CTAGS]) | |
527 | if test -z "$ETAGS"; then | |
528 | ETAGS=etags | |
529 | fi | |
530 | AC_SUBST([ETAGS]) | |
531 | if test -z "$CSCOPE"; then | |
532 | CSCOPE=cscope | |
533 | fi | |
534 | AC_SUBST([CSCOPE]) | |
535 | ||
518 | 536 | AC_REQUIRE([AM_SILENT_RULES])dnl |
519 | 537 | dnl The testsuite driver may need to know about EXEEXT, so add the |
520 | 538 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
596 | 614 | done |
597 | 615 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
598 | 616 | |
599 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
617 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
600 | 618 | # |
601 | 619 | # This file is free software; the Free Software Foundation |
602 | 620 | # gives unlimited permission to copy and/or distribute it, |
617 | 635 | fi |
618 | 636 | AC_SUBST([install_sh])]) |
619 | 637 | |
620 | # Copyright (C) 2003-2020 Free Software Foundation, Inc. | |
638 | # Copyright (C) 2003-2021 Free Software Foundation, Inc. | |
621 | 639 | # |
622 | 640 | # This file is free software; the Free Software Foundation |
623 | 641 | # gives unlimited permission to copy and/or distribute it, |
638 | 656 | |
639 | 657 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
640 | 658 | |
641 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
659 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
642 | 660 | # |
643 | 661 | # This file is free software; the Free Software Foundation |
644 | 662 | # gives unlimited permission to copy and/or distribute it, |
681 | 699 | |
682 | 700 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
683 | 701 | |
684 | # Copyright (C) 1997-2020 Free Software Foundation, Inc. | |
702 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
685 | 703 | # |
686 | 704 | # This file is free software; the Free Software Foundation |
687 | 705 | # gives unlimited permission to copy and/or distribute it, |
702 | 720 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
703 | 721 | AC_REQUIRE_AUX_FILE([missing])dnl |
704 | 722 | if test x"${MISSING+set}" != xset; then |
705 | case $am_aux_dir in | |
706 | *\ * | *\ *) | |
707 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
708 | *) | |
709 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
710 | esac | |
723 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
711 | 724 | fi |
712 | 725 | # Use eval to expand $SHELL |
713 | 726 | if eval "$MISSING --is-lightweight"; then |
720 | 733 | |
721 | 734 | # Helper functions for option handling. -*- Autoconf -*- |
722 | 735 | |
723 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
736 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
724 | 737 | # |
725 | 738 | # This file is free software; the Free Software Foundation |
726 | 739 | # gives unlimited permission to copy and/or distribute it, |
749 | 762 | AC_DEFUN([_AM_IF_OPTION], |
750 | 763 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
751 | 764 | |
752 | # Copyright (C) 1999-2020 Free Software Foundation, Inc. | |
765 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
753 | 766 | # |
754 | 767 | # This file is free software; the Free Software Foundation |
755 | 768 | # gives unlimited permission to copy and/or distribute it, |
796 | 809 | # For backward compatibility. |
797 | 810 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
798 | 811 | |
799 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
812 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
800 | 813 | # |
801 | 814 | # This file is free software; the Free Software Foundation |
802 | 815 | # gives unlimited permission to copy and/or distribute it, |
815 | 828 | |
816 | 829 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
817 | 830 | |
818 | # Copyright (C) 1996-2020 Free Software Foundation, Inc. | |
831 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
819 | 832 | # |
820 | 833 | # This file is free software; the Free Software Foundation |
821 | 834 | # gives unlimited permission to copy and/or distribute it, |
896 | 909 | rm -f conftest.file |
897 | 910 | ]) |
898 | 911 | |
899 | # Copyright (C) 2009-2020 Free Software Foundation, Inc. | |
912 | # Copyright (C) 2009-2021 Free Software Foundation, Inc. | |
900 | 913 | # |
901 | 914 | # This file is free software; the Free Software Foundation |
902 | 915 | # gives unlimited permission to copy and/or distribute it, |
956 | 969 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
957 | 970 | ]) |
958 | 971 | |
959 | # Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
972 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
960 | 973 | # |
961 | 974 | # This file is free software; the Free Software Foundation |
962 | 975 | # gives unlimited permission to copy and/or distribute it, |
984 | 997 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
985 | 998 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
986 | 999 | |
987 | # Copyright (C) 2006-2020 Free Software Foundation, Inc. | |
1000 | # Copyright (C) 2006-2021 Free Software Foundation, Inc. | |
988 | 1001 | # |
989 | 1002 | # This file is free software; the Free Software Foundation |
990 | 1003 | # gives unlimited permission to copy and/or distribute it, |
1003 | 1016 | |
1004 | 1017 | # Check how to create a tarball. -*- Autoconf -*- |
1005 | 1018 | |
1006 | # Copyright (C) 2004-2020 Free Software Foundation, Inc. | |
1019 | # Copyright (C) 2004-2021 Free Software Foundation, Inc. | |
1007 | 1020 | # |
1008 | 1021 | # This file is free software; the Free Software Foundation |
1009 | 1022 | # gives unlimited permission to copy and/or distribute it, |
0 | 0 | #! /bin/sh |
1 | 1 | # Wrapper for compilers which do not understand '-c -o'. |
2 | 2 | |
3 | scriptversion=2012-03-05.13; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2020 Free Software Foundation, Inc. | |
6 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
16 | 16 | # GNU General Public License for more details. |
17 | 17 | # |
18 | 18 | # You should have received a copy of the GNU General Public License |
19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
20 | 20 | |
21 | 21 | # As a special exception to the GNU General Public License, if you |
22 | 22 | # distribute this file as part of a program that contains a |
52 | 52 | MINGW*) |
53 | 53 | file_conv=mingw |
54 | 54 | ;; |
55 | CYGWIN*) | |
55 | CYGWIN* | MSYS*) | |
56 | 56 | file_conv=cygwin |
57 | 57 | ;; |
58 | 58 | *) |
66 | 66 | mingw/*) |
67 | 67 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
68 | 68 | ;; |
69 | cygwin/*) | |
69 | cygwin/* | msys/*) | |
70 | 70 | file=`cygpath -m "$file" || echo "$file"` |
71 | 71 | ;; |
72 | 72 | wine/*) |
111 | 111 | lib=$dir/$lib.lib |
112 | 112 | break |
113 | 113 | fi |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
114 | 119 | done |
115 | 120 | IFS=$save_IFS |
116 | 121 | |
249 | 254 | echo "compile $scriptversion" |
250 | 255 | exit $? |
251 | 256 | ;; |
252 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ | |
258 | icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) | |
253 | 259 | func_cl_wrapper "$@" # Doesn't return... |
254 | 260 | ;; |
255 | 261 | esac |
333 | 339 | # Local Variables: |
334 | 340 | # mode: shell-script |
335 | 341 | # sh-indentation: 2 |
336 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
342 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
337 | 343 | # time-stamp-start: "scriptversion=" |
338 | 344 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
339 | # time-stamp-time-zone: "UTC" | |
345 | # time-stamp-time-zone: "UTC0" | |
340 | 346 | # time-stamp-end: "; # UTC" |
341 | 347 | # End: |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright 1992-2016 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2016-01-01' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-08-29' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
26 | 26 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
27 | 27 | # |
28 | 28 | # You can get the latest version of this script from: |
29 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
30 | 30 | # |
31 | 31 | # Please send patches to <config-patches@gnu.org>. |
32 | 32 | |
38 | 38 | |
39 | 39 | Output the configuration name of the system \`$me' is run on. |
40 | 40 | |
41 | Operation modes: | |
41 | Options: | |
42 | 42 | -h, --help print this help, then exit |
43 | 43 | -t, --time-stamp print date of last modification, then exit |
44 | 44 | -v, --version print version number, then exit |
49 | 49 | GNU config.guess ($timestamp) |
50 | 50 | |
51 | 51 | Originally written by Per Bothner. |
52 | Copyright 1992-2016 Free Software Foundation, Inc. | |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
53 | 53 | |
54 | 54 | This is free software; see the source for copying conditions. There is NO |
55 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
83 | 83 | exit 1 |
84 | 84 | fi |
85 | 85 | |
86 | trap 'exit 1' 1 2 15 | |
87 | ||
88 | 86 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
89 | 87 | # compiler to aid in system detection is discouraged as it requires |
90 | 88 | # temporary files to be created and, as you can see below, it is a |
95 | 93 | |
96 | 94 | # Portable tmp directory creation inspired by the Autoconf team. |
97 | 95 | |
98 | set_cc_for_build=' | |
99 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
100 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
101 | : ${TMPDIR=/tmp} ; | |
102 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
103 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
104 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
105 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
106 | dummy=$tmp/dummy ; | |
107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
108 | case $CC_FOR_BUILD,$HOST_CC,$CC in | |
109 | ,,) echo "int x;" > $dummy.c ; | |
110 | for c in cc gcc c89 c99 ; do | |
111 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
112 | CC_FOR_BUILD="$c"; break ; | |
113 | fi ; | |
114 | done ; | |
115 | if test x"$CC_FOR_BUILD" = x ; then | |
116 | CC_FOR_BUILD=no_compiler_found ; | |
117 | fi | |
118 | ;; | |
119 | ,,*) CC_FOR_BUILD=$CC ;; | |
120 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
121 | esac ; set_cc_for_build= ;' | |
96 | tmp= | |
97 | # shellcheck disable=SC2172 | |
98 | trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15 | |
99 | trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0 | |
100 | ||
101 | set_cc_for_build() { | |
102 | : "${TMPDIR=/tmp}" | |
103 | # shellcheck disable=SC2039 | |
104 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
105 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || | |
106 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
107 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } | |
108 | dummy=$tmp/dummy | |
109 | case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in | |
110 | ,,) echo "int x;" > "$dummy.c" | |
111 | for driver in cc gcc c89 c99 ; do | |
112 | if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
113 | CC_FOR_BUILD="$driver" | |
114 | break | |
115 | fi | |
116 | done | |
117 | if test x"$CC_FOR_BUILD" = x ; then | |
118 | CC_FOR_BUILD=no_compiler_found | |
119 | fi | |
120 | ;; | |
121 | ,,*) CC_FOR_BUILD=$CC ;; | |
122 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
123 | esac | |
124 | } | |
122 | 125 | |
123 | 126 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
124 | 127 | # (ghazi@noc.rutgers.edu 1994-08-24) |
125 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | |
128 | if test -f /.attbin/uname ; then | |
126 | 129 | PATH=$PATH:/.attbin ; export PATH |
127 | 130 | fi |
128 | 131 | |
131 | 134 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
132 | 135 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | 136 | |
134 | case "${UNAME_SYSTEM}" in | |
137 | case "$UNAME_SYSTEM" in | |
135 | 138 | Linux|GNU|GNU/*) |
136 | 139 | # If the system lacks a compiler, then just pick glibc. |
137 | 140 | # We could probably try harder. |
138 | 141 | LIBC=gnu |
139 | 142 | |
140 | eval $set_cc_for_build | |
141 | cat <<-EOF > $dummy.c | |
143 | set_cc_for_build | |
144 | cat <<-EOF > "$dummy.c" | |
142 | 145 | #include <features.h> |
143 | 146 | #if defined(__UCLIBC__) |
144 | 147 | LIBC=uclibc |
148 | 151 | LIBC=gnu |
149 | 152 | #endif |
150 | 153 | EOF |
151 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | |
154 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
155 | ||
156 | # If ldd exists, use it to detect musl libc. | |
157 | if command -v ldd >/dev/null && \ | |
158 | ldd --version 2>&1 | grep -q ^musl | |
159 | then | |
160 | LIBC=musl | |
161 | fi | |
152 | 162 | ;; |
153 | 163 | esac |
154 | 164 | |
155 | 165 | # Note: order is significant - the case branches are not exclusive. |
156 | 166 | |
157 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
167 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
158 | 168 | *:NetBSD:*:*) |
159 | 169 | # NetBSD (nbsd) targets should (where applicable) match one or |
160 | 170 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
168 | 178 | # portion of the name. We always set it to "unknown". |
169 | 179 | sysctl="sysctl -n hw.machine_arch" |
170 | 180 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
171 | /sbin/$sysctl 2>/dev/null || \ | |
172 | /usr/sbin/$sysctl 2>/dev/null || \ | |
181 | "/sbin/$sysctl" 2>/dev/null || \ | |
182 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
173 | 183 | echo unknown)` |
174 | case "${UNAME_MACHINE_ARCH}" in | |
184 | case "$UNAME_MACHINE_ARCH" in | |
175 | 185 | armeb) machine=armeb-unknown ;; |
176 | 186 | arm*) machine=arm-unknown ;; |
177 | 187 | sh3el) machine=shl-unknown ;; |
178 | 188 | sh3eb) machine=sh-unknown ;; |
179 | 189 | sh5el) machine=sh5le-unknown ;; |
180 | 190 | earmv*) |
181 | arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
182 | endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` | |
183 | machine=${arch}${endian}-unknown | |
191 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
192 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | |
193 | machine="${arch}${endian}"-unknown | |
184 | 194 | ;; |
185 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
195 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
186 | 196 | esac |
187 | 197 | # The Operating System including object format, if it has switched |
188 | # to ELF recently, or will in the future. | |
189 | case "${UNAME_MACHINE_ARCH}" in | |
190 | arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
191 | eval $set_cc_for_build | |
198 | # to ELF recently (or will in the future) and ABI. | |
199 | case "$UNAME_MACHINE_ARCH" in | |
200 | earm*) | |
201 | os=netbsdelf | |
202 | ;; | |
203 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
204 | set_cc_for_build | |
192 | 205 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
193 | 206 | | grep -q __ELF__ |
194 | 207 | then |
204 | 217 | ;; |
205 | 218 | esac |
206 | 219 | # Determine ABI tags. |
207 | case "${UNAME_MACHINE_ARCH}" in | |
220 | case "$UNAME_MACHINE_ARCH" in | |
208 | 221 | earm*) |
209 | 222 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
210 | abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` | |
223 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` | |
211 | 224 | ;; |
212 | 225 | esac |
213 | 226 | # The OS release |
215 | 228 | # thus, need a distinct triplet. However, they do not need |
216 | 229 | # kernel version information, so it can be replaced with a |
217 | 230 | # suitable tag, in the style of linux-gnu. |
218 | case "${UNAME_VERSION}" in | |
231 | case "$UNAME_VERSION" in | |
219 | 232 | Debian*) |
220 | 233 | release='-gnu' |
221 | 234 | ;; |
222 | 235 | *) |
223 | release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
236 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
224 | 237 | ;; |
225 | 238 | esac |
226 | 239 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
227 | 240 | # contains redundant information, the shorter form: |
228 | 241 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
229 | echo "${machine}-${os}${release}${abi}" | |
242 | echo "$machine-${os}${release}${abi-}" | |
230 | 243 | exit ;; |
231 | 244 | *:Bitrig:*:*) |
232 | 245 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
233 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
246 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | |
234 | 247 | exit ;; |
235 | 248 | *:OpenBSD:*:*) |
236 | 249 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
237 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
250 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | |
251 | exit ;; | |
252 | *:LibertyBSD:*:*) | |
253 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | |
254 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | |
255 | exit ;; | |
256 | *:MidnightBSD:*:*) | |
257 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | |
238 | 258 | exit ;; |
239 | 259 | *:ekkoBSD:*:*) |
240 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
260 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
241 | 261 | exit ;; |
242 | 262 | *:SolidBSD:*:*) |
243 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
263 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
244 | 264 | exit ;; |
245 | 265 | macppc:MirBSD:*:*) |
246 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
266 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
247 | 267 | exit ;; |
248 | 268 | *:MirBSD:*:*) |
249 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
269 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
250 | 270 | exit ;; |
251 | 271 | *:Sortix:*:*) |
252 | echo ${UNAME_MACHINE}-unknown-sortix | |
253 | exit ;; | |
272 | echo "$UNAME_MACHINE"-unknown-sortix | |
273 | exit ;; | |
274 | *:Redox:*:*) | |
275 | echo "$UNAME_MACHINE"-unknown-redox | |
276 | exit ;; | |
277 | mips:OSF1:*.*) | |
278 | echo mips-dec-osf1 | |
279 | exit ;; | |
254 | 280 | alpha:OSF1:*:*) |
255 | 281 | case $UNAME_RELEASE in |
256 | 282 | *4.0) |
267 | 293 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
268 | 294 | case "$ALPHA_CPU_TYPE" in |
269 | 295 | "EV4 (21064)") |
270 | UNAME_MACHINE="alpha" ;; | |
296 | UNAME_MACHINE=alpha ;; | |
271 | 297 | "EV4.5 (21064)") |
272 | UNAME_MACHINE="alpha" ;; | |
298 | UNAME_MACHINE=alpha ;; | |
273 | 299 | "LCA4 (21066/21068)") |
274 | UNAME_MACHINE="alpha" ;; | |
300 | UNAME_MACHINE=alpha ;; | |
275 | 301 | "EV5 (21164)") |
276 | UNAME_MACHINE="alphaev5" ;; | |
302 | UNAME_MACHINE=alphaev5 ;; | |
277 | 303 | "EV5.6 (21164A)") |
278 | UNAME_MACHINE="alphaev56" ;; | |
304 | UNAME_MACHINE=alphaev56 ;; | |
279 | 305 | "EV5.6 (21164PC)") |
280 | UNAME_MACHINE="alphapca56" ;; | |
306 | UNAME_MACHINE=alphapca56 ;; | |
281 | 307 | "EV5.7 (21164PC)") |
282 | UNAME_MACHINE="alphapca57" ;; | |
308 | UNAME_MACHINE=alphapca57 ;; | |
283 | 309 | "EV6 (21264)") |
284 | UNAME_MACHINE="alphaev6" ;; | |
310 | UNAME_MACHINE=alphaev6 ;; | |
285 | 311 | "EV6.7 (21264A)") |
286 | UNAME_MACHINE="alphaev67" ;; | |
312 | UNAME_MACHINE=alphaev67 ;; | |
287 | 313 | "EV6.8CB (21264C)") |
288 | UNAME_MACHINE="alphaev68" ;; | |
314 | UNAME_MACHINE=alphaev68 ;; | |
289 | 315 | "EV6.8AL (21264B)") |
290 | UNAME_MACHINE="alphaev68" ;; | |
316 | UNAME_MACHINE=alphaev68 ;; | |
291 | 317 | "EV6.8CX (21264D)") |
292 | UNAME_MACHINE="alphaev68" ;; | |
318 | UNAME_MACHINE=alphaev68 ;; | |
293 | 319 | "EV6.9A (21264/EV69A)") |
294 | UNAME_MACHINE="alphaev69" ;; | |
320 | UNAME_MACHINE=alphaev69 ;; | |
295 | 321 | "EV7 (21364)") |
296 | UNAME_MACHINE="alphaev7" ;; | |
322 | UNAME_MACHINE=alphaev7 ;; | |
297 | 323 | "EV7.9 (21364A)") |
298 | UNAME_MACHINE="alphaev79" ;; | |
324 | UNAME_MACHINE=alphaev79 ;; | |
299 | 325 | esac |
300 | 326 | # A Pn.n version is a patched version. |
301 | 327 | # A Vn.n version is a released version. |
302 | 328 | # A Tn.n version is a released field test version. |
303 | 329 | # A Xn.n version is an unreleased experimental baselevel. |
304 | 330 | # 1.2 uses "1.2" for uname -r. |
305 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
331 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
306 | 332 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
307 | 333 | exitcode=$? |
308 | 334 | trap '' 0 |
309 | 335 | exit $exitcode ;; |
310 | Alpha\ *:Windows_NT*:*) | |
311 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
312 | # Should we change UNAME_MACHINE based on the output of uname instead | |
313 | # of the specific Alpha model? | |
314 | echo alpha-pc-interix | |
315 | exit ;; | |
316 | 21064:Windows_NT:50:3) | |
317 | echo alpha-dec-winnt3.5 | |
318 | exit ;; | |
319 | 336 | Amiga*:UNIX_System_V:4.0:*) |
320 | 337 | echo m68k-unknown-sysv4 |
321 | 338 | exit ;; |
322 | 339 | *:[Aa]miga[Oo][Ss]:*:*) |
323 | echo ${UNAME_MACHINE}-unknown-amigaos | |
340 | echo "$UNAME_MACHINE"-unknown-amigaos | |
324 | 341 | exit ;; |
325 | 342 | *:[Mm]orph[Oo][Ss]:*:*) |
326 | echo ${UNAME_MACHINE}-unknown-morphos | |
343 | echo "$UNAME_MACHINE"-unknown-morphos | |
327 | 344 | exit ;; |
328 | 345 | *:OS/390:*:*) |
329 | 346 | echo i370-ibm-openedition |
335 | 352 | echo powerpc-ibm-os400 |
336 | 353 | exit ;; |
337 | 354 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
338 | echo arm-acorn-riscix${UNAME_RELEASE} | |
355 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
339 | 356 | exit ;; |
340 | 357 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
341 | 358 | echo arm-unknown-riscos |
362 | 379 | sparc) echo sparc-icl-nx7; exit ;; |
363 | 380 | esac ;; |
364 | 381 | s390x:SunOS:*:*) |
365 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
382 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
366 | 383 | exit ;; |
367 | 384 | sun4H:SunOS:5.*:*) |
368 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
385 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
369 | 386 | exit ;; |
370 | 387 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
371 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
388 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
372 | 389 | exit ;; |
373 | 390 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
374 | echo i386-pc-auroraux${UNAME_RELEASE} | |
391 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
375 | 392 | exit ;; |
376 | 393 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
377 | eval $set_cc_for_build | |
378 | SUN_ARCH="i386" | |
379 | # If there is a compiler, see if it is configured for 64-bit objects. | |
380 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
381 | # This test works for both compilers. | |
382 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
383 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
384 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
385 | grep IS_64BIT_ARCH >/dev/null | |
386 | then | |
387 | SUN_ARCH="x86_64" | |
388 | fi | |
389 | fi | |
390 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
394 | UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
395 | case `isainfo -b` in | |
396 | 32) | |
397 | echo i386-pc-solaris2"$UNAME_REL" | |
398 | ;; | |
399 | 64) | |
400 | echo x86_64-pc-solaris2"$UNAME_REL" | |
401 | ;; | |
402 | esac | |
391 | 403 | exit ;; |
392 | 404 | sun4*:SunOS:6*:*) |
393 | 405 | # According to config.sub, this is the proper way to canonicalize |
394 | 406 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
395 | 407 | # it's likely to be more like Solaris than SunOS4. |
396 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
408 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
397 | 409 | exit ;; |
398 | 410 | sun4*:SunOS:*:*) |
399 | 411 | case "`/usr/bin/arch -k`" in |
402 | 414 | ;; |
403 | 415 | esac |
404 | 416 | # Japanese Language versions have a version number like `4.1.3-JL'. |
405 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
417 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | |
406 | 418 | exit ;; |
407 | 419 | sun3*:SunOS:*:*) |
408 | echo m68k-sun-sunos${UNAME_RELEASE} | |
420 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
409 | 421 | exit ;; |
410 | 422 | sun*:*:4.2BSD:*) |
411 | 423 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
412 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
424 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | |
413 | 425 | case "`/bin/arch`" in |
414 | 426 | sun3) |
415 | echo m68k-sun-sunos${UNAME_RELEASE} | |
427 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
416 | 428 | ;; |
417 | 429 | sun4) |
418 | echo sparc-sun-sunos${UNAME_RELEASE} | |
430 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
419 | 431 | ;; |
420 | 432 | esac |
421 | 433 | exit ;; |
422 | 434 | aushp:SunOS:*:*) |
423 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
435 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
424 | 436 | exit ;; |
425 | 437 | # The situation for MiNT is a little confusing. The machine name |
426 | 438 | # can be virtually everything (everything which is not |
431 | 443 | # MiNT. But MiNT is downward compatible to TOS, so this should |
432 | 444 | # be no problem. |
433 | 445 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
434 | echo m68k-atari-mint${UNAME_RELEASE} | |
446 | echo m68k-atari-mint"$UNAME_RELEASE" | |
435 | 447 | exit ;; |
436 | 448 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
437 | echo m68k-atari-mint${UNAME_RELEASE} | |
449 | echo m68k-atari-mint"$UNAME_RELEASE" | |
438 | 450 | exit ;; |
439 | 451 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
440 | echo m68k-atari-mint${UNAME_RELEASE} | |
452 | echo m68k-atari-mint"$UNAME_RELEASE" | |
441 | 453 | exit ;; |
442 | 454 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
443 | echo m68k-milan-mint${UNAME_RELEASE} | |
455 | echo m68k-milan-mint"$UNAME_RELEASE" | |
444 | 456 | exit ;; |
445 | 457 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
446 | echo m68k-hades-mint${UNAME_RELEASE} | |
458 | echo m68k-hades-mint"$UNAME_RELEASE" | |
447 | 459 | exit ;; |
448 | 460 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
449 | echo m68k-unknown-mint${UNAME_RELEASE} | |
461 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
450 | 462 | exit ;; |
451 | 463 | m68k:machten:*:*) |
452 | echo m68k-apple-machten${UNAME_RELEASE} | |
464 | echo m68k-apple-machten"$UNAME_RELEASE" | |
453 | 465 | exit ;; |
454 | 466 | powerpc:machten:*:*) |
455 | echo powerpc-apple-machten${UNAME_RELEASE} | |
467 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
456 | 468 | exit ;; |
457 | 469 | RISC*:Mach:*:*) |
458 | 470 | echo mips-dec-mach_bsd4.3 |
459 | 471 | exit ;; |
460 | 472 | RISC*:ULTRIX:*:*) |
461 | echo mips-dec-ultrix${UNAME_RELEASE} | |
473 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
462 | 474 | exit ;; |
463 | 475 | VAX*:ULTRIX*:*:*) |
464 | echo vax-dec-ultrix${UNAME_RELEASE} | |
476 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
465 | 477 | exit ;; |
466 | 478 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
467 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
479 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
468 | 480 | exit ;; |
469 | 481 | mips:*:*:UMIPS | mips:*:*:RISCos) |
470 | eval $set_cc_for_build | |
471 | sed 's/^ //' << EOF >$dummy.c | |
482 | set_cc_for_build | |
483 | sed 's/^ //' << EOF > "$dummy.c" | |
472 | 484 | #ifdef __cplusplus |
473 | 485 | #include <stdio.h> /* for printf() prototype */ |
474 | 486 | int main (int argc, char *argv[]) { |
477 | 489 | #endif |
478 | 490 | #if defined (host_mips) && defined (MIPSEB) |
479 | 491 | #if defined (SYSTYPE_SYSV) |
480 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
492 | printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); | |
481 | 493 | #endif |
482 | 494 | #if defined (SYSTYPE_SVR4) |
483 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
495 | printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); | |
484 | 496 | #endif |
485 | 497 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
486 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
498 | printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); | |
487 | 499 | #endif |
488 | 500 | #endif |
489 | 501 | exit (-1); |
490 | 502 | } |
491 | 503 | EOF |
492 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
493 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
494 | SYSTEM_NAME=`$dummy $dummyarg` && | |
504 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && | |
505 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
506 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && | |
495 | 507 | { echo "$SYSTEM_NAME"; exit; } |
496 | echo mips-mips-riscos${UNAME_RELEASE} | |
508 | echo mips-mips-riscos"$UNAME_RELEASE" | |
497 | 509 | exit ;; |
498 | 510 | Motorola:PowerMAX_OS:*:*) |
499 | 511 | echo powerpc-motorola-powermax |
519 | 531 | AViiON:dgux:*:*) |
520 | 532 | # DG/UX returns AViiON for all architectures |
521 | 533 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
522 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
534 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
523 | 535 | then |
524 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
525 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
536 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | |
537 | [ "$TARGET_BINARY_INTERFACE"x = x ] | |
526 | 538 | then |
527 | echo m88k-dg-dgux${UNAME_RELEASE} | |
539 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
528 | 540 | else |
529 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
541 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
530 | 542 | fi |
531 | 543 | else |
532 | echo i586-dg-dgux${UNAME_RELEASE} | |
544 | echo i586-dg-dgux"$UNAME_RELEASE" | |
533 | 545 | fi |
534 | 546 | exit ;; |
535 | 547 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
546 | 558 | echo m68k-tektronix-bsd |
547 | 559 | exit ;; |
548 | 560 | *:IRIX*:*:*) |
549 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
561 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
550 | 562 | exit ;; |
551 | 563 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
552 | 564 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
558 | 570 | if [ -x /usr/bin/oslevel ] ; then |
559 | 571 | IBM_REV=`/usr/bin/oslevel` |
560 | 572 | else |
561 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
562 | fi | |
563 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
573 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
574 | fi | |
575 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
564 | 576 | exit ;; |
565 | 577 | *:AIX:2:3) |
566 | 578 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
567 | eval $set_cc_for_build | |
568 | sed 's/^ //' << EOF >$dummy.c | |
579 | set_cc_for_build | |
580 | sed 's/^ //' << EOF > "$dummy.c" | |
569 | 581 | #include <sys/systemcfg.h> |
570 | 582 | |
571 | 583 | main() |
576 | 588 | exit(0); |
577 | 589 | } |
578 | 590 | EOF |
579 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
591 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | |
580 | 592 | then |
581 | 593 | echo "$SYSTEM_NAME" |
582 | 594 | else |
590 | 602 | exit ;; |
591 | 603 | *:AIX:*:[4567]) |
592 | 604 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
593 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
605 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
594 | 606 | IBM_ARCH=rs6000 |
595 | 607 | else |
596 | 608 | IBM_ARCH=powerpc |
599 | 611 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | |
600 | 612 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
601 | 613 | else |
602 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
603 | fi | |
604 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
614 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
615 | fi | |
616 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
605 | 617 | exit ;; |
606 | 618 | *:AIX:*:*) |
607 | 619 | echo rs6000-ibm-aix |
608 | 620 | exit ;; |
609 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
621 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
610 | 622 | echo romp-ibm-bsd4.4 |
611 | 623 | exit ;; |
612 | 624 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
613 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
625 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | |
614 | 626 | exit ;; # report: romp-ibm BSD 4.3 |
615 | 627 | *:BOSX:*:*) |
616 | 628 | echo rs6000-bull-bosx |
625 | 637 | echo m68k-hp-bsd4.4 |
626 | 638 | exit ;; |
627 | 639 | 9000/[34678]??:HP-UX:*:*) |
628 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
629 | case "${UNAME_MACHINE}" in | |
630 | 9000/31? ) HP_ARCH=m68000 ;; | |
631 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
640 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
641 | case "$UNAME_MACHINE" in | |
642 | 9000/31?) HP_ARCH=m68000 ;; | |
643 | 9000/[34]??) HP_ARCH=m68k ;; | |
632 | 644 | 9000/[678][0-9][0-9]) |
633 | 645 | if [ -x /usr/bin/getconf ]; then |
634 | 646 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
635 | 647 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
636 | case "${sc_cpu_version}" in | |
637 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
638 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
648 | case "$sc_cpu_version" in | |
649 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | |
650 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | |
639 | 651 | 532) # CPU_PA_RISC2_0 |
640 | case "${sc_kernel_bits}" in | |
641 | 32) HP_ARCH="hppa2.0n" ;; | |
642 | 64) HP_ARCH="hppa2.0w" ;; | |
643 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
652 | case "$sc_kernel_bits" in | |
653 | 32) HP_ARCH=hppa2.0n ;; | |
654 | 64) HP_ARCH=hppa2.0w ;; | |
655 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | |
644 | 656 | esac ;; |
645 | 657 | esac |
646 | 658 | fi |
647 | if [ "${HP_ARCH}" = "" ]; then | |
648 | eval $set_cc_for_build | |
649 | sed 's/^ //' << EOF >$dummy.c | |
659 | if [ "$HP_ARCH" = "" ]; then | |
660 | set_cc_for_build | |
661 | sed 's/^ //' << EOF > "$dummy.c" | |
650 | 662 | |
651 | 663 | #define _HPUX_SOURCE |
652 | 664 | #include <stdlib.h> |
679 | 691 | exit (0); |
680 | 692 | } |
681 | 693 | EOF |
682 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
694 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
683 | 695 | test -z "$HP_ARCH" && HP_ARCH=hppa |
684 | 696 | fi ;; |
685 | 697 | esac |
686 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
698 | if [ "$HP_ARCH" = hppa2.0w ] | |
687 | 699 | then |
688 | eval $set_cc_for_build | |
700 | set_cc_for_build | |
689 | 701 | |
690 | 702 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
691 | 703 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
696 | 708 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
697 | 709 | # => hppa64-hp-hpux11.23 |
698 | 710 | |
699 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
711 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
700 | 712 | grep -q __LP64__ |
701 | 713 | then |
702 | HP_ARCH="hppa2.0w" | |
714 | HP_ARCH=hppa2.0w | |
703 | 715 | else |
704 | HP_ARCH="hppa64" | |
716 | HP_ARCH=hppa64 | |
705 | 717 | fi |
706 | 718 | fi |
707 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
719 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
708 | 720 | exit ;; |
709 | 721 | ia64:HP-UX:*:*) |
710 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
711 | echo ia64-hp-hpux${HPUX_REV} | |
722 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
723 | echo ia64-hp-hpux"$HPUX_REV" | |
712 | 724 | exit ;; |
713 | 725 | 3050*:HI-UX:*:*) |
714 | eval $set_cc_for_build | |
715 | sed 's/^ //' << EOF >$dummy.c | |
726 | set_cc_for_build | |
727 | sed 's/^ //' << EOF > "$dummy.c" | |
716 | 728 | #include <unistd.h> |
717 | 729 | int |
718 | 730 | main () |
737 | 749 | exit (0); |
738 | 750 | } |
739 | 751 | EOF |
740 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
752 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
741 | 753 | { echo "$SYSTEM_NAME"; exit; } |
742 | 754 | echo unknown-hitachi-hiuxwe2 |
743 | 755 | exit ;; |
744 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
756 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
745 | 757 | echo hppa1.1-hp-bsd |
746 | 758 | exit ;; |
747 | 759 | 9000/8??:4.3bsd:*:*) |
750 | 762 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
751 | 763 | echo hppa1.0-hp-mpeix |
752 | 764 | exit ;; |
753 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
765 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
754 | 766 | echo hppa1.1-hp-osf |
755 | 767 | exit ;; |
756 | 768 | hp8??:OSF1:*:*) |
758 | 770 | exit ;; |
759 | 771 | i*86:OSF1:*:*) |
760 | 772 | if [ -x /usr/sbin/sysversion ] ; then |
761 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
773 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
762 | 774 | else |
763 | echo ${UNAME_MACHINE}-unknown-osf1 | |
775 | echo "$UNAME_MACHINE"-unknown-osf1 | |
764 | 776 | fi |
765 | 777 | exit ;; |
766 | 778 | parisc*:Lites*:*:*) |
785 | 797 | echo c4-convex-bsd |
786 | 798 | exit ;; |
787 | 799 | CRAY*Y-MP:*:*:*) |
788 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
800 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
789 | 801 | exit ;; |
790 | 802 | CRAY*[A-Z]90:*:*:*) |
791 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
803 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
792 | 804 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
793 | 805 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
794 | 806 | -e 's/\.[^.]*$/.X/' |
795 | 807 | exit ;; |
796 | 808 | CRAY*TS:*:*:*) |
797 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
809 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
798 | 810 | exit ;; |
799 | 811 | CRAY*T3E:*:*:*) |
800 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
812 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
801 | 813 | exit ;; |
802 | 814 | CRAY*SV1:*:*:*) |
803 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
815 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
804 | 816 | exit ;; |
805 | 817 | *:UNICOS/mp:*:*) |
806 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
818 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
807 | 819 | exit ;; |
808 | 820 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
809 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
810 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
811 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
821 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
822 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
823 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` | |
812 | 824 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
813 | 825 | exit ;; |
814 | 826 | 5000:UNIX_System_V:4.*:*) |
815 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
816 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
827 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
828 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | |
817 | 829 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
818 | 830 | exit ;; |
819 | 831 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
820 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
832 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | |
821 | 833 | exit ;; |
822 | 834 | sparc*:BSD/OS:*:*) |
823 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
835 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
824 | 836 | exit ;; |
825 | 837 | *:BSD/OS:*:*) |
826 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
838 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
839 | exit ;; | |
840 | arm:FreeBSD:*:*) | |
841 | UNAME_PROCESSOR=`uname -p` | |
842 | set_cc_for_build | |
843 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
844 | | grep -q __ARM_PCS_VFP | |
845 | then | |
846 | echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi | |
847 | else | |
848 | echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf | |
849 | fi | |
827 | 850 | exit ;; |
828 | 851 | *:FreeBSD:*:*) |
829 | 852 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
830 | case ${UNAME_PROCESSOR} in | |
853 | case "$UNAME_PROCESSOR" in | |
831 | 854 | amd64) |
832 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
833 | *) | |
834 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
855 | UNAME_PROCESSOR=x86_64 ;; | |
856 | i386) | |
857 | UNAME_PROCESSOR=i586 ;; | |
835 | 858 | esac |
859 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
836 | 860 | exit ;; |
837 | 861 | i*:CYGWIN*:*) |
838 | echo ${UNAME_MACHINE}-pc-cygwin | |
862 | echo "$UNAME_MACHINE"-pc-cygwin | |
839 | 863 | exit ;; |
840 | 864 | *:MINGW64*:*) |
841 | echo ${UNAME_MACHINE}-pc-mingw64 | |
865 | echo "$UNAME_MACHINE"-pc-mingw64 | |
842 | 866 | exit ;; |
843 | 867 | *:MINGW*:*) |
844 | echo ${UNAME_MACHINE}-pc-mingw32 | |
868 | echo "$UNAME_MACHINE"-pc-mingw32 | |
845 | 869 | exit ;; |
846 | 870 | *:MSYS*:*) |
847 | echo ${UNAME_MACHINE}-pc-msys | |
848 | exit ;; | |
849 | i*:windows32*:*) | |
850 | # uname -m includes "-pc" on this system. | |
851 | echo ${UNAME_MACHINE}-mingw32 | |
871 | echo "$UNAME_MACHINE"-pc-msys | |
852 | 872 | exit ;; |
853 | 873 | i*:PW*:*) |
854 | echo ${UNAME_MACHINE}-pc-pw32 | |
874 | echo "$UNAME_MACHINE"-pc-pw32 | |
855 | 875 | exit ;; |
856 | 876 | *:Interix*:*) |
857 | case ${UNAME_MACHINE} in | |
877 | case "$UNAME_MACHINE" in | |
858 | 878 | x86) |
859 | echo i586-pc-interix${UNAME_RELEASE} | |
879 | echo i586-pc-interix"$UNAME_RELEASE" | |
860 | 880 | exit ;; |
861 | 881 | authenticamd | genuineintel | EM64T) |
862 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
882 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
863 | 883 | exit ;; |
864 | 884 | IA64) |
865 | echo ia64-unknown-interix${UNAME_RELEASE} | |
885 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
866 | 886 | exit ;; |
867 | 887 | esac ;; |
868 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
869 | echo i${UNAME_MACHINE}-pc-mks | |
870 | exit ;; | |
871 | 8664:Windows_NT:*) | |
872 | echo x86_64-pc-mks | |
873 | exit ;; | |
874 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
875 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
876 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
877 | # UNAME_MACHINE based on the output of uname instead of i386? | |
878 | echo i586-pc-interix | |
879 | exit ;; | |
880 | 888 | i*:UWIN*:*) |
881 | echo ${UNAME_MACHINE}-pc-uwin | |
889 | echo "$UNAME_MACHINE"-pc-uwin | |
882 | 890 | exit ;; |
883 | 891 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
884 | 892 | echo x86_64-unknown-cygwin |
885 | 893 | exit ;; |
886 | p*:CYGWIN*:*) | |
887 | echo powerpcle-unknown-cygwin | |
888 | exit ;; | |
889 | 894 | prep*:SunOS:5.*:*) |
890 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
895 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
891 | 896 | exit ;; |
892 | 897 | *:GNU:*:*) |
893 | 898 | # the GNU system |
894 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
899 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | |
895 | 900 | exit ;; |
896 | 901 | *:GNU/*:*:*) |
897 | 902 | # other systems with GNU libc and userland |
898 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
899 | exit ;; | |
900 | i*86:Minix:*:*) | |
901 | echo ${UNAME_MACHINE}-pc-minix | |
903 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | |
904 | exit ;; | |
905 | *:Minix:*:*) | |
906 | echo "$UNAME_MACHINE"-unknown-minix | |
902 | 907 | exit ;; |
903 | 908 | aarch64:Linux:*:*) |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
909 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
905 | 910 | exit ;; |
906 | 911 | aarch64_be:Linux:*:*) |
907 | 912 | UNAME_MACHINE=aarch64_be |
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
913 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
909 | 914 | exit ;; |
910 | 915 | alpha:Linux:*:*) |
911 | 916 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
918 | 923 | EV68*) UNAME_MACHINE=alphaev68 ;; |
919 | 924 | esac |
920 | 925 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
921 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
926 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | |
927 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
923 | 928 | exit ;; |
924 | 929 | arc:Linux:*:* | arceb:Linux:*:*) |
925 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
930 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
926 | 931 | exit ;; |
927 | 932 | arm*:Linux:*:*) |
928 | eval $set_cc_for_build | |
933 | set_cc_for_build | |
929 | 934 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
930 | 935 | | grep -q __ARM_EABI__ |
931 | 936 | then |
932 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
937 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
933 | 938 | else |
934 | 939 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
935 | 940 | | grep -q __ARM_PCS_VFP |
936 | 941 | then |
937 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
942 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
938 | 943 | else |
939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
944 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
940 | 945 | fi |
941 | 946 | fi |
942 | 947 | exit ;; |
943 | 948 | avr32*:Linux:*:*) |
944 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
945 | 950 | exit ;; |
946 | 951 | cris:Linux:*:*) |
947 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
952 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
948 | 953 | exit ;; |
949 | 954 | crisv32:Linux:*:*) |
950 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
955 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
951 | 956 | exit ;; |
952 | 957 | e2k:Linux:*:*) |
953 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
958 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
954 | 959 | exit ;; |
955 | 960 | frv:Linux:*:*) |
956 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
961 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
957 | 962 | exit ;; |
958 | 963 | hexagon:Linux:*:*) |
959 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
964 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
960 | 965 | exit ;; |
961 | 966 | i*86:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
967 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
963 | 968 | exit ;; |
964 | 969 | ia64:Linux:*:*) |
965 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
966 | 971 | exit ;; |
967 | 972 | k1om:Linux:*:*) |
968 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
973 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
969 | 974 | exit ;; |
970 | 975 | m32r*:Linux:*:*) |
971 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
976 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
972 | 977 | exit ;; |
973 | 978 | m68*:Linux:*:*) |
974 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
979 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
975 | 980 | exit ;; |
976 | 981 | mips:Linux:*:* | mips64:Linux:*:*) |
977 | eval $set_cc_for_build | |
978 | sed 's/^ //' << EOF >$dummy.c | |
982 | set_cc_for_build | |
983 | sed 's/^ //' << EOF > "$dummy.c" | |
979 | 984 | #undef CPU |
980 | 985 | #undef ${UNAME_MACHINE} |
981 | 986 | #undef ${UNAME_MACHINE}el |
989 | 994 | #endif |
990 | 995 | #endif |
991 | 996 | EOF |
992 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
993 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
997 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | |
998 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | |
994 | 999 | ;; |
1000 | mips64el:Linux:*:*) | |
1001 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1002 | exit ;; | |
995 | 1003 | openrisc*:Linux:*:*) |
996 | echo or1k-unknown-linux-${LIBC} | |
1004 | echo or1k-unknown-linux-"$LIBC" | |
997 | 1005 | exit ;; |
998 | 1006 | or32:Linux:*:* | or1k*:Linux:*:*) |
999 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1007 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1000 | 1008 | exit ;; |
1001 | 1009 | padre:Linux:*:*) |
1002 | echo sparc-unknown-linux-${LIBC} | |
1010 | echo sparc-unknown-linux-"$LIBC" | |
1003 | 1011 | exit ;; |
1004 | 1012 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1005 | echo hppa64-unknown-linux-${LIBC} | |
1013 | echo hppa64-unknown-linux-"$LIBC" | |
1006 | 1014 | exit ;; |
1007 | 1015 | parisc:Linux:*:* | hppa:Linux:*:*) |
1008 | 1016 | # Look for CPU level |
1009 | 1017 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1010 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
1011 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
1012 | *) echo hppa-unknown-linux-${LIBC} ;; | |
1018 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | |
1019 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | |
1020 | *) echo hppa-unknown-linux-"$LIBC" ;; | |
1013 | 1021 | esac |
1014 | 1022 | exit ;; |
1015 | 1023 | ppc64:Linux:*:*) |
1016 | echo powerpc64-unknown-linux-${LIBC} | |
1024 | echo powerpc64-unknown-linux-"$LIBC" | |
1017 | 1025 | exit ;; |
1018 | 1026 | ppc:Linux:*:*) |
1019 | echo powerpc-unknown-linux-${LIBC} | |
1027 | echo powerpc-unknown-linux-"$LIBC" | |
1020 | 1028 | exit ;; |
1021 | 1029 | ppc64le:Linux:*:*) |
1022 | echo powerpc64le-unknown-linux-${LIBC} | |
1030 | echo powerpc64le-unknown-linux-"$LIBC" | |
1023 | 1031 | exit ;; |
1024 | 1032 | ppcle:Linux:*:*) |
1025 | echo powerpcle-unknown-linux-${LIBC} | |
1033 | echo powerpcle-unknown-linux-"$LIBC" | |
1034 | exit ;; | |
1035 | riscv32:Linux:*:* | riscv64:Linux:*:*) | |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1026 | 1037 | exit ;; |
1027 | 1038 | s390:Linux:*:* | s390x:Linux:*:*) |
1028 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
1039 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
1029 | 1040 | exit ;; |
1030 | 1041 | sh64*:Linux:*:*) |
1031 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1032 | 1043 | exit ;; |
1033 | 1044 | sh*:Linux:*:*) |
1034 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1045 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1035 | 1046 | exit ;; |
1036 | 1047 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1037 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1048 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1038 | 1049 | exit ;; |
1039 | 1050 | tile*:Linux:*:*) |
1040 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1051 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1041 | 1052 | exit ;; |
1042 | 1053 | vax:Linux:*:*) |
1043 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
1054 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1044 | 1055 | exit ;; |
1045 | 1056 | x86_64:Linux:*:*) |
1046 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
1057 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
1047 | 1058 | exit ;; |
1048 | 1059 | xtensa*:Linux:*:*) |
1049 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1060 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1050 | 1061 | exit ;; |
1051 | 1062 | i*86:DYNIX/ptx:4*:*) |
1052 | 1063 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1060 | 1071 | # I am not positive that other SVR4 systems won't match this, |
1061 | 1072 | # I just have to hope. -- rms. |
1062 | 1073 | # Use sysv4.2uw... so that sysv4* matches it. |
1063 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
1074 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | |
1064 | 1075 | exit ;; |
1065 | 1076 | i*86:OS/2:*:*) |
1066 | 1077 | # If we were able to find `uname', then EMX Unix compatibility |
1067 | 1078 | # is probably installed. |
1068 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1079 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1069 | 1080 | exit ;; |
1070 | 1081 | i*86:XTS-300:*:STOP) |
1071 | echo ${UNAME_MACHINE}-unknown-stop | |
1082 | echo "$UNAME_MACHINE"-unknown-stop | |
1072 | 1083 | exit ;; |
1073 | 1084 | i*86:atheos:*:*) |
1074 | echo ${UNAME_MACHINE}-unknown-atheos | |
1085 | echo "$UNAME_MACHINE"-unknown-atheos | |
1075 | 1086 | exit ;; |
1076 | 1087 | i*86:syllable:*:*) |
1077 | echo ${UNAME_MACHINE}-pc-syllable | |
1088 | echo "$UNAME_MACHINE"-pc-syllable | |
1078 | 1089 | exit ;; |
1079 | 1090 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1080 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
1091 | echo i386-unknown-lynxos"$UNAME_RELEASE" | |
1081 | 1092 | exit ;; |
1082 | 1093 | i*86:*DOS:*:*) |
1083 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
1084 | exit ;; | |
1085 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
1086 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
1094 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | |
1095 | exit ;; | |
1096 | i*86:*:4.*:*) | |
1097 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | |
1087 | 1098 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1088 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
1099 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | |
1089 | 1100 | else |
1090 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1101 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1091 | 1102 | fi |
1092 | 1103 | exit ;; |
1093 | 1104 | i*86:*:5:[678]*) |
1097 | 1108 | *Pentium) UNAME_MACHINE=i586 ;; |
1098 | 1109 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1099 | 1110 | esac |
1100 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1111 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | |
1101 | 1112 | exit ;; |
1102 | 1113 | i*86:*:3.2:*) |
1103 | 1114 | if test -f /usr/options/cb.name; then |
1104 | 1115 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1105 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
1116 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | |
1106 | 1117 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1107 | 1118 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1108 | 1119 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1112 | 1123 | && UNAME_MACHINE=i686 |
1113 | 1124 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1114 | 1125 | && UNAME_MACHINE=i686 |
1115 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1126 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1116 | 1127 | else |
1117 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1128 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1118 | 1129 | fi |
1119 | 1130 | exit ;; |
1120 | 1131 | pc:*:*:*) |
1134 | 1145 | exit ;; |
1135 | 1146 | i860:*:4.*:*) # i860-SVR4 |
1136 | 1147 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1137 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
1148 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | |
1138 | 1149 | else # Add other i860-SVR4 vendors below as they are discovered. |
1139 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
1150 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | |
1140 | 1151 | fi |
1141 | 1152 | exit ;; |
1142 | 1153 | mini*:CTIX:SYS*5:*) |
1156 | 1167 | test -r /etc/.relid \ |
1157 | 1168 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1158 | 1169 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1159 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1170 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1160 | 1171 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1161 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1172 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1162 | 1173 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1163 | 1174 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1164 | 1175 | && { echo i486-ncr-sysv4; exit; } ;; |
1167 | 1178 | test -r /etc/.relid \ |
1168 | 1179 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1169 | 1180 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1170 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1181 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1171 | 1182 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1172 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1183 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } | |
1173 | 1184 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1174 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1185 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1175 | 1186 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1176 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1187 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1177 | 1188 | exit ;; |
1178 | 1189 | mc68030:UNIX_System_V:4.*:*) |
1179 | 1190 | echo m68k-atari-sysv4 |
1180 | 1191 | exit ;; |
1181 | 1192 | TSUNAMI:LynxOS:2.*:*) |
1182 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1193 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1183 | 1194 | exit ;; |
1184 | 1195 | rs6000:LynxOS:2.*:*) |
1185 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1196 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1186 | 1197 | exit ;; |
1187 | 1198 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1188 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
1199 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | |
1189 | 1200 | exit ;; |
1190 | 1201 | SM[BE]S:UNIX_SV:*:*) |
1191 | echo mips-dde-sysv${UNAME_RELEASE} | |
1202 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1192 | 1203 | exit ;; |
1193 | 1204 | RM*:ReliantUNIX-*:*:*) |
1194 | 1205 | echo mips-sni-sysv4 |
1199 | 1210 | *:SINIX-*:*:*) |
1200 | 1211 | if uname -p 2>/dev/null >/dev/null ; then |
1201 | 1212 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1202 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1213 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1203 | 1214 | else |
1204 | 1215 | echo ns32k-sni-sysv |
1205 | 1216 | fi |
1219 | 1230 | exit ;; |
1220 | 1231 | i*86:VOS:*:*) |
1221 | 1232 | # From Paul.Green@stratus.com. |
1222 | echo ${UNAME_MACHINE}-stratus-vos | |
1233 | echo "$UNAME_MACHINE"-stratus-vos | |
1223 | 1234 | exit ;; |
1224 | 1235 | *:VOS:*:*) |
1225 | 1236 | # From Paul.Green@stratus.com. |
1226 | 1237 | echo hppa1.1-stratus-vos |
1227 | 1238 | exit ;; |
1228 | 1239 | mc68*:A/UX:*:*) |
1229 | echo m68k-apple-aux${UNAME_RELEASE} | |
1240 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1230 | 1241 | exit ;; |
1231 | 1242 | news*:NEWS-OS:6*:*) |
1232 | 1243 | echo mips-sony-newsos6 |
1233 | 1244 | exit ;; |
1234 | 1245 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1235 | 1246 | if [ -d /usr/nec ]; then |
1236 | echo mips-nec-sysv${UNAME_RELEASE} | |
1247 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1237 | 1248 | else |
1238 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1249 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1239 | 1250 | fi |
1240 | 1251 | exit ;; |
1241 | 1252 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1254 | 1265 | echo x86_64-unknown-haiku |
1255 | 1266 | exit ;; |
1256 | 1267 | SX-4:SUPER-UX:*:*) |
1257 | echo sx4-nec-superux${UNAME_RELEASE} | |
1268 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1258 | 1269 | exit ;; |
1259 | 1270 | SX-5:SUPER-UX:*:*) |
1260 | echo sx5-nec-superux${UNAME_RELEASE} | |
1271 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1261 | 1272 | exit ;; |
1262 | 1273 | SX-6:SUPER-UX:*:*) |
1263 | echo sx6-nec-superux${UNAME_RELEASE} | |
1274 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1264 | 1275 | exit ;; |
1265 | 1276 | SX-7:SUPER-UX:*:*) |
1266 | echo sx7-nec-superux${UNAME_RELEASE} | |
1277 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1267 | 1278 | exit ;; |
1268 | 1279 | SX-8:SUPER-UX:*:*) |
1269 | echo sx8-nec-superux${UNAME_RELEASE} | |
1280 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1270 | 1281 | exit ;; |
1271 | 1282 | SX-8R:SUPER-UX:*:*) |
1272 | echo sx8r-nec-superux${UNAME_RELEASE} | |
1283 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1284 | exit ;; | |
1285 | SX-ACE:SUPER-UX:*:*) | |
1286 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1273 | 1287 | exit ;; |
1274 | 1288 | Power*:Rhapsody:*:*) |
1275 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1289 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1276 | 1290 | exit ;; |
1277 | 1291 | *:Rhapsody:*:*) |
1278 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1292 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1279 | 1293 | exit ;; |
1280 | 1294 | *:Darwin:*:*) |
1281 | 1295 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1282 | eval $set_cc_for_build | |
1296 | set_cc_for_build | |
1283 | 1297 | if test "$UNAME_PROCESSOR" = unknown ; then |
1284 | 1298 | UNAME_PROCESSOR=powerpc |
1285 | 1299 | fi |
1286 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |
1287 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1300 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | |
1301 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
1288 | 1302 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1289 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1290 | grep IS_64BIT_ARCH >/dev/null | |
1303 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1304 | grep IS_64BIT_ARCH >/dev/null | |
1291 | 1305 | then |
1292 | 1306 | case $UNAME_PROCESSOR in |
1293 | 1307 | i386) UNAME_PROCESSOR=x86_64 ;; |
1294 | 1308 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1295 | 1309 | esac |
1310 | fi | |
1311 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1312 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1313 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1314 | grep IS_PPC >/dev/null | |
1315 | then | |
1316 | UNAME_PROCESSOR=powerpc | |
1296 | 1317 | fi |
1297 | 1318 | fi |
1298 | 1319 | elif test "$UNAME_PROCESSOR" = i386 ; then |
1304 | 1325 | # that Apple uses in portable devices. |
1305 | 1326 | UNAME_PROCESSOR=x86_64 |
1306 | 1327 | fi |
1307 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1328 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1308 | 1329 | exit ;; |
1309 | 1330 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1310 | 1331 | UNAME_PROCESSOR=`uname -p` |
1311 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1332 | if test "$UNAME_PROCESSOR" = x86; then | |
1312 | 1333 | UNAME_PROCESSOR=i386 |
1313 | 1334 | UNAME_MACHINE=pc |
1314 | 1335 | fi |
1315 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1336 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1316 | 1337 | exit ;; |
1317 | 1338 | *:QNX:*:4*) |
1318 | 1339 | echo i386-pc-qnx |
1319 | 1340 | exit ;; |
1320 | NEO-?:NONSTOP_KERNEL:*:*) | |
1321 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1341 | NEO-*:NONSTOP_KERNEL:*:*) | |
1342 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1322 | 1343 | exit ;; |
1323 | 1344 | NSE-*:NONSTOP_KERNEL:*:*) |
1324 | echo nse-tandem-nsk${UNAME_RELEASE} | |
1325 | exit ;; | |
1326 | NSR-?:NONSTOP_KERNEL:*:*) | |
1327 | echo nsr-tandem-nsk${UNAME_RELEASE} | |
1345 | echo nse-tandem-nsk"$UNAME_RELEASE" | |
1346 | exit ;; | |
1347 | NSR-*:NONSTOP_KERNEL:*:*) | |
1348 | echo nsr-tandem-nsk"$UNAME_RELEASE" | |
1349 | exit ;; | |
1350 | NSV-*:NONSTOP_KERNEL:*:*) | |
1351 | echo nsv-tandem-nsk"$UNAME_RELEASE" | |
1352 | exit ;; | |
1353 | NSX-*:NONSTOP_KERNEL:*:*) | |
1354 | echo nsx-tandem-nsk"$UNAME_RELEASE" | |
1328 | 1355 | exit ;; |
1329 | 1356 | *:NonStop-UX:*:*) |
1330 | 1357 | echo mips-compaq-nonstopux |
1333 | 1360 | echo bs2000-siemens-sysv |
1334 | 1361 | exit ;; |
1335 | 1362 | DS/*:UNIX_System_V:*:*) |
1336 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1363 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1337 | 1364 | exit ;; |
1338 | 1365 | *:Plan9:*:*) |
1339 | 1366 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1340 | 1367 | # is converted to i386 for consistency with other x86 |
1341 | 1368 | # operating systems. |
1342 | if test "$cputype" = "386"; then | |
1369 | # shellcheck disable=SC2154 | |
1370 | if test "$cputype" = 386; then | |
1343 | 1371 | UNAME_MACHINE=i386 |
1344 | 1372 | else |
1345 | 1373 | UNAME_MACHINE="$cputype" |
1346 | 1374 | fi |
1347 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1375 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1348 | 1376 | exit ;; |
1349 | 1377 | *:TOPS-10:*:*) |
1350 | 1378 | echo pdp10-unknown-tops10 |
1365 | 1393 | echo pdp10-unknown-its |
1366 | 1394 | exit ;; |
1367 | 1395 | SEI:*:*:SEIUX) |
1368 | echo mips-sei-seiux${UNAME_RELEASE} | |
1396 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1369 | 1397 | exit ;; |
1370 | 1398 | *:DragonFly:*:*) |
1371 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
1399 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
1372 | 1400 | exit ;; |
1373 | 1401 | *:*VMS:*:*) |
1374 | 1402 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1375 | case "${UNAME_MACHINE}" in | |
1403 | case "$UNAME_MACHINE" in | |
1376 | 1404 | A*) echo alpha-dec-vms ; exit ;; |
1377 | 1405 | I*) echo ia64-dec-vms ; exit ;; |
1378 | 1406 | V*) echo vax-dec-vms ; exit ;; |
1381 | 1409 | echo i386-pc-xenix |
1382 | 1410 | exit ;; |
1383 | 1411 | i*86:skyos:*:*) |
1384 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
1412 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | |
1385 | 1413 | exit ;; |
1386 | 1414 | i*86:rdos:*:*) |
1387 | echo ${UNAME_MACHINE}-pc-rdos | |
1415 | echo "$UNAME_MACHINE"-pc-rdos | |
1388 | 1416 | exit ;; |
1389 | 1417 | i*86:AROS:*:*) |
1390 | echo ${UNAME_MACHINE}-pc-aros | |
1418 | echo "$UNAME_MACHINE"-pc-aros | |
1391 | 1419 | exit ;; |
1392 | 1420 | x86_64:VMkernel:*:*) |
1393 | echo ${UNAME_MACHINE}-unknown-esx | |
1421 | echo "$UNAME_MACHINE"-unknown-esx | |
1394 | 1422 | exit ;; |
1395 | 1423 | amd64:Isilon\ OneFS:*:*) |
1396 | 1424 | echo x86_64-unknown-onefs |
1397 | 1425 | exit ;; |
1398 | 1426 | esac |
1399 | 1427 | |
1428 | echo "$0: unable to guess system type" >&2 | |
1429 | ||
1430 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | |
1431 | mips:Linux | mips64:Linux) | |
1432 | # If we got here on MIPS GNU/Linux, output extra information. | |
1433 | cat >&2 <<EOF | |
1434 | ||
1435 | NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize | |
1436 | the system type. Please install a C compiler and try again. | |
1437 | EOF | |
1438 | ;; | |
1439 | esac | |
1440 | ||
1400 | 1441 | cat >&2 <<EOF |
1401 | $0: unable to guess system type | |
1402 | ||
1403 | This script, last modified $timestamp, has failed to recognize | |
1404 | the operating system you are using. It is advised that you | |
1405 | download the most up to date version of the config scripts from | |
1406 | ||
1407 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1442 | ||
1443 | This script (version $timestamp), has failed to recognize the | |
1444 | operating system you are using. If your script is old, overwrite *all* | |
1445 | copies of config.guess and config.sub with the latest versions from: | |
1446 | ||
1447 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1408 | 1448 | and |
1409 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1410 | ||
1411 | If the version you run ($0) is already up to date, please | |
1412 | send the following data and any information you think might be | |
1413 | pertinent to <config-patches@gnu.org> in order to provide the needed | |
1414 | information to handle your system. | |
1449 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1450 | ||
1451 | If $0 has already been updated, send the following data and any | |
1452 | information you think might be pertinent to config-patches@gnu.org to | |
1453 | provide the necessary information to handle your system. | |
1415 | 1454 | |
1416 | 1455 | config.guess timestamp = $timestamp |
1417 | 1456 | |
1430 | 1469 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1431 | 1470 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1432 | 1471 | |
1433 | UNAME_MACHINE = ${UNAME_MACHINE} | |
1434 | UNAME_RELEASE = ${UNAME_RELEASE} | |
1435 | UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1436 | UNAME_VERSION = ${UNAME_VERSION} | |
1472 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1473 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1474 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1475 | UNAME_VERSION = "$UNAME_VERSION" | |
1437 | 1476 | EOF |
1438 | 1477 | |
1439 | 1478 | exit 1 |
1440 | 1479 | |
1441 | 1480 | # Local variables: |
1442 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1481 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1443 | 1482 | # time-stamp-start: "timestamp='" |
1444 | 1483 | # time-stamp-format: "%:y-%02m-%02d" |
1445 | 1484 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | # Copyright 1992-2016 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2016-01-01' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-08-29' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
32 | 32 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | 33 | |
34 | 34 | # You can get the latest version of this script from: |
35 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
36 | 36 | |
37 | 37 | # This file is supposed to be the same for all GNU packages |
38 | 38 | # and recognize all the CPU types, system types and aliases |
56 | 56 | |
57 | 57 | Canonicalize a configuration name. |
58 | 58 | |
59 | Operation modes: | |
59 | Options: | |
60 | 60 | -h, --help print this help, then exit |
61 | 61 | -t, --time-stamp print date of last modification, then exit |
62 | 62 | -v, --version print version number, then exit |
66 | 66 | version="\ |
67 | 67 | GNU config.sub ($timestamp) |
68 | 68 | |
69 | Copyright 1992-2016 Free Software Foundation, Inc. | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
70 | 70 | |
71 | 71 | This is free software; see the source for copying conditions. There is NO |
72 | 72 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
93 | 93 | |
94 | 94 | *local*) |
95 | 95 | # First pass through any local machine types. |
96 | echo $1 | |
96 | echo "$1" | |
97 | 97 | exit ;; |
98 | 98 | |
99 | 99 | * ) |
109 | 109 | exit 1;; |
110 | 110 | esac |
111 | 111 | |
112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | |
113 | # Here we must recognize all the valid KERNEL-OS combinations. | |
114 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
115 | case $maybe_os in | |
116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | |
117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ | |
119 | kopensolaris*-gnu* | \ | |
120 | storm-chaos* | os2-emx* | rtmk-nova*) | |
121 | os=-$maybe_os | |
122 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
123 | ;; | |
124 | android-linux) | |
125 | os=-linux-android | |
126 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
127 | ;; | |
128 | *) | |
129 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
130 | if [ $basic_machine != $1 ] | |
131 | then os=`echo $1 | sed 's/.*-/-/'` | |
132 | else os=; fi | |
133 | ;; | |
112 | # Split fields of configuration type | |
113 | IFS="-" read -r field1 field2 field3 field4 <<EOF | |
114 | $1 | |
115 | EOF | |
116 | ||
117 | # Separate into logical components for further validation | |
118 | case $1 in | |
119 | *-*-*-*-*) | |
120 | echo Invalid configuration \`"$1"\': more than four components >&2 | |
121 | exit 1 | |
122 | ;; | |
123 | *-*-*-*) | |
124 | basic_machine=$field1-$field2 | |
125 | os=$field3-$field4 | |
126 | ;; | |
127 | *-*-*) | |
128 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two | |
129 | # parts | |
130 | maybe_os=$field2-$field3 | |
131 | case $maybe_os in | |
132 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ | |
133 | | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ | |
134 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | |
135 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | |
136 | | storm-chaos* | os2-emx* | rtmk-nova*) | |
137 | basic_machine=$field1 | |
138 | os=$maybe_os | |
139 | ;; | |
140 | android-linux) | |
141 | basic_machine=$field1-unknown | |
142 | os=linux-android | |
143 | ;; | |
144 | *) | |
145 | basic_machine=$field1-$field2 | |
146 | os=$field3 | |
147 | ;; | |
148 | esac | |
149 | ;; | |
150 | *-*) | |
151 | # A lone config we happen to match not fitting any patern | |
152 | case $field1-$field2 in | |
153 | decstation-3100) | |
154 | basic_machine=mips-dec | |
155 | os= | |
156 | ;; | |
157 | *-*) | |
158 | # Second component is usually, but not always the OS | |
159 | case $field2 in | |
160 | # Prevent following clause from handling this valid os | |
161 | sun*os*) | |
162 | basic_machine=$field1 | |
163 | os=$field2 | |
164 | ;; | |
165 | # Manufacturers | |
166 | dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | |
167 | | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | |
168 | | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | |
169 | | convergent* | ncr* | news | 32* | 3600* | 3100* \ | |
170 | | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | |
171 | | ultra | tti* | harris | dolphin | highlevel | gould \ | |
172 | | cbm | ns | masscomp | apple | axis | knuth | cray \ | |
173 | | microblaze* | sim | cisco \ | |
174 | | oki | wec | wrs | winbond) | |
175 | basic_machine=$field1-$field2 | |
176 | os= | |
177 | ;; | |
178 | *) | |
179 | basic_machine=$field1 | |
180 | os=$field2 | |
181 | ;; | |
182 | esac | |
183 | ;; | |
184 | esac | |
185 | ;; | |
186 | *) | |
187 | # Convert single-component short-hands not valid as part of | |
188 | # multi-component configurations. | |
189 | case $field1 in | |
190 | 386bsd) | |
191 | basic_machine=i386-pc | |
192 | os=bsd | |
193 | ;; | |
194 | a29khif) | |
195 | basic_machine=a29k-amd | |
196 | os=udi | |
197 | ;; | |
198 | adobe68k) | |
199 | basic_machine=m68010-adobe | |
200 | os=scout | |
201 | ;; | |
202 | alliant) | |
203 | basic_machine=fx80-alliant | |
204 | os= | |
205 | ;; | |
206 | altos | altos3068) | |
207 | basic_machine=m68k-altos | |
208 | os= | |
209 | ;; | |
210 | am29k) | |
211 | basic_machine=a29k-none | |
212 | os=bsd | |
213 | ;; | |
214 | amdahl) | |
215 | basic_machine=580-amdahl | |
216 | os=sysv | |
217 | ;; | |
218 | amiga) | |
219 | basic_machine=m68k-unknown | |
220 | os= | |
221 | ;; | |
222 | amigaos | amigados) | |
223 | basic_machine=m68k-unknown | |
224 | os=amigaos | |
225 | ;; | |
226 | amigaunix | amix) | |
227 | basic_machine=m68k-unknown | |
228 | os=sysv4 | |
229 | ;; | |
230 | apollo68) | |
231 | basic_machine=m68k-apollo | |
232 | os=sysv | |
233 | ;; | |
234 | apollo68bsd) | |
235 | basic_machine=m68k-apollo | |
236 | os=bsd | |
237 | ;; | |
238 | aros) | |
239 | basic_machine=i386-pc | |
240 | os=aros | |
241 | ;; | |
242 | aux) | |
243 | basic_machine=m68k-apple | |
244 | os=aux | |
245 | ;; | |
246 | balance) | |
247 | basic_machine=ns32k-sequent | |
248 | os=dynix | |
249 | ;; | |
250 | blackfin) | |
251 | basic_machine=bfin-unknown | |
252 | os=linux | |
253 | ;; | |
254 | cegcc) | |
255 | basic_machine=arm-unknown | |
256 | os=cegcc | |
257 | ;; | |
258 | convex-c1) | |
259 | basic_machine=c1-convex | |
260 | os=bsd | |
261 | ;; | |
262 | convex-c2) | |
263 | basic_machine=c2-convex | |
264 | os=bsd | |
265 | ;; | |
266 | convex-c32) | |
267 | basic_machine=c32-convex | |
268 | os=bsd | |
269 | ;; | |
270 | convex-c34) | |
271 | basic_machine=c34-convex | |
272 | os=bsd | |
273 | ;; | |
274 | convex-c38) | |
275 | basic_machine=c38-convex | |
276 | os=bsd | |
277 | ;; | |
278 | cray) | |
279 | basic_machine=j90-cray | |
280 | os=unicos | |
281 | ;; | |
282 | crds | unos) | |
283 | basic_machine=m68k-crds | |
284 | os= | |
285 | ;; | |
286 | da30) | |
287 | basic_machine=m68k-da30 | |
288 | os= | |
289 | ;; | |
290 | decstation | pmax | pmin | dec3100 | decstatn) | |
291 | basic_machine=mips-dec | |
292 | os= | |
293 | ;; | |
294 | delta88) | |
295 | basic_machine=m88k-motorola | |
296 | os=sysv3 | |
297 | ;; | |
298 | dicos) | |
299 | basic_machine=i686-pc | |
300 | os=dicos | |
301 | ;; | |
302 | djgpp) | |
303 | basic_machine=i586-pc | |
304 | os=msdosdjgpp | |
305 | ;; | |
306 | ebmon29k) | |
307 | basic_machine=a29k-amd | |
308 | os=ebmon | |
309 | ;; | |
310 | es1800 | OSE68k | ose68k | ose | OSE) | |
311 | basic_machine=m68k-ericsson | |
312 | os=ose | |
313 | ;; | |
314 | gmicro) | |
315 | basic_machine=tron-gmicro | |
316 | os=sysv | |
317 | ;; | |
318 | go32) | |
319 | basic_machine=i386-pc | |
320 | os=go32 | |
321 | ;; | |
322 | h8300hms) | |
323 | basic_machine=h8300-hitachi | |
324 | os=hms | |
325 | ;; | |
326 | h8300xray) | |
327 | basic_machine=h8300-hitachi | |
328 | os=xray | |
329 | ;; | |
330 | h8500hms) | |
331 | basic_machine=h8500-hitachi | |
332 | os=hms | |
333 | ;; | |
334 | harris) | |
335 | basic_machine=m88k-harris | |
336 | os=sysv3 | |
337 | ;; | |
338 | hp300) | |
339 | basic_machine=m68k-hp | |
340 | ;; | |
341 | hp300bsd) | |
342 | basic_machine=m68k-hp | |
343 | os=bsd | |
344 | ;; | |
345 | hp300hpux) | |
346 | basic_machine=m68k-hp | |
347 | os=hpux | |
348 | ;; | |
349 | hppaosf) | |
350 | basic_machine=hppa1.1-hp | |
351 | os=osf | |
352 | ;; | |
353 | hppro) | |
354 | basic_machine=hppa1.1-hp | |
355 | os=proelf | |
356 | ;; | |
357 | i386mach) | |
358 | basic_machine=i386-mach | |
359 | os=mach | |
360 | ;; | |
361 | vsta) | |
362 | basic_machine=i386-pc | |
363 | os=vsta | |
364 | ;; | |
365 | isi68 | isi) | |
366 | basic_machine=m68k-isi | |
367 | os=sysv | |
368 | ;; | |
369 | m68knommu) | |
370 | basic_machine=m68k-unknown | |
371 | os=linux | |
372 | ;; | |
373 | magnum | m3230) | |
374 | basic_machine=mips-mips | |
375 | os=sysv | |
376 | ;; | |
377 | merlin) | |
378 | basic_machine=ns32k-utek | |
379 | os=sysv | |
380 | ;; | |
381 | mingw64) | |
382 | basic_machine=x86_64-pc | |
383 | os=mingw64 | |
384 | ;; | |
385 | mingw32) | |
386 | basic_machine=i686-pc | |
387 | os=mingw32 | |
388 | ;; | |
389 | mingw32ce) | |
390 | basic_machine=arm-unknown | |
391 | os=mingw32ce | |
392 | ;; | |
393 | monitor) | |
394 | basic_machine=m68k-rom68k | |
395 | os=coff | |
396 | ;; | |
397 | morphos) | |
398 | basic_machine=powerpc-unknown | |
399 | os=morphos | |
400 | ;; | |
401 | moxiebox) | |
402 | basic_machine=moxie-unknown | |
403 | os=moxiebox | |
404 | ;; | |
405 | msdos) | |
406 | basic_machine=i386-pc | |
407 | os=msdos | |
408 | ;; | |
409 | msys) | |
410 | basic_machine=i686-pc | |
411 | os=msys | |
412 | ;; | |
413 | mvs) | |
414 | basic_machine=i370-ibm | |
415 | os=mvs | |
416 | ;; | |
417 | nacl) | |
418 | basic_machine=le32-unknown | |
419 | os=nacl | |
420 | ;; | |
421 | ncr3000) | |
422 | basic_machine=i486-ncr | |
423 | os=sysv4 | |
424 | ;; | |
425 | netbsd386) | |
426 | basic_machine=i386-pc | |
427 | os=netbsd | |
428 | ;; | |
429 | netwinder) | |
430 | basic_machine=armv4l-rebel | |
431 | os=linux | |
432 | ;; | |
433 | news | news700 | news800 | news900) | |
434 | basic_machine=m68k-sony | |
435 | os=newsos | |
436 | ;; | |
437 | news1000) | |
438 | basic_machine=m68030-sony | |
439 | os=newsos | |
440 | ;; | |
441 | necv70) | |
442 | basic_machine=v70-nec | |
443 | os=sysv | |
444 | ;; | |
445 | nh3000) | |
446 | basic_machine=m68k-harris | |
447 | os=cxux | |
448 | ;; | |
449 | nh[45]000) | |
450 | basic_machine=m88k-harris | |
451 | os=cxux | |
452 | ;; | |
453 | nindy960) | |
454 | basic_machine=i960-intel | |
455 | os=nindy | |
456 | ;; | |
457 | mon960) | |
458 | basic_machine=i960-intel | |
459 | os=mon960 | |
460 | ;; | |
461 | nonstopux) | |
462 | basic_machine=mips-compaq | |
463 | os=nonstopux | |
464 | ;; | |
465 | os400) | |
466 | basic_machine=powerpc-ibm | |
467 | os=os400 | |
468 | ;; | |
469 | OSE68000 | ose68000) | |
470 | basic_machine=m68000-ericsson | |
471 | os=ose | |
472 | ;; | |
473 | os68k) | |
474 | basic_machine=m68k-none | |
475 | os=os68k | |
476 | ;; | |
477 | paragon) | |
478 | basic_machine=i860-intel | |
479 | os=osf | |
480 | ;; | |
481 | parisc) | |
482 | basic_machine=hppa-unknown | |
483 | os=linux | |
484 | ;; | |
485 | pw32) | |
486 | basic_machine=i586-unknown | |
487 | os=pw32 | |
488 | ;; | |
489 | rdos | rdos64) | |
490 | basic_machine=x86_64-pc | |
491 | os=rdos | |
492 | ;; | |
493 | rdos32) | |
494 | basic_machine=i386-pc | |
495 | os=rdos | |
496 | ;; | |
497 | rom68k) | |
498 | basic_machine=m68k-rom68k | |
499 | os=coff | |
500 | ;; | |
501 | sa29200) | |
502 | basic_machine=a29k-amd | |
503 | os=udi | |
504 | ;; | |
505 | sei) | |
506 | basic_machine=mips-sei | |
507 | os=seiux | |
508 | ;; | |
509 | sequent) | |
510 | basic_machine=i386-sequent | |
511 | os= | |
512 | ;; | |
513 | sps7) | |
514 | basic_machine=m68k-bull | |
515 | os=sysv2 | |
516 | ;; | |
517 | st2000) | |
518 | basic_machine=m68k-tandem | |
519 | os= | |
520 | ;; | |
521 | stratus) | |
522 | basic_machine=i860-stratus | |
523 | os=sysv4 | |
524 | ;; | |
525 | sun2) | |
526 | basic_machine=m68000-sun | |
527 | os= | |
528 | ;; | |
529 | sun2os3) | |
530 | basic_machine=m68000-sun | |
531 | os=sunos3 | |
532 | ;; | |
533 | sun2os4) | |
534 | basic_machine=m68000-sun | |
535 | os=sunos4 | |
536 | ;; | |
537 | sun3) | |
538 | basic_machine=m68k-sun | |
539 | os= | |
540 | ;; | |
541 | sun3os3) | |
542 | basic_machine=m68k-sun | |
543 | os=sunos3 | |
544 | ;; | |
545 | sun3os4) | |
546 | basic_machine=m68k-sun | |
547 | os=sunos4 | |
548 | ;; | |
549 | sun4) | |
550 | basic_machine=sparc-sun | |
551 | os= | |
552 | ;; | |
553 | sun4os3) | |
554 | basic_machine=sparc-sun | |
555 | os=sunos3 | |
556 | ;; | |
557 | sun4os4) | |
558 | basic_machine=sparc-sun | |
559 | os=sunos4 | |
560 | ;; | |
561 | sun4sol2) | |
562 | basic_machine=sparc-sun | |
563 | os=solaris2 | |
564 | ;; | |
565 | sun386 | sun386i | roadrunner) | |
566 | basic_machine=i386-sun | |
567 | os= | |
568 | ;; | |
569 | sv1) | |
570 | basic_machine=sv1-cray | |
571 | os=unicos | |
572 | ;; | |
573 | symmetry) | |
574 | basic_machine=i386-sequent | |
575 | os=dynix | |
576 | ;; | |
577 | t3e) | |
578 | basic_machine=alphaev5-cray | |
579 | os=unicos | |
580 | ;; | |
581 | t90) | |
582 | basic_machine=t90-cray | |
583 | os=unicos | |
584 | ;; | |
585 | toad1) | |
586 | basic_machine=pdp10-xkl | |
587 | os=tops20 | |
588 | ;; | |
589 | tpf) | |
590 | basic_machine=s390x-ibm | |
591 | os=tpf | |
592 | ;; | |
593 | udi29k) | |
594 | basic_machine=a29k-amd | |
595 | os=udi | |
596 | ;; | |
597 | ultra3) | |
598 | basic_machine=a29k-nyu | |
599 | os=sym1 | |
600 | ;; | |
601 | v810 | necv810) | |
602 | basic_machine=v810-nec | |
603 | os=none | |
604 | ;; | |
605 | vaxv) | |
606 | basic_machine=vax-dec | |
607 | os=sysv | |
608 | ;; | |
609 | vms) | |
610 | basic_machine=vax-dec | |
611 | os=vms | |
612 | ;; | |
613 | vxworks960) | |
614 | basic_machine=i960-wrs | |
615 | os=vxworks | |
616 | ;; | |
617 | vxworks68) | |
618 | basic_machine=m68k-wrs | |
619 | os=vxworks | |
620 | ;; | |
621 | vxworks29k) | |
622 | basic_machine=a29k-wrs | |
623 | os=vxworks | |
624 | ;; | |
625 | xbox) | |
626 | basic_machine=i686-pc | |
627 | os=mingw32 | |
628 | ;; | |
629 | ymp) | |
630 | basic_machine=ymp-cray | |
631 | os=unicos | |
632 | ;; | |
633 | *) | |
634 | basic_machine=$1 | |
635 | os= | |
636 | ;; | |
637 | esac | |
638 | ;; | |
134 | 639 | esac |
135 | 640 | |
136 | ### Let's recognize common machines as not being operating systems so | |
137 | ### that things like config.sub decstation-3100 work. We also | |
138 | ### recognize some manufacturers as not being operating systems, so we | |
139 | ### can provide default operating systems below. | |
140 | case $os in | |
141 | -sun*os*) | |
142 | # Prevent following clause from handling this invalid input. | |
143 | ;; | |
144 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | |
145 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
146 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | |
147 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | |
148 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | |
149 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | |
150 | -apple | -axis | -knuth | -cray | -microblaze*) | |
151 | os= | |
152 | basic_machine=$1 | |
153 | ;; | |
154 | -bluegene*) | |
155 | os=-cnk | |
156 | ;; | |
157 | -sim | -cisco | -oki | -wec | -winbond) | |
158 | os= | |
159 | basic_machine=$1 | |
160 | ;; | |
161 | -scout) | |
162 | ;; | |
163 | -wrs) | |
164 | os=-vxworks | |
165 | basic_machine=$1 | |
166 | ;; | |
167 | -chorusos*) | |
168 | os=-chorusos | |
169 | basic_machine=$1 | |
170 | ;; | |
171 | -chorusrdb) | |
172 | os=-chorusrdb | |
173 | basic_machine=$1 | |
174 | ;; | |
175 | -hiux*) | |
176 | os=-hiuxwe2 | |
177 | ;; | |
178 | -sco6) | |
179 | os=-sco5v6 | |
180 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
181 | ;; | |
182 | -sco5) | |
183 | os=-sco3.2v5 | |
184 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
185 | ;; | |
186 | -sco4) | |
187 | os=-sco3.2v4 | |
188 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
189 | ;; | |
190 | -sco3.2.[4-9]*) | |
191 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | |
192 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
193 | ;; | |
194 | -sco3.2v[4-9]*) | |
195 | # Don't forget version if it is 3.2v4 or newer. | |
196 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
197 | ;; | |
198 | -sco5v6*) | |
199 | # Don't forget version if it is 3.2v4 or newer. | |
200 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
201 | ;; | |
202 | -sco*) | |
203 | os=-sco3.2v2 | |
204 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
205 | ;; | |
206 | -udk*) | |
207 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
208 | ;; | |
209 | -isc) | |
210 | os=-isc2.2 | |
211 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
212 | ;; | |
213 | -clix*) | |
214 | basic_machine=clipper-intergraph | |
215 | ;; | |
216 | -isc*) | |
217 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
218 | ;; | |
219 | -lynx*178) | |
220 | os=-lynxos178 | |
221 | ;; | |
222 | -lynx*5) | |
223 | os=-lynxos5 | |
224 | ;; | |
225 | -lynx*) | |
226 | os=-lynxos | |
227 | ;; | |
228 | -ptx*) | |
229 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | |
230 | ;; | |
231 | -windowsnt*) | |
232 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | |
233 | ;; | |
234 | -psos*) | |
235 | os=-psos | |
236 | ;; | |
237 | -mint | -mint[0-9]*) | |
238 | basic_machine=m68k-atari | |
239 | os=-mint | |
240 | ;; | |
241 | esac | |
242 | ||
243 | # Decode aliases for certain CPU-COMPANY combinations. | |
641 | # Decode 1-component or ad-hoc basic machines | |
244 | 642 | case $basic_machine in |
245 | # Recognize the basic CPU types without company name. | |
246 | # Some are omitted here because they have special meanings below. | |
247 | 1750a | 580 \ | |
248 | | a29k \ | |
249 | | aarch64 | aarch64_be \ | |
250 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | |
251 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | |
252 | | am33_2.0 \ | |
253 | | arc | arceb \ | |
254 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
255 | | avr | avr32 \ | |
256 | | ba \ | |
257 | | be32 | be64 \ | |
258 | | bfin \ | |
259 | | c4x | c8051 | clipper \ | |
260 | | d10v | d30v | dlx | dsp16xx \ | |
261 | | e2k | epiphany \ | |
262 | | fido | fr30 | frv | ft32 \ | |
263 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
264 | | hexagon \ | |
265 | | i370 | i860 | i960 | ia64 \ | |
266 | | ip2k | iq2000 \ | |
267 | | k1om \ | |
268 | | le32 | le64 \ | |
269 | | lm32 \ | |
270 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | |
271 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
272 | | mips | mipsbe | mipseb | mipsel | mipsle \ | |
273 | | mips16 \ | |
274 | | mips64 | mips64el \ | |
275 | | mips64octeon | mips64octeonel \ | |
276 | | mips64orion | mips64orionel \ | |
277 | | mips64r5900 | mips64r5900el \ | |
278 | | mips64vr | mips64vrel \ | |
279 | | mips64vr4100 | mips64vr4100el \ | |
280 | | mips64vr4300 | mips64vr4300el \ | |
281 | | mips64vr5000 | mips64vr5000el \ | |
282 | | mips64vr5900 | mips64vr5900el \ | |
283 | | mipsisa32 | mipsisa32el \ | |
284 | | mipsisa32r2 | mipsisa32r2el \ | |
285 | | mipsisa32r6 | mipsisa32r6el \ | |
286 | | mipsisa64 | mipsisa64el \ | |
287 | | mipsisa64r2 | mipsisa64r2el \ | |
288 | | mipsisa64r6 | mipsisa64r6el \ | |
289 | | mipsisa64sb1 | mipsisa64sb1el \ | |
290 | | mipsisa64sr71k | mipsisa64sr71kel \ | |
291 | | mipsr5900 | mipsr5900el \ | |
292 | | mipstx39 | mipstx39el \ | |
293 | | mn10200 | mn10300 \ | |
294 | | moxie \ | |
295 | | mt \ | |
296 | | msp430 \ | |
297 | | nds32 | nds32le | nds32be \ | |
298 | | nios | nios2 | nios2eb | nios2el \ | |
299 | | ns16k | ns32k \ | |
300 | | open8 | or1k | or1knd | or32 \ | |
301 | | pdp10 | pdp11 | pj | pjl \ | |
302 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
303 | | pyramid \ | |
304 | | riscv32 | riscv64 \ | |
305 | | rl78 | rx \ | |
306 | | score \ | |
307 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
308 | | sh64 | sh64le \ | |
309 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | |
310 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | |
311 | | spu \ | |
312 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
313 | | ubicom32 \ | |
314 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
315 | | visium \ | |
316 | | we32k \ | |
317 | | x86 | xc16x | xstormy16 | xtensa \ | |
318 | | z8k | z80) | |
319 | basic_machine=$basic_machine-unknown | |
320 | ;; | |
321 | c54x) | |
322 | basic_machine=tic54x-unknown | |
323 | ;; | |
324 | c55x) | |
325 | basic_machine=tic55x-unknown | |
326 | ;; | |
327 | c6x) | |
328 | basic_machine=tic6x-unknown | |
643 | # Here we handle the default manufacturer of certain CPU types. It is in | |
644 | # some cases the only manufacturer, in others, it is the most popular. | |
645 | w89k) | |
646 | cpu=hppa1.1 | |
647 | vendor=winbond | |
648 | ;; | |
649 | op50n) | |
650 | cpu=hppa1.1 | |
651 | vendor=oki | |
652 | ;; | |
653 | op60c) | |
654 | cpu=hppa1.1 | |
655 | vendor=oki | |
656 | ;; | |
657 | ibm*) | |
658 | cpu=i370 | |
659 | vendor=ibm | |
660 | ;; | |
661 | orion105) | |
662 | cpu=clipper | |
663 | vendor=highlevel | |
664 | ;; | |
665 | mac | mpw | mac-mpw) | |
666 | cpu=m68k | |
667 | vendor=apple | |
668 | ;; | |
669 | pmac | pmac-mpw) | |
670 | cpu=powerpc | |
671 | vendor=apple | |
672 | ;; | |
673 | ||
674 | # Recognize the various machine names and aliases which stand | |
675 | # for a CPU type and a company and sometimes even an OS. | |
676 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
677 | cpu=m68000 | |
678 | vendor=att | |
679 | ;; | |
680 | 3b*) | |
681 | cpu=we32k | |
682 | vendor=att | |
683 | ;; | |
684 | bluegene*) | |
685 | cpu=powerpc | |
686 | vendor=ibm | |
687 | os=cnk | |
688 | ;; | |
689 | decsystem10* | dec10*) | |
690 | cpu=pdp10 | |
691 | vendor=dec | |
692 | os=tops10 | |
693 | ;; | |
694 | decsystem20* | dec20*) | |
695 | cpu=pdp10 | |
696 | vendor=dec | |
697 | os=tops20 | |
698 | ;; | |
699 | delta | 3300 | motorola-3300 | motorola-delta \ | |
700 | | 3300-motorola | delta-motorola) | |
701 | cpu=m68k | |
702 | vendor=motorola | |
703 | ;; | |
704 | dpx2*) | |
705 | cpu=m68k | |
706 | vendor=bull | |
707 | os=sysv3 | |
708 | ;; | |
709 | encore | umax | mmax) | |
710 | cpu=ns32k | |
711 | vendor=encore | |
712 | ;; | |
713 | elxsi) | |
714 | cpu=elxsi | |
715 | vendor=elxsi | |
716 | os=${os:-bsd} | |
717 | ;; | |
718 | fx2800) | |
719 | cpu=i860 | |
720 | vendor=alliant | |
721 | ;; | |
722 | genix) | |
723 | cpu=ns32k | |
724 | vendor=ns | |
725 | ;; | |
726 | h3050r* | hiux*) | |
727 | cpu=hppa1.1 | |
728 | vendor=hitachi | |
729 | os=hiuxwe2 | |
730 | ;; | |
731 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
732 | cpu=hppa1.0 | |
733 | vendor=hp | |
734 | ;; | |
735 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
736 | cpu=m68000 | |
737 | vendor=hp | |
738 | ;; | |
739 | hp9k3[2-9][0-9]) | |
740 | cpu=m68k | |
741 | vendor=hp | |
742 | ;; | |
743 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | |
744 | cpu=hppa1.0 | |
745 | vendor=hp | |
746 | ;; | |
747 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | |
748 | cpu=hppa1.1 | |
749 | vendor=hp | |
750 | ;; | |
751 | hp9k78[0-9] | hp78[0-9]) | |
752 | # FIXME: really hppa2.0-hp | |
753 | cpu=hppa1.1 | |
754 | vendor=hp | |
755 | ;; | |
756 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | |
757 | # FIXME: really hppa2.0-hp | |
758 | cpu=hppa1.1 | |
759 | vendor=hp | |
760 | ;; | |
761 | hp9k8[0-9][13679] | hp8[0-9][13679]) | |
762 | cpu=hppa1.1 | |
763 | vendor=hp | |
764 | ;; | |
765 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
766 | cpu=hppa1.0 | |
767 | vendor=hp | |
768 | ;; | |
769 | i*86v32) | |
770 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
771 | vendor=pc | |
772 | os=sysv32 | |
773 | ;; | |
774 | i*86v4*) | |
775 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
776 | vendor=pc | |
777 | os=sysv4 | |
778 | ;; | |
779 | i*86v) | |
780 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
781 | vendor=pc | |
782 | os=sysv | |
783 | ;; | |
784 | i*86sol2) | |
785 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
786 | vendor=pc | |
787 | os=solaris2 | |
788 | ;; | |
789 | j90 | j90-cray) | |
790 | cpu=j90 | |
791 | vendor=cray | |
792 | os=${os:-unicos} | |
793 | ;; | |
794 | iris | iris4d) | |
795 | cpu=mips | |
796 | vendor=sgi | |
797 | case $os in | |
798 | irix*) | |
799 | ;; | |
800 | *) | |
801 | os=irix4 | |
802 | ;; | |
803 | esac | |
804 | ;; | |
805 | miniframe) | |
806 | cpu=m68000 | |
807 | vendor=convergent | |
808 | ;; | |
809 | *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
810 | cpu=m68k | |
811 | vendor=atari | |
812 | os=mint | |
813 | ;; | |
814 | news-3600 | risc-news) | |
815 | cpu=mips | |
816 | vendor=sony | |
817 | os=newsos | |
818 | ;; | |
819 | next | m*-next) | |
820 | cpu=m68k | |
821 | vendor=next | |
822 | case $os in | |
823 | nextstep* ) | |
824 | ;; | |
825 | ns2*) | |
826 | os=nextstep2 | |
827 | ;; | |
828 | *) | |
829 | os=nextstep3 | |
830 | ;; | |
831 | esac | |
832 | ;; | |
833 | np1) | |
834 | cpu=np1 | |
835 | vendor=gould | |
836 | ;; | |
837 | op50n-* | op60c-*) | |
838 | cpu=hppa1.1 | |
839 | vendor=oki | |
840 | os=proelf | |
841 | ;; | |
842 | pa-hitachi) | |
843 | cpu=hppa1.1 | |
844 | vendor=hitachi | |
845 | os=hiuxwe2 | |
846 | ;; | |
847 | pbd) | |
848 | cpu=sparc | |
849 | vendor=tti | |
850 | ;; | |
851 | pbb) | |
852 | cpu=m68k | |
853 | vendor=tti | |
854 | ;; | |
855 | pc532) | |
856 | cpu=ns32k | |
857 | vendor=pc532 | |
858 | ;; | |
859 | pn) | |
860 | cpu=pn | |
861 | vendor=gould | |
862 | ;; | |
863 | power) | |
864 | cpu=power | |
865 | vendor=ibm | |
866 | ;; | |
867 | ps2) | |
868 | cpu=i386 | |
869 | vendor=ibm | |
870 | ;; | |
871 | rm[46]00) | |
872 | cpu=mips | |
873 | vendor=siemens | |
874 | ;; | |
875 | rtpc | rtpc-*) | |
876 | cpu=romp | |
877 | vendor=ibm | |
878 | ;; | |
879 | sde) | |
880 | cpu=mipsisa32 | |
881 | vendor=sde | |
882 | os=${os:-elf} | |
883 | ;; | |
884 | simso-wrs) | |
885 | cpu=sparclite | |
886 | vendor=wrs | |
887 | os=vxworks | |
888 | ;; | |
889 | tower | tower-32) | |
890 | cpu=m68k | |
891 | vendor=ncr | |
892 | ;; | |
893 | vpp*|vx|vx-*) | |
894 | cpu=f301 | |
895 | vendor=fujitsu | |
896 | ;; | |
897 | w65) | |
898 | cpu=w65 | |
899 | vendor=wdc | |
900 | ;; | |
901 | w89k-*) | |
902 | cpu=hppa1.1 | |
903 | vendor=winbond | |
904 | os=proelf | |
905 | ;; | |
906 | none) | |
907 | cpu=none | |
908 | vendor=none | |
329 | 909 | ;; |
330 | 910 | leon|leon[3-9]) |
331 | basic_machine=sparc-$basic_machine | |
332 | ;; | |
333 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | |
334 | basic_machine=$basic_machine-unknown | |
335 | os=-none | |
336 | ;; | |
337 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | |
338 | ;; | |
339 | ms1) | |
340 | basic_machine=mt-unknown | |
341 | ;; | |
342 | ||
343 | strongarm | thumb | xscale) | |
344 | basic_machine=arm-unknown | |
345 | ;; | |
346 | xgate) | |
347 | basic_machine=$basic_machine-unknown | |
348 | os=-none | |
349 | ;; | |
350 | xscaleeb) | |
351 | basic_machine=armeb-unknown | |
352 | ;; | |
353 | ||
354 | xscaleel) | |
355 | basic_machine=armel-unknown | |
356 | ;; | |
357 | ||
911 | cpu=sparc | |
912 | vendor=$basic_machine | |
913 | ;; | |
914 | leon-*|leon[3-9]-*) | |
915 | cpu=sparc | |
916 | vendor=`echo "$basic_machine" | sed 's/-.*//'` | |
917 | ;; | |
918 | ||
919 | *-*) | |
920 | IFS="-" read -r cpu vendor <<EOF | |
921 | $basic_machine | |
922 | EOF | |
923 | ;; | |
358 | 924 | # We use `pc' rather than `unknown' |
359 | 925 | # because (1) that's what they normally are, and |
360 | 926 | # (2) the word "unknown" tends to confuse beginning users. |
361 | 927 | i*86 | x86_64) |
362 | basic_machine=$basic_machine-pc | |
363 | ;; | |
364 | # Object if more than one company name word. | |
365 | *-*-*) | |
366 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
367 | exit 1 | |
368 | ;; | |
369 | # Recognize the basic CPU types with company name. | |
370 | 580-* \ | |
371 | | a29k-* \ | |
372 | | aarch64-* | aarch64_be-* \ | |
373 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | |
374 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | |
375 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | |
376 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | |
377 | | avr-* | avr32-* \ | |
378 | | ba-* \ | |
379 | | be32-* | be64-* \ | |
380 | | bfin-* | bs2000-* \ | |
381 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
382 | | c8051-* | clipper-* | craynv-* | cydra-* \ | |
383 | | d10v-* | d30v-* | dlx-* \ | |
384 | | e2k-* | elxsi-* \ | |
385 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | |
386 | | h8300-* | h8500-* \ | |
387 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | |
388 | | hexagon-* \ | |
389 | | i*86-* | i860-* | i960-* | ia64-* \ | |
390 | | ip2k-* | iq2000-* \ | |
391 | | k1om-* \ | |
392 | | le32-* | le64-* \ | |
393 | | lm32-* \ | |
394 | | m32c-* | m32r-* | m32rle-* \ | |
395 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | |
396 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
397 | | microblaze-* | microblazeel-* \ | |
398 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | |
399 | | mips16-* \ | |
400 | | mips64-* | mips64el-* \ | |
401 | | mips64octeon-* | mips64octeonel-* \ | |
402 | | mips64orion-* | mips64orionel-* \ | |
403 | | mips64r5900-* | mips64r5900el-* \ | |
404 | | mips64vr-* | mips64vrel-* \ | |
405 | | mips64vr4100-* | mips64vr4100el-* \ | |
406 | | mips64vr4300-* | mips64vr4300el-* \ | |
407 | | mips64vr5000-* | mips64vr5000el-* \ | |
408 | | mips64vr5900-* | mips64vr5900el-* \ | |
409 | | mipsisa32-* | mipsisa32el-* \ | |
410 | | mipsisa32r2-* | mipsisa32r2el-* \ | |
411 | | mipsisa32r6-* | mipsisa32r6el-* \ | |
412 | | mipsisa64-* | mipsisa64el-* \ | |
413 | | mipsisa64r2-* | mipsisa64r2el-* \ | |
414 | | mipsisa64r6-* | mipsisa64r6el-* \ | |
415 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | |
416 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | |
417 | | mipsr5900-* | mipsr5900el-* \ | |
418 | | mipstx39-* | mipstx39el-* \ | |
419 | | mmix-* \ | |
420 | | mt-* \ | |
421 | | msp430-* \ | |
422 | | nds32-* | nds32le-* | nds32be-* \ | |
423 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
424 | | none-* | np1-* | ns16k-* | ns32k-* \ | |
425 | | open8-* \ | |
426 | | or1k*-* \ | |
427 | | orion-* \ | |
428 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | |
429 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
430 | | pyramid-* \ | |
431 | | riscv32-* | riscv64-* \ | |
432 | | rl78-* | romp-* | rs6000-* | rx-* \ | |
433 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | |
434 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | |
435 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | |
436 | | sparclite-* \ | |
437 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | |
438 | | tahoe-* \ | |
439 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | |
440 | | tile*-* \ | |
441 | | tron-* \ | |
442 | | ubicom32-* \ | |
443 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
444 | | vax-* \ | |
445 | | visium-* \ | |
446 | | we32k-* \ | |
447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
448 | | xstormy16-* | xtensa*-* \ | |
449 | | ymp-* \ | |
450 | | z8k-* | z80-*) | |
451 | ;; | |
452 | # Recognize the basic CPU types without company name, with glob match. | |
453 | xtensa*) | |
454 | basic_machine=$basic_machine-unknown | |
455 | ;; | |
456 | # Recognize the various machine names and aliases which stand | |
457 | # for a CPU type and a company and sometimes even an OS. | |
458 | 386bsd) | |
459 | basic_machine=i386-unknown | |
460 | os=-bsd | |
461 | ;; | |
462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
463 | basic_machine=m68000-att | |
464 | ;; | |
465 | 3b*) | |
466 | basic_machine=we32k-att | |
467 | ;; | |
468 | a29khif) | |
469 | basic_machine=a29k-amd | |
470 | os=-udi | |
471 | ;; | |
472 | abacus) | |
473 | basic_machine=abacus-unknown | |
474 | ;; | |
475 | adobe68k) | |
476 | basic_machine=m68010-adobe | |
477 | os=-scout | |
478 | ;; | |
479 | alliant | fx80) | |
480 | basic_machine=fx80-alliant | |
481 | ;; | |
482 | altos | altos3068) | |
483 | basic_machine=m68k-altos | |
484 | ;; | |
485 | am29k) | |
486 | basic_machine=a29k-none | |
487 | os=-bsd | |
488 | ;; | |
489 | amd64) | |
490 | basic_machine=x86_64-pc | |
491 | ;; | |
928 | cpu=$basic_machine | |
929 | vendor=pc | |
930 | ;; | |
931 | # These rules are duplicated from below for sake of the special case above; | |
932 | # i.e. things that normalized to x86 arches should also default to "pc" | |
933 | pc98) | |
934 | cpu=i386 | |
935 | vendor=pc | |
936 | ;; | |
937 | x64 | amd64) | |
938 | cpu=x86_64 | |
939 | vendor=pc | |
940 | ;; | |
941 | # Recognize the basic CPU types without company name. | |
942 | *) | |
943 | cpu=$basic_machine | |
944 | vendor=unknown | |
945 | ;; | |
946 | esac | |
947 | ||
948 | unset -v basic_machine | |
949 | ||
950 | # Decode basic machines in the full and proper CPU-Company form. | |
951 | case $cpu-$vendor in | |
952 | # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in | |
953 | # some cases the only manufacturer, in others, it is the most popular. | |
954 | craynv-unknown) | |
955 | vendor=cray | |
956 | os=${os:-unicosmp} | |
957 | ;; | |
958 | c90-unknown | c90-cray) | |
959 | vendor=cray | |
960 | os=${os:-unicos} | |
961 | ;; | |
962 | fx80-unknown) | |
963 | vendor=alliant | |
964 | ;; | |
965 | romp-unknown) | |
966 | vendor=ibm | |
967 | ;; | |
968 | mmix-unknown) | |
969 | vendor=knuth | |
970 | ;; | |
971 | microblaze-unknown | microblazeel-unknown) | |
972 | vendor=xilinx | |
973 | ;; | |
974 | rs6000-unknown) | |
975 | vendor=ibm | |
976 | ;; | |
977 | vax-unknown) | |
978 | vendor=dec | |
979 | ;; | |
980 | pdp11-unknown) | |
981 | vendor=dec | |
982 | ;; | |
983 | we32k-unknown) | |
984 | vendor=att | |
985 | ;; | |
986 | cydra-unknown) | |
987 | vendor=cydrome | |
988 | ;; | |
989 | i370-ibm*) | |
990 | vendor=ibm | |
991 | ;; | |
992 | orion-unknown) | |
993 | vendor=highlevel | |
994 | ;; | |
995 | xps-unknown | xps100-unknown) | |
996 | cpu=xps100 | |
997 | vendor=honeywell | |
998 | ;; | |
999 | ||
1000 | # Here we normalize CPU types with a missing or matching vendor | |
1001 | dpx20-unknown | dpx20-bull) | |
1002 | cpu=rs6000 | |
1003 | vendor=bull | |
1004 | os=${os:-bosx} | |
1005 | ;; | |
1006 | ||
1007 | # Here we normalize CPU types irrespective of the vendor | |
492 | 1008 | amd64-*) |
493 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
494 | ;; | |
495 | amdahl) | |
496 | basic_machine=580-amdahl | |
497 | os=-sysv | |
498 | ;; | |
499 | amiga | amiga-*) | |
500 | basic_machine=m68k-unknown | |
501 | ;; | |
502 | amigaos | amigados) | |
503 | basic_machine=m68k-unknown | |
504 | os=-amigaos | |
505 | ;; | |
506 | amigaunix | amix) | |
507 | basic_machine=m68k-unknown | |
508 | os=-sysv4 | |
509 | ;; | |
510 | apollo68) | |
511 | basic_machine=m68k-apollo | |
512 | os=-sysv | |
513 | ;; | |
514 | apollo68bsd) | |
515 | basic_machine=m68k-apollo | |
516 | os=-bsd | |
517 | ;; | |
518 | aros) | |
519 | basic_machine=i386-pc | |
520 | os=-aros | |
521 | ;; | |
522 | asmjs) | |
523 | basic_machine=asmjs-unknown | |
524 | ;; | |
525 | aux) | |
526 | basic_machine=m68k-apple | |
527 | os=-aux | |
528 | ;; | |
529 | balance) | |
530 | basic_machine=ns32k-sequent | |
531 | os=-dynix | |
532 | ;; | |
533 | blackfin) | |
534 | basic_machine=bfin-unknown | |
535 | os=-linux | |
1009 | cpu=x86_64 | |
536 | 1010 | ;; |
537 | 1011 | blackfin-*) |
538 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
539 | os=-linux | |
1012 | cpu=bfin | |
1013 | os=linux | |
1014 | ;; | |
1015 | c54x-*) | |
1016 | cpu=tic54x | |
1017 | ;; | |
1018 | c55x-*) | |
1019 | cpu=tic55x | |
1020 | ;; | |
1021 | c6x-*) | |
1022 | cpu=tic6x | |
1023 | ;; | |
1024 | e500v[12]-*) | |
1025 | cpu=powerpc | |
1026 | os=$os"spe" | |
1027 | ;; | |
1028 | mips3*-*) | |
1029 | cpu=mips64 | |
1030 | ;; | |
1031 | ms1-*) | |
1032 | cpu=mt | |
1033 | ;; | |
1034 | m68knommu-*) | |
1035 | cpu=m68k | |
1036 | os=linux | |
1037 | ;; | |
1038 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | |
1039 | cpu=s12z | |
1040 | ;; | |
1041 | openrisc-*) | |
1042 | cpu=or32 | |
1043 | ;; | |
1044 | parisc-*) | |
1045 | cpu=hppa | |
1046 | os=linux | |
1047 | ;; | |
1048 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | |
1049 | cpu=i586 | |
1050 | ;; | |
1051 | pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) | |
1052 | cpu=i686 | |
1053 | ;; | |
1054 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | |
1055 | cpu=i686 | |
1056 | ;; | |
1057 | pentium4-*) | |
1058 | cpu=i786 | |
1059 | ;; | |
1060 | pc98-*) | |
1061 | cpu=i386 | |
1062 | ;; | |
1063 | ppc-* | ppcbe-*) | |
1064 | cpu=powerpc | |
1065 | ;; | |
1066 | ppcle-* | powerpclittle-*) | |
1067 | cpu=powerpcle | |
1068 | ;; | |
1069 | ppc64-*) | |
1070 | cpu=powerpc64 | |
1071 | ;; | |
1072 | ppc64le-* | powerpc64little-*) | |
1073 | cpu=powerpc64le | |
1074 | ;; | |
1075 | sb1-*) | |
1076 | cpu=mipsisa64sb1 | |
1077 | ;; | |
1078 | sb1el-*) | |
1079 | cpu=mipsisa64sb1el | |
1080 | ;; | |
1081 | sh5e[lb]-*) | |
1082 | cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` | |
1083 | ;; | |
1084 | spur-*) | |
1085 | cpu=spur | |
1086 | ;; | |
1087 | strongarm-* | thumb-*) | |
1088 | cpu=arm | |
1089 | ;; | |
1090 | tx39-*) | |
1091 | cpu=mipstx39 | |
1092 | ;; | |
1093 | tx39el-*) | |
1094 | cpu=mipstx39el | |
1095 | ;; | |
1096 | x64-*) | |
1097 | cpu=x86_64 | |
1098 | ;; | |
1099 | xscale-* | xscalee[bl]-*) | |
1100 | cpu=`echo "$cpu" | sed 's/^xscale/arm/'` | |
1101 | ;; | |
1102 | ||
1103 | # Recognize the cannonical CPU Types that limit and/or modify the | |
1104 | # company names they are paired with. | |
1105 | cr16-*) | |
1106 | os=${os:-elf} | |
1107 | ;; | |
1108 | crisv32-* | etraxfs*-*) | |
1109 | cpu=crisv32 | |
1110 | vendor=axis | |
1111 | ;; | |
1112 | cris-* | etrax*-*) | |
1113 | cpu=cris | |
1114 | vendor=axis | |
1115 | ;; | |
1116 | crx-*) | |
1117 | os=${os:-elf} | |
1118 | ;; | |
1119 | neo-tandem) | |
1120 | cpu=neo | |
1121 | vendor=tandem | |
1122 | ;; | |
1123 | nse-tandem) | |
1124 | cpu=nse | |
1125 | vendor=tandem | |
1126 | ;; | |
1127 | nsr-tandem) | |
1128 | cpu=nsr | |
1129 | vendor=tandem | |
1130 | ;; | |
1131 | nsv-tandem) | |
1132 | cpu=nsv | |
1133 | vendor=tandem | |
1134 | ;; | |
1135 | nsx-tandem) | |
1136 | cpu=nsx | |
1137 | vendor=tandem | |
1138 | ;; | |
1139 | s390-*) | |
1140 | cpu=s390 | |
1141 | vendor=ibm | |
1142 | ;; | |
1143 | s390x-*) | |
1144 | cpu=s390x | |
1145 | vendor=ibm | |
1146 | ;; | |
1147 | tile*-*) | |
1148 | os=${os:-linux-gnu} | |
1149 | ;; | |
1150 | ||
1151 | *) | |
1152 | # Recognize the cannonical CPU types that are allowed with any | |
1153 | # company name. | |
1154 | case $cpu in | |
1155 | 1750a | 580 \ | |
1156 | | a29k \ | |
1157 | | aarch64 | aarch64_be \ | |
1158 | | abacus \ | |
1159 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | |
1160 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | |
1161 | | alphapca5[67] | alpha64pca5[67] \ | |
1162 | | am33_2.0 \ | |
1163 | | arc | arceb \ | |
1164 | | arm | arm[lb]e | arme[lb] | armv* \ | |
1165 | | avr | avr32 \ | |
1166 | | asmjs \ | |
1167 | | ba \ | |
1168 | | be32 | be64 \ | |
1169 | | bfin | bs2000 \ | |
1170 | | c[123]* | c30 | [cjt]90 | c4x \ | |
1171 | | c8051 | clipper | craynv | csky | cydra \ | |
1172 | | d10v | d30v | dlx | dsp16xx \ | |
1173 | | e2k | elxsi | epiphany \ | |
1174 | | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | |
1175 | | h8300 | h8500 \ | |
1176 | | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
1177 | | hexagon \ | |
1178 | | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | |
1179 | | ip2k | iq2000 \ | |
1180 | | k1om \ | |
1181 | | le32 | le64 \ | |
1182 | | lm32 \ | |
1183 | | m32c | m32r | m32rle \ | |
1184 | | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \ | |
1185 | | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \ | |
1186 | | m88110 | m88k | maxq | mb | mcore | mep | metag \ | |
1187 | | microblaze | microblazeel \ | |
1188 | | mips | mipsbe | mipseb | mipsel | mipsle \ | |
1189 | | mips16 \ | |
1190 | | mips64 | mips64el \ | |
1191 | | mips64octeon | mips64octeonel \ | |
1192 | | mips64orion | mips64orionel \ | |
1193 | | mips64r5900 | mips64r5900el \ | |
1194 | | mips64vr | mips64vrel \ | |
1195 | | mips64vr4100 | mips64vr4100el \ | |
1196 | | mips64vr4300 | mips64vr4300el \ | |
1197 | | mips64vr5000 | mips64vr5000el \ | |
1198 | | mips64vr5900 | mips64vr5900el \ | |
1199 | | mipsisa32 | mipsisa32el \ | |
1200 | | mipsisa32r2 | mipsisa32r2el \ | |
1201 | | mipsisa32r6 | mipsisa32r6el \ | |
1202 | | mipsisa64 | mipsisa64el \ | |
1203 | | mipsisa64r2 | mipsisa64r2el \ | |
1204 | | mipsisa64r6 | mipsisa64r6el \ | |
1205 | | mipsisa64sb1 | mipsisa64sb1el \ | |
1206 | | mipsisa64sr71k | mipsisa64sr71kel \ | |
1207 | | mipsr5900 | mipsr5900el \ | |
1208 | | mipstx39 | mipstx39el \ | |
1209 | | mmix \ | |
1210 | | mn10200 | mn10300 \ | |
1211 | | moxie \ | |
1212 | | mt \ | |
1213 | | msp430 \ | |
1214 | | nds32 | nds32le | nds32be \ | |
1215 | | nfp \ | |
1216 | | nios | nios2 | nios2eb | nios2el \ | |
1217 | | none | np1 | ns16k | ns32k \ | |
1218 | | open8 \ | |
1219 | | or1k* \ | |
1220 | | or32 \ | |
1221 | | orion \ | |
1222 | | pdp10 | pdp11 | pj | pjl | pn | power \ | |
1223 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | |
1224 | | pru \ | |
1225 | | pyramid \ | |
1226 | | riscv | riscv32 | riscv64 \ | |
1227 | | rl78 | romp | rs6000 | rx \ | |
1228 | | score \ | |
1229 | | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | |
1230 | | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | |
1231 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | |
1232 | | sparclite \ | |
1233 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | |
1234 | | spu \ | |
1235 | | tahoe \ | |
1236 | | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | |
1237 | | tron \ | |
1238 | | ubicom32 \ | |
1239 | | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | |
1240 | | vax \ | |
1241 | | visium \ | |
1242 | | wasm32 \ | |
1243 | | we32k \ | |
1244 | | x86 | x86_64 | xc16x | xgate | xps100 \ | |
1245 | | xstormy16 | xtensa* \ | |
1246 | | ymp \ | |
1247 | | z8k | z80) | |
1248 | ;; | |
1249 | ||
1250 | *) | |
1251 | echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 | |
1252 | exit 1 | |
1253 | ;; | |
1254 | esac | |
1255 | ;; | |
1256 | esac | |
1257 | ||
1258 | # Here we canonicalize certain aliases for manufacturers. | |
1259 | case $vendor in | |
1260 | digital*) | |
1261 | vendor=dec | |
1262 | ;; | |
1263 | commodore*) | |
1264 | vendor=cbm | |
1265 | ;; | |
1266 | *) | |
1267 | ;; | |
1268 | esac | |
1269 | ||
1270 | # Decode manufacturer-specific aliases for certain operating systems. | |
1271 | ||
1272 | if [ x$os != x ] | |
1273 | then | |
1274 | case $os in | |
1275 | # First match some system type aliases that might get confused | |
1276 | # with valid system types. | |
1277 | # solaris* is a basic system type, with this one exception. | |
1278 | auroraux) | |
1279 | os=auroraux | |
540 | 1280 | ;; |
541 | 1281 | bluegene*) |
542 | basic_machine=powerpc-ibm | |
543 | os=-cnk | |
544 | ;; | |
545 | c54x-*) | |
546 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
547 | ;; | |
548 | c55x-*) | |
549 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
550 | ;; | |
551 | c6x-*) | |
552 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
553 | ;; | |
554 | c90) | |
555 | basic_machine=c90-cray | |
556 | os=-unicos | |
557 | ;; | |
558 | cegcc) | |
559 | basic_machine=arm-unknown | |
560 | os=-cegcc | |
561 | ;; | |
562 | convex-c1) | |
563 | basic_machine=c1-convex | |
564 | os=-bsd | |
565 | ;; | |
566 | convex-c2) | |
567 | basic_machine=c2-convex | |
568 | os=-bsd | |
569 | ;; | |
570 | convex-c32) | |
571 | basic_machine=c32-convex | |
572 | os=-bsd | |
573 | ;; | |
574 | convex-c34) | |
575 | basic_machine=c34-convex | |
576 | os=-bsd | |
577 | ;; | |
578 | convex-c38) | |
579 | basic_machine=c38-convex | |
580 | os=-bsd | |
581 | ;; | |
582 | cray | j90) | |
583 | basic_machine=j90-cray | |
584 | os=-unicos | |
585 | ;; | |
586 | craynv) | |
587 | basic_machine=craynv-cray | |
588 | os=-unicosmp | |
589 | ;; | |
590 | cr16 | cr16-*) | |
591 | basic_machine=cr16-unknown | |
592 | os=-elf | |
593 | ;; | |
594 | crds | unos) | |
595 | basic_machine=m68k-crds | |
596 | ;; | |
597 | crisv32 | crisv32-* | etraxfs*) | |
598 | basic_machine=crisv32-axis | |
599 | ;; | |
600 | cris | cris-* | etrax*) | |
601 | basic_machine=cris-axis | |
602 | ;; | |
603 | crx) | |
604 | basic_machine=crx-unknown | |
605 | os=-elf | |
606 | ;; | |
607 | da30 | da30-*) | |
608 | basic_machine=m68k-da30 | |
609 | ;; | |
610 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | |
611 | basic_machine=mips-dec | |
612 | ;; | |
613 | decsystem10* | dec10*) | |
614 | basic_machine=pdp10-dec | |
615 | os=-tops10 | |
616 | ;; | |
617 | decsystem20* | dec20*) | |
618 | basic_machine=pdp10-dec | |
619 | os=-tops20 | |
620 | ;; | |
621 | delta | 3300 | motorola-3300 | motorola-delta \ | |
622 | | 3300-motorola | delta-motorola) | |
623 | basic_machine=m68k-motorola | |
624 | ;; | |
625 | delta88) | |
626 | basic_machine=m88k-motorola | |
627 | os=-sysv3 | |
628 | ;; | |
629 | dicos) | |
630 | basic_machine=i686-pc | |
631 | os=-dicos | |
632 | ;; | |
633 | djgpp) | |
634 | basic_machine=i586-pc | |
635 | os=-msdosdjgpp | |
636 | ;; | |
637 | dpx20 | dpx20-*) | |
638 | basic_machine=rs6000-bull | |
639 | os=-bosx | |
640 | ;; | |
641 | dpx2* | dpx2*-bull) | |
642 | basic_machine=m68k-bull | |
643 | os=-sysv3 | |
644 | ;; | |
645 | ebmon29k) | |
646 | basic_machine=a29k-amd | |
647 | os=-ebmon | |
648 | ;; | |
649 | elxsi) | |
650 | basic_machine=elxsi-elxsi | |
651 | os=-bsd | |
652 | ;; | |
653 | encore | umax | mmax) | |
654 | basic_machine=ns32k-encore | |
655 | ;; | |
656 | es1800 | OSE68k | ose68k | ose | OSE) | |
657 | basic_machine=m68k-ericsson | |
658 | os=-ose | |
659 | ;; | |
660 | fx2800) | |
661 | basic_machine=i860-alliant | |
662 | ;; | |
663 | genix) | |
664 | basic_machine=ns32k-ns | |
665 | ;; | |
666 | gmicro) | |
667 | basic_machine=tron-gmicro | |
668 | os=-sysv | |
669 | ;; | |
670 | go32) | |
671 | basic_machine=i386-pc | |
672 | os=-go32 | |
673 | ;; | |
674 | h3050r* | hiux*) | |
675 | basic_machine=hppa1.1-hitachi | |
676 | os=-hiuxwe2 | |
677 | ;; | |
678 | h8300hms) | |
679 | basic_machine=h8300-hitachi | |
680 | os=-hms | |
681 | ;; | |
682 | h8300xray) | |
683 | basic_machine=h8300-hitachi | |
684 | os=-xray | |
685 | ;; | |
686 | h8500hms) | |
687 | basic_machine=h8500-hitachi | |
688 | os=-hms | |
689 | ;; | |
690 | harris) | |
691 | basic_machine=m88k-harris | |
692 | os=-sysv3 | |
693 | ;; | |
694 | hp300-*) | |
695 | basic_machine=m68k-hp | |
696 | ;; | |
697 | hp300bsd) | |
698 | basic_machine=m68k-hp | |
699 | os=-bsd | |
700 | ;; | |
701 | hp300hpux) | |
702 | basic_machine=m68k-hp | |
703 | os=-hpux | |
704 | ;; | |
705 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
706 | basic_machine=hppa1.0-hp | |
707 | ;; | |
708 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
709 | basic_machine=m68000-hp | |
710 | ;; | |
711 | hp9k3[2-9][0-9]) | |
712 | basic_machine=m68k-hp | |
713 | ;; | |
714 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | |
715 | basic_machine=hppa1.0-hp | |
716 | ;; | |
717 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | |
718 | basic_machine=hppa1.1-hp | |
719 | ;; | |
720 | hp9k78[0-9] | hp78[0-9]) | |
721 | # FIXME: really hppa2.0-hp | |
722 | basic_machine=hppa1.1-hp | |
723 | ;; | |
724 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | |
725 | # FIXME: really hppa2.0-hp | |
726 | basic_machine=hppa1.1-hp | |
727 | ;; | |
728 | hp9k8[0-9][13679] | hp8[0-9][13679]) | |
729 | basic_machine=hppa1.1-hp | |
730 | ;; | |
731 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
732 | basic_machine=hppa1.0-hp | |
733 | ;; | |
734 | hppa-next) | |
735 | os=-nextstep3 | |
736 | ;; | |
737 | hppaosf) | |
738 | basic_machine=hppa1.1-hp | |
739 | os=-osf | |
740 | ;; | |
741 | hppro) | |
742 | basic_machine=hppa1.1-hp | |
743 | os=-proelf | |
744 | ;; | |
745 | i370-ibm* | ibm*) | |
746 | basic_machine=i370-ibm | |
747 | ;; | |
748 | i*86v32) | |
749 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
750 | os=-sysv32 | |
751 | ;; | |
752 | i*86v4*) | |
753 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
754 | os=-sysv4 | |
755 | ;; | |
756 | i*86v) | |
757 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
758 | os=-sysv | |
759 | ;; | |
760 | i*86sol2) | |
761 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
762 | os=-solaris2 | |
763 | ;; | |
764 | i386mach) | |
765 | basic_machine=i386-mach | |
766 | os=-mach | |
767 | ;; | |
768 | i386-vsta | vsta) | |
769 | basic_machine=i386-unknown | |
770 | os=-vsta | |
771 | ;; | |
772 | iris | iris4d) | |
773 | basic_machine=mips-sgi | |
774 | case $os in | |
775 | -irix*) | |
1282 | os=cnk | |
1283 | ;; | |
1284 | solaris1 | solaris1.*) | |
1285 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
1286 | ;; | |
1287 | solaris) | |
1288 | os=solaris2 | |
1289 | ;; | |
1290 | unixware*) | |
1291 | os=sysv4.2uw | |
1292 | ;; | |
1293 | gnu/linux*) | |
1294 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | |
1295 | ;; | |
1296 | # es1800 is here to avoid being matched by es* (a different OS) | |
1297 | es1800*) | |
1298 | os=ose | |
1299 | ;; | |
1300 | # Some version numbers need modification | |
1301 | chorusos*) | |
1302 | os=chorusos | |
1303 | ;; | |
1304 | isc) | |
1305 | os=isc2.2 | |
1306 | ;; | |
1307 | sco6) | |
1308 | os=sco5v6 | |
1309 | ;; | |
1310 | sco5) | |
1311 | os=sco3.2v5 | |
1312 | ;; | |
1313 | sco4) | |
1314 | os=sco3.2v4 | |
1315 | ;; | |
1316 | sco3.2.[4-9]*) | |
1317 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | |
1318 | ;; | |
1319 | sco3.2v[4-9]* | sco5v6*) | |
1320 | # Don't forget version if it is 3.2v4 or newer. | |
1321 | ;; | |
1322 | scout) | |
1323 | # Don't match below | |
1324 | ;; | |
1325 | sco*) | |
1326 | os=sco3.2v2 | |
1327 | ;; | |
1328 | psos*) | |
1329 | os=psos | |
1330 | ;; | |
1331 | # Now accept the basic system types. | |
1332 | # The portable systems comes first. | |
1333 | # Each alternative MUST end in a * to match a version number. | |
1334 | # sysv* is not here because it comes later, after sysvr4. | |
1335 | gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | |
1336 | | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ | |
1337 | | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | |
1338 | | sym* | kopensolaris* | plan9* \ | |
1339 | | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | |
1340 | | aos* | aros* | cloudabi* | sortix* \ | |
1341 | | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | |
1342 | | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | |
1343 | | knetbsd* | mirbsd* | netbsd* \ | |
1344 | | bitrig* | openbsd* | solidbsd* | libertybsd* \ | |
1345 | | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ | |
1346 | | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | |
1347 | | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | |
1348 | | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \ | |
1349 | | chorusrdb* | cegcc* | glidix* \ | |
1350 | | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | |
1351 | | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \ | |
1352 | | linux-newlib* | linux-musl* | linux-uclibc* \ | |
1353 | | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | |
1354 | | interix* | uwin* | mks* | rhapsody* | darwin* \ | |
1355 | | openstep* | oskit* | conix* | pw32* | nonstopux* \ | |
1356 | | storm-chaos* | tops10* | tenex* | tops20* | its* \ | |
1357 | | os2* | vos* | palmos* | uclinux* | nucleus* \ | |
1358 | | morphos* | superux* | rtmk* | windiss* \ | |
1359 | | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | |
1360 | | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | |
1361 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | |
1362 | | midnightbsd*) | |
1363 | # Remember, each alternative MUST END IN *, to match a version number. | |
1364 | ;; | |
1365 | qnx*) | |
1366 | case $cpu in | |
1367 | x86 | i*86) | |
776 | 1368 | ;; |
777 | 1369 | *) |
778 | os=-irix4 | |
1370 | os=nto-$os | |
779 | 1371 | ;; |
780 | 1372 | esac |
781 | 1373 | ;; |
782 | isi68 | isi) | |
783 | basic_machine=m68k-isi | |
784 | os=-sysv | |
785 | ;; | |
786 | leon-*|leon[3-9]-*) | |
787 | basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` | |
788 | ;; | |
789 | m68knommu) | |
790 | basic_machine=m68k-unknown | |
791 | os=-linux | |
792 | ;; | |
793 | m68knommu-*) | |
794 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
795 | os=-linux | |
796 | ;; | |
797 | m88k-omron*) | |
798 | basic_machine=m88k-omron | |
799 | ;; | |
800 | magnum | m3230) | |
801 | basic_machine=mips-mips | |
802 | os=-sysv | |
803 | ;; | |
804 | merlin) | |
805 | basic_machine=ns32k-utek | |
806 | os=-sysv | |
807 | ;; | |
808 | microblaze*) | |
809 | basic_machine=microblaze-xilinx | |
810 | ;; | |
811 | mingw64) | |
812 | basic_machine=x86_64-pc | |
813 | os=-mingw64 | |
814 | ;; | |
815 | mingw32) | |
816 | basic_machine=i686-pc | |
817 | os=-mingw32 | |
818 | ;; | |
819 | mingw32ce) | |
820 | basic_machine=arm-unknown | |
821 | os=-mingw32ce | |
822 | ;; | |
823 | miniframe) | |
824 | basic_machine=m68000-convergent | |
825 | ;; | |
826 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
827 | basic_machine=m68k-atari | |
828 | os=-mint | |
829 | ;; | |
830 | mips3*-*) | |
831 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
832 | ;; | |
833 | mips3*) | |
834 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | |
835 | ;; | |
836 | monitor) | |
837 | basic_machine=m68k-rom68k | |
838 | os=-coff | |
839 | ;; | |
840 | morphos) | |
841 | basic_machine=powerpc-unknown | |
842 | os=-morphos | |
843 | ;; | |
844 | moxiebox) | |
845 | basic_machine=moxie-unknown | |
846 | os=-moxiebox | |
847 | ;; | |
848 | msdos) | |
849 | basic_machine=i386-pc | |
850 | os=-msdos | |
851 | ;; | |
852 | ms1-*) | |
853 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
854 | ;; | |
855 | msys) | |
856 | basic_machine=i686-pc | |
857 | os=-msys | |
858 | ;; | |
859 | mvs) | |
860 | basic_machine=i370-ibm | |
861 | os=-mvs | |
862 | ;; | |
863 | nacl) | |
864 | basic_machine=le32-unknown | |
865 | os=-nacl | |
866 | ;; | |
867 | ncr3000) | |
868 | basic_machine=i486-ncr | |
869 | os=-sysv4 | |
870 | ;; | |
871 | netbsd386) | |
872 | basic_machine=i386-unknown | |
873 | os=-netbsd | |
874 | ;; | |
875 | netwinder) | |
876 | basic_machine=armv4l-rebel | |
877 | os=-linux | |
878 | ;; | |
879 | news | news700 | news800 | news900) | |
880 | basic_machine=m68k-sony | |
881 | os=-newsos | |
882 | ;; | |
883 | news1000) | |
884 | basic_machine=m68030-sony | |
885 | os=-newsos | |
886 | ;; | |
887 | news-3600 | risc-news) | |
888 | basic_machine=mips-sony | |
889 | os=-newsos | |
890 | ;; | |
891 | necv70) | |
892 | basic_machine=v70-nec | |
893 | os=-sysv | |
894 | ;; | |
895 | next | m*-next ) | |
896 | basic_machine=m68k-next | |
897 | case $os in | |
898 | -nextstep* ) | |
899 | ;; | |
900 | -ns2*) | |
901 | os=-nextstep2 | |
1374 | hiux*) | |
1375 | os=hiuxwe2 | |
1376 | ;; | |
1377 | nto-qnx*) | |
1378 | ;; | |
1379 | nto*) | |
1380 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | |
1381 | ;; | |
1382 | sim | xray | os68k* | v88r* \ | |
1383 | | windows* | osx | abug | netware* | os9* \ | |
1384 | | macos* | mpw* | magic* | mmixware* | mon960* | lnews*) | |
1385 | ;; | |
1386 | linux-dietlibc) | |
1387 | os=linux-dietlibc | |
1388 | ;; | |
1389 | linux*) | |
1390 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | |
1391 | ;; | |
1392 | lynx*178) | |
1393 | os=lynxos178 | |
1394 | ;; | |
1395 | lynx*5) | |
1396 | os=lynxos5 | |
1397 | ;; | |
1398 | lynx*) | |
1399 | os=lynxos | |
1400 | ;; | |
1401 | mac*) | |
1402 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1403 | ;; | |
1404 | opened*) | |
1405 | os=openedition | |
1406 | ;; | |
1407 | os400*) | |
1408 | os=os400 | |
1409 | ;; | |
1410 | sunos5*) | |
1411 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1412 | ;; | |
1413 | sunos6*) | |
1414 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
1415 | ;; | |
1416 | wince*) | |
1417 | os=wince | |
1418 | ;; | |
1419 | utek*) | |
1420 | os=bsd | |
1421 | ;; | |
1422 | dynix*) | |
1423 | os=bsd | |
1424 | ;; | |
1425 | acis*) | |
1426 | os=aos | |
1427 | ;; | |
1428 | atheos*) | |
1429 | os=atheos | |
1430 | ;; | |
1431 | syllable*) | |
1432 | os=syllable | |
1433 | ;; | |
1434 | 386bsd) | |
1435 | os=bsd | |
1436 | ;; | |
1437 | ctix* | uts*) | |
1438 | os=sysv | |
1439 | ;; | |
1440 | nova*) | |
1441 | os=rtmk-nova | |
1442 | ;; | |
1443 | ns2) | |
1444 | os=nextstep2 | |
1445 | ;; | |
1446 | nsk*) | |
1447 | os=nsk | |
1448 | ;; | |
1449 | # Preserve the version number of sinix5. | |
1450 | sinix5.*) | |
1451 | os=`echo $os | sed -e 's|sinix|sysv|'` | |
1452 | ;; | |
1453 | sinix*) | |
1454 | os=sysv4 | |
1455 | ;; | |
1456 | tpf*) | |
1457 | os=tpf | |
1458 | ;; | |
1459 | triton*) | |
1460 | os=sysv3 | |
1461 | ;; | |
1462 | oss*) | |
1463 | os=sysv3 | |
1464 | ;; | |
1465 | svr4*) | |
1466 | os=sysv4 | |
1467 | ;; | |
1468 | svr3) | |
1469 | os=sysv3 | |
1470 | ;; | |
1471 | sysvr4) | |
1472 | os=sysv4 | |
1473 | ;; | |
1474 | # This must come after sysvr4. | |
1475 | sysv*) | |
1476 | ;; | |
1477 | ose*) | |
1478 | os=ose | |
1479 | ;; | |
1480 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | |
1481 | os=mint | |
1482 | ;; | |
1483 | zvmoe) | |
1484 | os=zvmoe | |
1485 | ;; | |
1486 | dicos*) | |
1487 | os=dicos | |
1488 | ;; | |
1489 | pikeos*) | |
1490 | # Until real need of OS specific support for | |
1491 | # particular features comes up, bare metal | |
1492 | # configurations are quite functional. | |
1493 | case $cpu in | |
1494 | arm*) | |
1495 | os=eabi | |
902 | 1496 | ;; |
903 | 1497 | *) |
904 | os=-nextstep3 | |
1498 | os=elf | |
905 | 1499 | ;; |
906 | 1500 | esac |
907 | 1501 | ;; |
908 | nh3000) | |
909 | basic_machine=m68k-harris | |
910 | os=-cxux | |
911 | ;; | |
912 | nh[45]000) | |
913 | basic_machine=m88k-harris | |
914 | os=-cxux | |
915 | ;; | |
916 | nindy960) | |
917 | basic_machine=i960-intel | |
918 | os=-nindy | |
919 | ;; | |
920 | mon960) | |
921 | basic_machine=i960-intel | |
922 | os=-mon960 | |
923 | ;; | |
924 | nonstopux) | |
925 | basic_machine=mips-compaq | |
926 | os=-nonstopux | |
927 | ;; | |
928 | np1) | |
929 | basic_machine=np1-gould | |
930 | ;; | |
931 | neo-tandem) | |
932 | basic_machine=neo-tandem | |
933 | ;; | |
934 | nse-tandem) | |
935 | basic_machine=nse-tandem | |
936 | ;; | |
937 | nsr-tandem) | |
938 | basic_machine=nsr-tandem | |
939 | ;; | |
940 | op50n-* | op60c-*) | |
941 | basic_machine=hppa1.1-oki | |
942 | os=-proelf | |
943 | ;; | |
944 | openrisc | openrisc-*) | |
945 | basic_machine=or32-unknown | |
946 | ;; | |
947 | os400) | |
948 | basic_machine=powerpc-ibm | |
949 | os=-os400 | |
950 | ;; | |
951 | OSE68000 | ose68000) | |
952 | basic_machine=m68000-ericsson | |
953 | os=-ose | |
954 | ;; | |
955 | os68k) | |
956 | basic_machine=m68k-none | |
957 | os=-os68k | |
958 | ;; | |
959 | pa-hitachi) | |
960 | basic_machine=hppa1.1-hitachi | |
961 | os=-hiuxwe2 | |
962 | ;; | |
963 | paragon) | |
964 | basic_machine=i860-intel | |
965 | os=-osf | |
966 | ;; | |
967 | parisc) | |
968 | basic_machine=hppa-unknown | |
969 | os=-linux | |
970 | ;; | |
971 | parisc-*) | |
972 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
973 | os=-linux | |
974 | ;; | |
975 | pbd) | |
976 | basic_machine=sparc-tti | |
977 | ;; | |
978 | pbb) | |
979 | basic_machine=m68k-tti | |
980 | ;; | |
981 | pc532 | pc532-*) | |
982 | basic_machine=ns32k-pc532 | |
983 | ;; | |
984 | pc98) | |
985 | basic_machine=i386-pc | |
986 | ;; | |
987 | pc98-*) | |
988 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
989 | ;; | |
990 | pentium | p5 | k5 | k6 | nexgen | viac3) | |
991 | basic_machine=i586-pc | |
992 | ;; | |
993 | pentiumpro | p6 | 6x86 | athlon | athlon_*) | |
994 | basic_machine=i686-pc | |
995 | ;; | |
996 | pentiumii | pentium2 | pentiumiii | pentium3) | |
997 | basic_machine=i686-pc | |
998 | ;; | |
999 | pentium4) | |
1000 | basic_machine=i786-pc | |
1001 | ;; | |
1002 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | |
1003 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1004 | ;; | |
1005 | pentiumpro-* | p6-* | 6x86-* | athlon-*) | |
1006 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1007 | ;; | |
1008 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | |
1009 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1010 | ;; | |
1011 | pentium4-*) | |
1012 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1013 | ;; | |
1014 | pn) | |
1015 | basic_machine=pn-gould | |
1016 | ;; | |
1017 | power) basic_machine=power-ibm | |
1018 | ;; | |
1019 | ppc | ppcbe) basic_machine=powerpc-unknown | |
1020 | ;; | |
1021 | ppc-* | ppcbe-*) | |
1022 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1023 | ;; | |
1024 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
1025 | basic_machine=powerpcle-unknown | |
1026 | ;; | |
1027 | ppcle-* | powerpclittle-*) | |
1028 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1029 | ;; | |
1030 | ppc64) basic_machine=powerpc64-unknown | |
1031 | ;; | |
1032 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1033 | ;; | |
1034 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
1035 | basic_machine=powerpc64le-unknown | |
1036 | ;; | |
1037 | ppc64le-* | powerpc64little-*) | |
1038 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1039 | ;; | |
1040 | ps2) | |
1041 | basic_machine=i386-ibm | |
1042 | ;; | |
1043 | pw32) | |
1044 | basic_machine=i586-unknown | |
1045 | os=-pw32 | |
1046 | ;; | |
1047 | rdos | rdos64) | |
1048 | basic_machine=x86_64-pc | |
1049 | os=-rdos | |
1050 | ;; | |
1051 | rdos32) | |
1052 | basic_machine=i386-pc | |
1053 | os=-rdos | |
1054 | ;; | |
1055 | rom68k) | |
1056 | basic_machine=m68k-rom68k | |
1057 | os=-coff | |
1058 | ;; | |
1059 | rm[46]00) | |
1060 | basic_machine=mips-siemens | |
1061 | ;; | |
1062 | rtpc | rtpc-*) | |
1063 | basic_machine=romp-ibm | |
1064 | ;; | |
1065 | s390 | s390-*) | |
1066 | basic_machine=s390-ibm | |
1067 | ;; | |
1068 | s390x | s390x-*) | |
1069 | basic_machine=s390x-ibm | |
1070 | ;; | |
1071 | sa29200) | |
1072 | basic_machine=a29k-amd | |
1073 | os=-udi | |
1074 | ;; | |
1075 | sb1) | |
1076 | basic_machine=mipsisa64sb1-unknown | |
1077 | ;; | |
1078 | sb1el) | |
1079 | basic_machine=mipsisa64sb1el-unknown | |
1080 | ;; | |
1081 | sde) | |
1082 | basic_machine=mipsisa32-sde | |
1083 | os=-elf | |
1084 | ;; | |
1085 | sei) | |
1086 | basic_machine=mips-sei | |
1087 | os=-seiux | |
1088 | ;; | |
1089 | sequent) | |
1090 | basic_machine=i386-sequent | |
1091 | ;; | |
1092 | sh) | |
1093 | basic_machine=sh-hitachi | |
1094 | os=-hms | |
1095 | ;; | |
1096 | sh5el) | |
1097 | basic_machine=sh5le-unknown | |
1098 | ;; | |
1099 | sh64) | |
1100 | basic_machine=sh64-unknown | |
1101 | ;; | |
1102 | sparclite-wrs | simso-wrs) | |
1103 | basic_machine=sparclite-wrs | |
1104 | os=-vxworks | |
1105 | ;; | |
1106 | sps7) | |
1107 | basic_machine=m68k-bull | |
1108 | os=-sysv2 | |
1109 | ;; | |
1110 | spur) | |
1111 | basic_machine=spur-unknown | |
1112 | ;; | |
1113 | st2000) | |
1114 | basic_machine=m68k-tandem | |
1115 | ;; | |
1116 | stratus) | |
1117 | basic_machine=i860-stratus | |
1118 | os=-sysv4 | |
1119 | ;; | |
1120 | strongarm-* | thumb-*) | |
1121 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1122 | ;; | |
1123 | sun2) | |
1124 | basic_machine=m68000-sun | |
1125 | ;; | |
1126 | sun2os3) | |
1127 | basic_machine=m68000-sun | |
1128 | os=-sunos3 | |
1129 | ;; | |
1130 | sun2os4) | |
1131 | basic_machine=m68000-sun | |
1132 | os=-sunos4 | |
1133 | ;; | |
1134 | sun3os3) | |
1135 | basic_machine=m68k-sun | |
1136 | os=-sunos3 | |
1137 | ;; | |
1138 | sun3os4) | |
1139 | basic_machine=m68k-sun | |
1140 | os=-sunos4 | |
1141 | ;; | |
1142 | sun4os3) | |
1143 | basic_machine=sparc-sun | |
1144 | os=-sunos3 | |
1145 | ;; | |
1146 | sun4os4) | |
1147 | basic_machine=sparc-sun | |
1148 | os=-sunos4 | |
1149 | ;; | |
1150 | sun4sol2) | |
1151 | basic_machine=sparc-sun | |
1152 | os=-solaris2 | |
1153 | ;; | |
1154 | sun3 | sun3-*) | |
1155 | basic_machine=m68k-sun | |
1156 | ;; | |
1157 | sun4) | |
1158 | basic_machine=sparc-sun | |
1159 | ;; | |
1160 | sun386 | sun386i | roadrunner) | |
1161 | basic_machine=i386-sun | |
1162 | ;; | |
1163 | sv1) | |
1164 | basic_machine=sv1-cray | |
1165 | os=-unicos | |
1166 | ;; | |
1167 | symmetry) | |
1168 | basic_machine=i386-sequent | |
1169 | os=-dynix | |
1170 | ;; | |
1171 | t3e) | |
1172 | basic_machine=alphaev5-cray | |
1173 | os=-unicos | |
1174 | ;; | |
1175 | t90) | |
1176 | basic_machine=t90-cray | |
1177 | os=-unicos | |
1178 | ;; | |
1179 | tile*) | |
1180 | basic_machine=$basic_machine-unknown | |
1181 | os=-linux-gnu | |
1182 | ;; | |
1183 | tx39) | |
1184 | basic_machine=mipstx39-unknown | |
1185 | ;; | |
1186 | tx39el) | |
1187 | basic_machine=mipstx39el-unknown | |
1188 | ;; | |
1189 | toad1) | |
1190 | basic_machine=pdp10-xkl | |
1191 | os=-tops20 | |
1192 | ;; | |
1193 | tower | tower-32) | |
1194 | basic_machine=m68k-ncr | |
1195 | ;; | |
1196 | tpf) | |
1197 | basic_machine=s390x-ibm | |
1198 | os=-tpf | |
1199 | ;; | |
1200 | udi29k) | |
1201 | basic_machine=a29k-amd | |
1202 | os=-udi | |
1203 | ;; | |
1204 | ultra3) | |
1205 | basic_machine=a29k-nyu | |
1206 | os=-sym1 | |
1207 | ;; | |
1208 | v810 | necv810) | |
1209 | basic_machine=v810-nec | |
1210 | os=-none | |
1211 | ;; | |
1212 | vaxv) | |
1213 | basic_machine=vax-dec | |
1214 | os=-sysv | |
1215 | ;; | |
1216 | vms) | |
1217 | basic_machine=vax-dec | |
1218 | os=-vms | |
1219 | ;; | |
1220 | vpp*|vx|vx-*) | |
1221 | basic_machine=f301-fujitsu | |
1222 | ;; | |
1223 | vxworks960) | |
1224 | basic_machine=i960-wrs | |
1225 | os=-vxworks | |
1226 | ;; | |
1227 | vxworks68) | |
1228 | basic_machine=m68k-wrs | |
1229 | os=-vxworks | |
1230 | ;; | |
1231 | vxworks29k) | |
1232 | basic_machine=a29k-wrs | |
1233 | os=-vxworks | |
1234 | ;; | |
1235 | w65*) | |
1236 | basic_machine=w65-wdc | |
1237 | os=-none | |
1238 | ;; | |
1239 | w89k-*) | |
1240 | basic_machine=hppa1.1-winbond | |
1241 | os=-proelf | |
1242 | ;; | |
1243 | xbox) | |
1244 | basic_machine=i686-pc | |
1245 | os=-mingw32 | |
1246 | ;; | |
1247 | xps | xps100) | |
1248 | basic_machine=xps100-honeywell | |
1249 | ;; | |
1250 | xscale-* | xscalee[bl]-*) | |
1251 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1252 | ;; | |
1253 | ymp) | |
1254 | basic_machine=ymp-cray | |
1255 | os=-unicos | |
1256 | ;; | |
1257 | z8k-*-coff) | |
1258 | basic_machine=z8k-unknown | |
1259 | os=-sim | |
1260 | ;; | |
1261 | z80-*-coff) | |
1262 | basic_machine=z80-unknown | |
1263 | os=-sim | |
1502 | nacl*) | |
1503 | ;; | |
1504 | ios) | |
1264 | 1505 | ;; |
1265 | 1506 | none) |
1266 | basic_machine=none-none | |
1267 | os=-none | |
1268 | ;; | |
1269 | ||
1270 | # Here we handle the default manufacturer of certain CPU types. It is in | |
1271 | # some cases the only manufacturer, in others, it is the most popular. | |
1272 | w89k) | |
1273 | basic_machine=hppa1.1-winbond | |
1274 | ;; | |
1275 | op50n) | |
1276 | basic_machine=hppa1.1-oki | |
1277 | ;; | |
1278 | op60c) | |
1279 | basic_machine=hppa1.1-oki | |
1280 | ;; | |
1281 | romp) | |
1282 | basic_machine=romp-ibm | |
1283 | ;; | |
1284 | mmix) | |
1285 | basic_machine=mmix-knuth | |
1286 | ;; | |
1287 | rs6000) | |
1288 | basic_machine=rs6000-ibm | |
1289 | ;; | |
1290 | vax) | |
1291 | basic_machine=vax-dec | |
1292 | ;; | |
1293 | pdp10) | |
1294 | # there are many clones, so DEC is not a safe bet | |
1295 | basic_machine=pdp10-unknown | |
1296 | ;; | |
1297 | pdp11) | |
1298 | basic_machine=pdp11-dec | |
1299 | ;; | |
1300 | we32k) | |
1301 | basic_machine=we32k-att | |
1302 | ;; | |
1303 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | |
1304 | basic_machine=sh-unknown | |
1305 | ;; | |
1306 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
1307 | basic_machine=sparc-sun | |
1308 | ;; | |
1309 | cydra) | |
1310 | basic_machine=cydra-cydrome | |
1311 | ;; | |
1312 | orion) | |
1313 | basic_machine=orion-highlevel | |
1314 | ;; | |
1315 | orion105) | |
1316 | basic_machine=clipper-highlevel | |
1317 | ;; | |
1318 | mac | mpw | mac-mpw) | |
1319 | basic_machine=m68k-apple | |
1320 | ;; | |
1321 | pmac | pmac-mpw) | |
1322 | basic_machine=powerpc-apple | |
1323 | ;; | |
1324 | *-unknown) | |
1325 | # Make sure to match an already-canonicalized machine name. | |
1507 | ;; | |
1508 | *-eabi) | |
1326 | 1509 | ;; |
1327 | 1510 | *) |
1328 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
1329 | exit 1 | |
1330 | ;; | |
1331 | esac | |
1332 | ||
1333 | # Here we canonicalize certain aliases for manufacturers. | |
1334 | case $basic_machine in | |
1335 | *-digital*) | |
1336 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
1337 | ;; | |
1338 | *-commodore*) | |
1339 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
1340 | ;; | |
1341 | *) | |
1342 | ;; | |
1343 | esac | |
1344 | ||
1345 | # Decode manufacturer-specific aliases for certain operating systems. | |
1346 | ||
1347 | if [ x"$os" != x"" ] | |
1348 | then | |
1349 | case $os in | |
1350 | # First match some system type aliases | |
1351 | # that might get confused with valid system types. | |
1352 | # -solaris* is a basic system type, with this one exception. | |
1353 | -auroraux) | |
1354 | os=-auroraux | |
1355 | ;; | |
1356 | -solaris1 | -solaris1.*) | |
1357 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
1358 | ;; | |
1359 | -solaris) | |
1360 | os=-solaris2 | |
1361 | ;; | |
1362 | -svr4*) | |
1363 | os=-sysv4 | |
1364 | ;; | |
1365 | -unixware*) | |
1366 | os=-sysv4.2uw | |
1367 | ;; | |
1368 | -gnu/linux*) | |
1369 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | |
1370 | ;; | |
1371 | # First accept the basic system types. | |
1372 | # The portable systems comes first. | |
1373 | # Each alternative MUST END IN A *, to match a version number. | |
1374 | # -sysv* is not here because it comes later, after sysvr4. | |
1375 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | |
1376 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | |
1377 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | |
1378 | | -sym* | -kopensolaris* | -plan9* \ | |
1379 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | |
1380 | | -aos* | -aros* | -cloudabi* | -sortix* \ | |
1381 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | |
1382 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | |
1383 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1384 | | -bitrig* | -openbsd* | -solidbsd* \ | |
1385 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | |
1386 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | |
1387 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | |
1388 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | |
1389 | | -chorusos* | -chorusrdb* | -cegcc* \ | |
1390 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
1391 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1392 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1393 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | |
1394 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1395 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | |
1396 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | |
1397 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | |
1398 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1399 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | |
1400 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | |
1401 | | -onefs* | -tirtos*) | |
1402 | # Remember, each alternative MUST END IN *, to match a version number. | |
1403 | ;; | |
1404 | -qnx*) | |
1405 | case $basic_machine in | |
1406 | x86-* | i*86-*) | |
1407 | ;; | |
1408 | *) | |
1409 | os=-nto$os | |
1410 | ;; | |
1411 | esac | |
1412 | ;; | |
1413 | -nto-qnx*) | |
1414 | ;; | |
1415 | -nto*) | |
1416 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | |
1417 | ;; | |
1418 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | |
1419 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | |
1420 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | |
1421 | ;; | |
1422 | -mac*) | |
1423 | os=`echo $os | sed -e 's|mac|macos|'` | |
1424 | ;; | |
1425 | -linux-dietlibc) | |
1426 | os=-linux-dietlibc | |
1427 | ;; | |
1428 | -linux*) | |
1429 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | |
1430 | ;; | |
1431 | -sunos5*) | |
1432 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
1433 | ;; | |
1434 | -sunos6*) | |
1435 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
1436 | ;; | |
1437 | -opened*) | |
1438 | os=-openedition | |
1439 | ;; | |
1440 | -os400*) | |
1441 | os=-os400 | |
1442 | ;; | |
1443 | -wince*) | |
1444 | os=-wince | |
1445 | ;; | |
1446 | -osfrose*) | |
1447 | os=-osfrose | |
1448 | ;; | |
1449 | -osf*) | |
1450 | os=-osf | |
1451 | ;; | |
1452 | -utek*) | |
1453 | os=-bsd | |
1454 | ;; | |
1455 | -dynix*) | |
1456 | os=-bsd | |
1457 | ;; | |
1458 | -acis*) | |
1459 | os=-aos | |
1460 | ;; | |
1461 | -atheos*) | |
1462 | os=-atheos | |
1463 | ;; | |
1464 | -syllable*) | |
1465 | os=-syllable | |
1466 | ;; | |
1467 | -386bsd) | |
1468 | os=-bsd | |
1469 | ;; | |
1470 | -ctix* | -uts*) | |
1471 | os=-sysv | |
1472 | ;; | |
1473 | -nova*) | |
1474 | os=-rtmk-nova | |
1475 | ;; | |
1476 | -ns2 ) | |
1477 | os=-nextstep2 | |
1478 | ;; | |
1479 | -nsk*) | |
1480 | os=-nsk | |
1481 | ;; | |
1482 | # Preserve the version number of sinix5. | |
1483 | -sinix5.*) | |
1484 | os=`echo $os | sed -e 's|sinix|sysv|'` | |
1485 | ;; | |
1486 | -sinix*) | |
1487 | os=-sysv4 | |
1488 | ;; | |
1489 | -tpf*) | |
1490 | os=-tpf | |
1491 | ;; | |
1492 | -triton*) | |
1493 | os=-sysv3 | |
1494 | ;; | |
1495 | -oss*) | |
1496 | os=-sysv3 | |
1497 | ;; | |
1498 | -svr4) | |
1499 | os=-sysv4 | |
1500 | ;; | |
1501 | -svr3) | |
1502 | os=-sysv3 | |
1503 | ;; | |
1504 | -sysvr4) | |
1505 | os=-sysv4 | |
1506 | ;; | |
1507 | # This must come after -sysvr4. | |
1508 | -sysv*) | |
1509 | ;; | |
1510 | -ose*) | |
1511 | os=-ose | |
1512 | ;; | |
1513 | -es1800*) | |
1514 | os=-ose | |
1515 | ;; | |
1516 | -xenix) | |
1517 | os=-xenix | |
1518 | ;; | |
1519 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | |
1520 | os=-mint | |
1521 | ;; | |
1522 | -aros*) | |
1523 | os=-aros | |
1524 | ;; | |
1525 | -zvmoe) | |
1526 | os=-zvmoe | |
1527 | ;; | |
1528 | -dicos*) | |
1529 | os=-dicos | |
1530 | ;; | |
1531 | -nacl*) | |
1532 | ;; | |
1533 | -none) | |
1534 | ;; | |
1535 | *) | |
1536 | # Get rid of the `-' at the beginning of $os. | |
1537 | os=`echo $os | sed 's/[^-]*-//'` | |
1538 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
1511 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | |
1539 | 1512 | exit 1 |
1540 | 1513 | ;; |
1541 | 1514 | esac |
1551 | 1524 | # will signal an error saying that MANUFACTURER isn't an operating |
1552 | 1525 | # system, and we'll never get to this point. |
1553 | 1526 | |
1554 | case $basic_machine in | |
1527 | case $cpu-$vendor in | |
1555 | 1528 | score-*) |
1556 | os=-elf | |
1529 | os=elf | |
1557 | 1530 | ;; |
1558 | 1531 | spu-*) |
1559 | os=-elf | |
1532 | os=elf | |
1560 | 1533 | ;; |
1561 | 1534 | *-acorn) |
1562 | os=-riscix1.2 | |
1535 | os=riscix1.2 | |
1563 | 1536 | ;; |
1564 | 1537 | arm*-rebel) |
1565 | os=-linux | |
1538 | os=linux | |
1566 | 1539 | ;; |
1567 | 1540 | arm*-semi) |
1568 | os=-aout | |
1541 | os=aout | |
1569 | 1542 | ;; |
1570 | 1543 | c4x-* | tic4x-*) |
1571 | os=-coff | |
1544 | os=coff | |
1572 | 1545 | ;; |
1573 | 1546 | c8051-*) |
1574 | os=-elf | |
1547 | os=elf | |
1548 | ;; | |
1549 | clipper-intergraph) | |
1550 | os=clix | |
1575 | 1551 | ;; |
1576 | 1552 | hexagon-*) |
1577 | os=-elf | |
1553 | os=elf | |
1578 | 1554 | ;; |
1579 | 1555 | tic54x-*) |
1580 | os=-coff | |
1556 | os=coff | |
1581 | 1557 | ;; |
1582 | 1558 | tic55x-*) |
1583 | os=-coff | |
1559 | os=coff | |
1584 | 1560 | ;; |
1585 | 1561 | tic6x-*) |
1586 | os=-coff | |
1562 | os=coff | |
1587 | 1563 | ;; |
1588 | 1564 | # This must come before the *-dec entry. |
1589 | 1565 | pdp10-*) |
1590 | os=-tops20 | |
1566 | os=tops20 | |
1591 | 1567 | ;; |
1592 | 1568 | pdp11-*) |
1593 | os=-none | |
1569 | os=none | |
1594 | 1570 | ;; |
1595 | 1571 | *-dec | vax-*) |
1596 | os=-ultrix4.2 | |
1572 | os=ultrix4.2 | |
1597 | 1573 | ;; |
1598 | 1574 | m68*-apollo) |
1599 | os=-domain | |
1575 | os=domain | |
1600 | 1576 | ;; |
1601 | 1577 | i386-sun) |
1602 | os=-sunos4.0.2 | |
1578 | os=sunos4.0.2 | |
1603 | 1579 | ;; |
1604 | 1580 | m68000-sun) |
1605 | os=-sunos3 | |
1581 | os=sunos3 | |
1606 | 1582 | ;; |
1607 | 1583 | m68*-cisco) |
1608 | os=-aout | |
1584 | os=aout | |
1609 | 1585 | ;; |
1610 | 1586 | mep-*) |
1611 | os=-elf | |
1587 | os=elf | |
1612 | 1588 | ;; |
1613 | 1589 | mips*-cisco) |
1614 | os=-elf | |
1590 | os=elf | |
1615 | 1591 | ;; |
1616 | 1592 | mips*-*) |
1617 | os=-elf | |
1593 | os=elf | |
1618 | 1594 | ;; |
1619 | 1595 | or32-*) |
1620 | os=-coff | |
1596 | os=coff | |
1621 | 1597 | ;; |
1622 | 1598 | *-tti) # must be before sparc entry or we get the wrong os. |
1623 | os=-sysv3 | |
1599 | os=sysv3 | |
1624 | 1600 | ;; |
1625 | 1601 | sparc-* | *-sun) |
1626 | os=-sunos4.1.1 | |
1602 | os=sunos4.1.1 | |
1603 | ;; | |
1604 | pru-*) | |
1605 | os=elf | |
1627 | 1606 | ;; |
1628 | 1607 | *-be) |
1629 | os=-beos | |
1630 | ;; | |
1631 | *-haiku) | |
1632 | os=-haiku | |
1608 | os=beos | |
1633 | 1609 | ;; |
1634 | 1610 | *-ibm) |
1635 | os=-aix | |
1611 | os=aix | |
1636 | 1612 | ;; |
1637 | 1613 | *-knuth) |
1638 | os=-mmixware | |
1614 | os=mmixware | |
1639 | 1615 | ;; |
1640 | 1616 | *-wec) |
1641 | os=-proelf | |
1617 | os=proelf | |
1642 | 1618 | ;; |
1643 | 1619 | *-winbond) |
1644 | os=-proelf | |
1620 | os=proelf | |
1645 | 1621 | ;; |
1646 | 1622 | *-oki) |
1647 | os=-proelf | |
1623 | os=proelf | |
1648 | 1624 | ;; |
1649 | 1625 | *-hp) |
1650 | os=-hpux | |
1626 | os=hpux | |
1651 | 1627 | ;; |
1652 | 1628 | *-hitachi) |
1653 | os=-hiux | |
1629 | os=hiux | |
1654 | 1630 | ;; |
1655 | 1631 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
1656 | os=-sysv | |
1632 | os=sysv | |
1657 | 1633 | ;; |
1658 | 1634 | *-cbm) |
1659 | os=-amigaos | |
1635 | os=amigaos | |
1660 | 1636 | ;; |
1661 | 1637 | *-dg) |
1662 | os=-dgux | |
1638 | os=dgux | |
1663 | 1639 | ;; |
1664 | 1640 | *-dolphin) |
1665 | os=-sysv3 | |
1641 | os=sysv3 | |
1666 | 1642 | ;; |
1667 | 1643 | m68k-ccur) |
1668 | os=-rtu | |
1644 | os=rtu | |
1669 | 1645 | ;; |
1670 | 1646 | m88k-omron*) |
1671 | os=-luna | |
1672 | ;; | |
1673 | *-next ) | |
1674 | os=-nextstep | |
1647 | os=luna | |
1648 | ;; | |
1649 | *-next) | |
1650 | os=nextstep | |
1675 | 1651 | ;; |
1676 | 1652 | *-sequent) |
1677 | os=-ptx | |
1653 | os=ptx | |
1678 | 1654 | ;; |
1679 | 1655 | *-crds) |
1680 | os=-unos | |
1656 | os=unos | |
1681 | 1657 | ;; |
1682 | 1658 | *-ns) |
1683 | os=-genix | |
1659 | os=genix | |
1684 | 1660 | ;; |
1685 | 1661 | i370-*) |
1686 | os=-mvs | |
1687 | ;; | |
1688 | *-next) | |
1689 | os=-nextstep3 | |
1662 | os=mvs | |
1690 | 1663 | ;; |
1691 | 1664 | *-gould) |
1692 | os=-sysv | |
1665 | os=sysv | |
1693 | 1666 | ;; |
1694 | 1667 | *-highlevel) |
1695 | os=-bsd | |
1668 | os=bsd | |
1696 | 1669 | ;; |
1697 | 1670 | *-encore) |
1698 | os=-bsd | |
1671 | os=bsd | |
1699 | 1672 | ;; |
1700 | 1673 | *-sgi) |
1701 | os=-irix | |
1674 | os=irix | |
1702 | 1675 | ;; |
1703 | 1676 | *-siemens) |
1704 | os=-sysv4 | |
1677 | os=sysv4 | |
1705 | 1678 | ;; |
1706 | 1679 | *-masscomp) |
1707 | os=-rtu | |
1680 | os=rtu | |
1708 | 1681 | ;; |
1709 | 1682 | f30[01]-fujitsu | f700-fujitsu) |
1710 | os=-uxpv | |
1683 | os=uxpv | |
1711 | 1684 | ;; |
1712 | 1685 | *-rom68k) |
1713 | os=-coff | |
1686 | os=coff | |
1714 | 1687 | ;; |
1715 | 1688 | *-*bug) |
1716 | os=-coff | |
1689 | os=coff | |
1717 | 1690 | ;; |
1718 | 1691 | *-apple) |
1719 | os=-macos | |
1692 | os=macos | |
1720 | 1693 | ;; |
1721 | 1694 | *-atari*) |
1722 | os=-mint | |
1695 | os=mint | |
1696 | ;; | |
1697 | *-wrs) | |
1698 | os=vxworks | |
1723 | 1699 | ;; |
1724 | 1700 | *) |
1725 | os=-none | |
1701 | os=none | |
1726 | 1702 | ;; |
1727 | 1703 | esac |
1728 | 1704 | fi |
1729 | 1705 | |
1730 | 1706 | # Here we handle the case where we know the os, and the CPU type, but not the |
1731 | 1707 | # manufacturer. We pick the logical manufacturer. |
1732 | vendor=unknown | |
1733 | case $basic_machine in | |
1734 | *-unknown) | |
1708 | case $vendor in | |
1709 | unknown) | |
1735 | 1710 | case $os in |
1736 | -riscix*) | |
1711 | riscix*) | |
1737 | 1712 | vendor=acorn |
1738 | 1713 | ;; |
1739 | -sunos*) | |
1714 | sunos*) | |
1740 | 1715 | vendor=sun |
1741 | 1716 | ;; |
1742 | -cnk*|-aix*) | |
1717 | cnk*|-aix*) | |
1743 | 1718 | vendor=ibm |
1744 | 1719 | ;; |
1745 | -beos*) | |
1720 | beos*) | |
1746 | 1721 | vendor=be |
1747 | 1722 | ;; |
1748 | -hpux*) | |
1723 | hpux*) | |
1749 | 1724 | vendor=hp |
1750 | 1725 | ;; |
1751 | -mpeix*) | |
1726 | mpeix*) | |
1752 | 1727 | vendor=hp |
1753 | 1728 | ;; |
1754 | -hiux*) | |
1729 | hiux*) | |
1755 | 1730 | vendor=hitachi |
1756 | 1731 | ;; |
1757 | -unos*) | |
1732 | unos*) | |
1758 | 1733 | vendor=crds |
1759 | 1734 | ;; |
1760 | -dgux*) | |
1735 | dgux*) | |
1761 | 1736 | vendor=dg |
1762 | 1737 | ;; |
1763 | -luna*) | |
1738 | luna*) | |
1764 | 1739 | vendor=omron |
1765 | 1740 | ;; |
1766 | -genix*) | |
1741 | genix*) | |
1767 | 1742 | vendor=ns |
1768 | 1743 | ;; |
1769 | -mvs* | -opened*) | |
1744 | clix*) | |
1745 | vendor=intergraph | |
1746 | ;; | |
1747 | mvs* | opened*) | |
1770 | 1748 | vendor=ibm |
1771 | 1749 | ;; |
1772 | -os400*) | |
1750 | os400*) | |
1773 | 1751 | vendor=ibm |
1774 | 1752 | ;; |
1775 | -ptx*) | |
1753 | ptx*) | |
1776 | 1754 | vendor=sequent |
1777 | 1755 | ;; |
1778 | -tpf*) | |
1756 | tpf*) | |
1779 | 1757 | vendor=ibm |
1780 | 1758 | ;; |
1781 | -vxsim* | -vxworks* | -windiss*) | |
1759 | vxsim* | vxworks* | windiss*) | |
1782 | 1760 | vendor=wrs |
1783 | 1761 | ;; |
1784 | -aux*) | |
1762 | aux*) | |
1785 | 1763 | vendor=apple |
1786 | 1764 | ;; |
1787 | -hms*) | |
1765 | hms*) | |
1788 | 1766 | vendor=hitachi |
1789 | 1767 | ;; |
1790 | -mpw* | -macos*) | |
1768 | mpw* | macos*) | |
1791 | 1769 | vendor=apple |
1792 | 1770 | ;; |
1793 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | |
1771 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | |
1794 | 1772 | vendor=atari |
1795 | 1773 | ;; |
1796 | -vos*) | |
1774 | vos*) | |
1797 | 1775 | vendor=stratus |
1798 | 1776 | ;; |
1799 | 1777 | esac |
1800 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1801 | 1778 | ;; |
1802 | 1779 | esac |
1803 | 1780 | |
1804 | echo $basic_machine$os | |
1781 | echo "$cpu-$vendor-$os" | |
1805 | 1782 | exit |
1806 | 1783 | |
1807 | 1784 | # Local variables: |
1808 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1785 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1809 | 1786 | # time-stamp-start: "timestamp='" |
1810 | 1787 | # time-stamp-format: "%:y-%02m-%02d" |
1811 | 1788 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for virt-what 1.21. | |
2 | # Generated by GNU Autoconf 2.71 for virt-what 1.24. | |
3 | 3 | # |
4 | 4 | # |
5 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, | |
6 | # Inc. | |
6 | 7 | # |
7 | 8 | # |
8 | 9 | # This configure script is free software; the Free Software Foundation |
13 | 14 | |
14 | 15 | # Be more Bourne compatible |
15 | 16 | DUALCASE=1; export DUALCASE # for MKS sh |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17 | as_nop=: | |
18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
19 | then : | |
17 | 20 | emulate sh |
18 | 21 | NULLCMD=: |
19 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
20 | 23 | # is contrary to our usage. Disable this feature. |
21 | 24 | alias -g '${1+"$@"}'='"$@"' |
22 | 25 | setopt NO_GLOB_SUBST |
23 | else | |
26 | else $as_nop | |
24 | 27 | case `(set -o) 2>/dev/null` in #( |
25 | 28 | *posix*) : |
26 | 29 | set -o posix ;; #( |
30 | 33 | fi |
31 | 34 | |
32 | 35 | |
36 | ||
37 | # Reset variables that may have inherited troublesome values from | |
38 | # the environment. | |
39 | ||
40 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
41 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
42 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
43 | # Quoting is to prevent editors from complaining about space-tab. | |
33 | 44 | as_nl=' |
34 | 45 | ' |
35 | 46 | export as_nl |
36 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
37 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
38 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
41 | # but without wasting forks for bash or zsh. | |
42 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
43 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
44 | as_echo='print -r --' | |
45 | as_echo_n='print -rn --' | |
46 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='printf %s\n' | |
48 | as_echo_n='printf %s' | |
49 | else | |
50 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
51 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
52 | as_echo_n='/usr/ucb/echo -n' | |
53 | else | |
54 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
55 | as_echo_n_body='eval | |
56 | arg=$1; | |
57 | case $arg in #( | |
58 | *"$as_nl"*) | |
59 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
60 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
61 | esac; | |
62 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
63 | ' | |
64 | export as_echo_n_body | |
65 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
66 | fi | |
67 | export as_echo_body | |
68 | as_echo='sh -c $as_echo_body as_echo' | |
69 | fi | |
47 | IFS=" "" $as_nl" | |
48 | ||
49 | PS1='$ ' | |
50 | PS2='> ' | |
51 | PS4='+ ' | |
52 | ||
53 | # Ensure predictable behavior from utilities with locale-dependent output. | |
54 | LC_ALL=C | |
55 | export LC_ALL | |
56 | LANGUAGE=C | |
57 | export LANGUAGE | |
58 | ||
59 | # We cannot yet rely on "unset" to work, but we need these variables | |
60 | # to be unset--not just set to an empty or harmless value--now, to | |
61 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
62 | # also avoids known problems related to "unset" and subshell syntax | |
63 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
64 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
65 | do eval test \${$as_var+y} \ | |
66 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
67 | done | |
68 | ||
69 | # Ensure that fds 0, 1, and 2 are open. | |
70 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
71 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
72 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
70 | 73 | |
71 | 74 | # The user is always right. |
72 | if test "${PATH_SEPARATOR+set}" != set; then | |
75 | if ${PATH_SEPARATOR+false} :; then | |
73 | 76 | PATH_SEPARATOR=: |
74 | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
75 | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 | 80 | } |
78 | 81 | fi |
79 | 82 | |
80 | ||
81 | # IFS | |
82 | # We need space, tab and new line, in precisely that order. Quoting is | |
83 | # there to prevent editors from complaining about space-tab. | |
84 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
85 | # splitting by setting IFS to empty value.) | |
86 | IFS=" "" $as_nl" | |
87 | 83 | |
88 | 84 | # Find who we are. Look in the path if we contain no directory separator. |
89 | 85 | as_myself= |
93 | 89 | for as_dir in $PATH |
94 | 90 | do |
95 | 91 | IFS=$as_save_IFS |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
92 | case $as_dir in #((( | |
93 | '') as_dir=./ ;; | |
94 | */) ;; | |
95 | *) as_dir=$as_dir/ ;; | |
96 | esac | |
97 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
98 | 98 | done |
99 | 99 | IFS=$as_save_IFS |
100 | 100 | |
106 | 106 | as_myself=$0 |
107 | 107 | fi |
108 | 108 | if test ! -f "$as_myself"; then |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
109 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | 110 | exit 1 |
111 | 111 | fi |
112 | 112 | |
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | 113 | |
134 | 114 | # Use a proper internal environment variable to ensure we don't fall |
135 | 115 | # into an infinite loop, continuously re-executing ourselves. |
151 | 131 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
152 | 132 | # Admittedly, this is quite paranoid, since all the known shells bail |
153 | 133 | # out after a failed `exec'. |
154 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
155 | as_fn_exit 255 | |
134 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
135 | exit 255 | |
156 | 136 | fi |
157 | 137 | # We don't want this to propagate to other subprocesses. |
158 | 138 | { _as_can_reexec=; unset _as_can_reexec;} |
159 | 139 | if test "x$CONFIG_SHELL" = x; then |
160 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | as_bourne_compatible="as_nop=: | |
141 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
142 | then : | |
161 | 143 | emulate sh |
162 | 144 | NULLCMD=: |
163 | 145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
164 | 146 | # is contrary to our usage. Disable this feature. |
165 | 147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
166 | 148 | setopt NO_GLOB_SUBST |
167 | else | |
149 | else \$as_nop | |
168 | 150 | case \`(set -o) 2>/dev/null\` in #( |
169 | 151 | *posix*) : |
170 | 152 | set -o posix ;; #( |
184 | 166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
185 | 167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
186 | 168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
187 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
188 | ||
189 | else | |
169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
170 | then : | |
171 | ||
172 | else \$as_nop | |
190 | 173 | exitcode=1; echo positional parameters were not saved. |
191 | 174 | fi |
192 | 175 | test x\$exitcode = x0 || exit 1 |
176 | blah=\$(echo \$(echo blah)) | |
177 | test x\"\$blah\" = xblah || exit 1 | |
193 | 178 | test -x / || exit 1" |
194 | 179 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
195 | 180 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
196 | 181 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
197 | 182 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
198 | if (eval "$as_required") 2>/dev/null; then : | |
183 | if (eval "$as_required") 2>/dev/null | |
184 | then : | |
199 | 185 | as_have_required=yes |
200 | else | |
186 | else $as_nop | |
201 | 187 | as_have_required=no |
202 | 188 | fi |
203 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
204 | ||
205 | else | |
189 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
190 | then : | |
191 | ||
192 | else $as_nop | |
206 | 193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
207 | 194 | as_found=false |
208 | 195 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
209 | 196 | do |
210 | 197 | IFS=$as_save_IFS |
211 | test -z "$as_dir" && as_dir=. | |
198 | case $as_dir in #((( | |
199 | '') as_dir=./ ;; | |
200 | */) ;; | |
201 | *) as_dir=$as_dir/ ;; | |
202 | esac | |
212 | 203 | as_found=: |
213 | 204 | case $as_dir in #( |
214 | 205 | /*) |
215 | 206 | for as_base in sh bash ksh sh5; do |
216 | 207 | # Try only shells that exist, to save several forks. |
217 | as_shell=$as_dir/$as_base | |
208 | as_shell=$as_dir$as_base | |
218 | 209 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
219 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
210 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
211 | then : | |
220 | 212 | CONFIG_SHELL=$as_shell as_have_required=yes |
221 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
213 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
214 | then : | |
222 | 215 | break 2 |
223 | 216 | fi |
224 | 217 | fi |
226 | 219 | esac |
227 | 220 | as_found=false |
228 | 221 | done |
229 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
230 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
222 | IFS=$as_save_IFS | |
223 | if $as_found | |
224 | then : | |
225 | ||
226 | else $as_nop | |
227 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
228 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
229 | then : | |
231 | 230 | CONFIG_SHELL=$SHELL as_have_required=yes |
232 | fi; } | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | if test "x$CONFIG_SHELL" != x; then : | |
231 | fi | |
232 | fi | |
233 | ||
234 | ||
235 | if test "x$CONFIG_SHELL" != x | |
236 | then : | |
237 | 237 | export CONFIG_SHELL |
238 | 238 | # We cannot yet assume a decent shell, so we have to provide a |
239 | 239 | # neutralization value for shells without unset; and this also |
251 | 251 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
252 | 252 | # Admittedly, this is quite paranoid, since all the known shells bail |
253 | 253 | # out after a failed `exec'. |
254 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
254 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
255 | 255 | exit 255 |
256 | 256 | fi |
257 | 257 | |
258 | if test x$as_have_required = xno; then : | |
259 | $as_echo "$0: This script requires a shell more modern than all" | |
260 | $as_echo "$0: the shells that I found on your system." | |
261 | if test x${ZSH_VERSION+set} = xset ; then | |
262 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
263 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
258 | if test x$as_have_required = xno | |
259 | then : | |
260 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
261 | printf "%s\n" "$0: the shells that I found on your system." | |
262 | if test ${ZSH_VERSION+y} ; then | |
263 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
264 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
264 | 265 | else |
265 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
266 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, | |
266 | 267 | $0: including any error possibly output before this |
267 | 268 | $0: message. Then install a modern shell, or manually run |
268 | 269 | $0: the script under such a shell if you do have one." |
289 | 290 | } |
290 | 291 | as_unset=as_fn_unset |
291 | 292 | |
293 | ||
292 | 294 | # as_fn_set_status STATUS |
293 | 295 | # ----------------------- |
294 | 296 | # Set $? to STATUS, without forking. |
306 | 308 | as_fn_set_status $1 |
307 | 309 | exit $1 |
308 | 310 | } # as_fn_exit |
311 | # as_fn_nop | |
312 | # --------- | |
313 | # Do nothing but, unlike ":", preserve the value of $?. | |
314 | as_fn_nop () | |
315 | { | |
316 | return $? | |
317 | } | |
318 | as_nop=as_fn_nop | |
309 | 319 | |
310 | 320 | # as_fn_mkdir_p |
311 | 321 | # ------------- |
320 | 330 | as_dirs= |
321 | 331 | while :; do |
322 | 332 | case $as_dir in #( |
323 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
333 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
324 | 334 | *) as_qdir=$as_dir;; |
325 | 335 | esac |
326 | 336 | as_dirs="'$as_qdir' $as_dirs" |
329 | 339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
330 | 340 | X"$as_dir" : 'X\(//\)$' \| \ |
331 | 341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
332 | $as_echo X"$as_dir" | | |
342 | printf "%s\n" X"$as_dir" | | |
333 | 343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
334 | 344 | s//\1/ |
335 | 345 | q |
368 | 378 | # advantage of any shell optimizations that allow amortized linear growth over |
369 | 379 | # repeated appends, instead of the typical quadratic growth present in naive |
370 | 380 | # implementations. |
371 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
382 | then : | |
372 | 383 | eval 'as_fn_append () |
373 | 384 | { |
374 | 385 | eval $1+=\$2 |
375 | 386 | }' |
376 | else | |
387 | else $as_nop | |
377 | 388 | as_fn_append () |
378 | 389 | { |
379 | 390 | eval $1=\$$1\$2 |
385 | 396 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
386 | 397 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
387 | 398 | # must be portable across $(()) and expr. |
388 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
400 | then : | |
389 | 401 | eval 'as_fn_arith () |
390 | 402 | { |
391 | 403 | as_val=$(( $* )) |
392 | 404 | }' |
393 | else | |
405 | else $as_nop | |
394 | 406 | as_fn_arith () |
395 | 407 | { |
396 | 408 | as_val=`expr "$@" || test $? -eq 1` |
397 | 409 | } |
398 | 410 | fi # as_fn_arith |
399 | 411 | |
412 | # as_fn_nop | |
413 | # --------- | |
414 | # Do nothing but, unlike ":", preserve the value of $?. | |
415 | as_fn_nop () | |
416 | { | |
417 | return $? | |
418 | } | |
419 | as_nop=as_fn_nop | |
400 | 420 | |
401 | 421 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
402 | 422 | # ---------------------------------------- |
408 | 428 | as_status=$1; test $as_status -eq 0 && as_status=1 |
409 | 429 | if test "$4"; then |
410 | 430 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
411 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
431 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
412 | 432 | fi |
413 | $as_echo "$as_me: error: $2" >&2 | |
433 | printf "%s\n" "$as_me: error: $2" >&2 | |
414 | 434 | as_fn_exit $as_status |
415 | 435 | } # as_fn_error |
416 | 436 | |
437 | 457 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
438 | 458 | X"$0" : 'X\(//\)$' \| \ |
439 | 459 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
440 | $as_echo X/"$0" | | |
460 | printf "%s\n" X/"$0" | | |
441 | 461 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
442 | 462 | s//\1/ |
443 | 463 | q |
481 | 501 | s/-\n.*// |
482 | 502 | ' >$as_me.lineno && |
483 | 503 | chmod +x "$as_me.lineno" || |
484 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
504 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
485 | 505 | |
486 | 506 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
487 | 507 | # already done that, so ensure we don't try to do so again and fall |
495 | 515 | exit |
496 | 516 | } |
497 | 517 | |
518 | ||
519 | # Determine whether it's possible to make 'echo' print without a newline. | |
520 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
521 | # for compatibility with existing Makefiles. | |
498 | 522 | ECHO_C= ECHO_N= ECHO_T= |
499 | 523 | case `echo -n x` in #((((( |
500 | 524 | -n*) |
507 | 531 | *) |
508 | 532 | ECHO_N='-n';; |
509 | 533 | esac |
534 | ||
535 | # For backward compatibility with old third-party macros, we provide | |
536 | # the shell variables $as_echo and $as_echo_n. New code should use | |
537 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
538 | as_echo='printf %s\n' | |
539 | as_echo_n='printf %s' | |
540 | ||
510 | 541 | |
511 | 542 | rm -f conf$$ conf$$.exe conf$$.file |
512 | 543 | if test -d conf$$.dir; then |
575 | 606 | # Identity of this package. |
576 | 607 | PACKAGE_NAME='virt-what' |
577 | 608 | PACKAGE_TARNAME='virt-what' |
578 | PACKAGE_VERSION='1.21' | |
579 | PACKAGE_STRING='virt-what 1.21' | |
609 | PACKAGE_VERSION='1.24' | |
610 | PACKAGE_STRING='virt-what 1.24' | |
580 | 611 | PACKAGE_BUGREPORT='' |
581 | 612 | PACKAGE_URL='' |
582 | 613 | |
619 | 650 | AM_DEFAULT_VERBOSITY |
620 | 651 | AM_DEFAULT_V |
621 | 652 | AM_V |
653 | CSCOPE | |
654 | ETAGS | |
655 | CTAGS | |
622 | 656 | am__untar |
623 | 657 | am__tar |
624 | 658 | AMTAR |
661 | 695 | docdir |
662 | 696 | oldincludedir |
663 | 697 | includedir |
698 | runstatedir | |
664 | 699 | localstatedir |
665 | 700 | sharedstatedir |
666 | 701 | sysconfdir |
734 | 769 | sysconfdir='${prefix}/etc' |
735 | 770 | sharedstatedir='${prefix}/com' |
736 | 771 | localstatedir='${prefix}/var' |
772 | runstatedir='${localstatedir}/run' | |
737 | 773 | includedir='${prefix}/include' |
738 | 774 | oldincludedir='/usr/include' |
739 | 775 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
763 | 799 | *) ac_optarg=yes ;; |
764 | 800 | esac |
765 | 801 | |
766 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
767 | ||
768 | 802 | case $ac_dashdash$ac_option in |
769 | 803 | --) |
770 | 804 | ac_dashdash=yes ;; |
805 | 839 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
806 | 840 | # Reject names that are not valid shell variable names. |
807 | 841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
808 | as_fn_error $? "invalid feature name: $ac_useropt" | |
842 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
809 | 843 | ac_useropt_orig=$ac_useropt |
810 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
844 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
811 | 845 | case $ac_user_opts in |
812 | 846 | *" |
813 | 847 | "enable_$ac_useropt" |
831 | 865 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
832 | 866 | # Reject names that are not valid shell variable names. |
833 | 867 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
834 | as_fn_error $? "invalid feature name: $ac_useropt" | |
868 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
835 | 869 | ac_useropt_orig=$ac_useropt |
836 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
870 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
837 | 871 | case $ac_user_opts in |
838 | 872 | *" |
839 | 873 | "enable_$ac_useropt" |
986 | 1020 | | -silent | --silent | --silen | --sile | --sil) |
987 | 1021 | silent=yes ;; |
988 | 1022 | |
1023 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1024 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1025 | | --run | --ru | --r) | |
1026 | ac_prev=runstatedir ;; | |
1027 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1028 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1029 | | --run=* | --ru=* | --r=*) | |
1030 | runstatedir=$ac_optarg ;; | |
1031 | ||
989 | 1032 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
990 | 1033 | ac_prev=sbindir ;; |
991 | 1034 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1035 | 1078 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1036 | 1079 | # Reject names that are not valid shell variable names. |
1037 | 1080 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1038 | as_fn_error $? "invalid package name: $ac_useropt" | |
1081 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1039 | 1082 | ac_useropt_orig=$ac_useropt |
1040 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1083 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1041 | 1084 | case $ac_user_opts in |
1042 | 1085 | *" |
1043 | 1086 | "with_$ac_useropt" |
1051 | 1094 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1052 | 1095 | # Reject names that are not valid shell variable names. |
1053 | 1096 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1054 | as_fn_error $? "invalid package name: $ac_useropt" | |
1097 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1055 | 1098 | ac_useropt_orig=$ac_useropt |
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1099 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1057 | 1100 | case $ac_user_opts in |
1058 | 1101 | *" |
1059 | 1102 | "with_$ac_useropt" |
1097 | 1140 | |
1098 | 1141 | *) |
1099 | 1142 | # FIXME: should be removed in autoconf 3.0. |
1100 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1143 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1101 | 1144 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1102 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1145 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1103 | 1146 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1104 | 1147 | ;; |
1105 | 1148 | |
1115 | 1158 | case $enable_option_checking in |
1116 | 1159 | no) ;; |
1117 | 1160 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1118 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1161 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1119 | 1162 | esac |
1120 | 1163 | fi |
1121 | 1164 | |
1123 | 1166 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1124 | 1167 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1125 | 1168 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1126 | libdir localedir mandir | |
1169 | libdir localedir mandir runstatedir | |
1127 | 1170 | do |
1128 | 1171 | eval ac_val=\$$ac_var |
1129 | 1172 | # Remove trailing slashes. |
1179 | 1222 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1180 | 1223 | X"$as_myself" : 'X\(//\)$' \| \ |
1181 | 1224 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1182 | $as_echo X"$as_myself" | | |
1225 | printf "%s\n" X"$as_myself" | | |
1183 | 1226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1184 | 1227 | s//\1/ |
1185 | 1228 | q |
1236 | 1279 | # Omit some internal or obsolete options to make the list less imposing. |
1237 | 1280 | # This message is too long to be a string in the A/UX 3.1 sh. |
1238 | 1281 | cat <<_ACEOF |
1239 | \`configure' configures virt-what 1.21 to adapt to many kinds of systems. | |
1282 | \`configure' configures virt-what 1.24 to adapt to many kinds of systems. | |
1240 | 1283 | |
1241 | 1284 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1242 | 1285 | |
1276 | 1319 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1277 | 1320 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1278 | 1321 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1322 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1279 | 1323 | --libdir=DIR object code libraries [EPREFIX/lib] |
1280 | 1324 | --includedir=DIR C header files [PREFIX/include] |
1281 | 1325 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1306 | 1350 | |
1307 | 1351 | if test -n "$ac_init_help"; then |
1308 | 1352 | case $ac_init_help in |
1309 | short | recursive ) echo "Configuration of virt-what 1.21:";; | |
1353 | short | recursive ) echo "Configuration of virt-what 1.24:";; | |
1310 | 1354 | esac |
1311 | 1355 | cat <<\_ACEOF |
1312 | 1356 | |
1350 | 1394 | case "$ac_dir" in |
1351 | 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1352 | 1396 | *) |
1353 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1397 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
1354 | 1398 | # A ".." for each directory in $ac_dir_suffix. |
1355 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1399 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1356 | 1400 | case $ac_top_builddir_sub in |
1357 | 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1358 | 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1380 | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1381 | 1425 | |
1382 | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
1383 | # Check for guested configure. | |
1427 | # Check for configure.gnu first; this name is used for a wrapper for | |
1428 | # Metaconfig's "Configure" on case-insensitive file systems. | |
1384 | 1429 | if test -f "$ac_srcdir/configure.gnu"; then |
1385 | 1430 | echo && |
1386 | 1431 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1388 | 1433 | echo && |
1389 | 1434 | $SHELL "$ac_srcdir/configure" --help=recursive |
1390 | 1435 | else |
1391 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1436 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1392 | 1437 | fi || ac_status=$? |
1393 | 1438 | cd "$ac_pwd" || { ac_status=$?; break; } |
1394 | 1439 | done |
1397 | 1442 | test -n "$ac_init_help" && exit $ac_status |
1398 | 1443 | if $ac_init_version; then |
1399 | 1444 | cat <<\_ACEOF |
1400 | virt-what configure 1.21 | |
1401 | generated by GNU Autoconf 2.69 | |
1402 | ||
1403 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1445 | virt-what configure 1.24 | |
1446 | generated by GNU Autoconf 2.71 | |
1447 | ||
1448 | Copyright (C) 2021 Free Software Foundation, Inc. | |
1404 | 1449 | This configure script is free software; the Free Software Foundation |
1405 | 1450 | gives unlimited permission to copy, distribute and modify it. |
1406 | 1451 | _ACEOF |
1417 | 1462 | ac_fn_c_try_compile () |
1418 | 1463 | { |
1419 | 1464 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1420 | rm -f conftest.$ac_objext | |
1465 | rm -f conftest.$ac_objext conftest.beam | |
1421 | 1466 | if { { ac_try="$ac_compile" |
1422 | 1467 | case "(($ac_try" in |
1423 | 1468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1424 | 1469 | *) ac_try_echo=$ac_try;; |
1425 | 1470 | esac |
1426 | 1471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1427 | $as_echo "$ac_try_echo"; } >&5 | |
1472 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1428 | 1473 | (eval "$ac_compile") 2>conftest.err |
1429 | 1474 | ac_status=$? |
1430 | 1475 | if test -s conftest.err; then |
1432 | 1477 | cat conftest.er1 >&5 |
1433 | 1478 | mv -f conftest.er1 conftest.err |
1434 | 1479 | fi |
1435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1480 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1436 | 1481 | test $ac_status = 0; } && { |
1437 | 1482 | test -z "$ac_c_werror_flag" || |
1438 | 1483 | test ! -s conftest.err |
1439 | } && test -s conftest.$ac_objext; then : | |
1484 | } && test -s conftest.$ac_objext | |
1485 | then : | |
1440 | 1486 | ac_retval=0 |
1441 | else | |
1442 | $as_echo "$as_me: failed program was:" >&5 | |
1487 | else $as_nop | |
1488 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1443 | 1489 | sed 's/^/| /' conftest.$ac_ext >&5 |
1444 | 1490 | |
1445 | 1491 | ac_retval=1 |
1461 | 1507 | *) ac_try_echo=$ac_try;; |
1462 | 1508 | esac |
1463 | 1509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1464 | $as_echo "$ac_try_echo"; } >&5 | |
1510 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1465 | 1511 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1466 | 1512 | ac_status=$? |
1467 | 1513 | if test -s conftest.err; then |
1469 | 1515 | cat conftest.er1 >&5 |
1470 | 1516 | mv -f conftest.er1 conftest.err |
1471 | 1517 | fi |
1472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1518 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1473 | 1519 | test $ac_status = 0; } > conftest.i && { |
1474 | 1520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1475 | 1521 | test ! -s conftest.err |
1476 | }; then : | |
1522 | } | |
1523 | then : | |
1477 | 1524 | ac_retval=0 |
1478 | else | |
1479 | $as_echo "$as_me: failed program was:" >&5 | |
1525 | else $as_nop | |
1526 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1480 | 1527 | sed 's/^/| /' conftest.$ac_ext >&5 |
1481 | 1528 | |
1482 | 1529 | ac_retval=1 |
1485 | 1532 | as_fn_set_status $ac_retval |
1486 | 1533 | |
1487 | 1534 | } # ac_fn_c_try_cpp |
1535 | ac_configure_args_raw= | |
1536 | for ac_arg | |
1537 | do | |
1538 | case $ac_arg in | |
1539 | *\'*) | |
1540 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1541 | esac | |
1542 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1543 | done | |
1544 | ||
1545 | case $ac_configure_args_raw in | |
1546 | *$as_nl*) | |
1547 | ac_safe_unquote= ;; | |
1548 | *) | |
1549 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1550 | ac_unsafe_a="$ac_unsafe_z#~" | |
1551 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1552 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1553 | esac | |
1554 | ||
1488 | 1555 | cat >config.log <<_ACEOF |
1489 | 1556 | This file contains any messages produced by compilers while |
1490 | 1557 | running configure, to aid debugging if configure makes a mistake. |
1491 | 1558 | |
1492 | It was created by virt-what $as_me 1.21, which was | |
1493 | generated by GNU Autoconf 2.69. Invocation command line was | |
1494 | ||
1495 | $ $0 $@ | |
1559 | It was created by virt-what $as_me 1.24, which was | |
1560 | generated by GNU Autoconf 2.71. Invocation command line was | |
1561 | ||
1562 | $ $0$ac_configure_args_raw | |
1496 | 1563 | |
1497 | 1564 | _ACEOF |
1498 | 1565 | exec 5>>config.log |
1525 | 1592 | for as_dir in $PATH |
1526 | 1593 | do |
1527 | 1594 | IFS=$as_save_IFS |
1528 | test -z "$as_dir" && as_dir=. | |
1529 | $as_echo "PATH: $as_dir" | |
1595 | case $as_dir in #((( | |
1596 | '') as_dir=./ ;; | |
1597 | */) ;; | |
1598 | *) as_dir=$as_dir/ ;; | |
1599 | esac | |
1600 | printf "%s\n" "PATH: $as_dir" | |
1530 | 1601 | done |
1531 | 1602 | IFS=$as_save_IFS |
1532 | 1603 | |
1561 | 1632 | | -silent | --silent | --silen | --sile | --sil) |
1562 | 1633 | continue ;; |
1563 | 1634 | *\'*) |
1564 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1635 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1565 | 1636 | esac |
1566 | 1637 | case $ac_pass in |
1567 | 1638 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1596 | 1667 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1597 | 1668 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1598 | 1669 | trap 'exit_status=$? |
1670 | # Sanitize IFS. | |
1671 | IFS=" "" $as_nl" | |
1599 | 1672 | # Save into config.log some information that might help in debugging. |
1600 | 1673 | { |
1601 | 1674 | echo |
1602 | 1675 | |
1603 | $as_echo "## ---------------- ## | |
1676 | printf "%s\n" "## ---------------- ## | |
1604 | 1677 | ## Cache variables. ## |
1605 | 1678 | ## ---------------- ##" |
1606 | 1679 | echo |
1611 | 1684 | case $ac_val in #( |
1612 | 1685 | *${as_nl}*) |
1613 | 1686 | case $ac_var in #( |
1614 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1615 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1687 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1688 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1616 | 1689 | esac |
1617 | 1690 | case $ac_var in #( |
1618 | 1691 | _ | IFS | as_nl) ;; #( |
1636 | 1709 | ) |
1637 | 1710 | echo |
1638 | 1711 | |
1639 | $as_echo "## ----------------- ## | |
1712 | printf "%s\n" "## ----------------- ## | |
1640 | 1713 | ## Output variables. ## |
1641 | 1714 | ## ----------------- ##" |
1642 | 1715 | echo |
1644 | 1717 | do |
1645 | 1718 | eval ac_val=\$$ac_var |
1646 | 1719 | case $ac_val in |
1647 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1720 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1648 | 1721 | esac |
1649 | $as_echo "$ac_var='\''$ac_val'\''" | |
1722 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
1650 | 1723 | done | sort |
1651 | 1724 | echo |
1652 | 1725 | |
1653 | 1726 | if test -n "$ac_subst_files"; then |
1654 | $as_echo "## ------------------- ## | |
1727 | printf "%s\n" "## ------------------- ## | |
1655 | 1728 | ## File substitutions. ## |
1656 | 1729 | ## ------------------- ##" |
1657 | 1730 | echo |
1659 | 1732 | do |
1660 | 1733 | eval ac_val=\$$ac_var |
1661 | 1734 | case $ac_val in |
1662 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1735 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1663 | 1736 | esac |
1664 | $as_echo "$ac_var='\''$ac_val'\''" | |
1737 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
1665 | 1738 | done | sort |
1666 | 1739 | echo |
1667 | 1740 | fi |
1668 | 1741 | |
1669 | 1742 | if test -s confdefs.h; then |
1670 | $as_echo "## ----------- ## | |
1743 | printf "%s\n" "## ----------- ## | |
1671 | 1744 | ## confdefs.h. ## |
1672 | 1745 | ## ----------- ##" |
1673 | 1746 | echo |
1675 | 1748 | echo |
1676 | 1749 | fi |
1677 | 1750 | test "$ac_signal" != 0 && |
1678 | $as_echo "$as_me: caught signal $ac_signal" | |
1679 | $as_echo "$as_me: exit $exit_status" | |
1751 | printf "%s\n" "$as_me: caught signal $ac_signal" | |
1752 | printf "%s\n" "$as_me: exit $exit_status" | |
1680 | 1753 | } >&5 |
1681 | 1754 | rm -f core *.core core.conftest.* && |
1682 | 1755 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1690 | 1763 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1691 | 1764 | rm -f -r conftest* confdefs.h |
1692 | 1765 | |
1693 | $as_echo "/* confdefs.h */" > confdefs.h | |
1766 | printf "%s\n" "/* confdefs.h */" > confdefs.h | |
1694 | 1767 | |
1695 | 1768 | # Predefined preprocessor variables. |
1696 | 1769 | |
1697 | cat >>confdefs.h <<_ACEOF | |
1698 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1699 | _ACEOF | |
1700 | ||
1701 | cat >>confdefs.h <<_ACEOF | |
1702 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1703 | _ACEOF | |
1704 | ||
1705 | cat >>confdefs.h <<_ACEOF | |
1706 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1707 | _ACEOF | |
1708 | ||
1709 | cat >>confdefs.h <<_ACEOF | |
1710 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1711 | _ACEOF | |
1712 | ||
1713 | cat >>confdefs.h <<_ACEOF | |
1714 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1715 | _ACEOF | |
1716 | ||
1717 | cat >>confdefs.h <<_ACEOF | |
1718 | #define PACKAGE_URL "$PACKAGE_URL" | |
1719 | _ACEOF | |
1770 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
1771 | ||
1772 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
1773 | ||
1774 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
1775 | ||
1776 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
1777 | ||
1778 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
1779 | ||
1780 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
1720 | 1781 | |
1721 | 1782 | |
1722 | 1783 | # Let the site file select an alternate cache file if it wants to. |
1723 | 1784 | # Prefer an explicitly selected file to automatically selected ones. |
1724 | ac_site_file1=NONE | |
1725 | ac_site_file2=NONE | |
1726 | 1785 | if test -n "$CONFIG_SITE"; then |
1727 | # We do not want a PATH search for config.site. | |
1728 | case $CONFIG_SITE in #(( | |
1729 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1730 | */*) ac_site_file1=$CONFIG_SITE;; | |
1731 | *) ac_site_file1=./$CONFIG_SITE;; | |
1732 | esac | |
1786 | ac_site_files="$CONFIG_SITE" | |
1733 | 1787 | elif test "x$prefix" != xNONE; then |
1734 | ac_site_file1=$prefix/share/config.site | |
1735 | ac_site_file2=$prefix/etc/config.site | |
1788 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
1736 | 1789 | else |
1737 | ac_site_file1=$ac_default_prefix/share/config.site | |
1738 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1739 | fi | |
1740 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1790 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1791 | fi | |
1792 | ||
1793 | for ac_site_file in $ac_site_files | |
1741 | 1794 | do |
1742 | test "x$ac_site_file" = xNONE && continue | |
1743 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1745 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1795 | case $ac_site_file in #( | |
1796 | */*) : | |
1797 | ;; #( | |
1798 | *) : | |
1799 | ac_site_file=./$ac_site_file ;; | |
1800 | esac | |
1801 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
1802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1803 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
1746 | 1804 | sed 's/^/| /' "$ac_site_file" >&5 |
1747 | 1805 | . "$ac_site_file" \ |
1748 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1749 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1806 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1807 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
1750 | 1808 | as_fn_error $? "failed to load site script $ac_site_file |
1751 | 1809 | See \`config.log' for more details" "$LINENO" 5; } |
1752 | 1810 | fi |
1756 | 1814 | # Some versions of bash will fail to source /dev/null (special files |
1757 | 1815 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1758 | 1816 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1760 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1818 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
1761 | 1819 | case $cache_file in |
1762 | 1820 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1763 | 1821 | *) . "./$cache_file";; |
1764 | 1822 | esac |
1765 | 1823 | fi |
1766 | 1824 | else |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1768 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1826 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
1769 | 1827 | >$cache_file |
1828 | fi | |
1829 | ||
1830 | # Test code for whether the C compiler supports C89 (global declarations) | |
1831 | ac_c_conftest_c89_globals=' | |
1832 | /* Does the compiler advertise C89 conformance? | |
1833 | Do not test the value of __STDC__, because some compilers set it to 0 | |
1834 | while being otherwise adequately conformant. */ | |
1835 | #if !defined __STDC__ | |
1836 | # error "Compiler does not advertise C89 conformance" | |
1837 | #endif | |
1838 | ||
1839 | #include <stddef.h> | |
1840 | #include <stdarg.h> | |
1841 | struct stat; | |
1842 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
1843 | struct buf { int x; }; | |
1844 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
1845 | static char *e (p, i) | |
1846 | char **p; | |
1847 | int i; | |
1848 | { | |
1849 | return p[i]; | |
1850 | } | |
1851 | static char *f (char * (*g) (char **, int), char **p, ...) | |
1852 | { | |
1853 | char *s; | |
1854 | va_list v; | |
1855 | va_start (v,p); | |
1856 | s = g (p, va_arg (v,int)); | |
1857 | va_end (v); | |
1858 | return s; | |
1859 | } | |
1860 | ||
1861 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
1862 | function prototypes and stuff, but not \xHH hex character constants. | |
1863 | These do not provoke an error unfortunately, instead are silently treated | |
1864 | as an "x". The following induces an error, until -std is added to get | |
1865 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
1866 | array size at least. It is necessary to write \x00 == 0 to get something | |
1867 | that is true only with -std. */ | |
1868 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
1869 | ||
1870 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
1871 | inside strings and character constants. */ | |
1872 | #define FOO(x) '\''x'\'' | |
1873 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
1874 | ||
1875 | int test (int i, double x); | |
1876 | struct s1 {int (*f) (int a);}; | |
1877 | struct s2 {int (*f) (double a);}; | |
1878 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
1879 | int, int);' | |
1880 | ||
1881 | # Test code for whether the C compiler supports C89 (body of main). | |
1882 | ac_c_conftest_c89_main=' | |
1883 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
1884 | ' | |
1885 | ||
1886 | # Test code for whether the C compiler supports C99 (global declarations) | |
1887 | ac_c_conftest_c99_globals=' | |
1888 | // Does the compiler advertise C99 conformance? | |
1889 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
1890 | # error "Compiler does not advertise C99 conformance" | |
1891 | #endif | |
1892 | ||
1893 | #include <stdbool.h> | |
1894 | extern int puts (const char *); | |
1895 | extern int printf (const char *, ...); | |
1896 | extern int dprintf (int, const char *, ...); | |
1897 | extern void *malloc (size_t); | |
1898 | ||
1899 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
1900 | // dprintf is used instead of fprintf to avoid needing to declare | |
1901 | // FILE and stderr. | |
1902 | #define debug(...) dprintf (2, __VA_ARGS__) | |
1903 | #define showlist(...) puts (#__VA_ARGS__) | |
1904 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
1905 | static void | |
1906 | test_varargs_macros (void) | |
1907 | { | |
1908 | int x = 1234; | |
1909 | int y = 5678; | |
1910 | debug ("Flag"); | |
1911 | debug ("X = %d\n", x); | |
1912 | showlist (The first, second, and third items.); | |
1913 | report (x>y, "x is %d but y is %d", x, y); | |
1914 | } | |
1915 | ||
1916 | // Check long long types. | |
1917 | #define BIG64 18446744073709551615ull | |
1918 | #define BIG32 4294967295ul | |
1919 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
1920 | #if !BIG_OK | |
1921 | #error "your preprocessor is broken" | |
1922 | #endif | |
1923 | #if BIG_OK | |
1924 | #else | |
1925 | #error "your preprocessor is broken" | |
1926 | #endif | |
1927 | static long long int bignum = -9223372036854775807LL; | |
1928 | static unsigned long long int ubignum = BIG64; | |
1929 | ||
1930 | struct incomplete_array | |
1931 | { | |
1932 | int datasize; | |
1933 | double data[]; | |
1934 | }; | |
1935 | ||
1936 | struct named_init { | |
1937 | int number; | |
1938 | const wchar_t *name; | |
1939 | double average; | |
1940 | }; | |
1941 | ||
1942 | typedef const char *ccp; | |
1943 | ||
1944 | static inline int | |
1945 | test_restrict (ccp restrict text) | |
1946 | { | |
1947 | // See if C++-style comments work. | |
1948 | // Iterate through items via the restricted pointer. | |
1949 | // Also check for declarations in for loops. | |
1950 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
1951 | continue; | |
1952 | return 0; | |
1953 | } | |
1954 | ||
1955 | // Check varargs and va_copy. | |
1956 | static bool | |
1957 | test_varargs (const char *format, ...) | |
1958 | { | |
1959 | va_list args; | |
1960 | va_start (args, format); | |
1961 | va_list args_copy; | |
1962 | va_copy (args_copy, args); | |
1963 | ||
1964 | const char *str = ""; | |
1965 | int number = 0; | |
1966 | float fnumber = 0; | |
1967 | ||
1968 | while (*format) | |
1969 | { | |
1970 | switch (*format++) | |
1971 | { | |
1972 | case '\''s'\'': // string | |
1973 | str = va_arg (args_copy, const char *); | |
1974 | break; | |
1975 | case '\''d'\'': // int | |
1976 | number = va_arg (args_copy, int); | |
1977 | break; | |
1978 | case '\''f'\'': // float | |
1979 | fnumber = va_arg (args_copy, double); | |
1980 | break; | |
1981 | default: | |
1982 | break; | |
1983 | } | |
1984 | } | |
1985 | va_end (args_copy); | |
1986 | va_end (args); | |
1987 | ||
1988 | return *str && number && fnumber; | |
1989 | } | |
1990 | ' | |
1991 | ||
1992 | # Test code for whether the C compiler supports C99 (body of main). | |
1993 | ac_c_conftest_c99_main=' | |
1994 | // Check bool. | |
1995 | _Bool success = false; | |
1996 | success |= (argc != 0); | |
1997 | ||
1998 | // Check restrict. | |
1999 | if (test_restrict ("String literal") == 0) | |
2000 | success = true; | |
2001 | char *restrict newvar = "Another string"; | |
2002 | ||
2003 | // Check varargs. | |
2004 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2005 | test_varargs_macros (); | |
2006 | ||
2007 | // Check flexible array members. | |
2008 | struct incomplete_array *ia = | |
2009 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2010 | ia->datasize = 10; | |
2011 | for (int i = 0; i < ia->datasize; ++i) | |
2012 | ia->data[i] = i * 1.234; | |
2013 | ||
2014 | // Check named initializers. | |
2015 | struct named_init ni = { | |
2016 | .number = 34, | |
2017 | .name = L"Test wide string", | |
2018 | .average = 543.34343, | |
2019 | }; | |
2020 | ||
2021 | ni.number = 58; | |
2022 | ||
2023 | int dynamic_array[ni.number]; | |
2024 | dynamic_array[0] = argv[0][0]; | |
2025 | dynamic_array[ni.number - 1] = 543; | |
2026 | ||
2027 | // work around unused variable warnings | |
2028 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2029 | || dynamic_array[ni.number - 1] != 543); | |
2030 | ' | |
2031 | ||
2032 | # Test code for whether the C compiler supports C11 (global declarations) | |
2033 | ac_c_conftest_c11_globals=' | |
2034 | // Does the compiler advertise C11 conformance? | |
2035 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2036 | # error "Compiler does not advertise C11 conformance" | |
2037 | #endif | |
2038 | ||
2039 | // Check _Alignas. | |
2040 | char _Alignas (double) aligned_as_double; | |
2041 | char _Alignas (0) no_special_alignment; | |
2042 | extern char aligned_as_int; | |
2043 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2044 | ||
2045 | // Check _Alignof. | |
2046 | enum | |
2047 | { | |
2048 | int_alignment = _Alignof (int), | |
2049 | int_array_alignment = _Alignof (int[100]), | |
2050 | char_alignment = _Alignof (char) | |
2051 | }; | |
2052 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2053 | ||
2054 | // Check _Noreturn. | |
2055 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2056 | ||
2057 | // Check _Static_assert. | |
2058 | struct test_static_assert | |
2059 | { | |
2060 | int x; | |
2061 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2062 | "_Static_assert does not work in struct"); | |
2063 | long int y; | |
2064 | }; | |
2065 | ||
2066 | // Check UTF-8 literals. | |
2067 | #define u8 syntax error! | |
2068 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2069 | ||
2070 | // Check duplicate typedefs. | |
2071 | typedef long *long_ptr; | |
2072 | typedef long int *long_ptr; | |
2073 | typedef long_ptr long_ptr; | |
2074 | ||
2075 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2076 | struct anonymous | |
2077 | { | |
2078 | union { | |
2079 | struct { int i; int j; }; | |
2080 | struct { int k; long int l; } w; | |
2081 | }; | |
2082 | int m; | |
2083 | } v1; | |
2084 | ' | |
2085 | ||
2086 | # Test code for whether the C compiler supports C11 (body of main). | |
2087 | ac_c_conftest_c11_main=' | |
2088 | _Static_assert ((offsetof (struct anonymous, i) | |
2089 | == offsetof (struct anonymous, w.k)), | |
2090 | "Anonymous union alignment botch"); | |
2091 | v1.i = 2; | |
2092 | v1.w.k = 5; | |
2093 | ok |= v1.i != 5; | |
2094 | ' | |
2095 | ||
2096 | # Test code for whether the C compiler supports C11 (complete). | |
2097 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2098 | ${ac_c_conftest_c99_globals} | |
2099 | ${ac_c_conftest_c11_globals} | |
2100 | ||
2101 | int | |
2102 | main (int argc, char **argv) | |
2103 | { | |
2104 | int ok = 0; | |
2105 | ${ac_c_conftest_c89_main} | |
2106 | ${ac_c_conftest_c99_main} | |
2107 | ${ac_c_conftest_c11_main} | |
2108 | return ok; | |
2109 | } | |
2110 | " | |
2111 | ||
2112 | # Test code for whether the C compiler supports C99 (complete). | |
2113 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2114 | ${ac_c_conftest_c99_globals} | |
2115 | ||
2116 | int | |
2117 | main (int argc, char **argv) | |
2118 | { | |
2119 | int ok = 0; | |
2120 | ${ac_c_conftest_c89_main} | |
2121 | ${ac_c_conftest_c99_main} | |
2122 | return ok; | |
2123 | } | |
2124 | " | |
2125 | ||
2126 | # Test code for whether the C compiler supports C89 (complete). | |
2127 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2128 | ||
2129 | int | |
2130 | main (int argc, char **argv) | |
2131 | { | |
2132 | int ok = 0; | |
2133 | ${ac_c_conftest_c89_main} | |
2134 | return ok; | |
2135 | } | |
2136 | " | |
2137 | ||
2138 | ||
2139 | # Auxiliary files required by this configure script. | |
2140 | ac_aux_files="config.guess config.sub compile missing install-sh" | |
2141 | ||
2142 | # Locations in which to look for auxiliary files. | |
2143 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." | |
2144 | ||
2145 | # Search for a directory containing all of the required auxiliary files, | |
2146 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2147 | # If we don't find one directory that contains all the files we need, | |
2148 | # we report the set of missing files from the *first* directory in | |
2149 | # $ac_aux_dir_candidates and give up. | |
2150 | ac_missing_aux_files="" | |
2151 | ac_first_candidate=: | |
2152 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2154 | as_found=false | |
2155 | for as_dir in $ac_aux_dir_candidates | |
2156 | do | |
2157 | IFS=$as_save_IFS | |
2158 | case $as_dir in #((( | |
2159 | '') as_dir=./ ;; | |
2160 | */) ;; | |
2161 | *) as_dir=$as_dir/ ;; | |
2162 | esac | |
2163 | as_found=: | |
2164 | ||
2165 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2166 | ac_aux_dir_found=yes | |
2167 | ac_install_sh= | |
2168 | for ac_aux in $ac_aux_files | |
2169 | do | |
2170 | # As a special case, if "install-sh" is required, that requirement | |
2171 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2172 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2173 | if test x"$ac_aux" = x"install-sh" | |
2174 | then | |
2175 | if test -f "${as_dir}install-sh"; then | |
2176 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2177 | ac_install_sh="${as_dir}install-sh -c" | |
2178 | elif test -f "${as_dir}install.sh"; then | |
2179 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2180 | ac_install_sh="${as_dir}install.sh -c" | |
2181 | elif test -f "${as_dir}shtool"; then | |
2182 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2183 | ac_install_sh="${as_dir}shtool install -c" | |
2184 | else | |
2185 | ac_aux_dir_found=no | |
2186 | if $ac_first_candidate; then | |
2187 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2188 | else | |
2189 | break | |
2190 | fi | |
2191 | fi | |
2192 | else | |
2193 | if test -f "${as_dir}${ac_aux}"; then | |
2194 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2195 | else | |
2196 | ac_aux_dir_found=no | |
2197 | if $ac_first_candidate; then | |
2198 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2199 | else | |
2200 | break | |
2201 | fi | |
2202 | fi | |
2203 | fi | |
2204 | done | |
2205 | if test "$ac_aux_dir_found" = yes; then | |
2206 | ac_aux_dir="$as_dir" | |
2207 | break | |
2208 | fi | |
2209 | ac_first_candidate=false | |
2210 | ||
2211 | as_found=false | |
2212 | done | |
2213 | IFS=$as_save_IFS | |
2214 | if $as_found | |
2215 | then : | |
2216 | ||
2217 | else $as_nop | |
2218 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2219 | fi | |
2220 | ||
2221 | ||
2222 | # These three variables are undocumented and unsupported, | |
2223 | # and are intended to be withdrawn in a future Autoconf release. | |
2224 | # They can cause serious problems if a builder's source tree is in a directory | |
2225 | # whose full name contains unusual characters. | |
2226 | if test -f "${ac_aux_dir}config.guess"; then | |
2227 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2228 | fi | |
2229 | if test -f "${ac_aux_dir}config.sub"; then | |
2230 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2231 | fi | |
2232 | if test -f "$ac_aux_dir/configure"; then | |
2233 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
1770 | 2234 | fi |
1771 | 2235 | |
1772 | 2236 | # Check that the precious variables saved in the cache have kept the same |
1779 | 2243 | eval ac_new_val=\$ac_env_${ac_var}_value |
1780 | 2244 | case $ac_old_set,$ac_new_set in |
1781 | 2245 | set,) |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1783 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2247 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1784 | 2248 | ac_cache_corrupted=: ;; |
1785 | 2249 | ,set) |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1787 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2251 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1788 | 2252 | ac_cache_corrupted=: ;; |
1789 | 2253 | ,);; |
1790 | 2254 | *) |
1793 | 2257 | ac_old_val_w=`echo x $ac_old_val` |
1794 | 2258 | ac_new_val_w=`echo x $ac_new_val` |
1795 | 2259 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1797 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2261 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1798 | 2262 | ac_cache_corrupted=: |
1799 | 2263 | else |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1801 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2265 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1802 | 2266 | eval $ac_var=\$ac_old_val |
1803 | 2267 | fi |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1805 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1807 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2269 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
2270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2271 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
1808 | 2272 | fi;; |
1809 | 2273 | esac |
1810 | 2274 | # Pass precious variables to config.status. |
1811 | 2275 | if test "$ac_new_set" = set; then |
1812 | 2276 | case $ac_new_val in |
1813 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2277 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1814 | 2278 | *) ac_arg=$ac_var=$ac_new_val ;; |
1815 | 2279 | esac |
1816 | 2280 | case " $ac_configure_args " in |
1820 | 2284 | fi |
1821 | 2285 | done |
1822 | 2286 | if $ac_cache_corrupted; then |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1826 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1827 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2288 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2290 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2291 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
2292 | and start over" "$LINENO" 5 | |
1828 | 2293 | fi |
1829 | 2294 | ## -------------------- ## |
1830 | 2295 | ## Main body of script. ## |
1839 | 2304 | |
1840 | 2305 | am__api_version='1.16' |
1841 | 2306 | |
1842 | ac_aux_dir= | |
1843 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1844 | if test -f "$ac_dir/install-sh"; then | |
1845 | ac_aux_dir=$ac_dir | |
1846 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1847 | break | |
1848 | elif test -f "$ac_dir/install.sh"; then | |
1849 | ac_aux_dir=$ac_dir | |
1850 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1851 | break | |
1852 | elif test -f "$ac_dir/shtool"; then | |
1853 | ac_aux_dir=$ac_dir | |
1854 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1855 | break | |
1856 | fi | |
1857 | done | |
1858 | if test -z "$ac_aux_dir"; then | |
1859 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
1860 | fi | |
1861 | ||
1862 | # These three variables are undocumented and unsupported, | |
1863 | # and are intended to be withdrawn in a future Autoconf release. | |
1864 | # They can cause serious problems if a builder's source tree is in a directory | |
1865 | # whose full name contains unusual characters. | |
1866 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1867 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1868 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1869 | ||
1870 | ||
1871 | # Find a good install program. We prefer a C program (faster), | |
2307 | ||
2308 | ||
2309 | # Find a good install program. We prefer a C program (faster), | |
1872 | 2310 | # so one script is as good as another. But avoid the broken or |
1873 | 2311 | # incompatible versions: |
1874 | 2312 | # SysV /etc/install, /usr/sbin/install |
1882 | 2320 | # OS/2's system install, which has a completely different semantic |
1883 | 2321 | # ./install, which can be erroneously created by make from ./install.sh. |
1884 | 2322 | # Reject install programs that cannot install multiple files. |
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1886 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2324 | printf %s "checking for a BSD-compatible install... " >&6; } | |
1887 | 2325 | if test -z "$INSTALL"; then |
1888 | if ${ac_cv_path_install+:} false; then : | |
1889 | $as_echo_n "(cached) " >&6 | |
1890 | else | |
2326 | if test ${ac_cv_path_install+y} | |
2327 | then : | |
2328 | printf %s "(cached) " >&6 | |
2329 | else $as_nop | |
1891 | 2330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1892 | 2331 | for as_dir in $PATH |
1893 | 2332 | do |
1894 | 2333 | IFS=$as_save_IFS |
1895 | test -z "$as_dir" && as_dir=. | |
1896 | # Account for people who put trailing slashes in PATH elements. | |
1897 | case $as_dir/ in #(( | |
1898 | ./ | .// | /[cC]/* | \ | |
2334 | case $as_dir in #((( | |
2335 | '') as_dir=./ ;; | |
2336 | */) ;; | |
2337 | *) as_dir=$as_dir/ ;; | |
2338 | esac | |
2339 | # Account for fact that we put trailing slashes in our PATH walk. | |
2340 | case $as_dir in #(( | |
2341 | ./ | /[cC]/* | \ | |
1899 | 2342 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1900 | 2343 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1901 | 2344 | /usr/ucb/* ) ;; |
1905 | 2348 | # by default. |
1906 | 2349 | for ac_prog in ginstall scoinst install; do |
1907 | 2350 | for ac_exec_ext in '' $ac_executable_extensions; do |
1908 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2351 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
1909 | 2352 | if test $ac_prog = install && |
1910 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2353 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1911 | 2354 | # AIX install. It has an incompatible calling convention. |
1912 | 2355 | : |
1913 | 2356 | elif test $ac_prog = install && |
1914 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2357 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1915 | 2358 | # program-specific install script used by HP pwplus--don't use. |
1916 | 2359 | : |
1917 | 2360 | else |
1919 | 2362 | echo one > conftest.one |
1920 | 2363 | echo two > conftest.two |
1921 | 2364 | mkdir conftest.dir |
1922 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2365 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
1923 | 2366 | test -s conftest.one && test -s conftest.two && |
1924 | 2367 | test -s conftest.dir/conftest.one && |
1925 | 2368 | test -s conftest.dir/conftest.two |
1926 | 2369 | then |
1927 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2370 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
1928 | 2371 | break 3 |
1929 | 2372 | fi |
1930 | 2373 | fi |
1940 | 2383 | rm -rf conftest.one conftest.two conftest.dir |
1941 | 2384 | |
1942 | 2385 | fi |
1943 | if test "${ac_cv_path_install+set}" = set; then | |
2386 | if test ${ac_cv_path_install+y}; then | |
1944 | 2387 | INSTALL=$ac_cv_path_install |
1945 | 2388 | else |
1946 | 2389 | # As a last resort, use the slow shell script. Don't cache a |
1950 | 2393 | INSTALL=$ac_install_sh |
1951 | 2394 | fi |
1952 | 2395 | fi |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
1954 | $as_echo "$INSTALL" >&6; } | |
2396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2397 | printf "%s\n" "$INSTALL" >&6; } | |
1955 | 2398 | |
1956 | 2399 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1957 | 2400 | # It thinks the first close brace ends the variable substitution. |
1961 | 2404 | |
1962 | 2405 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1963 | 2406 | |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
1965 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2408 | printf %s "checking whether build environment is sane... " >&6; } | |
1966 | 2409 | # Reject unsafe characters in $srcdir or the absolute working directory |
1967 | 2410 | # name. Accept space and tab only in the latter. |
1968 | 2411 | am_lf=' |
2016 | 2459 | as_fn_error $? "newly created file is older than distributed files! |
2017 | 2460 | Check your system clock" "$LINENO" 5 |
2018 | 2461 | fi |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2020 | $as_echo "yes" >&6; } | |
2462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2463 | printf "%s\n" "yes" >&6; } | |
2021 | 2464 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2022 | 2465 | # generated files are strictly newer. |
2023 | 2466 | am_sleep_pid= |
2036 | 2479 | # Double any \ or $. |
2037 | 2480 | # By default was `s,x,x', remove it if useless. |
2038 | 2481 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2039 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2482 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` | |
2483 | ||
2040 | 2484 | |
2041 | 2485 | # Expand $ac_aux_dir to an absolute path. |
2042 | 2486 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
2043 | 2487 | |
2044 | if test x"${MISSING+set}" != xset; then | |
2045 | case $am_aux_dir in | |
2046 | *\ * | *\ *) | |
2047 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2048 | *) | |
2049 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2050 | esac | |
2488 | ||
2489 | if test x"${MISSING+set}" != xset; then | |
2490 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
2051 | 2491 | fi |
2052 | 2492 | # Use eval to expand $SHELL |
2053 | 2493 | if eval "$MISSING --is-lightweight"; then |
2054 | 2494 | am_missing_run="$MISSING " |
2055 | 2495 | else |
2056 | 2496 | am_missing_run= |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2058 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2498 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2059 | 2499 | fi |
2060 | 2500 | |
2061 | 2501 | if test x"${install_sh+set}" != xset; then |
2075 | 2515 | if test -n "$ac_tool_prefix"; then |
2076 | 2516 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2077 | 2517 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2079 | $as_echo_n "checking for $ac_word... " >&6; } | |
2080 | if ${ac_cv_prog_STRIP+:} false; then : | |
2081 | $as_echo_n "(cached) " >&6 | |
2082 | else | |
2518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2519 | printf %s "checking for $ac_word... " >&6; } | |
2520 | if test ${ac_cv_prog_STRIP+y} | |
2521 | then : | |
2522 | printf %s "(cached) " >&6 | |
2523 | else $as_nop | |
2083 | 2524 | if test -n "$STRIP"; then |
2084 | 2525 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2085 | 2526 | else |
2087 | 2528 | for as_dir in $PATH |
2088 | 2529 | do |
2089 | 2530 | IFS=$as_save_IFS |
2090 | test -z "$as_dir" && as_dir=. | |
2531 | case $as_dir in #((( | |
2532 | '') as_dir=./ ;; | |
2533 | */) ;; | |
2534 | *) as_dir=$as_dir/ ;; | |
2535 | esac | |
2091 | 2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
2092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2537 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2093 | 2538 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2539 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2095 | 2540 | break 2 |
2096 | 2541 | fi |
2097 | 2542 | done |
2102 | 2547 | fi |
2103 | 2548 | STRIP=$ac_cv_prog_STRIP |
2104 | 2549 | if test -n "$STRIP"; then |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2106 | $as_echo "$STRIP" >&6; } | |
2550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2551 | printf "%s\n" "$STRIP" >&6; } | |
2107 | 2552 | else |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2109 | $as_echo "no" >&6; } | |
2553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2554 | printf "%s\n" "no" >&6; } | |
2110 | 2555 | fi |
2111 | 2556 | |
2112 | 2557 | |
2115 | 2560 | ac_ct_STRIP=$STRIP |
2116 | 2561 | # Extract the first word of "strip", so it can be a program name with args. |
2117 | 2562 | set dummy strip; ac_word=$2 |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2119 | $as_echo_n "checking for $ac_word... " >&6; } | |
2120 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2121 | $as_echo_n "(cached) " >&6 | |
2122 | else | |
2563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2564 | printf %s "checking for $ac_word... " >&6; } | |
2565 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
2566 | then : | |
2567 | printf %s "(cached) " >&6 | |
2568 | else $as_nop | |
2123 | 2569 | if test -n "$ac_ct_STRIP"; then |
2124 | 2570 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2125 | 2571 | else |
2127 | 2573 | for as_dir in $PATH |
2128 | 2574 | do |
2129 | 2575 | IFS=$as_save_IFS |
2130 | test -z "$as_dir" && as_dir=. | |
2576 | case $as_dir in #((( | |
2577 | '') as_dir=./ ;; | |
2578 | */) ;; | |
2579 | *) as_dir=$as_dir/ ;; | |
2580 | esac | |
2131 | 2581 | for ac_exec_ext in '' $ac_executable_extensions; do |
2132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2582 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2133 | 2583 | ac_cv_prog_ac_ct_STRIP="strip" |
2134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2584 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2135 | 2585 | break 2 |
2136 | 2586 | fi |
2137 | 2587 | done |
2142 | 2592 | fi |
2143 | 2593 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2144 | 2594 | if test -n "$ac_ct_STRIP"; then |
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2146 | $as_echo "$ac_ct_STRIP" >&6; } | |
2595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2596 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
2147 | 2597 | else |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2149 | $as_echo "no" >&6; } | |
2598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2599 | printf "%s\n" "no" >&6; } | |
2150 | 2600 | fi |
2151 | 2601 | |
2152 | 2602 | if test "x$ac_ct_STRIP" = x; then |
2154 | 2604 | else |
2155 | 2605 | case $cross_compiling:$ac_tool_warned in |
2156 | 2606 | yes:) |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2608 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2159 | 2609 | ac_tool_warned=yes ;; |
2160 | 2610 | esac |
2161 | 2611 | STRIP=$ac_ct_STRIP |
2167 | 2617 | fi |
2168 | 2618 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2169 | 2619 | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2171 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2620 | ||
2621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
2622 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
2172 | 2623 | if test -z "$MKDIR_P"; then |
2173 | if ${ac_cv_path_mkdir+:} false; then : | |
2174 | $as_echo_n "(cached) " >&6 | |
2175 | else | |
2624 | if test ${ac_cv_path_mkdir+y} | |
2625 | then : | |
2626 | printf %s "(cached) " >&6 | |
2627 | else $as_nop | |
2176 | 2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2177 | 2629 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2178 | 2630 | do |
2179 | 2631 | IFS=$as_save_IFS |
2180 | test -z "$as_dir" && as_dir=. | |
2632 | case $as_dir in #((( | |
2633 | '') as_dir=./ ;; | |
2634 | */) ;; | |
2635 | *) as_dir=$as_dir/ ;; | |
2636 | esac | |
2181 | 2637 | for ac_prog in mkdir gmkdir; do |
2182 | 2638 | for ac_exec_ext in '' $ac_executable_extensions; do |
2183 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2184 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2185 | 'mkdir (GNU coreutils) '* | \ | |
2186 | 'mkdir (coreutils) '* | \ | |
2639 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue | |
2640 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2641 | 'mkdir ('*'coreutils) '* | \ | |
2642 | 'BusyBox '* | \ | |
2187 | 2643 | 'mkdir (fileutils) '4.1*) |
2188 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2644 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext | |
2189 | 2645 | break 3;; |
2190 | 2646 | esac |
2191 | 2647 | done |
2196 | 2652 | fi |
2197 | 2653 | |
2198 | 2654 | test -d ./--version && rmdir ./--version |
2199 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2655 | if test ${ac_cv_path_mkdir+y}; then | |
2200 | 2656 | MKDIR_P="$ac_cv_path_mkdir -p" |
2201 | 2657 | else |
2202 | 2658 | # As a last resort, use the slow shell script. Don't cache a |
2206 | 2662 | MKDIR_P="$ac_install_sh -d" |
2207 | 2663 | fi |
2208 | 2664 | fi |
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2210 | $as_echo "$MKDIR_P" >&6; } | |
2665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2666 | printf "%s\n" "$MKDIR_P" >&6; } | |
2211 | 2667 | |
2212 | 2668 | for ac_prog in gawk mawk nawk awk |
2213 | 2669 | do |
2214 | 2670 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2215 | 2671 | set dummy $ac_prog; ac_word=$2 |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2217 | $as_echo_n "checking for $ac_word... " >&6; } | |
2218 | if ${ac_cv_prog_AWK+:} false; then : | |
2219 | $as_echo_n "(cached) " >&6 | |
2220 | else | |
2672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2673 | printf %s "checking for $ac_word... " >&6; } | |
2674 | if test ${ac_cv_prog_AWK+y} | |
2675 | then : | |
2676 | printf %s "(cached) " >&6 | |
2677 | else $as_nop | |
2221 | 2678 | if test -n "$AWK"; then |
2222 | 2679 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2223 | 2680 | else |
2225 | 2682 | for as_dir in $PATH |
2226 | 2683 | do |
2227 | 2684 | IFS=$as_save_IFS |
2228 | test -z "$as_dir" && as_dir=. | |
2685 | case $as_dir in #((( | |
2686 | '') as_dir=./ ;; | |
2687 | */) ;; | |
2688 | *) as_dir=$as_dir/ ;; | |
2689 | esac | |
2229 | 2690 | for ac_exec_ext in '' $ac_executable_extensions; do |
2230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2691 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2231 | 2692 | ac_cv_prog_AWK="$ac_prog" |
2232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2693 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2233 | 2694 | break 2 |
2234 | 2695 | fi |
2235 | 2696 | done |
2240 | 2701 | fi |
2241 | 2702 | AWK=$ac_cv_prog_AWK |
2242 | 2703 | if test -n "$AWK"; then |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2244 | $as_echo "$AWK" >&6; } | |
2704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2705 | printf "%s\n" "$AWK" >&6; } | |
2245 | 2706 | else |
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2247 | $as_echo "no" >&6; } | |
2707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2708 | printf "%s\n" "no" >&6; } | |
2248 | 2709 | fi |
2249 | 2710 | |
2250 | 2711 | |
2251 | 2712 | test -n "$AWK" && break |
2252 | 2713 | done |
2253 | 2714 | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2255 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2716 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2256 | 2717 | set x ${MAKE-make} |
2257 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2258 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2259 | $as_echo_n "(cached) " >&6 | |
2260 | else | |
2718 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2719 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
2720 | then : | |
2721 | printf %s "(cached) " >&6 | |
2722 | else $as_nop | |
2261 | 2723 | cat >conftest.make <<\_ACEOF |
2262 | 2724 | SHELL = /bin/sh |
2263 | 2725 | all: |
2273 | 2735 | rm -f conftest.make |
2274 | 2736 | fi |
2275 | 2737 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2277 | $as_echo "yes" >&6; } | |
2738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2739 | printf "%s\n" "yes" >&6; } | |
2278 | 2740 | SET_MAKE= |
2279 | 2741 | else |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2281 | $as_echo "no" >&6; } | |
2742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2743 | printf "%s\n" "no" >&6; } | |
2282 | 2744 | SET_MAKE="MAKE=${MAKE-make}" |
2283 | 2745 | fi |
2284 | 2746 | |
2292 | 2754 | rmdir .tst 2>/dev/null |
2293 | 2755 | |
2294 | 2756 | # Check whether --enable-silent-rules was given. |
2295 | if test "${enable_silent_rules+set}" = set; then : | |
2757 | if test ${enable_silent_rules+y} | |
2758 | then : | |
2296 | 2759 | enableval=$enable_silent_rules; |
2297 | 2760 | fi |
2298 | 2761 | |
2302 | 2765 | *) AM_DEFAULT_VERBOSITY=1;; |
2303 | 2766 | esac |
2304 | 2767 | am_make=${MAKE-make} |
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2306 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2307 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2308 | $as_echo_n "(cached) " >&6 | |
2309 | else | |
2310 | if $as_echo 'TRUE=$(BAR$(V)) | |
2768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2769 | printf %s "checking whether $am_make supports nested variables... " >&6; } | |
2770 | if test ${am_cv_make_support_nested_variables+y} | |
2771 | then : | |
2772 | printf %s "(cached) " >&6 | |
2773 | else $as_nop | |
2774 | if printf "%s\n" 'TRUE=$(BAR$(V)) | |
2311 | 2775 | BAR0=false |
2312 | 2776 | BAR1=true |
2313 | 2777 | V=1 |
2319 | 2783 | am_cv_make_support_nested_variables=no |
2320 | 2784 | fi |
2321 | 2785 | fi |
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2323 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2787 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } | |
2324 | 2788 | if test $am_cv_make_support_nested_variables = yes; then |
2325 | 2789 | AM_V='$(V)' |
2326 | 2790 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2352 | 2816 | |
2353 | 2817 | # Define the identity of the package. |
2354 | 2818 | PACKAGE='virt-what' |
2355 | VERSION='1.21' | |
2356 | ||
2357 | ||
2358 | cat >>confdefs.h <<_ACEOF | |
2359 | #define PACKAGE "$PACKAGE" | |
2360 | _ACEOF | |
2361 | ||
2362 | ||
2363 | cat >>confdefs.h <<_ACEOF | |
2364 | #define VERSION "$VERSION" | |
2365 | _ACEOF | |
2819 | VERSION='1.24' | |
2820 | ||
2821 | ||
2822 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h | |
2823 | ||
2824 | ||
2825 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h | |
2366 | 2826 | |
2367 | 2827 | # Some tools Automake needs. |
2368 | 2828 | |
2400 | 2860 | |
2401 | 2861 | |
2402 | 2862 | |
2863 | ||
2864 | ||
2865 | # Variables for tags utilities; see am/tags.am | |
2866 | if test -z "$CTAGS"; then | |
2867 | CTAGS=ctags | |
2868 | fi | |
2869 | ||
2870 | if test -z "$ETAGS"; then | |
2871 | ETAGS=etags | |
2872 | fi | |
2873 | ||
2874 | if test -z "$CSCOPE"; then | |
2875 | CSCOPE=cscope | |
2876 | fi | |
2403 | 2877 | |
2404 | 2878 | |
2405 | 2879 | |
2446 | 2920 | fi |
2447 | 2921 | |
2448 | 2922 | |
2923 | ||
2924 | ||
2925 | ||
2926 | ||
2927 | ||
2928 | ||
2929 | ||
2930 | ||
2931 | ||
2449 | 2932 | DEPDIR="${am__leading_dot}deps" |
2450 | 2933 | |
2451 | 2934 | ac_config_commands="$ac_config_commands depfiles" |
2452 | 2935 | |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
2454 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
2936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
2937 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
2455 | 2938 | cat > confinc.mk << 'END' |
2456 | 2939 | am__doit: |
2457 | 2940 | @echo this is the am__doit target >confinc.out |
2487 | 2970 | fi |
2488 | 2971 | done |
2489 | 2972 | rm -f confinc.* confmf.* |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
2491 | $as_echo "${_am_result}" >&6; } | |
2973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
2974 | printf "%s\n" "${_am_result}" >&6; } | |
2492 | 2975 | |
2493 | 2976 | # Check whether --enable-dependency-tracking was given. |
2494 | if test "${enable_dependency_tracking+set}" = set; then : | |
2977 | if test ${enable_dependency_tracking+y} | |
2978 | then : | |
2495 | 2979 | enableval=$enable_dependency_tracking; |
2496 | 2980 | fi |
2497 | 2981 | |
2517 | 3001 | if test -n "$ac_tool_prefix"; then |
2518 | 3002 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2519 | 3003 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2521 | $as_echo_n "checking for $ac_word... " >&6; } | |
2522 | if ${ac_cv_prog_CC+:} false; then : | |
2523 | $as_echo_n "(cached) " >&6 | |
2524 | else | |
3004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3005 | printf %s "checking for $ac_word... " >&6; } | |
3006 | if test ${ac_cv_prog_CC+y} | |
3007 | then : | |
3008 | printf %s "(cached) " >&6 | |
3009 | else $as_nop | |
2525 | 3010 | if test -n "$CC"; then |
2526 | 3011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2527 | 3012 | else |
2529 | 3014 | for as_dir in $PATH |
2530 | 3015 | do |
2531 | 3016 | IFS=$as_save_IFS |
2532 | test -z "$as_dir" && as_dir=. | |
3017 | case $as_dir in #((( | |
3018 | '') as_dir=./ ;; | |
3019 | */) ;; | |
3020 | *) as_dir=$as_dir/ ;; | |
3021 | esac | |
2533 | 3022 | for ac_exec_ext in '' $ac_executable_extensions; do |
2534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3023 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2535 | 3024 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3025 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2537 | 3026 | break 2 |
2538 | 3027 | fi |
2539 | 3028 | done |
2544 | 3033 | fi |
2545 | 3034 | CC=$ac_cv_prog_CC |
2546 | 3035 | if test -n "$CC"; then |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2548 | $as_echo "$CC" >&6; } | |
3036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3037 | printf "%s\n" "$CC" >&6; } | |
2549 | 3038 | else |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2551 | $as_echo "no" >&6; } | |
3039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3040 | printf "%s\n" "no" >&6; } | |
2552 | 3041 | fi |
2553 | 3042 | |
2554 | 3043 | |
2557 | 3046 | ac_ct_CC=$CC |
2558 | 3047 | # Extract the first word of "gcc", so it can be a program name with args. |
2559 | 3048 | set dummy gcc; ac_word=$2 |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2561 | $as_echo_n "checking for $ac_word... " >&6; } | |
2562 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2563 | $as_echo_n "(cached) " >&6 | |
2564 | else | |
3049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3050 | printf %s "checking for $ac_word... " >&6; } | |
3051 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3052 | then : | |
3053 | printf %s "(cached) " >&6 | |
3054 | else $as_nop | |
2565 | 3055 | if test -n "$ac_ct_CC"; then |
2566 | 3056 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2567 | 3057 | else |
2569 | 3059 | for as_dir in $PATH |
2570 | 3060 | do |
2571 | 3061 | IFS=$as_save_IFS |
2572 | test -z "$as_dir" && as_dir=. | |
3062 | case $as_dir in #((( | |
3063 | '') as_dir=./ ;; | |
3064 | */) ;; | |
3065 | *) as_dir=$as_dir/ ;; | |
3066 | esac | |
2573 | 3067 | for ac_exec_ext in '' $ac_executable_extensions; do |
2574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3068 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2575 | 3069 | ac_cv_prog_ac_ct_CC="gcc" |
2576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3070 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2577 | 3071 | break 2 |
2578 | 3072 | fi |
2579 | 3073 | done |
2584 | 3078 | fi |
2585 | 3079 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2586 | 3080 | if test -n "$ac_ct_CC"; then |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2588 | $as_echo "$ac_ct_CC" >&6; } | |
3081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3082 | printf "%s\n" "$ac_ct_CC" >&6; } | |
2589 | 3083 | else |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2591 | $as_echo "no" >&6; } | |
3084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3085 | printf "%s\n" "no" >&6; } | |
2592 | 3086 | fi |
2593 | 3087 | |
2594 | 3088 | if test "x$ac_ct_CC" = x; then |
2596 | 3090 | else |
2597 | 3091 | case $cross_compiling:$ac_tool_warned in |
2598 | 3092 | yes:) |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2600 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3094 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2601 | 3095 | ac_tool_warned=yes ;; |
2602 | 3096 | esac |
2603 | 3097 | CC=$ac_ct_CC |
2610 | 3104 | if test -n "$ac_tool_prefix"; then |
2611 | 3105 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2612 | 3106 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2614 | $as_echo_n "checking for $ac_word... " >&6; } | |
2615 | if ${ac_cv_prog_CC+:} false; then : | |
2616 | $as_echo_n "(cached) " >&6 | |
2617 | else | |
3107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3108 | printf %s "checking for $ac_word... " >&6; } | |
3109 | if test ${ac_cv_prog_CC+y} | |
3110 | then : | |
3111 | printf %s "(cached) " >&6 | |
3112 | else $as_nop | |
2618 | 3113 | if test -n "$CC"; then |
2619 | 3114 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2620 | 3115 | else |
2622 | 3117 | for as_dir in $PATH |
2623 | 3118 | do |
2624 | 3119 | IFS=$as_save_IFS |
2625 | test -z "$as_dir" && as_dir=. | |
3120 | case $as_dir in #((( | |
3121 | '') as_dir=./ ;; | |
3122 | */) ;; | |
3123 | *) as_dir=$as_dir/ ;; | |
3124 | esac | |
2626 | 3125 | for ac_exec_ext in '' $ac_executable_extensions; do |
2627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3126 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2628 | 3127 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3128 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2630 | 3129 | break 2 |
2631 | 3130 | fi |
2632 | 3131 | done |
2637 | 3136 | fi |
2638 | 3137 | CC=$ac_cv_prog_CC |
2639 | 3138 | if test -n "$CC"; then |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2641 | $as_echo "$CC" >&6; } | |
3139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3140 | printf "%s\n" "$CC" >&6; } | |
2642 | 3141 | else |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2644 | $as_echo "no" >&6; } | |
3142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3143 | printf "%s\n" "no" >&6; } | |
2645 | 3144 | fi |
2646 | 3145 | |
2647 | 3146 | |
2650 | 3149 | if test -z "$CC"; then |
2651 | 3150 | # Extract the first word of "cc", so it can be a program name with args. |
2652 | 3151 | set dummy cc; ac_word=$2 |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2654 | $as_echo_n "checking for $ac_word... " >&6; } | |
2655 | if ${ac_cv_prog_CC+:} false; then : | |
2656 | $as_echo_n "(cached) " >&6 | |
2657 | else | |
3152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3153 | printf %s "checking for $ac_word... " >&6; } | |
3154 | if test ${ac_cv_prog_CC+y} | |
3155 | then : | |
3156 | printf %s "(cached) " >&6 | |
3157 | else $as_nop | |
2658 | 3158 | if test -n "$CC"; then |
2659 | 3159 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2660 | 3160 | else |
2663 | 3163 | for as_dir in $PATH |
2664 | 3164 | do |
2665 | 3165 | IFS=$as_save_IFS |
2666 | test -z "$as_dir" && as_dir=. | |
3166 | case $as_dir in #((( | |
3167 | '') as_dir=./ ;; | |
3168 | */) ;; | |
3169 | *) as_dir=$as_dir/ ;; | |
3170 | esac | |
2667 | 3171 | for ac_exec_ext in '' $ac_executable_extensions; do |
2668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2669 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3172 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3173 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2670 | 3174 | ac_prog_rejected=yes |
2671 | 3175 | continue |
2672 | 3176 | fi |
2673 | 3177 | ac_cv_prog_CC="cc" |
2674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3178 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2675 | 3179 | break 2 |
2676 | 3180 | fi |
2677 | 3181 | done |
2687 | 3191 | # However, it has the same basename, so the bogon will be chosen |
2688 | 3192 | # first if we set CC to just the basename; use the full file name. |
2689 | 3193 | shift |
2690 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3194 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
2691 | 3195 | fi |
2692 | 3196 | fi |
2693 | 3197 | fi |
2694 | 3198 | fi |
2695 | 3199 | CC=$ac_cv_prog_CC |
2696 | 3200 | if test -n "$CC"; then |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2698 | $as_echo "$CC" >&6; } | |
3201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3202 | printf "%s\n" "$CC" >&6; } | |
2699 | 3203 | else |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2701 | $as_echo "no" >&6; } | |
3204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3205 | printf "%s\n" "no" >&6; } | |
2702 | 3206 | fi |
2703 | 3207 | |
2704 | 3208 | |
2709 | 3213 | do |
2710 | 3214 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2711 | 3215 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2713 | $as_echo_n "checking for $ac_word... " >&6; } | |
2714 | if ${ac_cv_prog_CC+:} false; then : | |
2715 | $as_echo_n "(cached) " >&6 | |
2716 | else | |
3216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3217 | printf %s "checking for $ac_word... " >&6; } | |
3218 | if test ${ac_cv_prog_CC+y} | |
3219 | then : | |
3220 | printf %s "(cached) " >&6 | |
3221 | else $as_nop | |
2717 | 3222 | if test -n "$CC"; then |
2718 | 3223 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2719 | 3224 | else |
2721 | 3226 | for as_dir in $PATH |
2722 | 3227 | do |
2723 | 3228 | IFS=$as_save_IFS |
2724 | test -z "$as_dir" && as_dir=. | |
3229 | case $as_dir in #((( | |
3230 | '') as_dir=./ ;; | |
3231 | */) ;; | |
3232 | *) as_dir=$as_dir/ ;; | |
3233 | esac | |
2725 | 3234 | for ac_exec_ext in '' $ac_executable_extensions; do |
2726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3235 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2727 | 3236 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3237 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2729 | 3238 | break 2 |
2730 | 3239 | fi |
2731 | 3240 | done |
2736 | 3245 | fi |
2737 | 3246 | CC=$ac_cv_prog_CC |
2738 | 3247 | if test -n "$CC"; then |
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2740 | $as_echo "$CC" >&6; } | |
3248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3249 | printf "%s\n" "$CC" >&6; } | |
2741 | 3250 | else |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2743 | $as_echo "no" >&6; } | |
3251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3252 | printf "%s\n" "no" >&6; } | |
2744 | 3253 | fi |
2745 | 3254 | |
2746 | 3255 | |
2753 | 3262 | do |
2754 | 3263 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2755 | 3264 | set dummy $ac_prog; ac_word=$2 |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2757 | $as_echo_n "checking for $ac_word... " >&6; } | |
2758 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2759 | $as_echo_n "(cached) " >&6 | |
2760 | else | |
3265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3266 | printf %s "checking for $ac_word... " >&6; } | |
3267 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3268 | then : | |
3269 | printf %s "(cached) " >&6 | |
3270 | else $as_nop | |
2761 | 3271 | if test -n "$ac_ct_CC"; then |
2762 | 3272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2763 | 3273 | else |
2765 | 3275 | for as_dir in $PATH |
2766 | 3276 | do |
2767 | 3277 | IFS=$as_save_IFS |
2768 | test -z "$as_dir" && as_dir=. | |
3278 | case $as_dir in #((( | |
3279 | '') as_dir=./ ;; | |
3280 | */) ;; | |
3281 | *) as_dir=$as_dir/ ;; | |
3282 | esac | |
2769 | 3283 | for ac_exec_ext in '' $ac_executable_extensions; do |
2770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3284 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2771 | 3285 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3286 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2773 | 3287 | break 2 |
2774 | 3288 | fi |
2775 | 3289 | done |
2780 | 3294 | fi |
2781 | 3295 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2782 | 3296 | if test -n "$ac_ct_CC"; then |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2784 | $as_echo "$ac_ct_CC" >&6; } | |
3297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3298 | printf "%s\n" "$ac_ct_CC" >&6; } | |
2785 | 3299 | else |
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2787 | $as_echo "no" >&6; } | |
3300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3301 | printf "%s\n" "no" >&6; } | |
2788 | 3302 | fi |
2789 | 3303 | |
2790 | 3304 | |
2796 | 3310 | else |
2797 | 3311 | case $cross_compiling:$ac_tool_warned in |
2798 | 3312 | yes:) |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3314 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2801 | 3315 | ac_tool_warned=yes ;; |
2802 | 3316 | esac |
2803 | 3317 | CC=$ac_ct_CC |
2805 | 3319 | fi |
2806 | 3320 | |
2807 | 3321 | fi |
2808 | ||
2809 | ||
2810 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3322 | if test -z "$CC"; then | |
3323 | if test -n "$ac_tool_prefix"; then | |
3324 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3325 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3327 | printf %s "checking for $ac_word... " >&6; } | |
3328 | if test ${ac_cv_prog_CC+y} | |
3329 | then : | |
3330 | printf %s "(cached) " >&6 | |
3331 | else $as_nop | |
3332 | if test -n "$CC"; then | |
3333 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3334 | else | |
3335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3336 | for as_dir in $PATH | |
3337 | do | |
3338 | IFS=$as_save_IFS | |
3339 | case $as_dir in #((( | |
3340 | '') as_dir=./ ;; | |
3341 | */) ;; | |
3342 | *) as_dir=$as_dir/ ;; | |
3343 | esac | |
3344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3345 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3346 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3347 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3348 | break 2 | |
3349 | fi | |
3350 | done | |
3351 | done | |
3352 | IFS=$as_save_IFS | |
3353 | ||
3354 | fi | |
3355 | fi | |
3356 | CC=$ac_cv_prog_CC | |
3357 | if test -n "$CC"; then | |
3358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3359 | printf "%s\n" "$CC" >&6; } | |
3360 | else | |
3361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3362 | printf "%s\n" "no" >&6; } | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | fi | |
3367 | if test -z "$ac_cv_prog_CC"; then | |
3368 | ac_ct_CC=$CC | |
3369 | # Extract the first word of "clang", so it can be a program name with args. | |
3370 | set dummy clang; ac_word=$2 | |
3371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3372 | printf %s "checking for $ac_word... " >&6; } | |
3373 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3374 | then : | |
3375 | printf %s "(cached) " >&6 | |
3376 | else $as_nop | |
3377 | if test -n "$ac_ct_CC"; then | |
3378 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3379 | else | |
3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3381 | for as_dir in $PATH | |
3382 | do | |
3383 | IFS=$as_save_IFS | |
3384 | case $as_dir in #((( | |
3385 | '') as_dir=./ ;; | |
3386 | */) ;; | |
3387 | *) as_dir=$as_dir/ ;; | |
3388 | esac | |
3389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3390 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3391 | ac_cv_prog_ac_ct_CC="clang" | |
3392 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3393 | break 2 | |
3394 | fi | |
3395 | done | |
3396 | done | |
3397 | IFS=$as_save_IFS | |
3398 | ||
3399 | fi | |
3400 | fi | |
3401 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3402 | if test -n "$ac_ct_CC"; then | |
3403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3404 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3405 | else | |
3406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3407 | printf "%s\n" "no" >&6; } | |
3408 | fi | |
3409 | ||
3410 | if test "x$ac_ct_CC" = x; then | |
3411 | CC="" | |
3412 | else | |
3413 | case $cross_compiling:$ac_tool_warned in | |
3414 | yes:) | |
3415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3416 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3417 | ac_tool_warned=yes ;; | |
3418 | esac | |
3419 | CC=$ac_ct_CC | |
3420 | fi | |
3421 | else | |
3422 | CC="$ac_cv_prog_CC" | |
3423 | fi | |
3424 | ||
3425 | fi | |
3426 | ||
3427 | ||
3428 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3429 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2812 | 3430 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2813 | 3431 | See \`config.log' for more details" "$LINENO" 5; } |
2814 | 3432 | |
2815 | 3433 | # Provide some information about the compiler. |
2816 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2817 | 3435 | set X $ac_compile |
2818 | 3436 | ac_compiler=$2 |
2819 | for ac_option in --version -v -V -qversion; do | |
3437 | for ac_option in --version -v -V -qversion -version; do | |
2820 | 3438 | { { ac_try="$ac_compiler $ac_option >&5" |
2821 | 3439 | case "(($ac_try" in |
2822 | 3440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2823 | 3441 | *) ac_try_echo=$ac_try;; |
2824 | 3442 | esac |
2825 | 3443 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2826 | $as_echo "$ac_try_echo"; } >&5 | |
3444 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2827 | 3445 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2828 | 3446 | ac_status=$? |
2829 | 3447 | if test -s conftest.err; then |
2833 | 3451 | cat conftest.er1 >&5 |
2834 | 3452 | fi |
2835 | 3453 | rm -f conftest.er1 conftest.err |
2836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3454 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2837 | 3455 | test $ac_status = 0; } |
2838 | 3456 | done |
2839 | 3457 | |
2841 | 3459 | /* end confdefs.h. */ |
2842 | 3460 | |
2843 | 3461 | int |
2844 | main () | |
3462 | main (void) | |
2845 | 3463 | { |
2846 | 3464 | |
2847 | 3465 | ; |
2853 | 3471 | # Try to create an executable without -o first, disregard a.out. |
2854 | 3472 | # It will help us diagnose broken compilers, and finding out an intuition |
2855 | 3473 | # of exeext. |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2857 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2858 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3475 | printf %s "checking whether the C compiler works... " >&6; } | |
3476 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2859 | 3477 | |
2860 | 3478 | # The possible output files: |
2861 | 3479 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2876 | 3494 | *) ac_try_echo=$ac_try;; |
2877 | 3495 | esac |
2878 | 3496 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2879 | $as_echo "$ac_try_echo"; } >&5 | |
3497 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2880 | 3498 | (eval "$ac_link_default") 2>&5 |
2881 | 3499 | ac_status=$? |
2882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2883 | test $ac_status = 0; }; then : | |
3500 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3501 | test $ac_status = 0; } | |
3502 | then : | |
2884 | 3503 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2885 | 3504 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2886 | 3505 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2897 | 3516 | # certainly right. |
2898 | 3517 | break;; |
2899 | 3518 | *.* ) |
2900 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3519 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | |
2901 | 3520 | then :; else |
2902 | 3521 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2903 | 3522 | fi |
2913 | 3532 | done |
2914 | 3533 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2915 | 3534 | |
2916 | else | |
3535 | else $as_nop | |
2917 | 3536 | ac_file='' |
2918 | 3537 | fi |
2919 | if test -z "$ac_file"; then : | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2921 | $as_echo "no" >&6; } | |
2922 | $as_echo "$as_me: failed program was:" >&5 | |
3538 | if test -z "$ac_file" | |
3539 | then : | |
3540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3541 | printf "%s\n" "no" >&6; } | |
3542 | printf "%s\n" "$as_me: failed program was:" >&5 | |
2923 | 3543 | sed 's/^/| /' conftest.$ac_ext >&5 |
2924 | 3544 | |
2925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3545 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3546 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2927 | 3547 | as_fn_error 77 "C compiler cannot create executables |
2928 | 3548 | See \`config.log' for more details" "$LINENO" 5; } |
2929 | else | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2931 | $as_echo "yes" >&6; } | |
2932 | fi | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2934 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2936 | $as_echo "$ac_file" >&6; } | |
3549 | else $as_nop | |
3550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3551 | printf "%s\n" "yes" >&6; } | |
3552 | fi | |
3553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3554 | printf %s "checking for C compiler default output file name... " >&6; } | |
3555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3556 | printf "%s\n" "$ac_file" >&6; } | |
2937 | 3557 | ac_exeext=$ac_cv_exeext |
2938 | 3558 | |
2939 | 3559 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2940 | 3560 | ac_clean_files=$ac_clean_files_save |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2942 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3562 | printf %s "checking for suffix of executables... " >&6; } | |
2943 | 3563 | if { { ac_try="$ac_link" |
2944 | 3564 | case "(($ac_try" in |
2945 | 3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2946 | 3566 | *) ac_try_echo=$ac_try;; |
2947 | 3567 | esac |
2948 | 3568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2949 | $as_echo "$ac_try_echo"; } >&5 | |
3569 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2950 | 3570 | (eval "$ac_link") 2>&5 |
2951 | 3571 | ac_status=$? |
2952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2953 | test $ac_status = 0; }; then : | |
3572 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3573 | test $ac_status = 0; } | |
3574 | then : | |
2954 | 3575 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2955 | 3576 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2956 | 3577 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2964 | 3585 | * ) break;; |
2965 | 3586 | esac |
2966 | 3587 | done |
2967 | else | |
2968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3588 | else $as_nop | |
3589 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3590 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2970 | 3591 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2971 | 3592 | See \`config.log' for more details" "$LINENO" 5; } |
2972 | 3593 | fi |
2973 | 3594 | rm -f conftest conftest$ac_cv_exeext |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2975 | $as_echo "$ac_cv_exeext" >&6; } | |
3595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3596 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
2976 | 3597 | |
2977 | 3598 | rm -f conftest.$ac_ext |
2978 | 3599 | EXEEXT=$ac_cv_exeext |
2981 | 3602 | /* end confdefs.h. */ |
2982 | 3603 | #include <stdio.h> |
2983 | 3604 | int |
2984 | main () | |
3605 | main (void) | |
2985 | 3606 | { |
2986 | 3607 | FILE *f = fopen ("conftest.out", "w"); |
2987 | 3608 | return ferror (f) || fclose (f) != 0; |
2993 | 3614 | ac_clean_files="$ac_clean_files conftest.out" |
2994 | 3615 | # Check that the compiler produces executables we can run. If not, either |
2995 | 3616 | # the compiler is broken, or we cross compile. |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2997 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3618 | printf %s "checking whether we are cross compiling... " >&6; } | |
2998 | 3619 | if test "$cross_compiling" != yes; then |
2999 | 3620 | { { ac_try="$ac_link" |
3000 | 3621 | case "(($ac_try" in |
3002 | 3623 | *) ac_try_echo=$ac_try;; |
3003 | 3624 | esac |
3004 | 3625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3005 | $as_echo "$ac_try_echo"; } >&5 | |
3626 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3006 | 3627 | (eval "$ac_link") 2>&5 |
3007 | 3628 | ac_status=$? |
3008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3629 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3009 | 3630 | test $ac_status = 0; } |
3010 | 3631 | if { ac_try='./conftest$ac_cv_exeext' |
3011 | 3632 | { { case "(($ac_try" in |
3013 | 3634 | *) ac_try_echo=$ac_try;; |
3014 | 3635 | esac |
3015 | 3636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3016 | $as_echo "$ac_try_echo"; } >&5 | |
3637 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3017 | 3638 | (eval "$ac_try") 2>&5 |
3018 | 3639 | ac_status=$? |
3019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3640 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3020 | 3641 | test $ac_status = 0; }; }; then |
3021 | 3642 | cross_compiling=no |
3022 | 3643 | else |
3023 | 3644 | if test "$cross_compiling" = maybe; then |
3024 | 3645 | cross_compiling=yes |
3025 | 3646 | else |
3026 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3027 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3028 | as_fn_error $? "cannot run C compiled programs. | |
3647 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3648 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3649 | as_fn_error 77 "cannot run C compiled programs. | |
3029 | 3650 | If you meant to cross compile, use \`--host'. |
3030 | 3651 | See \`config.log' for more details" "$LINENO" 5; } |
3031 | 3652 | fi |
3032 | 3653 | fi |
3033 | 3654 | fi |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3035 | $as_echo "$cross_compiling" >&6; } | |
3655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3656 | printf "%s\n" "$cross_compiling" >&6; } | |
3036 | 3657 | |
3037 | 3658 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3038 | 3659 | ac_clean_files=$ac_clean_files_save |
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3040 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3041 | if ${ac_cv_objext+:} false; then : | |
3042 | $as_echo_n "(cached) " >&6 | |
3043 | else | |
3660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3661 | printf %s "checking for suffix of object files... " >&6; } | |
3662 | if test ${ac_cv_objext+y} | |
3663 | then : | |
3664 | printf %s "(cached) " >&6 | |
3665 | else $as_nop | |
3044 | 3666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3045 | 3667 | /* end confdefs.h. */ |
3046 | 3668 | |
3047 | 3669 | int |
3048 | main () | |
3670 | main (void) | |
3049 | 3671 | { |
3050 | 3672 | |
3051 | 3673 | ; |
3059 | 3681 | *) ac_try_echo=$ac_try;; |
3060 | 3682 | esac |
3061 | 3683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3062 | $as_echo "$ac_try_echo"; } >&5 | |
3684 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3063 | 3685 | (eval "$ac_compile") 2>&5 |
3064 | 3686 | ac_status=$? |
3065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3066 | test $ac_status = 0; }; then : | |
3687 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3688 | test $ac_status = 0; } | |
3689 | then : | |
3067 | 3690 | for ac_file in conftest.o conftest.obj conftest.*; do |
3068 | 3691 | test -f "$ac_file" || continue; |
3069 | 3692 | case $ac_file in |
3072 | 3695 | break;; |
3073 | 3696 | esac |
3074 | 3697 | done |
3075 | else | |
3076 | $as_echo "$as_me: failed program was:" >&5 | |
3698 | else $as_nop | |
3699 | printf "%s\n" "$as_me: failed program was:" >&5 | |
3077 | 3700 | sed 's/^/| /' conftest.$ac_ext >&5 |
3078 | 3701 | |
3079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3702 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3703 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3081 | 3704 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3082 | 3705 | See \`config.log' for more details" "$LINENO" 5; } |
3083 | 3706 | fi |
3084 | 3707 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3085 | 3708 | fi |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3087 | $as_echo "$ac_cv_objext" >&6; } | |
3709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3710 | printf "%s\n" "$ac_cv_objext" >&6; } | |
3088 | 3711 | OBJEXT=$ac_cv_objext |
3089 | 3712 | ac_objext=$OBJEXT |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3091 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3092 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3093 | $as_echo_n "(cached) " >&6 | |
3094 | else | |
3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
3714 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
3715 | if test ${ac_cv_c_compiler_gnu+y} | |
3716 | then : | |
3717 | printf %s "(cached) " >&6 | |
3718 | else $as_nop | |
3095 | 3719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3096 | 3720 | /* end confdefs.h. */ |
3097 | 3721 | |
3098 | 3722 | int |
3099 | main () | |
3723 | main (void) | |
3100 | 3724 | { |
3101 | 3725 | #ifndef __GNUC__ |
3102 | 3726 | choke me |
3106 | 3730 | return 0; |
3107 | 3731 | } |
3108 | 3732 | _ACEOF |
3109 | if ac_fn_c_try_compile "$LINENO"; then : | |
3733 | if ac_fn_c_try_compile "$LINENO" | |
3734 | then : | |
3110 | 3735 | ac_compiler_gnu=yes |
3111 | else | |
3736 | else $as_nop | |
3112 | 3737 | ac_compiler_gnu=no |
3113 | 3738 | fi |
3114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3739 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3115 | 3740 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3116 | 3741 | |
3117 | 3742 | fi |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3119 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3744 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
3745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3746 | ||
3120 | 3747 | if test $ac_compiler_gnu = yes; then |
3121 | 3748 | GCC=yes |
3122 | 3749 | else |
3123 | 3750 | GCC= |
3124 | 3751 | fi |
3125 | ac_test_CFLAGS=${CFLAGS+set} | |
3752 | ac_test_CFLAGS=${CFLAGS+y} | |
3126 | 3753 | ac_save_CFLAGS=$CFLAGS |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3128 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3129 | if ${ac_cv_prog_cc_g+:} false; then : | |
3130 | $as_echo_n "(cached) " >&6 | |
3131 | else | |
3754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3755 | printf %s "checking whether $CC accepts -g... " >&6; } | |
3756 | if test ${ac_cv_prog_cc_g+y} | |
3757 | then : | |
3758 | printf %s "(cached) " >&6 | |
3759 | else $as_nop | |
3132 | 3760 | ac_save_c_werror_flag=$ac_c_werror_flag |
3133 | 3761 | ac_c_werror_flag=yes |
3134 | 3762 | ac_cv_prog_cc_g=no |
3137 | 3765 | /* end confdefs.h. */ |
3138 | 3766 | |
3139 | 3767 | int |
3140 | main () | |
3768 | main (void) | |
3141 | 3769 | { |
3142 | 3770 | |
3143 | 3771 | ; |
3144 | 3772 | return 0; |
3145 | 3773 | } |
3146 | 3774 | _ACEOF |
3147 | if ac_fn_c_try_compile "$LINENO"; then : | |
3775 | if ac_fn_c_try_compile "$LINENO" | |
3776 | then : | |
3148 | 3777 | ac_cv_prog_cc_g=yes |
3149 | else | |
3778 | else $as_nop | |
3150 | 3779 | CFLAGS="" |
3151 | 3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3152 | 3781 | /* end confdefs.h. */ |
3153 | 3782 | |
3154 | 3783 | int |
3155 | main () | |
3784 | main (void) | |
3156 | 3785 | { |
3157 | 3786 | |
3158 | 3787 | ; |
3159 | 3788 | return 0; |
3160 | 3789 | } |
3161 | 3790 | _ACEOF |
3162 | if ac_fn_c_try_compile "$LINENO"; then : | |
3163 | ||
3164 | else | |
3791 | if ac_fn_c_try_compile "$LINENO" | |
3792 | then : | |
3793 | ||
3794 | else $as_nop | |
3165 | 3795 | ac_c_werror_flag=$ac_save_c_werror_flag |
3166 | 3796 | CFLAGS="-g" |
3167 | 3797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3168 | 3798 | /* end confdefs.h. */ |
3169 | 3799 | |
3170 | 3800 | int |
3171 | main () | |
3801 | main (void) | |
3172 | 3802 | { |
3173 | 3803 | |
3174 | 3804 | ; |
3175 | 3805 | return 0; |
3176 | 3806 | } |
3177 | 3807 | _ACEOF |
3178 | if ac_fn_c_try_compile "$LINENO"; then : | |
3808 | if ac_fn_c_try_compile "$LINENO" | |
3809 | then : | |
3179 | 3810 | ac_cv_prog_cc_g=yes |
3180 | 3811 | fi |
3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3182 | fi | |
3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3184 | fi | |
3185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3812 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3813 | fi | |
3814 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3815 | fi | |
3816 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3186 | 3817 | ac_c_werror_flag=$ac_save_c_werror_flag |
3187 | 3818 | fi |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3189 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3190 | if test "$ac_test_CFLAGS" = set; then | |
3819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3820 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
3821 | if test $ac_test_CFLAGS; then | |
3191 | 3822 | CFLAGS=$ac_save_CFLAGS |
3192 | 3823 | elif test $ac_cv_prog_cc_g = yes; then |
3193 | 3824 | if test "$GCC" = yes; then |
3202 | 3833 | CFLAGS= |
3203 | 3834 | fi |
3204 | 3835 | fi |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3206 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3207 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3208 | $as_echo_n "(cached) " >&6 | |
3209 | else | |
3836 | ac_prog_cc_stdc=no | |
3837 | if test x$ac_prog_cc_stdc = xno | |
3838 | then : | |
3839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
3840 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
3841 | if test ${ac_cv_prog_cc_c11+y} | |
3842 | then : | |
3843 | printf %s "(cached) " >&6 | |
3844 | else $as_nop | |
3845 | ac_cv_prog_cc_c11=no | |
3846 | ac_save_CC=$CC | |
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3848 | /* end confdefs.h. */ | |
3849 | $ac_c_conftest_c11_program | |
3850 | _ACEOF | |
3851 | for ac_arg in '' -std=gnu11 | |
3852 | do | |
3853 | CC="$ac_save_CC $ac_arg" | |
3854 | if ac_fn_c_try_compile "$LINENO" | |
3855 | then : | |
3856 | ac_cv_prog_cc_c11=$ac_arg | |
3857 | fi | |
3858 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3859 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
3860 | done | |
3861 | rm -f conftest.$ac_ext | |
3862 | CC=$ac_save_CC | |
3863 | fi | |
3864 | ||
3865 | if test "x$ac_cv_prog_cc_c11" = xno | |
3866 | then : | |
3867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3868 | printf "%s\n" "unsupported" >&6; } | |
3869 | else $as_nop | |
3870 | if test "x$ac_cv_prog_cc_c11" = x | |
3871 | then : | |
3872 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3873 | printf "%s\n" "none needed" >&6; } | |
3874 | else $as_nop | |
3875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
3876 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
3877 | CC="$CC $ac_cv_prog_cc_c11" | |
3878 | fi | |
3879 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
3880 | ac_prog_cc_stdc=c11 | |
3881 | fi | |
3882 | fi | |
3883 | if test x$ac_prog_cc_stdc = xno | |
3884 | then : | |
3885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
3886 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
3887 | if test ${ac_cv_prog_cc_c99+y} | |
3888 | then : | |
3889 | printf %s "(cached) " >&6 | |
3890 | else $as_nop | |
3891 | ac_cv_prog_cc_c99=no | |
3892 | ac_save_CC=$CC | |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3894 | /* end confdefs.h. */ | |
3895 | $ac_c_conftest_c99_program | |
3896 | _ACEOF | |
3897 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
3898 | do | |
3899 | CC="$ac_save_CC $ac_arg" | |
3900 | if ac_fn_c_try_compile "$LINENO" | |
3901 | then : | |
3902 | ac_cv_prog_cc_c99=$ac_arg | |
3903 | fi | |
3904 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3905 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3906 | done | |
3907 | rm -f conftest.$ac_ext | |
3908 | CC=$ac_save_CC | |
3909 | fi | |
3910 | ||
3911 | if test "x$ac_cv_prog_cc_c99" = xno | |
3912 | then : | |
3913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3914 | printf "%s\n" "unsupported" >&6; } | |
3915 | else $as_nop | |
3916 | if test "x$ac_cv_prog_cc_c99" = x | |
3917 | then : | |
3918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3919 | printf "%s\n" "none needed" >&6; } | |
3920 | else $as_nop | |
3921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3922 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
3923 | CC="$CC $ac_cv_prog_cc_c99" | |
3924 | fi | |
3925 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3926 | ac_prog_cc_stdc=c99 | |
3927 | fi | |
3928 | fi | |
3929 | if test x$ac_prog_cc_stdc = xno | |
3930 | then : | |
3931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
3932 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
3933 | if test ${ac_cv_prog_cc_c89+y} | |
3934 | then : | |
3935 | printf %s "(cached) " >&6 | |
3936 | else $as_nop | |
3210 | 3937 | ac_cv_prog_cc_c89=no |
3211 | 3938 | ac_save_CC=$CC |
3212 | 3939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3213 | 3940 | /* end confdefs.h. */ |
3214 | #include <stdarg.h> | |
3215 | #include <stdio.h> | |
3216 | struct stat; | |
3217 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3218 | struct buf { int x; }; | |
3219 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3220 | static char *e (p, i) | |
3221 | char **p; | |
3222 | int i; | |
3223 | { | |
3224 | return p[i]; | |
3225 | } | |
3226 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3227 | { | |
3228 | char *s; | |
3229 | va_list v; | |
3230 | va_start (v,p); | |
3231 | s = g (p, va_arg (v,int)); | |
3232 | va_end (v); | |
3233 | return s; | |
3234 | } | |
3235 | ||
3236 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3237 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3238 | These don't provoke an error unfortunately, instead are silently treated | |
3239 | as 'x'. The following induces an error, until -std is added to get | |
3240 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3241 | array size at least. It's necessary to write '\x00'==0 to get something | |
3242 | that's true only with -std. */ | |
3243 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3244 | ||
3245 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3246 | inside strings and character constants. */ | |
3247 | #define FOO(x) 'x' | |
3248 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3249 | ||
3250 | int test (int i, double x); | |
3251 | struct s1 {int (*f) (int a);}; | |
3252 | struct s2 {int (*f) (double a);}; | |
3253 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3254 | int argc; | |
3255 | char **argv; | |
3256 | int | |
3257 | main () | |
3258 | { | |
3259 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3260 | ; | |
3261 | return 0; | |
3262 | } | |
3941 | $ac_c_conftest_c89_program | |
3263 | 3942 | _ACEOF |
3264 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3265 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3943 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3266 | 3944 | do |
3267 | 3945 | CC="$ac_save_CC $ac_arg" |
3268 | if ac_fn_c_try_compile "$LINENO"; then : | |
3946 | if ac_fn_c_try_compile "$LINENO" | |
3947 | then : | |
3269 | 3948 | ac_cv_prog_cc_c89=$ac_arg |
3270 | 3949 | fi |
3271 | rm -f core conftest.err conftest.$ac_objext | |
3950 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3272 | 3951 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3273 | 3952 | done |
3274 | 3953 | rm -f conftest.$ac_ext |
3275 | 3954 | CC=$ac_save_CC |
3276 | ||
3277 | fi | |
3278 | # AC_CACHE_VAL | |
3279 | case "x$ac_cv_prog_cc_c89" in | |
3280 | x) | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3282 | $as_echo "none needed" >&6; } ;; | |
3283 | xno) | |
3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3285 | $as_echo "unsupported" >&6; } ;; | |
3286 | *) | |
3287 | CC="$CC $ac_cv_prog_cc_c89" | |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3289 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3290 | esac | |
3291 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3292 | ||
3955 | fi | |
3956 | ||
3957 | if test "x$ac_cv_prog_cc_c89" = xno | |
3958 | then : | |
3959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3960 | printf "%s\n" "unsupported" >&6; } | |
3961 | else $as_nop | |
3962 | if test "x$ac_cv_prog_cc_c89" = x | |
3963 | then : | |
3964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3965 | printf "%s\n" "none needed" >&6; } | |
3966 | else $as_nop | |
3967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3968 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
3969 | CC="$CC $ac_cv_prog_cc_c89" | |
3970 | fi | |
3971 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
3972 | ac_prog_cc_stdc=c89 | |
3973 | fi | |
3293 | 3974 | fi |
3294 | 3975 | |
3295 | 3976 | ac_ext=c |
3298 | 3979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3299 | 3980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3300 | 3981 | |
3301 | ac_ext=c | |
3982 | ||
3983 | ac_ext=c | |
3302 | 3984 | ac_cpp='$CPP $CPPFLAGS' |
3303 | 3985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3304 | 3986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3305 | 3987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3307 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3308 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3309 | $as_echo_n "(cached) " >&6 | |
3310 | else | |
3988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3989 | printf %s "checking whether $CC understands -c and -o together... " >&6; } | |
3990 | if test ${am_cv_prog_cc_c_o+y} | |
3991 | then : | |
3992 | printf %s "(cached) " >&6 | |
3993 | else $as_nop | |
3311 | 3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3312 | 3995 | /* end confdefs.h. */ |
3313 | 3996 | |
3314 | 3997 | int |
3315 | main () | |
3998 | main (void) | |
3316 | 3999 | { |
3317 | 4000 | |
3318 | 4001 | ; |
3340 | 4023 | rm -f core conftest* |
3341 | 4024 | unset am_i |
3342 | 4025 | fi |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3344 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4027 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } | |
3345 | 4028 | if test "$am_cv_prog_cc_c_o" != yes; then |
3346 | 4029 | # Losing compiler, so override with the script. |
3347 | 4030 | # FIXME: It is wrong to rewrite CC. |
3359 | 4042 | |
3360 | 4043 | depcc="$CC" am_compiler_list= |
3361 | 4044 | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3363 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3364 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3365 | $as_echo_n "(cached) " >&6 | |
3366 | else | |
4045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4046 | printf %s "checking dependency style of $depcc... " >&6; } | |
4047 | if test ${am_cv_CC_dependencies_compiler_type+y} | |
4048 | then : | |
4049 | printf %s "(cached) " >&6 | |
4050 | else $as_nop | |
3367 | 4051 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3368 | 4052 | # We make a subdir and do the tests there. Otherwise we can end up |
3369 | 4053 | # making bogus files that we don't know about and never remove. For |
3470 | 4154 | fi |
3471 | 4155 | |
3472 | 4156 | fi |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3474 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4158 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3475 | 4159 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3476 | 4160 | |
3477 | 4161 | if |
3485 | 4169 | fi |
3486 | 4170 | |
3487 | 4171 | |
3488 | case $ac_cv_prog_cc_stdc in #( | |
3489 | no) : | |
3490 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | |
3491 | *) : | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
3493 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3494 | if ${ac_cv_prog_cc_c99+:} false; then : | |
3495 | $as_echo_n "(cached) " >&6 | |
3496 | else | |
3497 | ac_cv_prog_cc_c99=no | |
3498 | ac_save_CC=$CC | |
3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3500 | /* end confdefs.h. */ | |
3501 | #include <stdarg.h> | |
3502 | #include <stdbool.h> | |
3503 | #include <stdlib.h> | |
3504 | #include <wchar.h> | |
3505 | #include <stdio.h> | |
3506 | ||
3507 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
3508 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3509 | #define showlist(...) puts (#__VA_ARGS__) | |
3510 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3511 | static void | |
3512 | test_varargs_macros (void) | |
3513 | { | |
3514 | int x = 1234; | |
3515 | int y = 5678; | |
3516 | debug ("Flag"); | |
3517 | debug ("X = %d\n", x); | |
3518 | showlist (The first, second, and third items.); | |
3519 | report (x>y, "x is %d but y is %d", x, y); | |
3520 | } | |
3521 | ||
3522 | // Check long long types. | |
3523 | #define BIG64 18446744073709551615ull | |
3524 | #define BIG32 4294967295ul | |
3525 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3526 | #if !BIG_OK | |
3527 | your preprocessor is broken; | |
3528 | #endif | |
3529 | #if BIG_OK | |
3530 | #else | |
3531 | your preprocessor is broken; | |
3532 | #endif | |
3533 | static long long int bignum = -9223372036854775807LL; | |
3534 | static unsigned long long int ubignum = BIG64; | |
3535 | ||
3536 | struct incomplete_array | |
3537 | { | |
3538 | int datasize; | |
3539 | double data[]; | |
3540 | }; | |
3541 | ||
3542 | struct named_init { | |
3543 | int number; | |
3544 | const wchar_t *name; | |
3545 | double average; | |
3546 | }; | |
3547 | ||
3548 | typedef const char *ccp; | |
3549 | ||
3550 | static inline int | |
3551 | test_restrict (ccp restrict text) | |
3552 | { | |
3553 | // See if C++-style comments work. | |
3554 | // Iterate through items via the restricted pointer. | |
3555 | // Also check for declarations in for loops. | |
3556 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3557 | continue; | |
3558 | return 0; | |
3559 | } | |
3560 | ||
3561 | // Check varargs and va_copy. | |
3562 | static void | |
3563 | test_varargs (const char *format, ...) | |
3564 | { | |
3565 | va_list args; | |
3566 | va_start (args, format); | |
3567 | va_list args_copy; | |
3568 | va_copy (args_copy, args); | |
3569 | ||
3570 | const char *str; | |
3571 | int number; | |
3572 | float fnumber; | |
3573 | ||
3574 | while (*format) | |
3575 | { | |
3576 | switch (*format++) | |
3577 | { | |
3578 | case 's': // string | |
3579 | str = va_arg (args_copy, const char *); | |
3580 | break; | |
3581 | case 'd': // int | |
3582 | number = va_arg (args_copy, int); | |
3583 | break; | |
3584 | case 'f': // float | |
3585 | fnumber = va_arg (args_copy, double); | |
3586 | break; | |
3587 | default: | |
3588 | break; | |
3589 | } | |
3590 | } | |
3591 | va_end (args_copy); | |
3592 | va_end (args); | |
3593 | } | |
3594 | ||
3595 | int | |
3596 | main () | |
3597 | { | |
3598 | ||
3599 | // Check bool. | |
3600 | _Bool success = false; | |
3601 | ||
3602 | // Check restrict. | |
3603 | if (test_restrict ("String literal") == 0) | |
3604 | success = true; | |
3605 | char *restrict newvar = "Another string"; | |
3606 | ||
3607 | // Check varargs. | |
3608 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3609 | test_varargs_macros (); | |
3610 | ||
3611 | // Check flexible array members. | |
3612 | struct incomplete_array *ia = | |
3613 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3614 | ia->datasize = 10; | |
3615 | for (int i = 0; i < ia->datasize; ++i) | |
3616 | ia->data[i] = i * 1.234; | |
3617 | ||
3618 | // Check named initializers. | |
3619 | struct named_init ni = { | |
3620 | .number = 34, | |
3621 | .name = L"Test wide string", | |
3622 | .average = 543.34343, | |
3623 | }; | |
3624 | ||
3625 | ni.number = 58; | |
3626 | ||
3627 | int dynamic_array[ni.number]; | |
3628 | dynamic_array[ni.number - 1] = 543; | |
3629 | ||
3630 | // work around unused variable warnings | |
3631 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3632 | || dynamic_array[ni.number - 1] != 543); | |
3633 | ||
3634 | ; | |
3635 | return 0; | |
3636 | } | |
3637 | _ACEOF | |
3638 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
3639 | do | |
3640 | CC="$ac_save_CC $ac_arg" | |
3641 | if ac_fn_c_try_compile "$LINENO"; then : | |
3642 | ac_cv_prog_cc_c99=$ac_arg | |
3643 | fi | |
3644 | rm -f core conftest.err conftest.$ac_objext | |
3645 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3646 | done | |
3647 | rm -f conftest.$ac_ext | |
3648 | CC=$ac_save_CC | |
3649 | ||
3650 | fi | |
3651 | # AC_CACHE_VAL | |
3652 | case "x$ac_cv_prog_cc_c99" in | |
3653 | x) | |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3655 | $as_echo "none needed" >&6; } ;; | |
3656 | xno) | |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3658 | $as_echo "unsupported" >&6; } ;; | |
3659 | *) | |
3660 | CC="$CC $ac_cv_prog_cc_c99" | |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3662 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
3663 | esac | |
3664 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
3665 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3666 | else | |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3668 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3669 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3670 | $as_echo_n "(cached) " >&6 | |
3671 | else | |
3672 | ac_cv_prog_cc_c89=no | |
3673 | ac_save_CC=$CC | |
3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3675 | /* end confdefs.h. */ | |
3676 | #include <stdarg.h> | |
3677 | #include <stdio.h> | |
3678 | struct stat; | |
3679 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3680 | struct buf { int x; }; | |
3681 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3682 | static char *e (p, i) | |
3683 | char **p; | |
3684 | int i; | |
3685 | { | |
3686 | return p[i]; | |
3687 | } | |
3688 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3689 | { | |
3690 | char *s; | |
3691 | va_list v; | |
3692 | va_start (v,p); | |
3693 | s = g (p, va_arg (v,int)); | |
3694 | va_end (v); | |
3695 | return s; | |
3696 | } | |
3697 | ||
3698 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3699 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3700 | These don't provoke an error unfortunately, instead are silently treated | |
3701 | as 'x'. The following induces an error, until -std is added to get | |
3702 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3703 | array size at least. It's necessary to write '\x00'==0 to get something | |
3704 | that's true only with -std. */ | |
3705 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3706 | ||
3707 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3708 | inside strings and character constants. */ | |
3709 | #define FOO(x) 'x' | |
3710 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3711 | ||
3712 | int test (int i, double x); | |
3713 | struct s1 {int (*f) (int a);}; | |
3714 | struct s2 {int (*f) (double a);}; | |
3715 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3716 | int argc; | |
3717 | char **argv; | |
3718 | int | |
3719 | main () | |
3720 | { | |
3721 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3722 | ; | |
3723 | return 0; | |
3724 | } | |
3725 | _ACEOF | |
3726 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3727 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3728 | do | |
3729 | CC="$ac_save_CC $ac_arg" | |
3730 | if ac_fn_c_try_compile "$LINENO"; then : | |
3731 | ac_cv_prog_cc_c89=$ac_arg | |
3732 | fi | |
3733 | rm -f core conftest.err conftest.$ac_objext | |
3734 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3735 | done | |
3736 | rm -f conftest.$ac_ext | |
3737 | CC=$ac_save_CC | |
3738 | ||
3739 | fi | |
3740 | # AC_CACHE_VAL | |
3741 | case "x$ac_cv_prog_cc_c89" in | |
3742 | x) | |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3744 | $as_echo "none needed" >&6; } ;; | |
3745 | xno) | |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3747 | $as_echo "unsupported" >&6; } ;; | |
3748 | *) | |
3749 | CC="$CC $ac_cv_prog_cc_c89" | |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3751 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3752 | esac | |
3753 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3754 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
3755 | else | |
3756 | ac_cv_prog_cc_stdc=no | |
3757 | fi | |
3758 | ||
3759 | fi | |
3760 | ;; | |
3761 | esac | |
3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | |
3763 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | |
3764 | if ${ac_cv_prog_cc_stdc+:} false; then : | |
3765 | $as_echo_n "(cached) " >&6 | |
3766 | fi | |
3767 | ||
3768 | case $ac_cv_prog_cc_stdc in #( | |
3769 | no) : | |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3771 | $as_echo "unsupported" >&6; } ;; #( | |
3772 | '') : | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3774 | $as_echo "none needed" >&6; } ;; #( | |
3775 | *) : | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | |
3777 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | |
3778 | esac | |
3779 | 4172 | |
3780 | 4173 | |
3781 | 4174 | ac_ext=c |
3783 | 4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3784 | 4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3785 | 4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3787 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4180 | printf %s "checking how to run the C preprocessor... " >&6; } | |
3788 | 4181 | # On Suns, sometimes $CPP names a directory. |
3789 | 4182 | if test -n "$CPP" && test -d "$CPP"; then |
3790 | 4183 | CPP= |
3791 | 4184 | fi |
3792 | 4185 | if test -z "$CPP"; then |
3793 | if ${ac_cv_prog_CPP+:} false; then : | |
3794 | $as_echo_n "(cached) " >&6 | |
3795 | else | |
3796 | # Double quotes because CPP needs to be expanded | |
3797 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4186 | if test ${ac_cv_prog_CPP+y} | |
4187 | then : | |
4188 | printf %s "(cached) " >&6 | |
4189 | else $as_nop | |
4190 | # Double quotes because $CC needs to be expanded | |
4191 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
3798 | 4192 | do |
3799 | 4193 | ac_preproc_ok=false |
3800 | 4194 | for ac_c_preproc_warn_flag in '' yes |
3801 | 4195 | do |
3802 | 4196 | # Use a header file that comes with gcc, so configuring glibc |
3803 | 4197 | # with a fresh cross-compiler works. |
3804 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3805 | # <limits.h> exists even on freestanding compilers. | |
3806 | 4198 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3807 | 4199 | # not just through cpp. "Syntax error" is here to catch this case. |
3808 | 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3809 | 4201 | /* end confdefs.h. */ |
3810 | #ifdef __STDC__ | |
3811 | # include <limits.h> | |
3812 | #else | |
3813 | # include <assert.h> | |
3814 | #endif | |
4202 | #include <limits.h> | |
3815 | 4203 | Syntax error |
3816 | 4204 | _ACEOF |
3817 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3818 | ||
3819 | else | |
4205 | if ac_fn_c_try_cpp "$LINENO" | |
4206 | then : | |
4207 | ||
4208 | else $as_nop | |
3820 | 4209 | # Broken: fails on valid input. |
3821 | 4210 | continue |
3822 | 4211 | fi |
3828 | 4217 | /* end confdefs.h. */ |
3829 | 4218 | #include <ac_nonexistent.h> |
3830 | 4219 | _ACEOF |
3831 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4220 | if ac_fn_c_try_cpp "$LINENO" | |
4221 | then : | |
3832 | 4222 | # Broken: success on invalid input. |
3833 | 4223 | continue |
3834 | else | |
4224 | else $as_nop | |
3835 | 4225 | # Passes both tests. |
3836 | 4226 | ac_preproc_ok=: |
3837 | 4227 | break |
3841 | 4231 | done |
3842 | 4232 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3843 | 4233 | rm -f conftest.i conftest.err conftest.$ac_ext |
3844 | if $ac_preproc_ok; then : | |
4234 | if $ac_preproc_ok | |
4235 | then : | |
3845 | 4236 | break |
3846 | 4237 | fi |
3847 | 4238 | |
3853 | 4244 | else |
3854 | 4245 | ac_cv_prog_CPP=$CPP |
3855 | 4246 | fi |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3857 | $as_echo "$CPP" >&6; } | |
4247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4248 | printf "%s\n" "$CPP" >&6; } | |
3858 | 4249 | ac_preproc_ok=false |
3859 | 4250 | for ac_c_preproc_warn_flag in '' yes |
3860 | 4251 | do |
3861 | 4252 | # Use a header file that comes with gcc, so configuring glibc |
3862 | 4253 | # with a fresh cross-compiler works. |
3863 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3864 | # <limits.h> exists even on freestanding compilers. | |
3865 | 4254 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3866 | 4255 | # not just through cpp. "Syntax error" is here to catch this case. |
3867 | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3868 | 4257 | /* end confdefs.h. */ |
3869 | #ifdef __STDC__ | |
3870 | # include <limits.h> | |
3871 | #else | |
3872 | # include <assert.h> | |
3873 | #endif | |
4258 | #include <limits.h> | |
3874 | 4259 | Syntax error |
3875 | 4260 | _ACEOF |
3876 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3877 | ||
3878 | else | |
4261 | if ac_fn_c_try_cpp "$LINENO" | |
4262 | then : | |
4263 | ||
4264 | else $as_nop | |
3879 | 4265 | # Broken: fails on valid input. |
3880 | 4266 | continue |
3881 | 4267 | fi |
3887 | 4273 | /* end confdefs.h. */ |
3888 | 4274 | #include <ac_nonexistent.h> |
3889 | 4275 | _ACEOF |
3890 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4276 | if ac_fn_c_try_cpp "$LINENO" | |
4277 | then : | |
3891 | 4278 | # Broken: success on invalid input. |
3892 | 4279 | continue |
3893 | else | |
4280 | else $as_nop | |
3894 | 4281 | # Passes both tests. |
3895 | 4282 | ac_preproc_ok=: |
3896 | 4283 | break |
3900 | 4287 | done |
3901 | 4288 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3902 | 4289 | rm -f conftest.i conftest.err conftest.$ac_ext |
3903 | if $ac_preproc_ok; then : | |
3904 | ||
3905 | else | |
3906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4290 | if $ac_preproc_ok | |
4291 | then : | |
4292 | ||
4293 | else $as_nop | |
4294 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4295 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3908 | 4296 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3909 | 4297 | See \`config.log' for more details" "$LINENO" 5; } |
3910 | 4298 | fi |
3916 | 4304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3917 | 4305 | |
3918 | 4306 | |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | |
3920 | $as_echo_n "checking for function prototypes... " >&6; } | |
3921 | if test "$ac_cv_prog_cc_c89" != no; then | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3923 | $as_echo "yes" >&6; } | |
3924 | ||
3925 | $as_echo "#define PROTOTYPES 1" >>confdefs.h | |
3926 | ||
3927 | ||
3928 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h | |
3929 | ||
3930 | else | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3932 | $as_echo "no" >&6; } | |
4307 | if test "$ac_prog_cc_stdc" != no; then | |
4308 | ||
4309 | printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h | |
4310 | ||
4311 | ||
4312 | printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h | |
4313 | ||
3933 | 4314 | fi |
3934 | 4315 | |
3935 | 4316 | test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5 |
3936 | 4317 | |
3937 | 4318 | |
3938 | 4319 | |
3939 | # Make sure we can run config.sub. | |
3940 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3941 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3942 | ||
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3944 | $as_echo_n "checking build system type... " >&6; } | |
3945 | if ${ac_cv_build+:} false; then : | |
3946 | $as_echo_n "(cached) " >&6 | |
3947 | else | |
4320 | ||
4321 | ||
4322 | # Make sure we can run config.sub. | |
4323 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
4324 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
4325 | ||
4326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4327 | printf %s "checking build system type... " >&6; } | |
4328 | if test ${ac_cv_build+y} | |
4329 | then : | |
4330 | printf %s "(cached) " >&6 | |
4331 | else $as_nop | |
3948 | 4332 | ac_build_alias=$build_alias |
3949 | 4333 | test "x$ac_build_alias" = x && |
3950 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4334 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
3951 | 4335 | test "x$ac_build_alias" = x && |
3952 | 4336 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3953 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3954 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3955 | ||
3956 | fi | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3958 | $as_echo "$ac_cv_build" >&6; } | |
4337 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
4338 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
4339 | ||
4340 | fi | |
4341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4342 | printf "%s\n" "$ac_cv_build" >&6; } | |
3959 | 4343 | case $ac_cv_build in |
3960 | 4344 | *-*-*) ;; |
3961 | 4345 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3974 | 4358 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3975 | 4359 | |
3976 | 4360 | |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3978 | $as_echo_n "checking host system type... " >&6; } | |
3979 | if ${ac_cv_host+:} false; then : | |
3980 | $as_echo_n "(cached) " >&6 | |
3981 | else | |
4361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4362 | printf %s "checking host system type... " >&6; } | |
4363 | if test ${ac_cv_host+y} | |
4364 | then : | |
4365 | printf %s "(cached) " >&6 | |
4366 | else $as_nop | |
3982 | 4367 | if test "x$host_alias" = x; then |
3983 | 4368 | ac_cv_host=$ac_cv_build |
3984 | 4369 | else |
3985 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3986 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3987 | fi | |
3988 | ||
3989 | fi | |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3991 | $as_echo "$ac_cv_host" >&6; } | |
4370 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | |
4371 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
4372 | fi | |
4373 | ||
4374 | fi | |
4375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4376 | printf "%s\n" "$ac_cv_host" >&6; } | |
3992 | 4377 | case $ac_cv_host in |
3993 | 4378 | *-*-*) ;; |
3994 | 4379 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4017 | 4402 | |
4018 | 4403 | |
4019 | 4404 | tests="\ |
4405 | alibaba-cloud-x86 \ | |
4020 | 4406 | aws-baremetal-x86 \ |
4021 | 4407 | aws-kvm-arm \ |
4022 | 4408 | aws-kvm-x86 \ |
4024 | 4410 | baremetal \ |
4025 | 4411 | bhyve \ |
4026 | 4412 | docker \ |
4413 | esx-arm \ | |
4027 | 4414 | esx4.1 \ |
4028 | 4415 | hyperv \ |
4416 | illumos-lx \ | |
4029 | 4417 | kvm \ |
4030 | 4418 | kvm-explicit-cpu \ |
4031 | 4419 | ldoms \ |
4060 | 4448 | |
4061 | 4449 | ac_config_files="$ac_config_files virt-what" |
4062 | 4450 | |
4063 | ac_config_files="$ac_config_files Makefile tests/Makefile tests/aws-baremetal-x86/Makefile tests/aws-kvm-arm/Makefile tests/aws-kvm-x86/Makefile tests/aws-xen-x86/Makefile tests/baremetal/Makefile tests/bhyve/Makefile tests/docker/Makefile tests/esx4.1/Makefile tests/hyperv/Makefile tests/kvm/Makefile tests/kvm-explicit-cpu/Makefile tests/ldoms/Makefile tests/linux-vserver/Makefile tests/lkvm/Makefile tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile tests/ppc64-lpar-shared/Makefile tests/qemu/Makefile tests/qemu-arm/Makefile tests/qemu-smbios/Makefile tests/qemu-smbios-kvm/Makefile tests/rhel5-xen-dom0/Makefile tests/rhel5-xen-domU-hvm/Makefile tests/rhel5-xen-domU-hvm-ia64/Makefile tests/rhel5-xen-domU-pv/Makefile tests/rhev/Makefile tests/vmm/Makefile tests/xen-arm/Makefile tests/zvm/Makefile" | |
4451 | ac_config_files="$ac_config_files Makefile tests/Makefile tests/alibaba-cloud-x86/Makefile tests/aws-baremetal-x86/Makefile tests/aws-kvm-arm/Makefile tests/aws-kvm-x86/Makefile tests/aws-xen-x86/Makefile tests/baremetal/Makefile tests/bhyve/Makefile tests/docker/Makefile tests/esx-arm/Makefile tests/esx4.1/Makefile tests/hyperv/Makefile tests/illumos-lx/Makefile tests/kvm/Makefile tests/kvm-explicit-cpu/Makefile tests/ldoms/Makefile tests/linux-vserver/Makefile tests/lkvm/Makefile tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile tests/ppc64-lpar-shared/Makefile tests/qemu/Makefile tests/qemu-arm/Makefile tests/qemu-smbios/Makefile tests/qemu-smbios-kvm/Makefile tests/rhel5-xen-dom0/Makefile tests/rhel5-xen-domU-hvm/Makefile tests/rhel5-xen-domU-hvm-ia64/Makefile tests/rhel5-xen-domU-pv/Makefile tests/rhev/Makefile tests/vmm/Makefile tests/xen-arm/Makefile tests/zvm/Makefile" | |
4064 | 4452 | |
4065 | 4453 | |
4066 | 4454 | # Extract the first word of "pod2man", so it can be a program name with args. |
4067 | 4455 | set dummy pod2man; ac_word=$2 |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4069 | $as_echo_n "checking for $ac_word... " >&6; } | |
4070 | if ${ac_cv_prog_POD2MAN+:} false; then : | |
4071 | $as_echo_n "(cached) " >&6 | |
4072 | else | |
4456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4457 | printf %s "checking for $ac_word... " >&6; } | |
4458 | if test ${ac_cv_prog_POD2MAN+y} | |
4459 | then : | |
4460 | printf %s "(cached) " >&6 | |
4461 | else $as_nop | |
4073 | 4462 | if test -n "$POD2MAN"; then |
4074 | 4463 | ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test. |
4075 | 4464 | else |
4077 | 4466 | for as_dir in $PATH |
4078 | 4467 | do |
4079 | 4468 | IFS=$as_save_IFS |
4080 | test -z "$as_dir" && as_dir=. | |
4469 | case $as_dir in #((( | |
4470 | '') as_dir=./ ;; | |
4471 | */) ;; | |
4472 | *) as_dir=$as_dir/ ;; | |
4473 | esac | |
4081 | 4474 | for ac_exec_ext in '' $ac_executable_extensions; do |
4082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4475 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4083 | 4476 | ac_cv_prog_POD2MAN="pod2man" |
4084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4477 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4085 | 4478 | break 2 |
4086 | 4479 | fi |
4087 | 4480 | done |
4093 | 4486 | fi |
4094 | 4487 | POD2MAN=$ac_cv_prog_POD2MAN |
4095 | 4488 | if test -n "$POD2MAN"; then |
4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 | |
4097 | $as_echo "$POD2MAN" >&6; } | |
4489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 | |
4490 | printf "%s\n" "$POD2MAN" >&6; } | |
4098 | 4491 | else |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4100 | $as_echo "no" >&6; } | |
4492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4493 | printf "%s\n" "no" >&6; } | |
4101 | 4494 | fi |
4102 | 4495 | |
4103 | 4496 | |
4104 | 4497 | if test "$POD2MAN" = "false"; then |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pod2man was not found. This is needed to build man pages." >&5 | |
4106 | $as_echo "$as_me: WARNING: pod2man was not found. This is needed to build man pages." >&2;} | |
4498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pod2man was not found. This is needed to build man pages." >&5 | |
4499 | printf "%s\n" "$as_me: WARNING: pod2man was not found. This is needed to build man pages." >&2;} | |
4107 | 4500 | fi |
4108 | 4501 | if test "$POD2MAN" != "false"; then |
4109 | 4502 | HAVE_POD2MAN_TRUE= |
4141 | 4534 | case $ac_val in #( |
4142 | 4535 | *${as_nl}*) |
4143 | 4536 | case $ac_var in #( |
4144 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4145 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4537 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4538 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4146 | 4539 | esac |
4147 | 4540 | case $ac_var in #( |
4148 | 4541 | _ | IFS | as_nl) ;; #( |
4172 | 4565 | /^ac_cv_env_/b end |
4173 | 4566 | t clear |
4174 | 4567 | :clear |
4175 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4568 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
4176 | 4569 | t end |
4177 | 4570 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4178 | 4571 | :end' >>confcache |
4179 | 4572 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4180 | 4573 | if test -w "$cache_file"; then |
4181 | 4574 | if test "x$cache_file" != "x/dev/null"; then |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4183 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4576 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
4184 | 4577 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
4185 | 4578 | cat confcache >"$cache_file" |
4186 | 4579 | else |
4194 | 4587 | fi |
4195 | 4588 | fi |
4196 | 4589 | else |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
4198 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
4591 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4199 | 4592 | fi |
4200 | 4593 | fi |
4201 | 4594 | rm -f confcache |
4212 | 4605 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4213 | 4606 | # 1. Remove the extension, and $U if already installed. |
4214 | 4607 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4215 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4608 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
4216 | 4609 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
4217 | 4610 | # will be set to the directory where LIBOBJS objects are built. |
4218 | 4611 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
4223 | 4616 | LTLIBOBJS=$ac_ltlibobjs |
4224 | 4617 | |
4225 | 4618 | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
4227 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
4619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
4620 | printf %s "checking that generated files are newer than configure... " >&6; } | |
4228 | 4621 | if test -n "$am_sleep_pid"; then |
4229 | 4622 | # Hide warnings about reused PIDs. |
4230 | 4623 | wait $am_sleep_pid 2>/dev/null |
4231 | 4624 | fi |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
4233 | $as_echo "done" >&6; } | |
4625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
4626 | printf "%s\n" "done" >&6; } | |
4234 | 4627 | if test -n "$EXEEXT"; then |
4235 | 4628 | am__EXEEXT_TRUE= |
4236 | 4629 | am__EXEEXT_FALSE='#' |
4260 | 4653 | ac_write_fail=0 |
4261 | 4654 | ac_clean_files_save=$ac_clean_files |
4262 | 4655 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4264 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4657 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
4265 | 4658 | as_write_fail=0 |
4266 | 4659 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
4267 | 4660 | #! $SHELL |
4284 | 4677 | |
4285 | 4678 | # Be more Bourne compatible |
4286 | 4679 | DUALCASE=1; export DUALCASE # for MKS sh |
4287 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4680 | as_nop=: | |
4681 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
4682 | then : | |
4288 | 4683 | emulate sh |
4289 | 4684 | NULLCMD=: |
4290 | 4685 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4291 | 4686 | # is contrary to our usage. Disable this feature. |
4292 | 4687 | alias -g '${1+"$@"}'='"$@"' |
4293 | 4688 | setopt NO_GLOB_SUBST |
4294 | else | |
4689 | else $as_nop | |
4295 | 4690 | case `(set -o) 2>/dev/null` in #( |
4296 | 4691 | *posix*) : |
4297 | 4692 | set -o posix ;; #( |
4301 | 4696 | fi |
4302 | 4697 | |
4303 | 4698 | |
4699 | ||
4700 | # Reset variables that may have inherited troublesome values from | |
4701 | # the environment. | |
4702 | ||
4703 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
4704 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
4705 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
4706 | # Quoting is to prevent editors from complaining about space-tab. | |
4304 | 4707 | as_nl=' |
4305 | 4708 | ' |
4306 | 4709 | export as_nl |
4307 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4308 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4309 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4310 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4311 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4312 | # but without wasting forks for bash or zsh. | |
4313 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4314 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4315 | as_echo='print -r --' | |
4316 | as_echo_n='print -rn --' | |
4317 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4318 | as_echo='printf %s\n' | |
4319 | as_echo_n='printf %s' | |
4320 | else | |
4321 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4322 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4323 | as_echo_n='/usr/ucb/echo -n' | |
4324 | else | |
4325 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4326 | as_echo_n_body='eval | |
4327 | arg=$1; | |
4328 | case $arg in #( | |
4329 | *"$as_nl"*) | |
4330 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4331 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4332 | esac; | |
4333 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4334 | ' | |
4335 | export as_echo_n_body | |
4336 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4337 | fi | |
4338 | export as_echo_body | |
4339 | as_echo='sh -c $as_echo_body as_echo' | |
4340 | fi | |
4710 | IFS=" "" $as_nl" | |
4711 | ||
4712 | PS1='$ ' | |
4713 | PS2='> ' | |
4714 | PS4='+ ' | |
4715 | ||
4716 | # Ensure predictable behavior from utilities with locale-dependent output. | |
4717 | LC_ALL=C | |
4718 | export LC_ALL | |
4719 | LANGUAGE=C | |
4720 | export LANGUAGE | |
4721 | ||
4722 | # We cannot yet rely on "unset" to work, but we need these variables | |
4723 | # to be unset--not just set to an empty or harmless value--now, to | |
4724 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
4725 | # also avoids known problems related to "unset" and subshell syntax | |
4726 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
4727 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
4728 | do eval test \${$as_var+y} \ | |
4729 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4730 | done | |
4731 | ||
4732 | # Ensure that fds 0, 1, and 2 are open. | |
4733 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
4734 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
4735 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
4341 | 4736 | |
4342 | 4737 | # The user is always right. |
4343 | if test "${PATH_SEPARATOR+set}" != set; then | |
4738 | if ${PATH_SEPARATOR+false} :; then | |
4344 | 4739 | PATH_SEPARATOR=: |
4345 | 4740 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
4346 | 4741 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
4348 | 4743 | } |
4349 | 4744 | fi |
4350 | 4745 | |
4351 | ||
4352 | # IFS | |
4353 | # We need space, tab and new line, in precisely that order. Quoting is | |
4354 | # there to prevent editors from complaining about space-tab. | |
4355 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4356 | # splitting by setting IFS to empty value.) | |
4357 | IFS=" "" $as_nl" | |
4358 | 4746 | |
4359 | 4747 | # Find who we are. Look in the path if we contain no directory separator. |
4360 | 4748 | as_myself= |
4364 | 4752 | for as_dir in $PATH |
4365 | 4753 | do |
4366 | 4754 | IFS=$as_save_IFS |
4367 | test -z "$as_dir" && as_dir=. | |
4368 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4755 | case $as_dir in #((( | |
4756 | '') as_dir=./ ;; | |
4757 | */) ;; | |
4758 | *) as_dir=$as_dir/ ;; | |
4759 | esac | |
4760 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
4369 | 4761 | done |
4370 | 4762 | IFS=$as_save_IFS |
4371 | 4763 | |
4377 | 4769 | as_myself=$0 |
4378 | 4770 | fi |
4379 | 4771 | if test ! -f "$as_myself"; then |
4380 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4772 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4381 | 4773 | exit 1 |
4382 | 4774 | fi |
4383 | 4775 | |
4384 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4385 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4386 | # suppresses any "Segmentation fault" message there. '((' could | |
4387 | # trigger a bug in pdksh 5.2.14. | |
4388 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4389 | do eval test x\${$as_var+set} = xset \ | |
4390 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4391 | done | |
4392 | PS1='$ ' | |
4393 | PS2='> ' | |
4394 | PS4='+ ' | |
4395 | ||
4396 | # NLS nuisances. | |
4397 | LC_ALL=C | |
4398 | export LC_ALL | |
4399 | LANGUAGE=C | |
4400 | export LANGUAGE | |
4401 | ||
4402 | # CDPATH. | |
4403 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4404 | 4776 | |
4405 | 4777 | |
4406 | 4778 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
4413 | 4785 | as_status=$1; test $as_status -eq 0 && as_status=1 |
4414 | 4786 | if test "$4"; then |
4415 | 4787 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
4416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4788 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4417 | 4789 | fi |
4418 | $as_echo "$as_me: error: $2" >&2 | |
4790 | printf "%s\n" "$as_me: error: $2" >&2 | |
4419 | 4791 | as_fn_exit $as_status |
4420 | 4792 | } # as_fn_error |
4793 | ||
4421 | 4794 | |
4422 | 4795 | |
4423 | 4796 | # as_fn_set_status STATUS |
4446 | 4819 | { eval $1=; unset $1;} |
4447 | 4820 | } |
4448 | 4821 | as_unset=as_fn_unset |
4822 | ||
4449 | 4823 | # as_fn_append VAR VALUE |
4450 | 4824 | # ---------------------- |
4451 | 4825 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
4452 | 4826 | # advantage of any shell optimizations that allow amortized linear growth over |
4453 | 4827 | # repeated appends, instead of the typical quadratic growth present in naive |
4454 | 4828 | # implementations. |
4455 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4829 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
4830 | then : | |
4456 | 4831 | eval 'as_fn_append () |
4457 | 4832 | { |
4458 | 4833 | eval $1+=\$2 |
4459 | 4834 | }' |
4460 | else | |
4835 | else $as_nop | |
4461 | 4836 | as_fn_append () |
4462 | 4837 | { |
4463 | 4838 | eval $1=\$$1\$2 |
4469 | 4844 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
4470 | 4845 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
4471 | 4846 | # must be portable across $(()) and expr. |
4472 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4847 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
4848 | then : | |
4473 | 4849 | eval 'as_fn_arith () |
4474 | 4850 | { |
4475 | 4851 | as_val=$(( $* )) |
4476 | 4852 | }' |
4477 | else | |
4853 | else $as_nop | |
4478 | 4854 | as_fn_arith () |
4479 | 4855 | { |
4480 | 4856 | as_val=`expr "$@" || test $? -eq 1` |
4505 | 4881 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4506 | 4882 | X"$0" : 'X\(//\)$' \| \ |
4507 | 4883 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4508 | $as_echo X/"$0" | | |
4884 | printf "%s\n" X/"$0" | | |
4509 | 4885 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
4510 | 4886 | s//\1/ |
4511 | 4887 | q |
4527 | 4903 | as_cr_digits='0123456789' |
4528 | 4904 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
4529 | 4905 | |
4906 | ||
4907 | # Determine whether it's possible to make 'echo' print without a newline. | |
4908 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
4909 | # for compatibility with existing Makefiles. | |
4530 | 4910 | ECHO_C= ECHO_N= ECHO_T= |
4531 | 4911 | case `echo -n x` in #((((( |
4532 | 4912 | -n*) |
4539 | 4919 | *) |
4540 | 4920 | ECHO_N='-n';; |
4541 | 4921 | esac |
4922 | ||
4923 | # For backward compatibility with old third-party macros, we provide | |
4924 | # the shell variables $as_echo and $as_echo_n. New code should use | |
4925 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
4926 | as_echo='printf %s\n' | |
4927 | as_echo_n='printf %s' | |
4542 | 4928 | |
4543 | 4929 | rm -f conf$$ conf$$.exe conf$$.file |
4544 | 4930 | if test -d conf$$.dir; then |
4581 | 4967 | as_dirs= |
4582 | 4968 | while :; do |
4583 | 4969 | case $as_dir in #( |
4584 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4970 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4585 | 4971 | *) as_qdir=$as_dir;; |
4586 | 4972 | esac |
4587 | 4973 | as_dirs="'$as_qdir' $as_dirs" |
4590 | 4976 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
4591 | 4977 | X"$as_dir" : 'X\(//\)$' \| \ |
4592 | 4978 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
4593 | $as_echo X"$as_dir" | | |
4979 | printf "%s\n" X"$as_dir" | | |
4594 | 4980 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
4595 | 4981 | s//\1/ |
4596 | 4982 | q |
4652 | 5038 | # report actual input values of CONFIG_FILES etc. instead of their |
4653 | 5039 | # values after options handling. |
4654 | 5040 | ac_log=" |
4655 | This file was extended by virt-what $as_me 1.21, which was | |
4656 | generated by GNU Autoconf 2.69. Invocation command line was | |
5041 | This file was extended by virt-what $as_me 1.24, which was | |
5042 | generated by GNU Autoconf 2.71. Invocation command line was | |
4657 | 5043 | |
4658 | 5044 | CONFIG_FILES = $CONFIG_FILES |
4659 | 5045 | CONFIG_HEADERS = $CONFIG_HEADERS |
4715 | 5101 | Report bugs to the package provider." |
4716 | 5102 | |
4717 | 5103 | _ACEOF |
5104 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
5105 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
4718 | 5106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4719 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
5107 | ac_cs_config='$ac_cs_config_escaped' | |
4720 | 5108 | ac_cs_version="\\ |
4721 | virt-what config.status 1.21 | |
4722 | configured by $0, generated by GNU Autoconf 2.69, | |
5109 | virt-what config.status 1.24 | |
5110 | configured by $0, generated by GNU Autoconf 2.71, | |
4723 | 5111 | with options \\"\$ac_cs_config\\" |
4724 | 5112 | |
4725 | Copyright (C) 2012 Free Software Foundation, Inc. | |
5113 | Copyright (C) 2021 Free Software Foundation, Inc. | |
4726 | 5114 | This config.status script is free software; the Free Software Foundation |
4727 | 5115 | gives unlimited permission to copy, distribute and modify it." |
4728 | 5116 | |
4762 | 5150 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4763 | 5151 | ac_cs_recheck=: ;; |
4764 | 5152 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4765 | $as_echo "$ac_cs_version"; exit ;; | |
5153 | printf "%s\n" "$ac_cs_version"; exit ;; | |
4766 | 5154 | --config | --confi | --conf | --con | --co | --c ) |
4767 | $as_echo "$ac_cs_config"; exit ;; | |
5155 | printf "%s\n" "$ac_cs_config"; exit ;; | |
4768 | 5156 | --debug | --debu | --deb | --de | --d | -d ) |
4769 | 5157 | debug=: ;; |
4770 | 5158 | --file | --fil | --fi | --f ) |
4771 | 5159 | $ac_shift |
4772 | 5160 | case $ac_optarg in |
4773 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5161 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4774 | 5162 | '') as_fn_error $? "missing file argument" ;; |
4775 | 5163 | esac |
4776 | 5164 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
4778 | 5166 | --header | --heade | --head | --hea ) |
4779 | 5167 | $ac_shift |
4780 | 5168 | case $ac_optarg in |
4781 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5169 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4782 | 5170 | esac |
4783 | 5171 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
4784 | 5172 | ac_need_defaults=false;; |
4787 | 5175 | as_fn_error $? "ambiguous option: \`$1' |
4788 | 5176 | Try \`$0 --help' for more information.";; |
4789 | 5177 | --help | --hel | -h ) |
4790 | $as_echo "$ac_cs_usage"; exit ;; | |
5178 | printf "%s\n" "$ac_cs_usage"; exit ;; | |
4791 | 5179 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4792 | 5180 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
4793 | 5181 | ac_cs_silent=: ;; |
4815 | 5203 | if \$ac_cs_recheck; then |
4816 | 5204 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4817 | 5205 | shift |
4818 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5206 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4819 | 5207 | CONFIG_SHELL='$SHELL' |
4820 | 5208 | export CONFIG_SHELL |
4821 | 5209 | exec "\$@" |
4829 | 5217 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
4830 | 5218 | ## Running $as_me. ## |
4831 | 5219 | _ASBOX |
4832 | $as_echo "$ac_log" | |
5220 | printf "%s\n" "$ac_log" | |
4833 | 5221 | } >&5 |
4834 | 5222 | |
4835 | 5223 | _ACEOF |
4852 | 5240 | "virt-what") CONFIG_FILES="$CONFIG_FILES virt-what" ;; |
4853 | 5241 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4854 | 5242 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
5243 | "tests/alibaba-cloud-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/alibaba-cloud-x86/Makefile" ;; | |
4855 | 5244 | "tests/aws-baremetal-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-baremetal-x86/Makefile" ;; |
4856 | 5245 | "tests/aws-kvm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-arm/Makefile" ;; |
4857 | 5246 | "tests/aws-kvm-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-x86/Makefile" ;; |
4859 | 5248 | "tests/baremetal/Makefile") CONFIG_FILES="$CONFIG_FILES tests/baremetal/Makefile" ;; |
4860 | 5249 | "tests/bhyve/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bhyve/Makefile" ;; |
4861 | 5250 | "tests/docker/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docker/Makefile" ;; |
5251 | "tests/esx-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/esx-arm/Makefile" ;; | |
4862 | 5252 | "tests/esx4.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/esx4.1/Makefile" ;; |
4863 | 5253 | "tests/hyperv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hyperv/Makefile" ;; |
5254 | "tests/illumos-lx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/illumos-lx/Makefile" ;; | |
4864 | 5255 | "tests/kvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm/Makefile" ;; |
4865 | 5256 | "tests/kvm-explicit-cpu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm-explicit-cpu/Makefile" ;; |
4866 | 5257 | "tests/ldoms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldoms/Makefile" ;; |
4899 | 5290 | # We use the long form for the default assignment because of an extremely |
4900 | 5291 | # bizarre bug on SunOS 4.1.3. |
4901 | 5292 | if $ac_need_defaults; then |
4902 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4903 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4904 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
5293 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
5294 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
5295 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
4905 | 5296 | fi |
4906 | 5297 | |
4907 | 5298 | # Have a temporary directory for convenience. Make it in the build tree |
5237 | 5628 | esac || |
5238 | 5629 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5239 | 5630 | esac |
5240 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5631 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5241 | 5632 | as_fn_append ac_file_inputs " '$ac_f'" |
5242 | 5633 | done |
5243 | 5634 | |
5245 | 5636 | # use $as_me), people would be surprised to read: |
5246 | 5637 | # /* config.h. Generated by config.status. */ |
5247 | 5638 | configure_input='Generated from '` |
5248 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5639 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5249 | 5640 | `' by configure.' |
5250 | 5641 | if test x"$ac_file" != x-; then |
5251 | 5642 | configure_input="$ac_file. $configure_input" |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5253 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5644 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
5254 | 5645 | fi |
5255 | 5646 | # Neutralize special characters interpreted by sed in replacement strings. |
5256 | 5647 | case $configure_input in #( |
5257 | 5648 | *\&* | *\|* | *\\* ) |
5258 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5649 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
5259 | 5650 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
5260 | 5651 | *) ac_sed_conf_input=$configure_input;; |
5261 | 5652 | esac |
5272 | 5663 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
5273 | 5664 | X"$ac_file" : 'X\(//\)$' \| \ |
5274 | 5665 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5275 | $as_echo X"$ac_file" | | |
5666 | printf "%s\n" X"$ac_file" | | |
5276 | 5667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5277 | 5668 | s//\1/ |
5278 | 5669 | q |
5296 | 5687 | case "$ac_dir" in |
5297 | 5688 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5298 | 5689 | *) |
5299 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5690 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
5300 | 5691 | # A ".." for each directory in $ac_dir_suffix. |
5301 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5692 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5302 | 5693 | case $ac_top_builddir_sub in |
5303 | 5694 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5304 | 5695 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
5360 | 5751 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
5361 | 5752 | *datarootdir*) ac_datarootdir_seen=yes;; |
5362 | 5753 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5364 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5755 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5365 | 5756 | _ACEOF |
5366 | 5757 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5367 | 5758 | ac_datarootdir_hack=' |
5405 | 5796 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
5406 | 5797 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
5407 | 5798 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5409 | 5800 | which seems to be undefined. Please make sure it is defined" >&5 |
5410 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5801 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5411 | 5802 | which seems to be undefined. Please make sure it is defined" >&2;} |
5412 | 5803 | |
5413 | 5804 | rm -f "$ac_tmp/stdin" |
5423 | 5814 | # |
5424 | 5815 | if test x"$ac_file" != x-; then |
5425 | 5816 | { |
5426 | $as_echo "/* $configure_input */" \ | |
5817 | printf "%s\n" "/* $configure_input */" >&1 \ | |
5427 | 5818 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
5428 | 5819 | } >"$ac_tmp/config.h" \ |
5429 | 5820 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5430 | 5821 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5432 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5823 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
5433 | 5824 | else |
5434 | 5825 | rm -f "$ac_file" |
5435 | 5826 | mv "$ac_tmp/config.h" "$ac_file" \ |
5436 | 5827 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5437 | 5828 | fi |
5438 | 5829 | else |
5439 | $as_echo "/* $configure_input */" \ | |
5830 | printf "%s\n" "/* $configure_input */" >&1 \ | |
5440 | 5831 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5441 | 5832 | || as_fn_error $? "could not create -" "$LINENO" 5 |
5442 | 5833 | fi |
5456 | 5847 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
5457 | 5848 | X"$_am_arg" : 'X\(//\)$' \| \ |
5458 | 5849 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
5459 | $as_echo X"$_am_arg" | | |
5850 | printf "%s\n" X"$_am_arg" | | |
5460 | 5851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5461 | 5852 | s//\1/ |
5462 | 5853 | q |
5476 | 5867 | s/.*/./; q'`/stamp-h$_am_stamp_count |
5477 | 5868 | ;; |
5478 | 5869 | |
5479 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
5480 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
5870 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
5871 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
5481 | 5872 | ;; |
5482 | 5873 | esac |
5483 | 5874 | |
5503 | 5894 | for am_mf |
5504 | 5895 | do |
5505 | 5896 | # Strip MF so we end up with the name of the file. |
5506 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` | |
5897 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` | |
5507 | 5898 | # Check whether this is an Automake generated Makefile which includes |
5508 | 5899 | # dependency-tracking related rules and includes. |
5509 | 5900 | # Grep'ing the whole file directly is not great: AIX grep has a line |
5515 | 5906 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
5516 | 5907 | X"$am_mf" : 'X\(//\)$' \| \ |
5517 | 5908 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
5518 | $as_echo X"$am_mf" | | |
5909 | printf "%s\n" X"$am_mf" | | |
5519 | 5910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5520 | 5911 | s//\1/ |
5521 | 5912 | q |
5537 | 5928 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
5538 | 5929 | X"$am_mf" : 'X\(//\)$' \| \ |
5539 | 5930 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
5540 | $as_echo X/"$am_mf" | | |
5931 | printf "%s\n" X/"$am_mf" | | |
5541 | 5932 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5542 | 5933 | s//\1/ |
5543 | 5934 | q |
5562 | 5953 | (exit $ac_status); } || am_rc=$? |
5563 | 5954 | done |
5564 | 5955 | if test $am_rc -ne 0; then |
5565 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5956 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5957 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
5567 | 5958 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
5568 | 5959 | for automatic dependency tracking. If GNU make was not used, consider |
5569 | 5960 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
5614 | 6005 | $ac_cs_success || as_fn_exit 1 |
5615 | 6006 | fi |
5616 | 6007 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5618 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5619 | fi | |
5620 | ||
6008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
6009 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6010 | fi | |
6011 | ||
6012 |
0 | 0 | # virt-what |
1 | # Copyright (C) 2008-2018 Red Hat Inc. | |
1 | # Copyright (C) 2008-2022 Red Hat Inc. | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
14 | 14 | # along with this program; if not, write to the Free Software |
15 | 15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | |
17 | AC_INIT([virt-what],[1.21]) | |
17 | AC_INIT([virt-what],[1.24]) | |
18 | 18 | AM_INIT_AUTOMAKE([foreign]) |
19 | 19 | |
20 | 20 | dnl Check for basic C environment. |
33 | 33 | |
34 | 34 | dnl List of tests. |
35 | 35 | tests="\ |
36 | alibaba-cloud-x86 \ | |
36 | 37 | aws-baremetal-x86 \ |
37 | 38 | aws-kvm-arm \ |
38 | 39 | aws-kvm-x86 \ |
40 | 41 | baremetal \ |
41 | 42 | bhyve \ |
42 | 43 | docker \ |
44 | esx-arm \ | |
43 | 45 | esx4.1 \ |
44 | 46 | hyperv \ |
47 | illumos-lx \ | |
45 | 48 | kvm \ |
46 | 49 | kvm-explicit-cpu \ |
47 | 50 | ldoms \ |
77 | 80 | AC_CONFIG_FILES([virt-what],[chmod +x virt-what]) |
78 | 81 | AC_CONFIG_FILES([Makefile |
79 | 82 | tests/Makefile |
83 | tests/alibaba-cloud-x86/Makefile | |
80 | 84 | tests/aws-baremetal-x86/Makefile |
81 | 85 | tests/aws-kvm-arm/Makefile |
82 | 86 | tests/aws-kvm-x86/Makefile |
84 | 88 | tests/baremetal/Makefile |
85 | 89 | tests/bhyve/Makefile |
86 | 90 | tests/docker/Makefile |
91 | tests/esx-arm/Makefile | |
87 | 92 | tests/esx4.1/Makefile |
88 | 93 | tests/hyperv/Makefile |
94 | tests/illumos-lx/Makefile | |
89 | 95 | tests/kvm/Makefile |
90 | 96 | tests/kvm-explicit-cpu/Makefile |
91 | 97 | tests/ldoms/Makefile |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2012-03-27.16; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2020 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
15 | 15 | # GNU General Public License for more details. |
16 | 16 | |
17 | 17 | # You should have received a copy of the GNU General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
19 | 19 | |
20 | 20 | # As a special exception to the GNU General Public License, if you |
21 | 21 | # distribute this file as part of a program that contains a |
26 | 26 | |
27 | 27 | case $1 in |
28 | 28 | '') |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
32 | 32 | -h | --h*) |
33 | 33 | cat <<\EOF |
34 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
55 | 55 | ;; |
56 | 56 | esac |
57 | 57 | |
58 | # Get the directory component of the given path, and save it in the | |
59 | # global variables '$dir'. Note that this directory component will | |
60 | # be either empty or ending with a '/' character. This is deliberate. | |
61 | set_dir_from () | |
62 | { | |
63 | case $1 in | |
64 | */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; | |
65 | *) dir=;; | |
66 | esac | |
67 | } | |
68 | ||
69 | # Get the suffix-stripped basename of the given path, and save it the | |
70 | # global variable '$base'. | |
71 | set_base_from () | |
72 | { | |
73 | base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` | |
74 | } | |
75 | ||
76 | # If no dependency file was actually created by the compiler invocation, | |
77 | # we still have to create a dummy depfile, to avoid errors with the | |
78 | # Makefile "include basename.Plo" scheme. | |
79 | make_dummy_depfile () | |
80 | { | |
81 | echo "#dummy" > "$depfile" | |
82 | } | |
83 | ||
84 | # Factor out some common post-processing of the generated depfile. | |
85 | # Requires the auxiliary global variable '$tmpdepfile' to be set. | |
86 | aix_post_process_depfile () | |
87 | { | |
88 | # If the compiler actually managed to produce a dependency file, | |
89 | # post-process it. | |
90 | if test -f "$tmpdepfile"; then | |
91 | # Each line is of the form 'foo.o: dependency.h'. | |
92 | # Do two passes, one to just change these to | |
93 | # $object: dependency.h | |
94 | # and one to simply output | |
95 | # dependency.h: | |
96 | # which is needed to avoid the deleted-header problem. | |
97 | { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" | |
98 | sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" | |
99 | } > "$depfile" | |
100 | rm -f "$tmpdepfile" | |
101 | else | |
102 | make_dummy_depfile | |
103 | fi | |
104 | } | |
105 | ||
58 | 106 | # A tabulation character. |
59 | 107 | tab=' ' |
60 | 108 | # A newline character. |
61 | 109 | nl=' |
62 | 110 | ' |
111 | # Character ranges might be problematic outside the C locale. | |
112 | # These definitions help. | |
113 | upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ | |
114 | lower=abcdefghijklmnopqrstuvwxyz | |
115 | digits=0123456789 | |
116 | alpha=${upper}${lower} | |
63 | 117 | |
64 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
65 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
72 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
73 | 127 | |
74 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
75 | 132 | |
76 | 133 | # Some modes work just like other modes, but use different flags. We |
77 | 134 | # parameterize here, but still list the modes in the big case below, |
84 | 141 | fi |
85 | 142 | |
86 | 143 | if test "$depmode" = dashXmstdout; then |
87 | # This is just like dashmstdout with a different argument. | |
88 | dashmflag=-xM | |
89 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
90 | 147 | fi |
91 | 148 | |
92 | 149 | cygpath_u="cygpath -u -f -" |
93 | 150 | if test "$depmode" = msvcmsys; then |
94 | # This is just like msvisualcpp but w/o cygpath translation. | |
95 | # Just convert the backslash-escaped backslashes to single forward | |
96 | # slashes to satisfy depend.m4 | |
97 | cygpath_u='sed s,\\\\,/,g' | |
98 | depmode=msvisualcpp | |
151 | # This is just like msvisualcpp but w/o cygpath translation. | |
152 | # Just convert the backslash-escaped backslashes to single forward | |
153 | # slashes to satisfy depend.m4 | |
154 | cygpath_u='sed s,\\\\,/,g' | |
155 | depmode=msvisualcpp | |
99 | 156 | fi |
100 | 157 | |
101 | 158 | if test "$depmode" = msvc7msys; then |
102 | # This is just like msvc7 but w/o cygpath translation. | |
103 | # Just convert the backslash-escaped backslashes to single forward | |
104 | # slashes to satisfy depend.m4 | |
105 | cygpath_u='sed s,\\\\,/,g' | |
106 | depmode=msvc7 | |
159 | # This is just like msvc7 but w/o cygpath translation. | |
160 | # Just convert the backslash-escaped backslashes to single forward | |
161 | # slashes to satisfy depend.m4 | |
162 | cygpath_u='sed s,\\\\,/,g' | |
163 | depmode=msvc7 | |
107 | 164 | fi |
108 | 165 | |
109 | 166 | if test "$depmode" = xlc; then |
110 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
111 | gccflag=-qmakedep=gcc,-MF | |
112 | depmode=gcc | |
167 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | |
168 | gccflag=-qmakedep=gcc,-MF | |
169 | depmode=gcc | |
113 | 170 | fi |
114 | 171 | |
115 | 172 | case "$depmode" in |
132 | 189 | done |
133 | 190 | "$@" |
134 | 191 | stat=$? |
135 | if test $stat -eq 0; then : | |
136 | else | |
192 | if test $stat -ne 0; then | |
137 | 193 | rm -f "$tmpdepfile" |
138 | 194 | exit $stat |
139 | 195 | fi |
141 | 197 | ;; |
142 | 198 | |
143 | 199 | gcc) |
200 | ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. | |
201 | ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. | |
202 | ## (see the conditional assignment to $gccflag above). | |
144 | 203 | ## There are various ways to get dependency output from gcc. Here's |
145 | 204 | ## why we pick this rather obscure method: |
146 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
147 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
148 | 207 | ## (We might end up doing this anyway to support other compilers.) |
149 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
150 | ## -MM, not -M (despite what the docs say). | |
209 | ## -MM, not -M (despite what the docs say). Also, it might not be | |
210 | ## supported by the other compilers which use the 'gcc' depmode. | |
151 | 211 | ## - Using -M directly means running the compiler twice (even worse |
152 | 212 | ## than renaming). |
153 | 213 | if test -z "$gccflag"; then |
155 | 215 | fi |
156 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
157 | 217 | stat=$? |
158 | if test $stat -eq 0; then : | |
159 | else | |
218 | if test $stat -ne 0; then | |
160 | 219 | rm -f "$tmpdepfile" |
161 | 220 | exit $stat |
162 | 221 | fi |
163 | 222 | rm -f "$depfile" |
164 | 223 | echo "$object : \\" > "$depfile" |
165 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
166 | ## The second -e expression handles DOS-style file names with drive letters. | |
224 | # The second -e expression handles DOS-style file names with drive | |
225 | # letters. | |
167 | 226 | sed -e 's/^[^:]*: / /' \ |
168 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
169 | 228 | ## This next piece of magic avoids the "deleted header file" problem. |
172 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
173 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
174 | 233 | ## this for us directly. |
175 | tr ' ' "$nl" < "$tmpdepfile" | | |
176 | 234 | ## Some versions of gcc put a space before the ':'. On the theory |
177 | 235 | ## that the space means something, we add a space to the output as |
178 | 236 | ## well. hp depmode also adds that space, but also prefixes the VPATH |
179 | 237 | ## to the object. Take care to not repeat it in the output. |
180 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
181 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
182 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
183 | | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
184 | 243 | rm -f "$tmpdepfile" |
185 | 244 | ;; |
186 | 245 | |
198 | 257 | "$@" -MDupdate "$tmpdepfile" |
199 | 258 | fi |
200 | 259 | stat=$? |
201 | if test $stat -eq 0; then : | |
202 | else | |
260 | if test $stat -ne 0; then | |
203 | 261 | rm -f "$tmpdepfile" |
204 | 262 | exit $stat |
205 | 263 | fi |
207 | 265 | |
208 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
209 | 267 | echo "$object : \\" > "$depfile" |
210 | ||
211 | 268 | # Clip off the initial element (the dependent). Don't try to be |
212 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
213 | 270 | # lines with more than a fixed number of characters (4096 in |
215 | 272 | # the IRIX cc adds comments like '#:fec' to the end of the |
216 | 273 | # dependency line. |
217 | 274 | tr ' ' "$nl" < "$tmpdepfile" \ |
218 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
219 | tr "$nl" ' ' >> "$depfile" | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
220 | 277 | echo >> "$depfile" |
221 | ||
222 | 278 | # The second pass generates a dummy entry for each header file. |
223 | 279 | tr ' ' "$nl" < "$tmpdepfile" \ |
224 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
225 | >> "$depfile" | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
226 | 282 | else |
227 | # The sourcefile does not contain any dependencies, so just | |
228 | # store a dummy comment line, to avoid errors with the Makefile | |
229 | # "include basename.Plo" scheme. | |
230 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
231 | 284 | fi |
232 | 285 | rm -f "$tmpdepfile" |
233 | 286 | ;; |
245 | 298 | # current directory. Also, the AIX compiler puts '$object:' at the |
246 | 299 | # start of each line; $object doesn't have directory information. |
247 | 300 | # Version 6 uses the directory in both cases. |
248 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
249 | test "x$dir" = "x$object" && dir= | |
250 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
251 | 303 | if test "$libtool" = yes; then |
252 | 304 | tmpdepfile1=$dir$base.u |
253 | 305 | tmpdepfile2=$base.u |
260 | 312 | "$@" -M |
261 | 313 | fi |
262 | 314 | stat=$? |
263 | ||
264 | if test $stat -eq 0; then : | |
265 | else | |
315 | if test $stat -ne 0; then | |
266 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
267 | 317 | exit $stat |
268 | 318 | fi |
271 | 321 | do |
272 | 322 | test -f "$tmpdepfile" && break |
273 | 323 | done |
274 | if test -f "$tmpdepfile"; then | |
275 | # Each line is of the form 'foo.o: dependent.h'. | |
276 | # Do two passes, one to just change these to | |
277 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
278 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
279 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
280 | else | |
281 | # The sourcefile does not contain any dependencies, so just | |
282 | # store a dummy comment line, to avoid errors with the Makefile | |
283 | # "include basename.Plo" scheme. | |
284 | echo "#dummy" > "$depfile" | |
285 | fi | |
324 | aix_post_process_depfile | |
325 | ;; | |
326 | ||
327 | tcc) | |
328 | # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 | |
329 | # FIXME: That version still under development at the moment of writing. | |
330 | # Make that this statement remains true also for stable, released | |
331 | # versions. | |
332 | # It will wrap lines (doesn't matter whether long or short) with a | |
333 | # trailing '\', as in: | |
334 | # | |
335 | # foo.o : \ | |
336 | # foo.c \ | |
337 | # foo.h \ | |
338 | # | |
339 | # It will put a trailing '\' even on the last line, and will use leading | |
340 | # spaces rather than leading tabs (at least since its commit 0394caf7 | |
341 | # "Emit spaces for -MD"). | |
342 | "$@" -MD -MF "$tmpdepfile" | |
343 | stat=$? | |
344 | if test $stat -ne 0; then | |
345 | rm -f "$tmpdepfile" | |
346 | exit $stat | |
347 | fi | |
348 | rm -f "$depfile" | |
349 | # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. | |
350 | # We have to change lines of the first kind to '$object: \'. | |
351 | sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" | |
352 | # And for each line of the second kind, we have to emit a 'dep.h:' | |
353 | # dummy dependency, to avoid the deleted-header problem. | |
354 | sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" | |
286 | 355 | rm -f "$tmpdepfile" |
287 | 356 | ;; |
288 | 357 | |
289 | icc) | |
290 | # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
291 | # However on | |
292 | # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
293 | # ICC 7.0 will fill foo.d with something like | |
294 | # foo.o: sub/foo.c | |
295 | # foo.o: sub/foo.h | |
296 | # which is wrong. We want | |
297 | # sub/foo.o: sub/foo.c | |
298 | # sub/foo.o: sub/foo.h | |
299 | # sub/foo.c: | |
300 | # sub/foo.h: | |
301 | # ICC 7.1 will output | |
358 | ## The order of this option in the case statement is important, since the | |
359 | ## shell code in configure will try each of these formats in the order | |
360 | ## listed in this file. A plain '-MD' option would be understood by many | |
361 | ## compilers, so we must ensure this comes after the gcc and icc options. | |
362 | pgcc) | |
363 | # Portland's C compiler understands '-MD'. | |
364 | # Will always output deps to 'file.d' where file is the root name of the | |
365 | # source file under compilation, even if file resides in a subdirectory. | |
366 | # The object file name does not affect the name of the '.d' file. | |
367 | # pgcc 10.2 will output | |
302 | 368 | # foo.o: sub/foo.c sub/foo.h |
303 | # and will wrap long lines using '\': | |
369 | # and will wrap long lines using '\' : | |
304 | 370 | # foo.o: sub/foo.c ... \ |
305 | 371 | # sub/foo.h ... \ |
306 | 372 | # ... |
307 | # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
308 | # will emit a similar output, but also prepend the continuation lines | |
309 | # with horizontal tabulation characters. | |
310 | "$@" -MD -MF "$tmpdepfile" | |
311 | stat=$? | |
312 | if test $stat -eq 0; then : | |
313 | else | |
373 | set_dir_from "$object" | |
374 | # Use the source, not the object, to determine the base name, since | |
375 | # that's sadly what pgcc will do too. | |
376 | set_base_from "$source" | |
377 | tmpdepfile=$base.d | |
378 | ||
379 | # For projects that build the same source file twice into different object | |
380 | # files, the pgcc approach of using the *source* file root name can cause | |
381 | # problems in parallel builds. Use a locking strategy to avoid stomping on | |
382 | # the same $tmpdepfile. | |
383 | lockdir=$base.d-lock | |
384 | trap " | |
385 | echo '$0: caught signal, cleaning up...' >&2 | |
386 | rmdir '$lockdir' | |
387 | exit 1 | |
388 | " 1 2 13 15 | |
389 | numtries=100 | |
390 | i=$numtries | |
391 | while test $i -gt 0; do | |
392 | # mkdir is a portable test-and-set. | |
393 | if mkdir "$lockdir" 2>/dev/null; then | |
394 | # This process acquired the lock. | |
395 | "$@" -MD | |
396 | stat=$? | |
397 | # Release the lock. | |
398 | rmdir "$lockdir" | |
399 | break | |
400 | else | |
401 | # If the lock is being held by a different process, wait | |
402 | # until the winning process is done or we timeout. | |
403 | while test -d "$lockdir" && test $i -gt 0; do | |
404 | sleep 1 | |
405 | i=`expr $i - 1` | |
406 | done | |
407 | fi | |
408 | i=`expr $i - 1` | |
409 | done | |
410 | trap - 1 2 13 15 | |
411 | if test $i -le 0; then | |
412 | echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
413 | echo "$0: check lockdir '$lockdir'" >&2 | |
414 | exit 1 | |
415 | fi | |
416 | ||
417 | if test $stat -ne 0; then | |
314 | 418 | rm -f "$tmpdepfile" |
315 | 419 | exit $stat |
316 | 420 | fi |
317 | 421 | rm -f "$depfile" |
318 | # Each line is of the form 'foo.o: dependent.h', | |
319 | # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. | |
422 | # Each line is of the form `foo.o: dependent.h', | |
423 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
320 | 424 | # Do two passes, one to just change these to |
321 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
322 | sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
323 | < "$tmpdepfile" > "$depfile" | |
324 | sed ' | |
325 | s/[ '"$tab"'][ '"$tab"']*/ /g | |
326 | s/^ *// | |
327 | s/ *\\*$// | |
328 | s/^[^:]*: *// | |
329 | /^$/d | |
330 | /:$/d | |
331 | s/$/ :/ | |
332 | ' < "$tmpdepfile" >> "$depfile" | |
425 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
426 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
427 | # Some versions of the HPUX 10.20 sed can't process this invocation | |
428 | # correctly. Breaking it into two sed invocations is a workaround. | |
429 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | |
430 | | sed -e 's/$/ :/' >> "$depfile" | |
333 | 431 | rm -f "$tmpdepfile" |
334 | 432 | ;; |
335 | 433 | |
340 | 438 | # 'foo.d', which lands next to the object file, wherever that |
341 | 439 | # happens to be. |
342 | 440 | # Much of this is similar to the tru64 case; see comments there. |
343 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
344 | test "x$dir" = "x$object" && dir= | |
345 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
346 | 443 | if test "$libtool" = yes; then |
347 | 444 | tmpdepfile1=$dir$base.d |
348 | 445 | tmpdepfile2=$dir.libs/$base.d |
353 | 450 | "$@" +Maked |
354 | 451 | fi |
355 | 452 | stat=$? |
356 | if test $stat -eq 0; then : | |
357 | else | |
453 | if test $stat -ne 0; then | |
358 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
359 | 455 | exit $stat |
360 | 456 | fi |
364 | 460 | test -f "$tmpdepfile" && break |
365 | 461 | done |
366 | 462 | if test -f "$tmpdepfile"; then |
367 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
368 | 464 | # Add 'dependent.h:' lines. |
369 | 465 | sed -ne '2,${ |
370 | s/^ *// | |
371 | s/ \\*$// | |
372 | s/$/:/ | |
373 | p | |
374 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
375 | 471 | else |
376 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
377 | 473 | fi |
378 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
379 | 475 | ;; |
380 | 476 | |
381 | 477 | tru64) |
382 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
383 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
384 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
385 | # dependencies in 'foo.d' instead, so we check for that too. | |
386 | # Subdirectories are respected. | |
387 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
388 | test "x$dir" = "x$object" && dir= | |
389 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
390 | ||
391 | if test "$libtool" = yes; then | |
392 | # With Tru64 cc, shared objects can also be used to make a | |
393 | # static library. This mechanism is used in libtool 1.4 series to | |
394 | # handle both shared and static libraries in a single compilation. | |
395 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
396 | # | |
397 | # With libtool 1.5 this exception was removed, and libtool now | |
398 | # generates 2 separate objects for the 2 libraries. These two | |
399 | # compilations output dependencies in $dir.libs/$base.o.d and | |
400 | # in $dir$base.o.d. We have to check for both files, because | |
401 | # one of the two compilations can be disabled. We should prefer | |
402 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
403 | # automatically cleaned when .libs/ is deleted, while ignoring | |
404 | # the former would cause a distcleancheck panic. | |
405 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
406 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
407 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
408 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
409 | "$@" -Wc,-MD | |
410 | else | |
411 | tmpdepfile1=$dir$base.o.d | |
412 | tmpdepfile2=$dir$base.d | |
413 | tmpdepfile3=$dir$base.d | |
414 | tmpdepfile4=$dir$base.d | |
415 | "$@" -MD | |
416 | fi | |
417 | ||
418 | stat=$? | |
419 | if test $stat -eq 0; then : | |
420 | else | |
421 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
422 | exit $stat | |
423 | fi | |
424 | ||
425 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
426 | do | |
427 | test -f "$tmpdepfile" && break | |
428 | done | |
429 | if test -f "$tmpdepfile"; then | |
430 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
431 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
432 | else | |
433 | echo "#dummy" > "$depfile" | |
434 | fi | |
435 | rm -f "$tmpdepfile" | |
436 | ;; | |
478 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
479 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
480 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
481 | # dependencies in 'foo.d' instead, so we check for that too. | |
482 | # Subdirectories are respected. | |
483 | set_dir_from "$object" | |
484 | set_base_from "$object" | |
485 | ||
486 | if test "$libtool" = yes; then | |
487 | # Libtool generates 2 separate objects for the 2 libraries. These | |
488 | # two compilations output dependencies in $dir.libs/$base.o.d and | |
489 | # in $dir$base.o.d. We have to check for both files, because | |
490 | # one of the two compilations can be disabled. We should prefer | |
491 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
492 | # automatically cleaned when .libs/ is deleted, while ignoring | |
493 | # the former would cause a distcleancheck panic. | |
494 | tmpdepfile1=$dir$base.o.d # libtool 1.5 | |
495 | tmpdepfile2=$dir.libs/$base.o.d # Likewise. | |
496 | tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
497 | "$@" -Wc,-MD | |
498 | else | |
499 | tmpdepfile1=$dir$base.d | |
500 | tmpdepfile2=$dir$base.d | |
501 | tmpdepfile3=$dir$base.d | |
502 | "$@" -MD | |
503 | fi | |
504 | ||
505 | stat=$? | |
506 | if test $stat -ne 0; then | |
507 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
508 | exit $stat | |
509 | fi | |
510 | ||
511 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
512 | do | |
513 | test -f "$tmpdepfile" && break | |
514 | done | |
515 | # Same post-processing that is required for AIX mode. | |
516 | aix_post_process_depfile | |
517 | ;; | |
437 | 518 | |
438 | 519 | msvc7) |
439 | 520 | if test "$libtool" = yes; then |
444 | 525 | "$@" $showIncludes > "$tmpdepfile" |
445 | 526 | stat=$? |
446 | 527 | grep -v '^Note: including file: ' "$tmpdepfile" |
447 | if test "$stat" = 0; then : | |
448 | else | |
528 | if test $stat -ne 0; then | |
449 | 529 | rm -f "$tmpdepfile" |
450 | 530 | exit $stat |
451 | 531 | fi |
471 | 551 | G |
472 | 552 | p |
473 | 553 | }' >> "$depfile" |
554 | echo >> "$depfile" # make sure the fragment doesn't end with a backslash | |
474 | 555 | rm -f "$tmpdepfile" |
475 | 556 | ;; |
476 | 557 | |
522 | 603 | # in the target name. This is to cope with DOS-style filenames: |
523 | 604 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. |
524 | 605 | "$@" $dashmflag | |
525 | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
606 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
526 | 607 | rm -f "$depfile" |
527 | 608 | cat < "$tmpdepfile" > "$depfile" |
528 | tr ' ' "$nl" < "$tmpdepfile" | \ | |
529 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
530 | ## correctly. Breaking it into two sed invocations is a workaround. | |
531 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
609 | # Some versions of the HPUX 10.20 sed can't process this sed invocation | |
610 | # correctly. Breaking it into two sed invocations is a workaround. | |
611 | tr ' ' "$nl" < "$tmpdepfile" \ | |
612 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
613 | | sed -e 's/$/ :/' >> "$depfile" | |
532 | 614 | rm -f "$tmpdepfile" |
533 | 615 | ;; |
534 | 616 | |
581 | 663 | # makedepend may prepend the VPATH from the source file name to the object. |
582 | 664 | # No need to regex-escape $object, excess matching of '.' is harmless. |
583 | 665 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" |
584 | sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
585 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
586 | ## correctly. Breaking it into two sed invocations is a workaround. | |
587 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
666 | # Some versions of the HPUX 10.20 sed can't process the last invocation | |
667 | # correctly. Breaking it into two sed invocations is a workaround. | |
668 | sed '1,2d' "$tmpdepfile" \ | |
669 | | tr ' ' "$nl" \ | |
670 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
671 | | sed -e 's/$/ :/' >> "$depfile" | |
588 | 672 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
589 | 673 | ;; |
590 | 674 | |
620 | 704 | esac |
621 | 705 | done |
622 | 706 | |
623 | "$@" -E | | |
624 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
625 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
626 | sed '$ s: \\$::' > "$tmpdepfile" | |
707 | "$@" -E \ | |
708 | | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
709 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
710 | | sed '$ s: \\$::' > "$tmpdepfile" | |
627 | 711 | rm -f "$depfile" |
628 | 712 | echo "$object : \\" > "$depfile" |
629 | 713 | cat < "$tmpdepfile" >> "$depfile" |
655 | 739 | shift |
656 | 740 | ;; |
657 | 741 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
658 | set fnord "$@" | |
659 | shift | |
660 | shift | |
661 | ;; | |
742 | set fnord "$@" | |
743 | shift | |
744 | shift | |
745 | ;; | |
662 | 746 | *) |
663 | set fnord "$@" "$arg" | |
664 | shift | |
665 | shift | |
666 | ;; | |
747 | set fnord "$@" "$arg" | |
748 | shift | |
749 | shift | |
750 | ;; | |
667 | 751 | esac |
668 | 752 | done |
669 | 753 | "$@" -E 2>/dev/null | |
698 | 782 | # Local Variables: |
699 | 783 | # mode: shell-script |
700 | 784 | # sh-indentation: 2 |
701 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
785 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
702 | 786 | # time-stamp-start: "scriptversion=" |
703 | 787 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
704 | # time-stamp-time-zone: "UTC" | |
788 | # time-stamp-time-zone: "UTC0" | |
705 | 789 | # time-stamp-end: "; # UTC" |
706 | 790 | # End: |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2011-11-20.07; # UTC | |
3 | scriptversion=2018-03-11.20; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
40 | 40 | # This script is compatible with the BSD install script, but was written |
41 | 41 | # from scratch. |
42 | 42 | |
43 | tab=' ' | |
43 | 44 | nl=' |
44 | 45 | ' |
45 | IFS=" "" $nl" | |
46 | ||
47 | # set DOITPROG to echo to test this script | |
48 | ||
49 | # Don't use :- since 4.3BSD and earlier shells don't like it. | |
46 | IFS=" $tab$nl" | |
47 | ||
48 | # Set DOITPROG to "echo" to test this script. | |
49 | ||
50 | 50 | doit=${DOITPROG-} |
51 | if test -z "$doit"; then | |
52 | doit_exec=exec | |
53 | else | |
54 | doit_exec=$doit | |
55 | fi | |
51 | doit_exec=${doit:-exec} | |
56 | 52 | |
57 | 53 | # Put in absolute file names if you don't have them in your path; |
58 | 54 | # or use environment vars. |
67 | 63 | rmprog=${RMPROG-rm} |
68 | 64 | stripprog=${STRIPPROG-strip} |
69 | 65 | |
70 | posix_glob='?' | |
71 | initialize_posix_glob=' | |
72 | test "$posix_glob" != "?" || { | |
73 | if (set -f) 2>/dev/null; then | |
74 | posix_glob= | |
75 | else | |
76 | posix_glob=: | |
77 | fi | |
78 | } | |
79 | ' | |
80 | ||
81 | 66 | posix_mkdir= |
82 | 67 | |
83 | 68 | # Desired mode of installed file. |
96 | 81 | dst_arg= |
97 | 82 | |
98 | 83 | copy_on_change=false |
99 | no_target_directory= | |
84 | is_target_a_directory=possibly | |
100 | 85 | |
101 | 86 | usage="\ |
102 | 87 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE |
136 | 121 | -d) dir_arg=true;; |
137 | 122 | |
138 | 123 | -g) chgrpcmd="$chgrpprog $2" |
139 | shift;; | |
124 | shift;; | |
140 | 125 | |
141 | 126 | --help) echo "$usage"; exit $?;; |
142 | 127 | |
143 | 128 | -m) mode=$2 |
144 | case $mode in | |
145 | *' '* | *' '* | *' | |
146 | '* | *'*'* | *'?'* | *'['*) | |
147 | echo "$0: invalid mode: $mode" >&2 | |
148 | exit 1;; | |
149 | esac | |
150 | shift;; | |
129 | case $mode in | |
130 | *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) | |
131 | echo "$0: invalid mode: $mode" >&2 | |
132 | exit 1;; | |
133 | esac | |
134 | shift;; | |
151 | 135 | |
152 | 136 | -o) chowncmd="$chownprog $2" |
153 | shift;; | |
137 | shift;; | |
154 | 138 | |
155 | 139 | -s) stripcmd=$stripprog;; |
156 | 140 | |
157 | -t) dst_arg=$2 | |
158 | # Protect names problematic for 'test' and other utilities. | |
159 | case $dst_arg in | |
160 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
161 | esac | |
162 | shift;; | |
163 | ||
164 | -T) no_target_directory=true;; | |
141 | -t) | |
142 | is_target_a_directory=always | |
143 | dst_arg=$2 | |
144 | # Protect names problematic for 'test' and other utilities. | |
145 | case $dst_arg in | |
146 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
147 | esac | |
148 | shift;; | |
149 | ||
150 | -T) is_target_a_directory=never;; | |
165 | 151 | |
166 | 152 | --version) echo "$0 $scriptversion"; exit $?;; |
167 | 153 | |
168 | --) shift | |
169 | break;; | |
170 | ||
171 | -*) echo "$0: invalid option: $1" >&2 | |
172 | exit 1;; | |
154 | --) shift | |
155 | break;; | |
156 | ||
157 | -*) echo "$0: invalid option: $1" >&2 | |
158 | exit 1;; | |
173 | 159 | |
174 | 160 | *) break;; |
175 | 161 | esac |
176 | 162 | shift |
177 | 163 | done |
164 | ||
165 | # We allow the use of options -d and -T together, by making -d | |
166 | # take the precedence; this is for compatibility with GNU install. | |
167 | ||
168 | if test -n "$dir_arg"; then | |
169 | if test -n "$dst_arg"; then | |
170 | echo "$0: target directory not allowed when installing a directory." >&2 | |
171 | exit 1 | |
172 | fi | |
173 | fi | |
178 | 174 | |
179 | 175 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then |
180 | 176 | # When -d is used, all remaining arguments are directories to create. |
207 | 203 | fi |
208 | 204 | |
209 | 205 | if test -z "$dir_arg"; then |
206 | if test $# -gt 1 || test "$is_target_a_directory" = always; then | |
207 | if test ! -d "$dst_arg"; then | |
208 | echo "$0: $dst_arg: Is not a directory." >&2 | |
209 | exit 1 | |
210 | fi | |
211 | fi | |
212 | fi | |
213 | ||
214 | if test -z "$dir_arg"; then | |
210 | 215 | do_exit='(exit $ret); exit $ret' |
211 | 216 | trap "ret=129; $do_exit" 1 |
212 | 217 | trap "ret=130; $do_exit" 2 |
222 | 227 | |
223 | 228 | *[0-7]) |
224 | 229 | if test -z "$stripcmd"; then |
225 | u_plus_rw= | |
230 | u_plus_rw= | |
226 | 231 | else |
227 | u_plus_rw='% 200' | |
232 | u_plus_rw='% 200' | |
228 | 233 | fi |
229 | 234 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; |
230 | 235 | *) |
231 | 236 | if test -z "$stripcmd"; then |
232 | u_plus_rw= | |
237 | u_plus_rw= | |
233 | 238 | else |
234 | u_plus_rw=,u+rw | |
239 | u_plus_rw=,u+rw | |
235 | 240 | fi |
236 | 241 | cp_umask=$mode$u_plus_rw;; |
237 | 242 | esac |
265 | 270 | fi |
266 | 271 | dst=$dst_arg |
267 | 272 | |
268 | # If destination is a directory, append the input filename; won't work | |
269 | # if double slashes aren't ignored. | |
273 | # If destination is a directory, append the input filename. | |
270 | 274 | if test -d "$dst"; then |
271 | if test -n "$no_target_directory"; then | |
272 | echo "$0: $dst_arg: Is a directory" >&2 | |
273 | exit 1 | |
275 | if test "$is_target_a_directory" = never; then | |
276 | echo "$0: $dst_arg: Is a directory" >&2 | |
277 | exit 1 | |
274 | 278 | fi |
275 | 279 | dstdir=$dst |
276 | dst=$dstdir/`basename "$src"` | |
280 | dstbase=`basename "$src"` | |
281 | case $dst in | |
282 | */) dst=$dst$dstbase;; | |
283 | *) dst=$dst/$dstbase;; | |
284 | esac | |
277 | 285 | dstdir_status=0 |
278 | 286 | else |
279 | # Prefer dirname, but fall back on a substitute if dirname fails. | |
280 | dstdir=` | |
281 | (dirname "$dst") 2>/dev/null || | |
282 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
283 | X"$dst" : 'X\(//\)[^/]' \| \ | |
284 | X"$dst" : 'X\(//\)$' \| \ | |
285 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
286 | echo X"$dst" | | |
287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
288 | s//\1/ | |
289 | q | |
290 | } | |
291 | /^X\(\/\/\)[^/].*/{ | |
292 | s//\1/ | |
293 | q | |
294 | } | |
295 | /^X\(\/\/\)$/{ | |
296 | s//\1/ | |
297 | q | |
298 | } | |
299 | /^X\(\/\).*/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | s/.*/./; q' | |
304 | ` | |
305 | ||
287 | dstdir=`dirname "$dst"` | |
306 | 288 | test -d "$dstdir" |
307 | 289 | dstdir_status=$? |
308 | 290 | fi |
309 | 291 | fi |
310 | 292 | |
293 | case $dstdir in | |
294 | */) dstdirslash=$dstdir;; | |
295 | *) dstdirslash=$dstdir/;; | |
296 | esac | |
297 | ||
311 | 298 | obsolete_mkdir_used=false |
312 | 299 | |
313 | 300 | if test $dstdir_status != 0; then |
314 | 301 | case $posix_mkdir in |
315 | 302 | '') |
316 | # Create intermediate dirs using mode 755 as modified by the umask. | |
317 | # This is like FreeBSD 'install' as of 1997-10-28. | |
318 | umask=`umask` | |
319 | case $stripcmd.$umask in | |
320 | # Optimize common cases. | |
321 | *[2367][2367]) mkdir_umask=$umask;; | |
322 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
323 | ||
324 | *[0-7]) | |
325 | mkdir_umask=`expr $umask + 22 \ | |
326 | - $umask % 100 % 40 + $umask % 20 \ | |
327 | - $umask % 10 % 4 + $umask % 2 | |
328 | `;; | |
329 | *) mkdir_umask=$umask,go-w;; | |
330 | esac | |
331 | ||
332 | # With -d, create the new directory with the user-specified mode. | |
333 | # Otherwise, rely on $mkdir_umask. | |
334 | if test -n "$dir_arg"; then | |
335 | mkdir_mode=-m$mode | |
336 | else | |
337 | mkdir_mode= | |
338 | fi | |
339 | ||
340 | posix_mkdir=false | |
341 | case $umask in | |
342 | *[123567][0-7][0-7]) | |
343 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
344 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
345 | ;; | |
346 | *) | |
347 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
348 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
349 | ||
350 | if (umask $mkdir_umask && | |
351 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
352 | then | |
353 | if test -z "$dir_arg" || { | |
354 | # Check for POSIX incompatibilities with -m. | |
355 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
356 | # other-writable bit of parent directory when it shouldn't. | |
357 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
358 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
359 | case $ls_ld_tmpdir in | |
360 | d????-?r-*) different_mode=700;; | |
361 | d????-?--*) different_mode=755;; | |
362 | *) false;; | |
363 | esac && | |
364 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
365 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
366 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
367 | } | |
368 | } | |
369 | then posix_mkdir=: | |
370 | fi | |
371 | rmdir "$tmpdir/d" "$tmpdir" | |
372 | else | |
373 | # Remove any dirs left behind by ancient mkdir implementations. | |
374 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
375 | fi | |
376 | trap '' 0;; | |
377 | esac;; | |
303 | # Create intermediate dirs using mode 755 as modified by the umask. | |
304 | # This is like FreeBSD 'install' as of 1997-10-28. | |
305 | umask=`umask` | |
306 | case $stripcmd.$umask in | |
307 | # Optimize common cases. | |
308 | *[2367][2367]) mkdir_umask=$umask;; | |
309 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
310 | ||
311 | *[0-7]) | |
312 | mkdir_umask=`expr $umask + 22 \ | |
313 | - $umask % 100 % 40 + $umask % 20 \ | |
314 | - $umask % 10 % 4 + $umask % 2 | |
315 | `;; | |
316 | *) mkdir_umask=$umask,go-w;; | |
317 | esac | |
318 | ||
319 | # With -d, create the new directory with the user-specified mode. | |
320 | # Otherwise, rely on $mkdir_umask. | |
321 | if test -n "$dir_arg"; then | |
322 | mkdir_mode=-m$mode | |
323 | else | |
324 | mkdir_mode= | |
325 | fi | |
326 | ||
327 | posix_mkdir=false | |
328 | case $umask in | |
329 | *[123567][0-7][0-7]) | |
330 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
331 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
332 | ;; | |
333 | *) | |
334 | # Note that $RANDOM variable is not portable (e.g. dash); Use it | |
335 | # here however when possible just to lower collision chance. | |
336 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
337 | ||
338 | trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
339 | ||
340 | # Because "mkdir -p" follows existing symlinks and we likely work | |
341 | # directly in world-writeable /tmp, make sure that the '$tmpdir' | |
342 | # directory is successfully created first before we actually test | |
343 | # 'mkdir -p' feature. | |
344 | if (umask $mkdir_umask && | |
345 | $mkdirprog $mkdir_mode "$tmpdir" && | |
346 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 | |
347 | then | |
348 | if test -z "$dir_arg" || { | |
349 | # Check for POSIX incompatibilities with -m. | |
350 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
351 | # other-writable bit of parent directory when it shouldn't. | |
352 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
353 | test_tmpdir="$tmpdir/a" | |
354 | ls_ld_tmpdir=`ls -ld "$test_tmpdir"` | |
355 | case $ls_ld_tmpdir in | |
356 | d????-?r-*) different_mode=700;; | |
357 | d????-?--*) different_mode=755;; | |
358 | *) false;; | |
359 | esac && | |
360 | $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { | |
361 | ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` | |
362 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
363 | } | |
364 | } | |
365 | then posix_mkdir=: | |
366 | fi | |
367 | rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" | |
368 | else | |
369 | # Remove any dirs left behind by ancient mkdir implementations. | |
370 | rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null | |
371 | fi | |
372 | trap '' 0;; | |
373 | esac;; | |
378 | 374 | esac |
379 | 375 | |
380 | 376 | if |
381 | 377 | $posix_mkdir && ( |
382 | umask $mkdir_umask && | |
383 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
378 | umask $mkdir_umask && | |
379 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
384 | 380 | ) |
385 | 381 | then : |
386 | 382 | else |
390 | 386 | # directory the slow way, step by step, checking for races as we go. |
391 | 387 | |
392 | 388 | case $dstdir in |
393 | /*) prefix='/';; | |
394 | [-=\(\)!]*) prefix='./';; | |
395 | *) prefix='';; | |
389 | /*) prefix='/';; | |
390 | [-=\(\)!]*) prefix='./';; | |
391 | *) prefix='';; | |
396 | 392 | esac |
397 | ||
398 | eval "$initialize_posix_glob" | |
399 | 393 | |
400 | 394 | oIFS=$IFS |
401 | 395 | IFS=/ |
402 | $posix_glob set -f | |
396 | set -f | |
403 | 397 | set fnord $dstdir |
404 | 398 | shift |
405 | $posix_glob set +f | |
399 | set +f | |
406 | 400 | IFS=$oIFS |
407 | 401 | |
408 | 402 | prefixes= |
409 | 403 | |
410 | 404 | for d |
411 | 405 | do |
412 | test X"$d" = X && continue | |
413 | ||
414 | prefix=$prefix$d | |
415 | if test -d "$prefix"; then | |
416 | prefixes= | |
417 | else | |
418 | if $posix_mkdir; then | |
419 | (umask=$mkdir_umask && | |
420 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
421 | # Don't fail if two instances are running concurrently. | |
422 | test -d "$prefix" || exit 1 | |
423 | else | |
424 | case $prefix in | |
425 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
426 | *) qprefix=$prefix;; | |
427 | esac | |
428 | prefixes="$prefixes '$qprefix'" | |
429 | fi | |
430 | fi | |
431 | prefix=$prefix/ | |
406 | test X"$d" = X && continue | |
407 | ||
408 | prefix=$prefix$d | |
409 | if test -d "$prefix"; then | |
410 | prefixes= | |
411 | else | |
412 | if $posix_mkdir; then | |
413 | (umask=$mkdir_umask && | |
414 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
415 | # Don't fail if two instances are running concurrently. | |
416 | test -d "$prefix" || exit 1 | |
417 | else | |
418 | case $prefix in | |
419 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
420 | *) qprefix=$prefix;; | |
421 | esac | |
422 | prefixes="$prefixes '$qprefix'" | |
423 | fi | |
424 | fi | |
425 | prefix=$prefix/ | |
432 | 426 | done |
433 | 427 | |
434 | 428 | if test -n "$prefixes"; then |
435 | # Don't fail if two instances are running concurrently. | |
436 | (umask $mkdir_umask && | |
437 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
438 | test -d "$dstdir" || exit 1 | |
439 | obsolete_mkdir_used=true | |
429 | # Don't fail if two instances are running concurrently. | |
430 | (umask $mkdir_umask && | |
431 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
432 | test -d "$dstdir" || exit 1 | |
433 | obsolete_mkdir_used=true | |
440 | 434 | fi |
441 | 435 | fi |
442 | 436 | fi |
449 | 443 | else |
450 | 444 | |
451 | 445 | # Make a couple of temp file names in the proper directory. |
452 | dsttmp=$dstdir/_inst.$$_ | |
453 | rmtmp=$dstdir/_rm.$$_ | |
446 | dsttmp=${dstdirslash}_inst.$$_ | |
447 | rmtmp=${dstdirslash}_rm.$$_ | |
454 | 448 | |
455 | 449 | # Trap to clean up those temp files at exit. |
456 | 450 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 |
457 | 451 | |
458 | 452 | # Copy the file name to the temp name. |
459 | (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | |
453 | (umask $cp_umask && | |
454 | { test -z "$stripcmd" || { | |
455 | # Create $dsttmp read-write so that cp doesn't create it read-only, | |
456 | # which would cause strip to fail. | |
457 | if test -z "$doit"; then | |
458 | : >"$dsttmp" # No need to fork-exec 'touch'. | |
459 | else | |
460 | $doit touch "$dsttmp" | |
461 | fi | |
462 | } | |
463 | } && | |
464 | $doit_exec $cpprog "$src" "$dsttmp") && | |
460 | 465 | |
461 | 466 | # and set any options; do chmod last to preserve setuid bits. |
462 | 467 | # |
471 | 476 | |
472 | 477 | # If -C, don't bother to copy if it wouldn't change the file. |
473 | 478 | if $copy_on_change && |
474 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
475 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
476 | ||
477 | eval "$initialize_posix_glob" && | |
478 | $posix_glob set -f && | |
479 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
480 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
481 | set -f && | |
479 | 482 | set X $old && old=:$2:$4:$5:$6 && |
480 | 483 | set X $new && new=:$2:$4:$5:$6 && |
481 | $posix_glob set +f && | |
482 | ||
484 | set +f && | |
483 | 485 | test "$old" = "$new" && |
484 | 486 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 |
485 | 487 | then |
492 | 494 | # to itself, or perhaps because mv is so ancient that it does not |
493 | 495 | # support -f. |
494 | 496 | { |
495 | # Now remove or move aside any old file at destination location. | |
496 | # We try this two ways since rm can't unlink itself on some | |
497 | # systems and the destination file might be busy for other | |
498 | # reasons. In this case, the final cleanup might fail but the new | |
499 | # file should still install successfully. | |
500 | { | |
501 | test ! -f "$dst" || | |
502 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
503 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
504 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
505 | } || | |
506 | { echo "$0: cannot unlink or rename $dst" >&2 | |
507 | (exit 1); exit 1 | |
508 | } | |
509 | } && | |
510 | ||
511 | # Now rename the file to the real destination. | |
512 | $doit $mvcmd "$dsttmp" "$dst" | |
497 | # Now remove or move aside any old file at destination location. | |
498 | # We try this two ways since rm can't unlink itself on some | |
499 | # systems and the destination file might be busy for other | |
500 | # reasons. In this case, the final cleanup might fail but the new | |
501 | # file should still install successfully. | |
502 | { | |
503 | test ! -f "$dst" || | |
504 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
505 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
506 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
507 | } || | |
508 | { echo "$0: cannot unlink or rename $dst" >&2 | |
509 | (exit 1); exit 1 | |
510 | } | |
511 | } && | |
512 | ||
513 | # Now rename the file to the real destination. | |
514 | $doit $mvcmd "$dsttmp" "$dst" | |
513 | 515 | } |
514 | 516 | fi || exit 1 |
515 | 517 | |
518 | 520 | done |
519 | 521 | |
520 | 522 | # Local variables: |
521 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
523 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
522 | 524 | # time-stamp-start: "scriptversion=" |
523 | 525 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
524 | # time-stamp-time-zone: "UTC" | |
526 | # time-stamp-time-zone: "UTC0" | |
525 | 527 | # time-stamp-end: "; # UTC" |
526 | 528 | # End: |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2012-01-06.18; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
6 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2020 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of the GNU General Public License as published by |
16 | 16 | # GNU General Public License for more details. |
17 | 17 | |
18 | 18 | # You should have received a copy of the GNU General Public License |
19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
20 | 20 | |
21 | 21 | # As a special exception to the GNU General Public License, if you |
22 | 22 | # distribute this file as part of a program that contains a |
28 | 28 | exit 1 |
29 | 29 | fi |
30 | 30 | |
31 | run=: | |
32 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
33 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
34 | ||
35 | # In the cases where this matters, 'missing' is being run in the | |
36 | # srcdir already. | |
37 | if test -f configure.ac; then | |
38 | configure_ac=configure.ac | |
39 | else | |
40 | configure_ac=configure.in | |
41 | fi | |
42 | ||
43 | msg="missing on your system" | |
44 | ||
45 | 31 | case $1 in |
46 | --run) | |
47 | # Try to run requested program, and just exit if it succeeds. | |
48 | run= | |
49 | shift | |
50 | "$@" && exit 0 | |
51 | # Exit code 63 means version mismatch. This often happens | |
52 | # when the user try to use an ancient version of a tool on | |
53 | # a file that requires a minimum version. In this case we | |
54 | # we should proceed has if the program had been absent, or | |
55 | # if --run hadn't been passed. | |
56 | if test $? = 63; then | |
57 | run=: | |
58 | msg="probably too old" | |
59 | fi | |
60 | ;; | |
32 | ||
33 | --is-lightweight) | |
34 | # Used by our autoconf macros to check whether the available missing | |
35 | # script is modern enough. | |
36 | exit 0 | |
37 | ;; | |
38 | ||
39 | --run) | |
40 | # Back-compat with the calling convention used by older automake. | |
41 | shift | |
42 | ;; | |
61 | 43 | |
62 | 44 | -h|--h|--he|--hel|--help) |
63 | 45 | echo "\ |
64 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
65 | 47 | |
66 | Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
67 | error status if there is no known handling for PROGRAM. | |
48 | Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | |
49 | to PROGRAM being missing or too old. | |
68 | 50 | |
69 | 51 | Options: |
70 | 52 | -h, --help display this help and exit |
71 | 53 | -v, --version output version information and exit |
72 | --run try to run the given command, and emulate it if it fails | |
73 | 54 | |
74 | 55 | Supported PROGRAM values: |
75 | aclocal touch file 'aclocal.m4' | |
76 | autoconf touch file 'configure' | |
77 | autoheader touch file 'config.h.in' | |
78 | autom4te touch the output file, or create a stub one | |
79 | automake touch all 'Makefile.in' files | |
80 | bison create 'y.tab.[ch]', if possible, from existing .[ch] | |
81 | flex create 'lex.yy.c', if possible, from existing .c | |
82 | help2man touch the output file | |
83 | lex create 'lex.yy.c', if possible, from existing .c | |
84 | makeinfo touch the output file | |
85 | yacc create 'y.tab.[ch]', if possible, from existing .[ch] | |
56 | aclocal autoconf autoheader autom4te automake makeinfo | |
57 | bison yacc flex lex help2man | |
86 | 58 | |
87 | 59 | Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and |
88 | 60 | 'g' are ignored when checking the name. |
97 | 69 | ;; |
98 | 70 | |
99 | 71 | -*) |
100 | echo 1>&2 "$0: Unknown '$1' option" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
101 | 73 | echo 1>&2 "Try '$0 --help' for more information" |
102 | 74 | exit 1 |
103 | 75 | ;; |
104 | 76 | |
105 | 77 | esac |
106 | 78 | |
107 | # normalize program name to check for. | |
108 | program=`echo "$1" | sed ' | |
109 | s/^gnu-//; t | |
110 | s/^gnu//; t | |
111 | s/^g//; t'` | |
112 | ||
113 | # Now exit if we have it, but it failed. Also exit now if we | |
114 | # don't have it and --version was passed (most likely to detect | |
115 | # the program). This is about non-GNU programs, so use $1 not | |
116 | # $program. | |
117 | case $1 in | |
118 | lex*|yacc*) | |
119 | # Not GNU programs, they don't have --version. | |
120 | ;; | |
121 | ||
122 | *) | |
123 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
124 | # We have it, but it failed. | |
125 | exit 1 | |
126 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
127 | # Could not run --version or --help. This is probably someone | |
128 | # running '$TOOL --version' or '$TOOL --help' to check whether | |
129 | # $TOOL exists and not knowing $TOOL uses missing. | |
130 | exit 1 | |
131 | fi | |
132 | ;; | |
133 | esac | |
134 | ||
135 | # If it does not exist, or fails to run (possibly an outdated version), | |
136 | # try to emulate it. | |
137 | case $program in | |
138 | aclocal*) | |
139 | echo 1>&2 "\ | |
140 | WARNING: '$1' is $msg. You should only need it if | |
141 | you modified 'acinclude.m4' or '${configure_ac}'. You might want | |
142 | to install the Automake and Perl packages. Grab them from | |
143 | any GNU archive site." | |
144 | touch aclocal.m4 | |
145 | ;; | |
146 | ||
147 | autoconf*) | |
148 | echo 1>&2 "\ | |
149 | WARNING: '$1' is $msg. You should only need it if | |
150 | you modified '${configure_ac}'. You might want to install the | |
151 | Autoconf and GNU m4 packages. Grab them from any GNU | |
152 | archive site." | |
153 | touch configure | |
154 | ;; | |
155 | ||
156 | autoheader*) | |
157 | echo 1>&2 "\ | |
158 | WARNING: '$1' is $msg. You should only need it if | |
159 | you modified 'acconfig.h' or '${configure_ac}'. You might want | |
160 | to install the Autoconf and GNU m4 packages. Grab them | |
161 | from any GNU archive site." | |
162 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
163 | test -z "$files" && files="config.h" | |
164 | touch_files= | |
165 | for f in $files; do | |
166 | case $f in | |
167 | *:*) touch_files="$touch_files "`echo "$f" | | |
168 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
169 | *) touch_files="$touch_files $f.in";; | |
170 | esac | |
171 | done | |
172 | touch $touch_files | |
173 | ;; | |
174 | ||
175 | automake*) | |
176 | echo 1>&2 "\ | |
177 | WARNING: '$1' is $msg. You should only need it if | |
178 | you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. | |
179 | You might want to install the Automake and Perl packages. | |
180 | Grab them from any GNU archive site." | |
181 | find . -type f -name Makefile.am -print | | |
182 | sed 's/\.am$/.in/' | | |
183 | while read f; do touch "$f"; done | |
184 | ;; | |
185 | ||
186 | autom4te*) | |
187 | echo 1>&2 "\ | |
188 | WARNING: '$1' is needed, but is $msg. | |
189 | You might have modified some files without having the | |
190 | proper tools for further handling them. | |
191 | You can get '$1' as part of Autoconf from any GNU | |
192 | archive site." | |
193 | ||
194 | file=`echo "$*" | sed -n "$sed_output"` | |
195 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
196 | if test -f "$file"; then | |
197 | touch $file | |
198 | else | |
199 | test -z "$file" || exec >$file | |
200 | echo "#! /bin/sh" | |
201 | echo "# Created by GNU Automake missing as a replacement of" | |
202 | echo "# $ $@" | |
203 | echo "exit 0" | |
204 | chmod +x $file | |
205 | exit 1 | |
206 | fi | |
207 | ;; | |
208 | ||
209 | bison*|yacc*) | |
210 | echo 1>&2 "\ | |
211 | WARNING: '$1' $msg. You should only need it if | |
212 | you modified a '.y' file. You may need the Bison package | |
213 | in order for those modifications to take effect. You can get | |
214 | Bison from any GNU archive site." | |
215 | rm -f y.tab.c y.tab.h | |
216 | if test $# -ne 1; then | |
217 | eval LASTARG=\${$#} | |
218 | case $LASTARG in | |
219 | *.y) | |
220 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
221 | if test -f "$SRCFILE"; then | |
222 | cp "$SRCFILE" y.tab.c | |
223 | fi | |
224 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
225 | if test -f "$SRCFILE"; then | |
226 | cp "$SRCFILE" y.tab.h | |
227 | fi | |
228 | ;; | |
229 | esac | |
230 | fi | |
231 | if test ! -f y.tab.h; then | |
232 | echo >y.tab.h | |
233 | fi | |
234 | if test ! -f y.tab.c; then | |
235 | echo 'main() { return 0; }' >y.tab.c | |
236 | fi | |
237 | ;; | |
238 | ||
239 | lex*|flex*) | |
240 | echo 1>&2 "\ | |
241 | WARNING: '$1' is $msg. You should only need it if | |
242 | you modified a '.l' file. You may need the Flex package | |
243 | in order for those modifications to take effect. You can get | |
244 | Flex from any GNU archive site." | |
245 | rm -f lex.yy.c | |
246 | if test $# -ne 1; then | |
247 | eval LASTARG=\${$#} | |
248 | case $LASTARG in | |
249 | *.l) | |
250 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
251 | if test -f "$SRCFILE"; then | |
252 | cp "$SRCFILE" lex.yy.c | |
253 | fi | |
254 | ;; | |
255 | esac | |
256 | fi | |
257 | if test ! -f lex.yy.c; then | |
258 | echo 'main() { return 0; }' >lex.yy.c | |
259 | fi | |
260 | ;; | |
261 | ||
262 | help2man*) | |
263 | echo 1>&2 "\ | |
264 | WARNING: '$1' is $msg. You should only need it if | |
265 | you modified a dependency of a manual page. You may need the | |
266 | Help2man package in order for those modifications to take | |
267 | effect. You can get Help2man from any GNU archive site." | |
268 | ||
269 | file=`echo "$*" | sed -n "$sed_output"` | |
270 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
271 | if test -f "$file"; then | |
272 | touch $file | |
273 | else | |
274 | test -z "$file" || exec >$file | |
275 | echo ".ab help2man is required to generate this page" | |
276 | exit $? | |
277 | fi | |
278 | ;; | |
279 | ||
280 | makeinfo*) | |
281 | echo 1>&2 "\ | |
282 | WARNING: '$1' is $msg. You should only need it if | |
283 | you modified a '.texi' or '.texinfo' file, or any other file | |
284 | indirectly affecting the aspect of the manual. The spurious | |
285 | call might also be the consequence of using a buggy 'make' (AIX, | |
286 | DU, IRIX). You might want to install the Texinfo package or | |
287 | the GNU make package. Grab either from any GNU archive site." | |
288 | # The file to touch is that specified with -o ... | |
289 | file=`echo "$*" | sed -n "$sed_output"` | |
290 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
291 | if test -z "$file"; then | |
292 | # ... or it is the one specified with @setfilename ... | |
293 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
294 | file=`sed -n ' | |
295 | /^@setfilename/{ | |
296 | s/.* \([^ ]*\) *$/\1/ | |
297 | p | |
298 | q | |
299 | }' $infile` | |
300 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
301 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
302 | fi | |
303 | # If the file does not exist, the user really needs makeinfo; | |
304 | # let's fail without touching anything. | |
305 | test -f $file || exit 1 | |
306 | touch $file | |
307 | ;; | |
308 | ||
309 | *) | |
310 | echo 1>&2 "\ | |
311 | WARNING: '$1' is needed, and is $msg. | |
312 | You might have modified some files without having the | |
313 | proper tools for further handling them. Check the 'README' file, | |
314 | it often tells you about the needed prerequisites for installing | |
315 | this package. You may also peek at any GNU archive site, in case | |
316 | some other package would contain this missing '$1' program." | |
317 | exit 1 | |
318 | ;; | |
319 | esac | |
320 | ||
321 | exit 0 | |
79 | # Run the given program, remember its exit status. | |
80 | "$@"; st=$? | |
81 | ||
82 | # If it succeeded, we are done. | |
83 | test $st -eq 0 && exit 0 | |
84 | ||
85 | # Also exit now if we it failed (or wasn't found), and '--version' was | |
86 | # passed; such an option is passed most likely to detect whether the | |
87 | # program is present and works. | |
88 | case $2 in --version|--help) exit $st;; esac | |
89 | ||
90 | # Exit code 63 means version mismatch. This often happens when the user | |
91 | # tries to use an ancient version of a tool on a file that requires a | |
92 | # minimum version. | |
93 | if test $st -eq 63; then | |
94 | msg="probably too old" | |
95 | elif test $st -eq 127; then | |
96 | # Program was missing. | |
97 | msg="missing on your system" | |
98 | else | |
99 | # Program was found and executed, but failed. Give up. | |
100 | exit $st | |
101 | fi | |
102 | ||
103 | perl_URL=https://www.perl.org/ | |
104 | flex_URL=https://github.com/westes/flex | |
105 | gnu_software_URL=https://www.gnu.org/software | |
106 | ||
107 | program_details () | |
108 | { | |
109 | case $1 in | |
110 | aclocal|automake) | |
111 | echo "The '$1' program is part of the GNU Automake package:" | |
112 | echo "<$gnu_software_URL/automake>" | |
113 | echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" | |
114 | echo "<$gnu_software_URL/autoconf>" | |
115 | echo "<$gnu_software_URL/m4/>" | |
116 | echo "<$perl_URL>" | |
117 | ;; | |
118 | autoconf|autom4te|autoheader) | |
119 | echo "The '$1' program is part of the GNU Autoconf package:" | |
120 | echo "<$gnu_software_URL/autoconf/>" | |
121 | echo "It also requires GNU m4 and Perl in order to run:" | |
122 | echo "<$gnu_software_URL/m4/>" | |
123 | echo "<$perl_URL>" | |
124 | ;; | |
125 | esac | |
126 | } | |
127 | ||
128 | give_advice () | |
129 | { | |
130 | # Normalize program name to check for. | |
131 | normalized_program=`echo "$1" | sed ' | |
132 | s/^gnu-//; t | |
133 | s/^gnu//; t | |
134 | s/^g//; t'` | |
135 | ||
136 | printf '%s\n' "'$1' is $msg." | |
137 | ||
138 | configure_deps="'configure.ac' or m4 files included by 'configure.ac'" | |
139 | case $normalized_program in | |
140 | autoconf*) | |
141 | echo "You should only need it if you modified 'configure.ac'," | |
142 | echo "or m4 files included by it." | |
143 | program_details 'autoconf' | |
144 | ;; | |
145 | autoheader*) | |
146 | echo "You should only need it if you modified 'acconfig.h' or" | |
147 | echo "$configure_deps." | |
148 | program_details 'autoheader' | |
149 | ;; | |
150 | automake*) | |
151 | echo "You should only need it if you modified 'Makefile.am' or" | |
152 | echo "$configure_deps." | |
153 | program_details 'automake' | |
154 | ;; | |
155 | aclocal*) | |
156 | echo "You should only need it if you modified 'acinclude.m4' or" | |
157 | echo "$configure_deps." | |
158 | program_details 'aclocal' | |
159 | ;; | |
160 | autom4te*) | |
161 | echo "You might have modified some maintainer files that require" | |
162 | echo "the 'autom4te' program to be rebuilt." | |
163 | program_details 'autom4te' | |
164 | ;; | |
165 | bison*|yacc*) | |
166 | echo "You should only need it if you modified a '.y' file." | |
167 | echo "You may want to install the GNU Bison package:" | |
168 | echo "<$gnu_software_URL/bison/>" | |
169 | ;; | |
170 | lex*|flex*) | |
171 | echo "You should only need it if you modified a '.l' file." | |
172 | echo "You may want to install the Fast Lexical Analyzer package:" | |
173 | echo "<$flex_URL>" | |
174 | ;; | |
175 | help2man*) | |
176 | echo "You should only need it if you modified a dependency" \ | |
177 | "of a man page." | |
178 | echo "You may want to install the GNU Help2man package:" | |
179 | echo "<$gnu_software_URL/help2man/>" | |
180 | ;; | |
181 | makeinfo*) | |
182 | echo "You should only need it if you modified a '.texi' file, or" | |
183 | echo "any other file indirectly affecting the aspect of the manual." | |
184 | echo "You might want to install the Texinfo package:" | |
185 | echo "<$gnu_software_URL/texinfo/>" | |
186 | echo "The spurious makeinfo call might also be the consequence of" | |
187 | echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" | |
188 | echo "want to install GNU make:" | |
189 | echo "<$gnu_software_URL/make/>" | |
190 | ;; | |
191 | *) | |
192 | echo "You might have modified some files without having the proper" | |
193 | echo "tools for further handling them. Check the 'README' file, it" | |
194 | echo "often tells you about the needed prerequisites for installing" | |
195 | echo "this package. You may also peek at any GNU archive site, in" | |
196 | echo "case some other package contains this missing '$1' program." | |
197 | ;; | |
198 | esac | |
199 | } | |
200 | ||
201 | give_advice "$1" | sed -e '1s/^/WARNING: /' \ | |
202 | -e '2,$s/^/ /' >&2 | |
203 | ||
204 | # Propagate the correct exit status (expected to be 127 for a program | |
205 | # not found, 63 for a program that failed due to version mismatch). | |
206 | exit $st | |
322 | 207 | |
323 | 208 | # Local variables: |
324 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
209 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
325 | 210 | # time-stamp-start: "scriptversion=" |
326 | 211 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
327 | # time-stamp-time-zone: "UTC" | |
212 | # time-stamp-time-zone: "UTC0" | |
328 | 213 | # time-stamp-end: "; # UTC" |
329 | 214 | # End: |
0 | 0 | #! /bin/sh |
1 | 1 | # test-driver - basic testsuite driver script. |
2 | 2 | |
3 | scriptversion=2012-06-27.10; # UTC | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | 4 | |
5 | # Copyright (C) 2011-2013 Free Software Foundation, Inc. | |
5 | # Copyright (C) 2011-2020 Free Software Foundation, Inc. | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
15 | 15 | # GNU General Public License for more details. |
16 | 16 | # |
17 | 17 | # You should have received a copy of the GNU General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
19 | 19 | |
20 | 20 | # As a special exception to the GNU General Public License, if you |
21 | 21 | # distribute this file as part of a program that contains a |
43 | 43 | Usage: |
44 | 44 | test-driver --test-name=NAME --log-file=PATH --trs-file=PATH |
45 | 45 | [--expect-failure={yes|no}] [--color-tests={yes|no}] |
46 | [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT | |
46 | [--enable-hard-errors={yes|no}] [--] | |
47 | TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] | |
47 | 48 | The '--test-name', '--log-file' and '--trs-file' options are mandatory. |
48 | 49 | END |
49 | 50 | } |
50 | 51 | |
51 | # TODO: better error handling in option parsing (in particular, ensure | |
52 | # TODO: $log_file, $trs_file and $test_name are defined). | |
53 | 52 | test_name= # Used for reporting. |
54 | 53 | log_file= # Where to save the output of the test script. |
55 | 54 | trs_file= # Where to save the metadata of the test run. |
68 | 67 | --enable-hard-errors) enable_hard_errors=$2; shift;; |
69 | 68 | --) shift; break;; |
70 | 69 | -*) usage_error "invalid option: '$1'";; |
70 | *) break;; | |
71 | 71 | esac |
72 | 72 | shift |
73 | 73 | done |
74 | ||
75 | missing_opts= | |
76 | test x"$test_name" = x && missing_opts="$missing_opts --test-name" | |
77 | test x"$log_file" = x && missing_opts="$missing_opts --log-file" | |
78 | test x"$trs_file" = x && missing_opts="$missing_opts --trs-file" | |
79 | if test x"$missing_opts" != x; then | |
80 | usage_error "the following mandatory options are missing:$missing_opts" | |
81 | fi | |
82 | ||
83 | if test $# -eq 0; then | |
84 | usage_error "missing argument" | |
85 | fi | |
74 | 86 | |
75 | 87 | if test $color_tests = yes; then |
76 | 88 | # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. |
93 | 105 | # Test script is run here. |
94 | 106 | "$@" >$log_file 2>&1 |
95 | 107 | estatus=$? |
108 | ||
96 | 109 | if test $enable_hard_errors = no && test $estatus -eq 99; then |
97 | estatus=1 | |
110 | tweaked_estatus=1 | |
111 | else | |
112 | tweaked_estatus=$estatus | |
98 | 113 | fi |
99 | 114 | |
100 | case $estatus:$expect_failure in | |
115 | case $tweaked_estatus:$expect_failure in | |
101 | 116 | 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; |
102 | 117 | 0:*) col=$grn res=PASS recheck=no gcopy=no;; |
103 | 118 | 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; |
105 | 120 | *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; |
106 | 121 | *:*) col=$red res=FAIL recheck=yes gcopy=yes;; |
107 | 122 | esac |
123 | ||
124 | # Report the test outcome and exit status in the logs, so that one can | |
125 | # know whether the test passed or failed simply by looking at the '.log' | |
126 | # file, without the need of also peaking into the corresponding '.trs' | |
127 | # file (automake bug#11814). | |
128 | echo "$res $test_name (exit status: $estatus)" >>$log_file | |
108 | 129 | |
109 | 130 | # Report outcome to console. |
110 | 131 | echo "${col}${res}${std}: $test_name" |
118 | 139 | # Local Variables: |
119 | 140 | # mode: shell-script |
120 | 141 | # sh-indentation: 2 |
121 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
142 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
122 | 143 | # time-stamp-start: "scriptversion=" |
123 | 144 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
124 | # time-stamp-time-zone: "UTC" | |
145 | # time-stamp-time-zone: "UTC0" | |
125 | 146 | # time-stamp-end: "; # UTC" |
126 | 147 | # End: |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
165 | 165 | unique=`for i in $$list; do \ |
166 | 166 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
167 | 167 | done | $(am__uniquify_input)` |
168 | ETAGS = etags | |
169 | CTAGS = ctags | |
170 | 168 | DIST_SUBDIRS = $(SUBDIRS) |
171 | 169 | am__DIST_COMMON = $(srcdir)/Makefile.in |
172 | 170 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
207 | 205 | CFLAGS = @CFLAGS@ |
208 | 206 | CPP = @CPP@ |
209 | 207 | CPPFLAGS = @CPPFLAGS@ |
208 | CSCOPE = @CSCOPE@ | |
209 | CTAGS = @CTAGS@ | |
210 | 210 | CYGPATH_W = @CYGPATH_W@ |
211 | 211 | DEFS = @DEFS@ |
212 | 212 | DEPDIR = @DEPDIR@ |
213 | 213 | ECHO_C = @ECHO_C@ |
214 | 214 | ECHO_N = @ECHO_N@ |
215 | 215 | ECHO_T = @ECHO_T@ |
216 | ETAGS = @ETAGS@ | |
216 | 217 | EXEEXT = @EXEEXT@ |
217 | 218 | INSTALL = @INSTALL@ |
218 | 219 | INSTALL_DATA = @INSTALL_DATA@ |
281 | 282 | prefix = @prefix@ |
282 | 283 | program_transform_name = @program_transform_name@ |
283 | 284 | psdir = @psdir@ |
285 | runstatedir = @runstatedir@ | |
284 | 286 | sbindir = @sbindir@ |
285 | 287 | sharedstatedir = @sharedstatedir@ |
286 | 288 | srcdir = @srcdir@ |
423 | 425 | |
424 | 426 | distclean-tags: |
425 | 427 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
426 | ||
427 | 428 | distdir: $(BUILT_SOURCES) |
428 | 429 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
429 | 430 |
0 | # Makefile for virt-what | |
1 | # Copyright (C) 2008-2011 Red Hat Inc. | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | CLEANFILES = *~ | |
18 | ||
19 | TESTS = test.sh | |
20 | ||
21 | EXTRA_DIST = \ | |
22 | test.sh \ | |
23 | proc/cpuinfo \ | |
24 | proc/self/status \ | |
25 | sbin/dmidecode \ | |
26 | sbin/uname \ | |
27 | sbin/virt-what-cpuid-helper |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | # Makefile for virt-what | |
17 | # Copyright (C) 2008-2011 Red Hat Inc. | |
18 | # | |
19 | # This program is free software; you can redistribute it and/or modify | |
20 | # it under the terms of the GNU General Public License as published by | |
21 | # the Free Software Foundation; either version 2 of the License, or | |
22 | # (at your option) any later version. | |
23 | # | |
24 | # This program is distributed in the hope that it will be useful, | |
25 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 | # GNU General Public License for more details. | |
28 | # | |
29 | # You should have received a copy of the GNU General Public License | |
30 | # along with this program; if not, write to the Free Software | |
31 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
32 | VPATH = @srcdir@ | |
33 | am__is_gnu_make = { \ | |
34 | if test -z '$(MAKELEVEL)'; then \ | |
35 | false; \ | |
36 | elif test -n '$(MAKE_HOST)'; then \ | |
37 | true; \ | |
38 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
39 | true; \ | |
40 | else \ | |
41 | false; \ | |
42 | fi; \ | |
43 | } | |
44 | am__make_running_with_option = \ | |
45 | case $${target_option-} in \ | |
46 | ?) ;; \ | |
47 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
48 | "target option '$${target_option-}' specified" >&2; \ | |
49 | exit 1;; \ | |
50 | esac; \ | |
51 | has_opt=no; \ | |
52 | sane_makeflags=$$MAKEFLAGS; \ | |
53 | if $(am__is_gnu_make); then \ | |
54 | sane_makeflags=$$MFLAGS; \ | |
55 | else \ | |
56 | case $$MAKEFLAGS in \ | |
57 | *\\[\ \ ]*) \ | |
58 | bs=\\; \ | |
59 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
60 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
61 | esac; \ | |
62 | fi; \ | |
63 | skip_next=no; \ | |
64 | strip_trailopt () \ | |
65 | { \ | |
66 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
67 | }; \ | |
68 | for flg in $$sane_makeflags; do \ | |
69 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
70 | case $$flg in \ | |
71 | *=*|--*) continue;; \ | |
72 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
73 | -*I?*) strip_trailopt 'I';; \ | |
74 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
75 | -*O?*) strip_trailopt 'O';; \ | |
76 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
77 | -*l?*) strip_trailopt 'l';; \ | |
78 | -[dEDm]) skip_next=yes;; \ | |
79 | -[JT]) skip_next=yes;; \ | |
80 | esac; \ | |
81 | case $$flg in \ | |
82 | *$$target_option*) has_opt=yes; break;; \ | |
83 | esac; \ | |
84 | done; \ | |
85 | test $$has_opt = yes | |
86 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
87 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
88 | pkgdatadir = $(datadir)/@PACKAGE@ | |
89 | pkgincludedir = $(includedir)/@PACKAGE@ | |
90 | pkglibdir = $(libdir)/@PACKAGE@ | |
91 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
92 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
93 | install_sh_DATA = $(install_sh) -c -m 644 | |
94 | install_sh_PROGRAM = $(install_sh) -c | |
95 | install_sh_SCRIPT = $(install_sh) -c | |
96 | INSTALL_HEADER = $(INSTALL_DATA) | |
97 | transform = $(program_transform_name) | |
98 | NORMAL_INSTALL = : | |
99 | PRE_INSTALL = : | |
100 | POST_INSTALL = : | |
101 | NORMAL_UNINSTALL = : | |
102 | PRE_UNINSTALL = : | |
103 | POST_UNINSTALL = : | |
104 | build_triplet = @build@ | |
105 | host_triplet = @host@ | |
106 | subdir = tests/alibaba-cloud-x86 | |
107 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
108 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
109 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
110 | $(ACLOCAL_M4) | |
111 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
112 | mkinstalldirs = $(install_sh) -d | |
113 | CONFIG_HEADER = $(top_builddir)/config.h | |
114 | CONFIG_CLEAN_FILES = | |
115 | CONFIG_CLEAN_VPATH_FILES = | |
116 | AM_V_P = $(am__v_P_@AM_V@) | |
117 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
118 | am__v_P_0 = false | |
119 | am__v_P_1 = : | |
120 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
121 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
122 | am__v_GEN_0 = @echo " GEN " $@; | |
123 | am__v_GEN_1 = | |
124 | AM_V_at = $(am__v_at_@AM_V@) | |
125 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
126 | am__v_at_0 = @ | |
127 | am__v_at_1 = | |
128 | SOURCES = | |
129 | DIST_SOURCES = | |
130 | am__can_run_installinfo = \ | |
131 | case $$AM_UPDATE_INFO_DIR in \ | |
132 | n|no|NO) false;; \ | |
133 | *) (install-info --version) >/dev/null 2>&1;; \ | |
134 | esac | |
135 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
136 | am__tty_colors_dummy = \ | |
137 | mgn= red= grn= lgn= blu= brg= std=; \ | |
138 | am__color_tests=no | |
139 | am__tty_colors = { \ | |
140 | $(am__tty_colors_dummy); \ | |
141 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | |
142 | am__color_tests=no; \ | |
143 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | |
144 | am__color_tests=yes; \ | |
145 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | |
146 | am__color_tests=yes; \ | |
147 | fi; \ | |
148 | if test $$am__color_tests = yes; then \ | |
149 | red='[0;31m'; \ | |
150 | grn='[0;32m'; \ | |
151 | lgn='[1;32m'; \ | |
152 | blu='[1;34m'; \ | |
153 | mgn='[0;35m'; \ | |
154 | brg='[1m'; \ | |
155 | std='[m'; \ | |
156 | fi; \ | |
157 | } | |
158 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
159 | am__vpath_adj = case $$p in \ | |
160 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
161 | *) f=$$p;; \ | |
162 | esac; | |
163 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
164 | am__install_max = 40 | |
165 | am__nobase_strip_setup = \ | |
166 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
167 | am__nobase_strip = \ | |
168 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
169 | am__nobase_list = $(am__nobase_strip_setup); \ | |
170 | for p in $$list; do echo "$$p $$p"; done | \ | |
171 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
172 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
173 | if (++n[$$2] == $(am__install_max)) \ | |
174 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
175 | END { for (dir in files) print dir, files[dir] }' | |
176 | am__base_list = \ | |
177 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
178 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
179 | am__uninstall_files_from_dir = { \ | |
180 | test -z "$$files" \ | |
181 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
182 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
183 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
184 | } | |
185 | am__recheck_rx = ^[ ]*:recheck:[ ]* | |
186 | am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* | |
187 | am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* | |
188 | # A command that, given a newline-separated list of test names on the | |
189 | # standard input, print the name of the tests that are to be re-run | |
190 | # upon "make recheck". | |
191 | am__list_recheck_tests = $(AWK) '{ \ | |
192 | recheck = 1; \ | |
193 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
194 | { \ | |
195 | if (rc < 0) \ | |
196 | { \ | |
197 | if ((getline line2 < ($$0 ".log")) < 0) \ | |
198 | recheck = 0; \ | |
199 | break; \ | |
200 | } \ | |
201 | else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ | |
202 | { \ | |
203 | recheck = 0; \ | |
204 | break; \ | |
205 | } \ | |
206 | else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ | |
207 | { \ | |
208 | break; \ | |
209 | } \ | |
210 | }; \ | |
211 | if (recheck) \ | |
212 | print $$0; \ | |
213 | close ($$0 ".trs"); \ | |
214 | close ($$0 ".log"); \ | |
215 | }' | |
216 | # A command that, given a newline-separated list of test names on the | |
217 | # standard input, create the global log from their .trs and .log files. | |
218 | am__create_global_log = $(AWK) ' \ | |
219 | function fatal(msg) \ | |
220 | { \ | |
221 | print "fatal: making $@: " msg | "cat >&2"; \ | |
222 | exit 1; \ | |
223 | } \ | |
224 | function rst_section(header) \ | |
225 | { \ | |
226 | print header; \ | |
227 | len = length(header); \ | |
228 | for (i = 1; i <= len; i = i + 1) \ | |
229 | printf "="; \ | |
230 | printf "\n\n"; \ | |
231 | } \ | |
232 | { \ | |
233 | copy_in_global_log = 1; \ | |
234 | global_test_result = "RUN"; \ | |
235 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
236 | { \ | |
237 | if (rc < 0) \ | |
238 | fatal("failed to read from " $$0 ".trs"); \ | |
239 | if (line ~ /$(am__global_test_result_rx)/) \ | |
240 | { \ | |
241 | sub("$(am__global_test_result_rx)", "", line); \ | |
242 | sub("[ ]*$$", "", line); \ | |
243 | global_test_result = line; \ | |
244 | } \ | |
245 | else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ | |
246 | copy_in_global_log = 0; \ | |
247 | }; \ | |
248 | if (copy_in_global_log) \ | |
249 | { \ | |
250 | rst_section(global_test_result ": " $$0); \ | |
251 | while ((rc = (getline line < ($$0 ".log"))) != 0) \ | |
252 | { \ | |
253 | if (rc < 0) \ | |
254 | fatal("failed to read from " $$0 ".log"); \ | |
255 | print line; \ | |
256 | }; \ | |
257 | printf "\n"; \ | |
258 | }; \ | |
259 | close ($$0 ".trs"); \ | |
260 | close ($$0 ".log"); \ | |
261 | }' | |
262 | # Restructured Text title. | |
263 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | |
264 | # Solaris 10 'make', and several other traditional 'make' implementations, | |
265 | # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it | |
266 | # by disabling -e (using the XSI extension "set +e") if it's set. | |
267 | am__sh_e_setup = case $$- in *e*) set +e;; esac | |
268 | # Default flags passed to test drivers. | |
269 | am__common_driver_flags = \ | |
270 | --color-tests "$$am__color_tests" \ | |
271 | --enable-hard-errors "$$am__enable_hard_errors" \ | |
272 | --expect-failure "$$am__expect_failure" | |
273 | # To be inserted before the command running the test. Creates the | |
274 | # directory for the log if needed. Stores in $dir the directory | |
275 | # containing $f, in $tst the test, in $log the log. Executes the | |
276 | # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and | |
277 | # passes TESTS_ENVIRONMENT. Set up options for the wrapper that | |
278 | # will run the test scripts (or their associated LOG_COMPILER, if | |
279 | # thy have one). | |
280 | am__check_pre = \ | |
281 | $(am__sh_e_setup); \ | |
282 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | |
283 | $(am__tty_colors); \ | |
284 | srcdir=$(srcdir); export srcdir; \ | |
285 | case "$@" in \ | |
286 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | |
287 | *) am__odir=.;; \ | |
288 | esac; \ | |
289 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | |
290 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | |
291 | if test -f "./$$f"; then dir=./; \ | |
292 | elif test -f "$$f"; then dir=; \ | |
293 | else dir="$(srcdir)/"; fi; \ | |
294 | tst=$$dir$$f; log='$@'; \ | |
295 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | |
296 | am__enable_hard_errors=no; \ | |
297 | else \ | |
298 | am__enable_hard_errors=yes; \ | |
299 | fi; \ | |
300 | case " $(XFAIL_TESTS) " in \ | |
301 | *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ | |
302 | am__expect_failure=yes;; \ | |
303 | *) \ | |
304 | am__expect_failure=no;; \ | |
305 | esac; \ | |
306 | $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) | |
307 | # A shell command to get the names of the tests scripts with any registered | |
308 | # extension removed (i.e., equivalently, the names of the test logs, with | |
309 | # the '.log' extension removed). The result is saved in the shell variable | |
310 | # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, | |
311 | # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", | |
312 | # since that might cause problem with VPATH rewrites for suffix-less tests. | |
313 | # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. | |
314 | am__set_TESTS_bases = \ | |
315 | bases='$(TEST_LOGS)'; \ | |
316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | |
317 | bases=`echo $$bases` | |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
319 | RECHECK_LOGS = $(TEST_LOGS) | |
320 | AM_RECURSIVE_TARGETS = check recheck | |
321 | TEST_SUITE_LOG = test-suite.log | |
322 | TEST_EXTENSIONS = @EXEEXT@ .test | |
323 | LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
324 | LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) | |
325 | am__set_b = \ | |
326 | case '$@' in \ | |
327 | */*) \ | |
328 | case '$*' in \ | |
329 | */*) b='$*';; \ | |
330 | *) b=`echo '$@' | sed 's/\.log$$//'`; \ | |
331 | esac;; \ | |
332 | *) \ | |
333 | b='$*';; \ | |
334 | esac | |
335 | am__test_logs1 = $(TESTS:=.log) | |
336 | am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) | |
337 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | |
338 | TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
339 | TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ | |
340 | $(TEST_LOG_FLAGS) | |
341 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver | |
342 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
343 | ACLOCAL = @ACLOCAL@ | |
344 | AMTAR = @AMTAR@ | |
345 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
346 | AUTOCONF = @AUTOCONF@ | |
347 | AUTOHEADER = @AUTOHEADER@ | |
348 | AUTOMAKE = @AUTOMAKE@ | |
349 | AWK = @AWK@ | |
350 | CC = @CC@ | |
351 | CCDEPMODE = @CCDEPMODE@ | |
352 | CFLAGS = @CFLAGS@ | |
353 | CPP = @CPP@ | |
354 | CPPFLAGS = @CPPFLAGS@ | |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
357 | CYGPATH_W = @CYGPATH_W@ | |
358 | DEFS = @DEFS@ | |
359 | DEPDIR = @DEPDIR@ | |
360 | ECHO_C = @ECHO_C@ | |
361 | ECHO_N = @ECHO_N@ | |
362 | ECHO_T = @ECHO_T@ | |
363 | ETAGS = @ETAGS@ | |
364 | EXEEXT = @EXEEXT@ | |
365 | INSTALL = @INSTALL@ | |
366 | INSTALL_DATA = @INSTALL_DATA@ | |
367 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
368 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
369 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
370 | LDFLAGS = @LDFLAGS@ | |
371 | LIBOBJS = @LIBOBJS@ | |
372 | LIBS = @LIBS@ | |
373 | LTLIBOBJS = @LTLIBOBJS@ | |
374 | MAKEINFO = @MAKEINFO@ | |
375 | MKDIR_P = @MKDIR_P@ | |
376 | OBJEXT = @OBJEXT@ | |
377 | PACKAGE = @PACKAGE@ | |
378 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
379 | PACKAGE_NAME = @PACKAGE_NAME@ | |
380 | PACKAGE_STRING = @PACKAGE_STRING@ | |
381 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
382 | PACKAGE_URL = @PACKAGE_URL@ | |
383 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
384 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
385 | POD2MAN = @POD2MAN@ | |
386 | SET_MAKE = @SET_MAKE@ | |
387 | SHELL = @SHELL@ | |
388 | STRIP = @STRIP@ | |
389 | VERSION = @VERSION@ | |
390 | abs_builddir = @abs_builddir@ | |
391 | abs_srcdir = @abs_srcdir@ | |
392 | abs_top_builddir = @abs_top_builddir@ | |
393 | abs_top_srcdir = @abs_top_srcdir@ | |
394 | ac_ct_CC = @ac_ct_CC@ | |
395 | am__include = @am__include@ | |
396 | am__leading_dot = @am__leading_dot@ | |
397 | am__quote = @am__quote@ | |
398 | am__tar = @am__tar@ | |
399 | am__untar = @am__untar@ | |
400 | bindir = @bindir@ | |
401 | build = @build@ | |
402 | build_alias = @build_alias@ | |
403 | build_cpu = @build_cpu@ | |
404 | build_os = @build_os@ | |
405 | build_vendor = @build_vendor@ | |
406 | builddir = @builddir@ | |
407 | datadir = @datadir@ | |
408 | datarootdir = @datarootdir@ | |
409 | docdir = @docdir@ | |
410 | dvidir = @dvidir@ | |
411 | exec_prefix = @exec_prefix@ | |
412 | host = @host@ | |
413 | host_alias = @host_alias@ | |
414 | host_cpu = @host_cpu@ | |
415 | host_os = @host_os@ | |
416 | host_vendor = @host_vendor@ | |
417 | htmldir = @htmldir@ | |
418 | includedir = @includedir@ | |
419 | infodir = @infodir@ | |
420 | install_sh = @install_sh@ | |
421 | libdir = @libdir@ | |
422 | libexecdir = @libexecdir@ | |
423 | localedir = @localedir@ | |
424 | localstatedir = @localstatedir@ | |
425 | mandir = @mandir@ | |
426 | mkdir_p = @mkdir_p@ | |
427 | oldincludedir = @oldincludedir@ | |
428 | pdfdir = @pdfdir@ | |
429 | prefix = @prefix@ | |
430 | program_transform_name = @program_transform_name@ | |
431 | psdir = @psdir@ | |
432 | runstatedir = @runstatedir@ | |
433 | sbindir = @sbindir@ | |
434 | sharedstatedir = @sharedstatedir@ | |
435 | srcdir = @srcdir@ | |
436 | sysconfdir = @sysconfdir@ | |
437 | target_alias = @target_alias@ | |
438 | tests = @tests@ | |
439 | top_build_prefix = @top_build_prefix@ | |
440 | top_builddir = @top_builddir@ | |
441 | top_srcdir = @top_srcdir@ | |
442 | CLEANFILES = *~ | |
443 | TESTS = test.sh | |
444 | EXTRA_DIST = \ | |
445 | test.sh \ | |
446 | proc/cpuinfo \ | |
447 | proc/self/status \ | |
448 | sbin/dmidecode \ | |
449 | sbin/uname \ | |
450 | sbin/virt-what-cpuid-helper | |
451 | ||
452 | all: all-am | |
453 | ||
454 | .SUFFIXES: | |
455 | .SUFFIXES: .log .test .test$(EXEEXT) .trs | |
456 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
457 | @for dep in $?; do \ | |
458 | case '$(am__configure_deps)' in \ | |
459 | *$$dep*) \ | |
460 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |
461 | && { if test -f $@; then exit 0; else break; fi; }; \ | |
462 | exit 1;; \ | |
463 | esac; \ | |
464 | done; \ | |
465 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/alibaba-cloud-x86/Makefile'; \ | |
466 | $(am__cd) $(top_srcdir) && \ | |
467 | $(AUTOMAKE) --foreign tests/alibaba-cloud-x86/Makefile | |
468 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
469 | @case '$?' in \ | |
470 | *config.status*) \ | |
471 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | |
472 | *) \ | |
473 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
474 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
475 | esac; | |
476 | ||
477 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
478 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
479 | ||
480 | $(top_srcdir)/configure: $(am__configure_deps) | |
481 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
482 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
483 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
484 | $(am__aclocal_m4_deps): | |
485 | tags TAGS: | |
486 | ||
487 | ctags CTAGS: | |
488 | ||
489 | cscope cscopelist: | |
490 | ||
491 | ||
492 | # Recover from deleted '.trs' file; this should ensure that | |
493 | # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create | |
494 | # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells | |
495 | # to avoid problems with "make -n". | |
496 | .log.trs: | |
497 | rm -f $< $@ | |
498 | $(MAKE) $(AM_MAKEFLAGS) $< | |
499 | ||
500 | # Leading 'am--fnord' is there to ensure the list of targets does not | |
501 | # expand to empty, as could happen e.g. with make check TESTS=''. | |
502 | am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) | |
503 | am--force-recheck: | |
504 | @: | |
505 | ||
506 | $(TEST_SUITE_LOG): $(TEST_LOGS) | |
507 | @$(am__set_TESTS_bases); \ | |
508 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | |
509 | redo_bases=`for i in $$bases; do \ | |
510 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | |
511 | done`; \ | |
512 | if test -n "$$redo_bases"; then \ | |
513 | redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ | |
514 | redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ | |
515 | if $(am__make_dryrun); then :; else \ | |
516 | rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ | |
517 | fi; \ | |
518 | fi; \ | |
519 | if test -n "$$am__remaking_logs"; then \ | |
520 | echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ | |
521 | "recursion detected" >&2; \ | |
522 | elif test -n "$$redo_logs"; then \ | |
523 | am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ | |
524 | fi; \ | |
525 | if $(am__make_dryrun); then :; else \ | |
526 | st=0; \ | |
527 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | |
528 | for i in $$redo_bases; do \ | |
529 | test -f $$i.trs && test -r $$i.trs \ | |
530 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | |
531 | test -f $$i.log && test -r $$i.log \ | |
532 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | |
533 | done; \ | |
534 | test $$st -eq 0 || exit 1; \ | |
535 | fi | |
536 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | |
537 | ws='[ ]'; \ | |
538 | results=`for b in $$bases; do echo $$b.trs; done`; \ | |
539 | test -n "$$results" || results=/dev/null; \ | |
540 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | |
541 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | |
542 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | |
543 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | |
544 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | |
545 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | |
546 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | |
547 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | |
548 | success=true; \ | |
549 | else \ | |
550 | success=false; \ | |
551 | fi; \ | |
552 | br='==================='; br=$$br$$br$$br$$br; \ | |
553 | result_count () \ | |
554 | { \ | |
555 | if test x"$$1" = x"--maybe-color"; then \ | |
556 | maybe_colorize=yes; \ | |
557 | elif test x"$$1" = x"--no-color"; then \ | |
558 | maybe_colorize=no; \ | |
559 | else \ | |
560 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | |
561 | fi; \ | |
562 | shift; \ | |
563 | desc=$$1 count=$$2; \ | |
564 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | |
565 | color_start=$$3 color_end=$$std; \ | |
566 | else \ | |
567 | color_start= color_end=; \ | |
568 | fi; \ | |
569 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | |
570 | }; \ | |
571 | create_testsuite_report () \ | |
572 | { \ | |
573 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | |
574 | result_count $$1 "PASS: " $$pass "$$grn"; \ | |
575 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | |
576 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | |
577 | result_count $$1 "FAIL: " $$fail "$$red"; \ | |
578 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | |
579 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | |
580 | }; \ | |
581 | { \ | |
582 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | |
583 | $(am__rst_title); \ | |
584 | create_testsuite_report --no-color; \ | |
585 | echo; \ | |
586 | echo ".. contents:: :depth: 2"; \ | |
587 | echo; \ | |
588 | for b in $$bases; do echo $$b; done \ | |
589 | | $(am__create_global_log); \ | |
590 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | |
591 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | |
592 | if $$success; then \ | |
593 | col="$$grn"; \ | |
594 | else \ | |
595 | col="$$red"; \ | |
596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | |
597 | fi; \ | |
598 | echo "$${col}$$br$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
600 | echo "$${col}$$br$${std}"; \ | |
601 | create_testsuite_report --maybe-color; \ | |
602 | echo "$$col$$br$$std"; \ | |
603 | if $$success; then :; else \ | |
604 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | |
605 | if test -n "$(PACKAGE_BUGREPORT)"; then \ | |
606 | echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ | |
607 | fi; \ | |
608 | echo "$$col$$br$$std"; \ | |
609 | fi; \ | |
610 | $$success || exit 1 | |
611 | ||
612 | check-TESTS: | |
613 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | |
614 | @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list | |
615 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
616 | @set +e; $(am__set_TESTS_bases); \ | |
617 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
618 | trs_list=`for i in $$bases; do echo $$i.trs; done`; \ | |
619 | log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ | |
620 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | |
621 | exit $$?; | |
622 | recheck: all | |
623 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
624 | @set +e; $(am__set_TESTS_bases); \ | |
625 | bases=`for i in $$bases; do echo $$i; done \ | |
626 | | $(am__list_recheck_tests)` || exit 1; \ | |
627 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
628 | log_list=`echo $$log_list`; \ | |
629 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ | |
630 | am__force_recheck=am--force-recheck \ | |
631 | TEST_LOGS="$$log_list"; \ | |
632 | exit $$? | |
633 | test.sh.log: test.sh | |
634 | @p='test.sh'; \ | |
635 | b='test.sh'; \ | |
636 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
637 | --log-file $$b.log --trs-file $$b.trs \ | |
638 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
639 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
640 | .test.log: | |
641 | @p='$<'; \ | |
642 | $(am__set_b); \ | |
643 | $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
644 | --log-file $$b.log --trs-file $$b.trs \ | |
645 | $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
646 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
647 | @am__EXEEXT_TRUE@.test$(EXEEXT).log: | |
648 | @am__EXEEXT_TRUE@ @p='$<'; \ | |
649 | @am__EXEEXT_TRUE@ $(am__set_b); \ | |
650 | @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ | |
652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) | |
654 | distdir: $(BUILT_SOURCES) | |
655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
656 | ||
657 | distdir-am: $(DISTFILES) | |
658 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
659 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
660 | list='$(DISTFILES)'; \ | |
661 | dist_files=`for file in $$list; do echo $$file; done | \ | |
662 | sed -e "s|^$$srcdirstrip/||;t" \ | |
663 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
664 | case $$dist_files in \ | |
665 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
666 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
667 | sort -u` ;; \ | |
668 | esac; \ | |
669 | for file in $$dist_files; do \ | |
670 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
671 | if test -d $$d/$$file; then \ | |
672 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
673 | if test -d "$(distdir)/$$file"; then \ | |
674 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
675 | fi; \ | |
676 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
677 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
678 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
679 | fi; \ | |
680 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
681 | else \ | |
682 | test -f "$(distdir)/$$file" \ | |
683 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
684 | || exit 1; \ | |
685 | fi; \ | |
686 | done | |
687 | check-am: all-am | |
688 | $(MAKE) $(AM_MAKEFLAGS) check-TESTS | |
689 | check: check-am | |
690 | all-am: Makefile | |
691 | installdirs: | |
692 | install: install-am | |
693 | install-exec: install-exec-am | |
694 | install-data: install-data-am | |
695 | uninstall: uninstall-am | |
696 | ||
697 | install-am: all-am | |
698 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
699 | ||
700 | installcheck: installcheck-am | |
701 | install-strip: | |
702 | if test -z '$(STRIP)'; then \ | |
703 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
704 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
705 | install; \ | |
706 | else \ | |
707 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
708 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
709 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
710 | fi | |
711 | mostlyclean-generic: | |
712 | -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) | |
713 | -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) | |
714 | -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
715 | ||
716 | clean-generic: | |
717 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
718 | ||
719 | distclean-generic: | |
720 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
721 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
722 | ||
723 | maintainer-clean-generic: | |
724 | @echo "This command is intended for maintainers to use" | |
725 | @echo "it deletes files that may require special tools to rebuild." | |
726 | clean: clean-am | |
727 | ||
728 | clean-am: clean-generic mostlyclean-am | |
729 | ||
730 | distclean: distclean-am | |
731 | -rm -f Makefile | |
732 | distclean-am: clean-am distclean-generic | |
733 | ||
734 | dvi: dvi-am | |
735 | ||
736 | dvi-am: | |
737 | ||
738 | html: html-am | |
739 | ||
740 | html-am: | |
741 | ||
742 | info: info-am | |
743 | ||
744 | info-am: | |
745 | ||
746 | install-data-am: | |
747 | ||
748 | install-dvi: install-dvi-am | |
749 | ||
750 | install-dvi-am: | |
751 | ||
752 | install-exec-am: | |
753 | ||
754 | install-html: install-html-am | |
755 | ||
756 | install-html-am: | |
757 | ||
758 | install-info: install-info-am | |
759 | ||
760 | install-info-am: | |
761 | ||
762 | install-man: | |
763 | ||
764 | install-pdf: install-pdf-am | |
765 | ||
766 | install-pdf-am: | |
767 | ||
768 | install-ps: install-ps-am | |
769 | ||
770 | install-ps-am: | |
771 | ||
772 | installcheck-am: | |
773 | ||
774 | maintainer-clean: maintainer-clean-am | |
775 | -rm -f Makefile | |
776 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
777 | ||
778 | mostlyclean: mostlyclean-am | |
779 | ||
780 | mostlyclean-am: mostlyclean-generic | |
781 | ||
782 | pdf: pdf-am | |
783 | ||
784 | pdf-am: | |
785 | ||
786 | ps: ps-am | |
787 | ||
788 | ps-am: | |
789 | ||
790 | uninstall-am: | |
791 | ||
792 | .MAKE: check-am install-am install-strip | |
793 | ||
794 | .PHONY: all all-am check check-TESTS check-am clean clean-generic \ | |
795 | cscopelist-am ctags-am distclean distclean-generic distdir dvi \ | |
796 | dvi-am html html-am info info-am install install-am \ | |
797 | install-data install-data-am install-dvi install-dvi-am \ | |
798 | install-exec install-exec-am install-html install-html-am \ | |
799 | install-info install-info-am install-man install-pdf \ | |
800 | install-pdf-am install-ps install-ps-am install-strip \ | |
801 | installcheck installcheck-am installdirs maintainer-clean \ | |
802 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
803 | pdf-am ps ps-am recheck tags-am uninstall uninstall-am | |
804 | ||
805 | .PRECIOUS: Makefile | |
806 | ||
807 | ||
808 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
809 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
810 | .NOEXPORT: |
0 | processor : 0 | |
1 | vendor_id : GenuineIntel | |
2 | cpu family : 6 | |
3 | model : 85 | |
4 | model name : Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz | |
5 | stepping : 7 | |
6 | microcode : 0x1 | |
7 | cpu MHz : 2500.002 | |
8 | cache size : 36608 KB | |
9 | physical id : 0 | |
10 | siblings : 2 | |
11 | core id : 0 | |
12 | cpu cores : 1 | |
13 | apicid : 0 | |
14 | initial apicid : 0 | |
15 | fpu : yes | |
16 | fpu_exception : yes | |
17 | cpuid level : 22 | |
18 | wp : yes | |
19 | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni | |
20 | bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit | |
21 | bogomips : 5000.00 | |
22 | clflush size : 64 | |
23 | cache_alignment : 64 | |
24 | address sizes : 46 bits physical, 48 bits virtual | |
25 | power management: | |
26 | ||
27 | processor : 1 | |
28 | vendor_id : GenuineIntel | |
29 | cpu family : 6 | |
30 | model : 85 | |
31 | model name : Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz | |
32 | stepping : 7 | |
33 | microcode : 0x1 | |
34 | cpu MHz : 2500.002 | |
35 | cache size : 36608 KB | |
36 | physical id : 0 | |
37 | siblings : 2 | |
38 | core id : 0 | |
39 | cpu cores : 1 | |
40 | apicid : 1 | |
41 | initial apicid : 1 | |
42 | fpu : yes | |
43 | fpu_exception : yes | |
44 | cpuid level : 22 | |
45 | wp : yes | |
46 | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni | |
47 | bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit | |
48 | bogomips : 5000.00 | |
49 | clflush size : 64 | |
50 | cache_alignment : 64 | |
51 | address sizes : 46 bits physical, 48 bits virtual | |
52 | power management:⏎ |
0 | Name: cat | |
1 | Umask: 0022 | |
2 | State: R (running) | |
3 | Tgid: 25933 | |
4 | Ngid: 0 | |
5 | Pid: 25933 | |
6 | PPid: 25932 | |
7 | TracerPid: 0 | |
8 | Uid: 0 0 0 0 | |
9 | Gid: 0 0 0 0 | |
10 | FDSize: 64 | |
11 | Groups: 0 | |
12 | NStgid: 25933 | |
13 | NSpid: 25933 | |
14 | NSpgid: 25932 | |
15 | NSsid: 25039 | |
16 | VmPeak: 108084 kB | |
17 | VmSize: 108084 kB | |
18 | VmLck: 0 kB | |
19 | VmPin: 0 kB | |
20 | VmHWM: 748 kB | |
21 | VmRSS: 748 kB | |
22 | RssAnon: 76 kB | |
23 | RssFile: 672 kB | |
24 | RssShmem: 0 kB | |
25 | VmData: 188 kB | |
26 | VmStk: 132 kB | |
27 | VmExe: 44 kB | |
28 | VmLib: 1952 kB | |
29 | VmPTE: 68 kB | |
30 | VmSwap: 0 kB | |
31 | HugetlbPages: 0 kB | |
32 | CoreDumping: 0 | |
33 | Threads: 1 | |
34 | SigQ: 0/30350 | |
35 | SigPnd: 0000000000000000 | |
36 | ShdPnd: 0000000000000000 | |
37 | SigBlk: 0000000000000000 | |
38 | SigIgn: 0000000000000000 | |
39 | SigCgt: 0000000000000000 | |
40 | CapInh: 0000000000000000 | |
41 | CapPrm: 0000003fffffffff | |
42 | CapEff: 0000003fffffffff | |
43 | CapBnd: 0000003fffffffff | |
44 | CapAmb: 0000000000000000 | |
45 | NoNewPrivs: 0 | |
46 | Seccomp: 0 | |
47 | Speculation_Store_Bypass: vulnerable | |
48 | Cpus_allowed: 3 | |
49 | Cpus_allowed_list: 0-1 | |
50 | Mems_allowed: 00000000,00000001 | |
51 | Mems_allowed_list: 0 | |
52 | voluntary_ctxt_switches: 0 | |
53 | nonvoluntary_ctxt_switches: 2 |
0 | #!/bin/sh - | |
1 | cat <<'EOF' | |
2 | # dmidecode 3.2 | |
3 | Getting SMBIOS data from sysfs. | |
4 | SMBIOS 2.8 present. | |
5 | 10 structures occupying 462 bytes. | |
6 | Table at 0x000F5840. | |
7 | ||
8 | Handle 0x0000, DMI type 0, 24 bytes | |
9 | BIOS Information | |
10 | Vendor: SeaBIOS | |
11 | Version: 8c24b4c | |
12 | Release Date: 04/01/2014 | |
13 | Address: 0xE8000 | |
14 | Runtime Size: 96 kB | |
15 | ROM Size: 64 kB | |
16 | Characteristics: | |
17 | BIOS characteristics not supported | |
18 | Targeted content distribution is supported | |
19 | BIOS Revision: 0.0 | |
20 | ||
21 | Handle 0x0100, DMI type 1, 27 bytes | |
22 | System Information | |
23 | Manufacturer: Alibaba Cloud | |
24 | Product Name: Alibaba Cloud ECS | |
25 | Version: pc-i440fx-2.1 | |
26 | Serial Number: 20fb1c97-feb0-4c45-b8b9-bb06feeba0b5 | |
27 | UUID: 20fb1c97-feb0-4c45-b8b9-bb06feeba0b5 | |
28 | Wake-up Type: Power Switch | |
29 | SKU Number: Not Specified | |
30 | Family: Not Specified | |
31 | ||
32 | Handle 0x0300, DMI type 3, 21 bytes | |
33 | Chassis Information | |
34 | Manufacturer: Alibaba Cloud | |
35 | Type: Other | |
36 | Lock: Not Present | |
37 | Version: pc-i440fx-2.1 | |
38 | Serial Number: Not Specified | |
39 | Asset Tag: Not Specified | |
40 | Boot-up State: Safe | |
41 | Power Supply State: Safe | |
42 | Thermal State: Safe | |
43 | Security Status: Unknown | |
44 | OEM Information: 0x00000000 | |
45 | Height: Unspecified | |
46 | Number Of Power Cords: Unspecified | |
47 | Contained Elements: 0 | |
48 | ||
49 | Handle 0x0400, DMI type 4, 42 bytes | |
50 | Processor Information | |
51 | Socket Designation: CPU 0 | |
52 | Type: Central Processor | |
53 | Family: Other | |
54 | Manufacturer: Alibaba Cloud | |
55 | ID: 57 06 05 00 FF FB 8B 0F | |
56 | Version: pc-i440fx-2.1 | |
57 | Voltage: Unknown | |
58 | External Clock: Unknown | |
59 | Max Speed: Unknown | |
60 | Current Speed: Unknown | |
61 | Status: Populated, Enabled | |
62 | Upgrade: Other | |
63 | L1 Cache Handle: Not Provided | |
64 | L2 Cache Handle: Not Provided | |
65 | L3 Cache Handle: Not Provided | |
66 | Serial Number: Not Specified | |
67 | Asset Tag: Not Specified | |
68 | Part Number: Not Specified | |
69 | Core Count: 1 | |
70 | Core Enabled: 1 | |
71 | Thread Count: 2 | |
72 | Characteristics: None | |
73 | ||
74 | Handle 0x1000, DMI type 16, 23 bytes | |
75 | Physical Memory Array | |
76 | Location: Other | |
77 | Use: System Memory | |
78 | Error Correction Type: Multi-bit ECC | |
79 | Maximum Capacity: 8 GB | |
80 | Error Information Handle: Not Provided | |
81 | Number Of Devices: 1 | |
82 | ||
83 | Handle 0x1100, DMI type 17, 40 bytes | |
84 | Memory Device | |
85 | Array Handle: 0x1000 | |
86 | Error Information Handle: Not Provided | |
87 | Total Width: Unknown | |
88 | Data Width: Unknown | |
89 | Size: 8192 MB | |
90 | Form Factor: DIMM | |
91 | Set: None | |
92 | Locator: DIMM 0 | |
93 | Bank Locator: Not Specified | |
94 | Type: RAM | |
95 | Type Detail: Other | |
96 | Speed: Unknown | |
97 | Manufacturer: Alibaba Cloud | |
98 | Serial Number: Not Specified | |
99 | Asset Tag: Not Specified | |
100 | Part Number: Not Specified | |
101 | Rank: Unknown | |
102 | Configured Memory Speed: Unknown | |
103 | Minimum Voltage: Unknown | |
104 | Maximum Voltage: Unknown | |
105 | Configured Voltage: Unknown | |
106 | ||
107 | Handle 0x1300, DMI type 19, 31 bytes | |
108 | Memory Array Mapped Address | |
109 | Starting Address: 0x00000000000 | |
110 | Ending Address: 0x000BFFFFFFF | |
111 | Range Size: 3 GB | |
112 | Physical Array Handle: 0x1000 | |
113 | Partition Width: 1 | |
114 | ||
115 | Handle 0x1301, DMI type 19, 31 bytes | |
116 | Memory Array Mapped Address | |
117 | Starting Address: 0x00100000000 | |
118 | Ending Address: 0x0023FFFFFFF | |
119 | Range Size: 5 GB | |
120 | Physical Array Handle: 0x1000 | |
121 | Partition Width: 1 | |
122 | ||
123 | Handle 0x2000, DMI type 32, 11 bytes | |
124 | System Boot Information | |
125 | Status: No errors detected | |
126 | ||
127 | Handle 0x7F00, DMI type 127, 4 bytes | |
128 | End Of Table | |
129 | ||
130 | EOF |
0 | # Test for Alibaba Cloud | |
1 | # Copyright (C) 2018 Red Hat Inc. | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" | |
18 | expected="alibaba_cloud | |
19 | kvm" | |
20 | ||
21 | if [ "$output" != "$expected" ]; then | |
22 | echo "$0: test failed because output did not match expected" | |
23 | echo "Expected output was:" | |
24 | echo "----------------------------------------" | |
25 | echo "$expected" | |
26 | echo "----------------------------------------" | |
27 | echo "But the actual output of the program was:" | |
28 | echo "----------------------------------------" | |
29 | echo "$output" | |
30 | echo "----------------------------------------" | |
31 | exit 1 | |
32 | fi |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
590 | 595 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
591 | 596 | fi; \ |
592 | 597 | echo "$${col}$$br$${std}"; \ |
593 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
598 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | 600 | create_testsuite_report --maybe-color; \ |
596 | 601 | echo "$$col$$br$$std"; \ |
645 | 650 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
646 | 651 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
647 | 652 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
648 | ||
649 | 653 | distdir: $(BUILT_SOURCES) |
650 | 654 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
651 | 655 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
594 | 599 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
595 | 600 | fi; \ |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
602 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
598 | 603 | echo "$${col}$$br$${std}"; \ |
599 | 604 | create_testsuite_report --maybe-color; \ |
600 | 605 | echo "$$col$$br$$std"; \ |
649 | 654 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
650 | 655 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
651 | 656 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
652 | ||
653 | 657 | distdir: $(BUILT_SOURCES) |
654 | 658 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
655 | 659 |
0 | # Makefile for virt-what | |
1 | # Copyright (C) 2008-2011 Red Hat Inc. | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | CLEANFILES = *~ | |
18 | ||
19 | TESTS = test.sh | |
20 | ||
21 | EXTRA_DIST = \ | |
22 | test.sh \ | |
23 | proc/cpuinfo \ | |
24 | proc/device-tree/hypervisor/compatible \ | |
25 | proc/device-tree/hypervisor/name \ | |
26 | proc/self/status \ | |
27 | sbin/dmidecode \ | |
28 | sbin/uname \ | |
29 | sbin/virt-what-cpuid-helper |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | # Makefile for virt-what | |
17 | # Copyright (C) 2008-2011 Red Hat Inc. | |
18 | # | |
19 | # This program is free software; you can redistribute it and/or modify | |
20 | # it under the terms of the GNU General Public License as published by | |
21 | # the Free Software Foundation; either version 2 of the License, or | |
22 | # (at your option) any later version. | |
23 | # | |
24 | # This program is distributed in the hope that it will be useful, | |
25 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 | # GNU General Public License for more details. | |
28 | # | |
29 | # You should have received a copy of the GNU General Public License | |
30 | # along with this program; if not, write to the Free Software | |
31 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
32 | VPATH = @srcdir@ | |
33 | am__is_gnu_make = { \ | |
34 | if test -z '$(MAKELEVEL)'; then \ | |
35 | false; \ | |
36 | elif test -n '$(MAKE_HOST)'; then \ | |
37 | true; \ | |
38 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
39 | true; \ | |
40 | else \ | |
41 | false; \ | |
42 | fi; \ | |
43 | } | |
44 | am__make_running_with_option = \ | |
45 | case $${target_option-} in \ | |
46 | ?) ;; \ | |
47 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
48 | "target option '$${target_option-}' specified" >&2; \ | |
49 | exit 1;; \ | |
50 | esac; \ | |
51 | has_opt=no; \ | |
52 | sane_makeflags=$$MAKEFLAGS; \ | |
53 | if $(am__is_gnu_make); then \ | |
54 | sane_makeflags=$$MFLAGS; \ | |
55 | else \ | |
56 | case $$MAKEFLAGS in \ | |
57 | *\\[\ \ ]*) \ | |
58 | bs=\\; \ | |
59 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
60 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
61 | esac; \ | |
62 | fi; \ | |
63 | skip_next=no; \ | |
64 | strip_trailopt () \ | |
65 | { \ | |
66 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
67 | }; \ | |
68 | for flg in $$sane_makeflags; do \ | |
69 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
70 | case $$flg in \ | |
71 | *=*|--*) continue;; \ | |
72 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
73 | -*I?*) strip_trailopt 'I';; \ | |
74 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
75 | -*O?*) strip_trailopt 'O';; \ | |
76 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
77 | -*l?*) strip_trailopt 'l';; \ | |
78 | -[dEDm]) skip_next=yes;; \ | |
79 | -[JT]) skip_next=yes;; \ | |
80 | esac; \ | |
81 | case $$flg in \ | |
82 | *$$target_option*) has_opt=yes; break;; \ | |
83 | esac; \ | |
84 | done; \ | |
85 | test $$has_opt = yes | |
86 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
87 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
88 | pkgdatadir = $(datadir)/@PACKAGE@ | |
89 | pkgincludedir = $(includedir)/@PACKAGE@ | |
90 | pkglibdir = $(libdir)/@PACKAGE@ | |
91 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
92 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
93 | install_sh_DATA = $(install_sh) -c -m 644 | |
94 | install_sh_PROGRAM = $(install_sh) -c | |
95 | install_sh_SCRIPT = $(install_sh) -c | |
96 | INSTALL_HEADER = $(INSTALL_DATA) | |
97 | transform = $(program_transform_name) | |
98 | NORMAL_INSTALL = : | |
99 | PRE_INSTALL = : | |
100 | POST_INSTALL = : | |
101 | NORMAL_UNINSTALL = : | |
102 | PRE_UNINSTALL = : | |
103 | POST_UNINSTALL = : | |
104 | build_triplet = @build@ | |
105 | host_triplet = @host@ | |
106 | subdir = tests/esx-arm | |
107 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
108 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
109 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
110 | $(ACLOCAL_M4) | |
111 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
112 | mkinstalldirs = $(install_sh) -d | |
113 | CONFIG_HEADER = $(top_builddir)/config.h | |
114 | CONFIG_CLEAN_FILES = | |
115 | CONFIG_CLEAN_VPATH_FILES = | |
116 | AM_V_P = $(am__v_P_@AM_V@) | |
117 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
118 | am__v_P_0 = false | |
119 | am__v_P_1 = : | |
120 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
121 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
122 | am__v_GEN_0 = @echo " GEN " $@; | |
123 | am__v_GEN_1 = | |
124 | AM_V_at = $(am__v_at_@AM_V@) | |
125 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
126 | am__v_at_0 = @ | |
127 | am__v_at_1 = | |
128 | SOURCES = | |
129 | DIST_SOURCES = | |
130 | am__can_run_installinfo = \ | |
131 | case $$AM_UPDATE_INFO_DIR in \ | |
132 | n|no|NO) false;; \ | |
133 | *) (install-info --version) >/dev/null 2>&1;; \ | |
134 | esac | |
135 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
136 | am__tty_colors_dummy = \ | |
137 | mgn= red= grn= lgn= blu= brg= std=; \ | |
138 | am__color_tests=no | |
139 | am__tty_colors = { \ | |
140 | $(am__tty_colors_dummy); \ | |
141 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | |
142 | am__color_tests=no; \ | |
143 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | |
144 | am__color_tests=yes; \ | |
145 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | |
146 | am__color_tests=yes; \ | |
147 | fi; \ | |
148 | if test $$am__color_tests = yes; then \ | |
149 | red='[0;31m'; \ | |
150 | grn='[0;32m'; \ | |
151 | lgn='[1;32m'; \ | |
152 | blu='[1;34m'; \ | |
153 | mgn='[0;35m'; \ | |
154 | brg='[1m'; \ | |
155 | std='[m'; \ | |
156 | fi; \ | |
157 | } | |
158 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
159 | am__vpath_adj = case $$p in \ | |
160 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
161 | *) f=$$p;; \ | |
162 | esac; | |
163 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
164 | am__install_max = 40 | |
165 | am__nobase_strip_setup = \ | |
166 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
167 | am__nobase_strip = \ | |
168 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
169 | am__nobase_list = $(am__nobase_strip_setup); \ | |
170 | for p in $$list; do echo "$$p $$p"; done | \ | |
171 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
172 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
173 | if (++n[$$2] == $(am__install_max)) \ | |
174 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
175 | END { for (dir in files) print dir, files[dir] }' | |
176 | am__base_list = \ | |
177 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
178 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
179 | am__uninstall_files_from_dir = { \ | |
180 | test -z "$$files" \ | |
181 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
182 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
183 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
184 | } | |
185 | am__recheck_rx = ^[ ]*:recheck:[ ]* | |
186 | am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* | |
187 | am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* | |
188 | # A command that, given a newline-separated list of test names on the | |
189 | # standard input, print the name of the tests that are to be re-run | |
190 | # upon "make recheck". | |
191 | am__list_recheck_tests = $(AWK) '{ \ | |
192 | recheck = 1; \ | |
193 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
194 | { \ | |
195 | if (rc < 0) \ | |
196 | { \ | |
197 | if ((getline line2 < ($$0 ".log")) < 0) \ | |
198 | recheck = 0; \ | |
199 | break; \ | |
200 | } \ | |
201 | else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ | |
202 | { \ | |
203 | recheck = 0; \ | |
204 | break; \ | |
205 | } \ | |
206 | else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ | |
207 | { \ | |
208 | break; \ | |
209 | } \ | |
210 | }; \ | |
211 | if (recheck) \ | |
212 | print $$0; \ | |
213 | close ($$0 ".trs"); \ | |
214 | close ($$0 ".log"); \ | |
215 | }' | |
216 | # A command that, given a newline-separated list of test names on the | |
217 | # standard input, create the global log from their .trs and .log files. | |
218 | am__create_global_log = $(AWK) ' \ | |
219 | function fatal(msg) \ | |
220 | { \ | |
221 | print "fatal: making $@: " msg | "cat >&2"; \ | |
222 | exit 1; \ | |
223 | } \ | |
224 | function rst_section(header) \ | |
225 | { \ | |
226 | print header; \ | |
227 | len = length(header); \ | |
228 | for (i = 1; i <= len; i = i + 1) \ | |
229 | printf "="; \ | |
230 | printf "\n\n"; \ | |
231 | } \ | |
232 | { \ | |
233 | copy_in_global_log = 1; \ | |
234 | global_test_result = "RUN"; \ | |
235 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
236 | { \ | |
237 | if (rc < 0) \ | |
238 | fatal("failed to read from " $$0 ".trs"); \ | |
239 | if (line ~ /$(am__global_test_result_rx)/) \ | |
240 | { \ | |
241 | sub("$(am__global_test_result_rx)", "", line); \ | |
242 | sub("[ ]*$$", "", line); \ | |
243 | global_test_result = line; \ | |
244 | } \ | |
245 | else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ | |
246 | copy_in_global_log = 0; \ | |
247 | }; \ | |
248 | if (copy_in_global_log) \ | |
249 | { \ | |
250 | rst_section(global_test_result ": " $$0); \ | |
251 | while ((rc = (getline line < ($$0 ".log"))) != 0) \ | |
252 | { \ | |
253 | if (rc < 0) \ | |
254 | fatal("failed to read from " $$0 ".log"); \ | |
255 | print line; \ | |
256 | }; \ | |
257 | printf "\n"; \ | |
258 | }; \ | |
259 | close ($$0 ".trs"); \ | |
260 | close ($$0 ".log"); \ | |
261 | }' | |
262 | # Restructured Text title. | |
263 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | |
264 | # Solaris 10 'make', and several other traditional 'make' implementations, | |
265 | # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it | |
266 | # by disabling -e (using the XSI extension "set +e") if it's set. | |
267 | am__sh_e_setup = case $$- in *e*) set +e;; esac | |
268 | # Default flags passed to test drivers. | |
269 | am__common_driver_flags = \ | |
270 | --color-tests "$$am__color_tests" \ | |
271 | --enable-hard-errors "$$am__enable_hard_errors" \ | |
272 | --expect-failure "$$am__expect_failure" | |
273 | # To be inserted before the command running the test. Creates the | |
274 | # directory for the log if needed. Stores in $dir the directory | |
275 | # containing $f, in $tst the test, in $log the log. Executes the | |
276 | # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and | |
277 | # passes TESTS_ENVIRONMENT. Set up options for the wrapper that | |
278 | # will run the test scripts (or their associated LOG_COMPILER, if | |
279 | # thy have one). | |
280 | am__check_pre = \ | |
281 | $(am__sh_e_setup); \ | |
282 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | |
283 | $(am__tty_colors); \ | |
284 | srcdir=$(srcdir); export srcdir; \ | |
285 | case "$@" in \ | |
286 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | |
287 | *) am__odir=.;; \ | |
288 | esac; \ | |
289 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | |
290 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | |
291 | if test -f "./$$f"; then dir=./; \ | |
292 | elif test -f "$$f"; then dir=; \ | |
293 | else dir="$(srcdir)/"; fi; \ | |
294 | tst=$$dir$$f; log='$@'; \ | |
295 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | |
296 | am__enable_hard_errors=no; \ | |
297 | else \ | |
298 | am__enable_hard_errors=yes; \ | |
299 | fi; \ | |
300 | case " $(XFAIL_TESTS) " in \ | |
301 | *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ | |
302 | am__expect_failure=yes;; \ | |
303 | *) \ | |
304 | am__expect_failure=no;; \ | |
305 | esac; \ | |
306 | $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) | |
307 | # A shell command to get the names of the tests scripts with any registered | |
308 | # extension removed (i.e., equivalently, the names of the test logs, with | |
309 | # the '.log' extension removed). The result is saved in the shell variable | |
310 | # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, | |
311 | # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", | |
312 | # since that might cause problem with VPATH rewrites for suffix-less tests. | |
313 | # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. | |
314 | am__set_TESTS_bases = \ | |
315 | bases='$(TEST_LOGS)'; \ | |
316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | |
317 | bases=`echo $$bases` | |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
319 | RECHECK_LOGS = $(TEST_LOGS) | |
320 | AM_RECURSIVE_TARGETS = check recheck | |
321 | TEST_SUITE_LOG = test-suite.log | |
322 | TEST_EXTENSIONS = @EXEEXT@ .test | |
323 | LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
324 | LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) | |
325 | am__set_b = \ | |
326 | case '$@' in \ | |
327 | */*) \ | |
328 | case '$*' in \ | |
329 | */*) b='$*';; \ | |
330 | *) b=`echo '$@' | sed 's/\.log$$//'`; \ | |
331 | esac;; \ | |
332 | *) \ | |
333 | b='$*';; \ | |
334 | esac | |
335 | am__test_logs1 = $(TESTS:=.log) | |
336 | am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) | |
337 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | |
338 | TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
339 | TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ | |
340 | $(TEST_LOG_FLAGS) | |
341 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver | |
342 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
343 | ACLOCAL = @ACLOCAL@ | |
344 | AMTAR = @AMTAR@ | |
345 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
346 | AUTOCONF = @AUTOCONF@ | |
347 | AUTOHEADER = @AUTOHEADER@ | |
348 | AUTOMAKE = @AUTOMAKE@ | |
349 | AWK = @AWK@ | |
350 | CC = @CC@ | |
351 | CCDEPMODE = @CCDEPMODE@ | |
352 | CFLAGS = @CFLAGS@ | |
353 | CPP = @CPP@ | |
354 | CPPFLAGS = @CPPFLAGS@ | |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
357 | CYGPATH_W = @CYGPATH_W@ | |
358 | DEFS = @DEFS@ | |
359 | DEPDIR = @DEPDIR@ | |
360 | ECHO_C = @ECHO_C@ | |
361 | ECHO_N = @ECHO_N@ | |
362 | ECHO_T = @ECHO_T@ | |
363 | ETAGS = @ETAGS@ | |
364 | EXEEXT = @EXEEXT@ | |
365 | INSTALL = @INSTALL@ | |
366 | INSTALL_DATA = @INSTALL_DATA@ | |
367 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
368 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
369 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
370 | LDFLAGS = @LDFLAGS@ | |
371 | LIBOBJS = @LIBOBJS@ | |
372 | LIBS = @LIBS@ | |
373 | LTLIBOBJS = @LTLIBOBJS@ | |
374 | MAKEINFO = @MAKEINFO@ | |
375 | MKDIR_P = @MKDIR_P@ | |
376 | OBJEXT = @OBJEXT@ | |
377 | PACKAGE = @PACKAGE@ | |
378 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
379 | PACKAGE_NAME = @PACKAGE_NAME@ | |
380 | PACKAGE_STRING = @PACKAGE_STRING@ | |
381 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
382 | PACKAGE_URL = @PACKAGE_URL@ | |
383 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
384 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
385 | POD2MAN = @POD2MAN@ | |
386 | SET_MAKE = @SET_MAKE@ | |
387 | SHELL = @SHELL@ | |
388 | STRIP = @STRIP@ | |
389 | VERSION = @VERSION@ | |
390 | abs_builddir = @abs_builddir@ | |
391 | abs_srcdir = @abs_srcdir@ | |
392 | abs_top_builddir = @abs_top_builddir@ | |
393 | abs_top_srcdir = @abs_top_srcdir@ | |
394 | ac_ct_CC = @ac_ct_CC@ | |
395 | am__include = @am__include@ | |
396 | am__leading_dot = @am__leading_dot@ | |
397 | am__quote = @am__quote@ | |
398 | am__tar = @am__tar@ | |
399 | am__untar = @am__untar@ | |
400 | bindir = @bindir@ | |
401 | build = @build@ | |
402 | build_alias = @build_alias@ | |
403 | build_cpu = @build_cpu@ | |
404 | build_os = @build_os@ | |
405 | build_vendor = @build_vendor@ | |
406 | builddir = @builddir@ | |
407 | datadir = @datadir@ | |
408 | datarootdir = @datarootdir@ | |
409 | docdir = @docdir@ | |
410 | dvidir = @dvidir@ | |
411 | exec_prefix = @exec_prefix@ | |
412 | host = @host@ | |
413 | host_alias = @host_alias@ | |
414 | host_cpu = @host_cpu@ | |
415 | host_os = @host_os@ | |
416 | host_vendor = @host_vendor@ | |
417 | htmldir = @htmldir@ | |
418 | includedir = @includedir@ | |
419 | infodir = @infodir@ | |
420 | install_sh = @install_sh@ | |
421 | libdir = @libdir@ | |
422 | libexecdir = @libexecdir@ | |
423 | localedir = @localedir@ | |
424 | localstatedir = @localstatedir@ | |
425 | mandir = @mandir@ | |
426 | mkdir_p = @mkdir_p@ | |
427 | oldincludedir = @oldincludedir@ | |
428 | pdfdir = @pdfdir@ | |
429 | prefix = @prefix@ | |
430 | program_transform_name = @program_transform_name@ | |
431 | psdir = @psdir@ | |
432 | runstatedir = @runstatedir@ | |
433 | sbindir = @sbindir@ | |
434 | sharedstatedir = @sharedstatedir@ | |
435 | srcdir = @srcdir@ | |
436 | sysconfdir = @sysconfdir@ | |
437 | target_alias = @target_alias@ | |
438 | tests = @tests@ | |
439 | top_build_prefix = @top_build_prefix@ | |
440 | top_builddir = @top_builddir@ | |
441 | top_srcdir = @top_srcdir@ | |
442 | CLEANFILES = *~ | |
443 | TESTS = test.sh | |
444 | EXTRA_DIST = \ | |
445 | test.sh \ | |
446 | proc/cpuinfo \ | |
447 | proc/device-tree/hypervisor/compatible \ | |
448 | proc/device-tree/hypervisor/name \ | |
449 | proc/self/status \ | |
450 | sbin/dmidecode \ | |
451 | sbin/uname \ | |
452 | sbin/virt-what-cpuid-helper | |
453 | ||
454 | all: all-am | |
455 | ||
456 | .SUFFIXES: | |
457 | .SUFFIXES: .log .test .test$(EXEEXT) .trs | |
458 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
459 | @for dep in $?; do \ | |
460 | case '$(am__configure_deps)' in \ | |
461 | *$$dep*) \ | |
462 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |
463 | && { if test -f $@; then exit 0; else break; fi; }; \ | |
464 | exit 1;; \ | |
465 | esac; \ | |
466 | done; \ | |
467 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/esx-arm/Makefile'; \ | |
468 | $(am__cd) $(top_srcdir) && \ | |
469 | $(AUTOMAKE) --foreign tests/esx-arm/Makefile | |
470 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
471 | @case '$?' in \ | |
472 | *config.status*) \ | |
473 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | |
474 | *) \ | |
475 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
476 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
477 | esac; | |
478 | ||
479 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
480 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
481 | ||
482 | $(top_srcdir)/configure: $(am__configure_deps) | |
483 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
484 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
485 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
486 | $(am__aclocal_m4_deps): | |
487 | tags TAGS: | |
488 | ||
489 | ctags CTAGS: | |
490 | ||
491 | cscope cscopelist: | |
492 | ||
493 | ||
494 | # Recover from deleted '.trs' file; this should ensure that | |
495 | # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create | |
496 | # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells | |
497 | # to avoid problems with "make -n". | |
498 | .log.trs: | |
499 | rm -f $< $@ | |
500 | $(MAKE) $(AM_MAKEFLAGS) $< | |
501 | ||
502 | # Leading 'am--fnord' is there to ensure the list of targets does not | |
503 | # expand to empty, as could happen e.g. with make check TESTS=''. | |
504 | am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) | |
505 | am--force-recheck: | |
506 | @: | |
507 | ||
508 | $(TEST_SUITE_LOG): $(TEST_LOGS) | |
509 | @$(am__set_TESTS_bases); \ | |
510 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | |
511 | redo_bases=`for i in $$bases; do \ | |
512 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | |
513 | done`; \ | |
514 | if test -n "$$redo_bases"; then \ | |
515 | redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ | |
516 | redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ | |
517 | if $(am__make_dryrun); then :; else \ | |
518 | rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ | |
519 | fi; \ | |
520 | fi; \ | |
521 | if test -n "$$am__remaking_logs"; then \ | |
522 | echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ | |
523 | "recursion detected" >&2; \ | |
524 | elif test -n "$$redo_logs"; then \ | |
525 | am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ | |
526 | fi; \ | |
527 | if $(am__make_dryrun); then :; else \ | |
528 | st=0; \ | |
529 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | |
530 | for i in $$redo_bases; do \ | |
531 | test -f $$i.trs && test -r $$i.trs \ | |
532 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | |
533 | test -f $$i.log && test -r $$i.log \ | |
534 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | |
535 | done; \ | |
536 | test $$st -eq 0 || exit 1; \ | |
537 | fi | |
538 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | |
539 | ws='[ ]'; \ | |
540 | results=`for b in $$bases; do echo $$b.trs; done`; \ | |
541 | test -n "$$results" || results=/dev/null; \ | |
542 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | |
543 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | |
544 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | |
545 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | |
546 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | |
547 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | |
548 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | |
549 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | |
550 | success=true; \ | |
551 | else \ | |
552 | success=false; \ | |
553 | fi; \ | |
554 | br='==================='; br=$$br$$br$$br$$br; \ | |
555 | result_count () \ | |
556 | { \ | |
557 | if test x"$$1" = x"--maybe-color"; then \ | |
558 | maybe_colorize=yes; \ | |
559 | elif test x"$$1" = x"--no-color"; then \ | |
560 | maybe_colorize=no; \ | |
561 | else \ | |
562 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | |
563 | fi; \ | |
564 | shift; \ | |
565 | desc=$$1 count=$$2; \ | |
566 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | |
567 | color_start=$$3 color_end=$$std; \ | |
568 | else \ | |
569 | color_start= color_end=; \ | |
570 | fi; \ | |
571 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | |
572 | }; \ | |
573 | create_testsuite_report () \ | |
574 | { \ | |
575 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | |
576 | result_count $$1 "PASS: " $$pass "$$grn"; \ | |
577 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | |
578 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | |
579 | result_count $$1 "FAIL: " $$fail "$$red"; \ | |
580 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | |
581 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | |
582 | }; \ | |
583 | { \ | |
584 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | |
585 | $(am__rst_title); \ | |
586 | create_testsuite_report --no-color; \ | |
587 | echo; \ | |
588 | echo ".. contents:: :depth: 2"; \ | |
589 | echo; \ | |
590 | for b in $$bases; do echo $$b; done \ | |
591 | | $(am__create_global_log); \ | |
592 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | |
593 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | |
594 | if $$success; then \ | |
595 | col="$$grn"; \ | |
596 | else \ | |
597 | col="$$red"; \ | |
598 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | |
599 | fi; \ | |
600 | echo "$${col}$$br$${std}"; \ | |
601 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
602 | echo "$${col}$$br$${std}"; \ | |
603 | create_testsuite_report --maybe-color; \ | |
604 | echo "$$col$$br$$std"; \ | |
605 | if $$success; then :; else \ | |
606 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | |
607 | if test -n "$(PACKAGE_BUGREPORT)"; then \ | |
608 | echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ | |
609 | fi; \ | |
610 | echo "$$col$$br$$std"; \ | |
611 | fi; \ | |
612 | $$success || exit 1 | |
613 | ||
614 | check-TESTS: | |
615 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | |
616 | @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list | |
617 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
618 | @set +e; $(am__set_TESTS_bases); \ | |
619 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
620 | trs_list=`for i in $$bases; do echo $$i.trs; done`; \ | |
621 | log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ | |
622 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | |
623 | exit $$?; | |
624 | recheck: all | |
625 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
626 | @set +e; $(am__set_TESTS_bases); \ | |
627 | bases=`for i in $$bases; do echo $$i; done \ | |
628 | | $(am__list_recheck_tests)` || exit 1; \ | |
629 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
630 | log_list=`echo $$log_list`; \ | |
631 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ | |
632 | am__force_recheck=am--force-recheck \ | |
633 | TEST_LOGS="$$log_list"; \ | |
634 | exit $$? | |
635 | test.sh.log: test.sh | |
636 | @p='test.sh'; \ | |
637 | b='test.sh'; \ | |
638 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
639 | --log-file $$b.log --trs-file $$b.trs \ | |
640 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
641 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
642 | .test.log: | |
643 | @p='$<'; \ | |
644 | $(am__set_b); \ | |
645 | $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
646 | --log-file $$b.log --trs-file $$b.trs \ | |
647 | $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
648 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
649 | @am__EXEEXT_TRUE@.test$(EXEEXT).log: | |
650 | @am__EXEEXT_TRUE@ @p='$<'; \ | |
651 | @am__EXEEXT_TRUE@ $(am__set_b); \ | |
652 | @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
653 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ | |
654 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
655 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) | |
656 | distdir: $(BUILT_SOURCES) | |
657 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
658 | ||
659 | distdir-am: $(DISTFILES) | |
660 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
661 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
662 | list='$(DISTFILES)'; \ | |
663 | dist_files=`for file in $$list; do echo $$file; done | \ | |
664 | sed -e "s|^$$srcdirstrip/||;t" \ | |
665 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
666 | case $$dist_files in \ | |
667 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
668 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
669 | sort -u` ;; \ | |
670 | esac; \ | |
671 | for file in $$dist_files; do \ | |
672 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
673 | if test -d $$d/$$file; then \ | |
674 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
675 | if test -d "$(distdir)/$$file"; then \ | |
676 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
677 | fi; \ | |
678 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
679 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
680 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
681 | fi; \ | |
682 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
683 | else \ | |
684 | test -f "$(distdir)/$$file" \ | |
685 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
686 | || exit 1; \ | |
687 | fi; \ | |
688 | done | |
689 | check-am: all-am | |
690 | $(MAKE) $(AM_MAKEFLAGS) check-TESTS | |
691 | check: check-am | |
692 | all-am: Makefile | |
693 | installdirs: | |
694 | install: install-am | |
695 | install-exec: install-exec-am | |
696 | install-data: install-data-am | |
697 | uninstall: uninstall-am | |
698 | ||
699 | install-am: all-am | |
700 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
701 | ||
702 | installcheck: installcheck-am | |
703 | install-strip: | |
704 | if test -z '$(STRIP)'; then \ | |
705 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
706 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
707 | install; \ | |
708 | else \ | |
709 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
710 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
711 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
712 | fi | |
713 | mostlyclean-generic: | |
714 | -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) | |
715 | -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) | |
716 | -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
717 | ||
718 | clean-generic: | |
719 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
720 | ||
721 | distclean-generic: | |
722 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
723 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
724 | ||
725 | maintainer-clean-generic: | |
726 | @echo "This command is intended for maintainers to use" | |
727 | @echo "it deletes files that may require special tools to rebuild." | |
728 | clean: clean-am | |
729 | ||
730 | clean-am: clean-generic mostlyclean-am | |
731 | ||
732 | distclean: distclean-am | |
733 | -rm -f Makefile | |
734 | distclean-am: clean-am distclean-generic | |
735 | ||
736 | dvi: dvi-am | |
737 | ||
738 | dvi-am: | |
739 | ||
740 | html: html-am | |
741 | ||
742 | html-am: | |
743 | ||
744 | info: info-am | |
745 | ||
746 | info-am: | |
747 | ||
748 | install-data-am: | |
749 | ||
750 | install-dvi: install-dvi-am | |
751 | ||
752 | install-dvi-am: | |
753 | ||
754 | install-exec-am: | |
755 | ||
756 | install-html: install-html-am | |
757 | ||
758 | install-html-am: | |
759 | ||
760 | install-info: install-info-am | |
761 | ||
762 | install-info-am: | |
763 | ||
764 | install-man: | |
765 | ||
766 | install-pdf: install-pdf-am | |
767 | ||
768 | install-pdf-am: | |
769 | ||
770 | install-ps: install-ps-am | |
771 | ||
772 | install-ps-am: | |
773 | ||
774 | installcheck-am: | |
775 | ||
776 | maintainer-clean: maintainer-clean-am | |
777 | -rm -f Makefile | |
778 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
779 | ||
780 | mostlyclean: mostlyclean-am | |
781 | ||
782 | mostlyclean-am: mostlyclean-generic | |
783 | ||
784 | pdf: pdf-am | |
785 | ||
786 | pdf-am: | |
787 | ||
788 | ps: ps-am | |
789 | ||
790 | ps-am: | |
791 | ||
792 | uninstall-am: | |
793 | ||
794 | .MAKE: check-am install-am install-strip | |
795 | ||
796 | .PHONY: all all-am check check-TESTS check-am clean clean-generic \ | |
797 | cscopelist-am ctags-am distclean distclean-generic distdir dvi \ | |
798 | dvi-am html html-am info info-am install install-am \ | |
799 | install-data install-data-am install-dvi install-dvi-am \ | |
800 | install-exec install-exec-am install-html install-html-am \ | |
801 | install-info install-info-am install-man install-pdf \ | |
802 | install-pdf-am install-ps install-ps-am install-strip \ | |
803 | installcheck installcheck-am installdirs maintainer-clean \ | |
804 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
805 | pdf-am ps ps-am recheck tags-am uninstall uninstall-am | |
806 | ||
807 | .PRECIOUS: Makefile | |
808 | ||
809 | ||
810 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
811 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
812 | .NOEXPORT: |
0 | processor : 0 | |
1 | BogoMIPS : 108.00 | |
2 | Features : fp asimd evtstrm crc32 cpuid | |
3 | CPU implementer : 0x41 | |
4 | CPU architecture: 8 | |
5 | CPU variant : 0x0 | |
6 | CPU part : 0xd08 | |
7 | CPU revision : 3 | |
8 | ||
9 | processor : 1 | |
10 | BogoMIPS : 108.00 | |
11 | Features : fp asimd evtstrm crc32 cpuid | |
12 | CPU implementer : 0x41 | |
13 | CPU architecture: 8 | |
14 | CPU variant : 0x0 | |
15 | CPU part : 0xd08 | |
16 | CPU revision : 3 | |
17 |
0 | vmware |
0 | hypervisor |
0 | Name: cat | |
1 | Umask: 0022 | |
2 | State: R (running) | |
3 | Tgid: 292937 | |
4 | Ngid: 0 | |
5 | Pid: 292937 | |
6 | PPid: 10956 | |
7 | TracerPid: 0 | |
8 | Uid: 0 0 0 0 | |
9 | Gid: 0 0 0 0 | |
10 | FDSize: 256 | |
11 | Groups: 0 | |
12 | NStgid: 292937 | |
13 | NSpid: 292937 | |
14 | NSpgid: 292937 | |
15 | NSsid: 10956 | |
16 | VmPeak: 6400 kB | |
17 | VmSize: 6400 kB | |
18 | VmLck: 0 kB | |
19 | VmPin: 0 kB | |
20 | VmHWM: 960 kB | |
21 | VmRSS: 960 kB | |
22 | RssAnon: 448 kB | |
23 | RssFile: 512 kB | |
24 | RssShmem: 0 kB | |
25 | VmData: 640 kB | |
26 | VmStk: 192 kB | |
27 | VmExe: 64 kB | |
28 | VmLib: 1600 kB | |
29 | VmPTE: 384 kB | |
30 | VmSwap: 0 kB | |
31 | HugetlbPages: 0 kB | |
32 | CoreDumping: 0 | |
33 | THP_enabled: 1 | |
34 | Threads: 1 | |
35 | SigQ: 2/3947 | |
36 | SigPnd: 0000000000000000 | |
37 | ShdPnd: 0000000000000000 | |
38 | SigBlk: 0000000000000000 | |
39 | SigIgn: 0000000000000000 | |
40 | SigCgt: 0000000000000000 | |
41 | CapInh: 0000000000000000 | |
42 | CapPrm: 0000003fffffffff | |
43 | CapEff: 0000003fffffffff | |
44 | CapBnd: 0000003fffffffff | |
45 | CapAmb: 0000000000000000 | |
46 | NoNewPrivs: 0 | |
47 | Seccomp: 0 | |
48 | Speculation_Store_Bypass: vulnerable | |
49 | Cpus_allowed: 3 | |
50 | Cpus_allowed_list: 0-1 | |
51 | Mems_allowed: 01 | |
52 | Mems_allowed_list: 0 | |
53 | voluntary_ctxt_switches: 1 | |
54 | nonvoluntary_ctxt_switches: 0 |
0 | # Test for ESXi on ARM | |
1 | # Copyright (C) 2008-2011 Red Hat Inc. | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" | |
18 | expected="vmware" | |
19 | ||
20 | if [ "$output" != "$expected" ]; then | |
21 | echo "$0: test failed because output did not match expected" | |
22 | echo "Expected output was:" | |
23 | echo "----------------------------------------" | |
24 | echo "$expected" | |
25 | echo "----------------------------------------" | |
26 | echo "But the actual output of the program was:" | |
27 | echo "----------------------------------------" | |
28 | echo "$output" | |
29 | echo "----------------------------------------" | |
30 | exit 1 | |
31 | fi |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile for virt-what | |
1 | # Copyright (C) 2022 Steve Mokris | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | CLEANFILES = *~ | |
18 | ||
19 | TESTS = test.sh | |
20 | ||
21 | EXTRA_DIST = \ | |
22 | test.sh \ | |
23 | proc/1/environ \ | |
24 | proc/version \ | |
25 | sbin/dmidecode \ | |
26 | sbin/uname \ | |
27 | sbin/virt-what-cpuid-helper |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | # Makefile for virt-what | |
17 | # Copyright (C) 2022 Steve Mokris | |
18 | # | |
19 | # This program is free software; you can redistribute it and/or modify | |
20 | # it under the terms of the GNU General Public License as published by | |
21 | # the Free Software Foundation; either version 2 of the License, or | |
22 | # (at your option) any later version. | |
23 | # | |
24 | # This program is distributed in the hope that it will be useful, | |
25 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 | # GNU General Public License for more details. | |
28 | # | |
29 | # You should have received a copy of the GNU General Public License | |
30 | # along with this program; if not, write to the Free Software | |
31 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
32 | VPATH = @srcdir@ | |
33 | am__is_gnu_make = { \ | |
34 | if test -z '$(MAKELEVEL)'; then \ | |
35 | false; \ | |
36 | elif test -n '$(MAKE_HOST)'; then \ | |
37 | true; \ | |
38 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
39 | true; \ | |
40 | else \ | |
41 | false; \ | |
42 | fi; \ | |
43 | } | |
44 | am__make_running_with_option = \ | |
45 | case $${target_option-} in \ | |
46 | ?) ;; \ | |
47 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
48 | "target option '$${target_option-}' specified" >&2; \ | |
49 | exit 1;; \ | |
50 | esac; \ | |
51 | has_opt=no; \ | |
52 | sane_makeflags=$$MAKEFLAGS; \ | |
53 | if $(am__is_gnu_make); then \ | |
54 | sane_makeflags=$$MFLAGS; \ | |
55 | else \ | |
56 | case $$MAKEFLAGS in \ | |
57 | *\\[\ \ ]*) \ | |
58 | bs=\\; \ | |
59 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
60 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
61 | esac; \ | |
62 | fi; \ | |
63 | skip_next=no; \ | |
64 | strip_trailopt () \ | |
65 | { \ | |
66 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
67 | }; \ | |
68 | for flg in $$sane_makeflags; do \ | |
69 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
70 | case $$flg in \ | |
71 | *=*|--*) continue;; \ | |
72 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
73 | -*I?*) strip_trailopt 'I';; \ | |
74 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
75 | -*O?*) strip_trailopt 'O';; \ | |
76 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
77 | -*l?*) strip_trailopt 'l';; \ | |
78 | -[dEDm]) skip_next=yes;; \ | |
79 | -[JT]) skip_next=yes;; \ | |
80 | esac; \ | |
81 | case $$flg in \ | |
82 | *$$target_option*) has_opt=yes; break;; \ | |
83 | esac; \ | |
84 | done; \ | |
85 | test $$has_opt = yes | |
86 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
87 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
88 | pkgdatadir = $(datadir)/@PACKAGE@ | |
89 | pkgincludedir = $(includedir)/@PACKAGE@ | |
90 | pkglibdir = $(libdir)/@PACKAGE@ | |
91 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
92 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
93 | install_sh_DATA = $(install_sh) -c -m 644 | |
94 | install_sh_PROGRAM = $(install_sh) -c | |
95 | install_sh_SCRIPT = $(install_sh) -c | |
96 | INSTALL_HEADER = $(INSTALL_DATA) | |
97 | transform = $(program_transform_name) | |
98 | NORMAL_INSTALL = : | |
99 | PRE_INSTALL = : | |
100 | POST_INSTALL = : | |
101 | NORMAL_UNINSTALL = : | |
102 | PRE_UNINSTALL = : | |
103 | POST_UNINSTALL = : | |
104 | build_triplet = @build@ | |
105 | host_triplet = @host@ | |
106 | subdir = tests/illumos-lx | |
107 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
108 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
109 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
110 | $(ACLOCAL_M4) | |
111 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
112 | mkinstalldirs = $(install_sh) -d | |
113 | CONFIG_HEADER = $(top_builddir)/config.h | |
114 | CONFIG_CLEAN_FILES = | |
115 | CONFIG_CLEAN_VPATH_FILES = | |
116 | AM_V_P = $(am__v_P_@AM_V@) | |
117 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
118 | am__v_P_0 = false | |
119 | am__v_P_1 = : | |
120 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
121 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
122 | am__v_GEN_0 = @echo " GEN " $@; | |
123 | am__v_GEN_1 = | |
124 | AM_V_at = $(am__v_at_@AM_V@) | |
125 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
126 | am__v_at_0 = @ | |
127 | am__v_at_1 = | |
128 | SOURCES = | |
129 | DIST_SOURCES = | |
130 | am__can_run_installinfo = \ | |
131 | case $$AM_UPDATE_INFO_DIR in \ | |
132 | n|no|NO) false;; \ | |
133 | *) (install-info --version) >/dev/null 2>&1;; \ | |
134 | esac | |
135 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
136 | am__tty_colors_dummy = \ | |
137 | mgn= red= grn= lgn= blu= brg= std=; \ | |
138 | am__color_tests=no | |
139 | am__tty_colors = { \ | |
140 | $(am__tty_colors_dummy); \ | |
141 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | |
142 | am__color_tests=no; \ | |
143 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | |
144 | am__color_tests=yes; \ | |
145 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | |
146 | am__color_tests=yes; \ | |
147 | fi; \ | |
148 | if test $$am__color_tests = yes; then \ | |
149 | red='[0;31m'; \ | |
150 | grn='[0;32m'; \ | |
151 | lgn='[1;32m'; \ | |
152 | blu='[1;34m'; \ | |
153 | mgn='[0;35m'; \ | |
154 | brg='[1m'; \ | |
155 | std='[m'; \ | |
156 | fi; \ | |
157 | } | |
158 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
159 | am__vpath_adj = case $$p in \ | |
160 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
161 | *) f=$$p;; \ | |
162 | esac; | |
163 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
164 | am__install_max = 40 | |
165 | am__nobase_strip_setup = \ | |
166 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
167 | am__nobase_strip = \ | |
168 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
169 | am__nobase_list = $(am__nobase_strip_setup); \ | |
170 | for p in $$list; do echo "$$p $$p"; done | \ | |
171 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
172 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
173 | if (++n[$$2] == $(am__install_max)) \ | |
174 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
175 | END { for (dir in files) print dir, files[dir] }' | |
176 | am__base_list = \ | |
177 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
178 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
179 | am__uninstall_files_from_dir = { \ | |
180 | test -z "$$files" \ | |
181 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
182 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
183 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
184 | } | |
185 | am__recheck_rx = ^[ ]*:recheck:[ ]* | |
186 | am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* | |
187 | am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* | |
188 | # A command that, given a newline-separated list of test names on the | |
189 | # standard input, print the name of the tests that are to be re-run | |
190 | # upon "make recheck". | |
191 | am__list_recheck_tests = $(AWK) '{ \ | |
192 | recheck = 1; \ | |
193 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
194 | { \ | |
195 | if (rc < 0) \ | |
196 | { \ | |
197 | if ((getline line2 < ($$0 ".log")) < 0) \ | |
198 | recheck = 0; \ | |
199 | break; \ | |
200 | } \ | |
201 | else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ | |
202 | { \ | |
203 | recheck = 0; \ | |
204 | break; \ | |
205 | } \ | |
206 | else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ | |
207 | { \ | |
208 | break; \ | |
209 | } \ | |
210 | }; \ | |
211 | if (recheck) \ | |
212 | print $$0; \ | |
213 | close ($$0 ".trs"); \ | |
214 | close ($$0 ".log"); \ | |
215 | }' | |
216 | # A command that, given a newline-separated list of test names on the | |
217 | # standard input, create the global log from their .trs and .log files. | |
218 | am__create_global_log = $(AWK) ' \ | |
219 | function fatal(msg) \ | |
220 | { \ | |
221 | print "fatal: making $@: " msg | "cat >&2"; \ | |
222 | exit 1; \ | |
223 | } \ | |
224 | function rst_section(header) \ | |
225 | { \ | |
226 | print header; \ | |
227 | len = length(header); \ | |
228 | for (i = 1; i <= len; i = i + 1) \ | |
229 | printf "="; \ | |
230 | printf "\n\n"; \ | |
231 | } \ | |
232 | { \ | |
233 | copy_in_global_log = 1; \ | |
234 | global_test_result = "RUN"; \ | |
235 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
236 | { \ | |
237 | if (rc < 0) \ | |
238 | fatal("failed to read from " $$0 ".trs"); \ | |
239 | if (line ~ /$(am__global_test_result_rx)/) \ | |
240 | { \ | |
241 | sub("$(am__global_test_result_rx)", "", line); \ | |
242 | sub("[ ]*$$", "", line); \ | |
243 | global_test_result = line; \ | |
244 | } \ | |
245 | else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ | |
246 | copy_in_global_log = 0; \ | |
247 | }; \ | |
248 | if (copy_in_global_log) \ | |
249 | { \ | |
250 | rst_section(global_test_result ": " $$0); \ | |
251 | while ((rc = (getline line < ($$0 ".log"))) != 0) \ | |
252 | { \ | |
253 | if (rc < 0) \ | |
254 | fatal("failed to read from " $$0 ".log"); \ | |
255 | print line; \ | |
256 | }; \ | |
257 | printf "\n"; \ | |
258 | }; \ | |
259 | close ($$0 ".trs"); \ | |
260 | close ($$0 ".log"); \ | |
261 | }' | |
262 | # Restructured Text title. | |
263 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | |
264 | # Solaris 10 'make', and several other traditional 'make' implementations, | |
265 | # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it | |
266 | # by disabling -e (using the XSI extension "set +e") if it's set. | |
267 | am__sh_e_setup = case $$- in *e*) set +e;; esac | |
268 | # Default flags passed to test drivers. | |
269 | am__common_driver_flags = \ | |
270 | --color-tests "$$am__color_tests" \ | |
271 | --enable-hard-errors "$$am__enable_hard_errors" \ | |
272 | --expect-failure "$$am__expect_failure" | |
273 | # To be inserted before the command running the test. Creates the | |
274 | # directory for the log if needed. Stores in $dir the directory | |
275 | # containing $f, in $tst the test, in $log the log. Executes the | |
276 | # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and | |
277 | # passes TESTS_ENVIRONMENT. Set up options for the wrapper that | |
278 | # will run the test scripts (or their associated LOG_COMPILER, if | |
279 | # thy have one). | |
280 | am__check_pre = \ | |
281 | $(am__sh_e_setup); \ | |
282 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | |
283 | $(am__tty_colors); \ | |
284 | srcdir=$(srcdir); export srcdir; \ | |
285 | case "$@" in \ | |
286 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | |
287 | *) am__odir=.;; \ | |
288 | esac; \ | |
289 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | |
290 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | |
291 | if test -f "./$$f"; then dir=./; \ | |
292 | elif test -f "$$f"; then dir=; \ | |
293 | else dir="$(srcdir)/"; fi; \ | |
294 | tst=$$dir$$f; log='$@'; \ | |
295 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | |
296 | am__enable_hard_errors=no; \ | |
297 | else \ | |
298 | am__enable_hard_errors=yes; \ | |
299 | fi; \ | |
300 | case " $(XFAIL_TESTS) " in \ | |
301 | *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ | |
302 | am__expect_failure=yes;; \ | |
303 | *) \ | |
304 | am__expect_failure=no;; \ | |
305 | esac; \ | |
306 | $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) | |
307 | # A shell command to get the names of the tests scripts with any registered | |
308 | # extension removed (i.e., equivalently, the names of the test logs, with | |
309 | # the '.log' extension removed). The result is saved in the shell variable | |
310 | # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, | |
311 | # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", | |
312 | # since that might cause problem with VPATH rewrites for suffix-less tests. | |
313 | # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. | |
314 | am__set_TESTS_bases = \ | |
315 | bases='$(TEST_LOGS)'; \ | |
316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | |
317 | bases=`echo $$bases` | |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
319 | RECHECK_LOGS = $(TEST_LOGS) | |
320 | AM_RECURSIVE_TARGETS = check recheck | |
321 | TEST_SUITE_LOG = test-suite.log | |
322 | TEST_EXTENSIONS = @EXEEXT@ .test | |
323 | LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
324 | LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) | |
325 | am__set_b = \ | |
326 | case '$@' in \ | |
327 | */*) \ | |
328 | case '$*' in \ | |
329 | */*) b='$*';; \ | |
330 | *) b=`echo '$@' | sed 's/\.log$$//'`; \ | |
331 | esac;; \ | |
332 | *) \ | |
333 | b='$*';; \ | |
334 | esac | |
335 | am__test_logs1 = $(TESTS:=.log) | |
336 | am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) | |
337 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | |
338 | TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
339 | TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ | |
340 | $(TEST_LOG_FLAGS) | |
341 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver | |
342 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
343 | ACLOCAL = @ACLOCAL@ | |
344 | AMTAR = @AMTAR@ | |
345 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
346 | AUTOCONF = @AUTOCONF@ | |
347 | AUTOHEADER = @AUTOHEADER@ | |
348 | AUTOMAKE = @AUTOMAKE@ | |
349 | AWK = @AWK@ | |
350 | CC = @CC@ | |
351 | CCDEPMODE = @CCDEPMODE@ | |
352 | CFLAGS = @CFLAGS@ | |
353 | CPP = @CPP@ | |
354 | CPPFLAGS = @CPPFLAGS@ | |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
357 | CYGPATH_W = @CYGPATH_W@ | |
358 | DEFS = @DEFS@ | |
359 | DEPDIR = @DEPDIR@ | |
360 | ECHO_C = @ECHO_C@ | |
361 | ECHO_N = @ECHO_N@ | |
362 | ECHO_T = @ECHO_T@ | |
363 | ETAGS = @ETAGS@ | |
364 | EXEEXT = @EXEEXT@ | |
365 | INSTALL = @INSTALL@ | |
366 | INSTALL_DATA = @INSTALL_DATA@ | |
367 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
368 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
369 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
370 | LDFLAGS = @LDFLAGS@ | |
371 | LIBOBJS = @LIBOBJS@ | |
372 | LIBS = @LIBS@ | |
373 | LTLIBOBJS = @LTLIBOBJS@ | |
374 | MAKEINFO = @MAKEINFO@ | |
375 | MKDIR_P = @MKDIR_P@ | |
376 | OBJEXT = @OBJEXT@ | |
377 | PACKAGE = @PACKAGE@ | |
378 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
379 | PACKAGE_NAME = @PACKAGE_NAME@ | |
380 | PACKAGE_STRING = @PACKAGE_STRING@ | |
381 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
382 | PACKAGE_URL = @PACKAGE_URL@ | |
383 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
384 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
385 | POD2MAN = @POD2MAN@ | |
386 | SET_MAKE = @SET_MAKE@ | |
387 | SHELL = @SHELL@ | |
388 | STRIP = @STRIP@ | |
389 | VERSION = @VERSION@ | |
390 | abs_builddir = @abs_builddir@ | |
391 | abs_srcdir = @abs_srcdir@ | |
392 | abs_top_builddir = @abs_top_builddir@ | |
393 | abs_top_srcdir = @abs_top_srcdir@ | |
394 | ac_ct_CC = @ac_ct_CC@ | |
395 | am__include = @am__include@ | |
396 | am__leading_dot = @am__leading_dot@ | |
397 | am__quote = @am__quote@ | |
398 | am__tar = @am__tar@ | |
399 | am__untar = @am__untar@ | |
400 | bindir = @bindir@ | |
401 | build = @build@ | |
402 | build_alias = @build_alias@ | |
403 | build_cpu = @build_cpu@ | |
404 | build_os = @build_os@ | |
405 | build_vendor = @build_vendor@ | |
406 | builddir = @builddir@ | |
407 | datadir = @datadir@ | |
408 | datarootdir = @datarootdir@ | |
409 | docdir = @docdir@ | |
410 | dvidir = @dvidir@ | |
411 | exec_prefix = @exec_prefix@ | |
412 | host = @host@ | |
413 | host_alias = @host_alias@ | |
414 | host_cpu = @host_cpu@ | |
415 | host_os = @host_os@ | |
416 | host_vendor = @host_vendor@ | |
417 | htmldir = @htmldir@ | |
418 | includedir = @includedir@ | |
419 | infodir = @infodir@ | |
420 | install_sh = @install_sh@ | |
421 | libdir = @libdir@ | |
422 | libexecdir = @libexecdir@ | |
423 | localedir = @localedir@ | |
424 | localstatedir = @localstatedir@ | |
425 | mandir = @mandir@ | |
426 | mkdir_p = @mkdir_p@ | |
427 | oldincludedir = @oldincludedir@ | |
428 | pdfdir = @pdfdir@ | |
429 | prefix = @prefix@ | |
430 | program_transform_name = @program_transform_name@ | |
431 | psdir = @psdir@ | |
432 | runstatedir = @runstatedir@ | |
433 | sbindir = @sbindir@ | |
434 | sharedstatedir = @sharedstatedir@ | |
435 | srcdir = @srcdir@ | |
436 | sysconfdir = @sysconfdir@ | |
437 | target_alias = @target_alias@ | |
438 | tests = @tests@ | |
439 | top_build_prefix = @top_build_prefix@ | |
440 | top_builddir = @top_builddir@ | |
441 | top_srcdir = @top_srcdir@ | |
442 | CLEANFILES = *~ | |
443 | TESTS = test.sh | |
444 | EXTRA_DIST = \ | |
445 | test.sh \ | |
446 | proc/1/environ \ | |
447 | proc/version \ | |
448 | sbin/dmidecode \ | |
449 | sbin/uname \ | |
450 | sbin/virt-what-cpuid-helper | |
451 | ||
452 | all: all-am | |
453 | ||
454 | .SUFFIXES: | |
455 | .SUFFIXES: .log .test .test$(EXEEXT) .trs | |
456 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
457 | @for dep in $?; do \ | |
458 | case '$(am__configure_deps)' in \ | |
459 | *$$dep*) \ | |
460 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |
461 | && { if test -f $@; then exit 0; else break; fi; }; \ | |
462 | exit 1;; \ | |
463 | esac; \ | |
464 | done; \ | |
465 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/illumos-lx/Makefile'; \ | |
466 | $(am__cd) $(top_srcdir) && \ | |
467 | $(AUTOMAKE) --foreign tests/illumos-lx/Makefile | |
468 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
469 | @case '$?' in \ | |
470 | *config.status*) \ | |
471 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | |
472 | *) \ | |
473 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
474 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
475 | esac; | |
476 | ||
477 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
478 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
479 | ||
480 | $(top_srcdir)/configure: $(am__configure_deps) | |
481 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
482 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
483 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
484 | $(am__aclocal_m4_deps): | |
485 | tags TAGS: | |
486 | ||
487 | ctags CTAGS: | |
488 | ||
489 | cscope cscopelist: | |
490 | ||
491 | ||
492 | # Recover from deleted '.trs' file; this should ensure that | |
493 | # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create | |
494 | # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells | |
495 | # to avoid problems with "make -n". | |
496 | .log.trs: | |
497 | rm -f $< $@ | |
498 | $(MAKE) $(AM_MAKEFLAGS) $< | |
499 | ||
500 | # Leading 'am--fnord' is there to ensure the list of targets does not | |
501 | # expand to empty, as could happen e.g. with make check TESTS=''. | |
502 | am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) | |
503 | am--force-recheck: | |
504 | @: | |
505 | ||
506 | $(TEST_SUITE_LOG): $(TEST_LOGS) | |
507 | @$(am__set_TESTS_bases); \ | |
508 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | |
509 | redo_bases=`for i in $$bases; do \ | |
510 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | |
511 | done`; \ | |
512 | if test -n "$$redo_bases"; then \ | |
513 | redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ | |
514 | redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ | |
515 | if $(am__make_dryrun); then :; else \ | |
516 | rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ | |
517 | fi; \ | |
518 | fi; \ | |
519 | if test -n "$$am__remaking_logs"; then \ | |
520 | echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ | |
521 | "recursion detected" >&2; \ | |
522 | elif test -n "$$redo_logs"; then \ | |
523 | am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ | |
524 | fi; \ | |
525 | if $(am__make_dryrun); then :; else \ | |
526 | st=0; \ | |
527 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | |
528 | for i in $$redo_bases; do \ | |
529 | test -f $$i.trs && test -r $$i.trs \ | |
530 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | |
531 | test -f $$i.log && test -r $$i.log \ | |
532 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | |
533 | done; \ | |
534 | test $$st -eq 0 || exit 1; \ | |
535 | fi | |
536 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | |
537 | ws='[ ]'; \ | |
538 | results=`for b in $$bases; do echo $$b.trs; done`; \ | |
539 | test -n "$$results" || results=/dev/null; \ | |
540 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | |
541 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | |
542 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | |
543 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | |
544 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | |
545 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | |
546 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | |
547 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | |
548 | success=true; \ | |
549 | else \ | |
550 | success=false; \ | |
551 | fi; \ | |
552 | br='==================='; br=$$br$$br$$br$$br; \ | |
553 | result_count () \ | |
554 | { \ | |
555 | if test x"$$1" = x"--maybe-color"; then \ | |
556 | maybe_colorize=yes; \ | |
557 | elif test x"$$1" = x"--no-color"; then \ | |
558 | maybe_colorize=no; \ | |
559 | else \ | |
560 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | |
561 | fi; \ | |
562 | shift; \ | |
563 | desc=$$1 count=$$2; \ | |
564 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | |
565 | color_start=$$3 color_end=$$std; \ | |
566 | else \ | |
567 | color_start= color_end=; \ | |
568 | fi; \ | |
569 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | |
570 | }; \ | |
571 | create_testsuite_report () \ | |
572 | { \ | |
573 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | |
574 | result_count $$1 "PASS: " $$pass "$$grn"; \ | |
575 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | |
576 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | |
577 | result_count $$1 "FAIL: " $$fail "$$red"; \ | |
578 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | |
579 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | |
580 | }; \ | |
581 | { \ | |
582 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | |
583 | $(am__rst_title); \ | |
584 | create_testsuite_report --no-color; \ | |
585 | echo; \ | |
586 | echo ".. contents:: :depth: 2"; \ | |
587 | echo; \ | |
588 | for b in $$bases; do echo $$b; done \ | |
589 | | $(am__create_global_log); \ | |
590 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | |
591 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | |
592 | if $$success; then \ | |
593 | col="$$grn"; \ | |
594 | else \ | |
595 | col="$$red"; \ | |
596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | |
597 | fi; \ | |
598 | echo "$${col}$$br$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
600 | echo "$${col}$$br$${std}"; \ | |
601 | create_testsuite_report --maybe-color; \ | |
602 | echo "$$col$$br$$std"; \ | |
603 | if $$success; then :; else \ | |
604 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | |
605 | if test -n "$(PACKAGE_BUGREPORT)"; then \ | |
606 | echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ | |
607 | fi; \ | |
608 | echo "$$col$$br$$std"; \ | |
609 | fi; \ | |
610 | $$success || exit 1 | |
611 | ||
612 | check-TESTS: | |
613 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | |
614 | @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list | |
615 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
616 | @set +e; $(am__set_TESTS_bases); \ | |
617 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
618 | trs_list=`for i in $$bases; do echo $$i.trs; done`; \ | |
619 | log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ | |
620 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | |
621 | exit $$?; | |
622 | recheck: all | |
623 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
624 | @set +e; $(am__set_TESTS_bases); \ | |
625 | bases=`for i in $$bases; do echo $$i; done \ | |
626 | | $(am__list_recheck_tests)` || exit 1; \ | |
627 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
628 | log_list=`echo $$log_list`; \ | |
629 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ | |
630 | am__force_recheck=am--force-recheck \ | |
631 | TEST_LOGS="$$log_list"; \ | |
632 | exit $$? | |
633 | test.sh.log: test.sh | |
634 | @p='test.sh'; \ | |
635 | b='test.sh'; \ | |
636 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
637 | --log-file $$b.log --trs-file $$b.trs \ | |
638 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
639 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
640 | .test.log: | |
641 | @p='$<'; \ | |
642 | $(am__set_b); \ | |
643 | $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
644 | --log-file $$b.log --trs-file $$b.trs \ | |
645 | $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
646 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
647 | @am__EXEEXT_TRUE@.test$(EXEEXT).log: | |
648 | @am__EXEEXT_TRUE@ @p='$<'; \ | |
649 | @am__EXEEXT_TRUE@ $(am__set_b); \ | |
650 | @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ | |
652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) | |
654 | distdir: $(BUILT_SOURCES) | |
655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
656 | ||
657 | distdir-am: $(DISTFILES) | |
658 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
659 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
660 | list='$(DISTFILES)'; \ | |
661 | dist_files=`for file in $$list; do echo $$file; done | \ | |
662 | sed -e "s|^$$srcdirstrip/||;t" \ | |
663 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
664 | case $$dist_files in \ | |
665 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
666 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
667 | sort -u` ;; \ | |
668 | esac; \ | |
669 | for file in $$dist_files; do \ | |
670 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
671 | if test -d $$d/$$file; then \ | |
672 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
673 | if test -d "$(distdir)/$$file"; then \ | |
674 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
675 | fi; \ | |
676 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
677 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
678 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
679 | fi; \ | |
680 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
681 | else \ | |
682 | test -f "$(distdir)/$$file" \ | |
683 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
684 | || exit 1; \ | |
685 | fi; \ | |
686 | done | |
687 | check-am: all-am | |
688 | $(MAKE) $(AM_MAKEFLAGS) check-TESTS | |
689 | check: check-am | |
690 | all-am: Makefile | |
691 | installdirs: | |
692 | install: install-am | |
693 | install-exec: install-exec-am | |
694 | install-data: install-data-am | |
695 | uninstall: uninstall-am | |
696 | ||
697 | install-am: all-am | |
698 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
699 | ||
700 | installcheck: installcheck-am | |
701 | install-strip: | |
702 | if test -z '$(STRIP)'; then \ | |
703 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
704 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
705 | install; \ | |
706 | else \ | |
707 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
708 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
709 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
710 | fi | |
711 | mostlyclean-generic: | |
712 | -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) | |
713 | -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) | |
714 | -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
715 | ||
716 | clean-generic: | |
717 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
718 | ||
719 | distclean-generic: | |
720 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
721 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
722 | ||
723 | maintainer-clean-generic: | |
724 | @echo "This command is intended for maintainers to use" | |
725 | @echo "it deletes files that may require special tools to rebuild." | |
726 | clean: clean-am | |
727 | ||
728 | clean-am: clean-generic mostlyclean-am | |
729 | ||
730 | distclean: distclean-am | |
731 | -rm -f Makefile | |
732 | distclean-am: clean-am distclean-generic | |
733 | ||
734 | dvi: dvi-am | |
735 | ||
736 | dvi-am: | |
737 | ||
738 | html: html-am | |
739 | ||
740 | html-am: | |
741 | ||
742 | info: info-am | |
743 | ||
744 | info-am: | |
745 | ||
746 | install-data-am: | |
747 | ||
748 | install-dvi: install-dvi-am | |
749 | ||
750 | install-dvi-am: | |
751 | ||
752 | install-exec-am: | |
753 | ||
754 | install-html: install-html-am | |
755 | ||
756 | install-html-am: | |
757 | ||
758 | install-info: install-info-am | |
759 | ||
760 | install-info-am: | |
761 | ||
762 | install-man: | |
763 | ||
764 | install-pdf: install-pdf-am | |
765 | ||
766 | install-pdf-am: | |
767 | ||
768 | install-ps: install-ps-am | |
769 | ||
770 | install-ps-am: | |
771 | ||
772 | installcheck-am: | |
773 | ||
774 | maintainer-clean: maintainer-clean-am | |
775 | -rm -f Makefile | |
776 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
777 | ||
778 | mostlyclean: mostlyclean-am | |
779 | ||
780 | mostlyclean-am: mostlyclean-generic | |
781 | ||
782 | pdf: pdf-am | |
783 | ||
784 | pdf-am: | |
785 | ||
786 | ps: ps-am | |
787 | ||
788 | ps-am: | |
789 | ||
790 | uninstall-am: | |
791 | ||
792 | .MAKE: check-am install-am install-strip | |
793 | ||
794 | .PHONY: all all-am check check-TESTS check-am clean clean-generic \ | |
795 | cscopelist-am ctags-am distclean distclean-generic distdir dvi \ | |
796 | dvi-am html html-am info info-am install install-am \ | |
797 | install-data install-data-am install-dvi install-dvi-am \ | |
798 | install-exec install-exec-am install-html install-html-am \ | |
799 | install-info install-info-am install-man install-pdf \ | |
800 | install-pdf-am install-ps install-ps-am install-strip \ | |
801 | installcheck installcheck-am installdirs maintainer-clean \ | |
802 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
803 | pdf-am ps ps-am recheck tags-am uninstall uninstall-am | |
804 | ||
805 | .PRECIOUS: Makefile | |
806 | ||
807 | ||
808 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
809 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
810 | .NOEXPORT: |
Binary diff not shown
0 | Linux version 3.16.0 (gcc version 7.5.0) BrandZ virtual linux |
0 | # Test for illumos-lx | |
1 | # Copyright (C) 2022 Steve Mokris | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" | |
18 | expected="illumos-lx" | |
19 | ||
20 | if [ "$output" != "$expected" ]; then | |
21 | echo "$0: test failed because output did not match expected" | |
22 | echo "Expected output was:" | |
23 | echo "----------------------------------------" | |
24 | echo "$expected" | |
25 | echo "----------------------------------------" | |
26 | echo "But the actual output of the program was:" | |
27 | echo "----------------------------------------" | |
28 | echo "$output" | |
29 | echo "----------------------------------------" | |
30 | exit 1 | |
31 | fi |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
15 | 15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | |
17 | 17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" |
18 | expected="nutanix_ahv" | |
18 | expected="nutanix_ahv | |
19 | redhat | |
20 | kvm" | |
19 | 21 | |
20 | 22 | if [ "$output" != "$expected" ]; then |
21 | 23 | echo "$0: test failed because output did not match expected" |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
Binary diff not shown
19 | 19 | TESTS = test.sh |
20 | 20 | |
21 | 21 | EXTRA_DIST = \ |
22 | 1/environ \ | |
22 | 23 | test.sh \ |
23 | 24 | proc/cpuinfo \ |
24 | 25 | proc/self/cgroup \ |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
437 | 442 | CLEANFILES = *~ |
438 | 443 | TESTS = test.sh |
439 | 444 | EXTRA_DIST = \ |
445 | 1/environ \ | |
440 | 446 | test.sh \ |
441 | 447 | proc/cpuinfo \ |
442 | 448 | proc/self/cgroup \ |
592 | 598 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 599 | fi; \ |
594 | 600 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
601 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 602 | echo "$${col}$$br$${std}"; \ |
597 | 603 | create_testsuite_report --maybe-color; \ |
598 | 604 | echo "$$col$$br$$std"; \ |
647 | 653 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 654 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 655 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 656 | distdir: $(BUILT_SOURCES) |
652 | 657 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 658 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
590 | 595 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
591 | 596 | fi; \ |
592 | 597 | echo "$${col}$$br$${std}"; \ |
593 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
598 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | 600 | create_testsuite_report --maybe-color; \ |
596 | 601 | echo "$$col$$br$$std"; \ |
645 | 650 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
646 | 651 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
647 | 652 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
648 | ||
649 | 653 | distdir: $(BUILT_SOURCES) |
650 | 654 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
651 | 655 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
611 | 616 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
612 | 617 | fi; \ |
613 | 618 | echo "$${col}$$br$${std}"; \ |
614 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
619 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
615 | 620 | echo "$${col}$$br$${std}"; \ |
616 | 621 | create_testsuite_report --maybe-color; \ |
617 | 622 | echo "$$col$$br$$std"; \ |
666 | 671 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
667 | 672 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
668 | 673 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
669 | ||
670 | 674 | distdir: $(BUILT_SOURCES) |
671 | 675 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
672 | 676 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
15 | 15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | |
17 | 17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" |
18 | expected="xen | |
18 | expected="redhat | |
19 | xen | |
19 | 20 | xen-hvm" |
20 | 21 | |
21 | 22 | if [ "$output" != "$expected" ]; then |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
596 | 601 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
597 | 602 | fi; \ |
598 | 603 | echo "$${col}$$br$${std}"; \ |
599 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
604 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
600 | 605 | echo "$${col}$$br$${std}"; \ |
601 | 606 | create_testsuite_report --maybe-color; \ |
602 | 607 | echo "$$col$$br$$std"; \ |
651 | 656 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
652 | 657 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
653 | 658 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
654 | ||
655 | 659 | distdir: $(BUILT_SOURCES) |
656 | 660 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
657 | 661 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
609 | 614 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
610 | 615 | fi; \ |
611 | 616 | echo "$${col}$$br$${std}"; \ |
612 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
617 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
613 | 618 | echo "$${col}$$br$${std}"; \ |
614 | 619 | create_testsuite_report --maybe-color; \ |
615 | 620 | echo "$$col$$br$$std"; \ |
664 | 669 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
665 | 670 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
666 | 671 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
667 | ||
668 | 672 | distdir: $(BUILT_SOURCES) |
669 | 673 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
670 | 674 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
591 | 596 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
592 | 597 | fi; \ |
593 | 598 | echo "$${col}$$br$${std}"; \ |
594 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
599 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
595 | 600 | echo "$${col}$$br$${std}"; \ |
596 | 601 | create_testsuite_report --maybe-color; \ |
597 | 602 | echo "$$col$$br$$std"; \ |
646 | 651 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
647 | 652 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
648 | 653 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
649 | ||
650 | 654 | distdir: $(BUILT_SOURCES) |
651 | 655 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
652 | 656 |
16 | 16 | |
17 | 17 | output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" |
18 | 18 | expected="rhev |
19 | redhat | |
19 | 20 | kvm" |
20 | 21 | |
21 | 22 | if [ "$output" != "$expected" ]; then |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
590 | 595 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
591 | 596 | fi; \ |
592 | 597 | echo "$${col}$$br$${std}"; \ |
593 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
598 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | 600 | create_testsuite_report --maybe-color; \ |
596 | 601 | echo "$$col$$br$$std"; \ |
645 | 650 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
646 | 651 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
647 | 652 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
648 | ||
649 | 653 | distdir: $(BUILT_SOURCES) |
650 | 654 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
651 | 655 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | # Makefile.in generated by automake 1.16.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2020 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
315 | 315 | bases='$(TEST_LOGS)'; \ |
316 | 316 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
317 | 317 | bases=`echo $$bases` |
318 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
318 | 319 | RECHECK_LOGS = $(TEST_LOGS) |
319 | 320 | AM_RECURSIVE_TARGETS = check recheck |
320 | 321 | TEST_SUITE_LOG = test-suite.log |
351 | 352 | CFLAGS = @CFLAGS@ |
352 | 353 | CPP = @CPP@ |
353 | 354 | CPPFLAGS = @CPPFLAGS@ |
355 | CSCOPE = @CSCOPE@ | |
356 | CTAGS = @CTAGS@ | |
354 | 357 | CYGPATH_W = @CYGPATH_W@ |
355 | 358 | DEFS = @DEFS@ |
356 | 359 | DEPDIR = @DEPDIR@ |
357 | 360 | ECHO_C = @ECHO_C@ |
358 | 361 | ECHO_N = @ECHO_N@ |
359 | 362 | ECHO_T = @ECHO_T@ |
363 | ETAGS = @ETAGS@ | |
360 | 364 | EXEEXT = @EXEEXT@ |
361 | 365 | INSTALL = @INSTALL@ |
362 | 366 | INSTALL_DATA = @INSTALL_DATA@ |
425 | 429 | prefix = @prefix@ |
426 | 430 | program_transform_name = @program_transform_name@ |
427 | 431 | psdir = @psdir@ |
432 | runstatedir = @runstatedir@ | |
428 | 433 | sbindir = @sbindir@ |
429 | 434 | sharedstatedir = @sharedstatedir@ |
430 | 435 | srcdir = @srcdir@ |
592 | 597 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
593 | 598 | fi; \ |
594 | 599 | echo "$${col}$$br$${std}"; \ |
595 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
600 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
596 | 601 | echo "$${col}$$br$${std}"; \ |
597 | 602 | create_testsuite_report --maybe-color; \ |
598 | 603 | echo "$$col$$br$$std"; \ |
647 | 652 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
648 | 653 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
649 | 654 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
650 | ||
651 | 655 | distdir: $(BUILT_SOURCES) |
652 | 656 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
653 | 657 |
0 | 0 | #!/bin/sh - |
1 | 1 | # @configure_input@ |
2 | # Copyright (C) 2008-2019 Red Hat Inc. | |
2 | # Copyright (C) 2008-2022 Red Hat Inc. | |
3 | 3 | # |
4 | 4 | # This program is free software; you can redistribute it and/or modify |
5 | 5 | # it under the terms of the GNU General Public License as published by |
112 | 112 | |
113 | 113 | arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') |
114 | 114 | |
115 | # Check for Alibaba Cloud | |
116 | if echo "$dmi" | grep -q 'Manufacturer: Alibaba'; then | |
117 | # Check for Alibaba Cloud ECS Bare Metal (EBM) Instance | |
118 | if ( { echo -e "GET /latest/meta-datainstance/instance-type HTTP/1.0\r\nHost: 100.100.100.200\r\n\r" >&3; grep -sq 'ebm' <&3 ; } 3<> /dev/tcp/100.100.100.200/80 ) 2>/dev/null ; then | |
119 | echo "alibaba_cloud-ebm" | |
120 | else | |
121 | echo "alibaba_cloud" | |
122 | fi | |
123 | fi | |
124 | ||
115 | 125 | # Check for VMware. |
116 | 126 | # cpuid check added by Chetan Loke. |
117 | 127 | |
166 | 176 | if [ -e "${root}/proc/1/environ" ] && |
167 | 177 | cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=lxc'; then |
168 | 178 | echo lxc |
179 | fi | |
180 | ||
181 | if [ -e "${root}/proc/1/environ" ] && | |
182 | tr '\0' '\n' < "${root}/proc/1/environ" | grep -q '^container=zone$' && | |
183 | [ -e "${root}/proc/version" ] && | |
184 | grep -q 'BrandZ virtual linux' < "${root}/proc/version"; then | |
185 | echo illumos-lx | |
169 | 186 | fi |
170 | 187 | |
171 | 188 | # Check for Linux-VServer |
221 | 238 | fi |
222 | 239 | |
223 | 240 | # Check for Nutanix AHV. |
224 | # This is sufficiently different from KVM and has Viridian extensions, | |
225 | # so skip the KVM test. | |
226 | 241 | if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then |
227 | 242 | echo nutanix_ahv |
228 | skip_qemu_kvm=true | |
229 | 243 | fi |
230 | 244 | |
231 | 245 | # Check for oVirt/RHEV. |
234 | 248 | fi |
235 | 249 | if echo "$dmi" | grep -q 'Product Name: RHEV Hypervisor'; then |
236 | 250 | echo rhev |
251 | fi | |
252 | ||
253 | # Google Cloud | |
254 | if echo "$dmi" | grep -q 'Product Name: Google Compute Engine'; then | |
255 | echo google_cloud | |
256 | fi | |
257 | ||
258 | # Red Hat's hypervisor. | |
259 | if echo "$dmi" | grep -q 'Manufacturer: Red Hat'; then | |
260 | echo redhat | |
237 | 261 | fi |
238 | 262 | |
239 | 263 | # Check for Xen. |
263 | 287 | echo xen |
264 | 288 | skip_qemu_kvm=true |
265 | 289 | skip_lkvm=true |
290 | elif [ -d "${root}/proc/device-tree/hypervisor" ] && | |
291 | grep -q "vmware" "${root}/proc/device-tree/hypervisor/compatible"; then | |
292 | echo vmware | |
293 | skip_lkvm=true | |
266 | 294 | fi |
267 | 295 | elif [ "$arch" = "ia64" ]; then |
268 | 296 | if [ -d "${root}/sys/bus/xen" -a ! -d "${root}/sys/bus/xen-backend" ]; then |
408 | 436 | |
409 | 437 | # Check for AWS. |
410 | 438 | # AWS on Xen. |
411 | if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then | |
439 | if echo "$dmi" | grep -Eq 'Version: [0-9]+\.[0-9]+\.amazon'; then | |
412 | 440 | echo aws |
413 | 441 | # AWS on baremetal or KVM. |
414 | 442 | elif echo "$dmi" | grep -q 'Vendor: Amazon EC2'; then |
24 | 24 | |
25 | 25 | =over 4 |
26 | 26 | |
27 | =item B<alibaba_cloud> | |
28 | ||
29 | =item B<alibaba_cloud-ebm> | |
30 | ||
31 | This is a cloud computing service based on Alibaba Cloud. | |
32 | ||
33 | Status: contributed by Weisson. | |
34 | ||
27 | 35 | =item B<aws> |
28 | 36 | |
29 | 37 | Amazon Web Services. |
46 | 54 | |
47 | 55 | Status: confirmed by Charles Nguyen |
48 | 56 | |
57 | =item B<google_cloud> | |
58 | ||
59 | This is running on Google Cloud Platform / Google Compute Engine. | |
60 | ||
61 | Status: not confirmed | |
62 | ||
49 | 63 | =item B<hyperv> |
50 | 64 | |
51 | 65 | This is Microsoft Hyper-V hypervisor. |
101 | 115 | This is a KVM guest running on an IBM System Z hardware system. |
102 | 116 | |
103 | 117 | Status: contributed by Thomas Huth |
118 | ||
119 | =item B<illumos-lx> | |
120 | ||
121 | The guest is running on Illumos with a Linux syscall emulation layer. | |
122 | ||
123 | Status: contributed by Steve Mokris | |
104 | 124 | |
105 | 125 | =item B<ldoms> |
106 | 126 | |
228 | 248 | =item B<rhev> |
229 | 249 | |
230 | 250 | The guest is running on a Red Hat Enterprise Virtualization (RHEV) node. |
251 | ||
252 | Status: confirmed by RWMJ | |
253 | ||
254 | =item B<redhat> | |
255 | ||
256 | The guest is running on the Red Hat hypervisor. | |
231 | 257 | |
232 | 258 | Status: confirmed by RWMJ |
233 | 259 | |
384 | 410 | |
385 | 411 | =head1 COPYRIGHT |
386 | 412 | |
387 | (C) Copyright 2008-2015 Red Hat Inc., | |
413 | (C) Copyright 2008-2022 Red Hat Inc., | |
388 | 414 | L<http://people.redhat.com/~rjones/virt-what/> |
389 | 415 | |
390 | 416 | This program is free software; you can redistribute it and/or modify |