Commit 91c7c0020a7e804a8736b3e49b51762e7c72021a
0 parents
Initial version
Showing
14 changed files
with
4169 additions
and
0 deletions
Too many changes to show.
To preserve performance only 14 of 4879 files are displayed.
00-timer1.cpp
0 → 100644
| 1 | +++ a/00-timer1.cpp | |
| 1 | +// | |
| 2 | +// timer.cpp | |
| 3 | +// ~~~~~~~~~ | |
| 4 | +// | |
| 5 | +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
| 6 | +// | |
| 7 | +// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| 8 | +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| 9 | +// | |
| 10 | + | |
| 11 | +#include <iostream> | |
| 12 | +#include <asio.hpp> | |
| 13 | + | |
| 14 | +int main() | |
| 15 | +{ | |
| 16 | + asio::io_context io; | |
| 17 | + | |
| 18 | + asio::steady_timer t(io, asio::chrono::seconds(5)); | |
| 19 | + t.wait(); | |
| 20 | + | |
| 21 | + std::cout << "Hello, world!" << std::endl; | |
| 22 | + | |
| 23 | + return 0; | |
| 24 | +} | |
| 25 | + | ... | ... |
01-timer2.cpp
0 → 100644
| 1 | +++ a/01-timer2.cpp | |
| 1 | +// | |
| 2 | +// timer.cpp | |
| 3 | +// ~~~~~~~~~ | |
| 4 | +// | |
| 5 | +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
| 6 | +// | |
| 7 | +// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| 8 | +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| 9 | +// | |
| 10 | + | |
| 11 | +#include <iostream> | |
| 12 | +#include <asio.hpp> | |
| 13 | + | |
| 14 | +void print(const asio::error_code& /*e*/) | |
| 15 | +{ | |
| 16 | + std::cout << "Hello, world!" << std::endl; | |
| 17 | +} | |
| 18 | + | |
| 19 | +int main() | |
| 20 | +{ | |
| 21 | + asio::io_context io; | |
| 22 | + | |
| 23 | + asio::steady_timer t(io, asio::chrono::seconds(5)); | |
| 24 | + t.async_wait(&print); | |
| 25 | + | |
| 26 | + io.run(); | |
| 27 | + | |
| 28 | + return 0; | |
| 29 | +} | |
| 30 | + | ... | ... |
02-timer3.cpp
0 → 100644
| 1 | +++ a/02-timer3.cpp | |
| 1 | +// | |
| 2 | +// timer.cpp | |
| 3 | +// ~~~~~~~~~ | |
| 4 | +// | |
| 5 | +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
| 6 | +// | |
| 7 | +// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| 8 | +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| 9 | +// | |
| 10 | + | |
| 11 | +#include <iostream> | |
| 12 | +#include <asio.hpp> | |
| 13 | +#include <boost/bind/bind.hpp> | |
| 14 | + | |
| 15 | +void print(const asio::error_code& /*e*/, | |
| 16 | + asio::steady_timer* t, int* count) | |
| 17 | +{ | |
| 18 | + if (*count < 5) | |
| 19 | + { | |
| 20 | + std::cout << *count << std::endl; | |
| 21 | + ++(*count); | |
| 22 | + | |
| 23 | + t->expires_at(t->expiry() + asio::chrono::seconds(1)); | |
| 24 | + t->async_wait(std::bind(print, | |
| 25 | + std::placeholders::_1, t, count)); | |
| 26 | + } | |
| 27 | +} | |
| 28 | + | |
| 29 | +int main() | |
| 30 | +{ | |
| 31 | + asio::io_context io; | |
| 32 | + | |
| 33 | + int count = 0; | |
| 34 | + asio::steady_timer t(io, asio::chrono::seconds(1)); | |
| 35 | + t.async_wait(std::bind(print, | |
| 36 | + std::placeholders::_1, &t, &count)); | |
| 37 | + | |
| 38 | + io.run(); | |
| 39 | + | |
| 40 | + std::cout << "Final count is " << count << std::endl; | |
| 41 | + | |
| 42 | + return 0; | |
| 43 | +} | |
| 44 | + | ... | ... |
03-timer4.cpp
0 → 100644
| 1 | +++ a/03-timer4.cpp | |
| 1 | +// | |
| 2 | +// timer.cpp | |
| 3 | +// ~~~~~~~~~ | |
| 4 | +// | |
| 5 | +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
| 6 | +// | |
| 7 | +// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| 8 | +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| 9 | +// | |
| 10 | + | |
| 11 | +#include <iostream> | |
| 12 | +#include <asio.hpp> | |
| 13 | + | |
| 14 | +class printer | |
| 15 | +{ | |
| 16 | +public: | |
| 17 | + printer(asio::io_context& io) | |
| 18 | + : timer_(io, asio::chrono::seconds(1)), | |
| 19 | + count_(0) | |
| 20 | + { | |
| 21 | + timer_.async_wait(std::bind(&printer::print, this)); | |
| 22 | + } | |
| 23 | + | |
| 24 | + ~printer() | |
| 25 | + { | |
| 26 | + std::cout << "Final count is " << count_ << std::endl; | |
| 27 | + } | |
| 28 | + | |
| 29 | + void print() | |
| 30 | + { | |
| 31 | + if (count_ < 5) | |
| 32 | + { | |
| 33 | + std::cout << count_ << std::endl; | |
| 34 | + ++count_; | |
| 35 | + | |
| 36 | + timer_.expires_at(timer_.expiry() + asio::chrono::seconds(1)); | |
| 37 | + timer_.async_wait(std::bind(&printer::print, this)); | |
| 38 | + } | |
| 39 | + } | |
| 40 | + | |
| 41 | +private: | |
| 42 | + asio::steady_timer timer_; | |
| 43 | + int count_; | |
| 44 | +}; | |
| 45 | + | |
| 46 | +int main() | |
| 47 | +{ | |
| 48 | + asio::io_context io; | |
| 49 | + printer p(io); | |
| 50 | + io.run(); | |
| 51 | + | |
| 52 | + return 0; | |
| 53 | +} | |
| 54 | + | ... | ... |
04-timer5.cpp
0 → 100644
| 1 | +++ a/04-timer5.cpp | |
| 1 | +// | |
| 2 | +// timer.cpp | |
| 3 | +// ~~~~~~~~~ | |
| 4 | +// | |
| 5 | +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
| 6 | +// | |
| 7 | +// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| 8 | +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| 9 | +// | |
| 10 | + | |
| 11 | +#include <iostream> | |
| 12 | +#include <asio.hpp> | |
| 13 | +#include <boost/bind/bind.hpp> | |
| 14 | + | |
| 15 | +class printer | |
| 16 | +{ | |
| 17 | +public: | |
| 18 | + printer(asio::io_context& io) | |
| 19 | + : strand_(asio::make_strand(io)), | |
| 20 | + timer1_(io, asio::chrono::seconds(1)), | |
| 21 | + timer2_(io, asio::chrono::seconds(1)), | |
| 22 | + count_(0) | |
| 23 | + { | |
| 24 | + timer1_.async_wait(asio::bind_executor(strand_, | |
| 25 | + boost::bind(&printer::print1, this))); | |
| 26 | + | |
| 27 | + timer2_.async_wait(asio::bind_executor(strand_, | |
| 28 | + boost::bind(&printer::print2, this))); | |
| 29 | + } | |
| 30 | + | |
| 31 | + ~printer() | |
| 32 | + { | |
| 33 | + std::cout << "Final count is " << count_ << std::endl; | |
| 34 | + } | |
| 35 | + | |
| 36 | + void print1() | |
| 37 | + { | |
| 38 | + if (count_ < 10) | |
| 39 | + { | |
| 40 | + std::cout << "Timer 1: " << count_ << std::endl; | |
| 41 | + ++count_; | |
| 42 | + | |
| 43 | + timer1_.expires_at(timer1_.expiry() + asio::chrono::seconds(1)); | |
| 44 | + | |
| 45 | + timer1_.async_wait(asio::bind_executor(strand_, | |
| 46 | + boost::bind(&printer::print1, this))); | |
| 47 | + } | |
| 48 | + } | |
| 49 | + | |
| 50 | + void print2() | |
| 51 | + { | |
| 52 | + if (count_ < 10) | |
| 53 | + { | |
| 54 | + std::cout << "Timer 2: " << count_ << std::endl; | |
| 55 | + ++count_; | |
| 56 | + | |
| 57 | + timer2_.expires_at(timer2_.expiry() + asio::chrono::seconds(1)); | |
| 58 | + | |
| 59 | + timer2_.async_wait(asio::bind_executor(strand_, | |
| 60 | + boost::bind(&printer::print2, this))); | |
| 61 | + } | |
| 62 | + } | |
| 63 | + | |
| 64 | +private: | |
| 65 | + asio::strand<asio::io_context::executor_type> strand_; | |
| 66 | + asio::steady_timer timer1_; | |
| 67 | + asio::steady_timer timer2_; | |
| 68 | + int count_; | |
| 69 | +}; | |
| 70 | + | |
| 71 | +int main() | |
| 72 | +{ | |
| 73 | + asio::io_context io; | |
| 74 | + printer p(io); | |
| 75 | + asio::thread t(boost::bind(&asio::io_context::run, &io)); | |
| 76 | + io.run(); | |
| 77 | + t.join(); | |
| 78 | + | |
| 79 | + return 0; | |
| 80 | +} | |
| 81 | + | ... | ... |
asio-1.18.1/COPYING
0 → 100644
asio-1.18.1/INSTALL
0 → 100644
asio-1.18.1/LICENSE_1_0.txt
0 → 100644
| 1 | +++ a/asio-1.18.1/LICENSE_1_0.txt | |
| 1 | +Boost Software License - Version 1.0 - August 17th, 2003 | |
| 2 | + | |
| 3 | +Permission is hereby granted, free of charge, to any person or organization | |
| 4 | +obtaining a copy of the software and accompanying documentation covered by | |
| 5 | +this license (the "Software") to use, reproduce, display, distribute, | |
| 6 | +execute, and transmit the Software, and to prepare derivative works of the | |
| 7 | +Software, and to permit third-parties to whom the Software is furnished to | |
| 8 | +do so, all subject to the following: | |
| 9 | + | |
| 10 | +The copyright notices in the Software and this entire statement, including | |
| 11 | +the above license grant, this restriction and the following disclaimer, | |
| 12 | +must be included in all copies of the Software, in whole or in part, and | |
| 13 | +all derivative works of the Software, unless such copies or derivative | |
| 14 | +works are solely in the form of machine-executable object code generated by | |
| 15 | +a source language processor. | |
| 16 | + | |
| 17 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 18 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 19 | +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | |
| 20 | +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | |
| 21 | +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | |
| 22 | +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
| 23 | +DEALINGS IN THE SOFTWARE. | ... | ... |
asio-1.18.1/Makefile.am
0 → 100644
| 1 | +++ a/asio-1.18.1/Makefile.am | |
| 1 | +AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip | |
| 2 | + | |
| 3 | +SUBDIRS = include src | |
| 4 | + | |
| 5 | +MAINTAINERCLEANFILES = \ | |
| 6 | + $(srcdir)/aclocal.m4 \ | |
| 7 | + $(srcdir)/configure \ | |
| 8 | + $(srcdir)/config.guess \ | |
| 9 | + $(srcdir)/config.sub \ | |
| 10 | + $(srcdir)/depcomp \ | |
| 11 | + $(srcdir)/install-sh \ | |
| 12 | + $(srcdir)/missing \ | |
| 13 | + $(srcdir)/mkinstalldirs \ | |
| 14 | + $(srcdir)/Makefile.in \ | |
| 15 | + asio-*.tar.gz | |
| 16 | + | |
| 17 | +EXTRA_DIST = \ | |
| 18 | + LICENSE_1_0.txt \ | |
| 19 | + doc | ... | ... |
asio-1.18.1/Makefile.in
0 → 100644
| 1 | +++ a/asio-1.18.1/Makefile.in | |
| 1 | +# Makefile.in generated by automake 1.16.1 from Makefile.am. | |
| 2 | +# @configure_input@ | |
| 3 | + | |
| 4 | +# Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
| 5 | + | |
| 6 | +# This Makefile.in is free software; the Free Software Foundation | |
| 7 | +# gives unlimited permission to copy and/or distribute it, | |
| 8 | +# with or without modifications, as long as this notice is preserved. | |
| 9 | + | |
| 10 | +# This program is distributed in the hope that it will be useful, | |
| 11 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
| 12 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
| 13 | +# PARTICULAR PURPOSE. | |
| 14 | + | |
| 15 | +@SET_MAKE@ | |
| 16 | +VPATH = @srcdir@ | |
| 17 | +am__is_gnu_make = { \ | |
| 18 | + if test -z '$(MAKELEVEL)'; then \ | |
| 19 | + false; \ | |
| 20 | + elif test -n '$(MAKE_HOST)'; then \ | |
| 21 | + true; \ | |
| 22 | + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
| 23 | + true; \ | |
| 24 | + else \ | |
| 25 | + false; \ | |
| 26 | + fi; \ | |
| 27 | +} | |
| 28 | +am__make_running_with_option = \ | |
| 29 | + case $${target_option-} in \ | |
| 30 | + ?) ;; \ | |
| 31 | + *) echo "am__make_running_with_option: internal error: invalid" \ | |
| 32 | + "target option '$${target_option-}' specified" >&2; \ | |
| 33 | + exit 1;; \ | |
| 34 | + esac; \ | |
| 35 | + has_opt=no; \ | |
| 36 | + sane_makeflags=$$MAKEFLAGS; \ | |
| 37 | + if $(am__is_gnu_make); then \ | |
| 38 | + sane_makeflags=$$MFLAGS; \ | |
| 39 | + else \ | |
| 40 | + case $$MAKEFLAGS in \ | |
| 41 | + *\\[\ \ ]*) \ | |
| 42 | + bs=\\; \ | |
| 43 | + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
| 44 | + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
| 45 | + esac; \ | |
| 46 | + fi; \ | |
| 47 | + skip_next=no; \ | |
| 48 | + strip_trailopt () \ | |
| 49 | + { \ | |
| 50 | + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
| 51 | + }; \ | |
| 52 | + for flg in $$sane_makeflags; do \ | |
| 53 | + test $$skip_next = yes && { skip_next=no; continue; }; \ | |
| 54 | + case $$flg in \ | |
| 55 | + *=*|--*) continue;; \ | |
| 56 | + -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
| 57 | + -*I?*) strip_trailopt 'I';; \ | |
| 58 | + -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
| 59 | + -*O?*) strip_trailopt 'O';; \ | |
| 60 | + -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
| 61 | + -*l?*) strip_trailopt 'l';; \ | |
| 62 | + -[dEDm]) skip_next=yes;; \ | |
| 63 | + -[JT]) skip_next=yes;; \ | |
| 64 | + esac; \ | |
| 65 | + case $$flg in \ | |
| 66 | + *$$target_option*) has_opt=yes; break;; \ | |
| 67 | + esac; \ | |
| 68 | + done; \ | |
| 69 | + test $$has_opt = yes | |
| 70 | +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
| 71 | +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
| 72 | +pkgdatadir = $(datadir)/@PACKAGE@ | |
| 73 | +pkgincludedir = $(includedir)/@PACKAGE@ | |
| 74 | +pkglibdir = $(libdir)/@PACKAGE@ | |
| 75 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
| 76 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
| 77 | +install_sh_DATA = $(install_sh) -c -m 644 | |
| 78 | +install_sh_PROGRAM = $(install_sh) -c | |
| 79 | +install_sh_SCRIPT = $(install_sh) -c | |
| 80 | +INSTALL_HEADER = $(INSTALL_DATA) | |
| 81 | +transform = $(program_transform_name) | |
| 82 | +NORMAL_INSTALL = : | |
| 83 | +PRE_INSTALL = : | |
| 84 | +POST_INSTALL = : | |
| 85 | +NORMAL_UNINSTALL = : | |
| 86 | +PRE_UNINSTALL = : | |
| 87 | +POST_UNINSTALL = : | |
| 88 | +build_triplet = @build@ | |
| 89 | +host_triplet = @host@ | |
| 90 | +subdir = . | |
| 91 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
| 92 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
| 93 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
| 94 | + $(ACLOCAL_M4) | |
| 95 | +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
| 96 | + $(am__configure_deps) $(am__DIST_COMMON) | |
| 97 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
| 98 | + configure.lineno config.status.lineno | |
| 99 | +mkinstalldirs = $(install_sh) -d | |
| 100 | +CONFIG_CLEAN_FILES = | |
| 101 | +CONFIG_CLEAN_VPATH_FILES = | |
| 102 | +AM_V_P = $(am__v_P_@AM_V@) | |
| 103 | +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
| 104 | +am__v_P_0 = false | |
| 105 | +am__v_P_1 = : | |
| 106 | +AM_V_GEN = $(am__v_GEN_@AM_V@) | |
| 107 | +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
| 108 | +am__v_GEN_0 = @echo " GEN " $@; | |
| 109 | +am__v_GEN_1 = | |
| 110 | +AM_V_at = $(am__v_at_@AM_V@) | |
| 111 | +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
| 112 | +am__v_at_0 = @ | |
| 113 | +am__v_at_1 = | |
| 114 | +SOURCES = | |
| 115 | +DIST_SOURCES = | |
| 116 | +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
| 117 | + ctags-recursive dvi-recursive html-recursive info-recursive \ | |
| 118 | + install-data-recursive install-dvi-recursive \ | |
| 119 | + install-exec-recursive install-html-recursive \ | |
| 120 | + install-info-recursive install-pdf-recursive \ | |
| 121 | + install-ps-recursive install-recursive installcheck-recursive \ | |
| 122 | + installdirs-recursive pdf-recursive ps-recursive \ | |
| 123 | + tags-recursive uninstall-recursive | |
| 124 | +am__can_run_installinfo = \ | |
| 125 | + case $$AM_UPDATE_INFO_DIR in \ | |
| 126 | + n|no|NO) false;; \ | |
| 127 | + *) (install-info --version) >/dev/null 2>&1;; \ | |
| 128 | + esac | |
| 129 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
| 130 | + distclean-recursive maintainer-clean-recursive | |
| 131 | +am__recursive_targets = \ | |
| 132 | + $(RECURSIVE_TARGETS) \ | |
| 133 | + $(RECURSIVE_CLEAN_TARGETS) \ | |
| 134 | + $(am__extra_recursive_targets) | |
| 135 | +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
| 136 | + cscope distdir distdir-am dist dist-all distcheck | |
| 137 | +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
| 138 | +# Read a list of newline-separated strings from the standard input, | |
| 139 | +# and print each of them once, without duplicates. Input order is | |
| 140 | +# *not* preserved. | |
| 141 | +am__uniquify_input = $(AWK) '\ | |
| 142 | + BEGIN { nonempty = 0; } \ | |
| 143 | + { items[$$0] = 1; nonempty = 1; } \ | |
| 144 | + END { if (nonempty) { for (i in items) print i; }; } \ | |
| 145 | +' | |
| 146 | +# Make sure the list of sources is unique. This is necessary because, | |
| 147 | +# e.g., the same source file might be shared among _SOURCES variables | |
| 148 | +# for different programs/libraries. | |
| 149 | +am__define_uniq_tagged_files = \ | |
| 150 | + list='$(am__tagged_files)'; \ | |
| 151 | + unique=`for i in $$list; do \ | |
| 152 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
| 153 | + done | $(am__uniquify_input)` | |
| 154 | +ETAGS = etags | |
| 155 | +CTAGS = ctags | |
| 156 | +CSCOPE = cscope | |
| 157 | +DIST_SUBDIRS = $(SUBDIRS) | |
| 158 | +am__DIST_COMMON = $(srcdir)/Makefile.in COPYING INSTALL README compile \ | |
| 159 | + config.guess config.sub depcomp install-sh missing | |
| 160 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
| 161 | +distdir = $(PACKAGE)-$(VERSION) | |
| 162 | +top_distdir = $(distdir) | |
| 163 | +am__remove_distdir = \ | |
| 164 | + if test -d "$(distdir)"; then \ | |
| 165 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
| 166 | + && rm -rf "$(distdir)" \ | |
| 167 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
| 168 | + else :; fi | |
| 169 | +am__post_remove_distdir = $(am__remove_distdir) | |
| 170 | +am__relativize = \ | |
| 171 | + dir0=`pwd`; \ | |
| 172 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
| 173 | + sed_rest='s,^[^/]*/*,,'; \ | |
| 174 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
| 175 | + sed_butlast='s,/*[^/]*$$,,'; \ | |
| 176 | + while test -n "$$dir1"; do \ | |
| 177 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
| 178 | + if test "$$first" != "."; then \ | |
| 179 | + if test "$$first" = ".."; then \ | |
| 180 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
| 181 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
| 182 | + else \ | |
| 183 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
| 184 | + if test "$$first2" = "$$first"; then \ | |
| 185 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
| 186 | + else \ | |
| 187 | + dir2="../$$dir2"; \ | |
| 188 | + fi; \ | |
| 189 | + dir0="$$dir0"/"$$first"; \ | |
| 190 | + fi; \ | |
| 191 | + fi; \ | |
| 192 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
| 193 | + done; \ | |
| 194 | + reldir="$$dir2" | |
| 195 | +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).zip | |
| 196 | +GZIP_ENV = --best | |
| 197 | +DIST_TARGETS = dist-bzip2 dist-gzip dist-zip | |
| 198 | +distuninstallcheck_listfiles = find . -type f -print | |
| 199 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
| 200 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
| 201 | +distcleancheck_listfiles = find . -type f -print | |
| 202 | +ACLOCAL = @ACLOCAL@ | |
| 203 | +AMTAR = @AMTAR@ | |
| 204 | +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
| 205 | +AUTOCONF = @AUTOCONF@ | |
| 206 | +AUTOHEADER = @AUTOHEADER@ | |
| 207 | +AUTOMAKE = @AUTOMAKE@ | |
| 208 | +AWK = @AWK@ | |
| 209 | +CC = @CC@ | |
| 210 | +CCDEPMODE = @CCDEPMODE@ | |
| 211 | +CFLAGS = @CFLAGS@ | |
| 212 | +CPPFLAGS = @CPPFLAGS@ | |
| 213 | +CXX = @CXX@ | |
| 214 | +CXXCPP = @CXXCPP@ | |
| 215 | +CXXDEPMODE = @CXXDEPMODE@ | |
| 216 | +CXXFLAGS = @CXXFLAGS@ | |
| 217 | +CYGPATH_W = @CYGPATH_W@ | |
| 218 | +DEFS = @DEFS@ | |
| 219 | +DEPDIR = @DEPDIR@ | |
| 220 | +ECHO_C = @ECHO_C@ | |
| 221 | +ECHO_N = @ECHO_N@ | |
| 222 | +ECHO_T = @ECHO_T@ | |
| 223 | +EGREP = @EGREP@ | |
| 224 | +EXEEXT = @EXEEXT@ | |
| 225 | +GREP = @GREP@ | |
| 226 | +INSTALL = @INSTALL@ | |
| 227 | +INSTALL_DATA = @INSTALL_DATA@ | |
| 228 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
| 229 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
| 230 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
| 231 | +LDFLAGS = @LDFLAGS@ | |
| 232 | +LIBOBJS = @LIBOBJS@ | |
| 233 | +LIBS = @LIBS@ | |
| 234 | +LTLIBOBJS = @LTLIBOBJS@ | |
| 235 | +MAINT = @MAINT@ | |
| 236 | +MAKEINFO = @MAKEINFO@ | |
| 237 | +MKDIR_P = @MKDIR_P@ | |
| 238 | +OBJEXT = @OBJEXT@ | |
| 239 | +PACKAGE = @PACKAGE@ | |
| 240 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
| 241 | +PACKAGE_NAME = @PACKAGE_NAME@ | |
| 242 | +PACKAGE_STRING = @PACKAGE_STRING@ | |
| 243 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
| 244 | +PACKAGE_URL = @PACKAGE_URL@ | |
| 245 | +PACKAGE_VERSION = @PACKAGE_VERSION@ | |
| 246 | +PATH_SEPARATOR = @PATH_SEPARATOR@ | |
| 247 | +RANLIB = @RANLIB@ | |
| 248 | +SET_MAKE = @SET_MAKE@ | |
| 249 | +SHELL = @SHELL@ | |
| 250 | +STRIP = @STRIP@ | |
| 251 | +VERSION = @VERSION@ | |
| 252 | +abs_builddir = @abs_builddir@ | |
| 253 | +abs_srcdir = @abs_srcdir@ | |
| 254 | +abs_top_builddir = @abs_top_builddir@ | |
| 255 | +abs_top_srcdir = @abs_top_srcdir@ | |
| 256 | +ac_ct_CC = @ac_ct_CC@ | |
| 257 | +ac_ct_CXX = @ac_ct_CXX@ | |
| 258 | +am__include = @am__include@ | |
| 259 | +am__leading_dot = @am__leading_dot@ | |
| 260 | +am__quote = @am__quote@ | |
| 261 | +am__tar = @am__tar@ | |
| 262 | +am__untar = @am__untar@ | |
| 263 | +bindir = @bindir@ | |
| 264 | +build = @build@ | |
| 265 | +build_alias = @build_alias@ | |
| 266 | +build_cpu = @build_cpu@ | |
| 267 | +build_os = @build_os@ | |
| 268 | +build_vendor = @build_vendor@ | |
| 269 | +builddir = @builddir@ | |
| 270 | +datadir = @datadir@ | |
| 271 | +datarootdir = @datarootdir@ | |
| 272 | +docdir = @docdir@ | |
| 273 | +dvidir = @dvidir@ | |
| 274 | +exec_prefix = @exec_prefix@ | |
| 275 | +host = @host@ | |
| 276 | +host_alias = @host_alias@ | |
| 277 | +host_cpu = @host_cpu@ | |
| 278 | +host_os = @host_os@ | |
| 279 | +host_vendor = @host_vendor@ | |
| 280 | +htmldir = @htmldir@ | |
| 281 | +includedir = @includedir@ | |
| 282 | +infodir = @infodir@ | |
| 283 | +install_sh = @install_sh@ | |
| 284 | +libdir = @libdir@ | |
| 285 | +libexecdir = @libexecdir@ | |
| 286 | +localedir = @localedir@ | |
| 287 | +localstatedir = @localstatedir@ | |
| 288 | +mandir = @mandir@ | |
| 289 | +mkdir_p = @mkdir_p@ | |
| 290 | +oldincludedir = @oldincludedir@ | |
| 291 | +pdfdir = @pdfdir@ | |
| 292 | +prefix = @prefix@ | |
| 293 | +program_transform_name = @program_transform_name@ | |
| 294 | +psdir = @psdir@ | |
| 295 | +sbindir = @sbindir@ | |
| 296 | +sharedstatedir = @sharedstatedir@ | |
| 297 | +srcdir = @srcdir@ | |
| 298 | +sysconfdir = @sysconfdir@ | |
| 299 | +target_alias = @target_alias@ | |
| 300 | +top_build_prefix = @top_build_prefix@ | |
| 301 | +top_builddir = @top_builddir@ | |
| 302 | +top_srcdir = @top_srcdir@ | |
| 303 | +AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip | |
| 304 | +SUBDIRS = include src | |
| 305 | +MAINTAINERCLEANFILES = \ | |
| 306 | + $(srcdir)/aclocal.m4 \ | |
| 307 | + $(srcdir)/configure \ | |
| 308 | + $(srcdir)/config.guess \ | |
| 309 | + $(srcdir)/config.sub \ | |
| 310 | + $(srcdir)/depcomp \ | |
| 311 | + $(srcdir)/install-sh \ | |
| 312 | + $(srcdir)/missing \ | |
| 313 | + $(srcdir)/mkinstalldirs \ | |
| 314 | + $(srcdir)/Makefile.in \ | |
| 315 | + asio-*.tar.gz | |
| 316 | + | |
| 317 | +EXTRA_DIST = \ | |
| 318 | + LICENSE_1_0.txt \ | |
| 319 | + doc | |
| 320 | + | |
| 321 | +all: all-recursive | |
| 322 | + | |
| 323 | +.SUFFIXES: | |
| 324 | +am--refresh: Makefile | |
| 325 | + @: | |
| 326 | +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
| 327 | + @for dep in $?; do \ | |
| 328 | + case '$(am__configure_deps)' in \ | |
| 329 | + *$$dep*) \ | |
| 330 | + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ | |
| 331 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ | |
| 332 | + && exit 0; \ | |
| 333 | + exit 1;; \ | |
| 334 | + esac; \ | |
| 335 | + done; \ | |
| 336 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
| 337 | + $(am__cd) $(top_srcdir) && \ | |
| 338 | + $(AUTOMAKE) --foreign Makefile | |
| 339 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
| 340 | + @case '$?' in \ | |
| 341 | + *config.status*) \ | |
| 342 | + echo ' $(SHELL) ./config.status'; \ | |
| 343 | + $(SHELL) ./config.status;; \ | |
| 344 | + *) \ | |
| 345 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ | |
| 346 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ | |
| 347 | + esac; | |
| 348 | + | |
| 349 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
| 350 | + $(SHELL) ./config.status --recheck | |
| 351 | + | |
| 352 | +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
| 353 | + $(am__cd) $(srcdir) && $(AUTOCONF) | |
| 354 | +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
| 355 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
| 356 | +$(am__aclocal_m4_deps): | |
| 357 | + | |
| 358 | +# This directory's subdirectories are mostly independent; you can cd | |
| 359 | +# into them and run 'make' without going through this Makefile. | |
| 360 | +# To change the values of 'make' variables: instead of editing Makefiles, | |
| 361 | +# (1) if the variable is set in 'config.status', edit 'config.status' | |
| 362 | +# (which will cause the Makefiles to be regenerated when you run 'make'); | |
| 363 | +# (2) otherwise, pass the desired values on the 'make' command line. | |
| 364 | +$(am__recursive_targets): | |
| 365 | + @fail=; \ | |
| 366 | + if $(am__make_keepgoing); then \ | |
| 367 | + failcom='fail=yes'; \ | |
| 368 | + else \ | |
| 369 | + failcom='exit 1'; \ | |
| 370 | + fi; \ | |
| 371 | + dot_seen=no; \ | |
| 372 | + target=`echo $@ | sed s/-recursive//`; \ | |
| 373 | + case "$@" in \ | |
| 374 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
| 375 | + *) list='$(SUBDIRS)' ;; \ | |
| 376 | + esac; \ | |
| 377 | + for subdir in $$list; do \ | |
| 378 | + echo "Making $$target in $$subdir"; \ | |
| 379 | + if test "$$subdir" = "."; then \ | |
| 380 | + dot_seen=yes; \ | |
| 381 | + local_target="$$target-am"; \ | |
| 382 | + else \ | |
| 383 | + local_target="$$target"; \ | |
| 384 | + fi; \ | |
| 385 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
| 386 | + || eval $$failcom; \ | |
| 387 | + done; \ | |
| 388 | + if test "$$dot_seen" = "no"; then \ | |
| 389 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
| 390 | + fi; test -z "$$fail" | |
| 391 | + | |
| 392 | +ID: $(am__tagged_files) | |
| 393 | + $(am__define_uniq_tagged_files); mkid -fID $$unique | |
| 394 | +tags: tags-recursive | |
| 395 | +TAGS: tags | |
| 396 | + | |
| 397 | +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
| 398 | + set x; \ | |
| 399 | + here=`pwd`; \ | |
| 400 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
| 401 | + include_option=--etags-include; \ | |
| 402 | + empty_fix=.; \ | |
| 403 | + else \ | |
| 404 | + include_option=--include; \ | |
| 405 | + empty_fix=; \ | |
| 406 | + fi; \ | |
| 407 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
| 408 | + if test "$$subdir" = .; then :; else \ | |
| 409 | + test ! -f $$subdir/TAGS || \ | |
| 410 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
| 411 | + fi; \ | |
| 412 | + done; \ | |
| 413 | + $(am__define_uniq_tagged_files); \ | |
| 414 | + shift; \ | |
| 415 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
| 416 | + test -n "$$unique" || unique=$$empty_fix; \ | |
| 417 | + if test $$# -gt 0; then \ | |
| 418 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
| 419 | + "$$@" $$unique; \ | |
| 420 | + else \ | |
| 421 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
| 422 | + $$unique; \ | |
| 423 | + fi; \ | |
| 424 | + fi | |
| 425 | +ctags: ctags-recursive | |
| 426 | + | |
| 427 | +CTAGS: ctags | |
| 428 | +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
| 429 | + $(am__define_uniq_tagged_files); \ | |
| 430 | + test -z "$(CTAGS_ARGS)$$unique" \ | |
| 431 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
| 432 | + $$unique | |
| 433 | + | |
| 434 | +GTAGS: | |
| 435 | + here=`$(am__cd) $(top_builddir) && pwd` \ | |
| 436 | + && $(am__cd) $(top_srcdir) \ | |
| 437 | + && gtags -i $(GTAGS_ARGS) "$$here" | |
| 438 | +cscope: cscope.files | |
| 439 | + test ! -s cscope.files \ | |
| 440 | + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
| 441 | +clean-cscope: | |
| 442 | + -rm -f cscope.files | |
| 443 | +cscope.files: clean-cscope cscopelist | |
| 444 | +cscopelist: cscopelist-recursive | |
| 445 | + | |
| 446 | +cscopelist-am: $(am__tagged_files) | |
| 447 | + list='$(am__tagged_files)'; \ | |
| 448 | + case "$(srcdir)" in \ | |
| 449 | + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
| 450 | + *) sdir=$(subdir)/$(srcdir) ;; \ | |
| 451 | + esac; \ | |
| 452 | + for i in $$list; do \ | |
| 453 | + if test -f "$$i"; then \ | |
| 454 | + echo "$(subdir)/$$i"; \ | |
| 455 | + else \ | |
| 456 | + echo "$$sdir/$$i"; \ | |
| 457 | + fi; \ | |
| 458 | + done >> $(top_builddir)/cscope.files | |
| 459 | + | |
| 460 | +distclean-tags: | |
| 461 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
| 462 | + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
| 463 | + | |
| 464 | +distdir: $(BUILT_SOURCES) | |
| 465 | + $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
| 466 | + | |
| 467 | +distdir-am: $(DISTFILES) | |
| 468 | + $(am__remove_distdir) | |
| 469 | + test -d "$(distdir)" || mkdir "$(distdir)" | |
| 470 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
| 471 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
| 472 | + list='$(DISTFILES)'; \ | |
| 473 | + dist_files=`for file in $$list; do echo $$file; done | \ | |
| 474 | + sed -e "s|^$$srcdirstrip/||;t" \ | |
| 475 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
| 476 | + case $$dist_files in \ | |
| 477 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
| 478 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
| 479 | + sort -u` ;; \ | |
| 480 | + esac; \ | |
| 481 | + for file in $$dist_files; do \ | |
| 482 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
| 483 | + if test -d $$d/$$file; then \ | |
| 484 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
| 485 | + if test -d "$(distdir)/$$file"; then \ | |
| 486 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
| 487 | + fi; \ | |
| 488 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
| 489 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
| 490 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
| 491 | + fi; \ | |
| 492 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
| 493 | + else \ | |
| 494 | + test -f "$(distdir)/$$file" \ | |
| 495 | + || cp -p $$d/$$file "$(distdir)/$$file" \ | |
| 496 | + || exit 1; \ | |
| 497 | + fi; \ | |
| 498 | + done | |
| 499 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
| 500 | + if test "$$subdir" = .; then :; else \ | |
| 501 | + $(am__make_dryrun) \ | |
| 502 | + || test -d "$(distdir)/$$subdir" \ | |
| 503 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
| 504 | + || exit 1; \ | |
| 505 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
| 506 | + $(am__relativize); \ | |
| 507 | + new_distdir=$$reldir; \ | |
| 508 | + dir1=$$subdir; dir2="$(top_distdir)"; \ | |
| 509 | + $(am__relativize); \ | |
| 510 | + new_top_distdir=$$reldir; \ | |
| 511 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
| 512 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
| 513 | + ($(am__cd) $$subdir && \ | |
| 514 | + $(MAKE) $(AM_MAKEFLAGS) \ | |
| 515 | + top_distdir="$$new_top_distdir" \ | |
| 516 | + distdir="$$new_distdir" \ | |
| 517 | + am__remove_distdir=: \ | |
| 518 | + am__skip_length_check=: \ | |
| 519 | + am__skip_mode_fix=: \ | |
| 520 | + distdir) \ | |
| 521 | + || exit 1; \ | |
| 522 | + fi; \ | |
| 523 | + done | |
| 524 | + -test -n "$(am__skip_mode_fix)" \ | |
| 525 | + || find "$(distdir)" -type d ! -perm -755 \ | |
| 526 | + -exec chmod u+rwx,go+rx {} \; -o \ | |
| 527 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
| 528 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
| 529 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
| 530 | + || chmod -R a+r "$(distdir)" | |
| 531 | +dist-gzip: distdir | |
| 532 | + tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
| 533 | + $(am__post_remove_distdir) | |
| 534 | +dist-bzip2: distdir | |
| 535 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
| 536 | + $(am__post_remove_distdir) | |
| 537 | + | |
| 538 | +dist-lzip: distdir | |
| 539 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
| 540 | + $(am__post_remove_distdir) | |
| 541 | + | |
| 542 | +dist-xz: distdir | |
| 543 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
| 544 | + $(am__post_remove_distdir) | |
| 545 | + | |
| 546 | +dist-tarZ: distdir | |
| 547 | + @echo WARNING: "Support for distribution archives compressed with" \ | |
| 548 | + "legacy program 'compress' is deprecated." >&2 | |
| 549 | + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
| 550 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
| 551 | + $(am__post_remove_distdir) | |
| 552 | + | |
| 553 | +dist-shar: distdir | |
| 554 | + @echo WARNING: "Support for shar distribution archives is" \ | |
| 555 | + "deprecated." >&2 | |
| 556 | + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
| 557 | + shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
| 558 | + $(am__post_remove_distdir) | |
| 559 | +dist-zip: distdir | |
| 560 | + -rm -f $(distdir).zip | |
| 561 | + zip -rq $(distdir).zip $(distdir) | |
| 562 | + $(am__post_remove_distdir) | |
| 563 | + | |
| 564 | +dist dist-all: | |
| 565 | + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
| 566 | + $(am__post_remove_distdir) | |
| 567 | + | |
| 568 | +# This target untars the dist file and tries a VPATH configuration. Then | |
| 569 | +# it guarantees that the distribution is self-contained by making another | |
| 570 | +# tarfile. | |
| 571 | +distcheck: dist | |
| 572 | + case '$(DIST_ARCHIVES)' in \ | |
| 573 | + *.tar.gz*) \ | |
| 574 | + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
| 575 | + *.tar.bz2*) \ | |
| 576 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
| 577 | + *.tar.lz*) \ | |
| 578 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
| 579 | + *.tar.xz*) \ | |
| 580 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
| 581 | + *.tar.Z*) \ | |
| 582 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
| 583 | + *.shar.gz*) \ | |
| 584 | + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
| 585 | + *.zip*) \ | |
| 586 | + unzip $(distdir).zip ;;\ | |
| 587 | + esac | |
| 588 | + chmod -R a-w $(distdir) | |
| 589 | + chmod u+w $(distdir) | |
| 590 | + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst | |
| 591 | + chmod a-w $(distdir) | |
| 592 | + test -d $(distdir)/_build || exit 0; \ | |
| 593 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
| 594 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
| 595 | + && am__cwd=`pwd` \ | |
| 596 | + && $(am__cd) $(distdir)/_build/sub \ | |
| 597 | + && ../../configure \ | |
| 598 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
| 599 | + $(DISTCHECK_CONFIGURE_FLAGS) \ | |
| 600 | + --srcdir=../.. --prefix="$$dc_install_base" \ | |
| 601 | + && $(MAKE) $(AM_MAKEFLAGS) \ | |
| 602 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
| 603 | + && $(MAKE) $(AM_MAKEFLAGS) check \ | |
| 604 | + && $(MAKE) $(AM_MAKEFLAGS) install \ | |
| 605 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
| 606 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
| 607 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
| 608 | + distuninstallcheck \ | |
| 609 | + && chmod -R a-w "$$dc_install_base" \ | |
| 610 | + && ({ \ | |
| 611 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
| 612 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
| 613 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
| 614 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
| 615 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
| 616 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
| 617 | + && rm -rf "$$dc_destdir" \ | |
| 618 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
| 619 | + && rm -rf $(DIST_ARCHIVES) \ | |
| 620 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
| 621 | + && cd "$$am__cwd" \ | |
| 622 | + || exit 1 | |
| 623 | + $(am__post_remove_distdir) | |
| 624 | + @(echo "$(distdir) archives ready for distribution: "; \ | |
| 625 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
| 626 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
| 627 | +distuninstallcheck: | |
| 628 | + @test -n '$(distuninstallcheck_dir)' || { \ | |
| 629 | + echo 'ERROR: trying to run $@ with an empty' \ | |
| 630 | + '$$(distuninstallcheck_dir)' >&2; \ | |
| 631 | + exit 1; \ | |
| 632 | + }; \ | |
| 633 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
| 634 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
| 635 | + exit 1; \ | |
| 636 | + }; \ | |
| 637 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
| 638 | + || { echo "ERROR: files left after uninstall:" ; \ | |
| 639 | + if test -n "$(DESTDIR)"; then \ | |
| 640 | + echo " (check DESTDIR support)"; \ | |
| 641 | + fi ; \ | |
| 642 | + $(distuninstallcheck_listfiles) ; \ | |
| 643 | + exit 1; } >&2 | |
| 644 | +distcleancheck: distclean | |
| 645 | + @if test '$(srcdir)' = . ; then \ | |
| 646 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
| 647 | + exit 1 ; \ | |
| 648 | + fi | |
| 649 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
| 650 | + || { echo "ERROR: files left in build directory after distclean:" ; \ | |
| 651 | + $(distcleancheck_listfiles) ; \ | |
| 652 | + exit 1; } >&2 | |
| 653 | +check-am: all-am | |
| 654 | +check: check-recursive | |
| 655 | +all-am: Makefile | |
| 656 | +installdirs: installdirs-recursive | |
| 657 | +installdirs-am: | |
| 658 | +install: install-recursive | |
| 659 | +install-exec: install-exec-recursive | |
| 660 | +install-data: install-data-recursive | |
| 661 | +uninstall: uninstall-recursive | |
| 662 | + | |
| 663 | +install-am: all-am | |
| 664 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
| 665 | + | |
| 666 | +installcheck: installcheck-recursive | |
| 667 | +install-strip: | |
| 668 | + if test -z '$(STRIP)'; then \ | |
| 669 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
| 670 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
| 671 | + install; \ | |
| 672 | + else \ | |
| 673 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
| 674 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
| 675 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
| 676 | + fi | |
| 677 | +mostlyclean-generic: | |
| 678 | + | |
| 679 | +clean-generic: | |
| 680 | + | |
| 681 | +distclean-generic: | |
| 682 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
| 683 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
| 684 | + | |
| 685 | +maintainer-clean-generic: | |
| 686 | + @echo "This command is intended for maintainers to use" | |
| 687 | + @echo "it deletes files that may require special tools to rebuild." | |
| 688 | + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | |
| 689 | +clean: clean-recursive | |
| 690 | + | |
| 691 | +clean-am: clean-generic mostlyclean-am | |
| 692 | + | |
| 693 | +distclean: distclean-recursive | |
| 694 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
| 695 | + -rm -f Makefile | |
| 696 | +distclean-am: clean-am distclean-generic distclean-tags | |
| 697 | + | |
| 698 | +dvi: dvi-recursive | |
| 699 | + | |
| 700 | +dvi-am: | |
| 701 | + | |
| 702 | +html: html-recursive | |
| 703 | + | |
| 704 | +html-am: | |
| 705 | + | |
| 706 | +info: info-recursive | |
| 707 | + | |
| 708 | +info-am: | |
| 709 | + | |
| 710 | +install-data-am: | |
| 711 | + | |
| 712 | +install-dvi: install-dvi-recursive | |
| 713 | + | |
| 714 | +install-dvi-am: | |
| 715 | + | |
| 716 | +install-exec-am: | |
| 717 | + | |
| 718 | +install-html: install-html-recursive | |
| 719 | + | |
| 720 | +install-html-am: | |
| 721 | + | |
| 722 | +install-info: install-info-recursive | |
| 723 | + | |
| 724 | +install-info-am: | |
| 725 | + | |
| 726 | +install-man: | |
| 727 | + | |
| 728 | +install-pdf: install-pdf-recursive | |
| 729 | + | |
| 730 | +install-pdf-am: | |
| 731 | + | |
| 732 | +install-ps: install-ps-recursive | |
| 733 | + | |
| 734 | +install-ps-am: | |
| 735 | + | |
| 736 | +installcheck-am: | |
| 737 | + | |
| 738 | +maintainer-clean: maintainer-clean-recursive | |
| 739 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
| 740 | + -rm -rf $(top_srcdir)/autom4te.cache | |
| 741 | + -rm -f Makefile | |
| 742 | +maintainer-clean-am: distclean-am maintainer-clean-generic | |
| 743 | + | |
| 744 | +mostlyclean: mostlyclean-recursive | |
| 745 | + | |
| 746 | +mostlyclean-am: mostlyclean-generic | |
| 747 | + | |
| 748 | +pdf: pdf-recursive | |
| 749 | + | |
| 750 | +pdf-am: | |
| 751 | + | |
| 752 | +ps: ps-recursive | |
| 753 | + | |
| 754 | +ps-am: | |
| 755 | + | |
| 756 | +uninstall-am: | |
| 757 | + | |
| 758 | +.MAKE: $(am__recursive_targets) install-am install-strip | |
| 759 | + | |
| 760 | +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
| 761 | + am--refresh check check-am clean clean-cscope clean-generic \ | |
| 762 | + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ | |
| 763 | + dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ | |
| 764 | + distcheck distclean distclean-generic distclean-tags \ | |
| 765 | + distcleancheck distdir distuninstallcheck dvi dvi-am html \ | |
| 766 | + html-am info info-am install install-am install-data \ | |
| 767 | + install-data-am install-dvi install-dvi-am install-exec \ | |
| 768 | + install-exec-am install-html install-html-am install-info \ | |
| 769 | + install-info-am install-man install-pdf install-pdf-am \ | |
| 770 | + install-ps install-ps-am install-strip installcheck \ | |
| 771 | + installcheck-am installdirs installdirs-am maintainer-clean \ | |
| 772 | + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
| 773 | + pdf-am ps ps-am tags tags-am uninstall uninstall-am | |
| 774 | + | |
| 775 | +.PRECIOUS: Makefile | |
| 776 | + | |
| 777 | + | |
| 778 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. | |
| 779 | +# Otherwise a system limit (for SysV at least) may be exceeded. | |
| 780 | +.NOEXPORT: | ... | ... |
asio-1.18.1/README
0 → 100644
asio-1.18.1/aclocal.m4
0 → 100644
| 1 | +++ a/asio-1.18.1/aclocal.m4 | |
| 1 | +# generated automatically by aclocal 1.16.1 -*- Autoconf -*- | |
| 2 | + | |
| 3 | +# Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
| 4 | + | |
| 5 | +# This file is free software; the Free Software Foundation | |
| 6 | +# gives unlimited permission to copy and/or distribute it, | |
| 7 | +# with or without modifications, as long as this notice is preserved. | |
| 8 | + | |
| 9 | +# This program is distributed in the hope that it will be useful, | |
| 10 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
| 11 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
| 12 | +# PARTICULAR PURPOSE. | |
| 13 | + | |
| 14 | +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
| 15 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
| 16 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
| 17 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
| 18 | +[m4_warning([this file was generated for autoconf 2.69. | |
| 19 | +You have another version of autoconf. It may work, but is not guaranteed to. | |
| 20 | +If you have problems, you may need to regenerate the build system entirely. | |
| 21 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
| 22 | + | |
| 23 | +# Copyright (C) 2002-2018 Free Software Foundation, Inc. | |
| 24 | +# | |
| 25 | +# This file is free software; the Free Software Foundation | |
| 26 | +# gives unlimited permission to copy and/or distribute it, | |
| 27 | +# with or without modifications, as long as this notice is preserved. | |
| 28 | + | |
| 29 | +# AM_AUTOMAKE_VERSION(VERSION) | |
| 30 | +# ---------------------------- | |
| 31 | +# Automake X.Y traces this macro to ensure aclocal.m4 has been | |
| 32 | +# generated from the m4 files accompanying Automake X.Y. | |
| 33 | +# (This private macro should not be called outside this file.) | |
| 34 | +AC_DEFUN([AM_AUTOMAKE_VERSION], | |
| 35 | +[am__api_version='1.16' | |
| 36 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
| 37 | +dnl require some minimum version. Point them to the right macro. | |
| 38 | +m4_if([$1], [1.16.1], [], | |
| 39 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
| 40 | +]) | |
| 41 | + | |
| 42 | +# _AM_AUTOCONF_VERSION(VERSION) | |
| 43 | +# ----------------------------- | |
| 44 | +# aclocal traces this macro to find the Autoconf version. | |
| 45 | +# This is a private macro too. Using m4_define simplifies | |
| 46 | +# the logic in aclocal, which can simply ignore this definition. | |
| 47 | +m4_define([_AM_AUTOCONF_VERSION], []) | |
| 48 | + | |
| 49 | +# AM_SET_CURRENT_AUTOMAKE_VERSION | |
| 50 | +# ------------------------------- | |
| 51 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
| 52 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
| 53 | +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
| 54 | +[AM_AUTOMAKE_VERSION([1.16.1])dnl | |
| 55 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
| 56 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
| 57 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
| 58 | + | |
| 59 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
| 60 | + | |
| 61 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 62 | +# | |
| 63 | +# This file is free software; the Free Software Foundation | |
| 64 | +# gives unlimited permission to copy and/or distribute it, | |
| 65 | +# with or without modifications, as long as this notice is preserved. | |
| 66 | + | |
| 67 | +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
| 68 | +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
| 69 | +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
| 70 | +# | |
| 71 | +# Of course, Automake must honor this variable whenever it calls a | |
| 72 | +# tool from the auxiliary directory. The problem is that $srcdir (and | |
| 73 | +# therefore $ac_aux_dir as well) can be either absolute or relative, | |
| 74 | +# depending on how configure is run. This is pretty annoying, since | |
| 75 | +# it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
| 76 | +# source directory, any form will work fine, but in subdirectories a | |
| 77 | +# relative path needs to be adjusted first. | |
| 78 | +# | |
| 79 | +# $ac_aux_dir/missing | |
| 80 | +# fails when called from a subdirectory if $ac_aux_dir is relative | |
| 81 | +# $top_srcdir/$ac_aux_dir/missing | |
| 82 | +# fails if $ac_aux_dir is absolute, | |
| 83 | +# fails when called from a subdirectory in a VPATH build with | |
| 84 | +# a relative $ac_aux_dir | |
| 85 | +# | |
| 86 | +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
| 87 | +# are both prefixed by $srcdir. In an in-source build this is usually | |
| 88 | +# harmless because $srcdir is '.', but things will broke when you | |
| 89 | +# start a VPATH build or use an absolute $srcdir. | |
| 90 | +# | |
| 91 | +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
| 92 | +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
| 93 | +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
| 94 | +# and then we would define $MISSING as | |
| 95 | +# MISSING="\${SHELL} $am_aux_dir/missing" | |
| 96 | +# This will work as long as MISSING is not called from configure, because | |
| 97 | +# unfortunately $(top_srcdir) has no meaning in configure. | |
| 98 | +# However there are other variables, like CC, which are often used in | |
| 99 | +# configure, and could therefore not use this "fixed" $ac_aux_dir. | |
| 100 | +# | |
| 101 | +# Another solution, used here, is to always expand $ac_aux_dir to an | |
| 102 | +# absolute PATH. The drawback is that using absolute paths prevent a | |
| 103 | +# configured tree to be moved without reconfiguration. | |
| 104 | + | |
| 105 | +AC_DEFUN([AM_AUX_DIR_EXPAND], | |
| 106 | +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
| 107 | +# Expand $ac_aux_dir to an absolute path. | |
| 108 | +am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
| 109 | +]) | |
| 110 | + | |
| 111 | +# AM_CONDITIONAL -*- Autoconf -*- | |
| 112 | + | |
| 113 | +# Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
| 114 | +# | |
| 115 | +# This file is free software; the Free Software Foundation | |
| 116 | +# gives unlimited permission to copy and/or distribute it, | |
| 117 | +# with or without modifications, as long as this notice is preserved. | |
| 118 | + | |
| 119 | +# AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
| 120 | +# ------------------------------------- | |
| 121 | +# Define a conditional. | |
| 122 | +AC_DEFUN([AM_CONDITIONAL], | |
| 123 | +[AC_PREREQ([2.52])dnl | |
| 124 | + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
| 125 | + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
| 126 | +AC_SUBST([$1_TRUE])dnl | |
| 127 | +AC_SUBST([$1_FALSE])dnl | |
| 128 | +_AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
| 129 | +_AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
| 130 | +m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
| 131 | +if $2; then | |
| 132 | + $1_TRUE= | |
| 133 | + $1_FALSE='#' | |
| 134 | +else | |
| 135 | + $1_TRUE='#' | |
| 136 | + $1_FALSE= | |
| 137 | +fi | |
| 138 | +AC_CONFIG_COMMANDS_PRE( | |
| 139 | +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
| 140 | + AC_MSG_ERROR([[conditional "$1" was never defined. | |
| 141 | +Usually this means the macro was only invoked conditionally.]]) | |
| 142 | +fi])]) | |
| 143 | + | |
| 144 | +# Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
| 145 | +# | |
| 146 | +# This file is free software; the Free Software Foundation | |
| 147 | +# gives unlimited permission to copy and/or distribute it, | |
| 148 | +# with or without modifications, as long as this notice is preserved. | |
| 149 | + | |
| 150 | + | |
| 151 | +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
| 152 | +# written in clear, in which case automake, when reading aclocal.m4, | |
| 153 | +# will think it sees a *use*, and therefore will trigger all it's | |
| 154 | +# C support machinery. Also note that it means that autoscan, seeing | |
| 155 | +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
| 156 | + | |
| 157 | + | |
| 158 | +# _AM_DEPENDENCIES(NAME) | |
| 159 | +# ---------------------- | |
| 160 | +# See how the compiler implements dependency checking. | |
| 161 | +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
| 162 | +# We try a few techniques and use that to set a single cache variable. | |
| 163 | +# | |
| 164 | +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
| 165 | +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
| 166 | +# dependency, and given that the user is not expected to run this macro, | |
| 167 | +# just rely on AC_PROG_CC. | |
| 168 | +AC_DEFUN([_AM_DEPENDENCIES], | |
| 169 | +[AC_REQUIRE([AM_SET_DEPDIR])dnl | |
| 170 | +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
| 171 | +AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
| 172 | +AC_REQUIRE([AM_DEP_TRACK])dnl | |
| 173 | + | |
| 174 | +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
| 175 | + [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
| 176 | + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
| 177 | + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
| 178 | + [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
| 179 | + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
| 180 | + [depcc="$$1" am_compiler_list=]) | |
| 181 | + | |
| 182 | +AC_CACHE_CHECK([dependency style of $depcc], | |
| 183 | + [am_cv_$1_dependencies_compiler_type], | |
| 184 | +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
| 185 | + # We make a subdir and do the tests there. Otherwise we can end up | |
| 186 | + # making bogus files that we don't know about and never remove. For | |
| 187 | + # instance it was reported that on HP-UX the gcc test will end up | |
| 188 | + # making a dummy file named 'D' -- because '-MD' means "put the output | |
| 189 | + # in D". | |
| 190 | + rm -rf conftest.dir | |
| 191 | + mkdir conftest.dir | |
| 192 | + # Copy depcomp to subdir because otherwise we won't find it if we're | |
| 193 | + # using a relative directory. | |
| 194 | + cp "$am_depcomp" conftest.dir | |
| 195 | + cd conftest.dir | |
| 196 | + # We will build objects and dependencies in a subdirectory because | |
| 197 | + # it helps to detect inapplicable dependency modes. For instance | |
| 198 | + # both Tru64's cc and ICC support -MD to output dependencies as a | |
| 199 | + # side effect of compilation, but ICC will put the dependencies in | |
| 200 | + # the current directory while Tru64 will put them in the object | |
| 201 | + # directory. | |
| 202 | + mkdir sub | |
| 203 | + | |
| 204 | + am_cv_$1_dependencies_compiler_type=none | |
| 205 | + if test "$am_compiler_list" = ""; then | |
| 206 | + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
| 207 | + fi | |
| 208 | + am__universal=false | |
| 209 | + m4_case([$1], [CC], | |
| 210 | + [case " $depcc " in #( | |
| 211 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 212 | + esac], | |
| 213 | + [CXX], | |
| 214 | + [case " $depcc " in #( | |
| 215 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 216 | + esac]) | |
| 217 | + | |
| 218 | + for depmode in $am_compiler_list; do | |
| 219 | + # Setup a source with many dependencies, because some compilers | |
| 220 | + # like to wrap large dependency lists on column 80 (with \), and | |
| 221 | + # we should not choose a depcomp mode which is confused by this. | |
| 222 | + # | |
| 223 | + # We need to recreate these files for each test, as the compiler may | |
| 224 | + # overwrite some of them when testing with obscure command lines. | |
| 225 | + # This happens at least with the AIX C compiler. | |
| 226 | + : > sub/conftest.c | |
| 227 | + for i in 1 2 3 4 5 6; do | |
| 228 | + echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
| 229 | + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
| 230 | + # Solaris 10 /bin/sh. | |
| 231 | + echo '/* dummy */' > sub/conftst$i.h | |
| 232 | + done | |
| 233 | + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
| 234 | + | |
| 235 | + # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
| 236 | + # mode. It turns out that the SunPro C++ compiler does not properly | |
| 237 | + # handle '-M -o', and we need to detect this. Also, some Intel | |
| 238 | + # versions had trouble with output in subdirs. | |
| 239 | + am__obj=sub/conftest.${OBJEXT-o} | |
| 240 | + am__minus_obj="-o $am__obj" | |
| 241 | + case $depmode in | |
| 242 | + gcc) | |
| 243 | + # This depmode causes a compiler race in universal mode. | |
| 244 | + test "$am__universal" = false || continue | |
| 245 | + ;; | |
| 246 | + nosideeffect) | |
| 247 | + # After this tag, mechanisms are not by side-effect, so they'll | |
| 248 | + # only be used when explicitly requested. | |
| 249 | + if test "x$enable_dependency_tracking" = xyes; then | |
| 250 | + continue | |
| 251 | + else | |
| 252 | + break | |
| 253 | + fi | |
| 254 | + ;; | |
| 255 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
| 256 | + # This compiler won't grok '-c -o', but also, the minuso test has | |
| 257 | + # not run yet. These depmodes are late enough in the game, and | |
| 258 | + # so weak that their functioning should not be impacted. | |
| 259 | + am__obj=conftest.${OBJEXT-o} | |
| 260 | + am__minus_obj= | |
| 261 | + ;; | |
| 262 | + none) break ;; | |
| 263 | + esac | |
| 264 | + if depmode=$depmode \ | |
| 265 | + source=sub/conftest.c object=$am__obj \ | |
| 266 | + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
| 267 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
| 268 | + >/dev/null 2>conftest.err && | |
| 269 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
| 270 | + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
| 271 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
| 272 | + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
| 273 | + # icc doesn't choke on unknown options, it will just issue warnings | |
| 274 | + # or remarks (even with -Werror). So we grep stderr for any message | |
| 275 | + # that says an option was ignored or not supported. | |
| 276 | + # When given -MP, icc 7.0 and 7.1 complain thusly: | |
| 277 | + # icc: Command line warning: ignoring option '-M'; no argument required | |
| 278 | + # The diagnosis changed in icc 8.0: | |
| 279 | + # icc: Command line remark: option '-MP' not supported | |
| 280 | + if (grep 'ignoring option' conftest.err || | |
| 281 | + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
| 282 | + am_cv_$1_dependencies_compiler_type=$depmode | |
| 283 | + break | |
| 284 | + fi | |
| 285 | + fi | |
| 286 | + done | |
| 287 | + | |
| 288 | + cd .. | |
| 289 | + rm -rf conftest.dir | |
| 290 | +else | |
| 291 | + am_cv_$1_dependencies_compiler_type=none | |
| 292 | +fi | |
| 293 | +]) | |
| 294 | +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
| 295 | +AM_CONDITIONAL([am__fastdep$1], [ | |
| 296 | + test "x$enable_dependency_tracking" != xno \ | |
| 297 | + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
| 298 | +]) | |
| 299 | + | |
| 300 | + | |
| 301 | +# AM_SET_DEPDIR | |
| 302 | +# ------------- | |
| 303 | +# Choose a directory name for dependency files. | |
| 304 | +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
| 305 | +AC_DEFUN([AM_SET_DEPDIR], | |
| 306 | +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
| 307 | +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
| 308 | +]) | |
| 309 | + | |
| 310 | + | |
| 311 | +# AM_DEP_TRACK | |
| 312 | +# ------------ | |
| 313 | +AC_DEFUN([AM_DEP_TRACK], | |
| 314 | +[AC_ARG_ENABLE([dependency-tracking], [dnl | |
| 315 | +AS_HELP_STRING( | |
| 316 | + [--enable-dependency-tracking], | |
| 317 | + [do not reject slow dependency extractors]) | |
| 318 | +AS_HELP_STRING( | |
| 319 | + [--disable-dependency-tracking], | |
| 320 | + [speeds up one-time build])]) | |
| 321 | +if test "x$enable_dependency_tracking" != xno; then | |
| 322 | + am_depcomp="$ac_aux_dir/depcomp" | |
| 323 | + AMDEPBACKSLASH='\' | |
| 324 | + am__nodep='_no' | |
| 325 | +fi | |
| 326 | +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
| 327 | +AC_SUBST([AMDEPBACKSLASH])dnl | |
| 328 | +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
| 329 | +AC_SUBST([am__nodep])dnl | |
| 330 | +_AM_SUBST_NOTMAKE([am__nodep])dnl | |
| 331 | +]) | |
| 332 | + | |
| 333 | +# Generate code to set up dependency tracking. -*- Autoconf -*- | |
| 334 | + | |
| 335 | +# Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
| 336 | +# | |
| 337 | +# This file is free software; the Free Software Foundation | |
| 338 | +# gives unlimited permission to copy and/or distribute it, | |
| 339 | +# with or without modifications, as long as this notice is preserved. | |
| 340 | + | |
| 341 | +# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 342 | +# ------------------------------ | |
| 343 | +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 344 | +[{ | |
| 345 | + # Older Autoconf quotes --file arguments for eval, but not when files | |
| 346 | + # are listed without --file. Let's play safe and only enable the eval | |
| 347 | + # if we detect the quoting. | |
| 348 | + # TODO: see whether this extra hack can be removed once we start | |
| 349 | + # requiring Autoconf 2.70 or later. | |
| 350 | + AS_CASE([$CONFIG_FILES], | |
| 351 | + [*\'*], [eval set x "$CONFIG_FILES"], | |
| 352 | + [*], [set x $CONFIG_FILES]) | |
| 353 | + shift | |
| 354 | + # Used to flag and report bootstrapping failures. | |
| 355 | + am_rc=0 | |
| 356 | + for am_mf | |
| 357 | + do | |
| 358 | + # Strip MF so we end up with the name of the file. | |
| 359 | + am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` | |
| 360 | + # Check whether this is an Automake generated Makefile which includes | |
| 361 | + # dependency-tracking related rules and includes. | |
| 362 | + # Grep'ing the whole file directly is not great: AIX grep has a line | |
| 363 | + # limit of 2048, but all sed's we know have understand at least 4000. | |
| 364 | + sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ | |
| 365 | + || continue | |
| 366 | + am_dirpart=`AS_DIRNAME(["$am_mf"])` | |
| 367 | + am_filepart=`AS_BASENAME(["$am_mf"])` | |
| 368 | + AM_RUN_LOG([cd "$am_dirpart" \ | |
| 369 | + && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
| 370 | + | $MAKE -f - am--depfiles]) || am_rc=$? | |
| 371 | + done | |
| 372 | + if test $am_rc -ne 0; then | |
| 373 | + AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments | |
| 374 | + for automatic dependency tracking. Try re-running configure with the | |
| 375 | + '--disable-dependency-tracking' option to at least be able to build | |
| 376 | + the package (albeit without support for automatic dependency tracking).]) | |
| 377 | + fi | |
| 378 | + AS_UNSET([am_dirpart]) | |
| 379 | + AS_UNSET([am_filepart]) | |
| 380 | + AS_UNSET([am_mf]) | |
| 381 | + AS_UNSET([am_rc]) | |
| 382 | + rm -f conftest-deps.mk | |
| 383 | +} | |
| 384 | +])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 385 | + | |
| 386 | + | |
| 387 | +# AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 388 | +# ----------------------------- | |
| 389 | +# This macro should only be invoked once -- use via AC_REQUIRE. | |
| 390 | +# | |
| 391 | +# This code is only required when automatic dependency tracking is enabled. | |
| 392 | +# This creates each '.Po' and '.Plo' makefile fragment that we'll need in | |
| 393 | +# order to bootstrap the dependency handling code. | |
| 394 | +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 395 | +[AC_CONFIG_COMMANDS([depfiles], | |
| 396 | + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 397 | + [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) | |
| 398 | + | |
| 399 | +# Do all the work for Automake. -*- Autoconf -*- | |
| 400 | + | |
| 401 | +# Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
| 402 | +# | |
| 403 | +# This file is free software; the Free Software Foundation | |
| 404 | +# gives unlimited permission to copy and/or distribute it, | |
| 405 | +# with or without modifications, as long as this notice is preserved. | |
| 406 | + | |
| 407 | +# This macro actually does too much. Some checks are only needed if | |
| 408 | +# your package does certain things. But this isn't really a big deal. | |
| 409 | + | |
| 410 | +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
| 411 | +m4_define([AC_PROG_CC], | |
| 412 | +m4_defn([AC_PROG_CC]) | |
| 413 | +[_AM_PROG_CC_C_O | |
| 414 | +]) | |
| 415 | + | |
| 416 | +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
| 417 | +# AM_INIT_AUTOMAKE([OPTIONS]) | |
| 418 | +# ----------------------------------------------- | |
| 419 | +# The call with PACKAGE and VERSION arguments is the old style | |
| 420 | +# call (pre autoconf-2.50), which is being phased out. PACKAGE | |
| 421 | +# and VERSION should now be passed to AC_INIT and removed from | |
| 422 | +# the call to AM_INIT_AUTOMAKE. | |
| 423 | +# We support both call styles for the transition. After | |
| 424 | +# the next Automake release, Autoconf can make the AC_INIT | |
| 425 | +# arguments mandatory, and then we can depend on a new Autoconf | |
| 426 | +# release and drop the old call support. | |
| 427 | +AC_DEFUN([AM_INIT_AUTOMAKE], | |
| 428 | +[AC_PREREQ([2.65])dnl | |
| 429 | +dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
| 430 | +dnl the ones we care about. | |
| 431 | +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
| 432 | +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
| 433 | +AC_REQUIRE([AC_PROG_INSTALL])dnl | |
| 434 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
| 435 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
| 436 | + # is not polluted with repeated "-I." | |
| 437 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
| 438 | + # test to see if srcdir already configured | |
| 439 | + if test -f $srcdir/config.status; then | |
| 440 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
| 441 | + fi | |
| 442 | +fi | |
| 443 | + | |
| 444 | +# test whether we have cygpath | |
| 445 | +if test -z "$CYGPATH_W"; then | |
| 446 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
| 447 | + CYGPATH_W='cygpath -w' | |
| 448 | + else | |
| 449 | + CYGPATH_W=echo | |
| 450 | + fi | |
| 451 | +fi | |
| 452 | +AC_SUBST([CYGPATH_W]) | |
| 453 | + | |
| 454 | +# Define the identity of the package. | |
| 455 | +dnl Distinguish between old-style and new-style calls. | |
| 456 | +m4_ifval([$2], | |
| 457 | +[AC_DIAGNOSE([obsolete], | |
| 458 | + [$0: two- and three-arguments forms are deprecated.]) | |
| 459 | +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
| 460 | + AC_SUBST([PACKAGE], [$1])dnl | |
| 461 | + AC_SUBST([VERSION], [$2])], | |
| 462 | +[_AM_SET_OPTIONS([$1])dnl | |
| 463 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
| 464 | +m4_if( | |
| 465 | + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
| 466 | + [ok:ok],, | |
| 467 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
| 468 | + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
| 469 | + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
| 470 | + | |
| 471 | +_AM_IF_OPTION([no-define],, | |
| 472 | +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
| 473 | + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
| 474 | + | |
| 475 | +# Some tools Automake needs. | |
| 476 | +AC_REQUIRE([AM_SANITY_CHECK])dnl | |
| 477 | +AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
| 478 | +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
| 479 | +AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
| 480 | +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
| 481 | +AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
| 482 | +AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
| 483 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
| 484 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
| 485 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
| 486 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
| 487 | +# dies out for good. For more background, see: | |
| 488 | +# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
| 489 | +# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
| 490 | +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
| 491 | +# We need awk for the "check" target (and possibly the TAP driver). The | |
| 492 | +# system "awk" is bad on some platforms. | |
| 493 | +AC_REQUIRE([AC_PROG_AWK])dnl | |
| 494 | +AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
| 495 | +AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
| 496 | +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
| 497 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
| 498 | + [_AM_PROG_TAR([v7])])]) | |
| 499 | +_AM_IF_OPTION([no-dependencies],, | |
| 500 | +[AC_PROVIDE_IFELSE([AC_PROG_CC], | |
| 501 | + [_AM_DEPENDENCIES([CC])], | |
| 502 | + [m4_define([AC_PROG_CC], | |
| 503 | + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
| 504 | +AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
| 505 | + [_AM_DEPENDENCIES([CXX])], | |
| 506 | + [m4_define([AC_PROG_CXX], | |
| 507 | + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
| 508 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
| 509 | + [_AM_DEPENDENCIES([OBJC])], | |
| 510 | + [m4_define([AC_PROG_OBJC], | |
| 511 | + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
| 512 | +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
| 513 | + [_AM_DEPENDENCIES([OBJCXX])], | |
| 514 | + [m4_define([AC_PROG_OBJCXX], | |
| 515 | + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
| 516 | +]) | |
| 517 | +AC_REQUIRE([AM_SILENT_RULES])dnl | |
| 518 | +dnl The testsuite driver may need to know about EXEEXT, so add the | |
| 519 | +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
| 520 | +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
| 521 | +AC_CONFIG_COMMANDS_PRE(dnl | |
| 522 | +[m4_provide_if([_AM_COMPILER_EXEEXT], | |
| 523 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
| 524 | + | |
| 525 | +# POSIX will say in a future version that running "rm -f" with no argument | |
| 526 | +# is OK; and we want to be able to make that assumption in our Makefile | |
| 527 | +# recipes. So use an aggressive probe to check that the usage we want is | |
| 528 | +# actually supported "in the wild" to an acceptable degree. | |
| 529 | +# See automake bug#10828. | |
| 530 | +# To make any issue more visible, cause the running configure to be aborted | |
| 531 | +# by default if the 'rm' program in use doesn't match our expectations; the | |
| 532 | +# user can still override this though. | |
| 533 | +if rm -f && rm -fr && rm -rf; then : OK; else | |
| 534 | + cat >&2 <<'END' | |
| 535 | +Oops! | |
| 536 | + | |
| 537 | +Your 'rm' program seems unable to run without file operands specified | |
| 538 | +on the command line, even when the '-f' option is present. This is contrary | |
| 539 | +to the behaviour of most rm programs out there, and not conforming with | |
| 540 | +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
| 541 | + | |
| 542 | +Please tell bug-automake@gnu.org about your system, including the value | |
| 543 | +of your $PATH and any error possibly output before this message. This | |
| 544 | +can help us improve future automake versions. | |
| 545 | + | |
| 546 | +END | |
| 547 | + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
| 548 | + echo 'Configuration will proceed anyway, since you have set the' >&2 | |
| 549 | + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
| 550 | + echo >&2 | |
| 551 | + else | |
| 552 | + cat >&2 <<'END' | |
| 553 | +Aborting the configuration process, to ensure you take notice of the issue. | |
| 554 | + | |
| 555 | +You can download and install GNU coreutils to get an 'rm' implementation | |
| 556 | +that behaves properly: <https://www.gnu.org/software/coreutils/>. | |
| 557 | + | |
| 558 | +If you want to complete the configuration process using your problematic | |
| 559 | +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
| 560 | +to "yes", and re-run configure. | |
| 561 | + | |
| 562 | +END | |
| 563 | + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
| 564 | + fi | |
| 565 | +fi | |
| 566 | +dnl The trailing newline in this macro's definition is deliberate, for | |
| 567 | +dnl backward compatibility and to allow trailing 'dnl'-style comments | |
| 568 | +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
| 569 | +]) | |
| 570 | + | |
| 571 | +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
| 572 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
| 573 | +dnl mangled by Autoconf and run in a shell conditional statement. | |
| 574 | +m4_define([_AC_COMPILER_EXEEXT], | |
| 575 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
| 576 | + | |
| 577 | +# When config.status generates a header, we must update the stamp-h file. | |
| 578 | +# This file resides in the same directory as the config header | |
| 579 | +# that is generated. The stamp files are numbered to have different names. | |
| 580 | + | |
| 581 | +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
| 582 | +# loop where config.status creates the headers, so we can generate | |
| 583 | +# our stamp files there. | |
| 584 | +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
| 585 | +[# Compute $1's index in $config_headers. | |
| 586 | +_am_arg=$1 | |
| 587 | +_am_stamp_count=1 | |
| 588 | +for _am_header in $config_headers :; do | |
| 589 | + case $_am_header in | |
| 590 | + $_am_arg | $_am_arg:* ) | |
| 591 | + break ;; | |
| 592 | + * ) | |
| 593 | + _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
| 594 | + esac | |
| 595 | +done | |
| 596 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
| 597 | + | |
| 598 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 599 | +# | |
| 600 | +# This file is free software; the Free Software Foundation | |
| 601 | +# gives unlimited permission to copy and/or distribute it, | |
| 602 | +# with or without modifications, as long as this notice is preserved. | |
| 603 | + | |
| 604 | +# AM_PROG_INSTALL_SH | |
| 605 | +# ------------------ | |
| 606 | +# Define $install_sh. | |
| 607 | +AC_DEFUN([AM_PROG_INSTALL_SH], | |
| 608 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 609 | +if test x"${install_sh+set}" != xset; then | |
| 610 | + case $am_aux_dir in | |
| 611 | + *\ * | *\ *) | |
| 612 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
| 613 | + *) | |
| 614 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
| 615 | + esac | |
| 616 | +fi | |
| 617 | +AC_SUBST([install_sh])]) | |
| 618 | + | |
| 619 | +# Copyright (C) 2003-2018 Free Software Foundation, Inc. | |
| 620 | +# | |
| 621 | +# This file is free software; the Free Software Foundation | |
| 622 | +# gives unlimited permission to copy and/or distribute it, | |
| 623 | +# with or without modifications, as long as this notice is preserved. | |
| 624 | + | |
| 625 | +# Check whether the underlying file-system supports filenames | |
| 626 | +# with a leading dot. For instance MS-DOS doesn't. | |
| 627 | +AC_DEFUN([AM_SET_LEADING_DOT], | |
| 628 | +[rm -rf .tst 2>/dev/null | |
| 629 | +mkdir .tst 2>/dev/null | |
| 630 | +if test -d .tst; then | |
| 631 | + am__leading_dot=. | |
| 632 | +else | |
| 633 | + am__leading_dot=_ | |
| 634 | +fi | |
| 635 | +rmdir .tst 2>/dev/null | |
| 636 | +AC_SUBST([am__leading_dot])]) | |
| 637 | + | |
| 638 | +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
| 639 | +# From Jim Meyering | |
| 640 | + | |
| 641 | +# Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
| 642 | +# | |
| 643 | +# This file is free software; the Free Software Foundation | |
| 644 | +# gives unlimited permission to copy and/or distribute it, | |
| 645 | +# with or without modifications, as long as this notice is preserved. | |
| 646 | + | |
| 647 | +# AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
| 648 | +# ---------------------------------- | |
| 649 | +# Control maintainer-specific portions of Makefiles. | |
| 650 | +# Default is to disable them, unless 'enable' is passed literally. | |
| 651 | +# For symmetry, 'disable' may be passed as well. Anyway, the user | |
| 652 | +# can override the default with the --enable/--disable switch. | |
| 653 | +AC_DEFUN([AM_MAINTAINER_MODE], | |
| 654 | +[m4_case(m4_default([$1], [disable]), | |
| 655 | + [enable], [m4_define([am_maintainer_other], [disable])], | |
| 656 | + [disable], [m4_define([am_maintainer_other], [enable])], | |
| 657 | + [m4_define([am_maintainer_other], [enable]) | |
| 658 | + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
| 659 | +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | |
| 660 | + dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
| 661 | + AC_ARG_ENABLE([maintainer-mode], | |
| 662 | + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], | |
| 663 | + am_maintainer_other[ make rules and dependencies not useful | |
| 664 | + (and sometimes confusing) to the casual installer])], | |
| 665 | + [USE_MAINTAINER_MODE=$enableval], | |
| 666 | + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
| 667 | + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
| 668 | + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
| 669 | + MAINT=$MAINTAINER_MODE_TRUE | |
| 670 | + AC_SUBST([MAINT])dnl | |
| 671 | +] | |
| 672 | +) | |
| 673 | + | |
| 674 | +# Check to see how 'make' treats includes. -*- Autoconf -*- | |
| 675 | + | |
| 676 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 677 | +# | |
| 678 | +# This file is free software; the Free Software Foundation | |
| 679 | +# gives unlimited permission to copy and/or distribute it, | |
| 680 | +# with or without modifications, as long as this notice is preserved. | |
| 681 | + | |
| 682 | +# AM_MAKE_INCLUDE() | |
| 683 | +# ----------------- | |
| 684 | +# Check whether make has an 'include' directive that can support all | |
| 685 | +# the idioms we need for our automatic dependency tracking code. | |
| 686 | +AC_DEFUN([AM_MAKE_INCLUDE], | |
| 687 | +[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) | |
| 688 | +cat > confinc.mk << 'END' | |
| 689 | +am__doit: | |
| 690 | + @echo this is the am__doit target >confinc.out | |
| 691 | +.PHONY: am__doit | |
| 692 | +END | |
| 693 | +am__include="#" | |
| 694 | +am__quote= | |
| 695 | +# BSD make does it like this. | |
| 696 | +echo '.include "confinc.mk" # ignored' > confmf.BSD | |
| 697 | +# Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
| 698 | +echo 'include confinc.mk # ignored' > confmf.GNU | |
| 699 | +_am_result=no | |
| 700 | +for s in GNU BSD; do | |
| 701 | + AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) | |
| 702 | + AS_CASE([$?:`cat confinc.out 2>/dev/null`], | |
| 703 | + ['0:this is the am__doit target'], | |
| 704 | + [AS_CASE([$s], | |
| 705 | + [BSD], [am__include='.include' am__quote='"'], | |
| 706 | + [am__include='include' am__quote=''])]) | |
| 707 | + if test "$am__include" != "#"; then | |
| 708 | + _am_result="yes ($s style)" | |
| 709 | + break | |
| 710 | + fi | |
| 711 | +done | |
| 712 | +rm -f confinc.* confmf.* | |
| 713 | +AC_MSG_RESULT([${_am_result}]) | |
| 714 | +AC_SUBST([am__include])]) | |
| 715 | +AC_SUBST([am__quote])]) | |
| 716 | + | |
| 717 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
| 718 | + | |
| 719 | +# Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
| 720 | +# | |
| 721 | +# This file is free software; the Free Software Foundation | |
| 722 | +# gives unlimited permission to copy and/or distribute it, | |
| 723 | +# with or without modifications, as long as this notice is preserved. | |
| 724 | + | |
| 725 | +# AM_MISSING_PROG(NAME, PROGRAM) | |
| 726 | +# ------------------------------ | |
| 727 | +AC_DEFUN([AM_MISSING_PROG], | |
| 728 | +[AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
| 729 | +$1=${$1-"${am_missing_run}$2"} | |
| 730 | +AC_SUBST($1)]) | |
| 731 | + | |
| 732 | +# AM_MISSING_HAS_RUN | |
| 733 | +# ------------------ | |
| 734 | +# Define MISSING if not defined so far and test if it is modern enough. | |
| 735 | +# If it is, set am_missing_run to use it, otherwise, to nothing. | |
| 736 | +AC_DEFUN([AM_MISSING_HAS_RUN], | |
| 737 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 738 | +AC_REQUIRE_AUX_FILE([missing])dnl | |
| 739 | +if test x"${MISSING+set}" != xset; then | |
| 740 | + case $am_aux_dir in | |
| 741 | + *\ * | *\ *) | |
| 742 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
| 743 | + *) | |
| 744 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
| 745 | + esac | |
| 746 | +fi | |
| 747 | +# Use eval to expand $SHELL | |
| 748 | +if eval "$MISSING --is-lightweight"; then | |
| 749 | + am_missing_run="$MISSING " | |
| 750 | +else | |
| 751 | + am_missing_run= | |
| 752 | + AC_MSG_WARN(['missing' script is too old or missing]) | |
| 753 | +fi | |
| 754 | +]) | |
| 755 | + | |
| 756 | +# Helper functions for option handling. -*- Autoconf -*- | |
| 757 | + | |
| 758 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 759 | +# | |
| 760 | +# This file is free software; the Free Software Foundation | |
| 761 | +# gives unlimited permission to copy and/or distribute it, | |
| 762 | +# with or without modifications, as long as this notice is preserved. | |
| 763 | + | |
| 764 | +# _AM_MANGLE_OPTION(NAME) | |
| 765 | +# ----------------------- | |
| 766 | +AC_DEFUN([_AM_MANGLE_OPTION], | |
| 767 | +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
| 768 | + | |
| 769 | +# _AM_SET_OPTION(NAME) | |
| 770 | +# -------------------- | |
| 771 | +# Set option NAME. Presently that only means defining a flag for this option. | |
| 772 | +AC_DEFUN([_AM_SET_OPTION], | |
| 773 | +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
| 774 | + | |
| 775 | +# _AM_SET_OPTIONS(OPTIONS) | |
| 776 | +# ------------------------ | |
| 777 | +# OPTIONS is a space-separated list of Automake options. | |
| 778 | +AC_DEFUN([_AM_SET_OPTIONS], | |
| 779 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
| 780 | + | |
| 781 | +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
| 782 | +# ------------------------------------------- | |
| 783 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
| 784 | +AC_DEFUN([_AM_IF_OPTION], | |
| 785 | +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
| 786 | + | |
| 787 | +# Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
| 788 | +# | |
| 789 | +# This file is free software; the Free Software Foundation | |
| 790 | +# gives unlimited permission to copy and/or distribute it, | |
| 791 | +# with or without modifications, as long as this notice is preserved. | |
| 792 | + | |
| 793 | +# _AM_PROG_CC_C_O | |
| 794 | +# --------------- | |
| 795 | +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
| 796 | +# to automatically call this. | |
| 797 | +AC_DEFUN([_AM_PROG_CC_C_O], | |
| 798 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 799 | +AC_REQUIRE_AUX_FILE([compile])dnl | |
| 800 | +AC_LANG_PUSH([C])dnl | |
| 801 | +AC_CACHE_CHECK( | |
| 802 | + [whether $CC understands -c and -o together], | |
| 803 | + [am_cv_prog_cc_c_o], | |
| 804 | + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
| 805 | + # Make sure it works both with $CC and with simple cc. | |
| 806 | + # Following AC_PROG_CC_C_O, we do the test twice because some | |
| 807 | + # compilers refuse to overwrite an existing .o file with -o, | |
| 808 | + # though they will create one. | |
| 809 | + am_cv_prog_cc_c_o=yes | |
| 810 | + for am_i in 1 2; do | |
| 811 | + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
| 812 | + && test -f conftest2.$ac_objext; then | |
| 813 | + : OK | |
| 814 | + else | |
| 815 | + am_cv_prog_cc_c_o=no | |
| 816 | + break | |
| 817 | + fi | |
| 818 | + done | |
| 819 | + rm -f core conftest* | |
| 820 | + unset am_i]) | |
| 821 | +if test "$am_cv_prog_cc_c_o" != yes; then | |
| 822 | + # Losing compiler, so override with the script. | |
| 823 | + # FIXME: It is wrong to rewrite CC. | |
| 824 | + # But if we don't then we get into trouble of one sort or another. | |
| 825 | + # A longer-term fix would be to have automake use am__CC in this case, | |
| 826 | + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
| 827 | + CC="$am_aux_dir/compile $CC" | |
| 828 | +fi | |
| 829 | +AC_LANG_POP([C])]) | |
| 830 | + | |
| 831 | +# For backward compatibility. | |
| 832 | +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
| 833 | + | |
| 834 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 835 | +# | |
| 836 | +# This file is free software; the Free Software Foundation | |
| 837 | +# gives unlimited permission to copy and/or distribute it, | |
| 838 | +# with or without modifications, as long as this notice is preserved. | |
| 839 | + | |
| 840 | +# AM_RUN_LOG(COMMAND) | |
| 841 | +# ------------------- | |
| 842 | +# Run COMMAND, save the exit status in ac_status, and log it. | |
| 843 | +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
| 844 | +AC_DEFUN([AM_RUN_LOG], | |
| 845 | +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
| 846 | + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
| 847 | + ac_status=$? | |
| 848 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
| 849 | + (exit $ac_status); }]) | |
| 850 | + | |
| 851 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- | |
| 852 | + | |
| 853 | +# Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
| 854 | +# | |
| 855 | +# This file is free software; the Free Software Foundation | |
| 856 | +# gives unlimited permission to copy and/or distribute it, | |
| 857 | +# with or without modifications, as long as this notice is preserved. | |
| 858 | + | |
| 859 | +# AM_SANITY_CHECK | |
| 860 | +# --------------- | |
| 861 | +AC_DEFUN([AM_SANITY_CHECK], | |
| 862 | +[AC_MSG_CHECKING([whether build environment is sane]) | |
| 863 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
| 864 | +# name. Accept space and tab only in the latter. | |
| 865 | +am_lf=' | |
| 866 | +' | |
| 867 | +case `pwd` in | |
| 868 | + *[[\\\"\#\$\&\'\`$am_lf]]*) | |
| 869 | + AC_MSG_ERROR([unsafe absolute working directory name]);; | |
| 870 | +esac | |
| 871 | +case $srcdir in | |
| 872 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
| 873 | + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
| 874 | +esac | |
| 875 | + | |
| 876 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
| 877 | +# arguments. Must try -L first in case configure is actually a | |
| 878 | +# symlink; some systems play weird games with the mod time of symlinks | |
| 879 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
| 880 | +# directory). | |
| 881 | +if ( | |
| 882 | + am_has_slept=no | |
| 883 | + for am_try in 1 2; do | |
| 884 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
| 885 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
| 886 | + if test "$[*]" = "X"; then | |
| 887 | + # -L didn't work. | |
| 888 | + set X `ls -t "$srcdir/configure" conftest.file` | |
| 889 | + fi | |
| 890 | + if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
| 891 | + && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
| 892 | + | |
| 893 | + # If neither matched, then we have a broken ls. This can happen | |
| 894 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
| 895 | + # broken ls alias from the environment. This has actually | |
| 896 | + # happened. Such a system could not be considered "sane". | |
| 897 | + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
| 898 | + alias in your environment]) | |
| 899 | + fi | |
| 900 | + if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
| 901 | + break | |
| 902 | + fi | |
| 903 | + # Just in case. | |
| 904 | + sleep 1 | |
| 905 | + am_has_slept=yes | |
| 906 | + done | |
| 907 | + test "$[2]" = conftest.file | |
| 908 | + ) | |
| 909 | +then | |
| 910 | + # Ok. | |
| 911 | + : | |
| 912 | +else | |
| 913 | + AC_MSG_ERROR([newly created file is older than distributed files! | |
| 914 | +Check your system clock]) | |
| 915 | +fi | |
| 916 | +AC_MSG_RESULT([yes]) | |
| 917 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
| 918 | +# generated files are strictly newer. | |
| 919 | +am_sleep_pid= | |
| 920 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
| 921 | + ( sleep 1 ) & | |
| 922 | + am_sleep_pid=$! | |
| 923 | +fi | |
| 924 | +AC_CONFIG_COMMANDS_PRE( | |
| 925 | + [AC_MSG_CHECKING([that generated files are newer than configure]) | |
| 926 | + if test -n "$am_sleep_pid"; then | |
| 927 | + # Hide warnings about reused PIDs. | |
| 928 | + wait $am_sleep_pid 2>/dev/null | |
| 929 | + fi | |
| 930 | + AC_MSG_RESULT([done])]) | |
| 931 | +rm -f conftest.file | |
| 932 | +]) | |
| 933 | + | |
| 934 | +# Copyright (C) 2009-2018 Free Software Foundation, Inc. | |
| 935 | +# | |
| 936 | +# This file is free software; the Free Software Foundation | |
| 937 | +# gives unlimited permission to copy and/or distribute it, | |
| 938 | +# with or without modifications, as long as this notice is preserved. | |
| 939 | + | |
| 940 | +# AM_SILENT_RULES([DEFAULT]) | |
| 941 | +# -------------------------- | |
| 942 | +# Enable less verbose build rules; with the default set to DEFAULT | |
| 943 | +# ("yes" being less verbose, "no" or empty being verbose). | |
| 944 | +AC_DEFUN([AM_SILENT_RULES], | |
| 945 | +[AC_ARG_ENABLE([silent-rules], [dnl | |
| 946 | +AS_HELP_STRING( | |
| 947 | + [--enable-silent-rules], | |
| 948 | + [less verbose build output (undo: "make V=1")]) | |
| 949 | +AS_HELP_STRING( | |
| 950 | + [--disable-silent-rules], | |
| 951 | + [verbose build output (undo: "make V=0")])dnl | |
| 952 | +]) | |
| 953 | +case $enable_silent_rules in @%:@ ((( | |
| 954 | + yes) AM_DEFAULT_VERBOSITY=0;; | |
| 955 | + no) AM_DEFAULT_VERBOSITY=1;; | |
| 956 | + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
| 957 | +esac | |
| 958 | +dnl | |
| 959 | +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
| 960 | +dnl do not support nested variable expansions. | |
| 961 | +dnl See automake bug#9928 and bug#10237. | |
| 962 | +am_make=${MAKE-make} | |
| 963 | +AC_CACHE_CHECK([whether $am_make supports nested variables], | |
| 964 | + [am_cv_make_support_nested_variables], | |
| 965 | + [if AS_ECHO([['TRUE=$(BAR$(V)) | |
| 966 | +BAR0=false | |
| 967 | +BAR1=true | |
| 968 | +V=1 | |
| 969 | +am__doit: | |
| 970 | + @$(TRUE) | |
| 971 | +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
| 972 | + am_cv_make_support_nested_variables=yes | |
| 973 | +else | |
| 974 | + am_cv_make_support_nested_variables=no | |
| 975 | +fi]) | |
| 976 | +if test $am_cv_make_support_nested_variables = yes; then | |
| 977 | + dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
| 978 | + AM_V='$(V)' | |
| 979 | + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
| 980 | +else | |
| 981 | + AM_V=$AM_DEFAULT_VERBOSITY | |
| 982 | + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
| 983 | +fi | |
| 984 | +AC_SUBST([AM_V])dnl | |
| 985 | +AM_SUBST_NOTMAKE([AM_V])dnl | |
| 986 | +AC_SUBST([AM_DEFAULT_V])dnl | |
| 987 | +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
| 988 | +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
| 989 | +AM_BACKSLASH='\' | |
| 990 | +AC_SUBST([AM_BACKSLASH])dnl | |
| 991 | +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
| 992 | +]) | |
| 993 | + | |
| 994 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
| 995 | +# | |
| 996 | +# This file is free software; the Free Software Foundation | |
| 997 | +# gives unlimited permission to copy and/or distribute it, | |
| 998 | +# with or without modifications, as long as this notice is preserved. | |
| 999 | + | |
| 1000 | +# AM_PROG_INSTALL_STRIP | |
| 1001 | +# --------------------- | |
| 1002 | +# One issue with vendor 'install' (even GNU) is that you can't | |
| 1003 | +# specify the program used to strip binaries. This is especially | |
| 1004 | +# annoying in cross-compiling environments, where the build's strip | |
| 1005 | +# is unlikely to handle the host's binaries. | |
| 1006 | +# Fortunately install-sh will honor a STRIPPROG variable, so we | |
| 1007 | +# always use install-sh in "make install-strip", and initialize | |
| 1008 | +# STRIPPROG with the value of the STRIP variable (set by the user). | |
| 1009 | +AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
| 1010 | +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
| 1011 | +# Installed binaries are usually stripped using 'strip' when the user | |
| 1012 | +# run "make install-strip". However 'strip' might not be the right | |
| 1013 | +# tool to use in cross-compilation environments, therefore Automake | |
| 1014 | +# will honor the 'STRIP' environment variable to overrule this program. | |
| 1015 | +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
| 1016 | +if test "$cross_compiling" != no; then | |
| 1017 | + AC_CHECK_TOOL([STRIP], [strip], :) | |
| 1018 | +fi | |
| 1019 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
| 1020 | +AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
| 1021 | + | |
| 1022 | +# Copyright (C) 2006-2018 Free Software Foundation, Inc. | |
| 1023 | +# | |
| 1024 | +# This file is free software; the Free Software Foundation | |
| 1025 | +# gives unlimited permission to copy and/or distribute it, | |
| 1026 | +# with or without modifications, as long as this notice is preserved. | |
| 1027 | + | |
| 1028 | +# _AM_SUBST_NOTMAKE(VARIABLE) | |
| 1029 | +# --------------------------- | |
| 1030 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
| 1031 | +# This macro is traced by Automake. | |
| 1032 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
| 1033 | + | |
| 1034 | +# AM_SUBST_NOTMAKE(VARIABLE) | |
| 1035 | +# -------------------------- | |
| 1036 | +# Public sister of _AM_SUBST_NOTMAKE. | |
| 1037 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
| 1038 | + | |
| 1039 | +# Check how to create a tarball. -*- Autoconf -*- | |
| 1040 | + | |
| 1041 | +# Copyright (C) 2004-2018 Free Software Foundation, Inc. | |
| 1042 | +# | |
| 1043 | +# This file is free software; the Free Software Foundation | |
| 1044 | +# gives unlimited permission to copy and/or distribute it, | |
| 1045 | +# with or without modifications, as long as this notice is preserved. | |
| 1046 | + | |
| 1047 | +# _AM_PROG_TAR(FORMAT) | |
| 1048 | +# -------------------- | |
| 1049 | +# Check how to create a tarball in format FORMAT. | |
| 1050 | +# FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
| 1051 | +# | |
| 1052 | +# Substitute a variable $(am__tar) that is a command | |
| 1053 | +# writing to stdout a FORMAT-tarball containing the directory | |
| 1054 | +# $tardir. | |
| 1055 | +# tardir=directory && $(am__tar) > result.tar | |
| 1056 | +# | |
| 1057 | +# Substitute a variable $(am__untar) that extract such | |
| 1058 | +# a tarball read from stdin. | |
| 1059 | +# $(am__untar) < result.tar | |
| 1060 | +# | |
| 1061 | +AC_DEFUN([_AM_PROG_TAR], | |
| 1062 | +[# Always define AMTAR for backward compatibility. Yes, it's still used | |
| 1063 | +# in the wild :-( We should find a proper way to deprecate it ... | |
| 1064 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
| 1065 | + | |
| 1066 | +# We'll loop over all known methods to create a tar archive until one works. | |
| 1067 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
| 1068 | + | |
| 1069 | +m4_if([$1], [v7], | |
| 1070 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
| 1071 | + | |
| 1072 | + [m4_case([$1], | |
| 1073 | + [ustar], | |
| 1074 | + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
| 1075 | + # There is notably a 21 bits limit for the UID and the GID. In fact, | |
| 1076 | + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
| 1077 | + # and bug#13588). | |
| 1078 | + am_max_uid=2097151 # 2^21 - 1 | |
| 1079 | + am_max_gid=$am_max_uid | |
| 1080 | + # The $UID and $GID variables are not portable, so we need to resort | |
| 1081 | + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
| 1082 | + # below are definitely unexpected, so allow the users to see them | |
| 1083 | + # (that is, avoid stderr redirection). | |
| 1084 | + am_uid=`id -u || echo unknown` | |
| 1085 | + am_gid=`id -g || echo unknown` | |
| 1086 | + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
| 1087 | + if test $am_uid -le $am_max_uid; then | |
| 1088 | + AC_MSG_RESULT([yes]) | |
| 1089 | + else | |
| 1090 | + AC_MSG_RESULT([no]) | |
| 1091 | + _am_tools=none | |
| 1092 | + fi | |
| 1093 | + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
| 1094 | + if test $am_gid -le $am_max_gid; then | |
| 1095 | + AC_MSG_RESULT([yes]) | |
| 1096 | + else | |
| 1097 | + AC_MSG_RESULT([no]) | |
| 1098 | + _am_tools=none | |
| 1099 | + fi], | |
| 1100 | + | |
| 1101 | + [pax], | |
| 1102 | + [], | |
| 1103 | + | |
| 1104 | + [m4_fatal([Unknown tar format])]) | |
| 1105 | + | |
| 1106 | + AC_MSG_CHECKING([how to create a $1 tar archive]) | |
| 1107 | + | |
| 1108 | + # Go ahead even if we have the value already cached. We do so because we | |
| 1109 | + # need to set the values for the 'am__tar' and 'am__untar' variables. | |
| 1110 | + _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
| 1111 | + | |
| 1112 | + for _am_tool in $_am_tools; do | |
| 1113 | + case $_am_tool in | |
| 1114 | + gnutar) | |
| 1115 | + for _am_tar in tar gnutar gtar; do | |
| 1116 | + AM_RUN_LOG([$_am_tar --version]) && break | |
| 1117 | + done | |
| 1118 | + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
| 1119 | + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
| 1120 | + am__untar="$_am_tar -xf -" | |
| 1121 | + ;; | |
| 1122 | + plaintar) | |
| 1123 | + # Must skip GNU tar: if it does not support --format= it doesn't create | |
| 1124 | + # ustar tarball either. | |
| 1125 | + (tar --version) >/dev/null 2>&1 && continue | |
| 1126 | + am__tar='tar chf - "$$tardir"' | |
| 1127 | + am__tar_='tar chf - "$tardir"' | |
| 1128 | + am__untar='tar xf -' | |
| 1129 | + ;; | |
| 1130 | + pax) | |
| 1131 | + am__tar='pax -L -x $1 -w "$$tardir"' | |
| 1132 | + am__tar_='pax -L -x $1 -w "$tardir"' | |
| 1133 | + am__untar='pax -r' | |
| 1134 | + ;; | |
| 1135 | + cpio) | |
| 1136 | + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
| 1137 | + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
| 1138 | + am__untar='cpio -i -H $1 -d' | |
| 1139 | + ;; | |
| 1140 | + none) | |
| 1141 | + am__tar=false | |
| 1142 | + am__tar_=false | |
| 1143 | + am__untar=false | |
| 1144 | + ;; | |
| 1145 | + esac | |
| 1146 | + | |
| 1147 | + # If the value was cached, stop now. We just wanted to have am__tar | |
| 1148 | + # and am__untar set. | |
| 1149 | + test -n "${am_cv_prog_tar_$1}" && break | |
| 1150 | + | |
| 1151 | + # tar/untar a dummy directory, and stop if the command works. | |
| 1152 | + rm -rf conftest.dir | |
| 1153 | + mkdir conftest.dir | |
| 1154 | + echo GrepMe > conftest.dir/file | |
| 1155 | + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
| 1156 | + rm -rf conftest.dir | |
| 1157 | + if test -s conftest.tar; then | |
| 1158 | + AM_RUN_LOG([$am__untar <conftest.tar]) | |
| 1159 | + AM_RUN_LOG([cat conftest.dir/file]) | |
| 1160 | + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
| 1161 | + fi | |
| 1162 | + done | |
| 1163 | + rm -rf conftest.dir | |
| 1164 | + | |
| 1165 | + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
| 1166 | + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
| 1167 | + | |
| 1168 | +AC_SUBST([am__tar]) | |
| 1169 | +AC_SUBST([am__untar]) | |
| 1170 | +]) # _AM_PROG_TAR | |
| 1171 | + | ... | ... |
asio-1.18.1/compile
0 → 100755
| 1 | +++ a/asio-1.18.1/compile | |
| 1 | +#! /bin/sh | |
| 2 | +# Wrapper for compilers which do not understand '-c -o'. | |
| 3 | + | |
| 4 | +scriptversion=2012-10-14.11; # UTC | |
| 5 | + | |
| 6 | +# Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
| 7 | +# Written by Tom Tromey <tromey@cygnus.com>. | |
| 8 | +# | |
| 9 | +# This program is free software; you can redistribute it and/or modify | |
| 10 | +# it under the terms of the GNU General Public License as published by | |
| 11 | +# the Free Software Foundation; either version 2, or (at your option) | |
| 12 | +# any later version. | |
| 13 | +# | |
| 14 | +# This program is distributed in the hope that it will be useful, | |
| 15 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | +# GNU General Public License for more details. | |
| 18 | +# | |
| 19 | +# You should have received a copy of the GNU General Public License | |
| 20 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | + | |
| 22 | +# As a special exception to the GNU General Public License, if you | |
| 23 | +# distribute this file as part of a program that contains a | |
| 24 | +# configuration script generated by Autoconf, you may include it under | |
| 25 | +# the same distribution terms that you use for the rest of that program. | |
| 26 | + | |
| 27 | +# This file is maintained in Automake, please report | |
| 28 | +# bugs to <bug-automake@gnu.org> or send patches to | |
| 29 | +# <automake-patches@gnu.org>. | |
| 30 | + | |
| 31 | +nl=' | |
| 32 | +' | |
| 33 | + | |
| 34 | +# We need space, tab and new line, in precisely that order. Quoting is | |
| 35 | +# there to prevent tools from complaining about whitespace usage. | |
| 36 | +IFS=" "" $nl" | |
| 37 | + | |
| 38 | +file_conv= | |
| 39 | + | |
| 40 | +# func_file_conv build_file lazy | |
| 41 | +# Convert a $build file to $host form and store it in $file | |
| 42 | +# Currently only supports Windows hosts. If the determined conversion | |
| 43 | +# type is listed in (the comma separated) LAZY, no conversion will | |
| 44 | +# take place. | |
| 45 | +func_file_conv () | |
| 46 | +{ | |
| 47 | + file=$1 | |
| 48 | + case $file in | |
| 49 | + / | /[!/]*) # absolute file, and not a UNC file | |
| 50 | + if test -z "$file_conv"; then | |
| 51 | + # lazily determine how to convert abs files | |
| 52 | + case `uname -s` in | |
| 53 | + MINGW*) | |
| 54 | + file_conv=mingw | |
| 55 | + ;; | |
| 56 | + CYGWIN*) | |
| 57 | + file_conv=cygwin | |
| 58 | + ;; | |
| 59 | + *) | |
| 60 | + file_conv=wine | |
| 61 | + ;; | |
| 62 | + esac | |
| 63 | + fi | |
| 64 | + case $file_conv/,$2, in | |
| 65 | + *,$file_conv,*) | |
| 66 | + ;; | |
| 67 | + mingw/*) | |
| 68 | + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | |
| 69 | + ;; | |
| 70 | + cygwin/*) | |
| 71 | + file=`cygpath -m "$file" || echo "$file"` | |
| 72 | + ;; | |
| 73 | + wine/*) | |
| 74 | + file=`winepath -w "$file" || echo "$file"` | |
| 75 | + ;; | |
| 76 | + esac | |
| 77 | + ;; | |
| 78 | + esac | |
| 79 | +} | |
| 80 | + | |
| 81 | +# func_cl_dashL linkdir | |
| 82 | +# Make cl look for libraries in LINKDIR | |
| 83 | +func_cl_dashL () | |
| 84 | +{ | |
| 85 | + func_file_conv "$1" | |
| 86 | + if test -z "$lib_path"; then | |
| 87 | + lib_path=$file | |
| 88 | + else | |
| 89 | + lib_path="$lib_path;$file" | |
| 90 | + fi | |
| 91 | + linker_opts="$linker_opts -LIBPATH:$file" | |
| 92 | +} | |
| 93 | + | |
| 94 | +# func_cl_dashl library | |
| 95 | +# Do a library search-path lookup for cl | |
| 96 | +func_cl_dashl () | |
| 97 | +{ | |
| 98 | + lib=$1 | |
| 99 | + found=no | |
| 100 | + save_IFS=$IFS | |
| 101 | + IFS=';' | |
| 102 | + for dir in $lib_path $LIB | |
| 103 | + do | |
| 104 | + IFS=$save_IFS | |
| 105 | + if $shared && test -f "$dir/$lib.dll.lib"; then | |
| 106 | + found=yes | |
| 107 | + lib=$dir/$lib.dll.lib | |
| 108 | + break | |
| 109 | + fi | |
| 110 | + if test -f "$dir/$lib.lib"; then | |
| 111 | + found=yes | |
| 112 | + lib=$dir/$lib.lib | |
| 113 | + break | |
| 114 | + fi | |
| 115 | + if test -f "$dir/lib$lib.a"; then | |
| 116 | + found=yes | |
| 117 | + lib=$dir/lib$lib.a | |
| 118 | + break | |
| 119 | + fi | |
| 120 | + done | |
| 121 | + IFS=$save_IFS | |
| 122 | + | |
| 123 | + if test "$found" != yes; then | |
| 124 | + lib=$lib.lib | |
| 125 | + fi | |
| 126 | +} | |
| 127 | + | |
| 128 | +# func_cl_wrapper cl arg... | |
| 129 | +# Adjust compile command to suit cl | |
| 130 | +func_cl_wrapper () | |
| 131 | +{ | |
| 132 | + # Assume a capable shell | |
| 133 | + lib_path= | |
| 134 | + shared=: | |
| 135 | + linker_opts= | |
| 136 | + for arg | |
| 137 | + do | |
| 138 | + if test -n "$eat"; then | |
| 139 | + eat= | |
| 140 | + else | |
| 141 | + case $1 in | |
| 142 | + -o) | |
| 143 | + # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
| 144 | + eat=1 | |
| 145 | + case $2 in | |
| 146 | + *.o | *.[oO][bB][jJ]) | |
| 147 | + func_file_conv "$2" | |
| 148 | + set x "$@" -Fo"$file" | |
| 149 | + shift | |
| 150 | + ;; | |
| 151 | + *) | |
| 152 | + func_file_conv "$2" | |
| 153 | + set x "$@" -Fe"$file" | |
| 154 | + shift | |
| 155 | + ;; | |
| 156 | + esac | |
| 157 | + ;; | |
| 158 | + -I) | |
| 159 | + eat=1 | |
| 160 | + func_file_conv "$2" mingw | |
| 161 | + set x "$@" -I"$file" | |
| 162 | + shift | |
| 163 | + ;; | |
| 164 | + -I*) | |
| 165 | + func_file_conv "${1#-I}" mingw | |
| 166 | + set x "$@" -I"$file" | |
| 167 | + shift | |
| 168 | + ;; | |
| 169 | + -l) | |
| 170 | + eat=1 | |
| 171 | + func_cl_dashl "$2" | |
| 172 | + set x "$@" "$lib" | |
| 173 | + shift | |
| 174 | + ;; | |
| 175 | + -l*) | |
| 176 | + func_cl_dashl "${1#-l}" | |
| 177 | + set x "$@" "$lib" | |
| 178 | + shift | |
| 179 | + ;; | |
| 180 | + -L) | |
| 181 | + eat=1 | |
| 182 | + func_cl_dashL "$2" | |
| 183 | + ;; | |
| 184 | + -L*) | |
| 185 | + func_cl_dashL "${1#-L}" | |
| 186 | + ;; | |
| 187 | + -static) | |
| 188 | + shared=false | |
| 189 | + ;; | |
| 190 | + -Wl,*) | |
| 191 | + arg=${1#-Wl,} | |
| 192 | + save_ifs="$IFS"; IFS=',' | |
| 193 | + for flag in $arg; do | |
| 194 | + IFS="$save_ifs" | |
| 195 | + linker_opts="$linker_opts $flag" | |
| 196 | + done | |
| 197 | + IFS="$save_ifs" | |
| 198 | + ;; | |
| 199 | + -Xlinker) | |
| 200 | + eat=1 | |
| 201 | + linker_opts="$linker_opts $2" | |
| 202 | + ;; | |
| 203 | + -*) | |
| 204 | + set x "$@" "$1" | |
| 205 | + shift | |
| 206 | + ;; | |
| 207 | + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) | |
| 208 | + func_file_conv "$1" | |
| 209 | + set x "$@" -Tp"$file" | |
| 210 | + shift | |
| 211 | + ;; | |
| 212 | + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) | |
| 213 | + func_file_conv "$1" mingw | |
| 214 | + set x "$@" "$file" | |
| 215 | + shift | |
| 216 | + ;; | |
| 217 | + *) | |
| 218 | + set x "$@" "$1" | |
| 219 | + shift | |
| 220 | + ;; | |
| 221 | + esac | |
| 222 | + fi | |
| 223 | + shift | |
| 224 | + done | |
| 225 | + if test -n "$linker_opts"; then | |
| 226 | + linker_opts="-link$linker_opts" | |
| 227 | + fi | |
| 228 | + exec "$@" $linker_opts | |
| 229 | + exit 1 | |
| 230 | +} | |
| 231 | + | |
| 232 | +eat= | |
| 233 | + | |
| 234 | +case $1 in | |
| 235 | + '') | |
| 236 | + echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
| 237 | + exit 1; | |
| 238 | + ;; | |
| 239 | + -h | --h*) | |
| 240 | + cat <<\EOF | |
| 241 | +Usage: compile [--help] [--version] PROGRAM [ARGS] | |
| 242 | + | |
| 243 | +Wrapper for compilers which do not understand '-c -o'. | |
| 244 | +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining | |
| 245 | +arguments, and rename the output as expected. | |
| 246 | + | |
| 247 | +If you are trying to build a whole package this is not the | |
| 248 | +right script to run: please start by reading the file 'INSTALL'. | |
| 249 | + | |
| 250 | +Report bugs to <bug-automake@gnu.org>. | |
| 251 | +EOF | |
| 252 | + exit $? | |
| 253 | + ;; | |
| 254 | + -v | --v*) | |
| 255 | + echo "compile $scriptversion" | |
| 256 | + exit $? | |
| 257 | + ;; | |
| 258 | + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | |
| 259 | + func_cl_wrapper "$@" # Doesn't return... | |
| 260 | + ;; | |
| 261 | +esac | |
| 262 | + | |
| 263 | +ofile= | |
| 264 | +cfile= | |
| 265 | + | |
| 266 | +for arg | |
| 267 | +do | |
| 268 | + if test -n "$eat"; then | |
| 269 | + eat= | |
| 270 | + else | |
| 271 | + case $1 in | |
| 272 | + -o) | |
| 273 | + # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
| 274 | + # So we strip '-o arg' only if arg is an object. | |
| 275 | + eat=1 | |
| 276 | + case $2 in | |
| 277 | + *.o | *.obj) | |
| 278 | + ofile=$2 | |
| 279 | + ;; | |
| 280 | + *) | |
| 281 | + set x "$@" -o "$2" | |
| 282 | + shift | |
| 283 | + ;; | |
| 284 | + esac | |
| 285 | + ;; | |
| 286 | + *.c) | |
| 287 | + cfile=$1 | |
| 288 | + set x "$@" "$1" | |
| 289 | + shift | |
| 290 | + ;; | |
| 291 | + *) | |
| 292 | + set x "$@" "$1" | |
| 293 | + shift | |
| 294 | + ;; | |
| 295 | + esac | |
| 296 | + fi | |
| 297 | + shift | |
| 298 | +done | |
| 299 | + | |
| 300 | +if test -z "$ofile" || test -z "$cfile"; then | |
| 301 | + # If no '-o' option was seen then we might have been invoked from a | |
| 302 | + # pattern rule where we don't need one. That is ok -- this is a | |
| 303 | + # normal compilation that the losing compiler can handle. If no | |
| 304 | + # '.c' file was seen then we are probably linking. That is also | |
| 305 | + # ok. | |
| 306 | + exec "$@" | |
| 307 | +fi | |
| 308 | + | |
| 309 | +# Name of file we expect compiler to create. | |
| 310 | +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | |
| 311 | + | |
| 312 | +# Create the lock directory. | |
| 313 | +# Note: use '[/\\:.-]' here to ensure that we don't use the same name | |
| 314 | +# that we are using for the .o file. Also, base the name on the expected | |
| 315 | +# object file name, since that is what matters with a parallel build. | |
| 316 | +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | |
| 317 | +while true; do | |
| 318 | + if mkdir "$lockdir" >/dev/null 2>&1; then | |
| 319 | + break | |
| 320 | + fi | |
| 321 | + sleep 1 | |
| 322 | +done | |
| 323 | +# FIXME: race condition here if user kills between mkdir and trap. | |
| 324 | +trap "rmdir '$lockdir'; exit 1" 1 2 15 | |
| 325 | + | |
| 326 | +# Run the compile. | |
| 327 | +"$@" | |
| 328 | +ret=$? | |
| 329 | + | |
| 330 | +if test -f "$cofile"; then | |
| 331 | + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | |
| 332 | +elif test -f "${cofile}bj"; then | |
| 333 | + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | |
| 334 | +fi | |
| 335 | + | |
| 336 | +rmdir "$lockdir" | |
| 337 | +exit $ret | |
| 338 | + | |
| 339 | +# Local Variables: | |
| 340 | +# mode: shell-script | |
| 341 | +# sh-indentation: 2 | |
| 342 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
| 343 | +# time-stamp-start: "scriptversion=" | |
| 344 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
| 345 | +# time-stamp-time-zone: "UTC" | |
| 346 | +# time-stamp-end: "; # UTC" | |
| 347 | +# End: | ... | ... |
asio-1.18.1/config.guess
0 → 100755
| 1 | +++ a/asio-1.18.1/config.guess | |
| 1 | +#! /bin/sh | |
| 2 | +# Attempt to guess a canonical system name. | |
| 3 | +# Copyright 1992-2013 Free Software Foundation, Inc. | |
| 4 | + | |
| 5 | +timestamp='2013-11-29' | |
| 6 | + | |
| 7 | +# This file is free software; you can redistribute it and/or modify it | |
| 8 | +# under the terms of the GNU General Public License as published by | |
| 9 | +# the Free Software Foundation; either version 3 of the License, or | |
| 10 | +# (at your option) any later version. | |
| 11 | +# | |
| 12 | +# This program is distributed in the hope that it will be useful, but | |
| 13 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | +# General Public License for more details. | |
| 16 | +# | |
| 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/>. | |
| 19 | +# | |
| 20 | +# As a special exception to the GNU General Public License, if you | |
| 21 | +# distribute this file as part of a program that contains a | |
| 22 | +# configuration script generated by Autoconf, you may include it under | |
| 23 | +# the same distribution terms that you use for the rest of that | |
| 24 | +# program. This Exception is an additional permission under section 7 | |
| 25 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 26 | +# | |
| 27 | +# Originally written by Per Bothner. | |
| 28 | +# | |
| 29 | +# You can get the latest version of this script from: | |
| 30 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
| 31 | +# | |
| 32 | +# Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
| 33 | + | |
| 34 | + | |
| 35 | +me=`echo "$0" | sed -e 's,.*/,,'` | |
| 36 | + | |
| 37 | +usage="\ | |
| 38 | +Usage: $0 [OPTION] | |
| 39 | + | |
| 40 | +Output the configuration name of the system \`$me' is run on. | |
| 41 | + | |
| 42 | +Operation modes: | |
| 43 | + -h, --help print this help, then exit | |
| 44 | + -t, --time-stamp print date of last modification, then exit | |
| 45 | + -v, --version print version number, then exit | |
| 46 | + | |
| 47 | +Report bugs and patches to <config-patches@gnu.org>." | |
| 48 | + | |
| 49 | +version="\ | |
| 50 | +GNU config.guess ($timestamp) | |
| 51 | + | |
| 52 | +Originally written by Per Bothner. | |
| 53 | +Copyright 1992-2013 Free Software Foundation, Inc. | |
| 54 | + | |
| 55 | +This is free software; see the source for copying conditions. There is NO | |
| 56 | +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
| 57 | + | |
| 58 | +help=" | |
| 59 | +Try \`$me --help' for more information." | |
| 60 | + | |
| 61 | +# Parse command line | |
| 62 | +while test $# -gt 0 ; do | |
| 63 | + case $1 in | |
| 64 | + --time-stamp | --time* | -t ) | |
| 65 | + echo "$timestamp" ; exit ;; | |
| 66 | + --version | -v ) | |
| 67 | + echo "$version" ; exit ;; | |
| 68 | + --help | --h* | -h ) | |
| 69 | + echo "$usage"; exit ;; | |
| 70 | + -- ) # Stop option processing | |
| 71 | + shift; break ;; | |
| 72 | + - ) # Use stdin as input. | |
| 73 | + break ;; | |
| 74 | + -* ) | |
| 75 | + echo "$me: invalid option $1$help" >&2 | |
| 76 | + exit 1 ;; | |
| 77 | + * ) | |
| 78 | + break ;; | |
| 79 | + esac | |
| 80 | +done | |
| 81 | + | |
| 82 | +if test $# != 0; then | |
| 83 | + echo "$me: too many arguments$help" >&2 | |
| 84 | + exit 1 | |
| 85 | +fi | |
| 86 | + | |
| 87 | +trap 'exit 1' 1 2 15 | |
| 88 | + | |
| 89 | +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a | |
| 90 | +# compiler to aid in system detection is discouraged as it requires | |
| 91 | +# temporary files to be created and, as you can see below, it is a | |
| 92 | +# headache to deal with in a portable fashion. | |
| 93 | + | |
| 94 | +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | |
| 95 | +# use `HOST_CC' if defined, but it is deprecated. | |
| 96 | + | |
| 97 | +# Portable tmp directory creation inspired by the Autoconf team. | |
| 98 | + | |
| 99 | +set_cc_for_build=' | |
| 100 | +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
| 101 | +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
| 102 | +: ${TMPDIR=/tmp} ; | |
| 103 | + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
| 104 | + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
| 105 | + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
| 106 | + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
| 107 | +dummy=$tmp/dummy ; | |
| 108 | +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
| 109 | +case $CC_FOR_BUILD,$HOST_CC,$CC in | |
| 110 | + ,,) echo "int x;" > $dummy.c ; | |
| 111 | + for c in cc gcc c89 c99 ; do | |
| 112 | + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
| 113 | + CC_FOR_BUILD="$c"; break ; | |
| 114 | + fi ; | |
| 115 | + done ; | |
| 116 | + if test x"$CC_FOR_BUILD" = x ; then | |
| 117 | + CC_FOR_BUILD=no_compiler_found ; | |
| 118 | + fi | |
| 119 | + ;; | |
| 120 | + ,,*) CC_FOR_BUILD=$CC ;; | |
| 121 | + ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
| 122 | +esac ; set_cc_for_build= ;' | |
| 123 | + | |
| 124 | +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. | |
| 125 | +# (ghazi@noc.rutgers.edu 1994-08-24) | |
| 126 | +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | |
| 127 | + PATH=$PATH:/.attbin ; export PATH | |
| 128 | +fi | |
| 129 | + | |
| 130 | +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | |
| 131 | +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | |
| 132 | +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
| 133 | +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | |
| 134 | + | |
| 135 | +case "${UNAME_SYSTEM}" in | |
| 136 | +Linux|GNU|GNU/*) | |
| 137 | + # If the system lacks a compiler, then just pick glibc. | |
| 138 | + # We could probably try harder. | |
| 139 | + LIBC=gnu | |
| 140 | + | |
| 141 | + eval $set_cc_for_build | |
| 142 | + cat <<-EOF > $dummy.c | |
| 143 | + #include <features.h> | |
| 144 | + #if defined(__UCLIBC__) | |
| 145 | + LIBC=uclibc | |
| 146 | + #elif defined(__dietlibc__) | |
| 147 | + LIBC=dietlibc | |
| 148 | + #else | |
| 149 | + LIBC=gnu | |
| 150 | + #endif | |
| 151 | + EOF | |
| 152 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
| 153 | + ;; | |
| 154 | +esac | |
| 155 | + | |
| 156 | +# Note: order is significant - the case branches are not exclusive. | |
| 157 | + | |
| 158 | +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
| 159 | + *:NetBSD:*:*) | |
| 160 | + # NetBSD (nbsd) targets should (where applicable) match one or | |
| 161 | + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
| 162 | + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
| 163 | + # switched to ELF, *-*-netbsd* would select the old | |
| 164 | + # object file format. This provides both forward | |
| 165 | + # compatibility and a consistent mechanism for selecting the | |
| 166 | + # object file format. | |
| 167 | + # | |
| 168 | + # Note: NetBSD doesn't particularly care about the vendor | |
| 169 | + # portion of the name. We always set it to "unknown". | |
| 170 | + sysctl="sysctl -n hw.machine_arch" | |
| 171 | + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | |
| 172 | + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | |
| 173 | + case "${UNAME_MACHINE_ARCH}" in | |
| 174 | + armeb) machine=armeb-unknown ;; | |
| 175 | + arm*) machine=arm-unknown ;; | |
| 176 | + sh3el) machine=shl-unknown ;; | |
| 177 | + sh3eb) machine=sh-unknown ;; | |
| 178 | + sh5el) machine=sh5le-unknown ;; | |
| 179 | + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
| 180 | + esac | |
| 181 | + # The Operating System including object format, if it has switched | |
| 182 | + # to ELF recently, or will in the future. | |
| 183 | + case "${UNAME_MACHINE_ARCH}" in | |
| 184 | + arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
| 185 | + eval $set_cc_for_build | |
| 186 | + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
| 187 | + | grep -q __ELF__ | |
| 188 | + then | |
| 189 | + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
| 190 | + # Return netbsd for either. FIX? | |
| 191 | + os=netbsd | |
| 192 | + else | |
| 193 | + os=netbsdelf | |
| 194 | + fi | |
| 195 | + ;; | |
| 196 | + *) | |
| 197 | + os=netbsd | |
| 198 | + ;; | |
| 199 | + esac | |
| 200 | + # The OS release | |
| 201 | + # Debian GNU/NetBSD machines have a different userland, and | |
| 202 | + # thus, need a distinct triplet. However, they do not need | |
| 203 | + # kernel version information, so it can be replaced with a | |
| 204 | + # suitable tag, in the style of linux-gnu. | |
| 205 | + case "${UNAME_VERSION}" in | |
| 206 | + Debian*) | |
| 207 | + release='-gnu' | |
| 208 | + ;; | |
| 209 | + *) | |
| 210 | + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
| 211 | + ;; | |
| 212 | + esac | |
| 213 | + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |
| 214 | + # contains redundant information, the shorter form: | |
| 215 | + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
| 216 | + echo "${machine}-${os}${release}" | |
| 217 | + exit ;; | |
| 218 | + *:Bitrig:*:*) | |
| 219 | + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
| 220 | + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
| 221 | + exit ;; | |
| 222 | + *:OpenBSD:*:*) | |
| 223 | + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |
| 224 | + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
| 225 | + exit ;; | |
| 226 | + *:ekkoBSD:*:*) | |
| 227 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
| 228 | + exit ;; | |
| 229 | + *:SolidBSD:*:*) | |
| 230 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
| 231 | + exit ;; | |
| 232 | + macppc:MirBSD:*:*) | |
| 233 | + echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
| 234 | + exit ;; | |
| 235 | + *:MirBSD:*:*) | |
| 236 | + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
| 237 | + exit ;; | |
| 238 | + alpha:OSF1:*:*) | |
| 239 | + case $UNAME_RELEASE in | |
| 240 | + *4.0) | |
| 241 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | |
| 242 | + ;; | |
| 243 | + *5.*) | |
| 244 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
| 245 | + ;; | |
| 246 | + esac | |
| 247 | + # According to Compaq, /usr/sbin/psrinfo has been available on | |
| 248 | + # OSF/1 and Tru64 systems produced since 1995. I hope that | |
| 249 | + # covers most systems running today. This code pipes the CPU | |
| 250 | + # types through head -n 1, so we only detect the type of CPU 0. | |
| 251 | + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | |
| 252 | + case "$ALPHA_CPU_TYPE" in | |
| 253 | + "EV4 (21064)") | |
| 254 | + UNAME_MACHINE="alpha" ;; | |
| 255 | + "EV4.5 (21064)") | |
| 256 | + UNAME_MACHINE="alpha" ;; | |
| 257 | + "LCA4 (21066/21068)") | |
| 258 | + UNAME_MACHINE="alpha" ;; | |
| 259 | + "EV5 (21164)") | |
| 260 | + UNAME_MACHINE="alphaev5" ;; | |
| 261 | + "EV5.6 (21164A)") | |
| 262 | + UNAME_MACHINE="alphaev56" ;; | |
| 263 | + "EV5.6 (21164PC)") | |
| 264 | + UNAME_MACHINE="alphapca56" ;; | |
| 265 | + "EV5.7 (21164PC)") | |
| 266 | + UNAME_MACHINE="alphapca57" ;; | |
| 267 | + "EV6 (21264)") | |
| 268 | + UNAME_MACHINE="alphaev6" ;; | |
| 269 | + "EV6.7 (21264A)") | |
| 270 | + UNAME_MACHINE="alphaev67" ;; | |
| 271 | + "EV6.8CB (21264C)") | |
| 272 | + UNAME_MACHINE="alphaev68" ;; | |
| 273 | + "EV6.8AL (21264B)") | |
| 274 | + UNAME_MACHINE="alphaev68" ;; | |
| 275 | + "EV6.8CX (21264D)") | |
| 276 | + UNAME_MACHINE="alphaev68" ;; | |
| 277 | + "EV6.9A (21264/EV69A)") | |
| 278 | + UNAME_MACHINE="alphaev69" ;; | |
| 279 | + "EV7 (21364)") | |
| 280 | + UNAME_MACHINE="alphaev7" ;; | |
| 281 | + "EV7.9 (21364A)") | |
| 282 | + UNAME_MACHINE="alphaev79" ;; | |
| 283 | + esac | |
| 284 | + # A Pn.n version is a patched version. | |
| 285 | + # A Vn.n version is a released version. | |
| 286 | + # A Tn.n version is a released field test version. | |
| 287 | + # A Xn.n version is an unreleased experimental baselevel. | |
| 288 | + # 1.2 uses "1.2" for uname -r. | |
| 289 | + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
| 290 | + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
| 291 | + exitcode=$? | |
| 292 | + trap '' 0 | |
| 293 | + exit $exitcode ;; | |
| 294 | + Alpha\ *:Windows_NT*:*) | |
| 295 | + # How do we know it's Interix rather than the generic POSIX subsystem? | |
| 296 | + # Should we change UNAME_MACHINE based on the output of uname instead | |
| 297 | + # of the specific Alpha model? | |
| 298 | + echo alpha-pc-interix | |
| 299 | + exit ;; | |
| 300 | + 21064:Windows_NT:50:3) | |
| 301 | + echo alpha-dec-winnt3.5 | |
| 302 | + exit ;; | |
| 303 | + Amiga*:UNIX_System_V:4.0:*) | |
| 304 | + echo m68k-unknown-sysv4 | |
| 305 | + exit ;; | |
| 306 | + *:[Aa]miga[Oo][Ss]:*:*) | |
| 307 | + echo ${UNAME_MACHINE}-unknown-amigaos | |
| 308 | + exit ;; | |
| 309 | + *:[Mm]orph[Oo][Ss]:*:*) | |
| 310 | + echo ${UNAME_MACHINE}-unknown-morphos | |
| 311 | + exit ;; | |
| 312 | + *:OS/390:*:*) | |
| 313 | + echo i370-ibm-openedition | |
| 314 | + exit ;; | |
| 315 | + *:z/VM:*:*) | |
| 316 | + echo s390-ibm-zvmoe | |
| 317 | + exit ;; | |
| 318 | + *:OS400:*:*) | |
| 319 | + echo powerpc-ibm-os400 | |
| 320 | + exit ;; | |
| 321 | + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | |
| 322 | + echo arm-acorn-riscix${UNAME_RELEASE} | |
| 323 | + exit ;; | |
| 324 | + arm*:riscos:*:*|arm*:RISCOS:*:*) | |
| 325 | + echo arm-unknown-riscos | |
| 326 | + exit ;; | |
| 327 | + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | |
| 328 | + echo hppa1.1-hitachi-hiuxmpp | |
| 329 | + exit ;; | |
| 330 | + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | |
| 331 | + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | |
| 332 | + if test "`(/bin/universe) 2>/dev/null`" = att ; then | |
| 333 | + echo pyramid-pyramid-sysv3 | |
| 334 | + else | |
| 335 | + echo pyramid-pyramid-bsd | |
| 336 | + fi | |
| 337 | + exit ;; | |
| 338 | + NILE*:*:*:dcosx) | |
| 339 | + echo pyramid-pyramid-svr4 | |
| 340 | + exit ;; | |
| 341 | + DRS?6000:unix:4.0:6*) | |
| 342 | + echo sparc-icl-nx6 | |
| 343 | + exit ;; | |
| 344 | + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | |
| 345 | + case `/usr/bin/uname -p` in | |
| 346 | + sparc) echo sparc-icl-nx7; exit ;; | |
| 347 | + esac ;; | |
| 348 | + s390x:SunOS:*:*) | |
| 349 | + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 350 | + exit ;; | |
| 351 | + sun4H:SunOS:5.*:*) | |
| 352 | + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 353 | + exit ;; | |
| 354 | + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
| 355 | + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 356 | + exit ;; | |
| 357 | + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
| 358 | + echo i386-pc-auroraux${UNAME_RELEASE} | |
| 359 | + exit ;; | |
| 360 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | |
| 361 | + eval $set_cc_for_build | |
| 362 | + SUN_ARCH="i386" | |
| 363 | + # If there is a compiler, see if it is configured for 64-bit objects. | |
| 364 | + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
| 365 | + # This test works for both compilers. | |
| 366 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
| 367 | + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
| 368 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
| 369 | + grep IS_64BIT_ARCH >/dev/null | |
| 370 | + then | |
| 371 | + SUN_ARCH="x86_64" | |
| 372 | + fi | |
| 373 | + fi | |
| 374 | + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 375 | + exit ;; | |
| 376 | + sun4*:SunOS:6*:*) | |
| 377 | + # According to config.sub, this is the proper way to canonicalize | |
| 378 | + # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
| 379 | + # it's likely to be more like Solaris than SunOS4. | |
| 380 | + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 381 | + exit ;; | |
| 382 | + sun4*:SunOS:*:*) | |
| 383 | + case "`/usr/bin/arch -k`" in | |
| 384 | + Series*|S4*) | |
| 385 | + UNAME_RELEASE=`uname -v` | |
| 386 | + ;; | |
| 387 | + esac | |
| 388 | + # Japanese Language versions have a version number like `4.1.3-JL'. | |
| 389 | + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
| 390 | + exit ;; | |
| 391 | + sun3*:SunOS:*:*) | |
| 392 | + echo m68k-sun-sunos${UNAME_RELEASE} | |
| 393 | + exit ;; | |
| 394 | + sun*:*:4.2BSD:*) | |
| 395 | + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | |
| 396 | + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
| 397 | + case "`/bin/arch`" in | |
| 398 | + sun3) | |
| 399 | + echo m68k-sun-sunos${UNAME_RELEASE} | |
| 400 | + ;; | |
| 401 | + sun4) | |
| 402 | + echo sparc-sun-sunos${UNAME_RELEASE} | |
| 403 | + ;; | |
| 404 | + esac | |
| 405 | + exit ;; | |
| 406 | + aushp:SunOS:*:*) | |
| 407 | + echo sparc-auspex-sunos${UNAME_RELEASE} | |
| 408 | + exit ;; | |
| 409 | + # The situation for MiNT is a little confusing. The machine name | |
| 410 | + # can be virtually everything (everything which is not | |
| 411 | + # "atarist" or "atariste" at least should have a processor | |
| 412 | + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | |
| 413 | + # to the lowercase version "mint" (or "freemint"). Finally | |
| 414 | + # the system name "TOS" denotes a system which is actually not | |
| 415 | + # MiNT. But MiNT is downward compatible to TOS, so this should | |
| 416 | + # be no problem. | |
| 417 | + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | |
| 418 | + echo m68k-atari-mint${UNAME_RELEASE} | |
| 419 | + exit ;; | |
| 420 | + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | |
| 421 | + echo m68k-atari-mint${UNAME_RELEASE} | |
| 422 | + exit ;; | |
| 423 | + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | |
| 424 | + echo m68k-atari-mint${UNAME_RELEASE} | |
| 425 | + exit ;; | |
| 426 | + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | |
| 427 | + echo m68k-milan-mint${UNAME_RELEASE} | |
| 428 | + exit ;; | |
| 429 | + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | |
| 430 | + echo m68k-hades-mint${UNAME_RELEASE} | |
| 431 | + exit ;; | |
| 432 | + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | |
| 433 | + echo m68k-unknown-mint${UNAME_RELEASE} | |
| 434 | + exit ;; | |
| 435 | + m68k:machten:*:*) | |
| 436 | + echo m68k-apple-machten${UNAME_RELEASE} | |
| 437 | + exit ;; | |
| 438 | + powerpc:machten:*:*) | |
| 439 | + echo powerpc-apple-machten${UNAME_RELEASE} | |
| 440 | + exit ;; | |
| 441 | + RISC*:Mach:*:*) | |
| 442 | + echo mips-dec-mach_bsd4.3 | |
| 443 | + exit ;; | |
| 444 | + RISC*:ULTRIX:*:*) | |
| 445 | + echo mips-dec-ultrix${UNAME_RELEASE} | |
| 446 | + exit ;; | |
| 447 | + VAX*:ULTRIX*:*:*) | |
| 448 | + echo vax-dec-ultrix${UNAME_RELEASE} | |
| 449 | + exit ;; | |
| 450 | + 2020:CLIX:*:* | 2430:CLIX:*:*) | |
| 451 | + echo clipper-intergraph-clix${UNAME_RELEASE} | |
| 452 | + exit ;; | |
| 453 | + mips:*:*:UMIPS | mips:*:*:RISCos) | |
| 454 | + eval $set_cc_for_build | |
| 455 | + sed 's/^ //' << EOF >$dummy.c | |
| 456 | +#ifdef __cplusplus | |
| 457 | +#include <stdio.h> /* for printf() prototype */ | |
| 458 | + int main (int argc, char *argv[]) { | |
| 459 | +#else | |
| 460 | + int main (argc, argv) int argc; char *argv[]; { | |
| 461 | +#endif | |
| 462 | + #if defined (host_mips) && defined (MIPSEB) | |
| 463 | + #if defined (SYSTYPE_SYSV) | |
| 464 | + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
| 465 | + #endif | |
| 466 | + #if defined (SYSTYPE_SVR4) | |
| 467 | + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
| 468 | + #endif | |
| 469 | + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | |
| 470 | + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
| 471 | + #endif | |
| 472 | + #endif | |
| 473 | + exit (-1); | |
| 474 | + } | |
| 475 | +EOF | |
| 476 | + $CC_FOR_BUILD -o $dummy $dummy.c && | |
| 477 | + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
| 478 | + SYSTEM_NAME=`$dummy $dummyarg` && | |
| 479 | + { echo "$SYSTEM_NAME"; exit; } | |
| 480 | + echo mips-mips-riscos${UNAME_RELEASE} | |
| 481 | + exit ;; | |
| 482 | + Motorola:PowerMAX_OS:*:*) | |
| 483 | + echo powerpc-motorola-powermax | |
| 484 | + exit ;; | |
| 485 | + Motorola:*:4.3:PL8-*) | |
| 486 | + echo powerpc-harris-powermax | |
| 487 | + exit ;; | |
| 488 | + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
| 489 | + echo powerpc-harris-powermax | |
| 490 | + exit ;; | |
| 491 | + Night_Hawk:Power_UNIX:*:*) | |
| 492 | + echo powerpc-harris-powerunix | |
| 493 | + exit ;; | |
| 494 | + m88k:CX/UX:7*:*) | |
| 495 | + echo m88k-harris-cxux7 | |
| 496 | + exit ;; | |
| 497 | + m88k:*:4*:R4*) | |
| 498 | + echo m88k-motorola-sysv4 | |
| 499 | + exit ;; | |
| 500 | + m88k:*:3*:R3*) | |
| 501 | + echo m88k-motorola-sysv3 | |
| 502 | + exit ;; | |
| 503 | + AViiON:dgux:*:*) | |
| 504 | + # DG/UX returns AViiON for all architectures | |
| 505 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
| 506 | + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
| 507 | + then | |
| 508 | + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
| 509 | + [ ${TARGET_BINARY_INTERFACE}x = x ] | |
| 510 | + then | |
| 511 | + echo m88k-dg-dgux${UNAME_RELEASE} | |
| 512 | + else | |
| 513 | + echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
| 514 | + fi | |
| 515 | + else | |
| 516 | + echo i586-dg-dgux${UNAME_RELEASE} | |
| 517 | + fi | |
| 518 | + exit ;; | |
| 519 | + M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
| 520 | + echo m88k-dolphin-sysv3 | |
| 521 | + exit ;; | |
| 522 | + M88*:*:R3*:*) | |
| 523 | + # Delta 88k system running SVR3 | |
| 524 | + echo m88k-motorola-sysv3 | |
| 525 | + exit ;; | |
| 526 | + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | |
| 527 | + echo m88k-tektronix-sysv3 | |
| 528 | + exit ;; | |
| 529 | + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | |
| 530 | + echo m68k-tektronix-bsd | |
| 531 | + exit ;; | |
| 532 | + *:IRIX*:*:*) | |
| 533 | + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
| 534 | + exit ;; | |
| 535 | + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | |
| 536 | + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
| 537 | + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
| 538 | + i*86:AIX:*:*) | |
| 539 | + echo i386-ibm-aix | |
| 540 | + exit ;; | |
| 541 | + ia64:AIX:*:*) | |
| 542 | + if [ -x /usr/bin/oslevel ] ; then | |
| 543 | + IBM_REV=`/usr/bin/oslevel` | |
| 544 | + else | |
| 545 | + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
| 546 | + fi | |
| 547 | + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
| 548 | + exit ;; | |
| 549 | + *:AIX:2:3) | |
| 550 | + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | |
| 551 | + eval $set_cc_for_build | |
| 552 | + sed 's/^ //' << EOF >$dummy.c | |
| 553 | + #include <sys/systemcfg.h> | |
| 554 | + | |
| 555 | + main() | |
| 556 | + { | |
| 557 | + if (!__power_pc()) | |
| 558 | + exit(1); | |
| 559 | + puts("powerpc-ibm-aix3.2.5"); | |
| 560 | + exit(0); | |
| 561 | + } | |
| 562 | +EOF | |
| 563 | + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
| 564 | + then | |
| 565 | + echo "$SYSTEM_NAME" | |
| 566 | + else | |
| 567 | + echo rs6000-ibm-aix3.2.5 | |
| 568 | + fi | |
| 569 | + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | |
| 570 | + echo rs6000-ibm-aix3.2.4 | |
| 571 | + else | |
| 572 | + echo rs6000-ibm-aix3.2 | |
| 573 | + fi | |
| 574 | + exit ;; | |
| 575 | + *:AIX:*:[4567]) | |
| 576 | + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
| 577 | + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
| 578 | + IBM_ARCH=rs6000 | |
| 579 | + else | |
| 580 | + IBM_ARCH=powerpc | |
| 581 | + fi | |
| 582 | + if [ -x /usr/bin/oslevel ] ; then | |
| 583 | + IBM_REV=`/usr/bin/oslevel` | |
| 584 | + else | |
| 585 | + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
| 586 | + fi | |
| 587 | + echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
| 588 | + exit ;; | |
| 589 | + *:AIX:*:*) | |
| 590 | + echo rs6000-ibm-aix | |
| 591 | + exit ;; | |
| 592 | + ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
| 593 | + echo romp-ibm-bsd4.4 | |
| 594 | + exit ;; | |
| 595 | + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | |
| 596 | + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
| 597 | + exit ;; # report: romp-ibm BSD 4.3 | |
| 598 | + *:BOSX:*:*) | |
| 599 | + echo rs6000-bull-bosx | |
| 600 | + exit ;; | |
| 601 | + DPX/2?00:B.O.S.:*:*) | |
| 602 | + echo m68k-bull-sysv3 | |
| 603 | + exit ;; | |
| 604 | + 9000/[34]??:4.3bsd:1.*:*) | |
| 605 | + echo m68k-hp-bsd | |
| 606 | + exit ;; | |
| 607 | + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | |
| 608 | + echo m68k-hp-bsd4.4 | |
| 609 | + exit ;; | |
| 610 | + 9000/[34678]??:HP-UX:*:*) | |
| 611 | + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
| 612 | + case "${UNAME_MACHINE}" in | |
| 613 | + 9000/31? ) HP_ARCH=m68000 ;; | |
| 614 | + 9000/[34]?? ) HP_ARCH=m68k ;; | |
| 615 | + 9000/[678][0-9][0-9]) | |
| 616 | + if [ -x /usr/bin/getconf ]; then | |
| 617 | + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
| 618 | + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
| 619 | + case "${sc_cpu_version}" in | |
| 620 | + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
| 621 | + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
| 622 | + 532) # CPU_PA_RISC2_0 | |
| 623 | + case "${sc_kernel_bits}" in | |
| 624 | + 32) HP_ARCH="hppa2.0n" ;; | |
| 625 | + 64) HP_ARCH="hppa2.0w" ;; | |
| 626 | + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
| 627 | + esac ;; | |
| 628 | + esac | |
| 629 | + fi | |
| 630 | + if [ "${HP_ARCH}" = "" ]; then | |
| 631 | + eval $set_cc_for_build | |
| 632 | + sed 's/^ //' << EOF >$dummy.c | |
| 633 | + | |
| 634 | + #define _HPUX_SOURCE | |
| 635 | + #include <stdlib.h> | |
| 636 | + #include <unistd.h> | |
| 637 | + | |
| 638 | + int main () | |
| 639 | + { | |
| 640 | + #if defined(_SC_KERNEL_BITS) | |
| 641 | + long bits = sysconf(_SC_KERNEL_BITS); | |
| 642 | + #endif | |
| 643 | + long cpu = sysconf (_SC_CPU_VERSION); | |
| 644 | + | |
| 645 | + switch (cpu) | |
| 646 | + { | |
| 647 | + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
| 648 | + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
| 649 | + case CPU_PA_RISC2_0: | |
| 650 | + #if defined(_SC_KERNEL_BITS) | |
| 651 | + switch (bits) | |
| 652 | + { | |
| 653 | + case 64: puts ("hppa2.0w"); break; | |
| 654 | + case 32: puts ("hppa2.0n"); break; | |
| 655 | + default: puts ("hppa2.0"); break; | |
| 656 | + } break; | |
| 657 | + #else /* !defined(_SC_KERNEL_BITS) */ | |
| 658 | + puts ("hppa2.0"); break; | |
| 659 | + #endif | |
| 660 | + default: puts ("hppa1.0"); break; | |
| 661 | + } | |
| 662 | + exit (0); | |
| 663 | + } | |
| 664 | +EOF | |
| 665 | + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
| 666 | + test -z "$HP_ARCH" && HP_ARCH=hppa | |
| 667 | + fi ;; | |
| 668 | + esac | |
| 669 | + if [ ${HP_ARCH} = "hppa2.0w" ] | |
| 670 | + then | |
| 671 | + eval $set_cc_for_build | |
| 672 | + | |
| 673 | + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | |
| 674 | + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | |
| 675 | + # generating 64-bit code. GNU and HP use different nomenclature: | |
| 676 | + # | |
| 677 | + # $ CC_FOR_BUILD=cc ./config.guess | |
| 678 | + # => hppa2.0w-hp-hpux11.23 | |
| 679 | + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | |
| 680 | + # => hppa64-hp-hpux11.23 | |
| 681 | + | |
| 682 | + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
| 683 | + grep -q __LP64__ | |
| 684 | + then | |
| 685 | + HP_ARCH="hppa2.0w" | |
| 686 | + else | |
| 687 | + HP_ARCH="hppa64" | |
| 688 | + fi | |
| 689 | + fi | |
| 690 | + echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
| 691 | + exit ;; | |
| 692 | + ia64:HP-UX:*:*) | |
| 693 | + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
| 694 | + echo ia64-hp-hpux${HPUX_REV} | |
| 695 | + exit ;; | |
| 696 | + 3050*:HI-UX:*:*) | |
| 697 | + eval $set_cc_for_build | |
| 698 | + sed 's/^ //' << EOF >$dummy.c | |
| 699 | + #include <unistd.h> | |
| 700 | + int | |
| 701 | + main () | |
| 702 | + { | |
| 703 | + long cpu = sysconf (_SC_CPU_VERSION); | |
| 704 | + /* The order matters, because CPU_IS_HP_MC68K erroneously returns | |
| 705 | + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | |
| 706 | + results, however. */ | |
| 707 | + if (CPU_IS_PA_RISC (cpu)) | |
| 708 | + { | |
| 709 | + switch (cpu) | |
| 710 | + { | |
| 711 | + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | |
| 712 | + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | |
| 713 | + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | |
| 714 | + default: puts ("hppa-hitachi-hiuxwe2"); break; | |
| 715 | + } | |
| 716 | + } | |
| 717 | + else if (CPU_IS_HP_MC68K (cpu)) | |
| 718 | + puts ("m68k-hitachi-hiuxwe2"); | |
| 719 | + else puts ("unknown-hitachi-hiuxwe2"); | |
| 720 | + exit (0); | |
| 721 | + } | |
| 722 | +EOF | |
| 723 | + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
| 724 | + { echo "$SYSTEM_NAME"; exit; } | |
| 725 | + echo unknown-hitachi-hiuxwe2 | |
| 726 | + exit ;; | |
| 727 | + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
| 728 | + echo hppa1.1-hp-bsd | |
| 729 | + exit ;; | |
| 730 | + 9000/8??:4.3bsd:*:*) | |
| 731 | + echo hppa1.0-hp-bsd | |
| 732 | + exit ;; | |
| 733 | + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | |
| 734 | + echo hppa1.0-hp-mpeix | |
| 735 | + exit ;; | |
| 736 | + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
| 737 | + echo hppa1.1-hp-osf | |
| 738 | + exit ;; | |
| 739 | + hp8??:OSF1:*:*) | |
| 740 | + echo hppa1.0-hp-osf | |
| 741 | + exit ;; | |
| 742 | + i*86:OSF1:*:*) | |
| 743 | + if [ -x /usr/sbin/sysversion ] ; then | |
| 744 | + echo ${UNAME_MACHINE}-unknown-osf1mk | |
| 745 | + else | |
| 746 | + echo ${UNAME_MACHINE}-unknown-osf1 | |
| 747 | + fi | |
| 748 | + exit ;; | |
| 749 | + parisc*:Lites*:*:*) | |
| 750 | + echo hppa1.1-hp-lites | |
| 751 | + exit ;; | |
| 752 | + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
| 753 | + echo c1-convex-bsd | |
| 754 | + exit ;; | |
| 755 | + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
| 756 | + if getsysinfo -f scalar_acc | |
| 757 | + then echo c32-convex-bsd | |
| 758 | + else echo c2-convex-bsd | |
| 759 | + fi | |
| 760 | + exit ;; | |
| 761 | + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | |
| 762 | + echo c34-convex-bsd | |
| 763 | + exit ;; | |
| 764 | + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | |
| 765 | + echo c38-convex-bsd | |
| 766 | + exit ;; | |
| 767 | + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | |
| 768 | + echo c4-convex-bsd | |
| 769 | + exit ;; | |
| 770 | + CRAY*Y-MP:*:*:*) | |
| 771 | + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
| 772 | + exit ;; | |
| 773 | + CRAY*[A-Z]90:*:*:*) | |
| 774 | + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
| 775 | + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | |
| 776 | + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | |
| 777 | + -e 's/\.[^.]*$/.X/' | |
| 778 | + exit ;; | |
| 779 | + CRAY*TS:*:*:*) | |
| 780 | + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
| 781 | + exit ;; | |
| 782 | + CRAY*T3E:*:*:*) | |
| 783 | + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
| 784 | + exit ;; | |
| 785 | + CRAY*SV1:*:*:*) | |
| 786 | + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
| 787 | + exit ;; | |
| 788 | + *:UNICOS/mp:*:*) | |
| 789 | + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
| 790 | + exit ;; | |
| 791 | + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | |
| 792 | + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
| 793 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 794 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
| 795 | + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 796 | + exit ;; | |
| 797 | + 5000:UNIX_System_V:4.*:*) | |
| 798 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 799 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
| 800 | + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 801 | + exit ;; | |
| 802 | + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
| 803 | + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
| 804 | + exit ;; | |
| 805 | + sparc*:BSD/OS:*:*) | |
| 806 | + echo sparc-unknown-bsdi${UNAME_RELEASE} | |
| 807 | + exit ;; | |
| 808 | + *:BSD/OS:*:*) | |
| 809 | + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
| 810 | + exit ;; | |
| 811 | + *:FreeBSD:*:*) | |
| 812 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
| 813 | + case ${UNAME_PROCESSOR} in | |
| 814 | + amd64) | |
| 815 | + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
| 816 | + *) | |
| 817 | + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
| 818 | + esac | |
| 819 | + exit ;; | |
| 820 | + i*:CYGWIN*:*) | |
| 821 | + echo ${UNAME_MACHINE}-pc-cygwin | |
| 822 | + exit ;; | |
| 823 | + *:MINGW64*:*) | |
| 824 | + echo ${UNAME_MACHINE}-pc-mingw64 | |
| 825 | + exit ;; | |
| 826 | + *:MINGW*:*) | |
| 827 | + echo ${UNAME_MACHINE}-pc-mingw32 | |
| 828 | + exit ;; | |
| 829 | + i*:MSYS*:*) | |
| 830 | + echo ${UNAME_MACHINE}-pc-msys | |
| 831 | + exit ;; | |
| 832 | + i*:windows32*:*) | |
| 833 | + # uname -m includes "-pc" on this system. | |
| 834 | + echo ${UNAME_MACHINE}-mingw32 | |
| 835 | + exit ;; | |
| 836 | + i*:PW*:*) | |
| 837 | + echo ${UNAME_MACHINE}-pc-pw32 | |
| 838 | + exit ;; | |
| 839 | + *:Interix*:*) | |
| 840 | + case ${UNAME_MACHINE} in | |
| 841 | + x86) | |
| 842 | + echo i586-pc-interix${UNAME_RELEASE} | |
| 843 | + exit ;; | |
| 844 | + authenticamd | genuineintel | EM64T) | |
| 845 | + echo x86_64-unknown-interix${UNAME_RELEASE} | |
| 846 | + exit ;; | |
| 847 | + IA64) | |
| 848 | + echo ia64-unknown-interix${UNAME_RELEASE} | |
| 849 | + exit ;; | |
| 850 | + esac ;; | |
| 851 | + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
| 852 | + echo i${UNAME_MACHINE}-pc-mks | |
| 853 | + exit ;; | |
| 854 | + 8664:Windows_NT:*) | |
| 855 | + echo x86_64-pc-mks | |
| 856 | + exit ;; | |
| 857 | + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
| 858 | + # How do we know it's Interix rather than the generic POSIX subsystem? | |
| 859 | + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
| 860 | + # UNAME_MACHINE based on the output of uname instead of i386? | |
| 861 | + echo i586-pc-interix | |
| 862 | + exit ;; | |
| 863 | + i*:UWIN*:*) | |
| 864 | + echo ${UNAME_MACHINE}-pc-uwin | |
| 865 | + exit ;; | |
| 866 | + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | |
| 867 | + echo x86_64-unknown-cygwin | |
| 868 | + exit ;; | |
| 869 | + p*:CYGWIN*:*) | |
| 870 | + echo powerpcle-unknown-cygwin | |
| 871 | + exit ;; | |
| 872 | + prep*:SunOS:5.*:*) | |
| 873 | + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
| 874 | + exit ;; | |
| 875 | + *:GNU:*:*) | |
| 876 | + # the GNU system | |
| 877 | + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
| 878 | + exit ;; | |
| 879 | + *:GNU/*:*:*) | |
| 880 | + # other systems with GNU libc and userland | |
| 881 | + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
| 882 | + exit ;; | |
| 883 | + i*86:Minix:*:*) | |
| 884 | + echo ${UNAME_MACHINE}-pc-minix | |
| 885 | + exit ;; | |
| 886 | + aarch64:Linux:*:*) | |
| 887 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 888 | + exit ;; | |
| 889 | + aarch64_be:Linux:*:*) | |
| 890 | + UNAME_MACHINE=aarch64_be | |
| 891 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 892 | + exit ;; | |
| 893 | + alpha:Linux:*:*) | |
| 894 | + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
| 895 | + EV5) UNAME_MACHINE=alphaev5 ;; | |
| 896 | + EV56) UNAME_MACHINE=alphaev56 ;; | |
| 897 | + PCA56) UNAME_MACHINE=alphapca56 ;; | |
| 898 | + PCA57) UNAME_MACHINE=alphapca56 ;; | |
| 899 | + EV6) UNAME_MACHINE=alphaev6 ;; | |
| 900 | + EV67) UNAME_MACHINE=alphaev67 ;; | |
| 901 | + EV68*) UNAME_MACHINE=alphaev68 ;; | |
| 902 | + esac | |
| 903 | + objdump --private-headers /bin/sh | grep -q ld.so.1 | |
| 904 | + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
| 905 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 906 | + exit ;; | |
| 907 | + arc:Linux:*:* | arceb:Linux:*:*) | |
| 908 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 909 | + exit ;; | |
| 910 | + arm*:Linux:*:*) | |
| 911 | + eval $set_cc_for_build | |
| 912 | + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
| 913 | + | grep -q __ARM_EABI__ | |
| 914 | + then | |
| 915 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 916 | + else | |
| 917 | + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
| 918 | + | grep -q __ARM_PCS_VFP | |
| 919 | + then | |
| 920 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
| 921 | + else | |
| 922 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
| 923 | + fi | |
| 924 | + fi | |
| 925 | + exit ;; | |
| 926 | + avr32*:Linux:*:*) | |
| 927 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 928 | + exit ;; | |
| 929 | + cris:Linux:*:*) | |
| 930 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
| 931 | + exit ;; | |
| 932 | + crisv32:Linux:*:*) | |
| 933 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
| 934 | + exit ;; | |
| 935 | + frv:Linux:*:*) | |
| 936 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 937 | + exit ;; | |
| 938 | + hexagon:Linux:*:*) | |
| 939 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 940 | + exit ;; | |
| 941 | + i*86:Linux:*:*) | |
| 942 | + echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
| 943 | + exit ;; | |
| 944 | + ia64:Linux:*:*) | |
| 945 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 946 | + exit ;; | |
| 947 | + m32r*:Linux:*:*) | |
| 948 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 949 | + exit ;; | |
| 950 | + m68*:Linux:*:*) | |
| 951 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 952 | + exit ;; | |
| 953 | + mips:Linux:*:* | mips64:Linux:*:*) | |
| 954 | + eval $set_cc_for_build | |
| 955 | + sed 's/^ //' << EOF >$dummy.c | |
| 956 | + #undef CPU | |
| 957 | + #undef ${UNAME_MACHINE} | |
| 958 | + #undef ${UNAME_MACHINE}el | |
| 959 | + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
| 960 | + CPU=${UNAME_MACHINE}el | |
| 961 | + #else | |
| 962 | + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
| 963 | + CPU=${UNAME_MACHINE} | |
| 964 | + #else | |
| 965 | + CPU= | |
| 966 | + #endif | |
| 967 | + #endif | |
| 968 | +EOF | |
| 969 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
| 970 | + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
| 971 | + ;; | |
| 972 | + or1k:Linux:*:*) | |
| 973 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 974 | + exit ;; | |
| 975 | + or32:Linux:*:*) | |
| 976 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 977 | + exit ;; | |
| 978 | + padre:Linux:*:*) | |
| 979 | + echo sparc-unknown-linux-${LIBC} | |
| 980 | + exit ;; | |
| 981 | + parisc64:Linux:*:* | hppa64:Linux:*:*) | |
| 982 | + echo hppa64-unknown-linux-${LIBC} | |
| 983 | + exit ;; | |
| 984 | + parisc:Linux:*:* | hppa:Linux:*:*) | |
| 985 | + # Look for CPU level | |
| 986 | + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | |
| 987 | + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
| 988 | + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
| 989 | + *) echo hppa-unknown-linux-${LIBC} ;; | |
| 990 | + esac | |
| 991 | + exit ;; | |
| 992 | + ppc64:Linux:*:*) | |
| 993 | + echo powerpc64-unknown-linux-${LIBC} | |
| 994 | + exit ;; | |
| 995 | + ppc:Linux:*:*) | |
| 996 | + echo powerpc-unknown-linux-${LIBC} | |
| 997 | + exit ;; | |
| 998 | + ppc64le:Linux:*:*) | |
| 999 | + echo powerpc64le-unknown-linux-${LIBC} | |
| 1000 | + exit ;; | |
| 1001 | + ppcle:Linux:*:*) | |
| 1002 | + echo powerpcle-unknown-linux-${LIBC} | |
| 1003 | + exit ;; | |
| 1004 | + s390:Linux:*:* | s390x:Linux:*:*) | |
| 1005 | + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
| 1006 | + exit ;; | |
| 1007 | + sh64*:Linux:*:*) | |
| 1008 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1009 | + exit ;; | |
| 1010 | + sh*:Linux:*:*) | |
| 1011 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1012 | + exit ;; | |
| 1013 | + sparc:Linux:*:* | sparc64:Linux:*:*) | |
| 1014 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1015 | + exit ;; | |
| 1016 | + tile*:Linux:*:*) | |
| 1017 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1018 | + exit ;; | |
| 1019 | + vax:Linux:*:*) | |
| 1020 | + echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
| 1021 | + exit ;; | |
| 1022 | + x86_64:Linux:*:*) | |
| 1023 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1024 | + exit ;; | |
| 1025 | + xtensa*:Linux:*:*) | |
| 1026 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 1027 | + exit ;; | |
| 1028 | + i*86:DYNIX/ptx:4*:*) | |
| 1029 | + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
| 1030 | + # earlier versions are messed up and put the nodename in both | |
| 1031 | + # sysname and nodename. | |
| 1032 | + echo i386-sequent-sysv4 | |
| 1033 | + exit ;; | |
| 1034 | + i*86:UNIX_SV:4.2MP:2.*) | |
| 1035 | + # Unixware is an offshoot of SVR4, but it has its own version | |
| 1036 | + # number series starting with 2... | |
| 1037 | + # I am not positive that other SVR4 systems won't match this, | |
| 1038 | + # I just have to hope. -- rms. | |
| 1039 | + # Use sysv4.2uw... so that sysv4* matches it. | |
| 1040 | + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
| 1041 | + exit ;; | |
| 1042 | + i*86:OS/2:*:*) | |
| 1043 | + # If we were able to find `uname', then EMX Unix compatibility | |
| 1044 | + # is probably installed. | |
| 1045 | + echo ${UNAME_MACHINE}-pc-os2-emx | |
| 1046 | + exit ;; | |
| 1047 | + i*86:XTS-300:*:STOP) | |
| 1048 | + echo ${UNAME_MACHINE}-unknown-stop | |
| 1049 | + exit ;; | |
| 1050 | + i*86:atheos:*:*) | |
| 1051 | + echo ${UNAME_MACHINE}-unknown-atheos | |
| 1052 | + exit ;; | |
| 1053 | + i*86:syllable:*:*) | |
| 1054 | + echo ${UNAME_MACHINE}-pc-syllable | |
| 1055 | + exit ;; | |
| 1056 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | |
| 1057 | + echo i386-unknown-lynxos${UNAME_RELEASE} | |
| 1058 | + exit ;; | |
| 1059 | + i*86:*DOS:*:*) | |
| 1060 | + echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
| 1061 | + exit ;; | |
| 1062 | + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
| 1063 | + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
| 1064 | + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | |
| 1065 | + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
| 1066 | + else | |
| 1067 | + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
| 1068 | + fi | |
| 1069 | + exit ;; | |
| 1070 | + i*86:*:5:[678]*) | |
| 1071 | + # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
| 1072 | + case `/bin/uname -X | grep "^Machine"` in | |
| 1073 | + *486*) UNAME_MACHINE=i486 ;; | |
| 1074 | + *Pentium) UNAME_MACHINE=i586 ;; | |
| 1075 | + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | |
| 1076 | + esac | |
| 1077 | + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
| 1078 | + exit ;; | |
| 1079 | + i*86:*:3.2:*) | |
| 1080 | + if test -f /usr/options/cb.name; then | |
| 1081 | + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | |
| 1082 | + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
| 1083 | + elif /bin/uname -X 2>/dev/null >/dev/null ; then | |
| 1084 | + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | |
| 1085 | + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | |
| 1086 | + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | |
| 1087 | + && UNAME_MACHINE=i586 | |
| 1088 | + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | |
| 1089 | + && UNAME_MACHINE=i686 | |
| 1090 | + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | |
| 1091 | + && UNAME_MACHINE=i686 | |
| 1092 | + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
| 1093 | + else | |
| 1094 | + echo ${UNAME_MACHINE}-pc-sysv32 | |
| 1095 | + fi | |
| 1096 | + exit ;; | |
| 1097 | + pc:*:*:*) | |
| 1098 | + # Left here for compatibility: | |
| 1099 | + # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
| 1100 | + # the processor, so we play safe by assuming i586. | |
| 1101 | + # Note: whatever this is, it MUST be the same as what config.sub | |
| 1102 | + # prints for the "djgpp" host, or else GDB configury will decide that | |
| 1103 | + # this is a cross-build. | |
| 1104 | + echo i586-pc-msdosdjgpp | |
| 1105 | + exit ;; | |
| 1106 | + Intel:Mach:3*:*) | |
| 1107 | + echo i386-pc-mach3 | |
| 1108 | + exit ;; | |
| 1109 | + paragon:*:*:*) | |
| 1110 | + echo i860-intel-osf1 | |
| 1111 | + exit ;; | |
| 1112 | + i860:*:4.*:*) # i860-SVR4 | |
| 1113 | + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | |
| 1114 | + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
| 1115 | + else # Add other i860-SVR4 vendors below as they are discovered. | |
| 1116 | + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
| 1117 | + fi | |
| 1118 | + exit ;; | |
| 1119 | + mini*:CTIX:SYS*5:*) | |
| 1120 | + # "miniframe" | |
| 1121 | + echo m68010-convergent-sysv | |
| 1122 | + exit ;; | |
| 1123 | + mc68k:UNIX:SYSTEM5:3.51m) | |
| 1124 | + echo m68k-convergent-sysv | |
| 1125 | + exit ;; | |
| 1126 | + M680?0:D-NIX:5.3:*) | |
| 1127 | + echo m68k-diab-dnix | |
| 1128 | + exit ;; | |
| 1129 | + M68*:*:R3V[5678]*:*) | |
| 1130 | + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | |
| 1131 | + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) | |
| 1132 | + OS_REL='' | |
| 1133 | + test -r /etc/.relid \ | |
| 1134 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
| 1135 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
| 1136 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
| 1137 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
| 1138 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
| 1139 | + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | |
| 1140 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
| 1141 | + && { echo i486-ncr-sysv4; exit; } ;; | |
| 1142 | + NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
| 1143 | + OS_REL='.3' | |
| 1144 | + test -r /etc/.relid \ | |
| 1145 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
| 1146 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
| 1147 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
| 1148 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
| 1149 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
| 1150 | + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
| 1151 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
| 1152 | + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | |
| 1153 | + echo m68k-unknown-lynxos${UNAME_RELEASE} | |
| 1154 | + exit ;; | |
| 1155 | + mc68030:UNIX_System_V:4.*:*) | |
| 1156 | + echo m68k-atari-sysv4 | |
| 1157 | + exit ;; | |
| 1158 | + TSUNAMI:LynxOS:2.*:*) | |
| 1159 | + echo sparc-unknown-lynxos${UNAME_RELEASE} | |
| 1160 | + exit ;; | |
| 1161 | + rs6000:LynxOS:2.*:*) | |
| 1162 | + echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
| 1163 | + exit ;; | |
| 1164 | + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | |
| 1165 | + echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
| 1166 | + exit ;; | |
| 1167 | + SM[BE]S:UNIX_SV:*:*) | |
| 1168 | + echo mips-dde-sysv${UNAME_RELEASE} | |
| 1169 | + exit ;; | |
| 1170 | + RM*:ReliantUNIX-*:*:*) | |
| 1171 | + echo mips-sni-sysv4 | |
| 1172 | + exit ;; | |
| 1173 | + RM*:SINIX-*:*:*) | |
| 1174 | + echo mips-sni-sysv4 | |
| 1175 | + exit ;; | |
| 1176 | + *:SINIX-*:*:*) | |
| 1177 | + if uname -p 2>/dev/null >/dev/null ; then | |
| 1178 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
| 1179 | + echo ${UNAME_MACHINE}-sni-sysv4 | |
| 1180 | + else | |
| 1181 | + echo ns32k-sni-sysv | |
| 1182 | + fi | |
| 1183 | + exit ;; | |
| 1184 | + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
| 1185 | + # says <Richard.M.Bartel@ccMail.Census.GOV> | |
| 1186 | + echo i586-unisys-sysv4 | |
| 1187 | + exit ;; | |
| 1188 | + *:UNIX_System_V:4*:FTX*) | |
| 1189 | + # From Gerald Hewes <hewes@openmarket.com>. | |
| 1190 | + # How about differentiating between stratus architectures? -djm | |
| 1191 | + echo hppa1.1-stratus-sysv4 | |
| 1192 | + exit ;; | |
| 1193 | + *:*:*:FTX*) | |
| 1194 | + # From seanf@swdc.stratus.com. | |
| 1195 | + echo i860-stratus-sysv4 | |
| 1196 | + exit ;; | |
| 1197 | + i*86:VOS:*:*) | |
| 1198 | + # From Paul.Green@stratus.com. | |
| 1199 | + echo ${UNAME_MACHINE}-stratus-vos | |
| 1200 | + exit ;; | |
| 1201 | + *:VOS:*:*) | |
| 1202 | + # From Paul.Green@stratus.com. | |
| 1203 | + echo hppa1.1-stratus-vos | |
| 1204 | + exit ;; | |
| 1205 | + mc68*:A/UX:*:*) | |
| 1206 | + echo m68k-apple-aux${UNAME_RELEASE} | |
| 1207 | + exit ;; | |
| 1208 | + news*:NEWS-OS:6*:*) | |
| 1209 | + echo mips-sony-newsos6 | |
| 1210 | + exit ;; | |
| 1211 | + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | |
| 1212 | + if [ -d /usr/nec ]; then | |
| 1213 | + echo mips-nec-sysv${UNAME_RELEASE} | |
| 1214 | + else | |
| 1215 | + echo mips-unknown-sysv${UNAME_RELEASE} | |
| 1216 | + fi | |
| 1217 | + exit ;; | |
| 1218 | + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | |
| 1219 | + echo powerpc-be-beos | |
| 1220 | + exit ;; | |
| 1221 | + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | |
| 1222 | + echo powerpc-apple-beos | |
| 1223 | + exit ;; | |
| 1224 | + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | |
| 1225 | + echo i586-pc-beos | |
| 1226 | + exit ;; | |
| 1227 | + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | |
| 1228 | + echo i586-pc-haiku | |
| 1229 | + exit ;; | |
| 1230 | + x86_64:Haiku:*:*) | |
| 1231 | + echo x86_64-unknown-haiku | |
| 1232 | + exit ;; | |
| 1233 | + SX-4:SUPER-UX:*:*) | |
| 1234 | + echo sx4-nec-superux${UNAME_RELEASE} | |
| 1235 | + exit ;; | |
| 1236 | + SX-5:SUPER-UX:*:*) | |
| 1237 | + echo sx5-nec-superux${UNAME_RELEASE} | |
| 1238 | + exit ;; | |
| 1239 | + SX-6:SUPER-UX:*:*) | |
| 1240 | + echo sx6-nec-superux${UNAME_RELEASE} | |
| 1241 | + exit ;; | |
| 1242 | + SX-7:SUPER-UX:*:*) | |
| 1243 | + echo sx7-nec-superux${UNAME_RELEASE} | |
| 1244 | + exit ;; | |
| 1245 | + SX-8:SUPER-UX:*:*) | |
| 1246 | + echo sx8-nec-superux${UNAME_RELEASE} | |
| 1247 | + exit ;; | |
| 1248 | + SX-8R:SUPER-UX:*:*) | |
| 1249 | + echo sx8r-nec-superux${UNAME_RELEASE} | |
| 1250 | + exit ;; | |
| 1251 | + Power*:Rhapsody:*:*) | |
| 1252 | + echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
| 1253 | + exit ;; | |
| 1254 | + *:Rhapsody:*:*) | |
| 1255 | + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
| 1256 | + exit ;; | |
| 1257 | + *:Darwin:*:*) | |
| 1258 | + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | |
| 1259 | + eval $set_cc_for_build | |
| 1260 | + if test "$UNAME_PROCESSOR" = unknown ; then | |
| 1261 | + UNAME_PROCESSOR=powerpc | |
| 1262 | + fi | |
| 1263 | + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |
| 1264 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
| 1265 | + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
| 1266 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
| 1267 | + grep IS_64BIT_ARCH >/dev/null | |
| 1268 | + then | |
| 1269 | + case $UNAME_PROCESSOR in | |
| 1270 | + i386) UNAME_PROCESSOR=x86_64 ;; | |
| 1271 | + powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
| 1272 | + esac | |
| 1273 | + fi | |
| 1274 | + fi | |
| 1275 | + elif test "$UNAME_PROCESSOR" = i386 ; then | |
| 1276 | + # Avoid executing cc on OS X 10.9, as it ships with a stub | |
| 1277 | + # that puts up a graphical alert prompting to install | |
| 1278 | + # developer tools. Any system running Mac OS X 10.7 or | |
| 1279 | + # later (Darwin 11 and later) is required to have a 64-bit | |
| 1280 | + # processor. This is not true of the ARM version of Darwin | |
| 1281 | + # that Apple uses in portable devices. | |
| 1282 | + UNAME_PROCESSOR=x86_64 | |
| 1283 | + fi | |
| 1284 | + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
| 1285 | + exit ;; | |
| 1286 | + *:procnto*:*:* | *:QNX:[0123456789]*:*) | |
| 1287 | + UNAME_PROCESSOR=`uname -p` | |
| 1288 | + if test "$UNAME_PROCESSOR" = "x86"; then | |
| 1289 | + UNAME_PROCESSOR=i386 | |
| 1290 | + UNAME_MACHINE=pc | |
| 1291 | + fi | |
| 1292 | + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
| 1293 | + exit ;; | |
| 1294 | + *:QNX:*:4*) | |
| 1295 | + echo i386-pc-qnx | |
| 1296 | + exit ;; | |
| 1297 | + NEO-?:NONSTOP_KERNEL:*:*) | |
| 1298 | + echo neo-tandem-nsk${UNAME_RELEASE} | |
| 1299 | + exit ;; | |
| 1300 | + NSE-*:NONSTOP_KERNEL:*:*) | |
| 1301 | + echo nse-tandem-nsk${UNAME_RELEASE} | |
| 1302 | + exit ;; | |
| 1303 | + NSR-?:NONSTOP_KERNEL:*:*) | |
| 1304 | + echo nsr-tandem-nsk${UNAME_RELEASE} | |
| 1305 | + exit ;; | |
| 1306 | + *:NonStop-UX:*:*) | |
| 1307 | + echo mips-compaq-nonstopux | |
| 1308 | + exit ;; | |
| 1309 | + BS2000:POSIX*:*:*) | |
| 1310 | + echo bs2000-siemens-sysv | |
| 1311 | + exit ;; | |
| 1312 | + DS/*:UNIX_System_V:*:*) | |
| 1313 | + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
| 1314 | + exit ;; | |
| 1315 | + *:Plan9:*:*) | |
| 1316 | + # "uname -m" is not consistent, so use $cputype instead. 386 | |
| 1317 | + # is converted to i386 for consistency with other x86 | |
| 1318 | + # operating systems. | |
| 1319 | + if test "$cputype" = "386"; then | |
| 1320 | + UNAME_MACHINE=i386 | |
| 1321 | + else | |
| 1322 | + UNAME_MACHINE="$cputype" | |
| 1323 | + fi | |
| 1324 | + echo ${UNAME_MACHINE}-unknown-plan9 | |
| 1325 | + exit ;; | |
| 1326 | + *:TOPS-10:*:*) | |
| 1327 | + echo pdp10-unknown-tops10 | |
| 1328 | + exit ;; | |
| 1329 | + *:TENEX:*:*) | |
| 1330 | + echo pdp10-unknown-tenex | |
| 1331 | + exit ;; | |
| 1332 | + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | |
| 1333 | + echo pdp10-dec-tops20 | |
| 1334 | + exit ;; | |
| 1335 | + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | |
| 1336 | + echo pdp10-xkl-tops20 | |
| 1337 | + exit ;; | |
| 1338 | + *:TOPS-20:*:*) | |
| 1339 | + echo pdp10-unknown-tops20 | |
| 1340 | + exit ;; | |
| 1341 | + *:ITS:*:*) | |
| 1342 | + echo pdp10-unknown-its | |
| 1343 | + exit ;; | |
| 1344 | + SEI:*:*:SEIUX) | |
| 1345 | + echo mips-sei-seiux${UNAME_RELEASE} | |
| 1346 | + exit ;; | |
| 1347 | + *:DragonFly:*:*) | |
| 1348 | + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
| 1349 | + exit ;; | |
| 1350 | + *:*VMS:*:*) | |
| 1351 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
| 1352 | + case "${UNAME_MACHINE}" in | |
| 1353 | + A*) echo alpha-dec-vms ; exit ;; | |
| 1354 | + I*) echo ia64-dec-vms ; exit ;; | |
| 1355 | + V*) echo vax-dec-vms ; exit ;; | |
| 1356 | + esac ;; | |
| 1357 | + *:XENIX:*:SysV) | |
| 1358 | + echo i386-pc-xenix | |
| 1359 | + exit ;; | |
| 1360 | + i*86:skyos:*:*) | |
| 1361 | + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
| 1362 | + exit ;; | |
| 1363 | + i*86:rdos:*:*) | |
| 1364 | + echo ${UNAME_MACHINE}-pc-rdos | |
| 1365 | + exit ;; | |
| 1366 | + i*86:AROS:*:*) | |
| 1367 | + echo ${UNAME_MACHINE}-pc-aros | |
| 1368 | + exit ;; | |
| 1369 | + x86_64:VMkernel:*:*) | |
| 1370 | + echo ${UNAME_MACHINE}-unknown-esx | |
| 1371 | + exit ;; | |
| 1372 | +esac | |
| 1373 | + | |
| 1374 | +eval $set_cc_for_build | |
| 1375 | +cat >$dummy.c <<EOF | |
| 1376 | +#ifdef _SEQUENT_ | |
| 1377 | +# include <sys/types.h> | |
| 1378 | +# include <sys/utsname.h> | |
| 1379 | +#endif | |
| 1380 | +main () | |
| 1381 | +{ | |
| 1382 | +#if defined (sony) | |
| 1383 | +#if defined (MIPSEB) | |
| 1384 | + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
| 1385 | + I don't know.... */ | |
| 1386 | + printf ("mips-sony-bsd\n"); exit (0); | |
| 1387 | +#else | |
| 1388 | +#include <sys/param.h> | |
| 1389 | + printf ("m68k-sony-newsos%s\n", | |
| 1390 | +#ifdef NEWSOS4 | |
| 1391 | + "4" | |
| 1392 | +#else | |
| 1393 | + "" | |
| 1394 | +#endif | |
| 1395 | + ); exit (0); | |
| 1396 | +#endif | |
| 1397 | +#endif | |
| 1398 | + | |
| 1399 | +#if defined (__arm) && defined (__acorn) && defined (__unix) | |
| 1400 | + printf ("arm-acorn-riscix\n"); exit (0); | |
| 1401 | +#endif | |
| 1402 | + | |
| 1403 | +#if defined (hp300) && !defined (hpux) | |
| 1404 | + printf ("m68k-hp-bsd\n"); exit (0); | |
| 1405 | +#endif | |
| 1406 | + | |
| 1407 | +#if defined (NeXT) | |
| 1408 | +#if !defined (__ARCHITECTURE__) | |
| 1409 | +#define __ARCHITECTURE__ "m68k" | |
| 1410 | +#endif | |
| 1411 | + int version; | |
| 1412 | + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
| 1413 | + if (version < 4) | |
| 1414 | + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
| 1415 | + else | |
| 1416 | + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
| 1417 | + exit (0); | |
| 1418 | +#endif | |
| 1419 | + | |
| 1420 | +#if defined (MULTIMAX) || defined (n16) | |
| 1421 | +#if defined (UMAXV) | |
| 1422 | + printf ("ns32k-encore-sysv\n"); exit (0); | |
| 1423 | +#else | |
| 1424 | +#if defined (CMU) | |
| 1425 | + printf ("ns32k-encore-mach\n"); exit (0); | |
| 1426 | +#else | |
| 1427 | + printf ("ns32k-encore-bsd\n"); exit (0); | |
| 1428 | +#endif | |
| 1429 | +#endif | |
| 1430 | +#endif | |
| 1431 | + | |
| 1432 | +#if defined (__386BSD__) | |
| 1433 | + printf ("i386-pc-bsd\n"); exit (0); | |
| 1434 | +#endif | |
| 1435 | + | |
| 1436 | +#if defined (sequent) | |
| 1437 | +#if defined (i386) | |
| 1438 | + printf ("i386-sequent-dynix\n"); exit (0); | |
| 1439 | +#endif | |
| 1440 | +#if defined (ns32000) | |
| 1441 | + printf ("ns32k-sequent-dynix\n"); exit (0); | |
| 1442 | +#endif | |
| 1443 | +#endif | |
| 1444 | + | |
| 1445 | +#if defined (_SEQUENT_) | |
| 1446 | + struct utsname un; | |
| 1447 | + | |
| 1448 | + uname(&un); | |
| 1449 | + | |
| 1450 | + if (strncmp(un.version, "V2", 2) == 0) { | |
| 1451 | + printf ("i386-sequent-ptx2\n"); exit (0); | |
| 1452 | + } | |
| 1453 | + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
| 1454 | + printf ("i386-sequent-ptx1\n"); exit (0); | |
| 1455 | + } | |
| 1456 | + printf ("i386-sequent-ptx\n"); exit (0); | |
| 1457 | + | |
| 1458 | +#endif | |
| 1459 | + | |
| 1460 | +#if defined (vax) | |
| 1461 | +# if !defined (ultrix) | |
| 1462 | +# include <sys/param.h> | |
| 1463 | +# if defined (BSD) | |
| 1464 | +# if BSD == 43 | |
| 1465 | + printf ("vax-dec-bsd4.3\n"); exit (0); | |
| 1466 | +# else | |
| 1467 | +# if BSD == 199006 | |
| 1468 | + printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
| 1469 | +# else | |
| 1470 | + printf ("vax-dec-bsd\n"); exit (0); | |
| 1471 | +# endif | |
| 1472 | +# endif | |
| 1473 | +# else | |
| 1474 | + printf ("vax-dec-bsd\n"); exit (0); | |
| 1475 | +# endif | |
| 1476 | +# else | |
| 1477 | + printf ("vax-dec-ultrix\n"); exit (0); | |
| 1478 | +# endif | |
| 1479 | +#endif | |
| 1480 | + | |
| 1481 | +#if defined (alliant) && defined (i860) | |
| 1482 | + printf ("i860-alliant-bsd\n"); exit (0); | |
| 1483 | +#endif | |
| 1484 | + | |
| 1485 | + exit (1); | |
| 1486 | +} | |
| 1487 | +EOF | |
| 1488 | + | |
| 1489 | +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | |
| 1490 | + { echo "$SYSTEM_NAME"; exit; } | |
| 1491 | + | |
| 1492 | +# Apollos put the system type in the environment. | |
| 1493 | + | |
| 1494 | +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | |
| 1495 | + | |
| 1496 | +# Convex versions that predate uname can use getsysinfo(1) | |
| 1497 | + | |
| 1498 | +if [ -x /usr/convex/getsysinfo ] | |
| 1499 | +then | |
| 1500 | + case `getsysinfo -f cpu_type` in | |
| 1501 | + c1*) | |
| 1502 | + echo c1-convex-bsd | |
| 1503 | + exit ;; | |
| 1504 | + c2*) | |
| 1505 | + if getsysinfo -f scalar_acc | |
| 1506 | + then echo c32-convex-bsd | |
| 1507 | + else echo c2-convex-bsd | |
| 1508 | + fi | |
| 1509 | + exit ;; | |
| 1510 | + c34*) | |
| 1511 | + echo c34-convex-bsd | |
| 1512 | + exit ;; | |
| 1513 | + c38*) | |
| 1514 | + echo c38-convex-bsd | |
| 1515 | + exit ;; | |
| 1516 | + c4*) | |
| 1517 | + echo c4-convex-bsd | |
| 1518 | + exit ;; | |
| 1519 | + esac | |
| 1520 | +fi | |
| 1521 | + | |
| 1522 | +cat >&2 <<EOF | |
| 1523 | +$0: unable to guess system type | |
| 1524 | + | |
| 1525 | +This script, last modified $timestamp, has failed to recognize | |
| 1526 | +the operating system you are using. It is advised that you | |
| 1527 | +download the most up to date version of the config scripts from | |
| 1528 | + | |
| 1529 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
| 1530 | +and | |
| 1531 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
| 1532 | + | |
| 1533 | +If the version you run ($0) is already up to date, please | |
| 1534 | +send the following data and any information you think might be | |
| 1535 | +pertinent to <config-patches@gnu.org> in order to provide the needed | |
| 1536 | +information to handle your system. | |
| 1537 | + | |
| 1538 | +config.guess timestamp = $timestamp | |
| 1539 | + | |
| 1540 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
| 1541 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
| 1542 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
| 1543 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
| 1544 | + | |
| 1545 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | |
| 1546 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` | |
| 1547 | + | |
| 1548 | +hostinfo = `(hostinfo) 2>/dev/null` | |
| 1549 | +/bin/universe = `(/bin/universe) 2>/dev/null` | |
| 1550 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | |
| 1551 | +/bin/arch = `(/bin/arch) 2>/dev/null` | |
| 1552 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | |
| 1553 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | |
| 1554 | + | |
| 1555 | +UNAME_MACHINE = ${UNAME_MACHINE} | |
| 1556 | +UNAME_RELEASE = ${UNAME_RELEASE} | |
| 1557 | +UNAME_SYSTEM = ${UNAME_SYSTEM} | |
| 1558 | +UNAME_VERSION = ${UNAME_VERSION} | |
| 1559 | +EOF | |
| 1560 | + | |
| 1561 | +exit 1 | |
| 1562 | + | |
| 1563 | +# Local variables: | |
| 1564 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
| 1565 | +# time-stamp-start: "timestamp='" | |
| 1566 | +# time-stamp-format: "%:y-%02m-%02d" | |
| 1567 | +# time-stamp-end: "'" | |
| 1568 | +# End: | ... | ... |