Codebase list libde265 / 19c4491
Imported Upstream version 1.0.4 Joachim Bauch 4 years ago
30 changed file(s) with 862 addition(s) and 1674 deletion(s). Raw diff Collapse all Expand all
0 project (libde265)
1 cmake_minimum_required (VERSION 2.8.8)
0 cmake_minimum_required (VERSION 3.3.2)
1
2 project (libde265
3 LANGUAGES C CXX
4 VERSION 1.0.4
5 )
6
7 set(CMAKE_CXX_STANDARD 11)
8 set(CMAKE_CXX_STANDARD_REQUIRED ON)
9 set(CMAKE_CXX_EXTENSIONS OFF)
10 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
211
312 # The version number.
4 set (NUMERIC_VERSION 0x01000000)
5 set (PACKAGE_VERSION 1.0.0)
13 set (NUMERIC_VERSION 0x01000400)
14 set (PACKAGE_VERSION ${PROJECT_VERSION})
615
716 include (${CMAKE_ROOT}/Modules/CheckCCompilerFlag.cmake)
817 include (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
9 include (${CMAKE_ROOT}/Modules/FindSDL.cmake)
10 include (${CMAKE_ROOT}/Modules/FindThreads.cmake)
18 include(GNUInstallDirs)
19 include(CheckCCompilerFlag)
20 include(CheckFunctionExists)
21 include(CheckIncludeFile)
22
23 find_package(SDL)
24 find_package(Threads REQUIRED)
1125
1226 CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H)
1327 CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
2337 add_definitions(-DHAVE_STDBOOL_H)
2438 endif()
2539
26 configure_file (
27 "${PROJECT_SOURCE_DIR}/libde265/de265-version.h.in"
28 "${PROJECT_BINARY_DIR}/libde265/de265-version.h"
29 )
40 configure_file (libde265/de265-version.h.in libde265/de265-version.h)
3041
31 if(CMAKE_COMPILER_IS_GNUCXX)
32 set(GCC 1)
42 if(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
3343 add_definitions(-Wall)
34 set(CMAKE_CXX_FLAGS "-std=gnu++0x ${CMAKE_CXX_FLAGS}")
35 elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
36 add_definitions(-Wall)
37 set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
3844 endif()
3945
4046 option(DISABLE_SSE "Disable SSE optimizations")
5662 add_definitions(-DNOMINMAX)
5763 endif()
5864
59 if(UNIX)
60 set(LIBDE265_LIBRARY_NAME de265)
61 else()
62 set(LIBDE265_LIBRARY_NAME libde265)
63 endif()
64
6565 add_subdirectory (libde265)
6666 add_subdirectory (dec265)
6767 add_subdirectory (enc265)
+169
-171
INSTALL less more
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
4 Foundation, Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
1111 Basic Installation
1212 ==================
1313
14 Briefly, the shell command `./configure && make && make install'
14 Briefly, the shell command './configure && make && make install'
1515 should configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
16 more-detailed instructions are generic; see the 'README' file for
1717 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
18 'INSTALL' file but do not implement all of the features documented
1919 below. The lack of an optional feature in a given package is not
2020 necessarily a bug. More recommendations for GNU packages can be found
2121 in *note Makefile Conventions: (standards)Makefile Conventions.
2222
23 The `configure' shell script attempts to guess correct values for
23 The 'configure' shell script attempts to guess correct values for
2424 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
25 those values to create a 'Makefile' in each directory of the package.
26 It may also create one or more '.h' files containing system-dependent
27 definitions. Finally, it creates a shell script 'config.status' that
2828 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
29 file 'config.log' containing compiler output (useful mainly for
30 debugging 'configure').
31
32 It can also use an optional file (typically called 'config.cache' and
33 enabled with '--cache-file=config.cache' or simply '-C') that saves the
34 results of its tests to speed up reconfiguring. Caching is disabled by
35 default to prevent problems with accidental use of stale cache files.
3736
3837 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
38 to figure out how 'configure' could check whether to do them, and mail
39 diffs or instructions to the address given in the 'README' so they can
4140 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
41 some point 'config.cache' contains results you don't want to keep, you
4342 may remove or edit it.
4443
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
44 The file 'configure.ac' (or 'configure.in') is used to create
45 'configure' by a program called 'autoconf'. You need 'configure.ac' if
46 you want to change it or regenerate 'configure' using a newer version of
47 'autoconf'.
4948
5049 The simplest way to compile this package is:
5150
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
51 1. 'cd' to the directory containing the package's source code and type
52 './configure' to configure the package for your system.
53
54 Running 'configure' might take a while. While running, it prints
5655 some messages telling which features it is checking for.
5756
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
57 2. Type 'make' to compile the package.
58
59 3. Optionally, type 'make check' to run any self-tests that come with
6160 the package, generally using the just-built uninstalled binaries.
6261
63 4. Type `make install' to install the programs and any data files and
62 4. Type 'make install' to install the programs and any data files and
6463 documentation. When installing into a prefix owned by root, it is
6564 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
65 user, and only the 'make install' phase executed with root
6766 privileges.
6867
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
68 5. Optionally, type 'make installcheck' to repeat any self-tests, but
7069 this time using the binaries in their final installed location.
7170 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
71 regular user, particularly if the prior 'make install' required
7372 root privileges, verifies that the installation completed
7473 correctly.
7574
7675 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
76 source code directory by typing 'make clean'. To also remove the
77 files that 'configure' created (so you can compile the package for
78 a different kind of computer), type 'make distclean'. There is
79 also a 'make maintainer-clean' target, but that is intended mainly
8180 for the package's developers. If you use it, you may have to get
8281 all sorts of other programs in order to regenerate files that came
8382 with the distribution.
8483
85 7. Often, you can also type `make uninstall' to remove the installed
84 7. Often, you can also type 'make uninstall' to remove the installed
8685 files again. In practice, not all packages have tested that
8786 uninstallation works correctly, even though it is required by the
8887 GNU Coding Standards.
8988
90 8. Some packages, particularly those that use Automake, provide `make
89 8. Some packages, particularly those that use Automake, provide 'make
9190 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
91 targets like 'make install' and 'make uninstall' work correctly.
9392 This target is generally not run by end users.
9493
9594 Compilers and Options
9695 =====================
9796
9897 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
98 the 'configure' script does not know about. Run './configure --help'
10099 for details on some of the pertinent environment variables.
101100
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
101 You can give 'configure' initial values for configuration parameters
102 by setting variables in the command line or in the environment. Here is
103 an example:
105104
106105 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107106
112111
113112 You can compile the package for more than one kind of computer at the
114113 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
114 own directory. To do this, you can use GNU 'make'. 'cd' to the
116115 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
116 the 'configure' script. 'configure' automatically checks for the source
117 code in the directory that 'configure' is in and in '..'. This is known
118 as a "VPATH" build.
119
120 With a non-GNU 'make', it is safer to compile the package for one
122121 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
122 installed the package for one architecture, use 'make distclean' before
124123 reconfiguring for another architecture.
125124
126125 On MacOS X 10.5 and later systems, you can create libraries and
127126 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
127 "universal" binaries--by specifying multiple '-arch' options to the
128 compiler but only a single '-arch' option to the preprocessor. Like
130129 this:
131130
132131 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135134
136135 This is not guaranteed to produce working output in all cases, you
137136 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
137 using the 'lipo' tool if you have problems.
139138
140139 Installation Names
141140 ==================
142141
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
142 By default, 'make install' installs the package's commands under
143 '/usr/local/bin', include files under '/usr/local/include', etc. You
144 can specify an installation prefix other than '/usr/local' by giving
145 'configure' the option '--prefix=PREFIX', where PREFIX must be an
147146 absolute file name.
148147
149148 You can specify separate installation prefixes for
150149 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
150 pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
152151 PREFIX as the prefix for installing programs and libraries.
153152 Documentation and other data files still use the regular prefix.
154153
155154 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
155 options like '--bindir=DIR' to specify different values for particular
156 kinds of files. Run 'configure --help' for a list of the directories
157 you can set and what kinds of files go in them. In general, the default
158 for these options is expressed in terms of '${prefix}', so that
159 specifying just '--prefix' will affect all of the other directory
161160 specifications that were not explicitly provided.
162161
163162 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
163 correct locations to 'configure'; however, many packages provide one or
165164 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
165 'make install' command line to change installation locations without
167166 having to reconfigure or recompile.
168167
169168 The first method involves providing an override variable for each
170 affected directory. For example, `make install
169 affected directory. For example, 'make install
171170 prefix=/alternate/directory' will choose an alternate location for all
172171 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
172 '${prefix}'. Any directories that were specified during 'configure',
173 but not in terms of '${prefix}', must each be overridden at install time
174 for the entire installation to be relocated. The approach of makefile
175 variable overrides for each directory variable is required by the GNU
176 Coding Standards, and ideally causes no recompilation. However, some
177 platforms have known limitations with the semantics of shared libraries
178 that end up requiring recompilation when using this method, particularly
179 noticeable in packages that use GNU Libtool.
180
181 The second method involves providing the 'DESTDIR' variable. For
182 example, 'make install DESTDIR=/alternate/directory' will prepend
183 '/alternate/directory' before all installation names. The approach of
184 'DESTDIR' overrides is not required by the GNU Coding Standards, and
186185 does not work on platforms that have drive letters. On the other hand,
187186 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
187 when some directory options were not specified in terms of '${prefix}'
188 at 'configure' time.
190189
191190 Optional Features
192191 =================
193192
194193 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
194 with an extra prefix or suffix on their names by giving 'configure' the
195 option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
196
197 Some packages pay attention to '--enable-FEATURE' options to
198 'configure', where FEATURE indicates an optional part of the package.
199 They may also pay attention to '--with-PACKAGE' options, where PACKAGE
200 is something like 'gnu-as' or 'x' (for the X Window System). The
201 'README' should mention any '--enable-' and '--with-' options that the
203202 package recognizes.
204203
205 For packages that use the X Window System, `configure' can usually
204 For packages that use the X Window System, 'configure' can usually
206205 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
206 you can use the 'configure' options '--x-includes=DIR' and
207 '--x-libraries=DIR' to specify their locations.
209208
210209 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
210 execution of 'make' will be. For these packages, running './configure
212211 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
212 overridden with 'make V=1'; while running './configure
214213 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
214 overridden with 'make V=0'.
216215
217216 Particular systems
218217 ==================
219218
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
219 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
220 is not installed, it is recommended to use the following options in
222221 order to use an ANSI C compiler:
223222
224223 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225224
226225 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227226
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
227 HP-UX 'make' updates targets which have the same time stamps as their
228 prerequisites, which makes it generally unusable when shipped generated
229 files such as 'configure' are involved. Use GNU 'make' instead.
232230
233231 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
235 a workaround. If GNU CC is not installed, it is therefore recommended
236 to try
232 parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
233 workaround. If GNU CC is not installed, it is therefore recommended to
234 try
237235
238236 ./configure CC="cc"
239237
241239
242240 ./configure CC="cc -nodtk"
243241
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
242 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
245243 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
244 these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
245 in your 'PATH', put it _after_ '/usr/bin'.
246
247 On Haiku, software installed for all users goes in '/boot/common',
248 not '/usr/local'. It is recommended to use the following options:
251249
252250 ./configure --prefix=/boot/common
253251
254252 Specifying the System Type
255253 ==========================
256254
257 There may be some features `configure' cannot figure out
255 There may be some features 'configure' cannot figure out
258256 automatically, but needs to determine by the type of machine the package
259257 will run on. Usually, assuming the package is built to be run on the
260 _same_ architectures, `configure' can figure that out, but if it prints
258 _same_ architectures, 'configure' can figure that out, but if it prints
261259 a message saying it cannot guess the machine type, give it the
262 `--build=TYPE' option. TYPE can either be a short name for the system
263 type, such as `sun4', or a canonical name which has the form:
260 '--build=TYPE' option. TYPE can either be a short name for the system
261 type, such as 'sun4', or a canonical name which has the form:
264262
265263 CPU-COMPANY-SYSTEM
266264
269267 OS
270268 KERNEL-OS
271269
272 See the file `config.sub' for the possible values of each field. If
273 `config.sub' isn't included in this package, then this package doesn't
270 See the file 'config.sub' for the possible values of each field. If
271 'config.sub' isn't included in this package, then this package doesn't
274272 need to know the machine type.
275273
276274 If you are _building_ compiler tools for cross-compiling, you should
277 use the option `--target=TYPE' to select the type of system they will
275 use the option '--target=TYPE' to select the type of system they will
278276 produce code for.
279277
280278 If you want to _use_ a cross compiler, that generates code for a
281279 platform different from the build platform, you should specify the
282280 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
281 eventually be run) with '--host=TYPE'.
284282
285283 Sharing Defaults
286284 ================
287285
288 If you want to set default values for `configure' scripts to share,
289 you can create a site shell script called `config.site' that gives
290 default values for variables like `CC', `cache_file', and `prefix'.
291 `configure' looks for `PREFIX/share/config.site' if it exists, then
292 `PREFIX/etc/config.site' if it exists. Or, you can set the
293 `CONFIG_SITE' environment variable to the location of the site script.
294 A warning: not all `configure' scripts look for a site script.
286 If you want to set default values for 'configure' scripts to share,
287 you can create a site shell script called 'config.site' that gives
288 default values for variables like 'CC', 'cache_file', and 'prefix'.
289 'configure' looks for 'PREFIX/share/config.site' if it exists, then
290 'PREFIX/etc/config.site' if it exists. Or, you can set the
291 'CONFIG_SITE' environment variable to the location of the site script.
292 A warning: not all 'configure' scripts look for a site script.
295293
296294 Defining Variables
297295 ==================
298296
299297 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
298 environment passed to 'configure'. However, some packages may run
301299 configure again during the build, and the customized values of these
302300 variables may be lost. In order to avoid this problem, you should set
303 them in the `configure' command line, using `VAR=value'. For example:
301 them in the 'configure' command line, using 'VAR=value'. For example:
304302
305303 ./configure CC=/usr/local2/bin/gcc
306304
307 causes the specified `gcc' to be used as the C compiler (unless it is
305 causes the specified 'gcc' to be used as the C compiler (unless it is
308306 overridden in the site shell script).
309307
310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
308 Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
309 Autoconf limitation. Until the limitation is lifted, you can use this
310 workaround:
313311
314312 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315313
316 `configure' Invocation
314 'configure' Invocation
317315 ======================
318316
319 `configure' recognizes the following options to control how it
317 'configure' recognizes the following options to control how it
320318 operates.
321319
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
320 '--help'
321 '-h'
322 Print a summary of all of the options to 'configure', and exit.
323
324 '--help=short'
325 '--help=recursive'
328326 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333 `--version'
334 `-V'
335 Print the version of Autoconf used to generate the `configure'
327 'configure', and exit. The 'short' variant lists options used only
328 in the top level, while the 'recursive' variant lists options also
329 present in any nested packages.
330
331 '--version'
332 '-V'
333 Print the version of Autoconf used to generate the 'configure'
336334 script, and exit.
337335
338 `--cache-file=FILE'
336 '--cache-file=FILE'
339337 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
338 traditionally 'config.cache'. FILE defaults to '/dev/null' to
341339 disable caching.
342340
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
341 '--config-cache'
342 '-C'
343 Alias for '--cache-file=config.cache'.
344
345 '--quiet'
346 '--silent'
347 '-q'
350348 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
349 suppress all normal output, redirect it to '/dev/null' (any error
352350 messages will still be shown).
353351
354 `--srcdir=DIR'
352 '--srcdir=DIR'
355353 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358 `--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363 `--no-create'
364 `-n'
354 'configure' can determine that directory automatically.
355
356 '--prefix=DIR'
357 Use DIR as the installation prefix. *note Installation Names:: for
358 more details, including other options available for fine-tuning the
359 installation locations.
360
361 '--no-create'
362 '-n'
365363 Run the configure checks, but stop before creating any output
366364 files.
367365
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
366 'configure' also accepts some other, not widely useful, options. Run
367 'configure --help' for more details.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
660660 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
661661 || chmod -R a+r "$(distdir)"
662662 dist-gzip: distdir
663 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
663 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
664664 $(am__post_remove_distdir)
665665
666666 dist-bzip2: distdir
686686 @echo WARNING: "Support for shar distribution archives is" \
687687 "deprecated." >&2
688688 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
689 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
689 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
690690 $(am__post_remove_distdir)
691691
692692 dist-zip: distdir
704704 distcheck: dist
705705 case '$(DIST_ARCHIVES)' in \
706706 *.tar.gz*) \
707 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
707 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
708708 *.tar.bz2*) \
709709 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
710710 *.tar.lz*) \
714714 *.tar.Z*) \
715715 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
716716 *.shar.gz*) \
717 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
717 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
718718 *.zip*) \
719719 unzip $(distdir).zip ;;\
720720 esac
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
295295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296296 ])dnl PKG_CHECK_VAR
297297
298 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
298 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
299299 #
300300 # This file is free software; the Free Software Foundation
301301 # gives unlimited permission to copy and/or distribute it,
310310 [am__api_version='1.15'
311311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312312 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.15], [],
313 m4_if([$1], [1.15.1], [],
314314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315315 ])
316316
326326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.15])dnl
329 [AM_AUTOMAKE_VERSION([1.15.1])dnl
330330 m4_ifndef([AC_AUTOCONF_VERSION],
331331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333333
334334 # Figure out how to run the assembler. -*- Autoconf -*-
335335
336 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
337337 #
338338 # This file is free software; the Free Software Foundation
339339 # gives unlimited permission to copy and/or distribute it,
353353
354354 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
355355
356 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
356 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
357357 #
358358 # This file is free software; the Free Software Foundation
359359 # gives unlimited permission to copy and/or distribute it,
405405
406406 # AM_CONDITIONAL -*- Autoconf -*-
407407
408 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
408 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
409409 #
410410 # This file is free software; the Free Software Foundation
411411 # gives unlimited permission to copy and/or distribute it,
436436 Usually this means the macro was only invoked conditionally.]])
437437 fi])])
438438
439 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
439 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
440440 #
441441 # This file is free software; the Free Software Foundation
442442 # gives unlimited permission to copy and/or distribute it,
627627
628628 # Generate code to set up dependency tracking. -*- Autoconf -*-
629629
630 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
630 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
631631 #
632632 # This file is free software; the Free Software Foundation
633633 # gives unlimited permission to copy and/or distribute it,
703703
704704 # Do all the work for Automake. -*- Autoconf -*-
705705
706 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
706 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
707707 #
708708 # This file is free software; the Free Software Foundation
709709 # gives unlimited permission to copy and/or distribute it,
900900 done
901901 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
902902
903 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
903 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
904904 #
905905 # This file is free software; the Free Software Foundation
906906 # gives unlimited permission to copy and/or distribute it,
921921 fi
922922 AC_SUBST([install_sh])])
923923
924 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
924 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
925925 #
926926 # This file is free software; the Free Software Foundation
927927 # gives unlimited permission to copy and/or distribute it,
942942
943943 # Check to see how 'make' treats includes. -*- Autoconf -*-
944944
945 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
945 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
946946 #
947947 # This file is free software; the Free Software Foundation
948948 # gives unlimited permission to copy and/or distribute it,
992992
993993 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
994994
995 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
995 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
996996 #
997997 # This file is free software; the Free Software Foundation
998998 # gives unlimited permission to copy and/or distribute it,
10311031
10321032 # Helper functions for option handling. -*- Autoconf -*-
10331033
1034 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1034 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10351035 #
10361036 # This file is free software; the Free Software Foundation
10371037 # gives unlimited permission to copy and/or distribute it,
10601060 AC_DEFUN([_AM_IF_OPTION],
10611061 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10621062
1063 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1063 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
10641064 #
10651065 # This file is free software; the Free Software Foundation
10661066 # gives unlimited permission to copy and/or distribute it,
11071107 # For backward compatibility.
11081108 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
11091109
1110 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1110 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
11111111 #
11121112 # This file is free software; the Free Software Foundation
11131113 # gives unlimited permission to copy and/or distribute it,
11261126
11271127 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11281128
1129 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1129 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
11301130 #
11311131 # This file is free software; the Free Software Foundation
11321132 # gives unlimited permission to copy and/or distribute it,
12071207 rm -f conftest.file
12081208 ])
12091209
1210 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1210 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
12111211 #
12121212 # This file is free software; the Free Software Foundation
12131213 # gives unlimited permission to copy and/or distribute it,
12671267 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
12681268 ])
12691269
1270 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1270 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
12711271 #
12721272 # This file is free software; the Free Software Foundation
12731273 # gives unlimited permission to copy and/or distribute it,
12951295 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12961296 AC_SUBST([INSTALL_STRIP_PROGRAM])])
12971297
1298 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1298 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
12991299 #
13001300 # This file is free software; the Free Software Foundation
13011301 # gives unlimited permission to copy and/or distribute it,
13141314
13151315 # Check how to create a tarball. -*- Autoconf -*-
13161316
1317 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1317 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
13181318 #
13191319 # This file is free software; the Free Software Foundation
13201320 # gives unlimited permission to copy and/or distribute it,
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2626 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
3131 # Please send patches to <config-patches@gnu.org>.
3232
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2015 Free Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
106106 dummy=$tmp/dummy ;
107107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
110110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112112 CC_FOR_BUILD="$c"; break ;
113113 fi ;
114114 done ;
131131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133133
134 case "${UNAME_SYSTEM}" in
134 case "$UNAME_SYSTEM" in
135135 Linux|GNU|GNU/*)
136136 # If the system lacks a compiler, then just pick glibc.
137137 # We could probably try harder.
138138 LIBC=gnu
139139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142142 #include <features.h>
143143 #if defined(__UCLIBC__)
144144 LIBC=uclibc
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
152159 ;;
153160 esac
154161
155162 # Note: order is significant - the case branches are not exclusive.
156163
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158165 *:NetBSD:*:*)
159166 # NetBSD (nbsd) targets should (where applicable) match one or
160167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168175 # portion of the name. We always set it to "unknown".
169176 sysctl="sysctl -n hw.machine_arch"
170177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
173180 echo unknown)`
174 case "${UNAME_MACHINE_ARCH}" in
181 case "$UNAME_MACHINE_ARCH" in
175182 armeb) machine=armeb-unknown ;;
176183 arm*) machine=arm-unknown ;;
177184 sh3el) machine=shl-unknown ;;
178185 sh3eb) machine=sh-unknown ;;
179186 sh5el) machine=sh5le-unknown ;;
180187 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
184191 ;;
185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
186193 esac
187194 # The Operating System including object format, if it has switched
188 # to ELF recently, or will in the future.
189 case "${UNAME_MACHINE_ARCH}" in
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
191 eval $set_cc_for_build
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
192202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
193203 | grep -q __ELF__
194204 then
204214 ;;
205215 esac
206216 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
217 case "$UNAME_MACHINE_ARCH" in
208218 earm*)
209219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
211221 ;;
212222 esac
213223 # The OS release
215225 # thus, need a distinct triplet. However, they do not need
216226 # kernel version information, so it can be replaced with a
217227 # suitable tag, in the style of linux-gnu.
218 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
219229 Debian*)
220230 release='-gnu'
221231 ;;
222232 *)
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
224234 ;;
225235 esac
226236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
227237 # contains redundant information, the shorter form:
228238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
229 echo "${machine}-${os}${release}${abi}"
239 echo "$machine-${os}${release}${abi}"
230240 exit ;;
231241 *:Bitrig:*:*)
232242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
234244 exit ;;
235245 *:OpenBSD:*:*)
236246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
237 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
238255 exit ;;
239256 *:ekkoBSD:*:*)
240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
241258 exit ;;
242259 *:SolidBSD:*:*)
243 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
244261 exit ;;
245262 macppc:MirBSD:*:*)
246 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
247264 exit ;;
248265 *:MirBSD:*:*)
249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
250267 exit ;;
251268 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
253 exit ;;
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
254277 alpha:OSF1:*:*)
255278 case $UNAME_RELEASE in
256279 *4.0)
267290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
268291 case "$ALPHA_CPU_TYPE" in
269292 "EV4 (21064)")
270 UNAME_MACHINE="alpha" ;;
293 UNAME_MACHINE=alpha ;;
271294 "EV4.5 (21064)")
272 UNAME_MACHINE="alpha" ;;
295 UNAME_MACHINE=alpha ;;
273296 "LCA4 (21066/21068)")
274 UNAME_MACHINE="alpha" ;;
297 UNAME_MACHINE=alpha ;;
275298 "EV5 (21164)")
276 UNAME_MACHINE="alphaev5" ;;
299 UNAME_MACHINE=alphaev5 ;;
277300 "EV5.6 (21164A)")
278 UNAME_MACHINE="alphaev56" ;;
301 UNAME_MACHINE=alphaev56 ;;
279302 "EV5.6 (21164PC)")
280 UNAME_MACHINE="alphapca56" ;;
303 UNAME_MACHINE=alphapca56 ;;
281304 "EV5.7 (21164PC)")
282 UNAME_MACHINE="alphapca57" ;;
305 UNAME_MACHINE=alphapca57 ;;
283306 "EV6 (21264)")
284 UNAME_MACHINE="alphaev6" ;;
307 UNAME_MACHINE=alphaev6 ;;
285308 "EV6.7 (21264A)")
286 UNAME_MACHINE="alphaev67" ;;
309 UNAME_MACHINE=alphaev67 ;;
287310 "EV6.8CB (21264C)")
288 UNAME_MACHINE="alphaev68" ;;
311 UNAME_MACHINE=alphaev68 ;;
289312 "EV6.8AL (21264B)")
290 UNAME_MACHINE="alphaev68" ;;
313 UNAME_MACHINE=alphaev68 ;;
291314 "EV6.8CX (21264D)")
292 UNAME_MACHINE="alphaev68" ;;
315 UNAME_MACHINE=alphaev68 ;;
293316 "EV6.9A (21264/EV69A)")
294 UNAME_MACHINE="alphaev69" ;;
317 UNAME_MACHINE=alphaev69 ;;
295318 "EV7 (21364)")
296 UNAME_MACHINE="alphaev7" ;;
319 UNAME_MACHINE=alphaev7 ;;
297320 "EV7.9 (21364A)")
298 UNAME_MACHINE="alphaev79" ;;
321 UNAME_MACHINE=alphaev79 ;;
299322 esac
300323 # A Pn.n version is a patched version.
301324 # A Vn.n version is a released version.
302325 # A Tn.n version is a released field test version.
303326 # A Xn.n version is an unreleased experimental baselevel.
304327 # 1.2 uses "1.2" for uname -r.
305 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
306329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
307330 exitcode=$?
308331 trap '' 0
309332 exit $exitcode ;;
310 Alpha\ *:Windows_NT*:*)
311 # How do we know it's Interix rather than the generic POSIX subsystem?
312 # Should we change UNAME_MACHINE based on the output of uname instead
313 # of the specific Alpha model?
314 echo alpha-pc-interix
315 exit ;;
316 21064:Windows_NT:50:3)
317 echo alpha-dec-winnt3.5
318 exit ;;
319333 Amiga*:UNIX_System_V:4.0:*)
320334 echo m68k-unknown-sysv4
321335 exit ;;
322336 *:[Aa]miga[Oo][Ss]:*:*)
323 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
324338 exit ;;
325339 *:[Mm]orph[Oo][Ss]:*:*)
326 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
327341 exit ;;
328342 *:OS/390:*:*)
329343 echo i370-ibm-openedition
335349 echo powerpc-ibm-os400
336350 exit ;;
337351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
338 echo arm-acorn-riscix${UNAME_RELEASE}
352 echo arm-acorn-riscix"$UNAME_RELEASE"
339353 exit ;;
340354 arm*:riscos:*:*|arm*:RISCOS:*:*)
341355 echo arm-unknown-riscos
362376 sparc) echo sparc-icl-nx7; exit ;;
363377 esac ;;
364378 s390x:SunOS:*:*)
365 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
366380 exit ;;
367381 sun4H:SunOS:5.*:*)
368 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
369383 exit ;;
370384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
371 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
372386 exit ;;
373387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
374 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
375389 exit ;;
376390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
377 eval $set_cc_for_build
378 SUN_ARCH="i386"
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
379393 # If there is a compiler, see if it is configured for 64-bit objects.
380394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
381395 # This test works for both compilers.
382 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
383397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
384 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
385399 grep IS_64BIT_ARCH >/dev/null
386400 then
387 SUN_ARCH="x86_64"
401 SUN_ARCH=x86_64
388402 fi
389403 fi
390 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
391405 exit ;;
392406 sun4*:SunOS:6*:*)
393407 # According to config.sub, this is the proper way to canonicalize
394408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
395409 # it's likely to be more like Solaris than SunOS4.
396 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
397411 exit ;;
398412 sun4*:SunOS:*:*)
399413 case "`/usr/bin/arch -k`" in
402416 ;;
403417 esac
404418 # Japanese Language versions have a version number like `4.1.3-JL'.
405 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
406420 exit ;;
407421 sun3*:SunOS:*:*)
408 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
409423 exit ;;
410424 sun*:*:4.2BSD:*)
411425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
412 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
413427 case "`/bin/arch`" in
414428 sun3)
415 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
416430 ;;
417431 sun4)
418 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
419433 ;;
420434 esac
421435 exit ;;
422436 aushp:SunOS:*:*)
423 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
424438 exit ;;
425439 # The situation for MiNT is a little confusing. The machine name
426440 # can be virtually everything (everything which is not
431445 # MiNT. But MiNT is downward compatible to TOS, so this should
432446 # be no problem.
433447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
434 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
435449 exit ;;
436450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
437 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-atari-mint"$UNAME_RELEASE"
438452 exit ;;
439453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
440 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
441455 exit ;;
442456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
443 echo m68k-milan-mint${UNAME_RELEASE}
457 echo m68k-milan-mint"$UNAME_RELEASE"
444458 exit ;;
445459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
446 echo m68k-hades-mint${UNAME_RELEASE}
460 echo m68k-hades-mint"$UNAME_RELEASE"
447461 exit ;;
448462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
449 echo m68k-unknown-mint${UNAME_RELEASE}
463 echo m68k-unknown-mint"$UNAME_RELEASE"
450464 exit ;;
451465 m68k:machten:*:*)
452 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
453467 exit ;;
454468 powerpc:machten:*:*)
455 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
456470 exit ;;
457471 RISC*:Mach:*:*)
458472 echo mips-dec-mach_bsd4.3
459473 exit ;;
460474 RISC*:ULTRIX:*:*)
461 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
462476 exit ;;
463477 VAX*:ULTRIX*:*:*)
464 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
465479 exit ;;
466480 2020:CLIX:*:* | 2430:CLIX:*:*)
467 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
468482 exit ;;
469483 mips:*:*:UMIPS | mips:*:*:RISCos)
470 eval $set_cc_for_build
471 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
472486 #ifdef __cplusplus
473487 #include <stdio.h> /* for printf() prototype */
474488 int main (int argc, char *argv[]) {
477491 #endif
478492 #if defined (host_mips) && defined (MIPSEB)
479493 #if defined (SYSTYPE_SYSV)
480 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
481495 #endif
482496 #if defined (SYSTYPE_SVR4)
483 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
484498 #endif
485499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
486 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
487501 #endif
488502 #endif
489503 exit (-1);
490504 }
491505 EOF
492 $CC_FOR_BUILD -o $dummy $dummy.c &&
493 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
494 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
495509 { echo "$SYSTEM_NAME"; exit; }
496 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
497511 exit ;;
498512 Motorola:PowerMAX_OS:*:*)
499513 echo powerpc-motorola-powermax
519533 AViiON:dgux:*:*)
520534 # DG/UX returns AViiON for all architectures
521535 UNAME_PROCESSOR=`/usr/bin/uname -p`
522 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
523537 then
524 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
525 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
526540 then
527 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
528542 else
529 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
530544 fi
531545 else
532 echo i586-dg-dgux${UNAME_RELEASE}
546 echo i586-dg-dgux"$UNAME_RELEASE"
533547 fi
534548 exit ;;
535549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
546560 echo m68k-tektronix-bsd
547561 exit ;;
548562 *:IRIX*:*:*)
549 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
550564 exit ;;
551565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
552566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
558572 if [ -x /usr/bin/oslevel ] ; then
559573 IBM_REV=`/usr/bin/oslevel`
560574 else
561 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
562 fi
563 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
564578 exit ;;
565579 *:AIX:2:3)
566580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
567 eval $set_cc_for_build
568 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
569583 #include <sys/systemcfg.h>
570584
571585 main()
576590 exit(0);
577591 }
578592 EOF
579 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
580594 then
581595 echo "$SYSTEM_NAME"
582596 else
590604 exit ;;
591605 *:AIX:*:[4567])
592606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
593 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
594608 IBM_ARCH=rs6000
595609 else
596610 IBM_ARCH=powerpc
599613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
601615 else
602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
603 fi
604 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
605619 exit ;;
606620 *:AIX:*:*)
607621 echo rs6000-ibm-aix
608622 exit ;;
609 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
610624 echo romp-ibm-bsd4.4
611625 exit ;;
612626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
613 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
614628 exit ;; # report: romp-ibm BSD 4.3
615629 *:BOSX:*:*)
616630 echo rs6000-bull-bosx
625639 echo m68k-hp-bsd4.4
626640 exit ;;
627641 9000/[34678]??:HP-UX:*:*)
628 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
629 case "${UNAME_MACHINE}" in
630 9000/31? ) HP_ARCH=m68000 ;;
631 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
632646 9000/[678][0-9][0-9])
633647 if [ -x /usr/bin/getconf ]; then
634648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
635649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
636 case "${sc_cpu_version}" in
637 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
638 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
639653 532) # CPU_PA_RISC2_0
640 case "${sc_kernel_bits}" in
641 32) HP_ARCH="hppa2.0n" ;;
642 64) HP_ARCH="hppa2.0w" ;;
643 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
644658 esac ;;
645659 esac
646660 fi
647 if [ "${HP_ARCH}" = "" ]; then
648 eval $set_cc_for_build
649 sed 's/^ //' << EOF >$dummy.c
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
650664
651665 #define _HPUX_SOURCE
652666 #include <stdlib.h>
679693 exit (0);
680694 }
681695 EOF
682 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
683697 test -z "$HP_ARCH" && HP_ARCH=hppa
684698 fi ;;
685699 esac
686 if [ ${HP_ARCH} = "hppa2.0w" ]
700 if [ "$HP_ARCH" = hppa2.0w ]
687701 then
688 eval $set_cc_for_build
702 eval "$set_cc_for_build"
689703
690704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
691705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
696710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
697711 # => hppa64-hp-hpux11.23
698712
699 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
700714 grep -q __LP64__
701715 then
702 HP_ARCH="hppa2.0w"
716 HP_ARCH=hppa2.0w
703717 else
704 HP_ARCH="hppa64"
718 HP_ARCH=hppa64
705719 fi
706720 fi
707 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
708722 exit ;;
709723 ia64:HP-UX:*:*)
710 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
711 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
712726 exit ;;
713727 3050*:HI-UX:*:*)
714 eval $set_cc_for_build
715 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
716730 #include <unistd.h>
717731 int
718732 main ()
737751 exit (0);
738752 }
739753 EOF
740 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
741755 { echo "$SYSTEM_NAME"; exit; }
742756 echo unknown-hitachi-hiuxwe2
743757 exit ;;
744 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
745759 echo hppa1.1-hp-bsd
746760 exit ;;
747761 9000/8??:4.3bsd:*:*)
750764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
751765 echo hppa1.0-hp-mpeix
752766 exit ;;
753 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
754768 echo hppa1.1-hp-osf
755769 exit ;;
756770 hp8??:OSF1:*:*)
758772 exit ;;
759773 i*86:OSF1:*:*)
760774 if [ -x /usr/sbin/sysversion ] ; then
761 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
762776 else
763 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
764778 fi
765779 exit ;;
766780 parisc*:Lites*:*:*)
785799 echo c4-convex-bsd
786800 exit ;;
787801 CRAY*Y-MP:*:*:*)
788 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
789803 exit ;;
790804 CRAY*[A-Z]90:*:*:*)
791 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
792806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
793807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
794808 -e 's/\.[^.]*$/.X/'
795809 exit ;;
796810 CRAY*TS:*:*:*)
797 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
798812 exit ;;
799813 CRAY*T3E:*:*:*)
800 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
801815 exit ;;
802816 CRAY*SV1:*:*:*)
803 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
804818 exit ;;
805819 *:UNICOS/mp:*:*)
806 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
807821 exit ;;
808822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
809 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
810 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
812826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
813827 exit ;;
814828 5000:UNIX_System_V:4.*:*)
815 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
816 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
817831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
818832 exit ;;
819833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
820 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
821835 exit ;;
822836 sparc*:BSD/OS:*:*)
823 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
824838 exit ;;
825839 *:BSD/OS:*:*)
826 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
827841 exit ;;
828842 *:FreeBSD:*:*)
829843 UNAME_PROCESSOR=`/usr/bin/uname -p`
830 case ${UNAME_PROCESSOR} in
844 case "$UNAME_PROCESSOR" in
831845 amd64)
832 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
833 *)
834 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
835849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
836851 exit ;;
837852 i*:CYGWIN*:*)
838 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
839854 exit ;;
840855 *:MINGW64*:*)
841 echo ${UNAME_MACHINE}-pc-mingw64
856 echo "$UNAME_MACHINE"-pc-mingw64
842857 exit ;;
843858 *:MINGW*:*)
844 echo ${UNAME_MACHINE}-pc-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
845860 exit ;;
846861 *:MSYS*:*)
847 echo ${UNAME_MACHINE}-pc-msys
848 exit ;;
849 i*:windows32*:*)
850 # uname -m includes "-pc" on this system.
851 echo ${UNAME_MACHINE}-mingw32
862 echo "$UNAME_MACHINE"-pc-msys
852863 exit ;;
853864 i*:PW*:*)
854 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
855866 exit ;;
856867 *:Interix*:*)
857 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
858869 x86)
859 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
860871 exit ;;
861872 authenticamd | genuineintel | EM64T)
862 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
863874 exit ;;
864875 IA64)
865 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
866877 exit ;;
867878 esac ;;
868 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
869 echo i${UNAME_MACHINE}-pc-mks
870 exit ;;
871 8664:Windows_NT:*)
872 echo x86_64-pc-mks
873 exit ;;
874 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
875 # How do we know it's Interix rather than the generic POSIX subsystem?
876 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
877 # UNAME_MACHINE based on the output of uname instead of i386?
878 echo i586-pc-interix
879 exit ;;
880879 i*:UWIN*:*)
881 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
882881 exit ;;
883882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
884883 echo x86_64-unknown-cygwin
885884 exit ;;
886 p*:CYGWIN*:*)
887 echo powerpcle-unknown-cygwin
888 exit ;;
889885 prep*:SunOS:5.*:*)
890 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
891887 exit ;;
892888 *:GNU:*:*)
893889 # the GNU system
894 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
895891 exit ;;
896892 *:GNU/*:*:*)
897893 # other systems with GNU libc and userland
898 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
899895 exit ;;
900896 i*86:Minix:*:*)
901 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
902898 exit ;;
903899 aarch64:Linux:*:*)
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905901 exit ;;
906902 aarch64_be:Linux:*:*)
907903 UNAME_MACHINE=aarch64_be
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
909905 exit ;;
910906 alpha:Linux:*:*)
911907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
918914 EV68*) UNAME_MACHINE=alphaev68 ;;
919915 esac
920916 objdump --private-headers /bin/sh | grep -q ld.so.1
921 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
923919 exit ;;
924920 arc:Linux:*:* | arceb:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
926922 exit ;;
927923 arm*:Linux:*:*)
928 eval $set_cc_for_build
924 eval "$set_cc_for_build"
929925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
930926 | grep -q __ARM_EABI__
931927 then
932 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
933929 else
934930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
935931 | grep -q __ARM_PCS_VFP
936932 then
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
938934 else
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
940936 fi
941937 fi
942938 exit ;;
943939 avr32*:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945941 exit ;;
946942 cris:Linux:*:*)
947 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
948944 exit ;;
949945 crisv32:Linux:*:*)
950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
951947 exit ;;
952948 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
954950 exit ;;
955951 frv:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957953 exit ;;
958954 hexagon:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
960956 exit ;;
961957 i*86:Linux:*:*)
962 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
963959 exit ;;
964960 ia64:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966965 exit ;;
967966 m32r*:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969968 exit ;;
970969 m68*:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972971 exit ;;
973972 mips:Linux:*:* | mips64:Linux:*:*)
974 eval $set_cc_for_build
975 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
976975 #undef CPU
977976 #undef ${UNAME_MACHINE}
978977 #undef ${UNAME_MACHINE}el
986985 #endif
987986 #endif
988987 EOF
989 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
990 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
991990 ;;
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
992994 openrisc*:Linux:*:*)
993 echo or1k-unknown-linux-${LIBC}
995 echo or1k-unknown-linux-"$LIBC"
994996 exit ;;
995997 or32:Linux:*:* | or1k*:Linux:*:*)
996 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
997999 exit ;;
9981000 padre:Linux:*:*)
999 echo sparc-unknown-linux-${LIBC}
1001 echo sparc-unknown-linux-"$LIBC"
10001002 exit ;;
10011003 parisc64:Linux:*:* | hppa64:Linux:*:*)
1002 echo hppa64-unknown-linux-${LIBC}
1004 echo hppa64-unknown-linux-"$LIBC"
10031005 exit ;;
10041006 parisc:Linux:*:* | hppa:Linux:*:*)
10051007 # Look for CPU level
10061008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1007 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1008 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1009 *) echo hppa-unknown-linux-${LIBC} ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
10101012 esac
10111013 exit ;;
10121014 ppc64:Linux:*:*)
1013 echo powerpc64-unknown-linux-${LIBC}
1015 echo powerpc64-unknown-linux-"$LIBC"
10141016 exit ;;
10151017 ppc:Linux:*:*)
1016 echo powerpc-unknown-linux-${LIBC}
1018 echo powerpc-unknown-linux-"$LIBC"
10171019 exit ;;
10181020 ppc64le:Linux:*:*)
1019 echo powerpc64le-unknown-linux-${LIBC}
1021 echo powerpc64le-unknown-linux-"$LIBC"
10201022 exit ;;
10211023 ppcle:Linux:*:*)
1022 echo powerpcle-unknown-linux-${LIBC}
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10231028 exit ;;
10241029 s390:Linux:*:* | s390x:Linux:*:*)
1025 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10261031 exit ;;
10271032 sh64*:Linux:*:*)
1028 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10291034 exit ;;
10301035 sh*:Linux:*:*)
1031 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10321037 exit ;;
10331038 sparc:Linux:*:* | sparc64:Linux:*:*)
1034 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10351040 exit ;;
10361041 tile*:Linux:*:*)
1037 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10381043 exit ;;
10391044 vax:Linux:*:*)
1040 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10411046 exit ;;
10421047 x86_64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
10441053 exit ;;
10451054 xtensa*:Linux:*:*)
1046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10471056 exit ;;
10481057 i*86:DYNIX/ptx:4*:*)
10491058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10571066 # I am not positive that other SVR4 systems won't match this,
10581067 # I just have to hope. -- rms.
10591068 # Use sysv4.2uw... so that sysv4* matches it.
1060 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10611070 exit ;;
10621071 i*86:OS/2:*:*)
10631072 # If we were able to find `uname', then EMX Unix compatibility
10641073 # is probably installed.
1065 echo ${UNAME_MACHINE}-pc-os2-emx
1074 echo "$UNAME_MACHINE"-pc-os2-emx
10661075 exit ;;
10671076 i*86:XTS-300:*:STOP)
1068 echo ${UNAME_MACHINE}-unknown-stop
1077 echo "$UNAME_MACHINE"-unknown-stop
10691078 exit ;;
10701079 i*86:atheos:*:*)
1071 echo ${UNAME_MACHINE}-unknown-atheos
1080 echo "$UNAME_MACHINE"-unknown-atheos
10721081 exit ;;
10731082 i*86:syllable:*:*)
1074 echo ${UNAME_MACHINE}-pc-syllable
1083 echo "$UNAME_MACHINE"-pc-syllable
10751084 exit ;;
10761085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1077 echo i386-unknown-lynxos${UNAME_RELEASE}
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
10781087 exit ;;
10791088 i*86:*DOS:*:*)
1080 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1081 exit ;;
1082 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1083 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10841093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1085 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10861095 else
1087 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10881097 fi
10891098 exit ;;
10901099 i*86:*:5:[678]*)
10941103 *Pentium) UNAME_MACHINE=i586 ;;
10951104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10961105 esac
1097 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
10981107 exit ;;
10991108 i*86:*:3.2:*)
11001109 if test -f /usr/options/cb.name; then
11011110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1102 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
11031112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11041113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11051114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11091118 && UNAME_MACHINE=i686
11101119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11111120 && UNAME_MACHINE=i686
1112 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
11131122 else
1114 echo ${UNAME_MACHINE}-pc-sysv32
1123 echo "$UNAME_MACHINE"-pc-sysv32
11151124 fi
11161125 exit ;;
11171126 pc:*:*:*)
11191128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11201129 # the processor, so we play safe by assuming i586.
11211130 # Note: whatever this is, it MUST be the same as what config.sub
1122 # prints for the "djgpp" host, or else GDB configury will decide that
1131 # prints for the "djgpp" host, or else GDB configure will decide that
11231132 # this is a cross-build.
11241133 echo i586-pc-msdosdjgpp
11251134 exit ;;
11311140 exit ;;
11321141 i860:*:4.*:*) # i860-SVR4
11331142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1134 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11351144 else # Add other i860-SVR4 vendors below as they are discovered.
1136 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11371146 fi
11381147 exit ;;
11391148 mini*:CTIX:SYS*5:*)
11531162 test -r /etc/.relid \
11541163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11551164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1156 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11571166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1158 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11591168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11601169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11611170 && { echo i486-ncr-sysv4; exit; } ;;
11641173 test -r /etc/.relid \
11651174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11661175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1167 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11681177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1169 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11701179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1171 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11721181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1173 echo m68k-unknown-lynxos${UNAME_RELEASE}
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11741183 exit ;;
11751184 mc68030:UNIX_System_V:4.*:*)
11761185 echo m68k-atari-sysv4
11771186 exit ;;
11781187 TSUNAMI:LynxOS:2.*:*)
1179 echo sparc-unknown-lynxos${UNAME_RELEASE}
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11801189 exit ;;
11811190 rs6000:LynxOS:2.*:*)
1182 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11831192 exit ;;
11841193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1185 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11861195 exit ;;
11871196 SM[BE]S:UNIX_SV:*:*)
1188 echo mips-dde-sysv${UNAME_RELEASE}
1197 echo mips-dde-sysv"$UNAME_RELEASE"
11891198 exit ;;
11901199 RM*:ReliantUNIX-*:*:*)
11911200 echo mips-sni-sysv4
11961205 *:SINIX-*:*:*)
11971206 if uname -p 2>/dev/null >/dev/null ; then
11981207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1199 echo ${UNAME_MACHINE}-sni-sysv4
1208 echo "$UNAME_MACHINE"-sni-sysv4
12001209 else
12011210 echo ns32k-sni-sysv
12021211 fi
12161225 exit ;;
12171226 i*86:VOS:*:*)
12181227 # From Paul.Green@stratus.com.
1219 echo ${UNAME_MACHINE}-stratus-vos
1228 echo "$UNAME_MACHINE"-stratus-vos
12201229 exit ;;
12211230 *:VOS:*:*)
12221231 # From Paul.Green@stratus.com.
12231232 echo hppa1.1-stratus-vos
12241233 exit ;;
12251234 mc68*:A/UX:*:*)
1226 echo m68k-apple-aux${UNAME_RELEASE}
1235 echo m68k-apple-aux"$UNAME_RELEASE"
12271236 exit ;;
12281237 news*:NEWS-OS:6*:*)
12291238 echo mips-sony-newsos6
12301239 exit ;;
12311240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12321241 if [ -d /usr/nec ]; then
1233 echo mips-nec-sysv${UNAME_RELEASE}
1242 echo mips-nec-sysv"$UNAME_RELEASE"
12341243 else
1235 echo mips-unknown-sysv${UNAME_RELEASE}
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
12361245 fi
12371246 exit ;;
12381247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12511260 echo x86_64-unknown-haiku
12521261 exit ;;
12531262 SX-4:SUPER-UX:*:*)
1254 echo sx4-nec-superux${UNAME_RELEASE}
1263 echo sx4-nec-superux"$UNAME_RELEASE"
12551264 exit ;;
12561265 SX-5:SUPER-UX:*:*)
1257 echo sx5-nec-superux${UNAME_RELEASE}
1266 echo sx5-nec-superux"$UNAME_RELEASE"
12581267 exit ;;
12591268 SX-6:SUPER-UX:*:*)
1260 echo sx6-nec-superux${UNAME_RELEASE}
1269 echo sx6-nec-superux"$UNAME_RELEASE"
12611270 exit ;;
12621271 SX-7:SUPER-UX:*:*)
1263 echo sx7-nec-superux${UNAME_RELEASE}
1272 echo sx7-nec-superux"$UNAME_RELEASE"
12641273 exit ;;
12651274 SX-8:SUPER-UX:*:*)
1266 echo sx8-nec-superux${UNAME_RELEASE}
1275 echo sx8-nec-superux"$UNAME_RELEASE"
12671276 exit ;;
12681277 SX-8R:SUPER-UX:*:*)
1269 echo sx8r-nec-superux${UNAME_RELEASE}
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
12701282 exit ;;
12711283 Power*:Rhapsody:*:*)
1272 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12731285 exit ;;
12741286 *:Rhapsody:*:*)
1275 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12761288 exit ;;
12771289 *:Darwin:*:*)
12781290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1279 eval $set_cc_for_build
1291 eval "$set_cc_for_build"
12801292 if test "$UNAME_PROCESSOR" = unknown ; then
12811293 UNAME_PROCESSOR=powerpc
12821294 fi
1283 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1284 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12851297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1286 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1287 grep IS_64BIT_ARCH >/dev/null
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
12881300 then
12891301 case $UNAME_PROCESSOR in
12901302 i386) UNAME_PROCESSOR=x86_64 ;;
12911303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12921304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
12931312 fi
12941313 fi
12951314 elif test "$UNAME_PROCESSOR" = i386 ; then
13011320 # that Apple uses in portable devices.
13021321 UNAME_PROCESSOR=x86_64
13031322 fi
1304 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
13051324 exit ;;
13061325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13071326 UNAME_PROCESSOR=`uname -p`
1308 if test "$UNAME_PROCESSOR" = "x86"; then
1327 if test "$UNAME_PROCESSOR" = x86; then
13091328 UNAME_PROCESSOR=i386
13101329 UNAME_MACHINE=pc
13111330 fi
1312 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
13131332 exit ;;
13141333 *:QNX:*:4*)
13151334 echo i386-pc-qnx
13161335 exit ;;
1317 NEO-?:NONSTOP_KERNEL:*:*)
1318 echo neo-tandem-nsk${UNAME_RELEASE}
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
13191338 exit ;;
13201339 NSE-*:NONSTOP_KERNEL:*:*)
1321 echo nse-tandem-nsk${UNAME_RELEASE}
1322 exit ;;
1323 NSR-?:NONSTOP_KERNEL:*:*)
1324 echo nsr-tandem-nsk${UNAME_RELEASE}
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
13251350 exit ;;
13261351 *:NonStop-UX:*:*)
13271352 echo mips-compaq-nonstopux
13301355 echo bs2000-siemens-sysv
13311356 exit ;;
13321357 DS/*:UNIX_System_V:*:*)
1333 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13341359 exit ;;
13351360 *:Plan9:*:*)
13361361 # "uname -m" is not consistent, so use $cputype instead. 386
13371362 # is converted to i386 for consistency with other x86
13381363 # operating systems.
1339 if test "$cputype" = "386"; then
1364 if test "$cputype" = 386; then
13401365 UNAME_MACHINE=i386
13411366 else
13421367 UNAME_MACHINE="$cputype"
13431368 fi
1344 echo ${UNAME_MACHINE}-unknown-plan9
1369 echo "$UNAME_MACHINE"-unknown-plan9
13451370 exit ;;
13461371 *:TOPS-10:*:*)
13471372 echo pdp10-unknown-tops10
13621387 echo pdp10-unknown-its
13631388 exit ;;
13641389 SEI:*:*:SEIUX)
1365 echo mips-sei-seiux${UNAME_RELEASE}
1390 echo mips-sei-seiux"$UNAME_RELEASE"
13661391 exit ;;
13671392 *:DragonFly:*:*)
1368 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13691394 exit ;;
13701395 *:*VMS:*:*)
13711396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1372 case "${UNAME_MACHINE}" in
1397 case "$UNAME_MACHINE" in
13731398 A*) echo alpha-dec-vms ; exit ;;
13741399 I*) echo ia64-dec-vms ; exit ;;
13751400 V*) echo vax-dec-vms ; exit ;;
13781403 echo i386-pc-xenix
13791404 exit ;;
13801405 i*86:skyos:*:*)
1381 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13821407 exit ;;
13831408 i*86:rdos:*:*)
1384 echo ${UNAME_MACHINE}-pc-rdos
1409 echo "$UNAME_MACHINE"-pc-rdos
13851410 exit ;;
13861411 i*86:AROS:*:*)
1387 echo ${UNAME_MACHINE}-pc-aros
1412 echo "$UNAME_MACHINE"-pc-aros
13881413 exit ;;
13891414 x86_64:VMkernel:*:*)
1390 echo ${UNAME_MACHINE}-unknown-esx
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
13911419 exit ;;
13921420 esac
13931421
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
1431 EOF
1432 ;;
1433 esac
1434
13941435 cat >&2 <<EOF
1395 $0: unable to guess system type
1396
1397 This script, last modified $timestamp, has failed to recognize
1398 the operating system you are using. It is advised that you
1399 download the most up to date version of the config scripts from
1400
1401 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
14021442 and
1403 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1404
1405 If the version you run ($0) is already up to date, please
1406 send the following data and any information you think might be
1407 pertinent to <config-patches@gnu.org> in order to provide the needed
1408 information to handle your system.
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
14091448
14101449 config.guess timestamp = $timestamp
14111450
14241463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14251464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14261465
1427 UNAME_MACHINE = ${UNAME_MACHINE}
1428 UNAME_RELEASE = ${UNAME_RELEASE}
1429 UNAME_SYSTEM = ${UNAME_SYSTEM}
1430 UNAME_VERSION = ${UNAME_VERSION}
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
14311470 EOF
14321471
14331472 exit 1
14341473
14351474 # Local variables:
1436 # eval: (add-hook 'write-file-hooks 'time-stamp)
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
14371476 # time-stamp-start: "timestamp='"
14381477 # time-stamp-format: "%:y-%02m-%02d"
14391478 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5252 me=`echo "$0" | sed -e 's,.*/,,'`
5353
5454 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5756
5857 Canonicalize a configuration name.
5958
60 Operation modes:
59 Options:
6160 -h, --help print this help, then exit
6261 -t, --time-stamp print date of last modification, then exit
6362 -v, --version print version number, then exit
6766 version="\
6867 GNU config.sub ($timestamp)
6968
70 Copyright 1992-2015 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7170
7271 This is free software; see the source for copying conditions. There is NO
7372 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9493
9594 *local*)
9695 # First pass through any local machine types.
97 echo $1
96 echo "$1"
9897 exit ;;
9998
10099 * )
112111
113112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114113 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116115 case $maybe_os in
117116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120 kopensolaris*-gnu* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
121120 storm-chaos* | os2-emx* | rtmk-nova*)
122121 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124123 ;;
125124 android-linux)
126125 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128127 ;;
129128 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
133132 else os=; fi
134133 ;;
135134 esac
178177 ;;
179178 -sco6)
180179 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182181 ;;
183182 -sco5)
184183 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
186185 ;;
187186 -sco4)
188187 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
190189 ;;
191190 -sco3.2.[4-9]*)
192191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
194193 ;;
195194 -sco3.2v[4-9]*)
196195 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
198197 ;;
199198 -sco5v6*)
200199 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
202201 ;;
203202 -sco*)
204203 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
206205 ;;
207206 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209208 ;;
210209 -isc)
211210 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213212 ;;
214213 -clix*)
215214 basic_machine=clipper-intergraph
216215 ;;
217216 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219218 ;;
220219 -lynx*178)
221220 os=-lynxos178
227226 os=-lynxos
228227 ;;
229228 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
234230 ;;
235231 -psos*)
236232 os=-psos
263259 | fido | fr30 | frv | ft32 \
264260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265261 | hexagon \
266 | i370 | i860 | i960 | ia64 \
262 | i370 | i860 | i960 | ia16 | ia64 \
267263 | ip2k | iq2000 \
268264 | k1om \
269265 | le32 | le64 \
299295 | nios | nios2 | nios2eb | nios2el \
300296 | ns16k | ns32k \
301297 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \
298 | pdp10 | pj | pjl \
303299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
304301 | pyramid \
305302 | riscv32 | riscv64 \
306303 | rl78 | rx \
314311 | ubicom32 \
315312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316313 | visium \
317 | we32k \
314 | wasm32 \
318315 | x86 | xc16x | xstormy16 | xtensa \
319316 | z8k | z80)
320317 basic_machine=$basic_machine-unknown
335332 basic_machine=$basic_machine-unknown
336333 os=-none
337334 ;;
338 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
339336 ;;
340337 ms1)
341338 basic_machine=mt-unknown
364361 ;;
365362 # Object if more than one company name word.
366363 *-*-*)
367 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
368365 exit 1
369366 ;;
370367 # Recognize the basic CPU types with company name.
387384 | h8300-* | h8500-* \
388385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
389386 | hexagon-* \
390 | i*86-* | i860-* | i960-* | ia64-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
391388 | ip2k-* | iq2000-* \
392389 | k1om-* \
393390 | le32-* | le64-* \
428425 | orion-* \
429426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
430427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
431429 | pyramid-* \
432430 | riscv32-* | riscv64-* \
433431 | rl78-* | romp-* | rs6000-* | rx-* \
444442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
445443 | vax-* \
446444 | visium-* \
445 | wasm32-* \
447446 | we32k-* \
448447 | x86-* | x86_64-* | xc16x-* | xps100-* \
449448 | xstormy16-* | xtensa*-* \
457456 # Recognize the various machine names and aliases which stand
458457 # for a CPU type and a company and sometimes even an OS.
459458 386bsd)
460 basic_machine=i386-unknown
459 basic_machine=i386-pc
461460 os=-bsd
462461 ;;
463462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
491490 basic_machine=x86_64-pc
492491 ;;
493492 amd64-*)
494 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
495494 ;;
496495 amdahl)
497496 basic_machine=580-amdahl
520519 basic_machine=i386-pc
521520 os=-aros
522521 ;;
523 asmjs)
522 asmjs)
524523 basic_machine=asmjs-unknown
525524 ;;
526525 aux)
536535 os=-linux
537536 ;;
538537 blackfin-*)
539 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
540539 os=-linux
541540 ;;
542541 bluegene*)
544543 os=-cnk
545544 ;;
546545 c54x-*)
547 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
548547 ;;
549548 c55x-*)
550 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
551550 ;;
552551 c6x-*)
553 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
554553 ;;
555554 c90)
556555 basic_machine=c90-cray
639638 basic_machine=rs6000-bull
640639 os=-bosx
641640 ;;
642 dpx2* | dpx2*-bull)
641 dpx2*)
643642 basic_machine=m68k-bull
644643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
645652 ;;
646653 ebmon29k)
647654 basic_machine=a29k-amd
732739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
733740 basic_machine=hppa1.0-hp
734741 ;;
735 hppa-next)
736 os=-nextstep3
737 ;;
738742 hppaosf)
739743 basic_machine=hppa1.1-hp
740744 os=-osf
747751 basic_machine=i370-ibm
748752 ;;
749753 i*86v32)
750 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
751755 os=-sysv32
752756 ;;
753757 i*86v4*)
754 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755759 os=-sysv4
756760 ;;
757761 i*86v)
758 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759763 os=-sysv
760764 ;;
761765 i*86sol2)
762 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763767 os=-solaris2
764768 ;;
765769 i386mach)
766770 basic_machine=i386-mach
767771 os=-mach
768772 ;;
769 i386-vsta | vsta)
773 vsta)
770774 basic_machine=i386-unknown
771775 os=-vsta
772776 ;;
785789 os=-sysv
786790 ;;
787791 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
789793 ;;
790794 m68knommu)
791795 basic_machine=m68k-unknown
792796 os=-linux
793797 ;;
794798 m68knommu-*)
795 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
796800 os=-linux
797 ;;
798 m88k-omron*)
799 basic_machine=m88k-omron
800801 ;;
801802 magnum | m3230)
802803 basic_machine=mips-mips
829830 os=-mint
830831 ;;
831832 mips3*-*)
832 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
833834 ;;
834835 mips3*)
835 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
836837 ;;
837838 monitor)
838839 basic_machine=m68k-rom68k
851852 os=-msdos
852853 ;;
853854 ms1-*)
854 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
855856 ;;
856857 msys)
857858 basic_machine=i686-pc
893894 basic_machine=v70-nec
894895 os=-sysv
895896 ;;
896 next | m*-next )
897 next | m*-next)
897898 basic_machine=m68k-next
898899 case $os in
899900 -nextstep* )
938939 nsr-tandem)
939940 basic_machine=nsr-tandem
940941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
941948 op50n-* | op60c-*)
942949 basic_machine=hppa1.1-oki
943950 os=-proelf
970977 os=-linux
971978 ;;
972979 parisc-*)
973 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
974981 os=-linux
975982 ;;
976983 pbd)
986993 basic_machine=i386-pc
987994 ;;
988995 pc98-*)
989 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
990997 ;;
991998 pentium | p5 | k5 | k6 | nexgen | viac3)
992999 basic_machine=i586-pc
10011008 basic_machine=i786-pc
10021009 ;;
10031010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1004 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10051012 ;;
10061013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1007 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10081015 ;;
10091016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1010 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10111018 ;;
10121019 pentium4-*)
1013 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10141021 ;;
10151022 pn)
10161023 basic_machine=pn-gould
10201027 ppc | ppcbe) basic_machine=powerpc-unknown
10211028 ;;
10221029 ppc-* | ppcbe-*)
1023 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1024 ;;
1025 ppcle | powerpclittle | ppc-le | powerpc-little)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
10261033 basic_machine=powerpcle-unknown
10271034 ;;
10281035 ppcle-* | powerpclittle-*)
1029 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10301037 ;;
10311038 ppc64) basic_machine=powerpc64-unknown
10321039 ;;
1033 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1034 ;;
1035 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
10361043 basic_machine=powerpc64le-unknown
10371044 ;;
10381045 ppc64le-* | powerpc64little-*)
1039 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10401047 ;;
10411048 ps2)
10421049 basic_machine=i386-ibm
10901097 sequent)
10911098 basic_machine=i386-sequent
10921099 ;;
1093 sh)
1094 basic_machine=sh-hitachi
1095 os=-hms
1096 ;;
10971100 sh5el)
10981101 basic_machine=sh5le-unknown
10991102 ;;
1100 sh64)
1101 basic_machine=sh64-unknown
1102 ;;
1103 sparclite-wrs | simso-wrs)
1103 simso-wrs)
11041104 basic_machine=sparclite-wrs
11051105 os=-vxworks
11061106 ;;
11191119 os=-sysv4
11201120 ;;
11211121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
11231123 ;;
11241124 sun2)
11251125 basic_machine=m68000-sun
12411241 basic_machine=hppa1.1-winbond
12421242 os=-proelf
12431243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
12441247 xbox)
12451248 basic_machine=i686-pc
12461249 os=-mingw32
12491252 basic_machine=xps100-honeywell
12501253 ;;
12511254 xscale-* | xscalee[bl]-*)
1252 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
12531256 ;;
12541257 ymp)
12551258 basic_machine=ymp-cray
12561259 os=-unicos
1257 ;;
1258 z8k-*-coff)
1259 basic_machine=z8k-unknown
1260 os=-sim
1261 ;;
1262 z80-*-coff)
1263 basic_machine=z80-unknown
1264 os=-sim
12651260 ;;
12661261 none)
12671262 basic_machine=none-none
12911286 vax)
12921287 basic_machine=vax-dec
12931288 ;;
1294 pdp10)
1295 # there are many clones, so DEC is not a safe bet
1296 basic_machine=pdp10-unknown
1297 ;;
12981289 pdp11)
12991290 basic_machine=pdp11-dec
13001291 ;;
13041295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
13051296 basic_machine=sh-unknown
13061297 ;;
1307 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1308 basic_machine=sparc-sun
1309 ;;
13101298 cydra)
13111299 basic_machine=cydra-cydrome
13121300 ;;
13261314 # Make sure to match an already-canonicalized machine name.
13271315 ;;
13281316 *)
1329 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
13301318 exit 1
13311319 ;;
13321320 esac
13341322 # Here we canonicalize certain aliases for manufacturers.
13351323 case $basic_machine in
13361324 *-digital*)
1337 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
13381326 ;;
13391327 *-commodore*)
1340 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
13411329 ;;
13421330 *)
13431331 ;;
13481336 if [ x"$os" != x"" ]
13491337 then
13501338 case $os in
1351 # First match some system type aliases
1352 # that might get confused with valid system types.
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
13531341 # -solaris* is a basic system type, with this one exception.
13541342 -auroraux)
13551343 os=-auroraux
13601348 -solaris)
13611349 os=-solaris2
13621350 ;;
1363 -svr4*)
1364 os=-sysv4
1365 ;;
13661351 -unixware*)
13671352 os=-sysv4.2uw
13681353 ;;
13691354 -gnu/linux*)
13701355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13711356 ;;
1372 # First accept the basic system types.
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
13731362 # The portable systems comes first.
1374 # Each alternative MUST END IN A *, to match a version number.
1363 # Each alternative MUST end in a * to match a version number.
13751364 # -sysv* is not here because it comes later, after sysvr4.
13761365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13771366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13811370 | -aos* | -aros* | -cloudabi* | -sortix* \
13821371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13831372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1384 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1385 | -bitrig* | -openbsd* | -solidbsd* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13861375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13871376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13881377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13891378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1390 | -chorusos* | -chorusrdb* | -cegcc* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
13911380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1392 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13931382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13941383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1395 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
13961385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13971386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13981387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1399 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
14001389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1401 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
14021393 # Remember, each alternative MUST END IN *, to match a version number.
14031394 ;;
14041395 -qnx*)
14151406 -nto*)
14161407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14171408 ;;
1418 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1419 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
14201411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
14211412 ;;
14221413 -mac*)
1423 os=`echo $os | sed -e 's|mac|macos|'`
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
14241415 ;;
14251416 -linux-dietlibc)
14261417 os=-linux-dietlibc
14291420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
14301421 ;;
14311422 -sunos5*)
1432 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14331424 ;;
14341425 -sunos6*)
1435 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14361427 ;;
14371428 -opened*)
14381429 os=-openedition
14431434 -wince*)
14441435 os=-wince
14451436 ;;
1446 -osfrose*)
1447 os=-osfrose
1448 ;;
1449 -osf*)
1450 os=-osf
1451 ;;
14521437 -utek*)
14531438 os=-bsd
14541439 ;;
14731458 -nova*)
14741459 os=-rtmk-nova
14751460 ;;
1476 -ns2 )
1461 -ns2)
14771462 os=-nextstep2
14781463 ;;
14791464 -nsk*)
14951480 -oss*)
14961481 os=-sysv3
14971482 ;;
1498 -svr4)
1483 -svr4*)
14991484 os=-sysv4
15001485 ;;
15011486 -svr3)
15101495 -ose*)
15111496 os=-ose
15121497 ;;
1513 -es1800*)
1514 os=-ose
1515 ;;
1516 -xenix)
1517 os=-xenix
1518 ;;
15191498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
15201499 os=-mint
15211500 ;;
1522 -aros*)
1523 os=-aros
1524 ;;
15251501 -zvmoe)
15261502 os=-zvmoe
15271503 ;;
15281504 -dicos*)
15291505 os=-dicos
15301506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
15311520 -nacl*)
1521 ;;
1522 -ios)
15321523 ;;
15331524 -none)
15341525 ;;
15351526 *)
15361527 # Get rid of the `-' at the beginning of $os.
15371528 os=`echo $os | sed 's/[^-]*-//'`
1538 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15391530 exit 1
15401531 ;;
15411532 esac
16251616 sparc-* | *-sun)
16261617 os=-sunos4.1.1
16271618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
16281622 *-be)
16291623 os=-beos
16301624 ;;
1631 *-haiku)
1632 os=-haiku
1633 ;;
16341625 *-ibm)
16351626 os=-aix
16361627 ;;
16701661 m88k-omron*)
16711662 os=-luna
16721663 ;;
1673 *-next )
1664 *-next)
16741665 os=-nextstep
16751666 ;;
16761667 *-sequent)
16841675 ;;
16851676 i370-*)
16861677 os=-mvs
1687 ;;
1688 *-next)
1689 os=-nextstep3
16901678 ;;
16911679 *-gould)
16921680 os=-sysv
17971785 vendor=stratus
17981786 ;;
17991787 esac
1800 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
18011789 ;;
18021790 esac
18031791
1804 echo $basic_machine$os
1792 echo "$basic_machine$os"
18051793 exit
18061794
18071795 # Local variables:
1808 # eval: (add-hook 'write-file-hooks 'time-stamp)
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
18091797 # time-stamp-start: "timestamp='"
18101798 # time-stamp-format: "%:y-%02m-%02d"
18111799 # time-stamp-end: "'"
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libde265 1.0.3.
2 # Generated by GNU Autoconf 2.69 for libde265 1.0.4.
33 #
44 # Report bugs to <farin@struktur.de>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='libde265'
591591 PACKAGE_TARNAME='libde265'
592 PACKAGE_VERSION='1.0.3'
593 PACKAGE_STRING='libde265 1.0.3'
592 PACKAGE_VERSION='1.0.4'
593 PACKAGE_STRING='libde265 1.0.4'
594594 PACKAGE_BUGREPORT='farin@struktur.de'
595595 PACKAGE_URL=''
596596
14081408 # Omit some internal or obsolete options to make the list less imposing.
14091409 # This message is too long to be a string in the A/UX 3.1 sh.
14101410 cat <<_ACEOF
1411 \`configure' configures libde265 1.0.3 to adapt to many kinds of systems.
1411 \`configure' configures libde265 1.0.4 to adapt to many kinds of systems.
14121412
14131413 Usage: $0 [OPTION]... [VAR=VALUE]...
14141414
14801480
14811481 if test -n "$ac_init_help"; then
14821482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of libde265 1.0.3:";;
1483 short | recursive ) echo "Configuration of libde265 1.0.4:";;
14841484 esac
14851485 cat <<\_ACEOF
14861486
16211621 test -n "$ac_init_help" && exit $ac_status
16221622 if $ac_init_version; then
16231623 cat <<\_ACEOF
1624 libde265 configure 1.0.3
1624 libde265 configure 1.0.4
16251625 generated by GNU Autoconf 2.69
16261626
16271627 Copyright (C) 2012 Free Software Foundation, Inc.
23862386 This file contains any messages produced by compilers while
23872387 running configure, to aid debugging if configure makes a mistake.
23882388
2389 It was created by libde265 $as_me 1.0.3, which was
2389 It was created by libde265 $as_me 1.0.4, which was
23902390 generated by GNU Autoconf 2.69. Invocation command line was
23912391
23922392 $ $0 $@
27412741 ac_config_headers="$ac_config_headers config.h"
27422742
27432743
2744 NUMERIC_VERSION=0x01000300 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD)
2745
2744 NUMERIC_VERSION=0x01000400 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD)
2745
2746
2747 # From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html:
2748 # If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
2749 # If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
2750 # If any interfaces have been added since the last public release, then increment age.
2751 # If any interfaces have been removed or changed since the last public release, then set age to 0.
27462752
27472753 LIBDE265_CURRENT=0
2748 LIBDE265_REVISION=10
2754 LIBDE265_REVISION=11
27492755 LIBDE265_AGE=0
27502756
27512757 # ---------------------------------------------------------------------------
1670316709
1670416710 # Define the identity of the package.
1670516711 PACKAGE='libde265'
16706 VERSION='1.0.3'
16712 VERSION='1.0.4'
1670716713
1670816714
1670916715 cat >>confdefs.h <<_ACEOF
2010220108 # report actual input values of CONFIG_FILES etc. instead of their
2010320109 # values after options handling.
2010420110 ac_log="
20105 This file was extended by libde265 $as_me 1.0.3, which was
20111 This file was extended by libde265 $as_me 1.0.4, which was
2010620112 generated by GNU Autoconf 2.69. Invocation command line was
2010720113
2010820114 CONFIG_FILES = $CONFIG_FILES
2016820174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2016920175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2017020176 ac_cs_version="\\
20171 libde265 config.status 1.0.3
20177 libde265 config.status 1.0.4
2017220178 configured by $0, generated by GNU Autoconf 2.69,
2017320179 with options \\"\$ac_cs_config\\"
2017420180
2130421310 cat <<_LT_EOF >> "$cfgfile"
2130521311 #! $SHELL
2130621312 # Generated automatically by $as_me ($PACKAGE) $VERSION
21307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2130821313 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2130921314
2131021315 # Provide generalized library-building support services.
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ([2.68])
4 AC_INIT([libde265], [1.0.3], [farin@struktur.de])
4 AC_INIT([libde265], [1.0.4], [farin@struktur.de])
55 AC_CONFIG_SRCDIR([libde265/de265.cc])
66 AC_CONFIG_HEADERS([config.h])
77
8 NUMERIC_VERSION=0x01000300 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD)
8 NUMERIC_VERSION=0x01000400 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD)
99 AC_SUBST(NUMERIC_VERSION)
1010
11 # From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html:
12 # If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
13 # If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
14 # If any interfaces have been added since the last public release, then increment age.
15 # If any interfaces have been removed or changed since the last public release, then set age to 0.
16
1117 LIBDE265_CURRENT=0
12 LIBDE265_REVISION=10
18 LIBDE265_REVISION=11
1319 LIBDE265_AGE=0
1420
1521 # ---------------------------------------------------------------------------
0 set (dec265_sources
1 dec265.cc
2 )
0 add_executable (dec265 dec265.cc)
31
4 set (hdrcopy_sources
5 hdrcopy.cc
6 )
2 target_link_libraries (dec265 PRIVATE ${PROJECT_NAME})
3
4 if(SDL_FOUND)
5 target_sources(dec265 PRIVATE sdl.cc)
6 target_compile_definitions(dec265 PRIVATE HAVE_SDL)
7 target_include_directories (dec265 PRIVATE "${SDL_INCLUDE_DIR}")
8 target_link_libraries (dec265 PRIVATE ${SDL_LIBRARY})
9 endif()
710
811 if(MSVC)
9 set (dec265_sources
10 ${dec265_sources}
11 ../extra/getopt.c
12 ../extra/getopt_long.c
13 )
14 set (hdrcopy_sources
15 ${hdrcopy_sources}
12 target_sources(dec265 PRIVATE
1613 ../extra/getopt.c
1714 ../extra/getopt_long.c
1815 )
1916 endif()
2017
21 if(SDL_FOUND)
22 add_definitions(-DHAVE_SDL)
23 include_directories ("${SDL_INCLUDE_DIR}")
24 set (dec265_sources
25 ${dec265_sources}
26 sdl.cc
27 )
28 endif()
29
30 add_executable (dec265 ${dec265_sources})
31
32 target_link_libraries (dec265 ${LIBDE265_LIBRARY_NAME} ${SDL_LIBRARY})
33
34
3518 if(NOT MSVC)
3619 # hdrcopy uses internal APIs that are not available when compiled for Windows
37 add_executable (hdrcopy ${hdrcopy_sources})
20 add_executable (hdrcopy hdrcopy.cc)
3821
39 target_link_libraries (hdrcopy ${LIBDE265_LIBRARY_NAME})
22 target_link_libraries (hdrcopy PRIVATE ${PROJECT_NAME})
4023 endif()
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
785785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
789789 # time-stamp-end: "; # UTC"
790790 # End:
0 set (enc265_sources
0 add_executable (enc265
11 enc265.cc
22 image-io-png.cc
33 )
44
55 if(MSVC)
6 set (enc265_sources
7 ${enc265_sources}
6 target_sources(enc265 PRIVATE
87 ../extra/getopt.c
98 ../extra/getopt_long.c
109 )
1110 endif()
1211
13 add_executable (enc265 ${enc265_sources})
14
15 target_link_libraries (enc265 ${LIBDE265_LIBRARY_NAME})
12 target_link_libraries (enc265 PRIVATE ${PROJECT_NAME})
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
0 include(CMakePackageConfigHelpers)
1
02 set (libde265_sources
3 alloc_pool.cc
14 bitstream.cc
25 cabac.cc
6 configparam.cc
7 contextmodel.cc
38 de265.cc
49 deblock.cc
510 decctx.cc
6 nal-parser.cc
7 nal-parser.h
811 dpb.cc
9 dpb.h
12 en265.cc
13 fallback-dct.cc
14 fallback-motion.cc
15 fallback.cc
16 image-io.cc
1017 image.cc
1118 intrapred.cc
1219 md5.cc
20 motion.cc
21 nal-parser.cc
1322 nal.cc
1423 pps.cc
15 transform.cc
24 quality.cc
1625 refpic.cc
1726 sao.cc
1827 scan.cc
1928 sei.cc
2029 slice.cc
2130 sps.cc
31 threads.cc
32 transform.cc
2233 util.cc
34 visualize.cc
2335 vps.cc
36 vui.cc
37 )
38
39 set (libde265_headers
40 acceleration.h
41 alloc_pool.h
2442 bitstream.h
2543 cabac.h
44 configparam.h
2645 deblock.h
2746 decctx.h
47 dpb.h
48 en265.h
49 fallback-dct.h
50 fallback-motion.h
51 fallback.h
52 image-io.h
2853 image.h
2954 intrapred.h
3055 md5.h
56 motion.h
57 nal-parser.h
3158 nal.h
3259 pps.h
33 transform.h
60 quality.h
3461 refpic.h
3562 sao.h
3663 scan.h
3764 sei.h
3865 slice.h
3966 sps.h
67 threads.h
68 transform.h
4069 util.h
70 visualize.h
4171 vps.h
42 vui.h vui.cc
43 motion.cc motion.h
44 threads.cc threads.h
45 visualize.cc visualize.h
46 acceleration.h
47 fallback.cc fallback.h fallback-motion.cc fallback-motion.h
48 fallback-dct.h fallback-dct.cc
49 quality.cc quality.h
50 configparam.cc configparam.h
51 image-io.h image-io.cc
52 alloc_pool.h alloc_pool.cc
53 en265.h en265.cc
54 contextmodel.cc
72 vui.h
5573 )
5674
5775 if(MSVC)
7189 add_subdirectory (x86)
7290 endif()
7391
74 add_library(${LIBDE265_LIBRARY_NAME} SHARED ${libde265_sources} ${ENCODER_OBJECTS} ${X86_OBJECTS})
75 target_link_libraries(${LIBDE265_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})
92 add_library(${PROJECT_NAME} SHARED ${libde265_sources} ${ENCODER_OBJECTS} ${X86_OBJECTS})
93 target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads)
7694
77 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
78 SET_TARGET_PROPERTIES(${LIBDE265_LIBRARY_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
79 endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
95 write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake COMPATIBILITY ExactVersion)
96
97 install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config
98 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
99 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
100 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
101 )
102
103 install(FILES ${libde265_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
104
105 install(EXPORT ${PROJECT_NAME}Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
106
107 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake DESTINATION
108 "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
2727 #define LIBDE265_VERSION_H
2828
2929 /* Numeric representation of the version */
30 #define LIBDE265_NUMERIC_VERSION 0x01000300
30 #define LIBDE265_NUMERIC_VERSION 0x01000400
3131
3232 /* Version string */
33 #define LIBDE265_VERSION "1.0.3"
33 #define LIBDE265_VERSION "1.0.4"
3434
3535 #endif
1010 add_subdirectory (algo)
1111 add_library(encoder OBJECT ${encoder_sources})
1212 set(ENCODER_OBJECTS $<TARGET_OBJECTS:encoder> ${ALGO_OBJECTS} PARENT_SCOPE)
13
14 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
15 SET_TARGET_PROPERTIES(encoder PROPERTIES COMPILE_FLAGS "-fPIC")
16 endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1616
1717 add_library(algo OBJECT ${algo_sources})
1818 set(ALGO_OBJECTS $<TARGET_OBJECTS:algo> PARENT_SCOPE)
19
20 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
21 SET_TARGET_PROPERTIES(algo PROPERTIES COMPILE_FLAGS "-fPIC")
22 endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
310310 break;
311311 }
312312
313 if (sps) {
313 if (chroma_format != de265_chroma_mono && sps) {
314314 assert(sps->SubWidthC == SubWidthC);
315315 assert(sps->SubHeightC == SubHeightC);
316316 }
382382 alloc_userdata);
383383
384384 pixels_confwin[0] = pixels[0] + left*WinUnitX + top*WinUnitY*stride;
385 pixels_confwin[1] = pixels[1] + left + top*chroma_stride;
386 pixels_confwin[2] = pixels[2] + left + top*chroma_stride;
387
385
386 if (chroma_format != de265_chroma_mono) {
387 pixels_confwin[1] = pixels[1] + left + top*chroma_stride;
388 pixels_confwin[2] = pixels[2] + left + top*chroma_stride;
389 }
390 else {
391 pixels_confwin[1] = NULL;
392 pixels_confwin[2] = NULL;
393 }
388394
389395 // check for memory shortage
390396
1818 set(X86_OBJECTS $<TARGET_OBJECTS:x86> $<TARGET_OBJECTS:x86_sse> PARENT_SCOPE)
1919
2020 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
21 SET_TARGET_PROPERTIES(x86 PROPERTIES COMPILE_FLAGS "-fPIC")
22 SET_TARGET_PROPERTIES(x86_sse PROPERTIES COMPILE_FLAGS "-fPIC ${sse_flags}")
21 SET_TARGET_PROPERTIES(x86_sse PROPERTIES COMPILE_FLAGS "${sse_flags}")
2322 endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
+0
-853
libde265-1.0.2/COPYING less more
0 The library `libde265` is distributed under the terms of the GNU Lesser
1 General Public License. The sample applications are distributed under
2 the terms of the GNU General Public License.
3
4 License texts below and in the `COPYING` files of the corresponding
5 subfolders.
6
7 ----------------------------------------------------------------------
8
9 GNU LESSER GENERAL PUBLIC LICENSE
10 Version 3, 29 June 2007
11
12 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
13 Everyone is permitted to copy and distribute verbatim copies
14 of this license document, but changing it is not allowed.
15
16
17 This version of the GNU Lesser General Public License incorporates
18 the terms and conditions of version 3 of the GNU General Public
19 License, supplemented by the additional permissions listed below.
20
21 0. Additional Definitions.
22
23 As used herein, "this License" refers to version 3 of the GNU Lesser
24 General Public License, and the "GNU GPL" refers to version 3 of the GNU
25 General Public License.
26
27 "The Library" refers to a covered work governed by this License,
28 other than an Application or a Combined Work as defined below.
29
30 An "Application" is any work that makes use of an interface provided
31 by the Library, but which is not otherwise based on the Library.
32 Defining a subclass of a class defined by the Library is deemed a mode
33 of using an interface provided by the Library.
34
35 A "Combined Work" is a work produced by combining or linking an
36 Application with the Library. The particular version of the Library
37 with which the Combined Work was made is also called the "Linked
38 Version".
39
40 The "Minimal Corresponding Source" for a Combined Work means the
41 Corresponding Source for the Combined Work, excluding any source code
42 for portions of the Combined Work that, considered in isolation, are
43 based on the Application, and not on the Linked Version.
44
45 The "Corresponding Application Code" for a Combined Work means the
46 object code and/or source code for the Application, including any data
47 and utility programs needed for reproducing the Combined Work from the
48 Application, but excluding the System Libraries of the Combined Work.
49
50 1. Exception to Section 3 of the GNU GPL.
51
52 You may convey a covered work under sections 3 and 4 of this License
53 without being bound by section 3 of the GNU GPL.
54
55 2. Conveying Modified Versions.
56
57 If you modify a copy of the Library, and, in your modifications, a
58 facility refers to a function or data to be supplied by an Application
59 that uses the facility (other than as an argument passed when the
60 facility is invoked), then you may convey a copy of the modified
61 version:
62
63 a) under this License, provided that you make a good faith effort to
64 ensure that, in the event an Application does not supply the
65 function or data, the facility still operates, and performs
66 whatever part of its purpose remains meaningful, or
67
68 b) under the GNU GPL, with none of the additional permissions of
69 this License applicable to that copy.
70
71 3. Object Code Incorporating Material from Library Header Files.
72
73 The object code form of an Application may incorporate material from
74 a header file that is part of the Library. You may convey such object
75 code under terms of your choice, provided that, if the incorporated
76 material is not limited to numerical parameters, data structure
77 layouts and accessors, or small macros, inline functions and templates
78 (ten or fewer lines in length), you do both of the following:
79
80 a) Give prominent notice with each copy of the object code that the
81 Library is used in it and that the Library and its use are
82 covered by this License.
83
84 b) Accompany the object code with a copy of the GNU GPL and this license
85 document.
86
87 4. Combined Works.
88
89 You may convey a Combined Work under terms of your choice that,
90 taken together, effectively do not restrict modification of the
91 portions of the Library contained in the Combined Work and reverse
92 engineering for debugging such modifications, if you also do each of
93 the following:
94
95 a) Give prominent notice with each copy of the Combined Work that
96 the Library is used in it and that the Library and its use are
97 covered by this License.
98
99 b) Accompany the Combined Work with a copy of the GNU GPL and this license
100 document.
101
102 c) For a Combined Work that displays copyright notices during
103 execution, include the copyright notice for the Library among
104 these notices, as well as a reference directing the user to the
105 copies of the GNU GPL and this license document.
106
107 d) Do one of the following:
108
109 0) Convey the Minimal Corresponding Source under the terms of this
110 License, and the Corresponding Application Code in a form
111 suitable for, and under terms that permit, the user to
112 recombine or relink the Application with a modified version of
113 the Linked Version to produce a modified Combined Work, in the
114 manner specified by section 6 of the GNU GPL for conveying
115 Corresponding Source.
116
117 1) Use a suitable shared library mechanism for linking with the
118 Library. A suitable mechanism is one that (a) uses at run time
119 a copy of the Library already present on the user's computer
120 system, and (b) will operate properly with a modified version
121 of the Library that is interface-compatible with the Linked
122 Version.
123
124 e) Provide Installation Information, but only if you would otherwise
125 be required to provide such information under section 6 of the
126 GNU GPL, and only to the extent that such information is
127 necessary to install and execute a modified version of the
128 Combined Work produced by recombining or relinking the
129 Application with a modified version of the Linked Version. (If
130 you use option 4d0, the Installation Information must accompany
131 the Minimal Corresponding Source and Corresponding Application
132 Code. If you use option 4d1, you must provide the Installation
133 Information in the manner specified by section 6 of the GNU GPL
134 for conveying Corresponding Source.)
135
136 5. Combined Libraries.
137
138 You may place library facilities that are a work based on the
139 Library side by side in a single library together with other library
140 facilities that are not Applications and are not covered by this
141 License, and convey such a combined library under terms of your
142 choice, if you do both of the following:
143
144 a) Accompany the combined library with a copy of the same work based
145 on the Library, uncombined with any other library facilities,
146 conveyed under the terms of this License.
147
148 b) Give prominent notice with the combined library that part of it
149 is a work based on the Library, and explaining where to find the
150 accompanying uncombined form of the same work.
151
152 6. Revised Versions of the GNU Lesser General Public License.
153
154 The Free Software Foundation may publish revised and/or new versions
155 of the GNU Lesser General Public License from time to time. Such new
156 versions will be similar in spirit to the present version, but may
157 differ in detail to address new problems or concerns.
158
159 Each version is given a distinguishing version number. If the
160 Library as you received it specifies that a certain numbered version
161 of the GNU Lesser General Public License "or any later version"
162 applies to it, you have the option of following the terms and
163 conditions either of that published version or of any later version
164 published by the Free Software Foundation. If the Library as you
165 received it does not specify a version number of the GNU Lesser
166 General Public License, you may choose any version of the GNU Lesser
167 General Public License ever published by the Free Software Foundation.
168
169 If the Library as you received it specifies that a proxy can decide
170 whether future versions of the GNU Lesser General Public License shall
171 apply, that proxy's public statement of acceptance of any version is
172 permanent authorization for you to choose that version for the
173 Library.
174
175 ----------------------------------------------------------------------
176
177 GNU GENERAL PUBLIC LICENSE
178 Version 3, 29 June 2007
179
180 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
181 Everyone is permitted to copy and distribute verbatim copies
182 of this license document, but changing it is not allowed.
183
184 Preamble
185
186 The GNU General Public License is a free, copyleft license for
187 software and other kinds of works.
188
189 The licenses for most software and other practical works are designed
190 to take away your freedom to share and change the works. By contrast,
191 the GNU General Public License is intended to guarantee your freedom to
192 share and change all versions of a program--to make sure it remains free
193 software for all its users. We, the Free Software Foundation, use the
194 GNU General Public License for most of our software; it applies also to
195 any other work released this way by its authors. You can apply it to
196 your programs, too.
197
198 When we speak of free software, we are referring to freedom, not
199 price. Our General Public Licenses are designed to make sure that you
200 have the freedom to distribute copies of free software (and charge for
201 them if you wish), that you receive source code or can get it if you
202 want it, that you can change the software or use pieces of it in new
203 free programs, and that you know you can do these things.
204
205 To protect your rights, we need to prevent others from denying you
206 these rights or asking you to surrender the rights. Therefore, you have
207 certain responsibilities if you distribute copies of the software, or if
208 you modify it: responsibilities to respect the freedom of others.
209
210 For example, if you distribute copies of such a program, whether
211 gratis or for a fee, you must pass on to the recipients the same
212 freedoms that you received. You must make sure that they, too, receive
213 or can get the source code. And you must show them these terms so they
214 know their rights.
215
216 Developers that use the GNU GPL protect your rights with two steps:
217 (1) assert copyright on the software, and (2) offer you this License
218 giving you legal permission to copy, distribute and/or modify it.
219
220 For the developers' and authors' protection, the GPL clearly explains
221 that there is no warranty for this free software. For both users' and
222 authors' sake, the GPL requires that modified versions be marked as
223 changed, so that their problems will not be attributed erroneously to
224 authors of previous versions.
225
226 Some devices are designed to deny users access to install or run
227 modified versions of the software inside them, although the manufacturer
228 can do so. This is fundamentally incompatible with the aim of
229 protecting users' freedom to change the software. The systematic
230 pattern of such abuse occurs in the area of products for individuals to
231 use, which is precisely where it is most unacceptable. Therefore, we
232 have designed this version of the GPL to prohibit the practice for those
233 products. If such problems arise substantially in other domains, we
234 stand ready to extend this provision to those domains in future versions
235 of the GPL, as needed to protect the freedom of users.
236
237 Finally, every program is threatened constantly by software patents.
238 States should not allow patents to restrict development and use of
239 software on general-purpose computers, but in those that do, we wish to
240 avoid the special danger that patents applied to a free program could
241 make it effectively proprietary. To prevent this, the GPL assures that
242 patents cannot be used to render the program non-free.
243
244 The precise terms and conditions for copying, distribution and
245 modification follow.
246
247 TERMS AND CONDITIONS
248
249 0. Definitions.
250
251 "This License" refers to version 3 of the GNU General Public License.
252
253 "Copyright" also means copyright-like laws that apply to other kinds of
254 works, such as semiconductor masks.
255
256 "The Program" refers to any copyrightable work licensed under this
257 License. Each licensee is addressed as "you". "Licensees" and
258 "recipients" may be individuals or organizations.
259
260 To "modify" a work means to copy from or adapt all or part of the work
261 in a fashion requiring copyright permission, other than the making of an
262 exact copy. The resulting work is called a "modified version" of the
263 earlier work or a work "based on" the earlier work.
264
265 A "covered work" means either the unmodified Program or a work based
266 on the Program.
267
268 To "propagate" a work means to do anything with it that, without
269 permission, would make you directly or secondarily liable for
270 infringement under applicable copyright law, except executing it on a
271 computer or modifying a private copy. Propagation includes copying,
272 distribution (with or without modification), making available to the
273 public, and in some countries other activities as well.
274
275 To "convey" a work means any kind of propagation that enables other
276 parties to make or receive copies. Mere interaction with a user through
277 a computer network, with no transfer of a copy, is not conveying.
278
279 An interactive user interface displays "Appropriate Legal Notices"
280 to the extent that it includes a convenient and prominently visible
281 feature that (1) displays an appropriate copyright notice, and (2)
282 tells the user that there is no warranty for the work (except to the
283 extent that warranties are provided), that licensees may convey the
284 work under this License, and how to view a copy of this License. If
285 the interface presents a list of user commands or options, such as a
286 menu, a prominent item in the list meets this criterion.
287
288 1. Source Code.
289
290 The "source code" for a work means the preferred form of the work
291 for making modifications to it. "Object code" means any non-source
292 form of a work.
293
294 A "Standard Interface" means an interface that either is an official
295 standard defined by a recognized standards body, or, in the case of
296 interfaces specified for a particular programming language, one that
297 is widely used among developers working in that language.
298
299 The "System Libraries" of an executable work include anything, other
300 than the work as a whole, that (a) is included in the normal form of
301 packaging a Major Component, but which is not part of that Major
302 Component, and (b) serves only to enable use of the work with that
303 Major Component, or to implement a Standard Interface for which an
304 implementation is available to the public in source code form. A
305 "Major Component", in this context, means a major essential component
306 (kernel, window system, and so on) of the specific operating system
307 (if any) on which the executable work runs, or a compiler used to
308 produce the work, or an object code interpreter used to run it.
309
310 The "Corresponding Source" for a work in object code form means all
311 the source code needed to generate, install, and (for an executable
312 work) run the object code and to modify the work, including scripts to
313 control those activities. However, it does not include the work's
314 System Libraries, or general-purpose tools or generally available free
315 programs which are used unmodified in performing those activities but
316 which are not part of the work. For example, Corresponding Source
317 includes interface definition files associated with source files for
318 the work, and the source code for shared libraries and dynamically
319 linked subprograms that the work is specifically designed to require,
320 such as by intimate data communication or control flow between those
321 subprograms and other parts of the work.
322
323 The Corresponding Source need not include anything that users
324 can regenerate automatically from other parts of the Corresponding
325 Source.
326
327 The Corresponding Source for a work in source code form is that
328 same work.
329
330 2. Basic Permissions.
331
332 All rights granted under this License are granted for the term of
333 copyright on the Program, and are irrevocable provided the stated
334 conditions are met. This License explicitly affirms your unlimited
335 permission to run the unmodified Program. The output from running a
336 covered work is covered by this License only if the output, given its
337 content, constitutes a covered work. This License acknowledges your
338 rights of fair use or other equivalent, as provided by copyright law.
339
340 You may make, run and propagate covered works that you do not
341 convey, without conditions so long as your license otherwise remains
342 in force. You may convey covered works to others for the sole purpose
343 of having them make modifications exclusively for you, or provide you
344 with facilities for running those works, provided that you comply with
345 the terms of this License in conveying all material for which you do
346 not control copyright. Those thus making or running the covered works
347 for you must do so exclusively on your behalf, under your direction
348 and control, on terms that prohibit them from making any copies of
349 your copyrighted material outside their relationship with you.
350
351 Conveying under any other circumstances is permitted solely under
352 the conditions stated below. Sublicensing is not allowed; section 10
353 makes it unnecessary.
354
355 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
356
357 No covered work shall be deemed part of an effective technological
358 measure under any applicable law fulfilling obligations under article
359 11 of the WIPO copyright treaty adopted on 20 December 1996, or
360 similar laws prohibiting or restricting circumvention of such
361 measures.
362
363 When you convey a covered work, you waive any legal power to forbid
364 circumvention of technological measures to the extent such circumvention
365 is effected by exercising rights under this License with respect to
366 the covered work, and you disclaim any intention to limit operation or
367 modification of the work as a means of enforcing, against the work's
368 users, your or third parties' legal rights to forbid circumvention of
369 technological measures.
370
371 4. Conveying Verbatim Copies.
372
373 You may convey verbatim copies of the Program's source code as you
374 receive it, in any medium, provided that you conspicuously and
375 appropriately publish on each copy an appropriate copyright notice;
376 keep intact all notices stating that this License and any
377 non-permissive terms added in accord with section 7 apply to the code;
378 keep intact all notices of the absence of any warranty; and give all
379 recipients a copy of this License along with the Program.
380
381 You may charge any price or no price for each copy that you convey,
382 and you may offer support or warranty protection for a fee.
383
384 5. Conveying Modified Source Versions.
385
386 You may convey a work based on the Program, or the modifications to
387 produce it from the Program, in the form of source code under the
388 terms of section 4, provided that you also meet all of these conditions:
389
390 a) The work must carry prominent notices stating that you modified
391 it, and giving a relevant date.
392
393 b) The work must carry prominent notices stating that it is
394 released under this License and any conditions added under section
395 7. This requirement modifies the requirement in section 4 to
396 "keep intact all notices".
397
398 c) You must license the entire work, as a whole, under this
399 License to anyone who comes into possession of a copy. This
400 License will therefore apply, along with any applicable section 7
401 additional terms, to the whole of the work, and all its parts,
402 regardless of how they are packaged. This License gives no
403 permission to license the work in any other way, but it does not
404 invalidate such permission if you have separately received it.
405
406 d) If the work has interactive user interfaces, each must display
407 Appropriate Legal Notices; however, if the Program has interactive
408 interfaces that do not display Appropriate Legal Notices, your
409 work need not make them do so.
410
411 A compilation of a covered work with other separate and independent
412 works, which are not by their nature extensions of the covered work,
413 and which are not combined with it such as to form a larger program,
414 in or on a volume of a storage or distribution medium, is called an
415 "aggregate" if the compilation and its resulting copyright are not
416 used to limit the access or legal rights of the compilation's users
417 beyond what the individual works permit. Inclusion of a covered work
418 in an aggregate does not cause this License to apply to the other
419 parts of the aggregate.
420
421 6. Conveying Non-Source Forms.
422
423 You may convey a covered work in object code form under the terms
424 of sections 4 and 5, provided that you also convey the
425 machine-readable Corresponding Source under the terms of this License,
426 in one of these ways:
427
428 a) Convey the object code in, or embodied in, a physical product
429 (including a physical distribution medium), accompanied by the
430 Corresponding Source fixed on a durable physical medium
431 customarily used for software interchange.
432
433 b) Convey the object code in, or embodied in, a physical product
434 (including a physical distribution medium), accompanied by a
435 written offer, valid for at least three years and valid for as
436 long as you offer spare parts or customer support for that product
437 model, to give anyone who possesses the object code either (1) a
438 copy of the Corresponding Source for all the software in the
439 product that is covered by this License, on a durable physical
440 medium customarily used for software interchange, for a price no
441 more than your reasonable cost of physically performing this
442 conveying of source, or (2) access to copy the
443 Corresponding Source from a network server at no charge.
444
445 c) Convey individual copies of the object code with a copy of the
446 written offer to provide the Corresponding Source. This
447 alternative is allowed only occasionally and noncommercially, and
448 only if you received the object code with such an offer, in accord
449 with subsection 6b.
450
451 d) Convey the object code by offering access from a designated
452 place (gratis or for a charge), and offer equivalent access to the
453 Corresponding Source in the same way through the same place at no
454 further charge. You need not require recipients to copy the
455 Corresponding Source along with the object code. If the place to
456 copy the object code is a network server, the Corresponding Source
457 may be on a different server (operated by you or a third party)
458 that supports equivalent copying facilities, provided you maintain
459 clear directions next to the object code saying where to find the
460 Corresponding Source. Regardless of what server hosts the
461 Corresponding Source, you remain obligated to ensure that it is
462 available for as long as needed to satisfy these requirements.
463
464 e) Convey the object code using peer-to-peer transmission, provided
465 you inform other peers where the object code and Corresponding
466 Source of the work are being offered to the general public at no
467 charge under subsection 6d.
468
469 A separable portion of the object code, whose source code is excluded
470 from the Corresponding Source as a System Library, need not be
471 included in conveying the object code work.
472
473 A "User Product" is either (1) a "consumer product", which means any
474 tangible personal property which is normally used for personal, family,
475 or household purposes, or (2) anything designed or sold for incorporation
476 into a dwelling. In determining whether a product is a consumer product,
477 doubtful cases shall be resolved in favor of coverage. For a particular
478 product received by a particular user, "normally used" refers to a
479 typical or common use of that class of product, regardless of the status
480 of the particular user or of the way in which the particular user
481 actually uses, or expects or is expected to use, the product. A product
482 is a consumer product regardless of whether the product has substantial
483 commercial, industrial or non-consumer uses, unless such uses represent
484 the only significant mode of use of the product.
485
486 "Installation Information" for a User Product means any methods,
487 procedures, authorization keys, or other information required to install
488 and execute modified versions of a covered work in that User Product from
489 a modified version of its Corresponding Source. The information must
490 suffice to ensure that the continued functioning of the modified object
491 code is in no case prevented or interfered with solely because
492 modification has been made.
493
494 If you convey an object code work under this section in, or with, or
495 specifically for use in, a User Product, and the conveying occurs as
496 part of a transaction in which the right of possession and use of the
497 User Product is transferred to the recipient in perpetuity or for a
498 fixed term (regardless of how the transaction is characterized), the
499 Corresponding Source conveyed under this section must be accompanied
500 by the Installation Information. But this requirement does not apply
501 if neither you nor any third party retains the ability to install
502 modified object code on the User Product (for example, the work has
503 been installed in ROM).
504
505 The requirement to provide Installation Information does not include a
506 requirement to continue to provide support service, warranty, or updates
507 for a work that has been modified or installed by the recipient, or for
508 the User Product in which it has been modified or installed. Access to a
509 network may be denied when the modification itself materially and
510 adversely affects the operation of the network or violates the rules and
511 protocols for communication across the network.
512
513 Corresponding Source conveyed, and Installation Information provided,
514 in accord with this section must be in a format that is publicly
515 documented (and with an implementation available to the public in
516 source code form), and must require no special password or key for
517 unpacking, reading or copying.
518
519 7. Additional Terms.
520
521 "Additional permissions" are terms that supplement the terms of this
522 License by making exceptions from one or more of its conditions.
523 Additional permissions that are applicable to the entire Program shall
524 be treated as though they were included in this License, to the extent
525 that they are valid under applicable law. If additional permissions
526 apply only to part of the Program, that part may be used separately
527 under those permissions, but the entire Program remains governed by
528 this License without regard to the additional permissions.
529
530 When you convey a copy of a covered work, you may at your option
531 remove any additional permissions from that copy, or from any part of
532 it. (Additional permissions may be written to require their own
533 removal in certain cases when you modify the work.) You may place
534 additional permissions on material, added by you to a covered work,
535 for which you have or can give appropriate copyright permission.
536
537 Notwithstanding any other provision of this License, for material you
538 add to a covered work, you may (if authorized by the copyright holders of
539 that material) supplement the terms of this License with terms:
540
541 a) Disclaiming warranty or limiting liability differently from the
542 terms of sections 15 and 16 of this License; or
543
544 b) Requiring preservation of specified reasonable legal notices or
545 author attributions in that material or in the Appropriate Legal
546 Notices displayed by works containing it; or
547
548 c) Prohibiting misrepresentation of the origin of that material, or
549 requiring that modified versions of such material be marked in
550 reasonable ways as different from the original version; or
551
552 d) Limiting the use for publicity purposes of names of licensors or
553 authors of the material; or
554
555 e) Declining to grant rights under trademark law for use of some
556 trade names, trademarks, or service marks; or
557
558 f) Requiring indemnification of licensors and authors of that
559 material by anyone who conveys the material (or modified versions of
560 it) with contractual assumptions of liability to the recipient, for
561 any liability that these contractual assumptions directly impose on
562 those licensors and authors.
563
564 All other non-permissive additional terms are considered "further
565 restrictions" within the meaning of section 10. If the Program as you
566 received it, or any part of it, contains a notice stating that it is
567 governed by this License along with a term that is a further
568 restriction, you may remove that term. If a license document contains
569 a further restriction but permits relicensing or conveying under this
570 License, you may add to a covered work material governed by the terms
571 of that license document, provided that the further restriction does
572 not survive such relicensing or conveying.
573
574 If you add terms to a covered work in accord with this section, you
575 must place, in the relevant source files, a statement of the
576 additional terms that apply to those files, or a notice indicating
577 where to find the applicable terms.
578
579 Additional terms, permissive or non-permissive, may be stated in the
580 form of a separately written license, or stated as exceptions;
581 the above requirements apply either way.
582
583 8. Termination.
584
585 You may not propagate or modify a covered work except as expressly
586 provided under this License. Any attempt otherwise to propagate or
587 modify it is void, and will automatically terminate your rights under
588 this License (including any patent licenses granted under the third
589 paragraph of section 11).
590
591 However, if you cease all violation of this License, then your
592 license from a particular copyright holder is reinstated (a)
593 provisionally, unless and until the copyright holder explicitly and
594 finally terminates your license, and (b) permanently, if the copyright
595 holder fails to notify you of the violation by some reasonable means
596 prior to 60 days after the cessation.
597
598 Moreover, your license from a particular copyright holder is
599 reinstated permanently if the copyright holder notifies you of the
600 violation by some reasonable means, this is the first time you have
601 received notice of violation of this License (for any work) from that
602 copyright holder, and you cure the violation prior to 30 days after
603 your receipt of the notice.
604
605 Termination of your rights under this section does not terminate the
606 licenses of parties who have received copies or rights from you under
607 this License. If your rights have been terminated and not permanently
608 reinstated, you do not qualify to receive new licenses for the same
609 material under section 10.
610
611 9. Acceptance Not Required for Having Copies.
612
613 You are not required to accept this License in order to receive or
614 run a copy of the Program. Ancillary propagation of a covered work
615 occurring solely as a consequence of using peer-to-peer transmission
616 to receive a copy likewise does not require acceptance. However,
617 nothing other than this License grants you permission to propagate or
618 modify any covered work. These actions infringe copyright if you do
619 not accept this License. Therefore, by modifying or propagating a
620 covered work, you indicate your acceptance of this License to do so.
621
622 10. Automatic Licensing of Downstream Recipients.
623
624 Each time you convey a covered work, the recipient automatically
625 receives a license from the original licensors, to run, modify and
626 propagate that work, subject to this License. You are not responsible
627 for enforcing compliance by third parties with this License.
628
629 An "entity transaction" is a transaction transferring control of an
630 organization, or substantially all assets of one, or subdividing an
631 organization, or merging organizations. If propagation of a covered
632 work results from an entity transaction, each party to that
633 transaction who receives a copy of the work also receives whatever
634 licenses to the work the party's predecessor in interest had or could
635 give under the previous paragraph, plus a right to possession of the
636 Corresponding Source of the work from the predecessor in interest, if
637 the predecessor has it or can get it with reasonable efforts.
638
639 You may not impose any further restrictions on the exercise of the
640 rights granted or affirmed under this License. For example, you may
641 not impose a license fee, royalty, or other charge for exercise of
642 rights granted under this License, and you may not initiate litigation
643 (including a cross-claim or counterclaim in a lawsuit) alleging that
644 any patent claim is infringed by making, using, selling, offering for
645 sale, or importing the Program or any portion of it.
646
647 11. Patents.
648
649 A "contributor" is a copyright holder who authorizes use under this
650 License of the Program or a work on which the Program is based. The
651 work thus licensed is called the contributor's "contributor version".
652
653 A contributor's "essential patent claims" are all patent claims
654 owned or controlled by the contributor, whether already acquired or
655 hereafter acquired, that would be infringed by some manner, permitted
656 by this License, of making, using, or selling its contributor version,
657 but do not include claims that would be infringed only as a
658 consequence of further modification of the contributor version. For
659 purposes of this definition, "control" includes the right to grant
660 patent sublicenses in a manner consistent with the requirements of
661 this License.
662
663 Each contributor grants you a non-exclusive, worldwide, royalty-free
664 patent license under the contributor's essential patent claims, to
665 make, use, sell, offer for sale, import and otherwise run, modify and
666 propagate the contents of its contributor version.
667
668 In the following three paragraphs, a "patent license" is any express
669 agreement or commitment, however denominated, not to enforce a patent
670 (such as an express permission to practice a patent or covenant not to
671 sue for patent infringement). To "grant" such a patent license to a
672 party means to make such an agreement or commitment not to enforce a
673 patent against the party.
674
675 If you convey a covered work, knowingly relying on a patent license,
676 and the Corresponding Source of the work is not available for anyone
677 to copy, free of charge and under the terms of this License, through a
678 publicly available network server or other readily accessible means,
679 then you must either (1) cause the Corresponding Source to be so
680 available, or (2) arrange to deprive yourself of the benefit of the
681 patent license for this particular work, or (3) arrange, in a manner
682 consistent with the requirements of this License, to extend the patent
683 license to downstream recipients. "Knowingly relying" means you have
684 actual knowledge that, but for the patent license, your conveying the
685 covered work in a country, or your recipient's use of the covered work
686 in a country, would infringe one or more identifiable patents in that
687 country that you have reason to believe are valid.
688
689 If, pursuant to or in connection with a single transaction or
690 arrangement, you convey, or propagate by procuring conveyance of, a
691 covered work, and grant a patent license to some of the parties
692 receiving the covered work authorizing them to use, propagate, modify
693 or convey a specific copy of the covered work, then the patent license
694 you grant is automatically extended to all recipients of the covered
695 work and works based on it.
696
697 A patent license is "discriminatory" if it does not include within
698 the scope of its coverage, prohibits the exercise of, or is
699 conditioned on the non-exercise of one or more of the rights that are
700 specifically granted under this License. You may not convey a covered
701 work if you are a party to an arrangement with a third party that is
702 in the business of distributing software, under which you make payment
703 to the third party based on the extent of your activity of conveying
704 the work, and under which the third party grants, to any of the
705 parties who would receive the covered work from you, a discriminatory
706 patent license (a) in connection with copies of the covered work
707 conveyed by you (or copies made from those copies), or (b) primarily
708 for and in connection with specific products or compilations that
709 contain the covered work, unless you entered into that arrangement,
710 or that patent license was granted, prior to 28 March 2007.
711
712 Nothing in this License shall be construed as excluding or limiting
713 any implied license or other defenses to infringement that may
714 otherwise be available to you under applicable patent law.
715
716 12. No Surrender of Others' Freedom.
717
718 If conditions are imposed on you (whether by court order, agreement or
719 otherwise) that contradict the conditions of this License, they do not
720 excuse you from the conditions of this License. If you cannot convey a
721 covered work so as to satisfy simultaneously your obligations under this
722 License and any other pertinent obligations, then as a consequence you may
723 not convey it at all. For example, if you agree to terms that obligate you
724 to collect a royalty for further conveying from those to whom you convey
725 the Program, the only way you could satisfy both those terms and this
726 License would be to refrain entirely from conveying the Program.
727
728 13. Use with the GNU Affero General Public License.
729
730 Notwithstanding any other provision of this License, you have
731 permission to link or combine any covered work with a work licensed
732 under version 3 of the GNU Affero General Public License into a single
733 combined work, and to convey the resulting work. The terms of this
734 License will continue to apply to the part which is the covered work,
735 but the special requirements of the GNU Affero General Public License,
736 section 13, concerning interaction through a network will apply to the
737 combination as such.
738
739 14. Revised Versions of this License.
740
741 The Free Software Foundation may publish revised and/or new versions of
742 the GNU General Public License from time to time. Such new versions will
743 be similar in spirit to the present version, but may differ in detail to
744 address new problems or concerns.
745
746 Each version is given a distinguishing version number. If the
747 Program specifies that a certain numbered version of the GNU General
748 Public License "or any later version" applies to it, you have the
749 option of following the terms and conditions either of that numbered
750 version or of any later version published by the Free Software
751 Foundation. If the Program does not specify a version number of the
752 GNU General Public License, you may choose any version ever published
753 by the Free Software Foundation.
754
755 If the Program specifies that a proxy can decide which future
756 versions of the GNU General Public License can be used, that proxy's
757 public statement of acceptance of a version permanently authorizes you
758 to choose that version for the Program.
759
760 Later license versions may give you additional or different
761 permissions. However, no additional obligations are imposed on any
762 author or copyright holder as a result of your choosing to follow a
763 later version.
764
765 15. Disclaimer of Warranty.
766
767 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
768 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
769 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
770 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
771 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
772 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
773 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
774 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
775
776 16. Limitation of Liability.
777
778 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
779 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
780 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
781 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
782 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
783 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
784 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
785 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
786 SUCH DAMAGES.
787
788 17. Interpretation of Sections 15 and 16.
789
790 If the disclaimer of warranty and limitation of liability provided
791 above cannot be given local legal effect according to their terms,
792 reviewing courts shall apply local law that most closely approximates
793 an absolute waiver of all civil liability in connection with the
794 Program, unless a warranty or assumption of liability accompanies a
795 copy of the Program in return for a fee.
796
797 END OF TERMS AND CONDITIONS
798
799 How to Apply These Terms to Your New Programs
800
801 If you develop a new program, and you want it to be of the greatest
802 possible use to the public, the best way to achieve this is to make it
803 free software which everyone can redistribute and change under these terms.
804
805 To do so, attach the following notices to the program. It is safest
806 to attach them to the start of each source file to most effectively
807 state the exclusion of warranty; and each file should have at least
808 the "copyright" line and a pointer to where the full notice is found.
809
810 <one line to give the program's name and a brief idea of what it does.>
811 Copyright (C) <year> <name of author>
812
813 This program is free software: you can redistribute it and/or modify
814 it under the terms of the GNU General Public License as published by
815 the Free Software Foundation, either version 3 of the License, or
816 (at your option) any later version.
817
818 This program is distributed in the hope that it will be useful,
819 but WITHOUT ANY WARRANTY; without even the implied warranty of
820 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
821 GNU General Public License for more details.
822
823 You should have received a copy of the GNU General Public License
824 along with this program. If not, see <http://www.gnu.org/licenses/>.
825
826 Also add information on how to contact you by electronic and paper mail.
827
828 If the program does terminal interaction, make it output a short
829 notice like this when it starts in an interactive mode:
830
831 <program> Copyright (C) <year> <name of author>
832 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
833 This is free software, and you are welcome to redistribute it
834 under certain conditions; type `show c' for details.
835
836 The hypothetical commands `show w' and `show c' should show the appropriate
837 parts of the General Public License. Of course, your program's commands
838 might be different; for a GUI interface, you would use an "about box".
839
840 You should also get your employer (if you work as a programmer) or school,
841 if any, to sign a "copyright disclaimer" for the program, if necessary.
842 For more information on this, and how to apply and follow the GNU GPL, see
843 <http://www.gnu.org/licenses/>.
844
845 The GNU General Public License does not permit incorporating your program
846 into proprietary programs. If your program is a subroutine library, you
847 may consider it more useful to permit linking proprietary applications with
848 the library. If this is what you want to do, use the GNU Lesser General
849 Public License instead of this License. But first, please read
850 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
851
852 ----------------------------------------------------------------------
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-0.1"
33 VERSION="2.4.6 Debian-2.4.6-2"
3434 package_revision=2.4.6
3535
3636
20672067 compiler: $LTCC
20682068 compiler flags: $LTCFLAGS
20692069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2070 version: $progname $scriptversion Debian-2.4.6-2
20712071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
20722072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
20732073
727727 cat <<_LT_EOF >> "$cfgfile"
728728 #! $SHELL
729729 # Generated automatically by $as_me ($PACKAGE) $VERSION
730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
731730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
732731
733732 # Provide generalized library-building support services.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,