Imported Upstream version 1.0.4
Joachim Bauch
4 years ago
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) | |
2 | 11 | |
3 | 12 | # 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}) | |
6 | 15 | |
7 | 16 | include (${CMAKE_ROOT}/Modules/CheckCCompilerFlag.cmake) |
8 | 17 | 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) | |
11 | 25 | |
12 | 26 | CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H) |
13 | 27 | CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H) |
23 | 37 | add_definitions(-DHAVE_STDBOOL_H) |
24 | 38 | endif() |
25 | 39 | |
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) | |
30 | 41 | |
31 | if(CMAKE_COMPILER_IS_GNUCXX) | |
32 | set(GCC 1) | |
42 | if(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES Clang) | |
33 | 43 | 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}") | |
38 | 44 | endif() |
39 | 45 | |
40 | 46 | option(DISABLE_SSE "Disable SSE optimizations") |
56 | 62 | add_definitions(-DNOMINMAX) |
57 | 63 | endif() |
58 | 64 | |
59 | if(UNIX) | |
60 | set(LIBDE265_LIBRARY_NAME de265) | |
61 | else() | |
62 | set(LIBDE265_LIBRARY_NAME libde265) | |
63 | endif() | |
64 | ||
65 | 65 | add_subdirectory (libde265) |
66 | 66 | add_subdirectory (dec265) |
67 | 67 | add_subdirectory (enc265) |
0 | 0 | Installation Instructions |
1 | 1 | ************************* |
2 | 2 | |
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. | |
5 | 5 | |
6 | 6 | Copying and distribution of this file, with or without modification, |
7 | 7 | are permitted in any medium without royalty provided the copyright |
11 | 11 | Basic Installation |
12 | 12 | ================== |
13 | 13 | |
14 | Briefly, the shell command `./configure && make && make install' | |
14 | Briefly, the shell command './configure && make && make install' | |
15 | 15 | 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 | |
17 | 17 | 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 | |
19 | 19 | below. The lack of an optional feature in a given package is not |
20 | 20 | necessarily a bug. More recommendations for GNU packages can be found |
21 | 21 | in *note Makefile Conventions: (standards)Makefile Conventions. |
22 | 22 | |
23 | The `configure' shell script attempts to guess correct values for | |
23 | The 'configure' shell script attempts to guess correct values for | |
24 | 24 | 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 | |
28 | 28 | 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. | |
37 | 36 | |
38 | 37 | 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 | |
41 | 40 | 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 | |
43 | 42 | may remove or edit it. |
44 | 43 | |
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'. | |
49 | 48 | |
50 | 49 | The simplest way to compile this package is: |
51 | 50 | |
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 | |
56 | 55 | some messages telling which features it is checking for. |
57 | 56 | |
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 | |
61 | 60 | the package, generally using the just-built uninstalled binaries. |
62 | 61 | |
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 | |
64 | 63 | documentation. When installing into a prefix owned by root, it is |
65 | 64 | 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 | |
67 | 66 | privileges. |
68 | 67 | |
69 | 5. Optionally, type `make installcheck' to repeat any self-tests, but | |
68 | 5. Optionally, type 'make installcheck' to repeat any self-tests, but | |
70 | 69 | this time using the binaries in their final installed location. |
71 | 70 | 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 | |
73 | 72 | root privileges, verifies that the installation completed |
74 | 73 | correctly. |
75 | 74 | |
76 | 75 | 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 | |
81 | 80 | for the package's developers. If you use it, you may have to get |
82 | 81 | all sorts of other programs in order to regenerate files that came |
83 | 82 | with the distribution. |
84 | 83 | |
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 | |
86 | 85 | files again. In practice, not all packages have tested that |
87 | 86 | uninstallation works correctly, even though it is required by the |
88 | 87 | GNU Coding Standards. |
89 | 88 | |
90 | 8. Some packages, particularly those that use Automake, provide `make | |
89 | 8. Some packages, particularly those that use Automake, provide 'make | |
91 | 90 | 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. | |
93 | 92 | This target is generally not run by end users. |
94 | 93 | |
95 | 94 | Compilers and Options |
96 | 95 | ===================== |
97 | 96 | |
98 | 97 | 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' | |
100 | 99 | for details on some of the pertinent environment variables. |
101 | 100 | |
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: | |
105 | 104 | |
106 | 105 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
107 | 106 | |
112 | 111 | |
113 | 112 | You can compile the package for more than one kind of computer at the |
114 | 113 | 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 | |
116 | 115 | 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 | |
122 | 121 | 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 | |
124 | 123 | reconfiguring for another architecture. |
125 | 124 | |
126 | 125 | On MacOS X 10.5 and later systems, you can create libraries and |
127 | 126 | 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 | |
130 | 129 | this: |
131 | 130 | |
132 | 131 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
135 | 134 | |
136 | 135 | This is not guaranteed to produce working output in all cases, you |
137 | 136 | 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. | |
139 | 138 | |
140 | 139 | Installation Names |
141 | 140 | ================== |
142 | 141 | |
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 | |
147 | 146 | absolute file name. |
148 | 147 | |
149 | 148 | You can specify separate installation prefixes for |
150 | 149 | 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 | |
152 | 151 | PREFIX as the prefix for installing programs and libraries. |
153 | 152 | Documentation and other data files still use the regular prefix. |
154 | 153 | |
155 | 154 | 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 | |
161 | 160 | specifications that were not explicitly provided. |
162 | 161 | |
163 | 162 | 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 | |
165 | 164 | 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 | |
167 | 166 | having to reconfigure or recompile. |
168 | 167 | |
169 | 168 | The first method involves providing an override variable for each |
170 | affected directory. For example, `make install | |
169 | affected directory. For example, 'make install | |
171 | 170 | prefix=/alternate/directory' will choose an alternate location for all |
172 | 171 | 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 | |
186 | 185 | does not work on platforms that have drive letters. On the other hand, |
187 | 186 | 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. | |
190 | 189 | |
191 | 190 | Optional Features |
192 | 191 | ================= |
193 | 192 | |
194 | 193 | 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 | |
203 | 202 | package recognizes. |
204 | 203 | |
205 | For packages that use the X Window System, `configure' can usually | |
204 | For packages that use the X Window System, 'configure' can usually | |
206 | 205 | 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. | |
209 | 208 | |
210 | 209 | 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 | |
212 | 211 | --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 | |
214 | 213 | --disable-silent-rules' sets the default to verbose, which can be |
215 | overridden with `make V=0'. | |
214 | overridden with 'make V=0'. | |
216 | 215 | |
217 | 216 | Particular systems |
218 | 217 | ================== |
219 | 218 | |
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 | |
222 | 221 | order to use an ANSI C compiler: |
223 | 222 | |
224 | 223 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
225 | 224 | |
226 | 225 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
227 | 226 | |
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. | |
232 | 230 | |
233 | 231 | 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 | |
237 | 235 | |
238 | 236 | ./configure CC="cc" |
239 | 237 | |
241 | 239 | |
242 | 240 | ./configure CC="cc -nodtk" |
243 | 241 | |
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 | |
245 | 243 | 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: | |
251 | 249 | |
252 | 250 | ./configure --prefix=/boot/common |
253 | 251 | |
254 | 252 | Specifying the System Type |
255 | 253 | ========================== |
256 | 254 | |
257 | There may be some features `configure' cannot figure out | |
255 | There may be some features 'configure' cannot figure out | |
258 | 256 | automatically, but needs to determine by the type of machine the package |
259 | 257 | 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 | |
261 | 259 | 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: | |
264 | 262 | |
265 | 263 | CPU-COMPANY-SYSTEM |
266 | 264 | |
269 | 267 | OS |
270 | 268 | KERNEL-OS |
271 | 269 | |
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 | |
274 | 272 | need to know the machine type. |
275 | 273 | |
276 | 274 | 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 | |
278 | 276 | produce code for. |
279 | 277 | |
280 | 278 | If you want to _use_ a cross compiler, that generates code for a |
281 | 279 | platform different from the build platform, you should specify the |
282 | 280 | "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'. | |
284 | 282 | |
285 | 283 | Sharing Defaults |
286 | 284 | ================ |
287 | 285 | |
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. | |
295 | 293 | |
296 | 294 | Defining Variables |
297 | 295 | ================== |
298 | 296 | |
299 | 297 | 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 | |
301 | 299 | configure again during the build, and the customized values of these |
302 | 300 | 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: | |
304 | 302 | |
305 | 303 | ./configure CC=/usr/local2/bin/gcc |
306 | 304 | |
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 | |
308 | 306 | overridden in the site shell script). |
309 | 307 | |
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: | |
313 | 311 | |
314 | 312 | CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash |
315 | 313 | |
316 | `configure' Invocation | |
314 | 'configure' Invocation | |
317 | 315 | ====================== |
318 | 316 | |
319 | `configure' recognizes the following options to control how it | |
317 | 'configure' recognizes the following options to control how it | |
320 | 318 | operates. |
321 | 319 | |
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' | |
328 | 326 | 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' | |
336 | 334 | script, and exit. |
337 | 335 | |
338 | `--cache-file=FILE' | |
336 | '--cache-file=FILE' | |
339 | 337 | 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 | |
341 | 339 | disable caching. |
342 | 340 | |
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' | |
350 | 348 | 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 | |
352 | 350 | messages will still be shown). |
353 | 351 | |
354 | `--srcdir=DIR' | |
352 | '--srcdir=DIR' | |
355 | 353 | 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' | |
365 | 363 | Run the configure checks, but stop before creating any output |
366 | 364 | files. |
367 | 365 | |
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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
660 | 660 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
661 | 661 | || chmod -R a+r "$(distdir)" |
662 | 662 | 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 | |
664 | 664 | $(am__post_remove_distdir) |
665 | 665 | |
666 | 666 | dist-bzip2: distdir |
686 | 686 | @echo WARNING: "Support for shar distribution archives is" \ |
687 | 687 | "deprecated." >&2 |
688 | 688 | @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 | |
690 | 690 | $(am__post_remove_distdir) |
691 | 691 | |
692 | 692 | dist-zip: distdir |
704 | 704 | distcheck: dist |
705 | 705 | case '$(DIST_ARCHIVES)' in \ |
706 | 706 | *.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) ;;\ | |
708 | 708 | *.tar.bz2*) \ |
709 | 709 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
710 | 710 | *.tar.lz*) \ |
714 | 714 | *.tar.Z*) \ |
715 | 715 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
716 | 716 | *.shar.gz*) \ |
717 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
717 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
718 | 718 | *.zip*) \ |
719 | 719 | unzip $(distdir).zip ;;\ |
720 | 720 | esac |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
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. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
295 | 295 | AS_VAR_IF([$1], [""], [$5], [$4])dnl |
296 | 296 | ])dnl PKG_CHECK_VAR |
297 | 297 | |
298 | # Copyright (C) 2002-2014 Free Software Foundation, Inc. | |
298 | # Copyright (C) 2002-2017 Free Software Foundation, Inc. | |
299 | 299 | # |
300 | 300 | # This file is free software; the Free Software Foundation |
301 | 301 | # gives unlimited permission to copy and/or distribute it, |
310 | 310 | [am__api_version='1.15' |
311 | 311 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
312 | 312 | dnl require some minimum version. Point them to the right macro. |
313 | m4_if([$1], [1.15], [], | |
313 | m4_if([$1], [1.15.1], [], | |
314 | 314 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
315 | 315 | ]) |
316 | 316 | |
326 | 326 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
327 | 327 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
328 | 328 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
329 | [AM_AUTOMAKE_VERSION([1.15])dnl | |
329 | [AM_AUTOMAKE_VERSION([1.15.1])dnl | |
330 | 330 | m4_ifndef([AC_AUTOCONF_VERSION], |
331 | 331 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
332 | 332 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
333 | 333 | |
334 | 334 | # Figure out how to run the assembler. -*- Autoconf -*- |
335 | 335 | |
336 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
336 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
337 | 337 | # |
338 | 338 | # This file is free software; the Free Software Foundation |
339 | 339 | # gives unlimited permission to copy and/or distribute it, |
353 | 353 | |
354 | 354 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
355 | 355 | |
356 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
356 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
357 | 357 | # |
358 | 358 | # This file is free software; the Free Software Foundation |
359 | 359 | # gives unlimited permission to copy and/or distribute it, |
405 | 405 | |
406 | 406 | # AM_CONDITIONAL -*- Autoconf -*- |
407 | 407 | |
408 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
408 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
409 | 409 | # |
410 | 410 | # This file is free software; the Free Software Foundation |
411 | 411 | # gives unlimited permission to copy and/or distribute it, |
436 | 436 | Usually this means the macro was only invoked conditionally.]]) |
437 | 437 | fi])]) |
438 | 438 | |
439 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
439 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
440 | 440 | # |
441 | 441 | # This file is free software; the Free Software Foundation |
442 | 442 | # gives unlimited permission to copy and/or distribute it, |
627 | 627 | |
628 | 628 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
629 | 629 | |
630 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
630 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
631 | 631 | # |
632 | 632 | # This file is free software; the Free Software Foundation |
633 | 633 | # gives unlimited permission to copy and/or distribute it, |
703 | 703 | |
704 | 704 | # Do all the work for Automake. -*- Autoconf -*- |
705 | 705 | |
706 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
706 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
707 | 707 | # |
708 | 708 | # This file is free software; the Free Software Foundation |
709 | 709 | # gives unlimited permission to copy and/or distribute it, |
900 | 900 | done |
901 | 901 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
902 | 902 | |
903 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
903 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
904 | 904 | # |
905 | 905 | # This file is free software; the Free Software Foundation |
906 | 906 | # gives unlimited permission to copy and/or distribute it, |
921 | 921 | fi |
922 | 922 | AC_SUBST([install_sh])]) |
923 | 923 | |
924 | # Copyright (C) 2003-2014 Free Software Foundation, Inc. | |
924 | # Copyright (C) 2003-2017 Free Software Foundation, Inc. | |
925 | 925 | # |
926 | 926 | # This file is free software; the Free Software Foundation |
927 | 927 | # gives unlimited permission to copy and/or distribute it, |
942 | 942 | |
943 | 943 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
944 | 944 | |
945 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
945 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
946 | 946 | # |
947 | 947 | # This file is free software; the Free Software Foundation |
948 | 948 | # gives unlimited permission to copy and/or distribute it, |
992 | 992 | |
993 | 993 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
994 | 994 | |
995 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
995 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
996 | 996 | # |
997 | 997 | # This file is free software; the Free Software Foundation |
998 | 998 | # gives unlimited permission to copy and/or distribute it, |
1031 | 1031 | |
1032 | 1032 | # Helper functions for option handling. -*- Autoconf -*- |
1033 | 1033 | |
1034 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1034 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
1035 | 1035 | # |
1036 | 1036 | # This file is free software; the Free Software Foundation |
1037 | 1037 | # gives unlimited permission to copy and/or distribute it, |
1060 | 1060 | AC_DEFUN([_AM_IF_OPTION], |
1061 | 1061 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
1062 | 1062 | |
1063 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
1063 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
1064 | 1064 | # |
1065 | 1065 | # This file is free software; the Free Software Foundation |
1066 | 1066 | # gives unlimited permission to copy and/or distribute it, |
1107 | 1107 | # For backward compatibility. |
1108 | 1108 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
1109 | 1109 | |
1110 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1110 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
1111 | 1111 | # |
1112 | 1112 | # This file is free software; the Free Software Foundation |
1113 | 1113 | # gives unlimited permission to copy and/or distribute it, |
1126 | 1126 | |
1127 | 1127 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1128 | 1128 | |
1129 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
1129 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
1130 | 1130 | # |
1131 | 1131 | # This file is free software; the Free Software Foundation |
1132 | 1132 | # gives unlimited permission to copy and/or distribute it, |
1207 | 1207 | rm -f conftest.file |
1208 | 1208 | ]) |
1209 | 1209 | |
1210 | # Copyright (C) 2009-2014 Free Software Foundation, Inc. | |
1210 | # Copyright (C) 2009-2017 Free Software Foundation, Inc. | |
1211 | 1211 | # |
1212 | 1212 | # This file is free software; the Free Software Foundation |
1213 | 1213 | # gives unlimited permission to copy and/or distribute it, |
1267 | 1267 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1268 | 1268 | ]) |
1269 | 1269 | |
1270 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1270 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
1271 | 1271 | # |
1272 | 1272 | # This file is free software; the Free Software Foundation |
1273 | 1273 | # gives unlimited permission to copy and/or distribute it, |
1295 | 1295 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1296 | 1296 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1297 | 1297 | |
1298 | # Copyright (C) 2006-2014 Free Software Foundation, Inc. | |
1298 | # Copyright (C) 2006-2017 Free Software Foundation, Inc. | |
1299 | 1299 | # |
1300 | 1300 | # This file is free software; the Free Software Foundation |
1301 | 1301 | # gives unlimited permission to copy and/or distribute it, |
1314 | 1314 | |
1315 | 1315 | # Check how to create a tarball. -*- Autoconf -*- |
1316 | 1316 | |
1317 | # Copyright (C) 2004-2014 Free Software Foundation, Inc. | |
1317 | # Copyright (C) 2004-2017 Free Software Foundation, Inc. | |
1318 | 1318 | # |
1319 | 1319 | # This file is free software; the Free Software Foundation |
1320 | 1320 | # gives unlimited permission to copy and/or distribute it, |
0 | 0 | #! /bin/sh |
1 | 1 | # 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' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
26 | 26 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
27 | 27 | # |
28 | 28 | # You can get the latest version of this script from: |
29 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
30 | 30 | # |
31 | 31 | # Please send patches to <config-patches@gnu.org>. |
32 | 32 | |
38 | 38 | |
39 | 39 | Output the configuration name of the system \`$me' is run on. |
40 | 40 | |
41 | Operation modes: | |
41 | Options: | |
42 | 42 | -h, --help print this help, then exit |
43 | 43 | -t, --time-stamp print date of last modification, then exit |
44 | 44 | -v, --version print version number, then exit |
49 | 49 | GNU config.guess ($timestamp) |
50 | 50 | |
51 | 51 | Originally written by Per Bothner. |
52 | Copyright 1992-2015 Free Software Foundation, Inc. | |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
53 | 53 | |
54 | 54 | This is free software; see the source for copying conditions. There is NO |
55 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
106 | 106 | dummy=$tmp/dummy ; |
107 | 107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
108 | 108 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
109 | ,,) echo "int x;" > $dummy.c ; | |
109 | ,,) echo "int x;" > "$dummy.c" ; | |
110 | 110 | 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 | |
112 | 112 | CC_FOR_BUILD="$c"; break ; |
113 | 113 | fi ; |
114 | 114 | done ; |
131 | 131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
132 | 132 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | 133 | |
134 | case "${UNAME_SYSTEM}" in | |
134 | case "$UNAME_SYSTEM" in | |
135 | 135 | Linux|GNU|GNU/*) |
136 | 136 | # If the system lacks a compiler, then just pick glibc. |
137 | 137 | # We could probably try harder. |
138 | 138 | LIBC=gnu |
139 | 139 | |
140 | eval $set_cc_for_build | |
141 | cat <<-EOF > $dummy.c | |
140 | eval "$set_cc_for_build" | |
141 | cat <<-EOF > "$dummy.c" | |
142 | 142 | #include <features.h> |
143 | 143 | #if defined(__UCLIBC__) |
144 | 144 | LIBC=uclibc |
148 | 148 | LIBC=gnu |
149 | 149 | #endif |
150 | 150 | 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 | |
152 | 159 | ;; |
153 | 160 | esac |
154 | 161 | |
155 | 162 | # Note: order is significant - the case branches are not exclusive. |
156 | 163 | |
157 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
164 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
158 | 165 | *:NetBSD:*:*) |
159 | 166 | # NetBSD (nbsd) targets should (where applicable) match one or |
160 | 167 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
168 | 175 | # portion of the name. We always set it to "unknown". |
169 | 176 | sysctl="sysctl -n hw.machine_arch" |
170 | 177 | 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 || \ | |
173 | 180 | echo unknown)` |
174 | case "${UNAME_MACHINE_ARCH}" in | |
181 | case "$UNAME_MACHINE_ARCH" in | |
175 | 182 | armeb) machine=armeb-unknown ;; |
176 | 183 | arm*) machine=arm-unknown ;; |
177 | 184 | sh3el) machine=shl-unknown ;; |
178 | 185 | sh3eb) machine=sh-unknown ;; |
179 | 186 | sh5el) machine=sh5le-unknown ;; |
180 | 187 | 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 | |
184 | 191 | ;; |
185 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
192 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
186 | 193 | esac |
187 | 194 | # 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" | |
192 | 202 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
193 | 203 | | grep -q __ELF__ |
194 | 204 | then |
204 | 214 | ;; |
205 | 215 | esac |
206 | 216 | # Determine ABI tags. |
207 | case "${UNAME_MACHINE_ARCH}" in | |
217 | case "$UNAME_MACHINE_ARCH" in | |
208 | 218 | earm*) |
209 | 219 | 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"` | |
211 | 221 | ;; |
212 | 222 | esac |
213 | 223 | # The OS release |
215 | 225 | # thus, need a distinct triplet. However, they do not need |
216 | 226 | # kernel version information, so it can be replaced with a |
217 | 227 | # suitable tag, in the style of linux-gnu. |
218 | case "${UNAME_VERSION}" in | |
228 | case "$UNAME_VERSION" in | |
219 | 229 | Debian*) |
220 | 230 | release='-gnu' |
221 | 231 | ;; |
222 | 232 | *) |
223 | release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
233 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
224 | 234 | ;; |
225 | 235 | esac |
226 | 236 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
227 | 237 | # contains redundant information, the shorter form: |
228 | 238 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
229 | echo "${machine}-${os}${release}${abi}" | |
239 | echo "$machine-${os}${release}${abi}" | |
230 | 240 | exit ;; |
231 | 241 | *:Bitrig:*:*) |
232 | 242 | 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" | |
234 | 244 | exit ;; |
235 | 245 | *:OpenBSD:*:*) |
236 | 246 | 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" | |
238 | 255 | exit ;; |
239 | 256 | *:ekkoBSD:*:*) |
240 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
257 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
241 | 258 | exit ;; |
242 | 259 | *:SolidBSD:*:*) |
243 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
260 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
244 | 261 | exit ;; |
245 | 262 | macppc:MirBSD:*:*) |
246 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
263 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
247 | 264 | exit ;; |
248 | 265 | *:MirBSD:*:*) |
249 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
266 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
250 | 267 | exit ;; |
251 | 268 | *: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 ;; | |
254 | 277 | alpha:OSF1:*:*) |
255 | 278 | case $UNAME_RELEASE in |
256 | 279 | *4.0) |
267 | 290 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
268 | 291 | case "$ALPHA_CPU_TYPE" in |
269 | 292 | "EV4 (21064)") |
270 | UNAME_MACHINE="alpha" ;; | |
293 | UNAME_MACHINE=alpha ;; | |
271 | 294 | "EV4.5 (21064)") |
272 | UNAME_MACHINE="alpha" ;; | |
295 | UNAME_MACHINE=alpha ;; | |
273 | 296 | "LCA4 (21066/21068)") |
274 | UNAME_MACHINE="alpha" ;; | |
297 | UNAME_MACHINE=alpha ;; | |
275 | 298 | "EV5 (21164)") |
276 | UNAME_MACHINE="alphaev5" ;; | |
299 | UNAME_MACHINE=alphaev5 ;; | |
277 | 300 | "EV5.6 (21164A)") |
278 | UNAME_MACHINE="alphaev56" ;; | |
301 | UNAME_MACHINE=alphaev56 ;; | |
279 | 302 | "EV5.6 (21164PC)") |
280 | UNAME_MACHINE="alphapca56" ;; | |
303 | UNAME_MACHINE=alphapca56 ;; | |
281 | 304 | "EV5.7 (21164PC)") |
282 | UNAME_MACHINE="alphapca57" ;; | |
305 | UNAME_MACHINE=alphapca57 ;; | |
283 | 306 | "EV6 (21264)") |
284 | UNAME_MACHINE="alphaev6" ;; | |
307 | UNAME_MACHINE=alphaev6 ;; | |
285 | 308 | "EV6.7 (21264A)") |
286 | UNAME_MACHINE="alphaev67" ;; | |
309 | UNAME_MACHINE=alphaev67 ;; | |
287 | 310 | "EV6.8CB (21264C)") |
288 | UNAME_MACHINE="alphaev68" ;; | |
311 | UNAME_MACHINE=alphaev68 ;; | |
289 | 312 | "EV6.8AL (21264B)") |
290 | UNAME_MACHINE="alphaev68" ;; | |
313 | UNAME_MACHINE=alphaev68 ;; | |
291 | 314 | "EV6.8CX (21264D)") |
292 | UNAME_MACHINE="alphaev68" ;; | |
315 | UNAME_MACHINE=alphaev68 ;; | |
293 | 316 | "EV6.9A (21264/EV69A)") |
294 | UNAME_MACHINE="alphaev69" ;; | |
317 | UNAME_MACHINE=alphaev69 ;; | |
295 | 318 | "EV7 (21364)") |
296 | UNAME_MACHINE="alphaev7" ;; | |
319 | UNAME_MACHINE=alphaev7 ;; | |
297 | 320 | "EV7.9 (21364A)") |
298 | UNAME_MACHINE="alphaev79" ;; | |
321 | UNAME_MACHINE=alphaev79 ;; | |
299 | 322 | esac |
300 | 323 | # A Pn.n version is a patched version. |
301 | 324 | # A Vn.n version is a released version. |
302 | 325 | # A Tn.n version is a released field test version. |
303 | 326 | # A Xn.n version is an unreleased experimental baselevel. |
304 | 327 | # 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`" | |
306 | 329 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
307 | 330 | exitcode=$? |
308 | 331 | trap '' 0 |
309 | 332 | exit $exitcode ;; |
310 | Alpha\ *:Windows_NT*:*) | |
311 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
312 | # Should we change UNAME_MACHINE based on the output of uname instead | |
313 | # of the specific Alpha model? | |
314 | echo alpha-pc-interix | |
315 | exit ;; | |
316 | 21064:Windows_NT:50:3) | |
317 | echo alpha-dec-winnt3.5 | |
318 | exit ;; | |
319 | 333 | Amiga*:UNIX_System_V:4.0:*) |
320 | 334 | echo m68k-unknown-sysv4 |
321 | 335 | exit ;; |
322 | 336 | *:[Aa]miga[Oo][Ss]:*:*) |
323 | echo ${UNAME_MACHINE}-unknown-amigaos | |
337 | echo "$UNAME_MACHINE"-unknown-amigaos | |
324 | 338 | exit ;; |
325 | 339 | *:[Mm]orph[Oo][Ss]:*:*) |
326 | echo ${UNAME_MACHINE}-unknown-morphos | |
340 | echo "$UNAME_MACHINE"-unknown-morphos | |
327 | 341 | exit ;; |
328 | 342 | *:OS/390:*:*) |
329 | 343 | echo i370-ibm-openedition |
335 | 349 | echo powerpc-ibm-os400 |
336 | 350 | exit ;; |
337 | 351 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
338 | echo arm-acorn-riscix${UNAME_RELEASE} | |
352 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
339 | 353 | exit ;; |
340 | 354 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
341 | 355 | echo arm-unknown-riscos |
362 | 376 | sparc) echo sparc-icl-nx7; exit ;; |
363 | 377 | esac ;; |
364 | 378 | 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/[^.]*//'`" | |
366 | 380 | exit ;; |
367 | 381 | 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/[^.]*//'`" | |
369 | 383 | exit ;; |
370 | 384 | 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/[^.]*//'`" | |
372 | 386 | exit ;; |
373 | 387 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
374 | echo i386-pc-auroraux${UNAME_RELEASE} | |
388 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
375 | 389 | exit ;; |
376 | 390 | 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 | |
379 | 393 | # If there is a compiler, see if it is configured for 64-bit objects. |
380 | 394 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
381 | 395 | # This test works for both compilers. |
382 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
396 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
383 | 397 | 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) | \ | |
385 | 399 | grep IS_64BIT_ARCH >/dev/null |
386 | 400 | then |
387 | SUN_ARCH="x86_64" | |
401 | SUN_ARCH=x86_64 | |
388 | 402 | fi |
389 | 403 | 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/[^.]*//'`" | |
391 | 405 | exit ;; |
392 | 406 | sun4*:SunOS:6*:*) |
393 | 407 | # According to config.sub, this is the proper way to canonicalize |
394 | 408 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
395 | 409 | # 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/[^.]*//'`" | |
397 | 411 | exit ;; |
398 | 412 | sun4*:SunOS:*:*) |
399 | 413 | case "`/usr/bin/arch -k`" in |
402 | 416 | ;; |
403 | 417 | esac |
404 | 418 | # 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/-/_/'`" | |
406 | 420 | exit ;; |
407 | 421 | sun3*:SunOS:*:*) |
408 | echo m68k-sun-sunos${UNAME_RELEASE} | |
422 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
409 | 423 | exit ;; |
410 | 424 | sun*:*:4.2BSD:*) |
411 | 425 | 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 | |
413 | 427 | case "`/bin/arch`" in |
414 | 428 | sun3) |
415 | echo m68k-sun-sunos${UNAME_RELEASE} | |
429 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
416 | 430 | ;; |
417 | 431 | sun4) |
418 | echo sparc-sun-sunos${UNAME_RELEASE} | |
432 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
419 | 433 | ;; |
420 | 434 | esac |
421 | 435 | exit ;; |
422 | 436 | aushp:SunOS:*:*) |
423 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
437 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
424 | 438 | exit ;; |
425 | 439 | # The situation for MiNT is a little confusing. The machine name |
426 | 440 | # can be virtually everything (everything which is not |
431 | 445 | # MiNT. But MiNT is downward compatible to TOS, so this should |
432 | 446 | # be no problem. |
433 | 447 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
434 | echo m68k-atari-mint${UNAME_RELEASE} | |
448 | echo m68k-atari-mint"$UNAME_RELEASE" | |
435 | 449 | exit ;; |
436 | 450 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
437 | echo m68k-atari-mint${UNAME_RELEASE} | |
451 | echo m68k-atari-mint"$UNAME_RELEASE" | |
438 | 452 | exit ;; |
439 | 453 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
440 | echo m68k-atari-mint${UNAME_RELEASE} | |
454 | echo m68k-atari-mint"$UNAME_RELEASE" | |
441 | 455 | exit ;; |
442 | 456 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
443 | echo m68k-milan-mint${UNAME_RELEASE} | |
457 | echo m68k-milan-mint"$UNAME_RELEASE" | |
444 | 458 | exit ;; |
445 | 459 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
446 | echo m68k-hades-mint${UNAME_RELEASE} | |
460 | echo m68k-hades-mint"$UNAME_RELEASE" | |
447 | 461 | exit ;; |
448 | 462 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
449 | echo m68k-unknown-mint${UNAME_RELEASE} | |
463 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
450 | 464 | exit ;; |
451 | 465 | m68k:machten:*:*) |
452 | echo m68k-apple-machten${UNAME_RELEASE} | |
466 | echo m68k-apple-machten"$UNAME_RELEASE" | |
453 | 467 | exit ;; |
454 | 468 | powerpc:machten:*:*) |
455 | echo powerpc-apple-machten${UNAME_RELEASE} | |
469 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
456 | 470 | exit ;; |
457 | 471 | RISC*:Mach:*:*) |
458 | 472 | echo mips-dec-mach_bsd4.3 |
459 | 473 | exit ;; |
460 | 474 | RISC*:ULTRIX:*:*) |
461 | echo mips-dec-ultrix${UNAME_RELEASE} | |
475 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
462 | 476 | exit ;; |
463 | 477 | VAX*:ULTRIX*:*:*) |
464 | echo vax-dec-ultrix${UNAME_RELEASE} | |
478 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
465 | 479 | exit ;; |
466 | 480 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
467 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
481 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
468 | 482 | exit ;; |
469 | 483 | 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" | |
472 | 486 | #ifdef __cplusplus |
473 | 487 | #include <stdio.h> /* for printf() prototype */ |
474 | 488 | int main (int argc, char *argv[]) { |
477 | 491 | #endif |
478 | 492 | #if defined (host_mips) && defined (MIPSEB) |
479 | 493 | #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); | |
481 | 495 | #endif |
482 | 496 | #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); | |
484 | 498 | #endif |
485 | 499 | #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); | |
487 | 501 | #endif |
488 | 502 | #endif |
489 | 503 | exit (-1); |
490 | 504 | } |
491 | 505 | 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"` && | |
495 | 509 | { echo "$SYSTEM_NAME"; exit; } |
496 | echo mips-mips-riscos${UNAME_RELEASE} | |
510 | echo mips-mips-riscos"$UNAME_RELEASE" | |
497 | 511 | exit ;; |
498 | 512 | Motorola:PowerMAX_OS:*:*) |
499 | 513 | echo powerpc-motorola-powermax |
519 | 533 | AViiON:dgux:*:*) |
520 | 534 | # DG/UX returns AViiON for all architectures |
521 | 535 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
522 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
536 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
523 | 537 | 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 ] | |
526 | 540 | then |
527 | echo m88k-dg-dgux${UNAME_RELEASE} | |
541 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
528 | 542 | else |
529 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
543 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
530 | 544 | fi |
531 | 545 | else |
532 | echo i586-dg-dgux${UNAME_RELEASE} | |
546 | echo i586-dg-dgux"$UNAME_RELEASE" | |
533 | 547 | fi |
534 | 548 | exit ;; |
535 | 549 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
546 | 560 | echo m68k-tektronix-bsd |
547 | 561 | exit ;; |
548 | 562 | *: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'`" | |
550 | 564 | exit ;; |
551 | 565 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
552 | 566 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
558 | 572 | if [ -x /usr/bin/oslevel ] ; then |
559 | 573 | IBM_REV=`/usr/bin/oslevel` |
560 | 574 | 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" | |
564 | 578 | exit ;; |
565 | 579 | *:AIX:2:3) |
566 | 580 | 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" | |
569 | 583 | #include <sys/systemcfg.h> |
570 | 584 | |
571 | 585 | main() |
576 | 590 | exit(0); |
577 | 591 | } |
578 | 592 | 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"` | |
580 | 594 | then |
581 | 595 | echo "$SYSTEM_NAME" |
582 | 596 | else |
590 | 604 | exit ;; |
591 | 605 | *:AIX:*:[4567]) |
592 | 606 | 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 | |
594 | 608 | IBM_ARCH=rs6000 |
595 | 609 | else |
596 | 610 | IBM_ARCH=powerpc |
599 | 613 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | |
600 | 614 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
601 | 615 | 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" | |
605 | 619 | exit ;; |
606 | 620 | *:AIX:*:*) |
607 | 621 | echo rs6000-ibm-aix |
608 | 622 | exit ;; |
609 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
623 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
610 | 624 | echo romp-ibm-bsd4.4 |
611 | 625 | exit ;; |
612 | 626 | 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 | |
614 | 628 | exit ;; # report: romp-ibm BSD 4.3 |
615 | 629 | *:BOSX:*:*) |
616 | 630 | echo rs6000-bull-bosx |
625 | 639 | echo m68k-hp-bsd4.4 |
626 | 640 | exit ;; |
627 | 641 | 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 ;; | |
632 | 646 | 9000/[678][0-9][0-9]) |
633 | 647 | if [ -x /usr/bin/getconf ]; then |
634 | 648 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
635 | 649 | 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 | |
639 | 653 | 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 | |
644 | 658 | esac ;; |
645 | 659 | esac |
646 | 660 | 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" | |
650 | 664 | |
651 | 665 | #define _HPUX_SOURCE |
652 | 666 | #include <stdlib.h> |
679 | 693 | exit (0); |
680 | 694 | } |
681 | 695 | 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"` | |
683 | 697 | test -z "$HP_ARCH" && HP_ARCH=hppa |
684 | 698 | fi ;; |
685 | 699 | esac |
686 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
700 | if [ "$HP_ARCH" = hppa2.0w ] | |
687 | 701 | then |
688 | eval $set_cc_for_build | |
702 | eval "$set_cc_for_build" | |
689 | 703 | |
690 | 704 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
691 | 705 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
696 | 710 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
697 | 711 | # => hppa64-hp-hpux11.23 |
698 | 712 | |
699 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
713 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
700 | 714 | grep -q __LP64__ |
701 | 715 | then |
702 | HP_ARCH="hppa2.0w" | |
716 | HP_ARCH=hppa2.0w | |
703 | 717 | else |
704 | HP_ARCH="hppa64" | |
718 | HP_ARCH=hppa64 | |
705 | 719 | fi |
706 | 720 | fi |
707 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
721 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
708 | 722 | exit ;; |
709 | 723 | 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" | |
712 | 726 | exit ;; |
713 | 727 | 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" | |
716 | 730 | #include <unistd.h> |
717 | 731 | int |
718 | 732 | main () |
737 | 751 | exit (0); |
738 | 752 | } |
739 | 753 | EOF |
740 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
754 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
741 | 755 | { echo "$SYSTEM_NAME"; exit; } |
742 | 756 | echo unknown-hitachi-hiuxwe2 |
743 | 757 | exit ;; |
744 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
758 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
745 | 759 | echo hppa1.1-hp-bsd |
746 | 760 | exit ;; |
747 | 761 | 9000/8??:4.3bsd:*:*) |
750 | 764 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
751 | 765 | echo hppa1.0-hp-mpeix |
752 | 766 | exit ;; |
753 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
767 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
754 | 768 | echo hppa1.1-hp-osf |
755 | 769 | exit ;; |
756 | 770 | hp8??:OSF1:*:*) |
758 | 772 | exit ;; |
759 | 773 | i*86:OSF1:*:*) |
760 | 774 | if [ -x /usr/sbin/sysversion ] ; then |
761 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
775 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
762 | 776 | else |
763 | echo ${UNAME_MACHINE}-unknown-osf1 | |
777 | echo "$UNAME_MACHINE"-unknown-osf1 | |
764 | 778 | fi |
765 | 779 | exit ;; |
766 | 780 | parisc*:Lites*:*:*) |
785 | 799 | echo c4-convex-bsd |
786 | 800 | exit ;; |
787 | 801 | 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/' | |
789 | 803 | exit ;; |
790 | 804 | CRAY*[A-Z]90:*:*:*) |
791 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
805 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
792 | 806 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
793 | 807 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
794 | 808 | -e 's/\.[^.]*$/.X/' |
795 | 809 | exit ;; |
796 | 810 | CRAY*TS:*:*:*) |
797 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
811 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
798 | 812 | exit ;; |
799 | 813 | CRAY*T3E:*:*:*) |
800 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
814 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
801 | 815 | exit ;; |
802 | 816 | CRAY*SV1:*:*:*) |
803 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
817 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
804 | 818 | exit ;; |
805 | 819 | *:UNICOS/mp:*:*) |
806 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
820 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
807 | 821 | exit ;; |
808 | 822 | 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/ /_/'` | |
812 | 826 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
813 | 827 | exit ;; |
814 | 828 | 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/ /_/'` | |
817 | 831 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
818 | 832 | exit ;; |
819 | 833 | 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" | |
821 | 835 | exit ;; |
822 | 836 | sparc*:BSD/OS:*:*) |
823 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
837 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
824 | 838 | exit ;; |
825 | 839 | *:BSD/OS:*:*) |
826 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
840 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
827 | 841 | exit ;; |
828 | 842 | *:FreeBSD:*:*) |
829 | 843 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
830 | case ${UNAME_PROCESSOR} in | |
844 | case "$UNAME_PROCESSOR" in | |
831 | 845 | 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 ;; | |
835 | 849 | esac |
850 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
836 | 851 | exit ;; |
837 | 852 | i*:CYGWIN*:*) |
838 | echo ${UNAME_MACHINE}-pc-cygwin | |
853 | echo "$UNAME_MACHINE"-pc-cygwin | |
839 | 854 | exit ;; |
840 | 855 | *:MINGW64*:*) |
841 | echo ${UNAME_MACHINE}-pc-mingw64 | |
856 | echo "$UNAME_MACHINE"-pc-mingw64 | |
842 | 857 | exit ;; |
843 | 858 | *:MINGW*:*) |
844 | echo ${UNAME_MACHINE}-pc-mingw32 | |
859 | echo "$UNAME_MACHINE"-pc-mingw32 | |
845 | 860 | exit ;; |
846 | 861 | *: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 | |
852 | 863 | exit ;; |
853 | 864 | i*:PW*:*) |
854 | echo ${UNAME_MACHINE}-pc-pw32 | |
865 | echo "$UNAME_MACHINE"-pc-pw32 | |
855 | 866 | exit ;; |
856 | 867 | *:Interix*:*) |
857 | case ${UNAME_MACHINE} in | |
868 | case "$UNAME_MACHINE" in | |
858 | 869 | x86) |
859 | echo i586-pc-interix${UNAME_RELEASE} | |
870 | echo i586-pc-interix"$UNAME_RELEASE" | |
860 | 871 | exit ;; |
861 | 872 | authenticamd | genuineintel | EM64T) |
862 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
873 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
863 | 874 | exit ;; |
864 | 875 | IA64) |
865 | echo ia64-unknown-interix${UNAME_RELEASE} | |
876 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
866 | 877 | exit ;; |
867 | 878 | esac ;; |
868 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
869 | echo i${UNAME_MACHINE}-pc-mks | |
870 | exit ;; | |
871 | 8664:Windows_NT:*) | |
872 | echo x86_64-pc-mks | |
873 | exit ;; | |
874 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
875 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
876 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
877 | # UNAME_MACHINE based on the output of uname instead of i386? | |
878 | echo i586-pc-interix | |
879 | exit ;; | |
880 | 879 | i*:UWIN*:*) |
881 | echo ${UNAME_MACHINE}-pc-uwin | |
880 | echo "$UNAME_MACHINE"-pc-uwin | |
882 | 881 | exit ;; |
883 | 882 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
884 | 883 | echo x86_64-unknown-cygwin |
885 | 884 | exit ;; |
886 | p*:CYGWIN*:*) | |
887 | echo powerpcle-unknown-cygwin | |
888 | exit ;; | |
889 | 885 | 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/[^.]*//'`" | |
891 | 887 | exit ;; |
892 | 888 | *:GNU:*:*) |
893 | 889 | # 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,/.*$,,'`" | |
895 | 891 | exit ;; |
896 | 892 | *:GNU/*:*:*) |
897 | 893 | # 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" | |
899 | 895 | exit ;; |
900 | 896 | i*86:Minix:*:*) |
901 | echo ${UNAME_MACHINE}-pc-minix | |
897 | echo "$UNAME_MACHINE"-pc-minix | |
902 | 898 | exit ;; |
903 | 899 | aarch64:Linux:*:*) |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
900 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
905 | 901 | exit ;; |
906 | 902 | aarch64_be:Linux:*:*) |
907 | 903 | UNAME_MACHINE=aarch64_be |
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
904 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
909 | 905 | exit ;; |
910 | 906 | alpha:Linux:*:*) |
911 | 907 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
918 | 914 | EV68*) UNAME_MACHINE=alphaev68 ;; |
919 | 915 | esac |
920 | 916 | 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" | |
923 | 919 | exit ;; |
924 | 920 | arc:Linux:*:* | arceb:Linux:*:*) |
925 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
921 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
926 | 922 | exit ;; |
927 | 923 | arm*:Linux:*:*) |
928 | eval $set_cc_for_build | |
924 | eval "$set_cc_for_build" | |
929 | 925 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
930 | 926 | | grep -q __ARM_EABI__ |
931 | 927 | then |
932 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
928 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
933 | 929 | else |
934 | 930 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
935 | 931 | | grep -q __ARM_PCS_VFP |
936 | 932 | then |
937 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
933 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
938 | 934 | else |
939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
935 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
940 | 936 | fi |
941 | 937 | fi |
942 | 938 | exit ;; |
943 | 939 | avr32*:Linux:*:*) |
944 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
940 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
945 | 941 | exit ;; |
946 | 942 | cris:Linux:*:*) |
947 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
943 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
948 | 944 | exit ;; |
949 | 945 | crisv32:Linux:*:*) |
950 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
946 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
951 | 947 | exit ;; |
952 | 948 | e2k:Linux:*:*) |
953 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
954 | 950 | exit ;; |
955 | 951 | frv:Linux:*:*) |
956 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
952 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
957 | 953 | exit ;; |
958 | 954 | hexagon:Linux:*:*) |
959 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
955 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
960 | 956 | exit ;; |
961 | 957 | i*86:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
958 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
963 | 959 | exit ;; |
964 | 960 | 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" | |
966 | 965 | exit ;; |
967 | 966 | m32r*:Linux:*:*) |
968 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
967 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
969 | 968 | exit ;; |
970 | 969 | m68*:Linux:*:*) |
971 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
972 | 971 | exit ;; |
973 | 972 | 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" | |
976 | 975 | #undef CPU |
977 | 976 | #undef ${UNAME_MACHINE} |
978 | 977 | #undef ${UNAME_MACHINE}el |
986 | 985 | #endif |
987 | 986 | #endif |
988 | 987 | 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; } | |
991 | 990 | ;; |
991 | mips64el:Linux:*:*) | |
992 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
993 | exit ;; | |
992 | 994 | openrisc*:Linux:*:*) |
993 | echo or1k-unknown-linux-${LIBC} | |
995 | echo or1k-unknown-linux-"$LIBC" | |
994 | 996 | exit ;; |
995 | 997 | or32:Linux:*:* | or1k*:Linux:*:*) |
996 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
998 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
997 | 999 | exit ;; |
998 | 1000 | padre:Linux:*:*) |
999 | echo sparc-unknown-linux-${LIBC} | |
1001 | echo sparc-unknown-linux-"$LIBC" | |
1000 | 1002 | exit ;; |
1001 | 1003 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1002 | echo hppa64-unknown-linux-${LIBC} | |
1004 | echo hppa64-unknown-linux-"$LIBC" | |
1003 | 1005 | exit ;; |
1004 | 1006 | parisc:Linux:*:* | hppa:Linux:*:*) |
1005 | 1007 | # Look for CPU level |
1006 | 1008 | 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" ;; | |
1010 | 1012 | esac |
1011 | 1013 | exit ;; |
1012 | 1014 | ppc64:Linux:*:*) |
1013 | echo powerpc64-unknown-linux-${LIBC} | |
1015 | echo powerpc64-unknown-linux-"$LIBC" | |
1014 | 1016 | exit ;; |
1015 | 1017 | ppc:Linux:*:*) |
1016 | echo powerpc-unknown-linux-${LIBC} | |
1018 | echo powerpc-unknown-linux-"$LIBC" | |
1017 | 1019 | exit ;; |
1018 | 1020 | ppc64le:Linux:*:*) |
1019 | echo powerpc64le-unknown-linux-${LIBC} | |
1021 | echo powerpc64le-unknown-linux-"$LIBC" | |
1020 | 1022 | exit ;; |
1021 | 1023 | 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" | |
1023 | 1028 | exit ;; |
1024 | 1029 | s390:Linux:*:* | s390x:Linux:*:*) |
1025 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
1030 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
1026 | 1031 | exit ;; |
1027 | 1032 | sh64*:Linux:*:*) |
1028 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1033 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1029 | 1034 | exit ;; |
1030 | 1035 | sh*:Linux:*:*) |
1031 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1032 | 1037 | exit ;; |
1033 | 1038 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1034 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1039 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1035 | 1040 | exit ;; |
1036 | 1041 | tile*:Linux:*:*) |
1037 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1038 | 1043 | exit ;; |
1039 | 1044 | vax:Linux:*:*) |
1040 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
1045 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1041 | 1046 | exit ;; |
1042 | 1047 | 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 | |
1044 | 1053 | exit ;; |
1045 | 1054 | xtensa*:Linux:*:*) |
1046 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1055 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1047 | 1056 | exit ;; |
1048 | 1057 | i*86:DYNIX/ptx:4*:*) |
1049 | 1058 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1057 | 1066 | # I am not positive that other SVR4 systems won't match this, |
1058 | 1067 | # I just have to hope. -- rms. |
1059 | 1068 | # 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" | |
1061 | 1070 | exit ;; |
1062 | 1071 | i*86:OS/2:*:*) |
1063 | 1072 | # If we were able to find `uname', then EMX Unix compatibility |
1064 | 1073 | # is probably installed. |
1065 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1074 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1066 | 1075 | exit ;; |
1067 | 1076 | i*86:XTS-300:*:STOP) |
1068 | echo ${UNAME_MACHINE}-unknown-stop | |
1077 | echo "$UNAME_MACHINE"-unknown-stop | |
1069 | 1078 | exit ;; |
1070 | 1079 | i*86:atheos:*:*) |
1071 | echo ${UNAME_MACHINE}-unknown-atheos | |
1080 | echo "$UNAME_MACHINE"-unknown-atheos | |
1072 | 1081 | exit ;; |
1073 | 1082 | i*86:syllable:*:*) |
1074 | echo ${UNAME_MACHINE}-pc-syllable | |
1083 | echo "$UNAME_MACHINE"-pc-syllable | |
1075 | 1084 | exit ;; |
1076 | 1085 | 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" | |
1078 | 1087 | exit ;; |
1079 | 1088 | 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$//'` | |
1084 | 1093 | 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" | |
1086 | 1095 | else |
1087 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1096 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1088 | 1097 | fi |
1089 | 1098 | exit ;; |
1090 | 1099 | i*86:*:5:[678]*) |
1094 | 1103 | *Pentium) UNAME_MACHINE=i586 ;; |
1095 | 1104 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1096 | 1105 | 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}" | |
1098 | 1107 | exit ;; |
1099 | 1108 | i*86:*:3.2:*) |
1100 | 1109 | if test -f /usr/options/cb.name; then |
1101 | 1110 | 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" | |
1103 | 1112 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1104 | 1113 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1105 | 1114 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1109 | 1118 | && UNAME_MACHINE=i686 |
1110 | 1119 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1111 | 1120 | && UNAME_MACHINE=i686 |
1112 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1121 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1113 | 1122 | else |
1114 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1123 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1115 | 1124 | fi |
1116 | 1125 | exit ;; |
1117 | 1126 | pc:*:*:*) |
1119 | 1128 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1120 | 1129 | # the processor, so we play safe by assuming i586. |
1121 | 1130 | # 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 | |
1123 | 1132 | # this is a cross-build. |
1124 | 1133 | echo i586-pc-msdosdjgpp |
1125 | 1134 | exit ;; |
1131 | 1140 | exit ;; |
1132 | 1141 | i860:*:4.*:*) # i860-SVR4 |
1133 | 1142 | 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 | |
1135 | 1144 | 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 | |
1137 | 1146 | fi |
1138 | 1147 | exit ;; |
1139 | 1148 | mini*:CTIX:SYS*5:*) |
1153 | 1162 | test -r /etc/.relid \ |
1154 | 1163 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1155 | 1164 | /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; } | |
1157 | 1166 | /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; } ;; | |
1159 | 1168 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1160 | 1169 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1161 | 1170 | && { echo i486-ncr-sysv4; exit; } ;; |
1164 | 1173 | test -r /etc/.relid \ |
1165 | 1174 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1166 | 1175 | /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; } | |
1168 | 1177 | /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; } | |
1170 | 1179 | /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; } ;; | |
1172 | 1181 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1173 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1182 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1174 | 1183 | exit ;; |
1175 | 1184 | mc68030:UNIX_System_V:4.*:*) |
1176 | 1185 | echo m68k-atari-sysv4 |
1177 | 1186 | exit ;; |
1178 | 1187 | TSUNAMI:LynxOS:2.*:*) |
1179 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1188 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1180 | 1189 | exit ;; |
1181 | 1190 | rs6000:LynxOS:2.*:*) |
1182 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1191 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1183 | 1192 | exit ;; |
1184 | 1193 | 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" | |
1186 | 1195 | exit ;; |
1187 | 1196 | SM[BE]S:UNIX_SV:*:*) |
1188 | echo mips-dde-sysv${UNAME_RELEASE} | |
1197 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1189 | 1198 | exit ;; |
1190 | 1199 | RM*:ReliantUNIX-*:*:*) |
1191 | 1200 | echo mips-sni-sysv4 |
1196 | 1205 | *:SINIX-*:*:*) |
1197 | 1206 | if uname -p 2>/dev/null >/dev/null ; then |
1198 | 1207 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1199 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1208 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1200 | 1209 | else |
1201 | 1210 | echo ns32k-sni-sysv |
1202 | 1211 | fi |
1216 | 1225 | exit ;; |
1217 | 1226 | i*86:VOS:*:*) |
1218 | 1227 | # From Paul.Green@stratus.com. |
1219 | echo ${UNAME_MACHINE}-stratus-vos | |
1228 | echo "$UNAME_MACHINE"-stratus-vos | |
1220 | 1229 | exit ;; |
1221 | 1230 | *:VOS:*:*) |
1222 | 1231 | # From Paul.Green@stratus.com. |
1223 | 1232 | echo hppa1.1-stratus-vos |
1224 | 1233 | exit ;; |
1225 | 1234 | mc68*:A/UX:*:*) |
1226 | echo m68k-apple-aux${UNAME_RELEASE} | |
1235 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1227 | 1236 | exit ;; |
1228 | 1237 | news*:NEWS-OS:6*:*) |
1229 | 1238 | echo mips-sony-newsos6 |
1230 | 1239 | exit ;; |
1231 | 1240 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1232 | 1241 | if [ -d /usr/nec ]; then |
1233 | echo mips-nec-sysv${UNAME_RELEASE} | |
1242 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1234 | 1243 | else |
1235 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1244 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1236 | 1245 | fi |
1237 | 1246 | exit ;; |
1238 | 1247 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1251 | 1260 | echo x86_64-unknown-haiku |
1252 | 1261 | exit ;; |
1253 | 1262 | SX-4:SUPER-UX:*:*) |
1254 | echo sx4-nec-superux${UNAME_RELEASE} | |
1263 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1255 | 1264 | exit ;; |
1256 | 1265 | SX-5:SUPER-UX:*:*) |
1257 | echo sx5-nec-superux${UNAME_RELEASE} | |
1266 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1258 | 1267 | exit ;; |
1259 | 1268 | SX-6:SUPER-UX:*:*) |
1260 | echo sx6-nec-superux${UNAME_RELEASE} | |
1269 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1261 | 1270 | exit ;; |
1262 | 1271 | SX-7:SUPER-UX:*:*) |
1263 | echo sx7-nec-superux${UNAME_RELEASE} | |
1272 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1264 | 1273 | exit ;; |
1265 | 1274 | SX-8:SUPER-UX:*:*) |
1266 | echo sx8-nec-superux${UNAME_RELEASE} | |
1275 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1267 | 1276 | exit ;; |
1268 | 1277 | 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" | |
1270 | 1282 | exit ;; |
1271 | 1283 | Power*:Rhapsody:*:*) |
1272 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1284 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1273 | 1285 | exit ;; |
1274 | 1286 | *:Rhapsody:*:*) |
1275 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1287 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1276 | 1288 | exit ;; |
1277 | 1289 | *:Darwin:*:*) |
1278 | 1290 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1279 | eval $set_cc_for_build | |
1291 | eval "$set_cc_for_build" | |
1280 | 1292 | if test "$UNAME_PROCESSOR" = unknown ; then |
1281 | 1293 | UNAME_PROCESSOR=powerpc |
1282 | 1294 | 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 | |
1285 | 1297 | 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 | |
1288 | 1300 | then |
1289 | 1301 | case $UNAME_PROCESSOR in |
1290 | 1302 | i386) UNAME_PROCESSOR=x86_64 ;; |
1291 | 1303 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1292 | 1304 | 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 | |
1293 | 1312 | fi |
1294 | 1313 | fi |
1295 | 1314 | elif test "$UNAME_PROCESSOR" = i386 ; then |
1301 | 1320 | # that Apple uses in portable devices. |
1302 | 1321 | UNAME_PROCESSOR=x86_64 |
1303 | 1322 | fi |
1304 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1323 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1305 | 1324 | exit ;; |
1306 | 1325 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1307 | 1326 | UNAME_PROCESSOR=`uname -p` |
1308 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1327 | if test "$UNAME_PROCESSOR" = x86; then | |
1309 | 1328 | UNAME_PROCESSOR=i386 |
1310 | 1329 | UNAME_MACHINE=pc |
1311 | 1330 | fi |
1312 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1331 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1313 | 1332 | exit ;; |
1314 | 1333 | *:QNX:*:4*) |
1315 | 1334 | echo i386-pc-qnx |
1316 | 1335 | exit ;; |
1317 | NEO-?:NONSTOP_KERNEL:*:*) | |
1318 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1336 | NEO-*:NONSTOP_KERNEL:*:*) | |
1337 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1319 | 1338 | exit ;; |
1320 | 1339 | 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" | |
1325 | 1350 | exit ;; |
1326 | 1351 | *:NonStop-UX:*:*) |
1327 | 1352 | echo mips-compaq-nonstopux |
1330 | 1355 | echo bs2000-siemens-sysv |
1331 | 1356 | exit ;; |
1332 | 1357 | DS/*:UNIX_System_V:*:*) |
1333 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1358 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1334 | 1359 | exit ;; |
1335 | 1360 | *:Plan9:*:*) |
1336 | 1361 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1337 | 1362 | # is converted to i386 for consistency with other x86 |
1338 | 1363 | # operating systems. |
1339 | if test "$cputype" = "386"; then | |
1364 | if test "$cputype" = 386; then | |
1340 | 1365 | UNAME_MACHINE=i386 |
1341 | 1366 | else |
1342 | 1367 | UNAME_MACHINE="$cputype" |
1343 | 1368 | fi |
1344 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1369 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1345 | 1370 | exit ;; |
1346 | 1371 | *:TOPS-10:*:*) |
1347 | 1372 | echo pdp10-unknown-tops10 |
1362 | 1387 | echo pdp10-unknown-its |
1363 | 1388 | exit ;; |
1364 | 1389 | SEI:*:*:SEIUX) |
1365 | echo mips-sei-seiux${UNAME_RELEASE} | |
1390 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1366 | 1391 | exit ;; |
1367 | 1392 | *: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/[-(].*//'`" | |
1369 | 1394 | exit ;; |
1370 | 1395 | *:*VMS:*:*) |
1371 | 1396 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1372 | case "${UNAME_MACHINE}" in | |
1397 | case "$UNAME_MACHINE" in | |
1373 | 1398 | A*) echo alpha-dec-vms ; exit ;; |
1374 | 1399 | I*) echo ia64-dec-vms ; exit ;; |
1375 | 1400 | V*) echo vax-dec-vms ; exit ;; |
1378 | 1403 | echo i386-pc-xenix |
1379 | 1404 | exit ;; |
1380 | 1405 | 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/ .*$//'`" | |
1382 | 1407 | exit ;; |
1383 | 1408 | i*86:rdos:*:*) |
1384 | echo ${UNAME_MACHINE}-pc-rdos | |
1409 | echo "$UNAME_MACHINE"-pc-rdos | |
1385 | 1410 | exit ;; |
1386 | 1411 | i*86:AROS:*:*) |
1387 | echo ${UNAME_MACHINE}-pc-aros | |
1412 | echo "$UNAME_MACHINE"-pc-aros | |
1388 | 1413 | exit ;; |
1389 | 1414 | 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 | |
1391 | 1419 | exit ;; |
1392 | 1420 | esac |
1393 | 1421 | |
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 | ||
1394 | 1435 | 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 | |
1402 | 1442 | 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. | |
1409 | 1448 | |
1410 | 1449 | config.guess timestamp = $timestamp |
1411 | 1450 | |
1424 | 1463 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1425 | 1464 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1426 | 1465 | |
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" | |
1431 | 1470 | EOF |
1432 | 1471 | |
1433 | 1472 | exit 1 |
1434 | 1473 | |
1435 | 1474 | # Local variables: |
1436 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1475 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1437 | 1476 | # time-stamp-start: "timestamp='" |
1438 | 1477 | # time-stamp-format: "%:y-%02m-%02d" |
1439 | 1478 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # 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' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
32 | 32 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | 33 | |
34 | 34 | # You can get the latest version of this script from: |
35 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
36 | 36 | |
37 | 37 | # This file is supposed to be the same for all GNU packages |
38 | 38 | # and recognize all the CPU types, system types and aliases |
52 | 52 | me=`echo "$0" | sed -e 's,.*/,,'` |
53 | 53 | |
54 | 54 | usage="\ |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS | |
56 | $0 [OPTION] ALIAS | |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
57 | 56 | |
58 | 57 | Canonicalize a configuration name. |
59 | 58 | |
60 | Operation modes: | |
59 | Options: | |
61 | 60 | -h, --help print this help, then exit |
62 | 61 | -t, --time-stamp print date of last modification, then exit |
63 | 62 | -v, --version print version number, then exit |
67 | 66 | version="\ |
68 | 67 | GNU config.sub ($timestamp) |
69 | 68 | |
70 | Copyright 1992-2015 Free Software Foundation, Inc. | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
71 | 70 | |
72 | 71 | This is free software; see the source for copying conditions. There is NO |
73 | 72 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
94 | 93 | |
95 | 94 | *local*) |
96 | 95 | # First pass through any local machine types. |
97 | echo $1 | |
96 | echo "$1" | |
98 | 97 | exit ;; |
99 | 98 | |
100 | 99 | * ) |
112 | 111 | |
113 | 112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
114 | 113 | # 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/'` | |
116 | 115 | case $maybe_os in |
117 | 116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
118 | 117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
119 | 118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
120 | kopensolaris*-gnu* | \ | |
119 | kopensolaris*-gnu* | cloudabi*-eabi* | \ | |
121 | 120 | storm-chaos* | os2-emx* | rtmk-nova*) |
122 | 121 | os=-$maybe_os |
123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
122 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
124 | 123 | ;; |
125 | 124 | android-linux) |
126 | 125 | os=-linux-android |
127 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
126 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
128 | 127 | ;; |
129 | 128 | *) |
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/.*-/-/'` | |
133 | 132 | else os=; fi |
134 | 133 | ;; |
135 | 134 | esac |
178 | 177 | ;; |
179 | 178 | -sco6) |
180 | 179 | os=-sco5v6 |
181 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
180 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
182 | 181 | ;; |
183 | 182 | -sco5) |
184 | 183 | 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/'` | |
186 | 185 | ;; |
187 | 186 | -sco4) |
188 | 187 | 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/'` | |
190 | 189 | ;; |
191 | 190 | -sco3.2.[4-9]*) |
192 | 191 | 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/'` | |
194 | 193 | ;; |
195 | 194 | -sco3.2v[4-9]*) |
196 | 195 | # 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/'` | |
198 | 197 | ;; |
199 | 198 | -sco5v6*) |
200 | 199 | # 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/'` | |
202 | 201 | ;; |
203 | 202 | -sco*) |
204 | 203 | 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/'` | |
206 | 205 | ;; |
207 | 206 | -udk*) |
208 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
207 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
209 | 208 | ;; |
210 | 209 | -isc) |
211 | 210 | 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/'` | |
213 | 212 | ;; |
214 | 213 | -clix*) |
215 | 214 | basic_machine=clipper-intergraph |
216 | 215 | ;; |
217 | 216 | -isc*) |
218 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
219 | 218 | ;; |
220 | 219 | -lynx*178) |
221 | 220 | os=-lynxos178 |
227 | 226 | os=-lynxos |
228 | 227 | ;; |
229 | 228 | -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/'` | |
234 | 230 | ;; |
235 | 231 | -psos*) |
236 | 232 | os=-psos |
263 | 259 | | fido | fr30 | frv | ft32 \ |
264 | 260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
265 | 261 | | hexagon \ |
266 | | i370 | i860 | i960 | ia64 \ | |
262 | | i370 | i860 | i960 | ia16 | ia64 \ | |
267 | 263 | | ip2k | iq2000 \ |
268 | 264 | | k1om \ |
269 | 265 | | le32 | le64 \ |
299 | 295 | | nios | nios2 | nios2eb | nios2el \ |
300 | 296 | | ns16k | ns32k \ |
301 | 297 | | open8 | or1k | or1knd | or32 \ |
302 | | pdp10 | pdp11 | pj | pjl \ | |
298 | | pdp10 | pj | pjl \ | |
303 | 299 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
300 | | pru \ | |
304 | 301 | | pyramid \ |
305 | 302 | | riscv32 | riscv64 \ |
306 | 303 | | rl78 | rx \ |
314 | 311 | | ubicom32 \ |
315 | 312 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
316 | 313 | | visium \ |
317 | | we32k \ | |
314 | | wasm32 \ | |
318 | 315 | | x86 | xc16x | xstormy16 | xtensa \ |
319 | 316 | | z8k | z80) |
320 | 317 | basic_machine=$basic_machine-unknown |
335 | 332 | basic_machine=$basic_machine-unknown |
336 | 333 | os=-none |
337 | 334 | ;; |
338 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | |
335 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | |
339 | 336 | ;; |
340 | 337 | ms1) |
341 | 338 | basic_machine=mt-unknown |
364 | 361 | ;; |
365 | 362 | # Object if more than one company name word. |
366 | 363 | *-*-*) |
367 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
364 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
368 | 365 | exit 1 |
369 | 366 | ;; |
370 | 367 | # Recognize the basic CPU types with company name. |
387 | 384 | | h8300-* | h8500-* \ |
388 | 385 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
389 | 386 | | hexagon-* \ |
390 | | i*86-* | i860-* | i960-* | ia64-* \ | |
387 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | |
391 | 388 | | ip2k-* | iq2000-* \ |
392 | 389 | | k1om-* \ |
393 | 390 | | le32-* | le64-* \ |
428 | 425 | | orion-* \ |
429 | 426 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
430 | 427 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
428 | | pru-* \ | |
431 | 429 | | pyramid-* \ |
432 | 430 | | riscv32-* | riscv64-* \ |
433 | 431 | | rl78-* | romp-* | rs6000-* | rx-* \ |
444 | 442 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
445 | 443 | | vax-* \ |
446 | 444 | | visium-* \ |
445 | | wasm32-* \ | |
447 | 446 | | we32k-* \ |
448 | 447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
449 | 448 | | xstormy16-* | xtensa*-* \ |
457 | 456 | # Recognize the various machine names and aliases which stand |
458 | 457 | # for a CPU type and a company and sometimes even an OS. |
459 | 458 | 386bsd) |
460 | basic_machine=i386-unknown | |
459 | basic_machine=i386-pc | |
461 | 460 | os=-bsd |
462 | 461 | ;; |
463 | 462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
491 | 490 | basic_machine=x86_64-pc |
492 | 491 | ;; |
493 | 492 | amd64-*) |
494 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
493 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
495 | 494 | ;; |
496 | 495 | amdahl) |
497 | 496 | basic_machine=580-amdahl |
520 | 519 | basic_machine=i386-pc |
521 | 520 | os=-aros |
522 | 521 | ;; |
523 | asmjs) | |
522 | asmjs) | |
524 | 523 | basic_machine=asmjs-unknown |
525 | 524 | ;; |
526 | 525 | aux) |
536 | 535 | os=-linux |
537 | 536 | ;; |
538 | 537 | blackfin-*) |
539 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
538 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
540 | 539 | os=-linux |
541 | 540 | ;; |
542 | 541 | bluegene*) |
544 | 543 | os=-cnk |
545 | 544 | ;; |
546 | 545 | c54x-*) |
547 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
546 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
548 | 547 | ;; |
549 | 548 | c55x-*) |
550 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
549 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
551 | 550 | ;; |
552 | 551 | c6x-*) |
553 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
552 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
554 | 553 | ;; |
555 | 554 | c90) |
556 | 555 | basic_machine=c90-cray |
639 | 638 | basic_machine=rs6000-bull |
640 | 639 | os=-bosx |
641 | 640 | ;; |
642 | dpx2* | dpx2*-bull) | |
641 | dpx2*) | |
643 | 642 | basic_machine=m68k-bull |
644 | 643 | 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" | |
645 | 652 | ;; |
646 | 653 | ebmon29k) |
647 | 654 | basic_machine=a29k-amd |
732 | 739 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
733 | 740 | basic_machine=hppa1.0-hp |
734 | 741 | ;; |
735 | hppa-next) | |
736 | os=-nextstep3 | |
737 | ;; | |
738 | 742 | hppaosf) |
739 | 743 | basic_machine=hppa1.1-hp |
740 | 744 | os=-osf |
747 | 751 | basic_machine=i370-ibm |
748 | 752 | ;; |
749 | 753 | i*86v32) |
750 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
754 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
751 | 755 | os=-sysv32 |
752 | 756 | ;; |
753 | 757 | i*86v4*) |
754 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
758 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
755 | 759 | os=-sysv4 |
756 | 760 | ;; |
757 | 761 | i*86v) |
758 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
762 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
759 | 763 | os=-sysv |
760 | 764 | ;; |
761 | 765 | i*86sol2) |
762 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
766 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
763 | 767 | os=-solaris2 |
764 | 768 | ;; |
765 | 769 | i386mach) |
766 | 770 | basic_machine=i386-mach |
767 | 771 | os=-mach |
768 | 772 | ;; |
769 | i386-vsta | vsta) | |
773 | vsta) | |
770 | 774 | basic_machine=i386-unknown |
771 | 775 | os=-vsta |
772 | 776 | ;; |
785 | 789 | os=-sysv |
786 | 790 | ;; |
787 | 791 | leon-*|leon[3-9]-*) |
788 | basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` | |
792 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | |
789 | 793 | ;; |
790 | 794 | m68knommu) |
791 | 795 | basic_machine=m68k-unknown |
792 | 796 | os=-linux |
793 | 797 | ;; |
794 | 798 | m68knommu-*) |
795 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
799 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
796 | 800 | os=-linux |
797 | ;; | |
798 | m88k-omron*) | |
799 | basic_machine=m88k-omron | |
800 | 801 | ;; |
801 | 802 | magnum | m3230) |
802 | 803 | basic_machine=mips-mips |
829 | 830 | os=-mint |
830 | 831 | ;; |
831 | 832 | mips3*-*) |
832 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
833 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | |
833 | 834 | ;; |
834 | 835 | 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 | |
836 | 837 | ;; |
837 | 838 | monitor) |
838 | 839 | basic_machine=m68k-rom68k |
851 | 852 | os=-msdos |
852 | 853 | ;; |
853 | 854 | ms1-*) |
854 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
855 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | |
855 | 856 | ;; |
856 | 857 | msys) |
857 | 858 | basic_machine=i686-pc |
893 | 894 | basic_machine=v70-nec |
894 | 895 | os=-sysv |
895 | 896 | ;; |
896 | next | m*-next ) | |
897 | next | m*-next) | |
897 | 898 | basic_machine=m68k-next |
898 | 899 | case $os in |
899 | 900 | -nextstep* ) |
938 | 939 | nsr-tandem) |
939 | 940 | basic_machine=nsr-tandem |
940 | 941 | ;; |
942 | nsv-tandem) | |
943 | basic_machine=nsv-tandem | |
944 | ;; | |
945 | nsx-tandem) | |
946 | basic_machine=nsx-tandem | |
947 | ;; | |
941 | 948 | op50n-* | op60c-*) |
942 | 949 | basic_machine=hppa1.1-oki |
943 | 950 | os=-proelf |
970 | 977 | os=-linux |
971 | 978 | ;; |
972 | 979 | parisc-*) |
973 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
980 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
974 | 981 | os=-linux |
975 | 982 | ;; |
976 | 983 | pbd) |
986 | 993 | basic_machine=i386-pc |
987 | 994 | ;; |
988 | 995 | pc98-*) |
989 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
996 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
990 | 997 | ;; |
991 | 998 | pentium | p5 | k5 | k6 | nexgen | viac3) |
992 | 999 | basic_machine=i586-pc |
1001 | 1008 | basic_machine=i786-pc |
1002 | 1009 | ;; |
1003 | 1010 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
1004 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1011 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1005 | 1012 | ;; |
1006 | 1013 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
1007 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1014 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1008 | 1015 | ;; |
1009 | 1016 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
1010 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1017 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1011 | 1018 | ;; |
1012 | 1019 | pentium4-*) |
1013 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1020 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1014 | 1021 | ;; |
1015 | 1022 | pn) |
1016 | 1023 | basic_machine=pn-gould |
1020 | 1027 | ppc | ppcbe) basic_machine=powerpc-unknown |
1021 | 1028 | ;; |
1022 | 1029 | 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) | |
1026 | 1033 | basic_machine=powerpcle-unknown |
1027 | 1034 | ;; |
1028 | 1035 | ppcle-* | powerpclittle-*) |
1029 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1036 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1030 | 1037 | ;; |
1031 | 1038 | ppc64) basic_machine=powerpc64-unknown |
1032 | 1039 | ;; |
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) | |
1036 | 1043 | basic_machine=powerpc64le-unknown |
1037 | 1044 | ;; |
1038 | 1045 | ppc64le-* | powerpc64little-*) |
1039 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1046 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1040 | 1047 | ;; |
1041 | 1048 | ps2) |
1042 | 1049 | basic_machine=i386-ibm |
1090 | 1097 | sequent) |
1091 | 1098 | basic_machine=i386-sequent |
1092 | 1099 | ;; |
1093 | sh) | |
1094 | basic_machine=sh-hitachi | |
1095 | os=-hms | |
1096 | ;; | |
1097 | 1100 | sh5el) |
1098 | 1101 | basic_machine=sh5le-unknown |
1099 | 1102 | ;; |
1100 | sh64) | |
1101 | basic_machine=sh64-unknown | |
1102 | ;; | |
1103 | sparclite-wrs | simso-wrs) | |
1103 | simso-wrs) | |
1104 | 1104 | basic_machine=sparclite-wrs |
1105 | 1105 | os=-vxworks |
1106 | 1106 | ;; |
1119 | 1119 | os=-sysv4 |
1120 | 1120 | ;; |
1121 | 1121 | strongarm-* | thumb-*) |
1122 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1122 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1123 | 1123 | ;; |
1124 | 1124 | sun2) |
1125 | 1125 | basic_machine=m68000-sun |
1241 | 1241 | basic_machine=hppa1.1-winbond |
1242 | 1242 | os=-proelf |
1243 | 1243 | ;; |
1244 | x64) | |
1245 | basic_machine=x86_64-pc | |
1246 | ;; | |
1244 | 1247 | xbox) |
1245 | 1248 | basic_machine=i686-pc |
1246 | 1249 | os=-mingw32 |
1249 | 1252 | basic_machine=xps100-honeywell |
1250 | 1253 | ;; |
1251 | 1254 | xscale-* | xscalee[bl]-*) |
1252 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1255 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | |
1253 | 1256 | ;; |
1254 | 1257 | ymp) |
1255 | 1258 | basic_machine=ymp-cray |
1256 | 1259 | 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 | |
1265 | 1260 | ;; |
1266 | 1261 | none) |
1267 | 1262 | basic_machine=none-none |
1291 | 1286 | vax) |
1292 | 1287 | basic_machine=vax-dec |
1293 | 1288 | ;; |
1294 | pdp10) | |
1295 | # there are many clones, so DEC is not a safe bet | |
1296 | basic_machine=pdp10-unknown | |
1297 | ;; | |
1298 | 1289 | pdp11) |
1299 | 1290 | basic_machine=pdp11-dec |
1300 | 1291 | ;; |
1304 | 1295 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1305 | 1296 | basic_machine=sh-unknown |
1306 | 1297 | ;; |
1307 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
1308 | basic_machine=sparc-sun | |
1309 | ;; | |
1310 | 1298 | cydra) |
1311 | 1299 | basic_machine=cydra-cydrome |
1312 | 1300 | ;; |
1326 | 1314 | # Make sure to match an already-canonicalized machine name. |
1327 | 1315 | ;; |
1328 | 1316 | *) |
1329 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
1317 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
1330 | 1318 | exit 1 |
1331 | 1319 | ;; |
1332 | 1320 | esac |
1334 | 1322 | # Here we canonicalize certain aliases for manufacturers. |
1335 | 1323 | case $basic_machine in |
1336 | 1324 | *-digital*) |
1337 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
1325 | basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` | |
1338 | 1326 | ;; |
1339 | 1327 | *-commodore*) |
1340 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
1328 | basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` | |
1341 | 1329 | ;; |
1342 | 1330 | *) |
1343 | 1331 | ;; |
1348 | 1336 | if [ x"$os" != x"" ] |
1349 | 1337 | then |
1350 | 1338 | 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. | |
1353 | 1341 | # -solaris* is a basic system type, with this one exception. |
1354 | 1342 | -auroraux) |
1355 | 1343 | os=-auroraux |
1360 | 1348 | -solaris) |
1361 | 1349 | os=-solaris2 |
1362 | 1350 | ;; |
1363 | -svr4*) | |
1364 | os=-sysv4 | |
1365 | ;; | |
1366 | 1351 | -unixware*) |
1367 | 1352 | os=-sysv4.2uw |
1368 | 1353 | ;; |
1369 | 1354 | -gnu/linux*) |
1370 | 1355 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
1371 | 1356 | ;; |
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. | |
1373 | 1362 | # 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. | |
1375 | 1364 | # -sysv* is not here because it comes later, after sysvr4. |
1376 | 1365 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1377 | 1366 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1381 | 1370 | | -aos* | -aros* | -cloudabi* | -sortix* \ |
1382 | 1371 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1383 | 1372 | | -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* \ | |
1386 | 1375 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1387 | 1376 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1388 | 1377 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1389 | 1378 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1390 | | -chorusos* | -chorusrdb* | -cegcc* \ | |
1379 | | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | |
1391 | 1380 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1392 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1381 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1393 | 1382 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1394 | 1383 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
1395 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1384 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | |
1396 | 1385 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1397 | 1386 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1398 | 1387 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1399 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1388 | | -morphos* | -superux* | -rtmk* | -windiss* \ | |
1400 | 1389 | | -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*) | |
1402 | 1393 | # Remember, each alternative MUST END IN *, to match a version number. |
1403 | 1394 | ;; |
1404 | 1395 | -qnx*) |
1415 | 1406 | -nto*) |
1416 | 1407 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1417 | 1408 | ;; |
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* \ | |
1420 | 1411 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1421 | 1412 | ;; |
1422 | 1413 | -mac*) |
1423 | os=`echo $os | sed -e 's|mac|macos|'` | |
1414 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1424 | 1415 | ;; |
1425 | 1416 | -linux-dietlibc) |
1426 | 1417 | os=-linux-dietlibc |
1429 | 1420 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
1430 | 1421 | ;; |
1431 | 1422 | -sunos5*) |
1432 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
1423 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1433 | 1424 | ;; |
1434 | 1425 | -sunos6*) |
1435 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
1426 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
1436 | 1427 | ;; |
1437 | 1428 | -opened*) |
1438 | 1429 | os=-openedition |
1443 | 1434 | -wince*) |
1444 | 1435 | os=-wince |
1445 | 1436 | ;; |
1446 | -osfrose*) | |
1447 | os=-osfrose | |
1448 | ;; | |
1449 | -osf*) | |
1450 | os=-osf | |
1451 | ;; | |
1452 | 1437 | -utek*) |
1453 | 1438 | os=-bsd |
1454 | 1439 | ;; |
1473 | 1458 | -nova*) |
1474 | 1459 | os=-rtmk-nova |
1475 | 1460 | ;; |
1476 | -ns2 ) | |
1461 | -ns2) | |
1477 | 1462 | os=-nextstep2 |
1478 | 1463 | ;; |
1479 | 1464 | -nsk*) |
1495 | 1480 | -oss*) |
1496 | 1481 | os=-sysv3 |
1497 | 1482 | ;; |
1498 | -svr4) | |
1483 | -svr4*) | |
1499 | 1484 | os=-sysv4 |
1500 | 1485 | ;; |
1501 | 1486 | -svr3) |
1510 | 1495 | -ose*) |
1511 | 1496 | os=-ose |
1512 | 1497 | ;; |
1513 | -es1800*) | |
1514 | os=-ose | |
1515 | ;; | |
1516 | -xenix) | |
1517 | os=-xenix | |
1518 | ;; | |
1519 | 1498 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1520 | 1499 | os=-mint |
1521 | 1500 | ;; |
1522 | -aros*) | |
1523 | os=-aros | |
1524 | ;; | |
1525 | 1501 | -zvmoe) |
1526 | 1502 | os=-zvmoe |
1527 | 1503 | ;; |
1528 | 1504 | -dicos*) |
1529 | 1505 | os=-dicos |
1530 | 1506 | ;; |
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 | ;; | |
1531 | 1520 | -nacl*) |
1521 | ;; | |
1522 | -ios) | |
1532 | 1523 | ;; |
1533 | 1524 | -none) |
1534 | 1525 | ;; |
1535 | 1526 | *) |
1536 | 1527 | # Get rid of the `-' at the beginning of $os. |
1537 | 1528 | 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 | |
1539 | 1530 | exit 1 |
1540 | 1531 | ;; |
1541 | 1532 | esac |
1625 | 1616 | sparc-* | *-sun) |
1626 | 1617 | os=-sunos4.1.1 |
1627 | 1618 | ;; |
1619 | pru-*) | |
1620 | os=-elf | |
1621 | ;; | |
1628 | 1622 | *-be) |
1629 | 1623 | os=-beos |
1630 | 1624 | ;; |
1631 | *-haiku) | |
1632 | os=-haiku | |
1633 | ;; | |
1634 | 1625 | *-ibm) |
1635 | 1626 | os=-aix |
1636 | 1627 | ;; |
1670 | 1661 | m88k-omron*) |
1671 | 1662 | os=-luna |
1672 | 1663 | ;; |
1673 | *-next ) | |
1664 | *-next) | |
1674 | 1665 | os=-nextstep |
1675 | 1666 | ;; |
1676 | 1667 | *-sequent) |
1684 | 1675 | ;; |
1685 | 1676 | i370-*) |
1686 | 1677 | os=-mvs |
1687 | ;; | |
1688 | *-next) | |
1689 | os=-nextstep3 | |
1690 | 1678 | ;; |
1691 | 1679 | *-gould) |
1692 | 1680 | os=-sysv |
1797 | 1785 | vendor=stratus |
1798 | 1786 | ;; |
1799 | 1787 | esac |
1800 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1788 | basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` | |
1801 | 1789 | ;; |
1802 | 1790 | esac |
1803 | 1791 | |
1804 | echo $basic_machine$os | |
1792 | echo "$basic_machine$os" | |
1805 | 1793 | exit |
1806 | 1794 | |
1807 | 1795 | # Local variables: |
1808 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1796 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1809 | 1797 | # time-stamp-start: "timestamp='" |
1810 | 1798 | # time-stamp-format: "%:y-%02m-%02d" |
1811 | 1799 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for libde265 1.0.3. | |
2 | # Generated by GNU Autoconf 2.69 for libde265 1.0.4. | |
3 | 3 | # |
4 | 4 | # Report bugs to <farin@struktur.de>. |
5 | 5 | # |
589 | 589 | # Identity of this package. |
590 | 590 | PACKAGE_NAME='libde265' |
591 | 591 | 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' | |
594 | 594 | PACKAGE_BUGREPORT='farin@struktur.de' |
595 | 595 | PACKAGE_URL='' |
596 | 596 | |
1408 | 1408 | # Omit some internal or obsolete options to make the list less imposing. |
1409 | 1409 | # This message is too long to be a string in the A/UX 3.1 sh. |
1410 | 1410 | 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. | |
1412 | 1412 | |
1413 | 1413 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1414 | 1414 | |
1480 | 1480 | |
1481 | 1481 | if test -n "$ac_init_help"; then |
1482 | 1482 | 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:";; | |
1484 | 1484 | esac |
1485 | 1485 | cat <<\_ACEOF |
1486 | 1486 | |
1621 | 1621 | test -n "$ac_init_help" && exit $ac_status |
1622 | 1622 | if $ac_init_version; then |
1623 | 1623 | cat <<\_ACEOF |
1624 | libde265 configure 1.0.3 | |
1624 | libde265 configure 1.0.4 | |
1625 | 1625 | generated by GNU Autoconf 2.69 |
1626 | 1626 | |
1627 | 1627 | Copyright (C) 2012 Free Software Foundation, Inc. |
2386 | 2386 | This file contains any messages produced by compilers while |
2387 | 2387 | running configure, to aid debugging if configure makes a mistake. |
2388 | 2388 | |
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 | |
2390 | 2390 | generated by GNU Autoconf 2.69. Invocation command line was |
2391 | 2391 | |
2392 | 2392 | $ $0 $@ |
2741 | 2741 | ac_config_headers="$ac_config_headers config.h" |
2742 | 2742 | |
2743 | 2743 | |
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. | |
2746 | 2752 | |
2747 | 2753 | LIBDE265_CURRENT=0 |
2748 | LIBDE265_REVISION=10 | |
2754 | LIBDE265_REVISION=11 | |
2749 | 2755 | LIBDE265_AGE=0 |
2750 | 2756 | |
2751 | 2757 | # --------------------------------------------------------------------------- |
16703 | 16709 | |
16704 | 16710 | # Define the identity of the package. |
16705 | 16711 | PACKAGE='libde265' |
16706 | VERSION='1.0.3' | |
16712 | VERSION='1.0.4' | |
16707 | 16713 | |
16708 | 16714 | |
16709 | 16715 | cat >>confdefs.h <<_ACEOF |
20102 | 20108 | # report actual input values of CONFIG_FILES etc. instead of their |
20103 | 20109 | # values after options handling. |
20104 | 20110 | 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 | |
20106 | 20112 | generated by GNU Autoconf 2.69. Invocation command line was |
20107 | 20113 | |
20108 | 20114 | CONFIG_FILES = $CONFIG_FILES |
20168 | 20174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
20169 | 20175 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
20170 | 20176 | ac_cs_version="\\ |
20171 | libde265 config.status 1.0.3 | |
20177 | libde265 config.status 1.0.4 | |
20172 | 20178 | configured by $0, generated by GNU Autoconf 2.69, |
20173 | 20179 | with options \\"\$ac_cs_config\\" |
20174 | 20180 | |
21304 | 21310 | cat <<_LT_EOF >> "$cfgfile" |
21305 | 21311 | #! $SHELL |
21306 | 21312 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
21307 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21308 | 21313 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
21309 | 21314 | |
21310 | 21315 | # Provide generalized library-building support services. |
1 | 1 | # Process this file with autoconf to produce a configure script. |
2 | 2 | |
3 | 3 | AC_PREREQ([2.68]) |
4 | AC_INIT([libde265], [1.0.3], [farin@struktur.de]) | |
4 | AC_INIT([libde265], [1.0.4], [farin@struktur.de]) | |
5 | 5 | AC_CONFIG_SRCDIR([libde265/de265.cc]) |
6 | 6 | AC_CONFIG_HEADERS([config.h]) |
7 | 7 | |
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) | |
9 | 9 | AC_SUBST(NUMERIC_VERSION) |
10 | 10 | |
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 | ||
11 | 17 | LIBDE265_CURRENT=0 |
12 | LIBDE265_REVISION=10 | |
18 | LIBDE265_REVISION=11 | |
13 | 19 | LIBDE265_AGE=0 |
14 | 20 | |
15 | 21 | # --------------------------------------------------------------------------- |
0 | set (dec265_sources | |
1 | dec265.cc | |
2 | ) | |
0 | add_executable (dec265 dec265.cc) | |
3 | 1 | |
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() | |
7 | 10 | |
8 | 11 | 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 | |
16 | 13 | ../extra/getopt.c |
17 | 14 | ../extra/getopt_long.c |
18 | 15 | ) |
19 | 16 | endif() |
20 | 17 | |
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 | ||
35 | 18 | if(NOT MSVC) |
36 | 19 | # hdrcopy uses internal APIs that are not available when compiled for Windows |
37 | add_executable (hdrcopy ${hdrcopy_sources}) | |
20 | add_executable (hdrcopy hdrcopy.cc) | |
38 | 21 | |
39 | target_link_libraries (hdrcopy ${LIBDE265_LIBRARY_NAME}) | |
22 | target_link_libraries (hdrcopy PRIVATE ${PROJECT_NAME}) | |
40 | 23 | endif() |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
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. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
785 | 785 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
786 | 786 | # time-stamp-start: "scriptversion=" |
787 | 787 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
788 | # time-stamp-time-zone: "UTC" | |
788 | # time-stamp-time-zone: "UTC0" | |
789 | 789 | # time-stamp-end: "; # UTC" |
790 | 790 | # End: |
0 | set (enc265_sources | |
0 | add_executable (enc265 | |
1 | 1 | enc265.cc |
2 | 2 | image-io-png.cc |
3 | 3 | ) |
4 | 4 | |
5 | 5 | if(MSVC) |
6 | set (enc265_sources | |
7 | ${enc265_sources} | |
6 | target_sources(enc265 PRIVATE | |
8 | 7 | ../extra/getopt.c |
9 | 8 | ../extra/getopt_long.c |
10 | 9 | ) |
11 | 10 | endif() |
12 | 11 | |
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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
0 | include(CMakePackageConfigHelpers) | |
1 | ||
0 | 2 | set (libde265_sources |
3 | alloc_pool.cc | |
1 | 4 | bitstream.cc |
2 | 5 | cabac.cc |
6 | configparam.cc | |
7 | contextmodel.cc | |
3 | 8 | de265.cc |
4 | 9 | deblock.cc |
5 | 10 | decctx.cc |
6 | nal-parser.cc | |
7 | nal-parser.h | |
8 | 11 | dpb.cc |
9 | dpb.h | |
12 | en265.cc | |
13 | fallback-dct.cc | |
14 | fallback-motion.cc | |
15 | fallback.cc | |
16 | image-io.cc | |
10 | 17 | image.cc |
11 | 18 | intrapred.cc |
12 | 19 | md5.cc |
20 | motion.cc | |
21 | nal-parser.cc | |
13 | 22 | nal.cc |
14 | 23 | pps.cc |
15 | transform.cc | |
24 | quality.cc | |
16 | 25 | refpic.cc |
17 | 26 | sao.cc |
18 | 27 | scan.cc |
19 | 28 | sei.cc |
20 | 29 | slice.cc |
21 | 30 | sps.cc |
31 | threads.cc | |
32 | transform.cc | |
22 | 33 | util.cc |
34 | visualize.cc | |
23 | 35 | vps.cc |
36 | vui.cc | |
37 | ) | |
38 | ||
39 | set (libde265_headers | |
40 | acceleration.h | |
41 | alloc_pool.h | |
24 | 42 | bitstream.h |
25 | 43 | cabac.h |
44 | configparam.h | |
26 | 45 | deblock.h |
27 | 46 | decctx.h |
47 | dpb.h | |
48 | en265.h | |
49 | fallback-dct.h | |
50 | fallback-motion.h | |
51 | fallback.h | |
52 | image-io.h | |
28 | 53 | image.h |
29 | 54 | intrapred.h |
30 | 55 | md5.h |
56 | motion.h | |
57 | nal-parser.h | |
31 | 58 | nal.h |
32 | 59 | pps.h |
33 | transform.h | |
60 | quality.h | |
34 | 61 | refpic.h |
35 | 62 | sao.h |
36 | 63 | scan.h |
37 | 64 | sei.h |
38 | 65 | slice.h |
39 | 66 | sps.h |
67 | threads.h | |
68 | transform.h | |
40 | 69 | util.h |
70 | visualize.h | |
41 | 71 | 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 | |
55 | 73 | ) |
56 | 74 | |
57 | 75 | if(MSVC) |
71 | 89 | add_subdirectory (x86) |
72 | 90 | endif() |
73 | 91 | |
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) | |
76 | 94 | |
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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
27 | 27 | #define LIBDE265_VERSION_H |
28 | 28 | |
29 | 29 | /* Numeric representation of the version */ |
30 | #define LIBDE265_NUMERIC_VERSION 0x01000300 | |
30 | #define LIBDE265_NUMERIC_VERSION 0x01000400 | |
31 | 31 | |
32 | 32 | /* Version string */ |
33 | #define LIBDE265_VERSION "1.0.3" | |
33 | #define LIBDE265_VERSION "1.0.4" | |
34 | 34 | |
35 | 35 | #endif |
10 | 10 | add_subdirectory (algo) |
11 | 11 | add_library(encoder OBJECT ${encoder_sources}) |
12 | 12 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
16 | 16 | |
17 | 17 | add_library(algo OBJECT ${algo_sources}) |
18 | 18 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
310 | 310 | break; |
311 | 311 | } |
312 | 312 | |
313 | if (sps) { | |
313 | if (chroma_format != de265_chroma_mono && sps) { | |
314 | 314 | assert(sps->SubWidthC == SubWidthC); |
315 | 315 | assert(sps->SubHeightC == SubHeightC); |
316 | 316 | } |
382 | 382 | alloc_userdata); |
383 | 383 | |
384 | 384 | 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 | } | |
388 | 394 | |
389 | 395 | // check for memory shortage |
390 | 396 |
18 | 18 | set(X86_OBJECTS $<TARGET_OBJECTS:x86> $<TARGET_OBJECTS:x86_sse> PARENT_SCOPE) |
19 | 19 | |
20 | 20 | 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}") | |
23 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
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 | ---------------------------------------------------------------------- |
30 | 30 | |
31 | 31 | PROGRAM=libtool |
32 | 32 | PACKAGE=libtool |
33 | VERSION="2.4.6 Debian-2.4.6-0.1" | |
33 | VERSION="2.4.6 Debian-2.4.6-2" | |
34 | 34 | package_revision=2.4.6 |
35 | 35 | |
36 | 36 | |
2067 | 2067 | compiler: $LTCC |
2068 | 2068 | compiler flags: $LTCFLAGS |
2069 | 2069 | linker: $LD (gnu? $with_gnu_ld) |
2070 | version: $progname (GNU libtool) 2.4.6 | |
2070 | version: $progname $scriptversion Debian-2.4.6-2 | |
2071 | 2071 | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` |
2072 | 2072 | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` |
2073 | 2073 |
727 | 727 | cat <<_LT_EOF >> "$cfgfile" |
728 | 728 | #! $SHELL |
729 | 729 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
730 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
731 | 730 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
732 | 731 | |
733 | 732 | # 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |