Merge lp:~elambert/sysbench/trunk_drizzle_merge into lp:~sysbench-developers/sysbench/trunk
- trunk_drizzle_merge
- Merge into trunk
Proposed by
Eric Lambert
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~elambert/sysbench/trunk_drizzle_merge |
Merge into: | lp:~sysbench-developers/sysbench/trunk |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~elambert/sysbench/trunk_drizzle_merge |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
sysbench-developers | Pending | ||
Review via email: mp+7313@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Eric Lambert (elambert) wrote : | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'AUTHORS' |
2 | === removed file 'INSTALL' |
3 | --- INSTALL 2006-01-20 16:13:23 +0000 |
4 | +++ INSTALL 1970-01-01 00:00:00 +0000 |
5 | @@ -1,229 +0,0 @@ |
6 | -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software |
7 | -Foundation, Inc. |
8 | - |
9 | - This file is free documentation; the Free Software Foundation gives |
10 | -unlimited permission to copy, distribute and modify it. |
11 | - |
12 | -Basic Installation |
13 | -================== |
14 | - |
15 | - These are generic installation instructions. |
16 | - |
17 | - The `configure' shell script attempts to guess correct values for |
18 | -various system-dependent variables used during compilation. It uses |
19 | -those values to create a `Makefile' in each directory of the package. |
20 | -It may also create one or more `.h' files containing system-dependent |
21 | -definitions. Finally, it creates a shell script `config.status' that |
22 | -you can run in the future to recreate the current configuration, and a |
23 | -file `config.log' containing compiler output (useful mainly for |
24 | -debugging `configure'). |
25 | - |
26 | - It can also use an optional file (typically called `config.cache' |
27 | -and enabled with `--cache-file=config.cache' or simply `-C') that saves |
28 | -the results of its tests to speed up reconfiguring. (Caching is |
29 | -disabled by default to prevent problems with accidental use of stale |
30 | -cache files.) |
31 | - |
32 | - If you need to do unusual things to compile the package, please try |
33 | -to figure out how `configure' could check whether to do them, and mail |
34 | -diffs or instructions to the address given in the `README' so they can |
35 | -be considered for the next release. If you are using the cache, and at |
36 | -some point `config.cache' contains results you don't want to keep, you |
37 | -may remove or edit it. |
38 | - |
39 | - The file `configure.ac' (or `configure.in') is used to create |
40 | -`configure' by a program called `autoconf'. You only need |
41 | -`configure.ac' if you want to change it or regenerate `configure' using |
42 | -a newer version of `autoconf'. |
43 | - |
44 | -The simplest way to compile this package is: |
45 | - |
46 | - 1. `cd' to the directory containing the package's source code and type |
47 | - `./configure' to configure the package for your system. If you're |
48 | - using `csh' on an old version of System V, you might need to type |
49 | - `sh ./configure' instead to prevent `csh' from trying to execute |
50 | - `configure' itself. |
51 | - |
52 | - Running `configure' takes awhile. While running, it prints some |
53 | - messages telling which features it is checking for. |
54 | - |
55 | - 2. Type `make' to compile the package. |
56 | - |
57 | - 3. Optionally, type `make check' to run any self-tests that come with |
58 | - the package. |
59 | - |
60 | - 4. Type `make install' to install the programs and any data files and |
61 | - documentation. |
62 | - |
63 | - 5. You can remove the program binaries and object files from the |
64 | - source code directory by typing `make clean'. To also remove the |
65 | - files that `configure' created (so you can compile the package for |
66 | - a different kind of computer), type `make distclean'. There is |
67 | - also a `make maintainer-clean' target, but that is intended mainly |
68 | - for the package's developers. If you use it, you may have to get |
69 | - all sorts of other programs in order to regenerate files that came |
70 | - with the distribution. |
71 | - |
72 | -Compilers and Options |
73 | -===================== |
74 | - |
75 | - Some systems require unusual options for compilation or linking that |
76 | -the `configure' script does not know about. Run `./configure --help' |
77 | -for details on some of the pertinent environment variables. |
78 | - |
79 | - You can give `configure' initial values for configuration parameters |
80 | -by setting variables in the command line or in the environment. Here |
81 | -is an example: |
82 | - |
83 | - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix |
84 | - |
85 | - *Note Defining Variables::, for more details. |
86 | - |
87 | -Compiling For Multiple Architectures |
88 | -==================================== |
89 | - |
90 | - You can compile the package for more than one kind of computer at the |
91 | -same time, by placing the object files for each architecture in their |
92 | -own directory. To do this, you must use a version of `make' that |
93 | -supports the `VPATH' variable, such as GNU `make'. `cd' to the |
94 | -directory where you want the object files and executables to go and run |
95 | -the `configure' script. `configure' automatically checks for the |
96 | -source code in the directory that `configure' is in and in `..'. |
97 | - |
98 | - If you have to use a `make' that does not support the `VPATH' |
99 | -variable, you have to compile the package for one architecture at a |
100 | -time in the source code directory. After you have installed the |
101 | -package for one architecture, use `make distclean' before reconfiguring |
102 | -for another architecture. |
103 | - |
104 | -Installation Names |
105 | -================== |
106 | - |
107 | - By default, `make install' will install the package's files in |
108 | -`/usr/local/bin', `/usr/local/man', etc. You can specify an |
109 | -installation prefix other than `/usr/local' by giving `configure' the |
110 | -option `--prefix=PATH'. |
111 | - |
112 | - You can specify separate installation prefixes for |
113 | -architecture-specific files and architecture-independent files. If you |
114 | -give `configure' the option `--exec-prefix=PATH', the package will use |
115 | -PATH as the prefix for installing programs and libraries. |
116 | -Documentation and other data files will still use the regular prefix. |
117 | - |
118 | - In addition, if you use an unusual directory layout you can give |
119 | -options like `--bindir=PATH' to specify different values for particular |
120 | -kinds of files. Run `configure --help' for a list of the directories |
121 | -you can set and what kinds of files go in them. |
122 | - |
123 | - If the package supports it, you can cause programs to be installed |
124 | -with an extra prefix or suffix on their names by giving `configure' the |
125 | -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
126 | - |
127 | -Optional Features |
128 | -================= |
129 | - |
130 | - Some packages pay attention to `--enable-FEATURE' options to |
131 | -`configure', where FEATURE indicates an optional part of the package. |
132 | -They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
133 | -is something like `gnu-as' or `x' (for the X Window System). The |
134 | -`README' should mention any `--enable-' and `--with-' options that the |
135 | -package recognizes. |
136 | - |
137 | - For packages that use the X Window System, `configure' can usually |
138 | -find the X include and library files automatically, but if it doesn't, |
139 | -you can use the `configure' options `--x-includes=DIR' and |
140 | -`--x-libraries=DIR' to specify their locations. |
141 | - |
142 | -Specifying the System Type |
143 | -========================== |
144 | - |
145 | - There may be some features `configure' cannot figure out |
146 | -automatically, but needs to determine by the type of machine the package |
147 | -will run on. Usually, assuming the package is built to be run on the |
148 | -_same_ architectures, `configure' can figure that out, but if it prints |
149 | -a message saying it cannot guess the machine type, give it the |
150 | -`--build=TYPE' option. TYPE can either be a short name for the system |
151 | -type, such as `sun4', or a canonical name which has the form: |
152 | - |
153 | - CPU-COMPANY-SYSTEM |
154 | - |
155 | -where SYSTEM can have one of these forms: |
156 | - |
157 | - OS KERNEL-OS |
158 | - |
159 | - See the file `config.sub' for the possible values of each field. If |
160 | -`config.sub' isn't included in this package, then this package doesn't |
161 | -need to know the machine type. |
162 | - |
163 | - If you are _building_ compiler tools for cross-compiling, you should |
164 | -use the `--target=TYPE' option to select the type of system they will |
165 | -produce code for. |
166 | - |
167 | - If you want to _use_ a cross compiler, that generates code for a |
168 | -platform different from the build platform, you should specify the |
169 | -"host" platform (i.e., that on which the generated programs will |
170 | -eventually be run) with `--host=TYPE'. |
171 | - |
172 | -Sharing Defaults |
173 | -================ |
174 | - |
175 | - If you want to set default values for `configure' scripts to share, |
176 | -you can create a site shell script called `config.site' that gives |
177 | -default values for variables like `CC', `cache_file', and `prefix'. |
178 | -`configure' looks for `PREFIX/share/config.site' if it exists, then |
179 | -`PREFIX/etc/config.site' if it exists. Or, you can set the |
180 | -`CONFIG_SITE' environment variable to the location of the site script. |
181 | -A warning: not all `configure' scripts look for a site script. |
182 | - |
183 | -Defining Variables |
184 | -================== |
185 | - |
186 | - Variables not defined in a site shell script can be set in the |
187 | -environment passed to `configure'. However, some packages may run |
188 | -configure again during the build, and the customized values of these |
189 | -variables may be lost. In order to avoid this problem, you should set |
190 | -them in the `configure' command line, using `VAR=value'. For example: |
191 | - |
192 | - ./configure CC=/usr/local2/bin/gcc |
193 | - |
194 | -will cause the specified gcc to be used as the C compiler (unless it is |
195 | -overridden in the site shell script). |
196 | - |
197 | -`configure' Invocation |
198 | -====================== |
199 | - |
200 | - `configure' recognizes the following options to control how it |
201 | -operates. |
202 | - |
203 | -`--help' |
204 | -`-h' |
205 | - Print a summary of the options to `configure', and exit. |
206 | - |
207 | -`--version' |
208 | -`-V' |
209 | - Print the version of Autoconf used to generate the `configure' |
210 | - script, and exit. |
211 | - |
212 | -`--cache-file=FILE' |
213 | - Enable the cache: use and save the results of the tests in FILE, |
214 | - traditionally `config.cache'. FILE defaults to `/dev/null' to |
215 | - disable caching. |
216 | - |
217 | -`--config-cache' |
218 | -`-C' |
219 | - Alias for `--cache-file=config.cache'. |
220 | - |
221 | -`--quiet' |
222 | -`--silent' |
223 | -`-q' |
224 | - Do not print messages saying which checks are being made. To |
225 | - suppress all normal output, redirect it to `/dev/null' (any error |
226 | - messages will still be shown). |
227 | - |
228 | -`--srcdir=DIR' |
229 | - Look for the package's source code in directory DIR. Usually |
230 | - `configure' can determine that directory automatically. |
231 | - |
232 | -`configure' also accepts some other, not widely useful, options. Run |
233 | -`configure --help' for more details. |
234 | - |
235 | |
236 | === modified file 'Makefile.am' |
237 | --- Makefile.am 2008-12-09 13:08:02 +0000 |
238 | +++ Makefile.am 2009-06-10 23:43:32 +0000 |
239 | @@ -14,6 +14,8 @@ |
240 | # along with this program; if not, write to the Free Software |
241 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
242 | |
243 | +ACLOCAL_AMFLAGS = -I m4 |
244 | + |
245 | SUBDIRS = doc sysbench |
246 | |
247 | EXTRA_DIST = autogen.sh README README-WIN.txt ChangeLog |
248 | |
249 | === added file 'NEWS' |
250 | === removed file 'acinclude.m4' |
251 | --- acinclude.m4 2009-05-28 15:50:59 +0000 |
252 | +++ acinclude.m4 1970-01-01 00:00:00 +0000 |
253 | @@ -1,482 +0,0 @@ |
254 | -dnl --------------------------------------------------------------------------- |
255 | -dnl Macro: AC_CHECK_MYSQLR |
256 | -dnl First check for custom MySQL paths in --with-mysql-* options. |
257 | -dnl If some paths are missing, check if mysql_config exists. |
258 | -dnl Then check for the libraries and replace -lmysqlclient with |
259 | -dnl -lmysqlclient_r, to enable threaded client library. |
260 | -dnl --------------------------------------------------------------------------- |
261 | - |
262 | -AC_DEFUN([AC_CHECK_MYSQLR],[ |
263 | -# Check for custom MySQL root directory |
264 | -if test [ x$1 != xyes -a x$1 != xno ] |
265 | -then |
266 | - ac_cv_mysql_root=`echo $1 | sed -e 's+/$++'` |
267 | - if test [ -d "$ac_cv_mysql_root/include" -a \ |
268 | - -d "$ac_cv_mysql_root/libmysql_r" ] |
269 | - then |
270 | - ac_cv_mysql_includes="$ac_cv_mysql_root/include" |
271 | - ac_cv_mysql_libs="$ac_cv_mysql_root/libmysql_r" |
272 | - elif test [ -x "$ac_cv_mysql_root/bin/mysql_config" ] |
273 | - then |
274 | - mysqlconfig="$ac_cv_mysql_root/bin/mysql_config" |
275 | - else |
276 | - AC_MSG_ERROR([invalid MySQL root directory: $ac_cv_mysql_root]) |
277 | - fi |
278 | -fi |
279 | - |
280 | -# Check for custom includes path |
281 | -if test [ -z "$ac_cv_mysql_includes" ] |
282 | -then |
283 | - AC_ARG_WITH([mysql-includes], |
284 | - AC_HELP_STRING([--with-mysql-includes], [path to MySQL header files]), |
285 | - [ac_cv_mysql_includes=$withval]) |
286 | -fi |
287 | -if test [ -n "$ac_cv_mysql_includes" ] |
288 | -then |
289 | - AC_CACHE_CHECK([MySQL includes], [ac_cv_mysql_includes], [ac_cv_mysql_includes=""]) |
290 | - MYSQL_CFLAGS="-I$ac_cv_mysql_includes" |
291 | -fi |
292 | - |
293 | -# Check for custom library path |
294 | - |
295 | -if test [ -z "$ac_cv_mysql_libs" ] |
296 | -then |
297 | - AC_ARG_WITH([mysql-libs], |
298 | - AC_HELP_STRING([--with-mysql-libs], [path to MySQL libraries]), |
299 | - [ac_cv_mysql_libs=$withval]) |
300 | -fi |
301 | -if test [ -n "$ac_cv_mysql_libs" ] |
302 | -then |
303 | - # Trim trailing '.libs' if user passed it in --with-mysql-libs option |
304 | - ac_cv_mysql_libs=`echo ${ac_cv_mysql_libs} | sed -e 's/.libs$//' \ |
305 | - -e 's+.libs/$++'` |
306 | - AC_CACHE_CHECK([MySQL libraries], [ac_cv_mysql_libs], [ac_cv_mysql_libs=""]) |
307 | - MYSQL_LIBS="-L$ac_cv_mysql_libs -lmysqlclient_r" |
308 | -fi |
309 | - |
310 | -# If some path is missing, try to autodetermine with mysql_config |
311 | -if test [ -z "$ac_cv_mysql_includes" -o -z "$ac_cv_mysql_libs" ] |
312 | -then |
313 | - if test [ -z "$mysqlconfig" ] |
314 | - then |
315 | - AC_PATH_PROG(mysqlconfig,mysql_config) |
316 | - fi |
317 | - if test [ -z "$mysqlconfig" ] |
318 | - then |
319 | - AC_MSG_ERROR([mysql_config executable not found |
320 | -******************************************************************************** |
321 | -ERROR: cannot find MySQL libraries. If you want to compile with MySQL support, |
322 | - you must either specify file locations explicitly using |
323 | - --with-mysql-includes and --with-mysql-libs options, or make sure path to |
324 | - mysql_config is listed in your PATH environment variable. If you want to |
325 | - disable MySQL support, use --without-mysql option. |
326 | -******************************************************************************** |
327 | -]) |
328 | - else |
329 | - if test [ -z "$ac_cv_mysql_includes" ] |
330 | - then |
331 | - AC_MSG_CHECKING(MySQL C flags) |
332 | - MYSQL_CFLAGS=`${mysqlconfig} --cflags` |
333 | - AC_MSG_RESULT($MYSQL_CFLAGS) |
334 | - fi |
335 | - if test [ -z "$ac_cv_mysql_libs" ] |
336 | - then |
337 | - AC_MSG_CHECKING(MySQL linker flags) |
338 | - MYSQL_LIBS=`${mysqlconfig} --libs | sed -e \ |
339 | - 's/-lmysqlclient /-lmysqlclient_r /' -e 's/-lmysqlclient$/-lmysqlclient_r/'` |
340 | - AC_MSG_RESULT($MYSQL_LIBS) |
341 | - fi |
342 | - fi |
343 | -fi |
344 | -]) |
345 | - |
346 | -dnl --------------------------------------------------------------------------- |
347 | -dnl Macro: AC_CHECK_PGSQL |
348 | -dnl First check for custom PostgreSQL paths in --with-pgsql-* options. |
349 | -dnl If some paths are missing, check if pg_config exists. |
350 | -dnl --------------------------------------------------------------------------- |
351 | - |
352 | -AC_DEFUN([AC_CHECK_PGSQL],[ |
353 | - |
354 | -# Check for custom includes path |
355 | -if test [ -z "$ac_cv_pgsql_includes" ] |
356 | -then |
357 | - AC_ARG_WITH([pgsql-includes], |
358 | - AC_HELP_STRING([--with-pgsql-includes], [path to PostgreSQL header files]), |
359 | - [ac_cv_pgsql_includes=$withval]) |
360 | -fi |
361 | -if test [ -n "$ac_cv_pgsql_includes" ] |
362 | -then |
363 | - AC_CACHE_CHECK([PostgreSQL includes], [ac_cv_pgsql_includes], [ac_cv_pgsql_includes=""]) |
364 | - MYSQL_CFLAGS="-I$ac_cv_mysql_includes" |
365 | -fi |
366 | - |
367 | -# Check for custom library path |
368 | - |
369 | -if test [ -z "$ac_cv_pgsql_libs" ] |
370 | -then |
371 | - AC_ARG_WITH([pgsql-libs], |
372 | - AC_HELP_STRING([--with-pgsql-libs], [path to PostgreSQL libraries]), |
373 | - [ac_cv_pgsql_libs=$withval]) |
374 | -fi |
375 | - |
376 | -# If some path is missing, try to autodetermine with pgsql_config |
377 | -if test [ -z "$ac_cv_pgsql_includes" -o -z "$ac_cv_pgsql_libs" ] |
378 | -then |
379 | - if test [ -z "$pgconfig" ] |
380 | - then |
381 | - AC_PATH_PROG(pgconfig,pg_config) |
382 | - fi |
383 | - if test [ -z "$pgconfig" ] |
384 | - then |
385 | - AC_MSG_ERROR([pg_config executable not found |
386 | -******************************************************************************** |
387 | -ERROR: cannot find PostgreSQL libraries. If you want to compile with PosgregSQL support, |
388 | - you must either specify file locations explicitly using |
389 | - --with-pgsql-includes and --with-pgsql-libs options, or make sure path to |
390 | - pg_config is listed in your PATH environment variable. If you want to |
391 | - disable PostgreSQL support, use --without-pgsql option. |
392 | -******************************************************************************** |
393 | -]) |
394 | - else |
395 | - if test [ -z "$ac_cv_pgsql_includes" ] |
396 | - then |
397 | - AC_MSG_CHECKING(PostgreSQL C flags) |
398 | - PGSQL_CFLAGS="-I`${pgconfig} --includedir`" |
399 | - AC_MSG_RESULT($PGSQL_CFLAGS) |
400 | - fi |
401 | - if test [ -z "$ac_cv_pgsql_libs" ] |
402 | - then |
403 | - AC_MSG_CHECKING(PostgreSQL linker flags) |
404 | - PGSQL_LIBS="-L`${pgconfig} --libdir` -lpq" |
405 | - AC_MSG_RESULT($PGSQL_LIBS) |
406 | - fi |
407 | - fi |
408 | -fi |
409 | -]) |
410 | - |
411 | -dnl --------------------------------------------------------------------------- |
412 | -dnl Macro: AC_CHECK_AIO |
413 | -dnl Check for Linux AIO availability on the target system |
414 | -dnl Also, check the version of libaio library (at the moment, there are two |
415 | -dnl versions with incompatible interfaces). |
416 | -dnl --------------------------------------------------------------------------- |
417 | - |
418 | -AC_DEFUN([AC_CHECK_AIO],[ |
419 | -if test x$enable_aio = xyes; then |
420 | - AC_CHECK_HEADER([libaio.h], |
421 | - [AC_DEFINE(HAVE_LIBAIO_H,1,[Define to 1 if your system has <libaio.h> header file])], |
422 | - [enable_aio=no]) |
423 | -fi |
424 | -if test x$enable_aio = xyes; then |
425 | - AC_CHECK_LIB([aio], [io_queue_init], , [enable_aio=no]) |
426 | -fi |
427 | -if test x$enable_aio = xyes; then |
428 | - AC_MSG_CHECKING(if io_getevents() has an old interface) |
429 | - AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
430 | - [[ |
431 | -#ifdef HAVE_LIBAIO_H |
432 | -# include <libaio.h> |
433 | -#endif |
434 | -struct io_event event; |
435 | -io_context_t ctxt; |
436 | - ]], |
437 | - [[ |
438 | -(void)io_getevents(ctxt, 1, &event, NULL); |
439 | - ]] ) |
440 | - ], [ |
441 | - AC_DEFINE([HAVE_OLD_GETEVENTS], 1, [Define to 1 if libaio has older getevents() interface]) |
442 | - AC_MSG_RESULT(yes) |
443 | - ], |
444 | - [AC_MSG_RESULT(no)] |
445 | - ) |
446 | -fi |
447 | -]) |
448 | - |
449 | -dnl --------------------------------------------------------------------------- |
450 | -dnl Macro: AX_CHECK_DOCBOOK |
451 | -dnl Check for availability of various DocBook utilities and perform necessary |
452 | -dnl substitutions |
453 | -dnl --------------------------------------------------------------------------- |
454 | - |
455 | -AC_DEFUN([AX_CHECK_DOCBOOK], [ |
456 | -# It's just rude to go over the net to build |
457 | -XSLTPROC_FLAGS=--nonet |
458 | -DOCBOOK_ROOT= |
459 | - |
460 | -for i in /etc/xml/catalog /usr/local/etc/xml/catalog /opt/local/etc/xml/catalog ; |
461 | -do |
462 | - if test -f $i; then |
463 | - XML_CATALOG="$i" |
464 | - fi |
465 | -done |
466 | - |
467 | -if test -z "$XML_CATALOG"; then |
468 | - for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/ /opt/local/share/xsl/docbook-xsl/xhtml/ ; |
469 | - do |
470 | - if test -d "$i"; then |
471 | - DOCBOOK_ROOT=$i |
472 | - fi |
473 | - done |
474 | - |
475 | - # Last resort - try net |
476 | - if test -z "$DOCBOOK_ROOT"; then |
477 | - XSLTPROC_FLAGS= |
478 | - fi |
479 | -else |
480 | - CAT_ENTRY_START='<!--' |
481 | - CAT_ENTRY_END='-->' |
482 | -fi |
483 | - |
484 | -AC_CHECK_PROG(XSLTPROC,xsltproc,xsltproc,) |
485 | -XSLTPROC_WORKS=no |
486 | -if test -n "$XSLTPROC"; then |
487 | - AC_MSG_CHECKING([whether xsltproc works]) |
488 | - |
489 | - if test -n "$XML_CATALOG"; then |
490 | - DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" |
491 | - else |
492 | - DB_FILE="$DOCBOOK_ROOT/docbook.xsl" |
493 | - fi |
494 | - |
495 | - $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END |
496 | -<?xml version="1.0" encoding='ISO-8859-1'?> |
497 | -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> |
498 | -<book id="test"> |
499 | -</book> |
500 | -END |
501 | - if test "$?" = 0; then |
502 | - XSLTPROC_WORKS=yes |
503 | - fi |
504 | - AC_MSG_RESULT($XSLTPROC_WORKS) |
505 | -fi |
506 | -AM_CONDITIONAL(have_xsltproc, test "$XSLTPROC_WORKS" = "yes") |
507 | - |
508 | -AC_SUBST(XML_CATALOG) |
509 | -AC_SUBST(XSLTPROC_FLAGS) |
510 | -AC_SUBST(DOCBOOK_ROOT) |
511 | -AC_SUBST(CAT_ENTRY_START) |
512 | -AC_SUBST(CAT_ENTRY_END) |
513 | -]) |
514 | - |
515 | -dnl --------------------------------------------------------------------------- |
516 | -dnl Macro: ACX_PTHREAD |
517 | -dnl This macro figures out how to build C programs using POSIX threads. It sets |
518 | -dnl the PTHREAD_LIBS output variable to the threads library and linker flags, |
519 | -dnl and the PTHREAD_CFLAGS output variable to any special C compiler flags that |
520 | -dnl are needed. (The user can also force certain compiler flags/libs to be |
521 | -dnl tested by setting these environment variables.) |
522 | -dnl |
523 | -dnl Also sets PTHREAD_CC to any special C compiler that is needed for |
524 | -dnl multi-threaded programs (defaults to the value of CC otherwise). |
525 | -dnl (This is necessary on AIX to use the special cc_r compiler alias.) |
526 | -dnl --------------------------------------------------------------------------- |
527 | - |
528 | -AC_DEFUN([ACX_PTHREAD], [ |
529 | -AC_REQUIRE([AC_CANONICAL_HOST]) |
530 | -AC_LANG_SAVE |
531 | -AC_LANG_C |
532 | -acx_pthread_ok=no |
533 | - |
534 | -# We used to check for pthread.h first, but this fails if pthread.h |
535 | -# requires special compiler flags (e.g. on True64 or Sequent). |
536 | -# It gets checked for in the link test anyway. |
537 | - |
538 | -# First of all, check if the user has set any of the PTHREAD_LIBS, |
539 | -# etcetera environment variables, and if threads linking works using |
540 | -# them: |
541 | -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
542 | - save_CFLAGS="$CFLAGS" |
543 | - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
544 | - save_LIBS="$LIBS" |
545 | - LIBS="$PTHREAD_LIBS $LIBS" |
546 | - AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) |
547 | - AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) |
548 | - AC_MSG_RESULT($acx_pthread_ok) |
549 | - if test x"$acx_pthread_ok" = xno; then |
550 | - PTHREAD_LIBS="" |
551 | - PTHREAD_CFLAGS="" |
552 | - fi |
553 | - LIBS="$save_LIBS" |
554 | - CFLAGS="$save_CFLAGS" |
555 | -fi |
556 | - |
557 | -# We must check for the threads library under a number of different |
558 | -# names; the ordering is very important because some systems |
559 | -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
560 | -# libraries is broken (non-POSIX). |
561 | - |
562 | -# Create a list of thread flags to try. Items starting with a "-" are |
563 | -# C compiler flags, and other items are library names, except for "none" |
564 | -# which indicates that we try without any flags at all, and "pthread-config" |
565 | -# which is a program returning the flags for the Pth emulation library. |
566 | - |
567 | -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
568 | - |
569 | -# The ordering *is* (sometimes) important. Some notes on the |
570 | -# individual items follow: |
571 | - |
572 | -# pthreads: AIX (must check this before -lpthread) |
573 | -# none: in case threads are in libc; should be tried before -Kthread and |
574 | -# other compiler flags to prevent continual compiler warnings |
575 | -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
576 | -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
577 | -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
578 | -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
579 | -# -pthreads: Solaris/gcc |
580 | -# -mthreads: Mingw32/gcc, Lynx/gcc |
581 | -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
582 | -# doesn't hurt to check since this sometimes defines pthreads too; |
583 | -# also defines -D_REENTRANT) |
584 | -# pthread: Linux, etcetera |
585 | -# --thread-safe: KAI C++ |
586 | -# pthread-config: use pthread-config program (for GNU Pth library) |
587 | - |
588 | -case "${host_cpu}-${host_os}" in |
589 | - *solaris*) |
590 | - |
591 | - # On Solaris (at least, for some versions), libc contains stubbed |
592 | - # (non-functional) versions of the pthreads routines, so link-based |
593 | - # tests will erroneously succeed. (We need to link with -pthread or |
594 | - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
595 | - # a function called by this macro, so we could check for that, but |
596 | - # who knows whether they'll stub that too in a future libc.) So, |
597 | - # we'll just look for -pthreads and -lpthread first: |
598 | - |
599 | - acx_pthread_flags="pthread -pthread -pthreads -mt $acx_pthread_flags" |
600 | - ;; |
601 | -esac |
602 | - |
603 | -if test x"$acx_pthread_ok" = xno; then |
604 | -for flag in $acx_pthread_flags; do |
605 | - |
606 | - case $flag in |
607 | - none) |
608 | - AC_MSG_CHECKING([whether pthreads work without any flags]) |
609 | - ;; |
610 | - |
611 | - -*) |
612 | - AC_MSG_CHECKING([whether pthreads work with $flag]) |
613 | - PTHREAD_CFLAGS="$flag" |
614 | - ;; |
615 | - |
616 | - pthread-config) |
617 | - AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) |
618 | - if test x"$acx_pthread_config" = xno; then continue; fi |
619 | - PTHREAD_CFLAGS="`pthread-config --cflags`" |
620 | - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
621 | - ;; |
622 | - |
623 | - *) |
624 | - AC_MSG_CHECKING([for the pthreads library -l$flag]) |
625 | - PTHREAD_LIBS="-l$flag" |
626 | - ;; |
627 | - esac |
628 | - |
629 | - save_LIBS="$LIBS" |
630 | - save_CFLAGS="$CFLAGS" |
631 | - LIBS="$PTHREAD_LIBS $LIBS" |
632 | - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
633 | - |
634 | - # Check for various functions. We must include pthread.h, |
635 | - # since some functions may be macros. (On the Sequent, we |
636 | - # need a special flag -Kthread to make this header compile.) |
637 | - # We check for pthread_join because it is in -lpthread on IRIX |
638 | - # while pthread_create is in libc. We check for pthread_attr_init |
639 | - # due to DEC craziness with -lpthreads. We check for |
640 | - # pthread_cleanup_push because it is one of the few pthread |
641 | - # functions on Solaris that doesn't have a non-functional libc stub. |
642 | - # We try pthread_create on general principles. |
643 | - AC_TRY_LINK([#include <pthread.h>], |
644 | - [pthread_t th; pthread_join(th, 0); |
645 | - pthread_attr_init(0); pthread_cleanup_push(0, 0); |
646 | - pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], |
647 | - [acx_pthread_ok=yes]) |
648 | - |
649 | - LIBS="$save_LIBS" |
650 | - CFLAGS="$save_CFLAGS" |
651 | - |
652 | - AC_MSG_RESULT($acx_pthread_ok) |
653 | - if test "x$acx_pthread_ok" = xyes; then |
654 | - break; |
655 | - fi |
656 | - |
657 | - PTHREAD_LIBS="" |
658 | - PTHREAD_CFLAGS="" |
659 | -done |
660 | -fi |
661 | - |
662 | -# Various other checks: |
663 | -if test "x$acx_pthread_ok" = xyes; then |
664 | - save_LIBS="$LIBS" |
665 | - LIBS="$PTHREAD_LIBS $LIBS" |
666 | - save_CFLAGS="$CFLAGS" |
667 | - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
668 | - |
669 | - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
670 | - AC_MSG_CHECKING([for joinable pthread attribute]) |
671 | - attr_name=unknown |
672 | - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
673 | - AC_TRY_LINK([#include <pthread.h>], [int attr=$attr;], |
674 | - [attr_name=$attr; break]) |
675 | - done |
676 | - AC_MSG_RESULT($attr_name) |
677 | - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
678 | - AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, |
679 | - [Define to necessary symbol if this constant |
680 | - uses a non-standard name on your system.]) |
681 | - fi |
682 | - |
683 | - AC_MSG_CHECKING([if more special flags are required for pthreads]) |
684 | - flag=no |
685 | - case "${host_cpu}-${host_os}" in |
686 | - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
687 | - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
688 | - esac |
689 | - AC_MSG_RESULT(${flag}) |
690 | - if test "x$flag" != xno; then |
691 | - PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
692 | - fi |
693 | - |
694 | - LIBS="$save_LIBS" |
695 | - CFLAGS="$save_CFLAGS" |
696 | - |
697 | - # More AIX lossage: must compile with cc_r |
698 | - AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC}) |
699 | -else |
700 | - PTHREAD_CC="$CC" |
701 | -fi |
702 | - |
703 | -AC_SUBST(PTHREAD_LIBS) |
704 | -AC_SUBST(PTHREAD_CFLAGS) |
705 | -AC_SUBST(PTHREAD_CC) |
706 | - |
707 | -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
708 | -if test x"$acx_pthread_ok" = xyes; then |
709 | - ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) |
710 | - : |
711 | -else |
712 | - acx_pthread_ok=no |
713 | - $2 |
714 | -fi |
715 | -AC_LANG_RESTORE |
716 | -]) |
717 | - |
718 | - |
719 | -dnl --------------------------------------------------------------------------- |
720 | -dnl Macro: AC_LUA_DEVEL |
721 | -dnl --------------------------------------------------------------------------- |
722 | -AC_DEFUN([AC_LUA_DEVEL],[ |
723 | - |
724 | -AC_ARG_WITH(lua, |
725 | - AC_HELP_STRING([--with-lua],[Compile with Lua scripting support (default is enabled)]), |
726 | - [ac_cv_use_lua="$with_lua"], [ac_cv_use_lua="yes"]) |
727 | -AC_CACHE_CHECK([whether to compile with Lua support], [ac_cv_use_lua], [ac_cv_use_lua=no]) |
728 | - |
729 | -if test "xac_cv_use_lua" != "xno"; then |
730 | - |
731 | -AC_DEFINE(HAVE_LUA, 1, [Define to 1 if you have Lua headers and libraries]) |
732 | -AM_CONDITIONAL(USE_LUA, test "x$ac_cv_use_lua" != "x") |
733 | - |
734 | -fi |
735 | -]) |
736 | |
737 | === modified file 'autogen.sh' |
738 | --- autogen.sh 2006-01-20 16:13:23 +0000 |
739 | +++ autogen.sh 2009-06-10 23:43:32 +0000 |
740 | @@ -1,4 +1,87 @@ |
741 | -#!/bin/sh |
742 | - |
743 | -aclocal && automake -c --foreign --add-missing && autoheader && autoconf |
744 | - |
745 | +#!/usr/bin/env bash |
746 | +# Taken from lighthttpd server (BSD). Thanks Jan! |
747 | +# Run this to generate all the initial makefiles, etc. |
748 | + |
749 | +die() { echo "$@"; exit 1; } |
750 | + |
751 | +# ACLOCAL=${ACLOCAL:-aclocal} |
752 | +ACLOCAL_FLAGS="-I m4" |
753 | +# AUTOHEADER=${AUTOHEADER:-autoheader} |
754 | +# AUTOMAKE=${AUTOMAKE:-automake} |
755 | +# --add-missing instructs automake to install missing auxiliary files |
756 | +# --copy tells it to make copies and not symlinks |
757 | +AUTOMAKE_FLAGS="--add-missing --copy --force" |
758 | +# AUTOCONF=${AUTOCONF:-autoconf} |
759 | + |
760 | +ARGV0=$0 |
761 | +ARGS="$@" |
762 | + |
763 | + |
764 | +run() { |
765 | + echo "$ARGV0: running \`$@' $ARGS" |
766 | + $@ $ARGS |
767 | +} |
768 | + |
769 | +## jump out if one of the programs returns 'false' |
770 | +set -e |
771 | + |
772 | + |
773 | +if test x$ACLOCAL = x; then |
774 | + if test \! "x`which aclocal-1.10 2> /dev/null | grep -v '^no'`" = x; then |
775 | + ACLOCAL=aclocal-1.10 |
776 | + elif test \! "x`which aclocal110 2> /dev/null | grep -v '^no'`" = x; then |
777 | + ACLOCAL=aclocal110 |
778 | + elif test \! "x`which aclocal 2> /dev/null | grep -v '^no'`" = x; then |
779 | + ACLOCAL=aclocal |
780 | + else |
781 | + echo "automake 1.10.x (aclocal) wasn't found, exiting"; exit 1 |
782 | + fi |
783 | +fi |
784 | + |
785 | +if test x$AUTOMAKE = x; then |
786 | + if test \! "x`which automake-1.10 2> /dev/null | grep -v '^no'`" = x; then |
787 | + AUTOMAKE=automake-1.10 |
788 | + elif test \! "x`which automake110 2> /dev/null | grep -v '^no'`" = x; then |
789 | + AUTOMAKE=automake110 |
790 | + elif test \! "x`which automake 2> /dev/null | grep -v '^no'`" = x; then |
791 | + AUTOMAKE=automake |
792 | + else |
793 | + echo "automake 1.10.x wasn't found, exiting"; exit 1 |
794 | + fi |
795 | +fi |
796 | + |
797 | + |
798 | +## macosx has autoconf-2.59 and autoconf-2.60 |
799 | +if test x$AUTOCONF = x; then |
800 | + if test \! "x`which autoconf-2.59 2> /dev/null | grep -v '^no'`" = x; then |
801 | + AUTOCONF=autoconf-2.59 |
802 | + elif test \! "x`which autoconf259 2> /dev/null | grep -v '^no'`" = x; then |
803 | + AUTOCONF=autoconf259 |
804 | + elif test \! "x`which autoconf 2> /dev/null | grep -v '^no'`" = x; then |
805 | + AUTOCONF=autoconf |
806 | + else |
807 | + echo "autoconf 2.59+ wasn't found, exiting"; exit 1 |
808 | + fi |
809 | +fi |
810 | + |
811 | +if test x$AUTOHEADER = x; then |
812 | + if test \! "x`which autoheader-2.59 2> /dev/null | grep -v '^no'`" = x; then |
813 | + AUTOHEADER=autoheader-2.59 |
814 | + elif test \! "x`which autoheader259 2> /dev/null | grep -v '^no'`" = x; then |
815 | + AUTOHEADER=autoheader259 |
816 | + elif test \! "x`which autoheader 2> /dev/null | grep -v '^no'`" = x; then |
817 | + AUTOHEADER=autoheader |
818 | + else |
819 | + echo "autoconf 2.59+ (autoheader) wasn't found, exiting"; exit 1 |
820 | + fi |
821 | +fi |
822 | + |
823 | + |
824 | +run $ACLOCAL $ACLOCAL_FLAGS || die "Can't execute aclocal" |
825 | +run $AUTOHEADER || die "Can't execute autoheader" |
826 | +run $AUTOMAKE $AUTOMAKE_FLAGS || die "Can't execute automake" |
827 | +run $AUTOCONF || die "Can't execute autoconf" |
828 | +echo -n "Automade with: " |
829 | +$AUTOMAKE --version | head -1 |
830 | +echo -n "Configured with: " |
831 | +$AUTOCONF --version | head -1 |
832 | |
833 | === modified file 'config/compile' |
834 | --- config/compile 2006-01-20 16:13:23 +0000 |
835 | +++ config/compile 2009-06-10 23:43:32 +0000 |
836 | @@ -1,8 +1,9 @@ |
837 | #! /bin/sh |
838 | - |
839 | # Wrapper for compilers which do not understand `-c -o'. |
840 | |
841 | -# Copyright 1999, 2000 Free Software Foundation, Inc. |
842 | +scriptversion=2005-05-14.22 |
843 | + |
844 | +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. |
845 | # Written by Tom Tromey <tromey@cygnus.com>. |
846 | # |
847 | # This program is free software; you can redistribute it and/or modify |
848 | @@ -17,83 +18,125 @@ |
849 | # |
850 | # You should have received a copy of the GNU General Public License |
851 | # along with this program; if not, write to the Free Software |
852 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
853 | +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
854 | |
855 | # As a special exception to the GNU General Public License, if you |
856 | # distribute this file as part of a program that contains a |
857 | # configuration script generated by Autoconf, you may include it under |
858 | # the same distribution terms that you use for the rest of that program. |
859 | |
860 | -# Usage: |
861 | -# compile PROGRAM [ARGS]... |
862 | -# `-o FOO.o' is removed from the args passed to the actual compile. |
863 | - |
864 | -prog=$1 |
865 | -shift |
866 | +# This file is maintained in Automake, please report |
867 | +# bugs to <bug-automake@gnu.org> or send patches to |
868 | +# <automake-patches@gnu.org>. |
869 | + |
870 | +case $1 in |
871 | + '') |
872 | + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 |
873 | + exit 1; |
874 | + ;; |
875 | + -h | --h*) |
876 | + cat <<\EOF |
877 | +Usage: compile [--help] [--version] PROGRAM [ARGS] |
878 | + |
879 | +Wrapper for compilers which do not understand `-c -o'. |
880 | +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining |
881 | +arguments, and rename the output as expected. |
882 | + |
883 | +If you are trying to build a whole package this is not the |
884 | +right script to run: please start by reading the file `INSTALL'. |
885 | + |
886 | +Report bugs to <bug-automake@gnu.org>. |
887 | +EOF |
888 | + exit $? |
889 | + ;; |
890 | + -v | --v*) |
891 | + echo "compile $scriptversion" |
892 | + exit $? |
893 | + ;; |
894 | +esac |
895 | |
896 | ofile= |
897 | cfile= |
898 | -args= |
899 | -while test $# -gt 0; do |
900 | - case "$1" in |
901 | - -o) |
902 | - # configure might choose to run compile as `compile cc -o foo foo.c'. |
903 | - # So we do something ugly here. |
904 | - ofile=$2 |
905 | - shift |
906 | - case "$ofile" in |
907 | - *.o | *.obj) |
908 | - ;; |
909 | - *) |
910 | - args="$args -o $ofile" |
911 | - ofile= |
912 | - ;; |
913 | - esac |
914 | - ;; |
915 | - *.c) |
916 | - cfile=$1 |
917 | - args="$args $1" |
918 | - ;; |
919 | - *) |
920 | - args="$args $1" |
921 | - ;; |
922 | - esac |
923 | - shift |
924 | +eat= |
925 | + |
926 | +for arg |
927 | +do |
928 | + if test -n "$eat"; then |
929 | + eat= |
930 | + else |
931 | + case $1 in |
932 | + -o) |
933 | + # configure might choose to run compile as `compile cc -o foo foo.c'. |
934 | + # So we strip `-o arg' only if arg is an object. |
935 | + eat=1 |
936 | + case $2 in |
937 | + *.o | *.obj) |
938 | + ofile=$2 |
939 | + ;; |
940 | + *) |
941 | + set x "$@" -o "$2" |
942 | + shift |
943 | + ;; |
944 | + esac |
945 | + ;; |
946 | + *.c) |
947 | + cfile=$1 |
948 | + set x "$@" "$1" |
949 | + shift |
950 | + ;; |
951 | + *) |
952 | + set x "$@" "$1" |
953 | + shift |
954 | + ;; |
955 | + esac |
956 | + fi |
957 | + shift |
958 | done |
959 | |
960 | if test -z "$ofile" || test -z "$cfile"; then |
961 | - # If no `-o' option was seen then we might have been invoked from a |
962 | - # pattern rule where we don't need one. That is ok -- this is a |
963 | - # normal compilation that the losing compiler can handle. If no |
964 | - # `.c' file was seen then we are probably linking. That is also |
965 | - # ok. |
966 | - exec "$prog" $args |
967 | + # If no `-o' option was seen then we might have been invoked from a |
968 | + # pattern rule where we don't need one. That is ok -- this is a |
969 | + # normal compilation that the losing compiler can handle. If no |
970 | + # `.c' file was seen then we are probably linking. That is also |
971 | + # ok. |
972 | + exec "$@" |
973 | fi |
974 | |
975 | # Name of file we expect compiler to create. |
976 | -cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'` |
977 | +cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` |
978 | |
979 | # Create the lock directory. |
980 | # Note: use `[/.-]' here to ensure that we don't use the same name |
981 | # that we are using for the .o file. Also, base the name on the expected |
982 | # object file name, since that is what matters with a parallel build. |
983 | -lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d |
984 | +lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d |
985 | while true; do |
986 | - if mkdir $lockdir > /dev/null 2>&1; then |
987 | - break |
988 | - fi |
989 | - sleep 1 |
990 | + if mkdir "$lockdir" >/dev/null 2>&1; then |
991 | + break |
992 | + fi |
993 | + sleep 1 |
994 | done |
995 | # FIXME: race condition here if user kills between mkdir and trap. |
996 | -trap "rmdir $lockdir; exit 1" 1 2 15 |
997 | +trap "rmdir '$lockdir'; exit 1" 1 2 15 |
998 | |
999 | # Run the compile. |
1000 | -"$prog" $args |
1001 | -status=$? |
1002 | +"$@" |
1003 | +ret=$? |
1004 | |
1005 | if test -f "$cofile"; then |
1006 | - mv "$cofile" "$ofile" |
1007 | + mv "$cofile" "$ofile" |
1008 | +elif test -f "${cofile}bj"; then |
1009 | + mv "${cofile}bj" "$ofile" |
1010 | fi |
1011 | |
1012 | -rmdir $lockdir |
1013 | -exit $status |
1014 | +rmdir "$lockdir" |
1015 | +exit $ret |
1016 | + |
1017 | +# Local Variables: |
1018 | +# mode: shell-script |
1019 | +# sh-indentation: 2 |
1020 | +# eval: (add-hook 'write-file-hooks 'time-stamp) |
1021 | +# time-stamp-start: "scriptversion=" |
1022 | +# time-stamp-format: "%:y-%02m-%02d.%02H" |
1023 | +# time-stamp-end: "$" |
1024 | +# End: |
1025 | |
1026 | === removed file 'config/config.guess' |
1027 | --- config/config.guess 2009-05-28 15:50:59 +0000 |
1028 | +++ config/config.guess 1970-01-01 00:00:00 +0000 |
1029 | @@ -1,1388 +0,0 @@ |
1030 | -#! /bin/sh |
1031 | -# Attempt to guess a canonical system name. |
1032 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
1033 | -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
1034 | - |
1035 | -timestamp='2003-02-22' |
1036 | - |
1037 | -# This file is free software; you can redistribute it and/or modify it |
1038 | -# under the terms of the GNU General Public License as published by |
1039 | -# the Free Software Foundation; either version 2 of the License, or |
1040 | -# (at your option) any later version. |
1041 | -# |
1042 | -# This program is distributed in the hope that it will be useful, but |
1043 | -# WITHOUT ANY WARRANTY; without even the implied warranty of |
1044 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1045 | -# General Public License for more details. |
1046 | -# |
1047 | -# You should have received a copy of the GNU General Public License |
1048 | -# along with this program; if not, write to the Free Software |
1049 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1050 | -# |
1051 | -# As a special exception to the GNU General Public License, if you |
1052 | -# distribute this file as part of a program that contains a |
1053 | -# configuration script generated by Autoconf, you may include it under |
1054 | -# the same distribution terms that you use for the rest of that program. |
1055 | - |
1056 | -# Originally written by Per Bothner <per@bothner.com>. |
1057 | -# Please send patches to <config-patches@gnu.org>. Submit a context |
1058 | -# diff and a properly formatted ChangeLog entry. |
1059 | -# |
1060 | -# This script attempts to guess a canonical system name similar to |
1061 | -# config.sub. If it succeeds, it prints the system name on stdout, and |
1062 | -# exits with 0. Otherwise, it exits with 1. |
1063 | -# |
1064 | -# The plan is that this can be called by configure scripts if you |
1065 | -# don't specify an explicit build system type. |
1066 | - |
1067 | -me=`echo "$0" | sed -e 's,.*/,,'` |
1068 | - |
1069 | -usage="\ |
1070 | -Usage: $0 [OPTION] |
1071 | - |
1072 | -Output the configuration name of the system \`$me' is run on. |
1073 | - |
1074 | -Operation modes: |
1075 | - -h, --help print this help, then exit |
1076 | - -t, --time-stamp print date of last modification, then exit |
1077 | - -v, --version print version number, then exit |
1078 | - |
1079 | -Report bugs and patches to <config-patches@gnu.org>." |
1080 | - |
1081 | -version="\ |
1082 | -GNU config.guess ($timestamp) |
1083 | - |
1084 | -Originally written by Per Bothner. |
1085 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
1086 | -Free Software Foundation, Inc. |
1087 | - |
1088 | -This is free software; see the source for copying conditions. There is NO |
1089 | -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
1090 | - |
1091 | -help=" |
1092 | -Try \`$me --help' for more information." |
1093 | - |
1094 | -# Parse command line |
1095 | -while test $# -gt 0 ; do |
1096 | - case $1 in |
1097 | - --time-stamp | --time* | -t ) |
1098 | - echo "$timestamp" ; exit 0 ;; |
1099 | - --version | -v ) |
1100 | - echo "$version" ; exit 0 ;; |
1101 | - --help | --h* | -h ) |
1102 | - echo "$usage"; exit 0 ;; |
1103 | - -- ) # Stop option processing |
1104 | - shift; break ;; |
1105 | - - ) # Use stdin as input. |
1106 | - break ;; |
1107 | - -* ) |
1108 | - echo "$me: invalid option $1$help" >&2 |
1109 | - exit 1 ;; |
1110 | - * ) |
1111 | - break ;; |
1112 | - esac |
1113 | -done |
1114 | - |
1115 | -if test $# != 0; then |
1116 | - echo "$me: too many arguments$help" >&2 |
1117 | - exit 1 |
1118 | -fi |
1119 | - |
1120 | -trap 'exit 1' 1 2 15 |
1121 | - |
1122 | -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
1123 | -# compiler to aid in system detection is discouraged as it requires |
1124 | -# temporary files to be created and, as you can see below, it is a |
1125 | -# headache to deal with in a portable fashion. |
1126 | - |
1127 | -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
1128 | -# use `HOST_CC' if defined, but it is deprecated. |
1129 | - |
1130 | -# Portable tmp directory creation inspired by the Autoconf team. |
1131 | - |
1132 | -set_cc_for_build=' |
1133 | -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
1134 | -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
1135 | -: ${TMPDIR=/tmp} ; |
1136 | - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
1137 | - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
1138 | - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
1139 | -dummy=$tmp/dummy ; |
1140 | -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
1141 | -case $CC_FOR_BUILD,$HOST_CC,$CC in |
1142 | - ,,) echo "int x;" > $dummy.c ; |
1143 | - for c in cc gcc c89 c99 ; do |
1144 | - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then |
1145 | - CC_FOR_BUILD="$c"; break ; |
1146 | - fi ; |
1147 | - done ; |
1148 | - if test x"$CC_FOR_BUILD" = x ; then |
1149 | - CC_FOR_BUILD=no_compiler_found ; |
1150 | - fi |
1151 | - ;; |
1152 | - ,,*) CC_FOR_BUILD=$CC ;; |
1153 | - ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
1154 | -esac ;' |
1155 | - |
1156 | -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
1157 | -# (ghazi@noc.rutgers.edu 1994-08-24) |
1158 | -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
1159 | - PATH=$PATH:/.attbin ; export PATH |
1160 | -fi |
1161 | - |
1162 | -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
1163 | -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
1164 | -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
1165 | -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
1166 | - |
1167 | -# Note: order is significant - the case branches are not exclusive. |
1168 | - |
1169 | -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
1170 | - *:NetBSD:*:*) |
1171 | - # NetBSD (nbsd) targets should (where applicable) match one or |
1172 | - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
1173 | - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
1174 | - # switched to ELF, *-*-netbsd* would select the old |
1175 | - # object file format. This provides both forward |
1176 | - # compatibility and a consistent mechanism for selecting the |
1177 | - # object file format. |
1178 | - # |
1179 | - # Note: NetBSD doesn't particularly care about the vendor |
1180 | - # portion of the name. We always set it to "unknown". |
1181 | - sysctl="sysctl -n hw.machine_arch" |
1182 | - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
1183 | - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
1184 | - case "${UNAME_MACHINE_ARCH}" in |
1185 | - armeb) machine=armeb-unknown ;; |
1186 | - arm*) machine=arm-unknown ;; |
1187 | - sh3el) machine=shl-unknown ;; |
1188 | - sh3eb) machine=sh-unknown ;; |
1189 | - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
1190 | - esac |
1191 | - # The Operating System including object format, if it has switched |
1192 | - # to ELF recently, or will in the future. |
1193 | - case "${UNAME_MACHINE_ARCH}" in |
1194 | - arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
1195 | - eval $set_cc_for_build |
1196 | - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
1197 | - | grep __ELF__ >/dev/null |
1198 | - then |
1199 | - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
1200 | - # Return netbsd for either. FIX? |
1201 | - os=netbsd |
1202 | - else |
1203 | - os=netbsdelf |
1204 | - fi |
1205 | - ;; |
1206 | - *) |
1207 | - os=netbsd |
1208 | - ;; |
1209 | - esac |
1210 | - # The OS release |
1211 | - # Debian GNU/NetBSD machines have a different userland, and |
1212 | - # thus, need a distinct triplet. However, they do not need |
1213 | - # kernel version information, so it can be replaced with a |
1214 | - # suitable tag, in the style of linux-gnu. |
1215 | - case "${UNAME_VERSION}" in |
1216 | - Debian*) |
1217 | - release='-gnu' |
1218 | - ;; |
1219 | - *) |
1220 | - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
1221 | - ;; |
1222 | - esac |
1223 | - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
1224 | - # contains redundant information, the shorter form: |
1225 | - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
1226 | - echo "${machine}-${os}${release}" |
1227 | - exit 0 ;; |
1228 | - amiga:OpenBSD:*:*) |
1229 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
1230 | - exit 0 ;; |
1231 | - arc:OpenBSD:*:*) |
1232 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
1233 | - exit 0 ;; |
1234 | - hp300:OpenBSD:*:*) |
1235 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
1236 | - exit 0 ;; |
1237 | - mac68k:OpenBSD:*:*) |
1238 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
1239 | - exit 0 ;; |
1240 | - macppc:OpenBSD:*:*) |
1241 | - echo powerpc-unknown-openbsd${UNAME_RELEASE} |
1242 | - exit 0 ;; |
1243 | - mvme68k:OpenBSD:*:*) |
1244 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
1245 | - exit 0 ;; |
1246 | - mvme88k:OpenBSD:*:*) |
1247 | - echo m88k-unknown-openbsd${UNAME_RELEASE} |
1248 | - exit 0 ;; |
1249 | - mvmeppc:OpenBSD:*:*) |
1250 | - echo powerpc-unknown-openbsd${UNAME_RELEASE} |
1251 | - exit 0 ;; |
1252 | - pmax:OpenBSD:*:*) |
1253 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
1254 | - exit 0 ;; |
1255 | - sgi:OpenBSD:*:*) |
1256 | - echo mipseb-unknown-openbsd${UNAME_RELEASE} |
1257 | - exit 0 ;; |
1258 | - sun3:OpenBSD:*:*) |
1259 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
1260 | - exit 0 ;; |
1261 | - wgrisc:OpenBSD:*:*) |
1262 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
1263 | - exit 0 ;; |
1264 | - *:OpenBSD:*:*) |
1265 | - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} |
1266 | - exit 0 ;; |
1267 | - alpha:OSF1:*:*) |
1268 | - if test $UNAME_RELEASE = "V4.0"; then |
1269 | - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
1270 | - fi |
1271 | - # According to Compaq, /usr/sbin/psrinfo has been available on |
1272 | - # OSF/1 and Tru64 systems produced since 1995. I hope that |
1273 | - # covers most systems running today. This code pipes the CPU |
1274 | - # types through head -n 1, so we only detect the type of CPU 0. |
1275 | - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
1276 | - case "$ALPHA_CPU_TYPE" in |
1277 | - "EV4 (21064)") |
1278 | - UNAME_MACHINE="alpha" ;; |
1279 | - "EV4.5 (21064)") |
1280 | - UNAME_MACHINE="alpha" ;; |
1281 | - "LCA4 (21066/21068)") |
1282 | - UNAME_MACHINE="alpha" ;; |
1283 | - "EV5 (21164)") |
1284 | - UNAME_MACHINE="alphaev5" ;; |
1285 | - "EV5.6 (21164A)") |
1286 | - UNAME_MACHINE="alphaev56" ;; |
1287 | - "EV5.6 (21164PC)") |
1288 | - UNAME_MACHINE="alphapca56" ;; |
1289 | - "EV5.7 (21164PC)") |
1290 | - UNAME_MACHINE="alphapca57" ;; |
1291 | - "EV6 (21264)") |
1292 | - UNAME_MACHINE="alphaev6" ;; |
1293 | - "EV6.7 (21264A)") |
1294 | - UNAME_MACHINE="alphaev67" ;; |
1295 | - "EV6.8CB (21264C)") |
1296 | - UNAME_MACHINE="alphaev68" ;; |
1297 | - "EV6.8AL (21264B)") |
1298 | - UNAME_MACHINE="alphaev68" ;; |
1299 | - "EV6.8CX (21264D)") |
1300 | - UNAME_MACHINE="alphaev68" ;; |
1301 | - "EV6.9A (21264/EV69A)") |
1302 | - UNAME_MACHINE="alphaev69" ;; |
1303 | - "EV7 (21364)") |
1304 | - UNAME_MACHINE="alphaev7" ;; |
1305 | - "EV7.9 (21364A)") |
1306 | - UNAME_MACHINE="alphaev79" ;; |
1307 | - esac |
1308 | - # A Vn.n version is a released version. |
1309 | - # A Tn.n version is a released field test version. |
1310 | - # A Xn.n version is an unreleased experimental baselevel. |
1311 | - # 1.2 uses "1.2" for uname -r. |
1312 | - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
1313 | - exit 0 ;; |
1314 | - Alpha\ *:Windows_NT*:*) |
1315 | - # How do we know it's Interix rather than the generic POSIX subsystem? |
1316 | - # Should we change UNAME_MACHINE based on the output of uname instead |
1317 | - # of the specific Alpha model? |
1318 | - echo alpha-pc-interix |
1319 | - exit 0 ;; |
1320 | - 21064:Windows_NT:50:3) |
1321 | - echo alpha-dec-winnt3.5 |
1322 | - exit 0 ;; |
1323 | - Amiga*:UNIX_System_V:4.0:*) |
1324 | - echo m68k-unknown-sysv4 |
1325 | - exit 0;; |
1326 | - *:[Aa]miga[Oo][Ss]:*:*) |
1327 | - echo ${UNAME_MACHINE}-unknown-amigaos |
1328 | - exit 0 ;; |
1329 | - *:[Mm]orph[Oo][Ss]:*:*) |
1330 | - echo ${UNAME_MACHINE}-unknown-morphos |
1331 | - exit 0 ;; |
1332 | - *:OS/390:*:*) |
1333 | - echo i370-ibm-openedition |
1334 | - exit 0 ;; |
1335 | - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
1336 | - echo arm-acorn-riscix${UNAME_RELEASE} |
1337 | - exit 0;; |
1338 | - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
1339 | - echo hppa1.1-hitachi-hiuxmpp |
1340 | - exit 0;; |
1341 | - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
1342 | - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
1343 | - if test "`(/bin/universe) 2>/dev/null`" = att ; then |
1344 | - echo pyramid-pyramid-sysv3 |
1345 | - else |
1346 | - echo pyramid-pyramid-bsd |
1347 | - fi |
1348 | - exit 0 ;; |
1349 | - NILE*:*:*:dcosx) |
1350 | - echo pyramid-pyramid-svr4 |
1351 | - exit 0 ;; |
1352 | - DRS?6000:UNIX_SV:4.2*:7*) |
1353 | - case `/usr/bin/uname -p` in |
1354 | - sparc) echo sparc-icl-nx7 && exit 0 ;; |
1355 | - esac ;; |
1356 | - sun4H:SunOS:5.*:*) |
1357 | - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1358 | - exit 0 ;; |
1359 | - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
1360 | - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1361 | - exit 0 ;; |
1362 | - i86pc:SunOS:5.*:*) |
1363 | - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1364 | - exit 0 ;; |
1365 | - sun4*:SunOS:6*:*) |
1366 | - # According to config.sub, this is the proper way to canonicalize |
1367 | - # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
1368 | - # it's likely to be more like Solaris than SunOS4. |
1369 | - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1370 | - exit 0 ;; |
1371 | - sun4*:SunOS:*:*) |
1372 | - case "`/usr/bin/arch -k`" in |
1373 | - Series*|S4*) |
1374 | - UNAME_RELEASE=`uname -v` |
1375 | - ;; |
1376 | - esac |
1377 | - # Japanese Language versions have a version number like `4.1.3-JL'. |
1378 | - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
1379 | - exit 0 ;; |
1380 | - sun3*:SunOS:*:*) |
1381 | - echo m68k-sun-sunos${UNAME_RELEASE} |
1382 | - exit 0 ;; |
1383 | - sun*:*:4.2BSD:*) |
1384 | - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
1385 | - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
1386 | - case "`/bin/arch`" in |
1387 | - sun3) |
1388 | - echo m68k-sun-sunos${UNAME_RELEASE} |
1389 | - ;; |
1390 | - sun4) |
1391 | - echo sparc-sun-sunos${UNAME_RELEASE} |
1392 | - ;; |
1393 | - esac |
1394 | - exit 0 ;; |
1395 | - aushp:SunOS:*:*) |
1396 | - echo sparc-auspex-sunos${UNAME_RELEASE} |
1397 | - exit 0 ;; |
1398 | - # The situation for MiNT is a little confusing. The machine name |
1399 | - # can be virtually everything (everything which is not |
1400 | - # "atarist" or "atariste" at least should have a processor |
1401 | - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
1402 | - # to the lowercase version "mint" (or "freemint"). Finally |
1403 | - # the system name "TOS" denotes a system which is actually not |
1404 | - # MiNT. But MiNT is downward compatible to TOS, so this should |
1405 | - # be no problem. |
1406 | - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
1407 | - echo m68k-atari-mint${UNAME_RELEASE} |
1408 | - exit 0 ;; |
1409 | - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
1410 | - echo m68k-atari-mint${UNAME_RELEASE} |
1411 | - exit 0 ;; |
1412 | - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
1413 | - echo m68k-atari-mint${UNAME_RELEASE} |
1414 | - exit 0 ;; |
1415 | - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
1416 | - echo m68k-milan-mint${UNAME_RELEASE} |
1417 | - exit 0 ;; |
1418 | - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
1419 | - echo m68k-hades-mint${UNAME_RELEASE} |
1420 | - exit 0 ;; |
1421 | - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
1422 | - echo m68k-unknown-mint${UNAME_RELEASE} |
1423 | - exit 0 ;; |
1424 | - powerpc:machten:*:*) |
1425 | - echo powerpc-apple-machten${UNAME_RELEASE} |
1426 | - exit 0 ;; |
1427 | - RISC*:Mach:*:*) |
1428 | - echo mips-dec-mach_bsd4.3 |
1429 | - exit 0 ;; |
1430 | - RISC*:ULTRIX:*:*) |
1431 | - echo mips-dec-ultrix${UNAME_RELEASE} |
1432 | - exit 0 ;; |
1433 | - VAX*:ULTRIX*:*:*) |
1434 | - echo vax-dec-ultrix${UNAME_RELEASE} |
1435 | - exit 0 ;; |
1436 | - 2020:CLIX:*:* | 2430:CLIX:*:*) |
1437 | - echo clipper-intergraph-clix${UNAME_RELEASE} |
1438 | - exit 0 ;; |
1439 | - mips:*:*:UMIPS | mips:*:*:RISCos) |
1440 | - eval $set_cc_for_build |
1441 | - sed 's/^ //' << EOF >$dummy.c |
1442 | -#ifdef __cplusplus |
1443 | -#include <stdio.h> /* for printf() prototype */ |
1444 | - int main (int argc, char *argv[]) { |
1445 | -#else |
1446 | - int main (argc, argv) int argc; char *argv[]; { |
1447 | -#endif |
1448 | - #if defined (host_mips) && defined (MIPSEB) |
1449 | - #if defined (SYSTYPE_SYSV) |
1450 | - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); |
1451 | - #endif |
1452 | - #if defined (SYSTYPE_SVR4) |
1453 | - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); |
1454 | - #endif |
1455 | - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
1456 | - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); |
1457 | - #endif |
1458 | - #endif |
1459 | - exit (-1); |
1460 | - } |
1461 | -EOF |
1462 | - $CC_FOR_BUILD -o $dummy $dummy.c \ |
1463 | - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
1464 | - && exit 0 |
1465 | - echo mips-mips-riscos${UNAME_RELEASE} |
1466 | - exit 0 ;; |
1467 | - Motorola:PowerMAX_OS:*:*) |
1468 | - echo powerpc-motorola-powermax |
1469 | - exit 0 ;; |
1470 | - Motorola:*:4.3:PL8-*) |
1471 | - echo powerpc-harris-powermax |
1472 | - exit 0 ;; |
1473 | - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
1474 | - echo powerpc-harris-powermax |
1475 | - exit 0 ;; |
1476 | - Night_Hawk:Power_UNIX:*:*) |
1477 | - echo powerpc-harris-powerunix |
1478 | - exit 0 ;; |
1479 | - m88k:CX/UX:7*:*) |
1480 | - echo m88k-harris-cxux7 |
1481 | - exit 0 ;; |
1482 | - m88k:*:4*:R4*) |
1483 | - echo m88k-motorola-sysv4 |
1484 | - exit 0 ;; |
1485 | - m88k:*:3*:R3*) |
1486 | - echo m88k-motorola-sysv3 |
1487 | - exit 0 ;; |
1488 | - AViiON:dgux:*:*) |
1489 | - # DG/UX returns AViiON for all architectures |
1490 | - UNAME_PROCESSOR=`/usr/bin/uname -p` |
1491 | - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
1492 | - then |
1493 | - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
1494 | - [ ${TARGET_BINARY_INTERFACE}x = x ] |
1495 | - then |
1496 | - echo m88k-dg-dgux${UNAME_RELEASE} |
1497 | - else |
1498 | - echo m88k-dg-dguxbcs${UNAME_RELEASE} |
1499 | - fi |
1500 | - else |
1501 | - echo i586-dg-dgux${UNAME_RELEASE} |
1502 | - fi |
1503 | - exit 0 ;; |
1504 | - M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
1505 | - echo m88k-dolphin-sysv3 |
1506 | - exit 0 ;; |
1507 | - M88*:*:R3*:*) |
1508 | - # Delta 88k system running SVR3 |
1509 | - echo m88k-motorola-sysv3 |
1510 | - exit 0 ;; |
1511 | - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
1512 | - echo m88k-tektronix-sysv3 |
1513 | - exit 0 ;; |
1514 | - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
1515 | - echo m68k-tektronix-bsd |
1516 | - exit 0 ;; |
1517 | - *:IRIX*:*:*) |
1518 | - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
1519 | - exit 0 ;; |
1520 | - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
1521 | - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
1522 | - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
1523 | - i*86:AIX:*:*) |
1524 | - echo i386-ibm-aix |
1525 | - exit 0 ;; |
1526 | - ia64:AIX:*:*) |
1527 | - if [ -x /usr/bin/oslevel ] ; then |
1528 | - IBM_REV=`/usr/bin/oslevel` |
1529 | - else |
1530 | - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
1531 | - fi |
1532 | - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} |
1533 | - exit 0 ;; |
1534 | - *:AIX:2:3) |
1535 | - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
1536 | - eval $set_cc_for_build |
1537 | - sed 's/^ //' << EOF >$dummy.c |
1538 | - #include <sys/systemcfg.h> |
1539 | - |
1540 | - main() |
1541 | - { |
1542 | - if (!__power_pc()) |
1543 | - exit(1); |
1544 | - puts("powerpc-ibm-aix3.2.5"); |
1545 | - exit(0); |
1546 | - } |
1547 | -EOF |
1548 | - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 |
1549 | - echo rs6000-ibm-aix3.2.5 |
1550 | - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
1551 | - echo rs6000-ibm-aix3.2.4 |
1552 | - else |
1553 | - echo rs6000-ibm-aix3.2 |
1554 | - fi |
1555 | - exit 0 ;; |
1556 | - *:AIX:*:[45]) |
1557 | - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
1558 | - if /usr/bin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
1559 | - IBM_ARCH=rs6000 |
1560 | - else |
1561 | - IBM_ARCH=powerpc |
1562 | - fi |
1563 | - if [ -x /usr/bin/oslevel ] ; then |
1564 | - IBM_REV=`/usr/bin/oslevel` |
1565 | - else |
1566 | - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
1567 | - fi |
1568 | - echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
1569 | - exit 0 ;; |
1570 | - *:AIX:*:*) |
1571 | - echo rs6000-ibm-aix |
1572 | - exit 0 ;; |
1573 | - ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
1574 | - echo romp-ibm-bsd4.4 |
1575 | - exit 0 ;; |
1576 | - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
1577 | - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
1578 | - exit 0 ;; # report: romp-ibm BSD 4.3 |
1579 | - *:BOSX:*:*) |
1580 | - echo rs6000-bull-bosx |
1581 | - exit 0 ;; |
1582 | - DPX/2?00:B.O.S.:*:*) |
1583 | - echo m68k-bull-sysv3 |
1584 | - exit 0 ;; |
1585 | - 9000/[34]??:4.3bsd:1.*:*) |
1586 | - echo m68k-hp-bsd |
1587 | - exit 0 ;; |
1588 | - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
1589 | - echo m68k-hp-bsd4.4 |
1590 | - exit 0 ;; |
1591 | - 9000/[34678]??:HP-UX:*:*) |
1592 | - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
1593 | - case "${UNAME_MACHINE}" in |
1594 | - 9000/31? ) HP_ARCH=m68000 ;; |
1595 | - 9000/[34]?? ) HP_ARCH=m68k ;; |
1596 | - 9000/[678][0-9][0-9]) |
1597 | - if [ -x /usr/bin/getconf ]; then |
1598 | - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
1599 | - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
1600 | - case "${sc_cpu_version}" in |
1601 | - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
1602 | - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
1603 | - 532) # CPU_PA_RISC2_0 |
1604 | - case "${sc_kernel_bits}" in |
1605 | - 32) HP_ARCH="hppa2.0n" ;; |
1606 | - 64) HP_ARCH="hppa2.0w" ;; |
1607 | - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
1608 | - esac ;; |
1609 | - esac |
1610 | - fi |
1611 | - if [ "${HP_ARCH}" = "" ]; then |
1612 | - eval $set_cc_for_build |
1613 | - sed 's/^ //' << EOF >$dummy.c |
1614 | - |
1615 | - #define _HPUX_SOURCE |
1616 | - #include <stdlib.h> |
1617 | - #include <unistd.h> |
1618 | - |
1619 | - int main () |
1620 | - { |
1621 | - #if defined(_SC_KERNEL_BITS) |
1622 | - long bits = sysconf(_SC_KERNEL_BITS); |
1623 | - #endif |
1624 | - long cpu = sysconf (_SC_CPU_VERSION); |
1625 | - |
1626 | - switch (cpu) |
1627 | - { |
1628 | - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
1629 | - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
1630 | - case CPU_PA_RISC2_0: |
1631 | - #if defined(_SC_KERNEL_BITS) |
1632 | - switch (bits) |
1633 | - { |
1634 | - case 64: puts ("hppa2.0w"); break; |
1635 | - case 32: puts ("hppa2.0n"); break; |
1636 | - default: puts ("hppa2.0"); break; |
1637 | - } break; |
1638 | - #else /* !defined(_SC_KERNEL_BITS) */ |
1639 | - puts ("hppa2.0"); break; |
1640 | - #endif |
1641 | - default: puts ("hppa1.0"); break; |
1642 | - } |
1643 | - exit (0); |
1644 | - } |
1645 | -EOF |
1646 | - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
1647 | - test -z "$HP_ARCH" && HP_ARCH=hppa |
1648 | - fi ;; |
1649 | - esac |
1650 | - if [ ${HP_ARCH} = "hppa2.0w" ] |
1651 | - then |
1652 | - # avoid double evaluation of $set_cc_for_build |
1653 | - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build |
1654 | - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null |
1655 | - then |
1656 | - HP_ARCH="hppa2.0w" |
1657 | - else |
1658 | - HP_ARCH="hppa64" |
1659 | - fi |
1660 | - fi |
1661 | - echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
1662 | - exit 0 ;; |
1663 | - ia64:HP-UX:*:*) |
1664 | - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
1665 | - echo ia64-hp-hpux${HPUX_REV} |
1666 | - exit 0 ;; |
1667 | - 3050*:HI-UX:*:*) |
1668 | - eval $set_cc_for_build |
1669 | - sed 's/^ //' << EOF >$dummy.c |
1670 | - #include <unistd.h> |
1671 | - int |
1672 | - main () |
1673 | - { |
1674 | - long cpu = sysconf (_SC_CPU_VERSION); |
1675 | - /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
1676 | - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
1677 | - results, however. */ |
1678 | - if (CPU_IS_PA_RISC (cpu)) |
1679 | - { |
1680 | - switch (cpu) |
1681 | - { |
1682 | - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
1683 | - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
1684 | - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
1685 | - default: puts ("hppa-hitachi-hiuxwe2"); break; |
1686 | - } |
1687 | - } |
1688 | - else if (CPU_IS_HP_MC68K (cpu)) |
1689 | - puts ("m68k-hitachi-hiuxwe2"); |
1690 | - else puts ("unknown-hitachi-hiuxwe2"); |
1691 | - exit (0); |
1692 | - } |
1693 | -EOF |
1694 | - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 |
1695 | - echo unknown-hitachi-hiuxwe2 |
1696 | - exit 0 ;; |
1697 | - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
1698 | - echo hppa1.1-hp-bsd |
1699 | - exit 0 ;; |
1700 | - 9000/8??:4.3bsd:*:*) |
1701 | - echo hppa1.0-hp-bsd |
1702 | - exit 0 ;; |
1703 | - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
1704 | - echo hppa1.0-hp-mpeix |
1705 | - exit 0 ;; |
1706 | - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
1707 | - echo hppa1.1-hp-osf |
1708 | - exit 0 ;; |
1709 | - hp8??:OSF1:*:*) |
1710 | - echo hppa1.0-hp-osf |
1711 | - exit 0 ;; |
1712 | - i*86:OSF1:*:*) |
1713 | - if [ -x /usr/sbin/sysversion ] ; then |
1714 | - echo ${UNAME_MACHINE}-unknown-osf1mk |
1715 | - else |
1716 | - echo ${UNAME_MACHINE}-unknown-osf1 |
1717 | - fi |
1718 | - exit 0 ;; |
1719 | - parisc*:Lites*:*:*) |
1720 | - echo hppa1.1-hp-lites |
1721 | - exit 0 ;; |
1722 | - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
1723 | - echo c1-convex-bsd |
1724 | - exit 0 ;; |
1725 | - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
1726 | - if getsysinfo -f scalar_acc |
1727 | - then echo c32-convex-bsd |
1728 | - else echo c2-convex-bsd |
1729 | - fi |
1730 | - exit 0 ;; |
1731 | - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
1732 | - echo c34-convex-bsd |
1733 | - exit 0 ;; |
1734 | - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
1735 | - echo c38-convex-bsd |
1736 | - exit 0 ;; |
1737 | - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
1738 | - echo c4-convex-bsd |
1739 | - exit 0 ;; |
1740 | - CRAY*Y-MP:*:*:*) |
1741 | - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1742 | - exit 0 ;; |
1743 | - CRAY*[A-Z]90:*:*:*) |
1744 | - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
1745 | - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
1746 | - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
1747 | - -e 's/\.[^.]*$/.X/' |
1748 | - exit 0 ;; |
1749 | - CRAY*TS:*:*:*) |
1750 | - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1751 | - exit 0 ;; |
1752 | - CRAY*T3E:*:*:*) |
1753 | - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1754 | - exit 0 ;; |
1755 | - CRAY*SV1:*:*:*) |
1756 | - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1757 | - exit 0 ;; |
1758 | - *:UNICOS/mp:*:*) |
1759 | - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1760 | - exit 0 ;; |
1761 | - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
1762 | - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
1763 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
1764 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
1765 | - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
1766 | - exit 0 ;; |
1767 | - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
1768 | - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
1769 | - exit 0 ;; |
1770 | - sparc*:BSD/OS:*:*) |
1771 | - echo sparc-unknown-bsdi${UNAME_RELEASE} |
1772 | - exit 0 ;; |
1773 | - *:BSD/OS:*:*) |
1774 | - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
1775 | - exit 0 ;; |
1776 | - *:FreeBSD:*:*) |
1777 | - # Determine whether the default compiler uses glibc. |
1778 | - eval $set_cc_for_build |
1779 | - sed 's/^ //' << EOF >$dummy.c |
1780 | - #include <features.h> |
1781 | - #if __GLIBC__ >= 2 |
1782 | - LIBC=gnu |
1783 | - #else |
1784 | - LIBC= |
1785 | - #endif |
1786 | -EOF |
1787 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
1788 | - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
1789 | - exit 0 ;; |
1790 | - i*:CYGWIN*:*) |
1791 | - echo ${UNAME_MACHINE}-pc-cygwin |
1792 | - exit 0 ;; |
1793 | - i*:MINGW*:*) |
1794 | - echo ${UNAME_MACHINE}-pc-mingw32 |
1795 | - exit 0 ;; |
1796 | - i*:PW*:*) |
1797 | - echo ${UNAME_MACHINE}-pc-pw32 |
1798 | - exit 0 ;; |
1799 | - x86:Interix*:3*) |
1800 | - echo i586-pc-interix3 |
1801 | - exit 0 ;; |
1802 | - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
1803 | - echo i${UNAME_MACHINE}-pc-mks |
1804 | - exit 0 ;; |
1805 | - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
1806 | - # How do we know it's Interix rather than the generic POSIX subsystem? |
1807 | - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
1808 | - # UNAME_MACHINE based on the output of uname instead of i386? |
1809 | - echo i586-pc-interix |
1810 | - exit 0 ;; |
1811 | - i*:UWIN*:*) |
1812 | - echo ${UNAME_MACHINE}-pc-uwin |
1813 | - exit 0 ;; |
1814 | - p*:CYGWIN*:*) |
1815 | - echo powerpcle-unknown-cygwin |
1816 | - exit 0 ;; |
1817 | - prep*:SunOS:5.*:*) |
1818 | - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1819 | - exit 0 ;; |
1820 | - *:GNU:*:*) |
1821 | - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
1822 | - exit 0 ;; |
1823 | - i*86:Minix:*:*) |
1824 | - echo ${UNAME_MACHINE}-pc-minix |
1825 | - exit 0 ;; |
1826 | - arm*:Linux:*:*) |
1827 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
1828 | - exit 0 ;; |
1829 | - ia64:Linux:*:*) |
1830 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
1831 | - exit 0 ;; |
1832 | - m68*:Linux:*:*) |
1833 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
1834 | - exit 0 ;; |
1835 | - mips:Linux:*:*) |
1836 | - eval $set_cc_for_build |
1837 | - sed 's/^ //' << EOF >$dummy.c |
1838 | - #undef CPU |
1839 | - #undef mips |
1840 | - #undef mipsel |
1841 | - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
1842 | - CPU=mipsel |
1843 | - #else |
1844 | - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
1845 | - CPU=mips |
1846 | - #else |
1847 | - CPU= |
1848 | - #endif |
1849 | - #endif |
1850 | -EOF |
1851 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
1852 | - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 |
1853 | - ;; |
1854 | - mips64:Linux:*:*) |
1855 | - eval $set_cc_for_build |
1856 | - sed 's/^ //' << EOF >$dummy.c |
1857 | - #undef CPU |
1858 | - #undef mips64 |
1859 | - #undef mips64el |
1860 | - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
1861 | - CPU=mips64el |
1862 | - #else |
1863 | - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
1864 | - CPU=mips64 |
1865 | - #else |
1866 | - CPU= |
1867 | - #endif |
1868 | - #endif |
1869 | -EOF |
1870 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
1871 | - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 |
1872 | - ;; |
1873 | - ppc:Linux:*:*) |
1874 | - echo powerpc-unknown-linux-gnu |
1875 | - exit 0 ;; |
1876 | - ppc64:Linux:*:*) |
1877 | - echo powerpc64-unknown-linux-gnu |
1878 | - exit 0 ;; |
1879 | - alpha:Linux:*:*) |
1880 | - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
1881 | - EV5) UNAME_MACHINE=alphaev5 ;; |
1882 | - EV56) UNAME_MACHINE=alphaev56 ;; |
1883 | - PCA56) UNAME_MACHINE=alphapca56 ;; |
1884 | - PCA57) UNAME_MACHINE=alphapca56 ;; |
1885 | - EV6) UNAME_MACHINE=alphaev6 ;; |
1886 | - EV67) UNAME_MACHINE=alphaev67 ;; |
1887 | - EV68*) UNAME_MACHINE=alphaev68 ;; |
1888 | - esac |
1889 | - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
1890 | - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
1891 | - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
1892 | - exit 0 ;; |
1893 | - parisc:Linux:*:* | hppa:Linux:*:*) |
1894 | - # Look for CPU level |
1895 | - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1896 | - PA7*) echo hppa1.1-unknown-linux-gnu ;; |
1897 | - PA8*) echo hppa2.0-unknown-linux-gnu ;; |
1898 | - *) echo hppa-unknown-linux-gnu ;; |
1899 | - esac |
1900 | - exit 0 ;; |
1901 | - parisc64:Linux:*:* | hppa64:Linux:*:*) |
1902 | - echo hppa64-unknown-linux-gnu |
1903 | - exit 0 ;; |
1904 | - s390:Linux:*:* | s390x:Linux:*:*) |
1905 | - echo ${UNAME_MACHINE}-ibm-linux |
1906 | - exit 0 ;; |
1907 | - sh*:Linux:*:*) |
1908 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
1909 | - exit 0 ;; |
1910 | - sparc:Linux:*:* | sparc64:Linux:*:*) |
1911 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
1912 | - exit 0 ;; |
1913 | - x86_64:Linux:*:*) |
1914 | - echo x86_64-unknown-linux-gnu |
1915 | - exit 0 ;; |
1916 | - i*86:Linux:*:*) |
1917 | - # The BFD linker knows what the default object file format is, so |
1918 | - # first see if it will tell us. cd to the root directory to prevent |
1919 | - # problems with other programs or directories called `ld' in the path. |
1920 | - # Set LC_ALL=C to ensure ld outputs messages in English. |
1921 | - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
1922 | - | sed -ne '/supported targets:/!d |
1923 | - s/[ ][ ]*/ /g |
1924 | - s/.*supported targets: *// |
1925 | - s/ .*// |
1926 | - p'` |
1927 | - case "$ld_supported_targets" in |
1928 | - elf32-i386) |
1929 | - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
1930 | - ;; |
1931 | - a.out-i386-linux) |
1932 | - echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
1933 | - exit 0 ;; |
1934 | - coff-i386) |
1935 | - echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
1936 | - exit 0 ;; |
1937 | - "") |
1938 | - # Either a pre-BFD a.out linker (linux-gnuoldld) or |
1939 | - # one that does not give us useful --help. |
1940 | - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
1941 | - exit 0 ;; |
1942 | - esac |
1943 | - # Determine whether the default compiler is a.out or elf |
1944 | - eval $set_cc_for_build |
1945 | - sed 's/^ //' << EOF >$dummy.c |
1946 | - #include <features.h> |
1947 | - #ifdef __ELF__ |
1948 | - # ifdef __GLIBC__ |
1949 | - # if __GLIBC__ >= 2 |
1950 | - LIBC=gnu |
1951 | - # else |
1952 | - LIBC=gnulibc1 |
1953 | - # endif |
1954 | - # else |
1955 | - LIBC=gnulibc1 |
1956 | - # endif |
1957 | - #else |
1958 | - #ifdef __INTEL_COMPILER |
1959 | - LIBC=gnu |
1960 | - #else |
1961 | - LIBC=gnuaout |
1962 | - #endif |
1963 | - #endif |
1964 | -EOF |
1965 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
1966 | - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
1967 | - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
1968 | - ;; |
1969 | - i*86:DYNIX/ptx:4*:*) |
1970 | - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1971 | - # earlier versions are messed up and put the nodename in both |
1972 | - # sysname and nodename. |
1973 | - echo i386-sequent-sysv4 |
1974 | - exit 0 ;; |
1975 | - i*86:UNIX_SV:4.2MP:2.*) |
1976 | - # Unixware is an offshoot of SVR4, but it has its own version |
1977 | - # number series starting with 2... |
1978 | - # I am not positive that other SVR4 systems won't match this, |
1979 | - # I just have to hope. -- rms. |
1980 | - # Use sysv4.2uw... so that sysv4* matches it. |
1981 | - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
1982 | - exit 0 ;; |
1983 | - i*86:OS/2:*:*) |
1984 | - # If we were able to find `uname', then EMX Unix compatibility |
1985 | - # is probably installed. |
1986 | - echo ${UNAME_MACHINE}-pc-os2-emx |
1987 | - exit 0 ;; |
1988 | - i*86:XTS-300:*:STOP) |
1989 | - echo ${UNAME_MACHINE}-unknown-stop |
1990 | - exit 0 ;; |
1991 | - i*86:atheos:*:*) |
1992 | - echo ${UNAME_MACHINE}-unknown-atheos |
1993 | - exit 0 ;; |
1994 | - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
1995 | - echo i386-unknown-lynxos${UNAME_RELEASE} |
1996 | - exit 0 ;; |
1997 | - i*86:*DOS:*:*) |
1998 | - echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1999 | - exit 0 ;; |
2000 | - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
2001 | - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
2002 | - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
2003 | - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
2004 | - else |
2005 | - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
2006 | - fi |
2007 | - exit 0 ;; |
2008 | - i*86:*:5:[78]*) |
2009 | - case `/bin/uname -X | grep "^Machine"` in |
2010 | - *486*) UNAME_MACHINE=i486 ;; |
2011 | - *Pentium) UNAME_MACHINE=i586 ;; |
2012 | - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
2013 | - esac |
2014 | - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
2015 | - exit 0 ;; |
2016 | - i*86:*:3.2:*) |
2017 | - if test -f /usr/options/cb.name; then |
2018 | - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
2019 | - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
2020 | - elif /bin/uname -X 2>/dev/null >/dev/null ; then |
2021 | - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
2022 | - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
2023 | - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
2024 | - && UNAME_MACHINE=i586 |
2025 | - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
2026 | - && UNAME_MACHINE=i686 |
2027 | - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
2028 | - && UNAME_MACHINE=i686 |
2029 | - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
2030 | - else |
2031 | - echo ${UNAME_MACHINE}-pc-sysv32 |
2032 | - fi |
2033 | - exit 0 ;; |
2034 | - pc:*:*:*) |
2035 | - # Left here for compatibility: |
2036 | - # uname -m prints for DJGPP always 'pc', but it prints nothing about |
2037 | - # the processor, so we play safe by assuming i386. |
2038 | - echo i386-pc-msdosdjgpp |
2039 | - exit 0 ;; |
2040 | - Intel:Mach:3*:*) |
2041 | - echo i386-pc-mach3 |
2042 | - exit 0 ;; |
2043 | - paragon:*:*:*) |
2044 | - echo i860-intel-osf1 |
2045 | - exit 0 ;; |
2046 | - i860:*:4.*:*) # i860-SVR4 |
2047 | - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
2048 | - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
2049 | - else # Add other i860-SVR4 vendors below as they are discovered. |
2050 | - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
2051 | - fi |
2052 | - exit 0 ;; |
2053 | - mini*:CTIX:SYS*5:*) |
2054 | - # "miniframe" |
2055 | - echo m68010-convergent-sysv |
2056 | - exit 0 ;; |
2057 | - mc68k:UNIX:SYSTEM5:3.51m) |
2058 | - echo m68k-convergent-sysv |
2059 | - exit 0 ;; |
2060 | - M680?0:D-NIX:5.3:*) |
2061 | - echo m68k-diab-dnix |
2062 | - exit 0 ;; |
2063 | - M68*:*:R3V[567]*:*) |
2064 | - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
2065 | - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0) |
2066 | - OS_REL='' |
2067 | - test -r /etc/.relid \ |
2068 | - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
2069 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
2070 | - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 |
2071 | - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
2072 | - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; |
2073 | - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
2074 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
2075 | - && echo i486-ncr-sysv4 && exit 0 ;; |
2076 | - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
2077 | - echo m68k-unknown-lynxos${UNAME_RELEASE} |
2078 | - exit 0 ;; |
2079 | - mc68030:UNIX_System_V:4.*:*) |
2080 | - echo m68k-atari-sysv4 |
2081 | - exit 0 ;; |
2082 | - TSUNAMI:LynxOS:2.*:*) |
2083 | - echo sparc-unknown-lynxos${UNAME_RELEASE} |
2084 | - exit 0 ;; |
2085 | - rs6000:LynxOS:2.*:*) |
2086 | - echo rs6000-unknown-lynxos${UNAME_RELEASE} |
2087 | - exit 0 ;; |
2088 | - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
2089 | - echo powerpc-unknown-lynxos${UNAME_RELEASE} |
2090 | - exit 0 ;; |
2091 | - SM[BE]S:UNIX_SV:*:*) |
2092 | - echo mips-dde-sysv${UNAME_RELEASE} |
2093 | - exit 0 ;; |
2094 | - RM*:ReliantUNIX-*:*:*) |
2095 | - echo mips-sni-sysv4 |
2096 | - exit 0 ;; |
2097 | - RM*:SINIX-*:*:*) |
2098 | - echo mips-sni-sysv4 |
2099 | - exit 0 ;; |
2100 | - *:SINIX-*:*:*) |
2101 | - if uname -p 2>/dev/null >/dev/null ; then |
2102 | - UNAME_MACHINE=`(uname -p) 2>/dev/null` |
2103 | - echo ${UNAME_MACHINE}-sni-sysv4 |
2104 | - else |
2105 | - echo ns32k-sni-sysv |
2106 | - fi |
2107 | - exit 0 ;; |
2108 | - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
2109 | - # says <Richard.M.Bartel@ccMail.Census.GOV> |
2110 | - echo i586-unisys-sysv4 |
2111 | - exit 0 ;; |
2112 | - *:UNIX_System_V:4*:FTX*) |
2113 | - # From Gerald Hewes <hewes@openmarket.com>. |
2114 | - # How about differentiating between stratus architectures? -djm |
2115 | - echo hppa1.1-stratus-sysv4 |
2116 | - exit 0 ;; |
2117 | - *:*:*:FTX*) |
2118 | - # From seanf@swdc.stratus.com. |
2119 | - echo i860-stratus-sysv4 |
2120 | - exit 0 ;; |
2121 | - *:VOS:*:*) |
2122 | - # From Paul.Green@stratus.com. |
2123 | - echo hppa1.1-stratus-vos |
2124 | - exit 0 ;; |
2125 | - mc68*:A/UX:*:*) |
2126 | - echo m68k-apple-aux${UNAME_RELEASE} |
2127 | - exit 0 ;; |
2128 | - news*:NEWS-OS:6*:*) |
2129 | - echo mips-sony-newsos6 |
2130 | - exit 0 ;; |
2131 | - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
2132 | - if [ -d /usr/nec ]; then |
2133 | - echo mips-nec-sysv${UNAME_RELEASE} |
2134 | - else |
2135 | - echo mips-unknown-sysv${UNAME_RELEASE} |
2136 | - fi |
2137 | - exit 0 ;; |
2138 | - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
2139 | - echo powerpc-be-beos |
2140 | - exit 0 ;; |
2141 | - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
2142 | - echo powerpc-apple-beos |
2143 | - exit 0 ;; |
2144 | - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
2145 | - echo i586-pc-beos |
2146 | - exit 0 ;; |
2147 | - SX-4:SUPER-UX:*:*) |
2148 | - echo sx4-nec-superux${UNAME_RELEASE} |
2149 | - exit 0 ;; |
2150 | - SX-5:SUPER-UX:*:*) |
2151 | - echo sx5-nec-superux${UNAME_RELEASE} |
2152 | - exit 0 ;; |
2153 | - SX-6:SUPER-UX:*:*) |
2154 | - echo sx6-nec-superux${UNAME_RELEASE} |
2155 | - exit 0 ;; |
2156 | - Power*:Rhapsody:*:*) |
2157 | - echo powerpc-apple-rhapsody${UNAME_RELEASE} |
2158 | - exit 0 ;; |
2159 | - *:Rhapsody:*:*) |
2160 | - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
2161 | - exit 0 ;; |
2162 | - *:Darwin:*:*) |
2163 | - case `uname -p` in |
2164 | - *86) UNAME_PROCESSOR=i686 ;; |
2165 | - powerpc) UNAME_PROCESSOR=powerpc ;; |
2166 | - esac |
2167 | - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
2168 | - exit 0 ;; |
2169 | - *:procnto*:*:* | *:QNX:[0123456789]*:*) |
2170 | - UNAME_PROCESSOR=`uname -p` |
2171 | - if test "$UNAME_PROCESSOR" = "x86"; then |
2172 | - UNAME_PROCESSOR=i386 |
2173 | - UNAME_MACHINE=alt |
2174 | - fi |
2175 | - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
2176 | - exit 0 ;; |
2177 | - *:QNX:*:4*) |
2178 | - echo i386-pc-qnx |
2179 | - exit 0 ;; |
2180 | - NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) |
2181 | - echo nsr-tandem-nsk${UNAME_RELEASE} |
2182 | - exit 0 ;; |
2183 | - *:NonStop-UX:*:*) |
2184 | - echo mips-compaq-nonstopux |
2185 | - exit 0 ;; |
2186 | - BS2000:POSIX*:*:*) |
2187 | - echo bs2000-siemens-sysv |
2188 | - exit 0 ;; |
2189 | - DS/*:UNIX_System_V:*:*) |
2190 | - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
2191 | - exit 0 ;; |
2192 | - *:Plan9:*:*) |
2193 | - # "uname -m" is not consistent, so use $cputype instead. 386 |
2194 | - # is converted to i386 for consistency with other x86 |
2195 | - # operating systems. |
2196 | - if test "$cputype" = "386"; then |
2197 | - UNAME_MACHINE=i386 |
2198 | - else |
2199 | - UNAME_MACHINE="$cputype" |
2200 | - fi |
2201 | - echo ${UNAME_MACHINE}-unknown-plan9 |
2202 | - exit 0 ;; |
2203 | - *:TOPS-10:*:*) |
2204 | - echo pdp10-unknown-tops10 |
2205 | - exit 0 ;; |
2206 | - *:TENEX:*:*) |
2207 | - echo pdp10-unknown-tenex |
2208 | - exit 0 ;; |
2209 | - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
2210 | - echo pdp10-dec-tops20 |
2211 | - exit 0 ;; |
2212 | - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
2213 | - echo pdp10-xkl-tops20 |
2214 | - exit 0 ;; |
2215 | - *:TOPS-20:*:*) |
2216 | - echo pdp10-unknown-tops20 |
2217 | - exit 0 ;; |
2218 | - *:ITS:*:*) |
2219 | - echo pdp10-unknown-its |
2220 | - exit 0 ;; |
2221 | -esac |
2222 | - |
2223 | -#echo '(No uname command or uname output not recognized.)' 1>&2 |
2224 | -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
2225 | - |
2226 | -eval $set_cc_for_build |
2227 | -cat >$dummy.c <<EOF |
2228 | -#ifdef _SEQUENT_ |
2229 | -# include <sys/types.h> |
2230 | -# include <sys/utsname.h> |
2231 | -#endif |
2232 | -main () |
2233 | -{ |
2234 | -#if defined (sony) |
2235 | -#if defined (MIPSEB) |
2236 | - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
2237 | - I don't know.... */ |
2238 | - printf ("mips-sony-bsd\n"); exit (0); |
2239 | -#else |
2240 | -#include <sys/param.h> |
2241 | - printf ("m68k-sony-newsos%s\n", |
2242 | -#ifdef NEWSOS4 |
2243 | - "4" |
2244 | -#else |
2245 | - "" |
2246 | -#endif |
2247 | - ); exit (0); |
2248 | -#endif |
2249 | -#endif |
2250 | - |
2251 | -#if defined (__arm) && defined (__acorn) && defined (__unix) |
2252 | - printf ("arm-acorn-riscix"); exit (0); |
2253 | -#endif |
2254 | - |
2255 | -#if defined (hp300) && !defined (hpux) |
2256 | - printf ("m68k-hp-bsd\n"); exit (0); |
2257 | -#endif |
2258 | - |
2259 | -#if defined (NeXT) |
2260 | -#if !defined (__ARCHITECTURE__) |
2261 | -#define __ARCHITECTURE__ "m68k" |
2262 | -#endif |
2263 | - int version; |
2264 | - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
2265 | - if (version < 4) |
2266 | - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
2267 | - else |
2268 | - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
2269 | - exit (0); |
2270 | -#endif |
2271 | - |
2272 | -#if defined (MULTIMAX) || defined (n16) |
2273 | -#if defined (UMAXV) |
2274 | - printf ("ns32k-encore-sysv\n"); exit (0); |
2275 | -#else |
2276 | -#if defined (CMU) |
2277 | - printf ("ns32k-encore-mach\n"); exit (0); |
2278 | -#else |
2279 | - printf ("ns32k-encore-bsd\n"); exit (0); |
2280 | -#endif |
2281 | -#endif |
2282 | -#endif |
2283 | - |
2284 | -#if defined (__386BSD__) |
2285 | - printf ("i386-pc-bsd\n"); exit (0); |
2286 | -#endif |
2287 | - |
2288 | -#if defined (sequent) |
2289 | -#if defined (i386) |
2290 | - printf ("i386-sequent-dynix\n"); exit (0); |
2291 | -#endif |
2292 | -#if defined (ns32000) |
2293 | - printf ("ns32k-sequent-dynix\n"); exit (0); |
2294 | -#endif |
2295 | -#endif |
2296 | - |
2297 | -#if defined (_SEQUENT_) |
2298 | - struct utsname un; |
2299 | - |
2300 | - uname(&un); |
2301 | - |
2302 | - if (strncmp(un.version, "V2", 2) == 0) { |
2303 | - printf ("i386-sequent-ptx2\n"); exit (0); |
2304 | - } |
2305 | - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
2306 | - printf ("i386-sequent-ptx1\n"); exit (0); |
2307 | - } |
2308 | - printf ("i386-sequent-ptx\n"); exit (0); |
2309 | - |
2310 | -#endif |
2311 | - |
2312 | -#if defined (vax) |
2313 | -# if !defined (ultrix) |
2314 | -# include <sys/param.h> |
2315 | -# if defined (BSD) |
2316 | -# if BSD == 43 |
2317 | - printf ("vax-dec-bsd4.3\n"); exit (0); |
2318 | -# else |
2319 | -# if BSD == 199006 |
2320 | - printf ("vax-dec-bsd4.3reno\n"); exit (0); |
2321 | -# else |
2322 | - printf ("vax-dec-bsd\n"); exit (0); |
2323 | -# endif |
2324 | -# endif |
2325 | -# else |
2326 | - printf ("vax-dec-bsd\n"); exit (0); |
2327 | -# endif |
2328 | -# else |
2329 | - printf ("vax-dec-ultrix\n"); exit (0); |
2330 | -# endif |
2331 | -#endif |
2332 | - |
2333 | -#if defined (alliant) && defined (i860) |
2334 | - printf ("i860-alliant-bsd\n"); exit (0); |
2335 | -#endif |
2336 | - |
2337 | - exit (1); |
2338 | -} |
2339 | -EOF |
2340 | - |
2341 | -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 |
2342 | - |
2343 | -# Apollos put the system type in the environment. |
2344 | - |
2345 | -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } |
2346 | - |
2347 | -# Convex versions that predate uname can use getsysinfo(1) |
2348 | - |
2349 | -if [ -x /usr/convex/getsysinfo ] |
2350 | -then |
2351 | - case `getsysinfo -f cpu_type` in |
2352 | - c1*) |
2353 | - echo c1-convex-bsd |
2354 | - exit 0 ;; |
2355 | - c2*) |
2356 | - if getsysinfo -f scalar_acc |
2357 | - then echo c32-convex-bsd |
2358 | - else echo c2-convex-bsd |
2359 | - fi |
2360 | - exit 0 ;; |
2361 | - c34*) |
2362 | - echo c34-convex-bsd |
2363 | - exit 0 ;; |
2364 | - c38*) |
2365 | - echo c38-convex-bsd |
2366 | - exit 0 ;; |
2367 | - c4*) |
2368 | - echo c4-convex-bsd |
2369 | - exit 0 ;; |
2370 | - esac |
2371 | -fi |
2372 | - |
2373 | -cat >&2 <<EOF |
2374 | -$0: unable to guess system type |
2375 | - |
2376 | -This script, last modified $timestamp, has failed to recognize |
2377 | -the operating system you are using. It is advised that you |
2378 | -download the most up to date version of the config scripts from |
2379 | - |
2380 | - ftp://ftp.gnu.org/pub/gnu/config/ |
2381 | - |
2382 | -If the version you run ($0) is already up to date, please |
2383 | -send the following data and any information you think might be |
2384 | -pertinent to <config-patches@gnu.org> in order to provide the needed |
2385 | -information to handle your system. |
2386 | - |
2387 | -config.guess timestamp = $timestamp |
2388 | - |
2389 | -uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2390 | -uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2391 | -uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2392 | -uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2393 | - |
2394 | -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` |
2395 | -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` |
2396 | - |
2397 | -hostinfo = `(hostinfo) 2>/dev/null` |
2398 | -/bin/universe = `(/bin/universe) 2>/dev/null` |
2399 | -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` |
2400 | -/bin/arch = `(/bin/arch) 2>/dev/null` |
2401 | -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
2402 | -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
2403 | - |
2404 | -UNAME_MACHINE = ${UNAME_MACHINE} |
2405 | -UNAME_RELEASE = ${UNAME_RELEASE} |
2406 | -UNAME_SYSTEM = ${UNAME_SYSTEM} |
2407 | -UNAME_VERSION = ${UNAME_VERSION} |
2408 | -EOF |
2409 | - |
2410 | -exit 1 |
2411 | - |
2412 | -# Local variables: |
2413 | -# eval: (add-hook 'write-file-hooks 'time-stamp) |
2414 | -# time-stamp-start: "timestamp='" |
2415 | -# time-stamp-format: "%:y-%02m-%02d" |
2416 | -# time-stamp-end: "'" |
2417 | -# End: |
2418 | |
2419 | === added file 'config/config.rpath' |
2420 | --- config/config.rpath 1970-01-01 00:00:00 +0000 |
2421 | +++ config/config.rpath 2009-06-10 23:43:32 +0000 |
2422 | @@ -0,0 +1,666 @@ |
2423 | +#! /bin/sh |
2424 | +# Output a system dependent set of variables, describing how to set the |
2425 | +# run time search path of shared libraries in an executable. |
2426 | +# |
2427 | +# Copyright 1996-2007 Free Software Foundation, Inc. |
2428 | +# Taken from GNU libtool, 2001 |
2429 | +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
2430 | +# |
2431 | +# This file is free software; the Free Software Foundation gives |
2432 | +# unlimited permission to copy and/or distribute it, with or without |
2433 | +# modifications, as long as this notice is preserved. |
2434 | +# |
2435 | +# The first argument passed to this file is the canonical host specification, |
2436 | +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
2437 | +# or |
2438 | +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
2439 | +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld |
2440 | +# should be set by the caller. |
2441 | +# |
2442 | +# The set of defined variables is at the end of this script. |
2443 | + |
2444 | +# Known limitations: |
2445 | +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer |
2446 | +# than 256 bytes, otherwise the compiler driver will dump core. The only |
2447 | +# known workaround is to choose shorter directory names for the build |
2448 | +# directory and/or the installation directory. |
2449 | + |
2450 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
2451 | +# which needs '.lib'). |
2452 | +libext=a |
2453 | +shrext=.so |
2454 | + |
2455 | +host="$1" |
2456 | +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2457 | +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2458 | +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2459 | + |
2460 | +# Code taken from libtool.m4's _LT_CC_BASENAME. |
2461 | + |
2462 | +for cc_temp in $CC""; do |
2463 | + case $cc_temp in |
2464 | + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
2465 | + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
2466 | + \-*) ;; |
2467 | + *) break;; |
2468 | + esac |
2469 | +done |
2470 | +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` |
2471 | + |
2472 | +# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. |
2473 | + |
2474 | +wl= |
2475 | +if test "$GCC" = yes; then |
2476 | + wl='-Wl,' |
2477 | +else |
2478 | + case "$host_os" in |
2479 | + aix*) |
2480 | + wl='-Wl,' |
2481 | + ;; |
2482 | + darwin*) |
2483 | + case $cc_basename in |
2484 | + xlc*) |
2485 | + wl='-Wl,' |
2486 | + ;; |
2487 | + esac |
2488 | + ;; |
2489 | + mingw* | cygwin* | pw32* | os2*) |
2490 | + ;; |
2491 | + hpux9* | hpux10* | hpux11*) |
2492 | + wl='-Wl,' |
2493 | + ;; |
2494 | + irix5* | irix6* | nonstopux*) |
2495 | + wl='-Wl,' |
2496 | + ;; |
2497 | + newsos6) |
2498 | + ;; |
2499 | + linux* | k*bsd*-gnu) |
2500 | + case $cc_basename in |
2501 | + icc* | ecc*) |
2502 | + wl='-Wl,' |
2503 | + ;; |
2504 | + pgcc | pgf77 | pgf90) |
2505 | + wl='-Wl,' |
2506 | + ;; |
2507 | + ccc*) |
2508 | + wl='-Wl,' |
2509 | + ;; |
2510 | + como) |
2511 | + wl='-lopt=' |
2512 | + ;; |
2513 | + *) |
2514 | + case `$CC -V 2>&1 | sed 5q` in |
2515 | + *Sun\ C*) |
2516 | + wl='-Wl,' |
2517 | + ;; |
2518 | + esac |
2519 | + ;; |
2520 | + esac |
2521 | + ;; |
2522 | + osf3* | osf4* | osf5*) |
2523 | + wl='-Wl,' |
2524 | + ;; |
2525 | + rdos*) |
2526 | + ;; |
2527 | + solaris*) |
2528 | + wl='-Wl,' |
2529 | + ;; |
2530 | + sunos4*) |
2531 | + wl='-Qoption ld ' |
2532 | + ;; |
2533 | + sysv4 | sysv4.2uw2* | sysv4.3*) |
2534 | + wl='-Wl,' |
2535 | + ;; |
2536 | + sysv4*MP*) |
2537 | + ;; |
2538 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
2539 | + wl='-Wl,' |
2540 | + ;; |
2541 | + unicos*) |
2542 | + wl='-Wl,' |
2543 | + ;; |
2544 | + uts4*) |
2545 | + ;; |
2546 | + esac |
2547 | +fi |
2548 | + |
2549 | +# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. |
2550 | + |
2551 | +hardcode_libdir_flag_spec= |
2552 | +hardcode_libdir_separator= |
2553 | +hardcode_direct=no |
2554 | +hardcode_minus_L=no |
2555 | + |
2556 | +case "$host_os" in |
2557 | + cygwin* | mingw* | pw32*) |
2558 | + # FIXME: the MSVC++ port hasn't been tested in a loooong time |
2559 | + # When not using gcc, we currently assume that we are using |
2560 | + # Microsoft Visual C++. |
2561 | + if test "$GCC" != yes; then |
2562 | + with_gnu_ld=no |
2563 | + fi |
2564 | + ;; |
2565 | + interix*) |
2566 | + # we just hope/assume this is gcc and not c89 (= MSVC++) |
2567 | + with_gnu_ld=yes |
2568 | + ;; |
2569 | + openbsd*) |
2570 | + with_gnu_ld=no |
2571 | + ;; |
2572 | +esac |
2573 | + |
2574 | +ld_shlibs=yes |
2575 | +if test "$with_gnu_ld" = yes; then |
2576 | + # Set some defaults for GNU ld with shared library support. These |
2577 | + # are reset later if shared libraries are not supported. Putting them |
2578 | + # here allows them to be overridden if necessary. |
2579 | + # Unlike libtool, we use -rpath here, not --rpath, since the documented |
2580 | + # option of GNU ld is called -rpath, not --rpath. |
2581 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
2582 | + case "$host_os" in |
2583 | + aix3* | aix4* | aix5*) |
2584 | + # On AIX/PPC, the GNU linker is very broken |
2585 | + if test "$host_cpu" != ia64; then |
2586 | + ld_shlibs=no |
2587 | + fi |
2588 | + ;; |
2589 | + amigaos*) |
2590 | + hardcode_libdir_flag_spec='-L$libdir' |
2591 | + hardcode_minus_L=yes |
2592 | + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
2593 | + # that the semantics of dynamic libraries on AmigaOS, at least up |
2594 | + # to version 4, is to share data among multiple programs linked |
2595 | + # with the same dynamic library. Since this doesn't match the |
2596 | + # behavior of shared libraries on other platforms, we cannot use |
2597 | + # them. |
2598 | + ld_shlibs=no |
2599 | + ;; |
2600 | + beos*) |
2601 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
2602 | + : |
2603 | + else |
2604 | + ld_shlibs=no |
2605 | + fi |
2606 | + ;; |
2607 | + cygwin* | mingw* | pw32*) |
2608 | + # hardcode_libdir_flag_spec is actually meaningless, as there is |
2609 | + # no search path for DLLs. |
2610 | + hardcode_libdir_flag_spec='-L$libdir' |
2611 | + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
2612 | + : |
2613 | + else |
2614 | + ld_shlibs=no |
2615 | + fi |
2616 | + ;; |
2617 | + interix[3-9]*) |
2618 | + hardcode_direct=no |
2619 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
2620 | + ;; |
2621 | + gnu* | linux* | k*bsd*-gnu) |
2622 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
2623 | + : |
2624 | + else |
2625 | + ld_shlibs=no |
2626 | + fi |
2627 | + ;; |
2628 | + netbsd*) |
2629 | + ;; |
2630 | + solaris*) |
2631 | + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
2632 | + ld_shlibs=no |
2633 | + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
2634 | + : |
2635 | + else |
2636 | + ld_shlibs=no |
2637 | + fi |
2638 | + ;; |
2639 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
2640 | + case `$LD -v 2>&1` in |
2641 | + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
2642 | + ld_shlibs=no |
2643 | + ;; |
2644 | + *) |
2645 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
2646 | + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
2647 | + else |
2648 | + ld_shlibs=no |
2649 | + fi |
2650 | + ;; |
2651 | + esac |
2652 | + ;; |
2653 | + sunos4*) |
2654 | + hardcode_direct=yes |
2655 | + ;; |
2656 | + *) |
2657 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
2658 | + : |
2659 | + else |
2660 | + ld_shlibs=no |
2661 | + fi |
2662 | + ;; |
2663 | + esac |
2664 | + if test "$ld_shlibs" = no; then |
2665 | + hardcode_libdir_flag_spec= |
2666 | + fi |
2667 | +else |
2668 | + case "$host_os" in |
2669 | + aix3*) |
2670 | + # Note: this linker hardcodes the directories in LIBPATH if there |
2671 | + # are no directories specified by -L. |
2672 | + hardcode_minus_L=yes |
2673 | + if test "$GCC" = yes; then |
2674 | + # Neither direct hardcoding nor static linking is supported with a |
2675 | + # broken collect2. |
2676 | + hardcode_direct=unsupported |
2677 | + fi |
2678 | + ;; |
2679 | + aix4* | aix5*) |
2680 | + if test "$host_cpu" = ia64; then |
2681 | + # On IA64, the linker does run time linking by default, so we don't |
2682 | + # have to do anything special. |
2683 | + aix_use_runtimelinking=no |
2684 | + else |
2685 | + aix_use_runtimelinking=no |
2686 | + # Test if we are trying to use run time linking or normal |
2687 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
2688 | + # need to do runtime linking. |
2689 | + case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
2690 | + for ld_flag in $LDFLAGS; do |
2691 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
2692 | + aix_use_runtimelinking=yes |
2693 | + break |
2694 | + fi |
2695 | + done |
2696 | + ;; |
2697 | + esac |
2698 | + fi |
2699 | + hardcode_direct=yes |
2700 | + hardcode_libdir_separator=':' |
2701 | + if test "$GCC" = yes; then |
2702 | + case $host_os in aix4.[012]|aix4.[012].*) |
2703 | + collect2name=`${CC} -print-prog-name=collect2` |
2704 | + if test -f "$collect2name" && \ |
2705 | + strings "$collect2name" | grep resolve_lib_name >/dev/null |
2706 | + then |
2707 | + # We have reworked collect2 |
2708 | + : |
2709 | + else |
2710 | + # We have old collect2 |
2711 | + hardcode_direct=unsupported |
2712 | + hardcode_minus_L=yes |
2713 | + hardcode_libdir_flag_spec='-L$libdir' |
2714 | + hardcode_libdir_separator= |
2715 | + fi |
2716 | + ;; |
2717 | + esac |
2718 | + fi |
2719 | + # Begin _LT_AC_SYS_LIBPATH_AIX. |
2720 | + echo 'int main () { return 0; }' > conftest.c |
2721 | + ${CC} ${LDFLAGS} conftest.c -o conftest |
2722 | + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
2723 | +}'` |
2724 | + if test -z "$aix_libpath"; then |
2725 | + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
2726 | +}'` |
2727 | + fi |
2728 | + if test -z "$aix_libpath"; then |
2729 | + aix_libpath="/usr/lib:/lib" |
2730 | + fi |
2731 | + rm -f conftest.c conftest |
2732 | + # End _LT_AC_SYS_LIBPATH_AIX. |
2733 | + if test "$aix_use_runtimelinking" = yes; then |
2734 | + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
2735 | + else |
2736 | + if test "$host_cpu" = ia64; then |
2737 | + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
2738 | + else |
2739 | + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
2740 | + fi |
2741 | + fi |
2742 | + ;; |
2743 | + amigaos*) |
2744 | + hardcode_libdir_flag_spec='-L$libdir' |
2745 | + hardcode_minus_L=yes |
2746 | + # see comment about different semantics on the GNU ld section |
2747 | + ld_shlibs=no |
2748 | + ;; |
2749 | + bsdi[45]*) |
2750 | + ;; |
2751 | + cygwin* | mingw* | pw32*) |
2752 | + # When not using gcc, we currently assume that we are using |
2753 | + # Microsoft Visual C++. |
2754 | + # hardcode_libdir_flag_spec is actually meaningless, as there is |
2755 | + # no search path for DLLs. |
2756 | + hardcode_libdir_flag_spec=' ' |
2757 | + libext=lib |
2758 | + ;; |
2759 | + darwin* | rhapsody*) |
2760 | + hardcode_direct=no |
2761 | + if test "$GCC" = yes ; then |
2762 | + : |
2763 | + else |
2764 | + case $cc_basename in |
2765 | + xlc*) |
2766 | + ;; |
2767 | + *) |
2768 | + ld_shlibs=no |
2769 | + ;; |
2770 | + esac |
2771 | + fi |
2772 | + ;; |
2773 | + dgux*) |
2774 | + hardcode_libdir_flag_spec='-L$libdir' |
2775 | + ;; |
2776 | + freebsd1*) |
2777 | + ld_shlibs=no |
2778 | + ;; |
2779 | + freebsd2.2*) |
2780 | + hardcode_libdir_flag_spec='-R$libdir' |
2781 | + hardcode_direct=yes |
2782 | + ;; |
2783 | + freebsd2*) |
2784 | + hardcode_direct=yes |
2785 | + hardcode_minus_L=yes |
2786 | + ;; |
2787 | + freebsd* | dragonfly*) |
2788 | + hardcode_libdir_flag_spec='-R$libdir' |
2789 | + hardcode_direct=yes |
2790 | + ;; |
2791 | + hpux9*) |
2792 | + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
2793 | + hardcode_libdir_separator=: |
2794 | + hardcode_direct=yes |
2795 | + # hardcode_minus_L: Not really in the search PATH, |
2796 | + # but as the default location of the library. |
2797 | + hardcode_minus_L=yes |
2798 | + ;; |
2799 | + hpux10*) |
2800 | + if test "$with_gnu_ld" = no; then |
2801 | + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
2802 | + hardcode_libdir_separator=: |
2803 | + hardcode_direct=yes |
2804 | + # hardcode_minus_L: Not really in the search PATH, |
2805 | + # but as the default location of the library. |
2806 | + hardcode_minus_L=yes |
2807 | + fi |
2808 | + ;; |
2809 | + hpux11*) |
2810 | + if test "$with_gnu_ld" = no; then |
2811 | + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
2812 | + hardcode_libdir_separator=: |
2813 | + case $host_cpu in |
2814 | + hppa*64*|ia64*) |
2815 | + hardcode_direct=no |
2816 | + ;; |
2817 | + *) |
2818 | + hardcode_direct=yes |
2819 | + # hardcode_minus_L: Not really in the search PATH, |
2820 | + # but as the default location of the library. |
2821 | + hardcode_minus_L=yes |
2822 | + ;; |
2823 | + esac |
2824 | + fi |
2825 | + ;; |
2826 | + irix5* | irix6* | nonstopux*) |
2827 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
2828 | + hardcode_libdir_separator=: |
2829 | + ;; |
2830 | + netbsd*) |
2831 | + hardcode_libdir_flag_spec='-R$libdir' |
2832 | + hardcode_direct=yes |
2833 | + ;; |
2834 | + newsos6) |
2835 | + hardcode_direct=yes |
2836 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
2837 | + hardcode_libdir_separator=: |
2838 | + ;; |
2839 | + openbsd*) |
2840 | + if test -f /usr/libexec/ld.so; then |
2841 | + hardcode_direct=yes |
2842 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2843 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
2844 | + else |
2845 | + case "$host_os" in |
2846 | + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
2847 | + hardcode_libdir_flag_spec='-R$libdir' |
2848 | + ;; |
2849 | + *) |
2850 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
2851 | + ;; |
2852 | + esac |
2853 | + fi |
2854 | + else |
2855 | + ld_shlibs=no |
2856 | + fi |
2857 | + ;; |
2858 | + os2*) |
2859 | + hardcode_libdir_flag_spec='-L$libdir' |
2860 | + hardcode_minus_L=yes |
2861 | + ;; |
2862 | + osf3*) |
2863 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
2864 | + hardcode_libdir_separator=: |
2865 | + ;; |
2866 | + osf4* | osf5*) |
2867 | + if test "$GCC" = yes; then |
2868 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
2869 | + else |
2870 | + # Both cc and cxx compiler support -rpath directly |
2871 | + hardcode_libdir_flag_spec='-rpath $libdir' |
2872 | + fi |
2873 | + hardcode_libdir_separator=: |
2874 | + ;; |
2875 | + solaris*) |
2876 | + hardcode_libdir_flag_spec='-R$libdir' |
2877 | + ;; |
2878 | + sunos4*) |
2879 | + hardcode_libdir_flag_spec='-L$libdir' |
2880 | + hardcode_direct=yes |
2881 | + hardcode_minus_L=yes |
2882 | + ;; |
2883 | + sysv4) |
2884 | + case $host_vendor in |
2885 | + sni) |
2886 | + hardcode_direct=yes # is this really true??? |
2887 | + ;; |
2888 | + siemens) |
2889 | + hardcode_direct=no |
2890 | + ;; |
2891 | + motorola) |
2892 | + hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
2893 | + ;; |
2894 | + esac |
2895 | + ;; |
2896 | + sysv4.3*) |
2897 | + ;; |
2898 | + sysv4*MP*) |
2899 | + if test -d /usr/nec; then |
2900 | + ld_shlibs=yes |
2901 | + fi |
2902 | + ;; |
2903 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
2904 | + ;; |
2905 | + sysv5* | sco3.2v5* | sco5v6*) |
2906 | + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
2907 | + hardcode_libdir_separator=':' |
2908 | + ;; |
2909 | + uts4*) |
2910 | + hardcode_libdir_flag_spec='-L$libdir' |
2911 | + ;; |
2912 | + *) |
2913 | + ld_shlibs=no |
2914 | + ;; |
2915 | + esac |
2916 | +fi |
2917 | + |
2918 | +# Check dynamic linker characteristics |
2919 | +# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. |
2920 | +# Unlike libtool.m4, here we don't care about _all_ names of the library, but |
2921 | +# only about the one the linker finds when passed -lNAME. This is the last |
2922 | +# element of library_names_spec in libtool.m4, or possibly two of them if the |
2923 | +# linker has special search rules. |
2924 | +library_names_spec= # the last element of library_names_spec in libtool.m4 |
2925 | +libname_spec='lib$name' |
2926 | +case "$host_os" in |
2927 | + aix3*) |
2928 | + library_names_spec='$libname.a' |
2929 | + ;; |
2930 | + aix4* | aix5*) |
2931 | + library_names_spec='$libname$shrext' |
2932 | + ;; |
2933 | + amigaos*) |
2934 | + library_names_spec='$libname.a' |
2935 | + ;; |
2936 | + beos*) |
2937 | + library_names_spec='$libname$shrext' |
2938 | + ;; |
2939 | + bsdi[45]*) |
2940 | + library_names_spec='$libname$shrext' |
2941 | + ;; |
2942 | + cygwin* | mingw* | pw32*) |
2943 | + shrext=.dll |
2944 | + library_names_spec='$libname.dll.a $libname.lib' |
2945 | + ;; |
2946 | + darwin* | rhapsody*) |
2947 | + shrext=.dylib |
2948 | + library_names_spec='$libname$shrext' |
2949 | + ;; |
2950 | + dgux*) |
2951 | + library_names_spec='$libname$shrext' |
2952 | + ;; |
2953 | + freebsd1*) |
2954 | + ;; |
2955 | + freebsd* | dragonfly*) |
2956 | + case "$host_os" in |
2957 | + freebsd[123]*) |
2958 | + library_names_spec='$libname$shrext$versuffix' ;; |
2959 | + *) |
2960 | + library_names_spec='$libname$shrext' ;; |
2961 | + esac |
2962 | + ;; |
2963 | + gnu*) |
2964 | + library_names_spec='$libname$shrext' |
2965 | + ;; |
2966 | + hpux9* | hpux10* | hpux11*) |
2967 | + case $host_cpu in |
2968 | + ia64*) |
2969 | + shrext=.so |
2970 | + ;; |
2971 | + hppa*64*) |
2972 | + shrext=.sl |
2973 | + ;; |
2974 | + *) |
2975 | + shrext=.sl |
2976 | + ;; |
2977 | + esac |
2978 | + library_names_spec='$libname$shrext' |
2979 | + ;; |
2980 | + interix[3-9]*) |
2981 | + library_names_spec='$libname$shrext' |
2982 | + ;; |
2983 | + irix5* | irix6* | nonstopux*) |
2984 | + library_names_spec='$libname$shrext' |
2985 | + case "$host_os" in |
2986 | + irix5* | nonstopux*) |
2987 | + libsuff= shlibsuff= |
2988 | + ;; |
2989 | + *) |
2990 | + case $LD in |
2991 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; |
2992 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; |
2993 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; |
2994 | + *) libsuff= shlibsuff= ;; |
2995 | + esac |
2996 | + ;; |
2997 | + esac |
2998 | + ;; |
2999 | + linux*oldld* | linux*aout* | linux*coff*) |
3000 | + ;; |
3001 | + linux* | k*bsd*-gnu) |
3002 | + library_names_spec='$libname$shrext' |
3003 | + ;; |
3004 | + knetbsd*-gnu) |
3005 | + library_names_spec='$libname$shrext' |
3006 | + ;; |
3007 | + netbsd*) |
3008 | + library_names_spec='$libname$shrext' |
3009 | + ;; |
3010 | + newsos6) |
3011 | + library_names_spec='$libname$shrext' |
3012 | + ;; |
3013 | + nto-qnx*) |
3014 | + library_names_spec='$libname$shrext' |
3015 | + ;; |
3016 | + openbsd*) |
3017 | + library_names_spec='$libname$shrext$versuffix' |
3018 | + ;; |
3019 | + os2*) |
3020 | + libname_spec='$name' |
3021 | + shrext=.dll |
3022 | + library_names_spec='$libname.a' |
3023 | + ;; |
3024 | + osf3* | osf4* | osf5*) |
3025 | + library_names_spec='$libname$shrext' |
3026 | + ;; |
3027 | + rdos*) |
3028 | + ;; |
3029 | + solaris*) |
3030 | + library_names_spec='$libname$shrext' |
3031 | + ;; |
3032 | + sunos4*) |
3033 | + library_names_spec='$libname$shrext$versuffix' |
3034 | + ;; |
3035 | + sysv4 | sysv4.3*) |
3036 | + library_names_spec='$libname$shrext' |
3037 | + ;; |
3038 | + sysv4*MP*) |
3039 | + library_names_spec='$libname$shrext' |
3040 | + ;; |
3041 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3042 | + library_names_spec='$libname$shrext' |
3043 | + ;; |
3044 | + uts4*) |
3045 | + library_names_spec='$libname$shrext' |
3046 | + ;; |
3047 | +esac |
3048 | + |
3049 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
3050 | +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
3051 | +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
3052 | +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
3053 | +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
3054 | +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
3055 | + |
3056 | +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF |
3057 | + |
3058 | +# How to pass a linker flag through the compiler. |
3059 | +wl="$escaped_wl" |
3060 | + |
3061 | +# Static library suffix (normally "a"). |
3062 | +libext="$libext" |
3063 | + |
3064 | +# Shared library suffix (normally "so"). |
3065 | +shlibext="$shlibext" |
3066 | + |
3067 | +# Format of library name prefix. |
3068 | +libname_spec="$escaped_libname_spec" |
3069 | + |
3070 | +# Library names that the linker finds when passed -lNAME. |
3071 | +library_names_spec="$escaped_library_names_spec" |
3072 | + |
3073 | +# Flag to hardcode \$libdir into a binary during linking. |
3074 | +# This must work even if \$libdir does not exist. |
3075 | +hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" |
3076 | + |
3077 | +# Whether we need a single -rpath flag with a separated argument. |
3078 | +hardcode_libdir_separator="$hardcode_libdir_separator" |
3079 | + |
3080 | +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
3081 | +# resulting binary. |
3082 | +hardcode_direct="$hardcode_direct" |
3083 | + |
3084 | +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
3085 | +# resulting binary. |
3086 | +hardcode_minus_L="$hardcode_minus_L" |
3087 | + |
3088 | +EOF |
3089 | |
3090 | === removed file 'config/config.sub' |
3091 | --- config/config.sub 2009-05-28 15:50:59 +0000 |
3092 | +++ config/config.sub 1970-01-01 00:00:00 +0000 |
3093 | @@ -1,1489 +0,0 @@ |
3094 | -#! /bin/sh |
3095 | -# Configuration validation subroutine script. |
3096 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3097 | -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
3098 | - |
3099 | -timestamp='2003-02-22' |
3100 | - |
3101 | -# This file is (in principle) common to ALL GNU software. |
3102 | -# The presence of a machine in this file suggests that SOME GNU software |
3103 | -# can handle that machine. It does not imply ALL GNU software can. |
3104 | -# |
3105 | -# This file is free software; you can redistribute it and/or modify |
3106 | -# it under the terms of the GNU General Public License as published by |
3107 | -# the Free Software Foundation; either version 2 of the License, or |
3108 | -# (at your option) any later version. |
3109 | -# |
3110 | -# This program is distributed in the hope that it will be useful, |
3111 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3112 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3113 | -# GNU General Public License for more details. |
3114 | -# |
3115 | -# You should have received a copy of the GNU General Public License |
3116 | -# along with this program; if not, write to the Free Software |
3117 | -# Foundation, Inc., 59 Temple Place - Suite 330, |
3118 | -# Boston, MA 02111-1307, USA. |
3119 | - |
3120 | -# As a special exception to the GNU General Public License, if you |
3121 | -# distribute this file as part of a program that contains a |
3122 | -# configuration script generated by Autoconf, you may include it under |
3123 | -# the same distribution terms that you use for the rest of that program. |
3124 | - |
3125 | -# Please send patches to <config-patches@gnu.org>. Submit a context |
3126 | -# diff and a properly formatted ChangeLog entry. |
3127 | -# |
3128 | -# Configuration subroutine to validate and canonicalize a configuration type. |
3129 | -# Supply the specified configuration type as an argument. |
3130 | -# If it is invalid, we print an error message on stderr and exit with code 1. |
3131 | -# Otherwise, we print the canonical config type on stdout and succeed. |
3132 | - |
3133 | -# This file is supposed to be the same for all GNU packages |
3134 | -# and recognize all the CPU types, system types and aliases |
3135 | -# that are meaningful with *any* GNU software. |
3136 | -# Each package is responsible for reporting which valid configurations |
3137 | -# it does not support. The user should be able to distinguish |
3138 | -# a failure to support a valid configuration from a meaningless |
3139 | -# configuration. |
3140 | - |
3141 | -# The goal of this file is to map all the various variations of a given |
3142 | -# machine specification into a single specification in the form: |
3143 | -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
3144 | -# or in some cases, the newer four-part form: |
3145 | -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
3146 | -# It is wrong to echo any other type of specification. |
3147 | - |
3148 | -me=`echo "$0" | sed -e 's,.*/,,'` |
3149 | - |
3150 | -usage="\ |
3151 | -Usage: $0 [OPTION] CPU-MFR-OPSYS |
3152 | - $0 [OPTION] ALIAS |
3153 | - |
3154 | -Canonicalize a configuration name. |
3155 | - |
3156 | -Operation modes: |
3157 | - -h, --help print this help, then exit |
3158 | - -t, --time-stamp print date of last modification, then exit |
3159 | - -v, --version print version number, then exit |
3160 | - |
3161 | -Report bugs and patches to <config-patches@gnu.org>." |
3162 | - |
3163 | -version="\ |
3164 | -GNU config.sub ($timestamp) |
3165 | - |
3166 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
3167 | -Free Software Foundation, Inc. |
3168 | - |
3169 | -This is free software; see the source for copying conditions. There is NO |
3170 | -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
3171 | - |
3172 | -help=" |
3173 | -Try \`$me --help' for more information." |
3174 | - |
3175 | -# Parse command line |
3176 | -while test $# -gt 0 ; do |
3177 | - case $1 in |
3178 | - --time-stamp | --time* | -t ) |
3179 | - echo "$timestamp" ; exit 0 ;; |
3180 | - --version | -v ) |
3181 | - echo "$version" ; exit 0 ;; |
3182 | - --help | --h* | -h ) |
3183 | - echo "$usage"; exit 0 ;; |
3184 | - -- ) # Stop option processing |
3185 | - shift; break ;; |
3186 | - - ) # Use stdin as input. |
3187 | - break ;; |
3188 | - -* ) |
3189 | - echo "$me: invalid option $1$help" |
3190 | - exit 1 ;; |
3191 | - |
3192 | - *local*) |
3193 | - # First pass through any local machine types. |
3194 | - echo $1 |
3195 | - exit 0;; |
3196 | - |
3197 | - * ) |
3198 | - break ;; |
3199 | - esac |
3200 | -done |
3201 | - |
3202 | -case $# in |
3203 | - 0) echo "$me: missing argument$help" >&2 |
3204 | - exit 1;; |
3205 | - 1) ;; |
3206 | - *) echo "$me: too many arguments$help" >&2 |
3207 | - exit 1;; |
3208 | -esac |
3209 | - |
3210 | -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
3211 | -# Here we must recognize all the valid KERNEL-OS combinations. |
3212 | -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
3213 | -case $maybe_os in |
3214 | - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
3215 | - os=-$maybe_os |
3216 | - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
3217 | - ;; |
3218 | - *) |
3219 | - basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
3220 | - if [ $basic_machine != $1 ] |
3221 | - then os=`echo $1 | sed 's/.*-/-/'` |
3222 | - else os=; fi |
3223 | - ;; |
3224 | -esac |
3225 | - |
3226 | -### Let's recognize common machines as not being operating systems so |
3227 | -### that things like config.sub decstation-3100 work. We also |
3228 | -### recognize some manufacturers as not being operating systems, so we |
3229 | -### can provide default operating systems below. |
3230 | -case $os in |
3231 | - -sun*os*) |
3232 | - # Prevent following clause from handling this invalid input. |
3233 | - ;; |
3234 | - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
3235 | - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
3236 | - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
3237 | - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
3238 | - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
3239 | - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
3240 | - -apple | -axis) |
3241 | - os= |
3242 | - basic_machine=$1 |
3243 | - ;; |
3244 | - -sim | -cisco | -oki | -wec | -winbond) |
3245 | - os= |
3246 | - basic_machine=$1 |
3247 | - ;; |
3248 | - -scout) |
3249 | - ;; |
3250 | - -wrs) |
3251 | - os=-vxworks |
3252 | - basic_machine=$1 |
3253 | - ;; |
3254 | - -chorusos*) |
3255 | - os=-chorusos |
3256 | - basic_machine=$1 |
3257 | - ;; |
3258 | - -chorusrdb) |
3259 | - os=-chorusrdb |
3260 | - basic_machine=$1 |
3261 | - ;; |
3262 | - -hiux*) |
3263 | - os=-hiuxwe2 |
3264 | - ;; |
3265 | - -sco5) |
3266 | - os=-sco3.2v5 |
3267 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3268 | - ;; |
3269 | - -sco4) |
3270 | - os=-sco3.2v4 |
3271 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3272 | - ;; |
3273 | - -sco3.2.[4-9]*) |
3274 | - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
3275 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3276 | - ;; |
3277 | - -sco3.2v[4-9]*) |
3278 | - # Don't forget version if it is 3.2v4 or newer. |
3279 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3280 | - ;; |
3281 | - -sco*) |
3282 | - os=-sco3.2v2 |
3283 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3284 | - ;; |
3285 | - -udk*) |
3286 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3287 | - ;; |
3288 | - -isc) |
3289 | - os=-isc2.2 |
3290 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3291 | - ;; |
3292 | - -clix*) |
3293 | - basic_machine=clipper-intergraph |
3294 | - ;; |
3295 | - -isc*) |
3296 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
3297 | - ;; |
3298 | - -lynx*) |
3299 | - os=-lynxos |
3300 | - ;; |
3301 | - -ptx*) |
3302 | - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
3303 | - ;; |
3304 | - -windowsnt*) |
3305 | - os=`echo $os | sed -e 's/windowsnt/winnt/'` |
3306 | - ;; |
3307 | - -psos*) |
3308 | - os=-psos |
3309 | - ;; |
3310 | - -mint | -mint[0-9]*) |
3311 | - basic_machine=m68k-atari |
3312 | - os=-mint |
3313 | - ;; |
3314 | -esac |
3315 | - |
3316 | -# Decode aliases for certain CPU-COMPANY combinations. |
3317 | -case $basic_machine in |
3318 | - # Recognize the basic CPU types without company name. |
3319 | - # Some are omitted here because they have special meanings below. |
3320 | - 1750a | 580 \ |
3321 | - | a29k \ |
3322 | - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
3323 | - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
3324 | - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
3325 | - | clipper \ |
3326 | - | d10v | d30v | dlx | dsp16xx \ |
3327 | - | fr30 | frv \ |
3328 | - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
3329 | - | i370 | i860 | i960 | ia64 \ |
3330 | - | ip2k \ |
3331 | - | m32r | m68000 | m68k | m88k | mcore \ |
3332 | - | mips | mipsbe | mipseb | mipsel | mipsle \ |
3333 | - | mips16 \ |
3334 | - | mips64 | mips64el \ |
3335 | - | mips64vr | mips64vrel \ |
3336 | - | mips64orion | mips64orionel \ |
3337 | - | mips64vr4100 | mips64vr4100el \ |
3338 | - | mips64vr4300 | mips64vr4300el \ |
3339 | - | mips64vr5000 | mips64vr5000el \ |
3340 | - | mipsisa32 | mipsisa32el \ |
3341 | - | mipsisa32r2 | mipsisa32r2el \ |
3342 | - | mipsisa64 | mipsisa64el \ |
3343 | - | mipsisa64sb1 | mipsisa64sb1el \ |
3344 | - | mipsisa64sr71k | mipsisa64sr71kel \ |
3345 | - | mipstx39 | mipstx39el \ |
3346 | - | mn10200 | mn10300 \ |
3347 | - | msp430 \ |
3348 | - | ns16k | ns32k \ |
3349 | - | openrisc | or32 \ |
3350 | - | pdp10 | pdp11 | pj | pjl \ |
3351 | - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
3352 | - | pyramid \ |
3353 | - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
3354 | - | sh64 | sh64le \ |
3355 | - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
3356 | - | strongarm \ |
3357 | - | tahoe | thumb | tic80 | tron \ |
3358 | - | v850 | v850e \ |
3359 | - | we32k \ |
3360 | - | x86 | xscale | xstormy16 | xtensa \ |
3361 | - | z8k) |
3362 | - basic_machine=$basic_machine-unknown |
3363 | - ;; |
3364 | - m6811 | m68hc11 | m6812 | m68hc12) |
3365 | - # Motorola 68HC11/12. |
3366 | - basic_machine=$basic_machine-unknown |
3367 | - os=-none |
3368 | - ;; |
3369 | - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
3370 | - ;; |
3371 | - |
3372 | - # We use `pc' rather than `unknown' |
3373 | - # because (1) that's what they normally are, and |
3374 | - # (2) the word "unknown" tends to confuse beginning users. |
3375 | - i*86 | x86_64) |
3376 | - basic_machine=$basic_machine-pc |
3377 | - ;; |
3378 | - # Object if more than one company name word. |
3379 | - *-*-*) |
3380 | - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
3381 | - exit 1 |
3382 | - ;; |
3383 | - # Recognize the basic CPU types with company name. |
3384 | - 580-* \ |
3385 | - | a29k-* \ |
3386 | - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
3387 | - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
3388 | - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
3389 | - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
3390 | - | avr-* \ |
3391 | - | bs2000-* \ |
3392 | - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
3393 | - | clipper-* | cydra-* \ |
3394 | - | d10v-* | d30v-* | dlx-* \ |
3395 | - | elxsi-* \ |
3396 | - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
3397 | - | h8300-* | h8500-* \ |
3398 | - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
3399 | - | i*86-* | i860-* | i960-* | ia64-* \ |
3400 | - | ip2k-* \ |
3401 | - | m32r-* \ |
3402 | - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
3403 | - | m88110-* | m88k-* | mcore-* \ |
3404 | - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
3405 | - | mips16-* \ |
3406 | - | mips64-* | mips64el-* \ |
3407 | - | mips64vr-* | mips64vrel-* \ |
3408 | - | mips64orion-* | mips64orionel-* \ |
3409 | - | mips64vr4100-* | mips64vr4100el-* \ |
3410 | - | mips64vr4300-* | mips64vr4300el-* \ |
3411 | - | mips64vr5000-* | mips64vr5000el-* \ |
3412 | - | mipsisa32-* | mipsisa32el-* \ |
3413 | - | mipsisa32r2-* | mipsisa32r2el-* \ |
3414 | - | mipsisa64-* | mipsisa64el-* \ |
3415 | - | mipsisa64sb1-* | mipsisa64sb1el-* \ |
3416 | - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
3417 | - | mipstx39-* | mipstx39el-* \ |
3418 | - | msp430-* \ |
3419 | - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
3420 | - | orion-* \ |
3421 | - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
3422 | - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
3423 | - | pyramid-* \ |
3424 | - | romp-* | rs6000-* \ |
3425 | - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
3426 | - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
3427 | - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
3428 | - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
3429 | - | tahoe-* | thumb-* \ |
3430 | - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
3431 | - | tron-* \ |
3432 | - | v850-* | v850e-* | vax-* \ |
3433 | - | we32k-* \ |
3434 | - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
3435 | - | xtensa-* \ |
3436 | - | ymp-* \ |
3437 | - | z8k-*) |
3438 | - ;; |
3439 | - # Recognize the various machine names and aliases which stand |
3440 | - # for a CPU type and a company and sometimes even an OS. |
3441 | - 386bsd) |
3442 | - basic_machine=i386-unknown |
3443 | - os=-bsd |
3444 | - ;; |
3445 | - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
3446 | - basic_machine=m68000-att |
3447 | - ;; |
3448 | - 3b*) |
3449 | - basic_machine=we32k-att |
3450 | - ;; |
3451 | - a29khif) |
3452 | - basic_machine=a29k-amd |
3453 | - os=-udi |
3454 | - ;; |
3455 | - adobe68k) |
3456 | - basic_machine=m68010-adobe |
3457 | - os=-scout |
3458 | - ;; |
3459 | - alliant | fx80) |
3460 | - basic_machine=fx80-alliant |
3461 | - ;; |
3462 | - altos | altos3068) |
3463 | - basic_machine=m68k-altos |
3464 | - ;; |
3465 | - am29k) |
3466 | - basic_machine=a29k-none |
3467 | - os=-bsd |
3468 | - ;; |
3469 | - amdahl) |
3470 | - basic_machine=580-amdahl |
3471 | - os=-sysv |
3472 | - ;; |
3473 | - amiga | amiga-*) |
3474 | - basic_machine=m68k-unknown |
3475 | - ;; |
3476 | - amigaos | amigados) |
3477 | - basic_machine=m68k-unknown |
3478 | - os=-amigaos |
3479 | - ;; |
3480 | - amigaunix | amix) |
3481 | - basic_machine=m68k-unknown |
3482 | - os=-sysv4 |
3483 | - ;; |
3484 | - apollo68) |
3485 | - basic_machine=m68k-apollo |
3486 | - os=-sysv |
3487 | - ;; |
3488 | - apollo68bsd) |
3489 | - basic_machine=m68k-apollo |
3490 | - os=-bsd |
3491 | - ;; |
3492 | - aux) |
3493 | - basic_machine=m68k-apple |
3494 | - os=-aux |
3495 | - ;; |
3496 | - balance) |
3497 | - basic_machine=ns32k-sequent |
3498 | - os=-dynix |
3499 | - ;; |
3500 | - c90) |
3501 | - basic_machine=c90-cray |
3502 | - os=-unicos |
3503 | - ;; |
3504 | - convex-c1) |
3505 | - basic_machine=c1-convex |
3506 | - os=-bsd |
3507 | - ;; |
3508 | - convex-c2) |
3509 | - basic_machine=c2-convex |
3510 | - os=-bsd |
3511 | - ;; |
3512 | - convex-c32) |
3513 | - basic_machine=c32-convex |
3514 | - os=-bsd |
3515 | - ;; |
3516 | - convex-c34) |
3517 | - basic_machine=c34-convex |
3518 | - os=-bsd |
3519 | - ;; |
3520 | - convex-c38) |
3521 | - basic_machine=c38-convex |
3522 | - os=-bsd |
3523 | - ;; |
3524 | - cray | j90) |
3525 | - basic_machine=j90-cray |
3526 | - os=-unicos |
3527 | - ;; |
3528 | - crds | unos) |
3529 | - basic_machine=m68k-crds |
3530 | - ;; |
3531 | - cris | cris-* | etrax*) |
3532 | - basic_machine=cris-axis |
3533 | - ;; |
3534 | - da30 | da30-*) |
3535 | - basic_machine=m68k-da30 |
3536 | - ;; |
3537 | - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
3538 | - basic_machine=mips-dec |
3539 | - ;; |
3540 | - decsystem10* | dec10*) |
3541 | - basic_machine=pdp10-dec |
3542 | - os=-tops10 |
3543 | - ;; |
3544 | - decsystem20* | dec20*) |
3545 | - basic_machine=pdp10-dec |
3546 | - os=-tops20 |
3547 | - ;; |
3548 | - delta | 3300 | motorola-3300 | motorola-delta \ |
3549 | - | 3300-motorola | delta-motorola) |
3550 | - basic_machine=m68k-motorola |
3551 | - ;; |
3552 | - delta88) |
3553 | - basic_machine=m88k-motorola |
3554 | - os=-sysv3 |
3555 | - ;; |
3556 | - dpx20 | dpx20-*) |
3557 | - basic_machine=rs6000-bull |
3558 | - os=-bosx |
3559 | - ;; |
3560 | - dpx2* | dpx2*-bull) |
3561 | - basic_machine=m68k-bull |
3562 | - os=-sysv3 |
3563 | - ;; |
3564 | - ebmon29k) |
3565 | - basic_machine=a29k-amd |
3566 | - os=-ebmon |
3567 | - ;; |
3568 | - elxsi) |
3569 | - basic_machine=elxsi-elxsi |
3570 | - os=-bsd |
3571 | - ;; |
3572 | - encore | umax | mmax) |
3573 | - basic_machine=ns32k-encore |
3574 | - ;; |
3575 | - es1800 | OSE68k | ose68k | ose | OSE) |
3576 | - basic_machine=m68k-ericsson |
3577 | - os=-ose |
3578 | - ;; |
3579 | - fx2800) |
3580 | - basic_machine=i860-alliant |
3581 | - ;; |
3582 | - genix) |
3583 | - basic_machine=ns32k-ns |
3584 | - ;; |
3585 | - gmicro) |
3586 | - basic_machine=tron-gmicro |
3587 | - os=-sysv |
3588 | - ;; |
3589 | - go32) |
3590 | - basic_machine=i386-pc |
3591 | - os=-go32 |
3592 | - ;; |
3593 | - h3050r* | hiux*) |
3594 | - basic_machine=hppa1.1-hitachi |
3595 | - os=-hiuxwe2 |
3596 | - ;; |
3597 | - h8300hms) |
3598 | - basic_machine=h8300-hitachi |
3599 | - os=-hms |
3600 | - ;; |
3601 | - h8300xray) |
3602 | - basic_machine=h8300-hitachi |
3603 | - os=-xray |
3604 | - ;; |
3605 | - h8500hms) |
3606 | - basic_machine=h8500-hitachi |
3607 | - os=-hms |
3608 | - ;; |
3609 | - harris) |
3610 | - basic_machine=m88k-harris |
3611 | - os=-sysv3 |
3612 | - ;; |
3613 | - hp300-*) |
3614 | - basic_machine=m68k-hp |
3615 | - ;; |
3616 | - hp300bsd) |
3617 | - basic_machine=m68k-hp |
3618 | - os=-bsd |
3619 | - ;; |
3620 | - hp300hpux) |
3621 | - basic_machine=m68k-hp |
3622 | - os=-hpux |
3623 | - ;; |
3624 | - hp3k9[0-9][0-9] | hp9[0-9][0-9]) |
3625 | - basic_machine=hppa1.0-hp |
3626 | - ;; |
3627 | - hp9k2[0-9][0-9] | hp9k31[0-9]) |
3628 | - basic_machine=m68000-hp |
3629 | - ;; |
3630 | - hp9k3[2-9][0-9]) |
3631 | - basic_machine=m68k-hp |
3632 | - ;; |
3633 | - hp9k6[0-9][0-9] | hp6[0-9][0-9]) |
3634 | - basic_machine=hppa1.0-hp |
3635 | - ;; |
3636 | - hp9k7[0-79][0-9] | hp7[0-79][0-9]) |
3637 | - basic_machine=hppa1.1-hp |
3638 | - ;; |
3639 | - hp9k78[0-9] | hp78[0-9]) |
3640 | - # FIXME: really hppa2.0-hp |
3641 | - basic_machine=hppa1.1-hp |
3642 | - ;; |
3643 | - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
3644 | - # FIXME: really hppa2.0-hp |
3645 | - basic_machine=hppa1.1-hp |
3646 | - ;; |
3647 | - hp9k8[0-9][13679] | hp8[0-9][13679]) |
3648 | - basic_machine=hppa1.1-hp |
3649 | - ;; |
3650 | - hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
3651 | - basic_machine=hppa1.0-hp |
3652 | - ;; |
3653 | - hppa-next) |
3654 | - os=-nextstep3 |
3655 | - ;; |
3656 | - hppaosf) |
3657 | - basic_machine=hppa1.1-hp |
3658 | - os=-osf |
3659 | - ;; |
3660 | - hppro) |
3661 | - basic_machine=hppa1.1-hp |
3662 | - os=-proelf |
3663 | - ;; |
3664 | - i370-ibm* | ibm*) |
3665 | - basic_machine=i370-ibm |
3666 | - ;; |
3667 | -# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
3668 | - i*86v32) |
3669 | - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
3670 | - os=-sysv32 |
3671 | - ;; |
3672 | - i*86v4*) |
3673 | - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
3674 | - os=-sysv4 |
3675 | - ;; |
3676 | - i*86v) |
3677 | - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
3678 | - os=-sysv |
3679 | - ;; |
3680 | - i*86sol2) |
3681 | - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
3682 | - os=-solaris2 |
3683 | - ;; |
3684 | - i386mach) |
3685 | - basic_machine=i386-mach |
3686 | - os=-mach |
3687 | - ;; |
3688 | - i386-vsta | vsta) |
3689 | - basic_machine=i386-unknown |
3690 | - os=-vsta |
3691 | - ;; |
3692 | - iris | iris4d) |
3693 | - basic_machine=mips-sgi |
3694 | - case $os in |
3695 | - -irix*) |
3696 | - ;; |
3697 | - *) |
3698 | - os=-irix4 |
3699 | - ;; |
3700 | - esac |
3701 | - ;; |
3702 | - isi68 | isi) |
3703 | - basic_machine=m68k-isi |
3704 | - os=-sysv |
3705 | - ;; |
3706 | - m88k-omron*) |
3707 | - basic_machine=m88k-omron |
3708 | - ;; |
3709 | - magnum | m3230) |
3710 | - basic_machine=mips-mips |
3711 | - os=-sysv |
3712 | - ;; |
3713 | - merlin) |
3714 | - basic_machine=ns32k-utek |
3715 | - os=-sysv |
3716 | - ;; |
3717 | - mingw32) |
3718 | - basic_machine=i386-pc |
3719 | - os=-mingw32 |
3720 | - ;; |
3721 | - miniframe) |
3722 | - basic_machine=m68000-convergent |
3723 | - ;; |
3724 | - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
3725 | - basic_machine=m68k-atari |
3726 | - os=-mint |
3727 | - ;; |
3728 | - mips3*-*) |
3729 | - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
3730 | - ;; |
3731 | - mips3*) |
3732 | - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
3733 | - ;; |
3734 | - mmix*) |
3735 | - basic_machine=mmix-knuth |
3736 | - os=-mmixware |
3737 | - ;; |
3738 | - monitor) |
3739 | - basic_machine=m68k-rom68k |
3740 | - os=-coff |
3741 | - ;; |
3742 | - morphos) |
3743 | - basic_machine=powerpc-unknown |
3744 | - os=-morphos |
3745 | - ;; |
3746 | - msdos) |
3747 | - basic_machine=i386-pc |
3748 | - os=-msdos |
3749 | - ;; |
3750 | - mvs) |
3751 | - basic_machine=i370-ibm |
3752 | - os=-mvs |
3753 | - ;; |
3754 | - ncr3000) |
3755 | - basic_machine=i486-ncr |
3756 | - os=-sysv4 |
3757 | - ;; |
3758 | - netbsd386) |
3759 | - basic_machine=i386-unknown |
3760 | - os=-netbsd |
3761 | - ;; |
3762 | - netwinder) |
3763 | - basic_machine=armv4l-rebel |
3764 | - os=-linux |
3765 | - ;; |
3766 | - news | news700 | news800 | news900) |
3767 | - basic_machine=m68k-sony |
3768 | - os=-newsos |
3769 | - ;; |
3770 | - news1000) |
3771 | - basic_machine=m68030-sony |
3772 | - os=-newsos |
3773 | - ;; |
3774 | - news-3600 | risc-news) |
3775 | - basic_machine=mips-sony |
3776 | - os=-newsos |
3777 | - ;; |
3778 | - necv70) |
3779 | - basic_machine=v70-nec |
3780 | - os=-sysv |
3781 | - ;; |
3782 | - next | m*-next ) |
3783 | - basic_machine=m68k-next |
3784 | - case $os in |
3785 | - -nextstep* ) |
3786 | - ;; |
3787 | - -ns2*) |
3788 | - os=-nextstep2 |
3789 | - ;; |
3790 | - *) |
3791 | - os=-nextstep3 |
3792 | - ;; |
3793 | - esac |
3794 | - ;; |
3795 | - nh3000) |
3796 | - basic_machine=m68k-harris |
3797 | - os=-cxux |
3798 | - ;; |
3799 | - nh[45]000) |
3800 | - basic_machine=m88k-harris |
3801 | - os=-cxux |
3802 | - ;; |
3803 | - nindy960) |
3804 | - basic_machine=i960-intel |
3805 | - os=-nindy |
3806 | - ;; |
3807 | - mon960) |
3808 | - basic_machine=i960-intel |
3809 | - os=-mon960 |
3810 | - ;; |
3811 | - nonstopux) |
3812 | - basic_machine=mips-compaq |
3813 | - os=-nonstopux |
3814 | - ;; |
3815 | - np1) |
3816 | - basic_machine=np1-gould |
3817 | - ;; |
3818 | - nv1) |
3819 | - basic_machine=nv1-cray |
3820 | - os=-unicosmp |
3821 | - ;; |
3822 | - nsr-tandem) |
3823 | - basic_machine=nsr-tandem |
3824 | - ;; |
3825 | - op50n-* | op60c-*) |
3826 | - basic_machine=hppa1.1-oki |
3827 | - os=-proelf |
3828 | - ;; |
3829 | - or32 | or32-*) |
3830 | - basic_machine=or32-unknown |
3831 | - os=-coff |
3832 | - ;; |
3833 | - OSE68000 | ose68000) |
3834 | - basic_machine=m68000-ericsson |
3835 | - os=-ose |
3836 | - ;; |
3837 | - os68k) |
3838 | - basic_machine=m68k-none |
3839 | - os=-os68k |
3840 | - ;; |
3841 | - pa-hitachi) |
3842 | - basic_machine=hppa1.1-hitachi |
3843 | - os=-hiuxwe2 |
3844 | - ;; |
3845 | - paragon) |
3846 | - basic_machine=i860-intel |
3847 | - os=-osf |
3848 | - ;; |
3849 | - pbd) |
3850 | - basic_machine=sparc-tti |
3851 | - ;; |
3852 | - pbb) |
3853 | - basic_machine=m68k-tti |
3854 | - ;; |
3855 | - pc532 | pc532-*) |
3856 | - basic_machine=ns32k-pc532 |
3857 | - ;; |
3858 | - pentium | p5 | k5 | k6 | nexgen | viac3) |
3859 | - basic_machine=i586-pc |
3860 | - ;; |
3861 | - pentiumpro | p6 | 6x86 | athlon | athlon_*) |
3862 | - basic_machine=i686-pc |
3863 | - ;; |
3864 | - pentiumii | pentium2) |
3865 | - basic_machine=i686-pc |
3866 | - ;; |
3867 | - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
3868 | - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
3869 | - ;; |
3870 | - pentiumpro-* | p6-* | 6x86-* | athlon-*) |
3871 | - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
3872 | - ;; |
3873 | - pentiumii-* | pentium2-*) |
3874 | - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
3875 | - ;; |
3876 | - pn) |
3877 | - basic_machine=pn-gould |
3878 | - ;; |
3879 | - power) basic_machine=power-ibm |
3880 | - ;; |
3881 | - ppc) basic_machine=powerpc-unknown |
3882 | - ;; |
3883 | - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
3884 | - ;; |
3885 | - ppcle | powerpclittle | ppc-le | powerpc-little) |
3886 | - basic_machine=powerpcle-unknown |
3887 | - ;; |
3888 | - ppcle-* | powerpclittle-*) |
3889 | - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
3890 | - ;; |
3891 | - ppc64) basic_machine=powerpc64-unknown |
3892 | - ;; |
3893 | - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
3894 | - ;; |
3895 | - ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
3896 | - basic_machine=powerpc64le-unknown |
3897 | - ;; |
3898 | - ppc64le-* | powerpc64little-*) |
3899 | - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` |
3900 | - ;; |
3901 | - ps2) |
3902 | - basic_machine=i386-ibm |
3903 | - ;; |
3904 | - pw32) |
3905 | - basic_machine=i586-unknown |
3906 | - os=-pw32 |
3907 | - ;; |
3908 | - rom68k) |
3909 | - basic_machine=m68k-rom68k |
3910 | - os=-coff |
3911 | - ;; |
3912 | - rm[46]00) |
3913 | - basic_machine=mips-siemens |
3914 | - ;; |
3915 | - rtpc | rtpc-*) |
3916 | - basic_machine=romp-ibm |
3917 | - ;; |
3918 | - s390 | s390-*) |
3919 | - basic_machine=s390-ibm |
3920 | - ;; |
3921 | - s390x | s390x-*) |
3922 | - basic_machine=s390x-ibm |
3923 | - ;; |
3924 | - sa29200) |
3925 | - basic_machine=a29k-amd |
3926 | - os=-udi |
3927 | - ;; |
3928 | - sb1) |
3929 | - basic_machine=mipsisa64sb1-unknown |
3930 | - ;; |
3931 | - sb1el) |
3932 | - basic_machine=mipsisa64sb1el-unknown |
3933 | - ;; |
3934 | - sequent) |
3935 | - basic_machine=i386-sequent |
3936 | - ;; |
3937 | - sh) |
3938 | - basic_machine=sh-hitachi |
3939 | - os=-hms |
3940 | - ;; |
3941 | - sparclite-wrs | simso-wrs) |
3942 | - basic_machine=sparclite-wrs |
3943 | - os=-vxworks |
3944 | - ;; |
3945 | - sps7) |
3946 | - basic_machine=m68k-bull |
3947 | - os=-sysv2 |
3948 | - ;; |
3949 | - spur) |
3950 | - basic_machine=spur-unknown |
3951 | - ;; |
3952 | - st2000) |
3953 | - basic_machine=m68k-tandem |
3954 | - ;; |
3955 | - stratus) |
3956 | - basic_machine=i860-stratus |
3957 | - os=-sysv4 |
3958 | - ;; |
3959 | - sun2) |
3960 | - basic_machine=m68000-sun |
3961 | - ;; |
3962 | - sun2os3) |
3963 | - basic_machine=m68000-sun |
3964 | - os=-sunos3 |
3965 | - ;; |
3966 | - sun2os4) |
3967 | - basic_machine=m68000-sun |
3968 | - os=-sunos4 |
3969 | - ;; |
3970 | - sun3os3) |
3971 | - basic_machine=m68k-sun |
3972 | - os=-sunos3 |
3973 | - ;; |
3974 | - sun3os4) |
3975 | - basic_machine=m68k-sun |
3976 | - os=-sunos4 |
3977 | - ;; |
3978 | - sun4os3) |
3979 | - basic_machine=sparc-sun |
3980 | - os=-sunos3 |
3981 | - ;; |
3982 | - sun4os4) |
3983 | - basic_machine=sparc-sun |
3984 | - os=-sunos4 |
3985 | - ;; |
3986 | - sun4sol2) |
3987 | - basic_machine=sparc-sun |
3988 | - os=-solaris2 |
3989 | - ;; |
3990 | - sun3 | sun3-*) |
3991 | - basic_machine=m68k-sun |
3992 | - ;; |
3993 | - sun4) |
3994 | - basic_machine=sparc-sun |
3995 | - ;; |
3996 | - sun386 | sun386i | roadrunner) |
3997 | - basic_machine=i386-sun |
3998 | - ;; |
3999 | - sv1) |
4000 | - basic_machine=sv1-cray |
4001 | - os=-unicos |
4002 | - ;; |
4003 | - symmetry) |
4004 | - basic_machine=i386-sequent |
4005 | - os=-dynix |
4006 | - ;; |
4007 | - t3e) |
4008 | - basic_machine=alphaev5-cray |
4009 | - os=-unicos |
4010 | - ;; |
4011 | - t90) |
4012 | - basic_machine=t90-cray |
4013 | - os=-unicos |
4014 | - ;; |
4015 | - tic4x | c4x*) |
4016 | - basic_machine=tic4x-unknown |
4017 | - os=-coff |
4018 | - ;; |
4019 | - tic54x | c54x*) |
4020 | - basic_machine=tic54x-unknown |
4021 | - os=-coff |
4022 | - ;; |
4023 | - tic55x | c55x*) |
4024 | - basic_machine=tic55x-unknown |
4025 | - os=-coff |
4026 | - ;; |
4027 | - tic6x | c6x*) |
4028 | - basic_machine=tic6x-unknown |
4029 | - os=-coff |
4030 | - ;; |
4031 | - tx39) |
4032 | - basic_machine=mipstx39-unknown |
4033 | - ;; |
4034 | - tx39el) |
4035 | - basic_machine=mipstx39el-unknown |
4036 | - ;; |
4037 | - toad1) |
4038 | - basic_machine=pdp10-xkl |
4039 | - os=-tops20 |
4040 | - ;; |
4041 | - tower | tower-32) |
4042 | - basic_machine=m68k-ncr |
4043 | - ;; |
4044 | - udi29k) |
4045 | - basic_machine=a29k-amd |
4046 | - os=-udi |
4047 | - ;; |
4048 | - ultra3) |
4049 | - basic_machine=a29k-nyu |
4050 | - os=-sym1 |
4051 | - ;; |
4052 | - v810 | necv810) |
4053 | - basic_machine=v810-nec |
4054 | - os=-none |
4055 | - ;; |
4056 | - vaxv) |
4057 | - basic_machine=vax-dec |
4058 | - os=-sysv |
4059 | - ;; |
4060 | - vms) |
4061 | - basic_machine=vax-dec |
4062 | - os=-vms |
4063 | - ;; |
4064 | - vpp*|vx|vx-*) |
4065 | - basic_machine=f301-fujitsu |
4066 | - ;; |
4067 | - vxworks960) |
4068 | - basic_machine=i960-wrs |
4069 | - os=-vxworks |
4070 | - ;; |
4071 | - vxworks68) |
4072 | - basic_machine=m68k-wrs |
4073 | - os=-vxworks |
4074 | - ;; |
4075 | - vxworks29k) |
4076 | - basic_machine=a29k-wrs |
4077 | - os=-vxworks |
4078 | - ;; |
4079 | - w65*) |
4080 | - basic_machine=w65-wdc |
4081 | - os=-none |
4082 | - ;; |
4083 | - w89k-*) |
4084 | - basic_machine=hppa1.1-winbond |
4085 | - os=-proelf |
4086 | - ;; |
4087 | - xps | xps100) |
4088 | - basic_machine=xps100-honeywell |
4089 | - ;; |
4090 | - ymp) |
4091 | - basic_machine=ymp-cray |
4092 | - os=-unicos |
4093 | - ;; |
4094 | - z8k-*-coff) |
4095 | - basic_machine=z8k-unknown |
4096 | - os=-sim |
4097 | - ;; |
4098 | - none) |
4099 | - basic_machine=none-none |
4100 | - os=-none |
4101 | - ;; |
4102 | - |
4103 | -# Here we handle the default manufacturer of certain CPU types. It is in |
4104 | -# some cases the only manufacturer, in others, it is the most popular. |
4105 | - w89k) |
4106 | - basic_machine=hppa1.1-winbond |
4107 | - ;; |
4108 | - op50n) |
4109 | - basic_machine=hppa1.1-oki |
4110 | - ;; |
4111 | - op60c) |
4112 | - basic_machine=hppa1.1-oki |
4113 | - ;; |
4114 | - romp) |
4115 | - basic_machine=romp-ibm |
4116 | - ;; |
4117 | - rs6000) |
4118 | - basic_machine=rs6000-ibm |
4119 | - ;; |
4120 | - vax) |
4121 | - basic_machine=vax-dec |
4122 | - ;; |
4123 | - pdp10) |
4124 | - # there are many clones, so DEC is not a safe bet |
4125 | - basic_machine=pdp10-unknown |
4126 | - ;; |
4127 | - pdp11) |
4128 | - basic_machine=pdp11-dec |
4129 | - ;; |
4130 | - we32k) |
4131 | - basic_machine=we32k-att |
4132 | - ;; |
4133 | - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
4134 | - basic_machine=sh-unknown |
4135 | - ;; |
4136 | - sh64) |
4137 | - basic_machine=sh64-unknown |
4138 | - ;; |
4139 | - sparc | sparcv9 | sparcv9b) |
4140 | - basic_machine=sparc-sun |
4141 | - ;; |
4142 | - cydra) |
4143 | - basic_machine=cydra-cydrome |
4144 | - ;; |
4145 | - orion) |
4146 | - basic_machine=orion-highlevel |
4147 | - ;; |
4148 | - orion105) |
4149 | - basic_machine=clipper-highlevel |
4150 | - ;; |
4151 | - mac | mpw | mac-mpw) |
4152 | - basic_machine=m68k-apple |
4153 | - ;; |
4154 | - pmac | pmac-mpw) |
4155 | - basic_machine=powerpc-apple |
4156 | - ;; |
4157 | - *-unknown) |
4158 | - # Make sure to match an already-canonicalized machine name. |
4159 | - ;; |
4160 | - *) |
4161 | - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
4162 | - exit 1 |
4163 | - ;; |
4164 | -esac |
4165 | - |
4166 | -# Here we canonicalize certain aliases for manufacturers. |
4167 | -case $basic_machine in |
4168 | - *-digital*) |
4169 | - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` |
4170 | - ;; |
4171 | - *-commodore*) |
4172 | - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` |
4173 | - ;; |
4174 | - *) |
4175 | - ;; |
4176 | -esac |
4177 | - |
4178 | -# Decode manufacturer-specific aliases for certain operating systems. |
4179 | - |
4180 | -if [ x"$os" != x"" ] |
4181 | -then |
4182 | -case $os in |
4183 | - # First match some system type aliases |
4184 | - # that might get confused with valid system types. |
4185 | - # -solaris* is a basic system type, with this one exception. |
4186 | - -solaris1 | -solaris1.*) |
4187 | - os=`echo $os | sed -e 's|solaris1|sunos4|'` |
4188 | - ;; |
4189 | - -solaris) |
4190 | - os=-solaris2 |
4191 | - ;; |
4192 | - -svr4*) |
4193 | - os=-sysv4 |
4194 | - ;; |
4195 | - -unixware*) |
4196 | - os=-sysv4.2uw |
4197 | - ;; |
4198 | - -gnu/linux*) |
4199 | - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
4200 | - ;; |
4201 | - # First accept the basic system types. |
4202 | - # The portable systems comes first. |
4203 | - # Each alternative MUST END IN A *, to match a version number. |
4204 | - # -sysv* is not here because it comes later, after sysvr4. |
4205 | - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
4206 | - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
4207 | - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
4208 | - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
4209 | - | -aos* \ |
4210 | - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
4211 | - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
4212 | - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
4213 | - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
4214 | - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
4215 | - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
4216 | - | -chorusos* | -chorusrdb* \ |
4217 | - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
4218 | - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
4219 | - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
4220 | - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
4221 | - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
4222 | - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
4223 | - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
4224 | - | -powermax* | -dnix*) |
4225 | - # Remember, each alternative MUST END IN *, to match a version number. |
4226 | - ;; |
4227 | - -qnx*) |
4228 | - case $basic_machine in |
4229 | - x86-* | i*86-*) |
4230 | - ;; |
4231 | - *) |
4232 | - os=-nto$os |
4233 | - ;; |
4234 | - esac |
4235 | - ;; |
4236 | - -nto-qnx*) |
4237 | - ;; |
4238 | - -nto*) |
4239 | - os=`echo $os | sed -e 's|nto|nto-qnx|'` |
4240 | - ;; |
4241 | - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
4242 | - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
4243 | - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
4244 | - ;; |
4245 | - -mac*) |
4246 | - os=`echo $os | sed -e 's|mac|macos|'` |
4247 | - ;; |
4248 | - -linux*) |
4249 | - os=`echo $os | sed -e 's|linux|linux-gnu|'` |
4250 | - ;; |
4251 | - -sunos5*) |
4252 | - os=`echo $os | sed -e 's|sunos5|solaris2|'` |
4253 | - ;; |
4254 | - -sunos6*) |
4255 | - os=`echo $os | sed -e 's|sunos6|solaris3|'` |
4256 | - ;; |
4257 | - -opened*) |
4258 | - os=-openedition |
4259 | - ;; |
4260 | - -wince*) |
4261 | - os=-wince |
4262 | - ;; |
4263 | - -osfrose*) |
4264 | - os=-osfrose |
4265 | - ;; |
4266 | - -osf*) |
4267 | - os=-osf |
4268 | - ;; |
4269 | - -utek*) |
4270 | - os=-bsd |
4271 | - ;; |
4272 | - -dynix*) |
4273 | - os=-bsd |
4274 | - ;; |
4275 | - -acis*) |
4276 | - os=-aos |
4277 | - ;; |
4278 | - -atheos*) |
4279 | - os=-atheos |
4280 | - ;; |
4281 | - -386bsd) |
4282 | - os=-bsd |
4283 | - ;; |
4284 | - -ctix* | -uts*) |
4285 | - os=-sysv |
4286 | - ;; |
4287 | - -nova*) |
4288 | - os=-rtmk-nova |
4289 | - ;; |
4290 | - -ns2 ) |
4291 | - os=-nextstep2 |
4292 | - ;; |
4293 | - -nsk*) |
4294 | - os=-nsk |
4295 | - ;; |
4296 | - # Preserve the version number of sinix5. |
4297 | - -sinix5.*) |
4298 | - os=`echo $os | sed -e 's|sinix|sysv|'` |
4299 | - ;; |
4300 | - -sinix*) |
4301 | - os=-sysv4 |
4302 | - ;; |
4303 | - -triton*) |
4304 | - os=-sysv3 |
4305 | - ;; |
4306 | - -oss*) |
4307 | - os=-sysv3 |
4308 | - ;; |
4309 | - -svr4) |
4310 | - os=-sysv4 |
4311 | - ;; |
4312 | - -svr3) |
4313 | - os=-sysv3 |
4314 | - ;; |
4315 | - -sysvr4) |
4316 | - os=-sysv4 |
4317 | - ;; |
4318 | - # This must come after -sysvr4. |
4319 | - -sysv*) |
4320 | - ;; |
4321 | - -ose*) |
4322 | - os=-ose |
4323 | - ;; |
4324 | - -es1800*) |
4325 | - os=-ose |
4326 | - ;; |
4327 | - -xenix) |
4328 | - os=-xenix |
4329 | - ;; |
4330 | - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
4331 | - os=-mint |
4332 | - ;; |
4333 | - -aros*) |
4334 | - os=-aros |
4335 | - ;; |
4336 | - -kaos*) |
4337 | - os=-kaos |
4338 | - ;; |
4339 | - -none) |
4340 | - ;; |
4341 | - *) |
4342 | - # Get rid of the `-' at the beginning of $os. |
4343 | - os=`echo $os | sed 's/[^-]*-//'` |
4344 | - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 |
4345 | - exit 1 |
4346 | - ;; |
4347 | -esac |
4348 | -else |
4349 | - |
4350 | -# Here we handle the default operating systems that come with various machines. |
4351 | -# The value should be what the vendor currently ships out the door with their |
4352 | -# machine or put another way, the most popular os provided with the machine. |
4353 | - |
4354 | -# Note that if you're going to try to match "-MANUFACTURER" here (say, |
4355 | -# "-sun"), then you have to tell the case statement up towards the top |
4356 | -# that MANUFACTURER isn't an operating system. Otherwise, code above |
4357 | -# will signal an error saying that MANUFACTURER isn't an operating |
4358 | -# system, and we'll never get to this point. |
4359 | - |
4360 | -case $basic_machine in |
4361 | - *-acorn) |
4362 | - os=-riscix1.2 |
4363 | - ;; |
4364 | - arm*-rebel) |
4365 | - os=-linux |
4366 | - ;; |
4367 | - arm*-semi) |
4368 | - os=-aout |
4369 | - ;; |
4370 | - # This must come before the *-dec entry. |
4371 | - pdp10-*) |
4372 | - os=-tops20 |
4373 | - ;; |
4374 | - pdp11-*) |
4375 | - os=-none |
4376 | - ;; |
4377 | - *-dec | vax-*) |
4378 | - os=-ultrix4.2 |
4379 | - ;; |
4380 | - m68*-apollo) |
4381 | - os=-domain |
4382 | - ;; |
4383 | - i386-sun) |
4384 | - os=-sunos4.0.2 |
4385 | - ;; |
4386 | - m68000-sun) |
4387 | - os=-sunos3 |
4388 | - # This also exists in the configure program, but was not the |
4389 | - # default. |
4390 | - # os=-sunos4 |
4391 | - ;; |
4392 | - m68*-cisco) |
4393 | - os=-aout |
4394 | - ;; |
4395 | - mips*-cisco) |
4396 | - os=-elf |
4397 | - ;; |
4398 | - mips*-*) |
4399 | - os=-elf |
4400 | - ;; |
4401 | - or32-*) |
4402 | - os=-coff |
4403 | - ;; |
4404 | - *-tti) # must be before sparc entry or we get the wrong os. |
4405 | - os=-sysv3 |
4406 | - ;; |
4407 | - sparc-* | *-sun) |
4408 | - os=-sunos4.1.1 |
4409 | - ;; |
4410 | - *-be) |
4411 | - os=-beos |
4412 | - ;; |
4413 | - *-ibm) |
4414 | - os=-aix |
4415 | - ;; |
4416 | - *-wec) |
4417 | - os=-proelf |
4418 | - ;; |
4419 | - *-winbond) |
4420 | - os=-proelf |
4421 | - ;; |
4422 | - *-oki) |
4423 | - os=-proelf |
4424 | - ;; |
4425 | - *-hp) |
4426 | - os=-hpux |
4427 | - ;; |
4428 | - *-hitachi) |
4429 | - os=-hiux |
4430 | - ;; |
4431 | - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
4432 | - os=-sysv |
4433 | - ;; |
4434 | - *-cbm) |
4435 | - os=-amigaos |
4436 | - ;; |
4437 | - *-dg) |
4438 | - os=-dgux |
4439 | - ;; |
4440 | - *-dolphin) |
4441 | - os=-sysv3 |
4442 | - ;; |
4443 | - m68k-ccur) |
4444 | - os=-rtu |
4445 | - ;; |
4446 | - m88k-omron*) |
4447 | - os=-luna |
4448 | - ;; |
4449 | - *-next ) |
4450 | - os=-nextstep |
4451 | - ;; |
4452 | - *-sequent) |
4453 | - os=-ptx |
4454 | - ;; |
4455 | - *-crds) |
4456 | - os=-unos |
4457 | - ;; |
4458 | - *-ns) |
4459 | - os=-genix |
4460 | - ;; |
4461 | - i370-*) |
4462 | - os=-mvs |
4463 | - ;; |
4464 | - *-next) |
4465 | - os=-nextstep3 |
4466 | - ;; |
4467 | - *-gould) |
4468 | - os=-sysv |
4469 | - ;; |
4470 | - *-highlevel) |
4471 | - os=-bsd |
4472 | - ;; |
4473 | - *-encore) |
4474 | - os=-bsd |
4475 | - ;; |
4476 | - *-sgi) |
4477 | - os=-irix |
4478 | - ;; |
4479 | - *-siemens) |
4480 | - os=-sysv4 |
4481 | - ;; |
4482 | - *-masscomp) |
4483 | - os=-rtu |
4484 | - ;; |
4485 | - f30[01]-fujitsu | f700-fujitsu) |
4486 | - os=-uxpv |
4487 | - ;; |
4488 | - *-rom68k) |
4489 | - os=-coff |
4490 | - ;; |
4491 | - *-*bug) |
4492 | - os=-coff |
4493 | - ;; |
4494 | - *-apple) |
4495 | - os=-macos |
4496 | - ;; |
4497 | - *-atari*) |
4498 | - os=-mint |
4499 | - ;; |
4500 | - *) |
4501 | - os=-none |
4502 | - ;; |
4503 | -esac |
4504 | -fi |
4505 | - |
4506 | -# Here we handle the case where we know the os, and the CPU type, but not the |
4507 | -# manufacturer. We pick the logical manufacturer. |
4508 | -vendor=unknown |
4509 | -case $basic_machine in |
4510 | - *-unknown) |
4511 | - case $os in |
4512 | - -riscix*) |
4513 | - vendor=acorn |
4514 | - ;; |
4515 | - -sunos*) |
4516 | - vendor=sun |
4517 | - ;; |
4518 | - -aix*) |
4519 | - vendor=ibm |
4520 | - ;; |
4521 | - -beos*) |
4522 | - vendor=be |
4523 | - ;; |
4524 | - -hpux*) |
4525 | - vendor=hp |
4526 | - ;; |
4527 | - -mpeix*) |
4528 | - vendor=hp |
4529 | - ;; |
4530 | - -hiux*) |
4531 | - vendor=hitachi |
4532 | - ;; |
4533 | - -unos*) |
4534 | - vendor=crds |
4535 | - ;; |
4536 | - -dgux*) |
4537 | - vendor=dg |
4538 | - ;; |
4539 | - -luna*) |
4540 | - vendor=omron |
4541 | - ;; |
4542 | - -genix*) |
4543 | - vendor=ns |
4544 | - ;; |
4545 | - -mvs* | -opened*) |
4546 | - vendor=ibm |
4547 | - ;; |
4548 | - -ptx*) |
4549 | - vendor=sequent |
4550 | - ;; |
4551 | - -vxsim* | -vxworks* | -windiss*) |
4552 | - vendor=wrs |
4553 | - ;; |
4554 | - -aux*) |
4555 | - vendor=apple |
4556 | - ;; |
4557 | - -hms*) |
4558 | - vendor=hitachi |
4559 | - ;; |
4560 | - -mpw* | -macos*) |
4561 | - vendor=apple |
4562 | - ;; |
4563 | - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
4564 | - vendor=atari |
4565 | - ;; |
4566 | - -vos*) |
4567 | - vendor=stratus |
4568 | - ;; |
4569 | - esac |
4570 | - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
4571 | - ;; |
4572 | -esac |
4573 | - |
4574 | -echo $basic_machine$os |
4575 | -exit 0 |
4576 | - |
4577 | -# Local variables: |
4578 | -# eval: (add-hook 'write-file-hooks 'time-stamp) |
4579 | -# time-stamp-start: "timestamp='" |
4580 | -# time-stamp-format: "%:y-%02m-%02d" |
4581 | -# time-stamp-end: "'" |
4582 | -# End: |
4583 | |
4584 | === removed file 'config/depcomp' |
4585 | --- config/depcomp 2006-01-20 16:13:23 +0000 |
4586 | +++ config/depcomp 1970-01-01 00:00:00 +0000 |
4587 | @@ -1,479 +0,0 @@ |
4588 | -#! /bin/sh |
4589 | - |
4590 | -# depcomp - compile a program generating dependencies as side-effects |
4591 | -# Copyright 1999, 2000, 2003 Free Software Foundation, Inc. |
4592 | - |
4593 | -# This program is free software; you can redistribute it and/or modify |
4594 | -# it under the terms of the GNU General Public License as published by |
4595 | -# the Free Software Foundation; either version 2, or (at your option) |
4596 | -# any later version. |
4597 | - |
4598 | -# This program is distributed in the hope that it will be useful, |
4599 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
4600 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4601 | -# GNU General Public License for more details. |
4602 | - |
4603 | -# You should have received a copy of the GNU General Public License |
4604 | -# along with this program; if not, write to the Free Software |
4605 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
4606 | -# 02111-1307, USA. |
4607 | - |
4608 | -# As a special exception to the GNU General Public License, if you |
4609 | -# distribute this file as part of a program that contains a |
4610 | -# configuration script generated by Autoconf, you may include it under |
4611 | -# the same distribution terms that you use for the rest of that program. |
4612 | - |
4613 | -# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. |
4614 | - |
4615 | -if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
4616 | - echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
4617 | - exit 1 |
4618 | -fi |
4619 | -# `libtool' can also be set to `yes' or `no'. |
4620 | - |
4621 | -if test -z "$depfile"; then |
4622 | - base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` |
4623 | - dir=`echo "$object" | sed 's,/.*$,/,'` |
4624 | - if test "$dir" = "$object"; then |
4625 | - dir= |
4626 | - fi |
4627 | - # FIXME: should be _deps on DOS. |
4628 | - depfile="$dir.deps/$base" |
4629 | -fi |
4630 | - |
4631 | -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
4632 | - |
4633 | -rm -f "$tmpdepfile" |
4634 | - |
4635 | -# Some modes work just like other modes, but use different flags. We |
4636 | -# parameterize here, but still list the modes in the big case below, |
4637 | -# to make depend.m4 easier to write. Note that we *cannot* use a case |
4638 | -# here, because this file can only contain one case statement. |
4639 | -if test "$depmode" = hp; then |
4640 | - # HP compiler uses -M and no extra arg. |
4641 | - gccflag=-M |
4642 | - depmode=gcc |
4643 | -fi |
4644 | - |
4645 | -if test "$depmode" = dashXmstdout; then |
4646 | - # This is just like dashmstdout with a different argument. |
4647 | - dashmflag=-xM |
4648 | - depmode=dashmstdout |
4649 | -fi |
4650 | - |
4651 | -case "$depmode" in |
4652 | -gcc3) |
4653 | -## gcc 3 implements dependency tracking that does exactly what |
4654 | -## we want. Yay! Note: for some reason libtool 1.4 doesn't like |
4655 | -## it if -MD -MP comes after the -MF stuff. Hmm. |
4656 | - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" |
4657 | - stat=$? |
4658 | - if test $stat -eq 0; then : |
4659 | - else |
4660 | - rm -f "$tmpdepfile" |
4661 | - exit $stat |
4662 | - fi |
4663 | - mv "$tmpdepfile" "$depfile" |
4664 | - ;; |
4665 | - |
4666 | -gcc) |
4667 | -## There are various ways to get dependency output from gcc. Here's |
4668 | -## why we pick this rather obscure method: |
4669 | -## - Don't want to use -MD because we'd like the dependencies to end |
4670 | -## up in a subdir. Having to rename by hand is ugly. |
4671 | -## (We might end up doing this anyway to support other compilers.) |
4672 | -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
4673 | -## -MM, not -M (despite what the docs say). |
4674 | -## - Using -M directly means running the compiler twice (even worse |
4675 | -## than renaming). |
4676 | - if test -z "$gccflag"; then |
4677 | - gccflag=-MD, |
4678 | - fi |
4679 | - "$@" -Wp,"$gccflag$tmpdepfile" |
4680 | - stat=$? |
4681 | - if test $stat -eq 0; then : |
4682 | - else |
4683 | - rm -f "$tmpdepfile" |
4684 | - exit $stat |
4685 | - fi |
4686 | - rm -f "$depfile" |
4687 | - echo "$object : \\" > "$depfile" |
4688 | - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz |
4689 | -## The second -e expression handles DOS-style file names with drive letters. |
4690 | - sed -e 's/^[^:]*: / /' \ |
4691 | - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
4692 | -## This next piece of magic avoids the `deleted header file' problem. |
4693 | -## The problem is that when a header file which appears in a .P file |
4694 | -## is deleted, the dependency causes make to die (because there is |
4695 | -## typically no way to rebuild the header). We avoid this by adding |
4696 | -## dummy dependencies for each header file. Too bad gcc doesn't do |
4697 | -## this for us directly. |
4698 | - tr ' ' ' |
4699 | -' < "$tmpdepfile" | |
4700 | -## Some versions of gcc put a space before the `:'. On the theory |
4701 | -## that the space means something, we add a space to the output as |
4702 | -## well. |
4703 | -## Some versions of the HPUX 10.20 sed can't process this invocation |
4704 | -## correctly. Breaking it into two sed invocations is a workaround. |
4705 | - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
4706 | - rm -f "$tmpdepfile" |
4707 | - ;; |
4708 | - |
4709 | -hp) |
4710 | - # This case exists only to let depend.m4 do its work. It works by |
4711 | - # looking at the text of this script. This case will never be run, |
4712 | - # since it is checked for above. |
4713 | - exit 1 |
4714 | - ;; |
4715 | - |
4716 | -sgi) |
4717 | - if test "$libtool" = yes; then |
4718 | - "$@" "-Wp,-MDupdate,$tmpdepfile" |
4719 | - else |
4720 | - "$@" -MDupdate "$tmpdepfile" |
4721 | - fi |
4722 | - stat=$? |
4723 | - if test $stat -eq 0; then : |
4724 | - else |
4725 | - rm -f "$tmpdepfile" |
4726 | - exit $stat |
4727 | - fi |
4728 | - rm -f "$depfile" |
4729 | - |
4730 | - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
4731 | - echo "$object : \\" > "$depfile" |
4732 | - |
4733 | - # Clip off the initial element (the dependent). Don't try to be |
4734 | - # clever and replace this with sed code, as IRIX sed won't handle |
4735 | - # lines with more than a fixed number of characters (4096 in |
4736 | - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; |
4737 | - # the IRIX cc adds comments like `#:fec' to the end of the |
4738 | - # dependency line. |
4739 | - tr ' ' ' |
4740 | -' < "$tmpdepfile" \ |
4741 | - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ |
4742 | - tr ' |
4743 | -' ' ' >> $depfile |
4744 | - echo >> $depfile |
4745 | - |
4746 | - # The second pass generates a dummy entry for each header file. |
4747 | - tr ' ' ' |
4748 | -' < "$tmpdepfile" \ |
4749 | - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ |
4750 | - >> $depfile |
4751 | - else |
4752 | - # The sourcefile does not contain any dependencies, so just |
4753 | - # store a dummy comment line, to avoid errors with the Makefile |
4754 | - # "include basename.Plo" scheme. |
4755 | - echo "#dummy" > "$depfile" |
4756 | - fi |
4757 | - rm -f "$tmpdepfile" |
4758 | - ;; |
4759 | - |
4760 | -aix) |
4761 | - # The C for AIX Compiler uses -M and outputs the dependencies |
4762 | - # in a .u file. In older versions, this file always lives in the |
4763 | - # current directory. Also, the AIX compiler puts `$object:' at the |
4764 | - # start of each line; $object doesn't have directory information. |
4765 | - # Version 6 uses the directory in both cases. |
4766 | - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` |
4767 | - tmpdepfile="$stripped.u" |
4768 | - if test "$libtool" = yes; then |
4769 | - "$@" -Wc,-M |
4770 | - else |
4771 | - "$@" -M |
4772 | - fi |
4773 | - stat=$? |
4774 | - |
4775 | - if test -f "$tmpdepfile"; then : |
4776 | - else |
4777 | - stripped=`echo "$stripped" | sed 's,^.*/,,'` |
4778 | - tmpdepfile="$stripped.u" |
4779 | - fi |
4780 | - |
4781 | - if test $stat -eq 0; then : |
4782 | - else |
4783 | - rm -f "$tmpdepfile" |
4784 | - exit $stat |
4785 | - fi |
4786 | - |
4787 | - if test -f "$tmpdepfile"; then |
4788 | - outname="$stripped.o" |
4789 | - # Each line is of the form `foo.o: dependent.h'. |
4790 | - # Do two passes, one to just change these to |
4791 | - # `$object: dependent.h' and one to simply `dependent.h:'. |
4792 | - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" |
4793 | - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" |
4794 | - else |
4795 | - # The sourcefile does not contain any dependencies, so just |
4796 | - # store a dummy comment line, to avoid errors with the Makefile |
4797 | - # "include basename.Plo" scheme. |
4798 | - echo "#dummy" > "$depfile" |
4799 | - fi |
4800 | - rm -f "$tmpdepfile" |
4801 | - ;; |
4802 | - |
4803 | -icc) |
4804 | - # Intel's C compiler understands `-MD -MF file'. However on |
4805 | - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c |
4806 | - # ICC 7.0 will fill foo.d with something like |
4807 | - # foo.o: sub/foo.c |
4808 | - # foo.o: sub/foo.h |
4809 | - # which is wrong. We want: |
4810 | - # sub/foo.o: sub/foo.c |
4811 | - # sub/foo.o: sub/foo.h |
4812 | - # sub/foo.c: |
4813 | - # sub/foo.h: |
4814 | - # ICC 7.1 will output |
4815 | - # foo.o: sub/foo.c sub/foo.h |
4816 | - # and will wrap long lines using \ : |
4817 | - # foo.o: sub/foo.c ... \ |
4818 | - # sub/foo.h ... \ |
4819 | - # ... |
4820 | - |
4821 | - "$@" -MD -MF "$tmpdepfile" |
4822 | - stat=$? |
4823 | - if test $stat -eq 0; then : |
4824 | - else |
4825 | - rm -f "$tmpdepfile" |
4826 | - exit $stat |
4827 | - fi |
4828 | - rm -f "$depfile" |
4829 | - # Each line is of the form `foo.o: dependent.h', |
4830 | - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. |
4831 | - # Do two passes, one to just change these to |
4832 | - # `$object: dependent.h' and one to simply `dependent.h:'. |
4833 | - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" |
4834 | - # Some versions of the HPUX 10.20 sed can't process this invocation |
4835 | - # correctly. Breaking it into two sed invocations is a workaround. |
4836 | - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | |
4837 | - sed -e 's/$/ :/' >> "$depfile" |
4838 | - rm -f "$tmpdepfile" |
4839 | - ;; |
4840 | - |
4841 | -tru64) |
4842 | - # The Tru64 compiler uses -MD to generate dependencies as a side |
4843 | - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. |
4844 | - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put |
4845 | - # dependencies in `foo.d' instead, so we check for that too. |
4846 | - # Subdirectories are respected. |
4847 | - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` |
4848 | - test "x$dir" = "x$object" && dir= |
4849 | - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` |
4850 | - |
4851 | - if test "$libtool" = yes; then |
4852 | - tmpdepfile1="$dir.libs/$base.lo.d" |
4853 | - tmpdepfile2="$dir.libs/$base.d" |
4854 | - "$@" -Wc,-MD |
4855 | - else |
4856 | - tmpdepfile1="$dir$base.o.d" |
4857 | - tmpdepfile2="$dir$base.d" |
4858 | - "$@" -MD |
4859 | - fi |
4860 | - |
4861 | - stat=$? |
4862 | - if test $stat -eq 0; then : |
4863 | - else |
4864 | - rm -f "$tmpdepfile1" "$tmpdepfile2" |
4865 | - exit $stat |
4866 | - fi |
4867 | - |
4868 | - if test -f "$tmpdepfile1"; then |
4869 | - tmpdepfile="$tmpdepfile1" |
4870 | - else |
4871 | - tmpdepfile="$tmpdepfile2" |
4872 | - fi |
4873 | - if test -f "$tmpdepfile"; then |
4874 | - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" |
4875 | - # That's a tab and a space in the []. |
4876 | - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" |
4877 | - else |
4878 | - echo "#dummy" > "$depfile" |
4879 | - fi |
4880 | - rm -f "$tmpdepfile" |
4881 | - ;; |
4882 | - |
4883 | -#nosideeffect) |
4884 | - # This comment above is used by automake to tell side-effect |
4885 | - # dependency tracking mechanisms from slower ones. |
4886 | - |
4887 | -dashmstdout) |
4888 | - # Important note: in order to support this mode, a compiler *must* |
4889 | - # always write the preprocessed file to stdout, regardless of -o. |
4890 | - "$@" || exit $? |
4891 | - |
4892 | - # Remove the call to Libtool. |
4893 | - if test "$libtool" = yes; then |
4894 | - while test $1 != '--mode=compile'; do |
4895 | - shift |
4896 | - done |
4897 | - shift |
4898 | - fi |
4899 | - |
4900 | - # Remove `-o $object'. |
4901 | - IFS=" " |
4902 | - for arg |
4903 | - do |
4904 | - case $arg in |
4905 | - -o) |
4906 | - shift |
4907 | - ;; |
4908 | - $object) |
4909 | - shift |
4910 | - ;; |
4911 | - *) |
4912 | - set fnord "$@" "$arg" |
4913 | - shift # fnord |
4914 | - shift # $arg |
4915 | - ;; |
4916 | - esac |
4917 | - done |
4918 | - |
4919 | - test -z "$dashmflag" && dashmflag=-M |
4920 | - # Require at least two characters before searching for `:' |
4921 | - # in the target name. This is to cope with DOS-style filenames: |
4922 | - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. |
4923 | - "$@" $dashmflag | |
4924 | - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" |
4925 | - rm -f "$depfile" |
4926 | - cat < "$tmpdepfile" > "$depfile" |
4927 | - tr ' ' ' |
4928 | -' < "$tmpdepfile" | \ |
4929 | -## Some versions of the HPUX 10.20 sed can't process this invocation |
4930 | -## correctly. Breaking it into two sed invocations is a workaround. |
4931 | - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
4932 | - rm -f "$tmpdepfile" |
4933 | - ;; |
4934 | - |
4935 | -dashXmstdout) |
4936 | - # This case only exists to satisfy depend.m4. It is never actually |
4937 | - # run, as this mode is specially recognized in the preamble. |
4938 | - exit 1 |
4939 | - ;; |
4940 | - |
4941 | -makedepend) |
4942 | - "$@" || exit $? |
4943 | - # Remove any Libtool call |
4944 | - if test "$libtool" = yes; then |
4945 | - while test $1 != '--mode=compile'; do |
4946 | - shift |
4947 | - done |
4948 | - shift |
4949 | - fi |
4950 | - # X makedepend |
4951 | - shift |
4952 | - cleared=no |
4953 | - for arg in "$@"; do |
4954 | - case $cleared in |
4955 | - no) |
4956 | - set ""; shift |
4957 | - cleared=yes ;; |
4958 | - esac |
4959 | - case "$arg" in |
4960 | - -D*|-I*) |
4961 | - set fnord "$@" "$arg"; shift ;; |
4962 | - # Strip any option that makedepend may not understand. Remove |
4963 | - # the object too, otherwise makedepend will parse it as a source file. |
4964 | - -*|$object) |
4965 | - ;; |
4966 | - *) |
4967 | - set fnord "$@" "$arg"; shift ;; |
4968 | - esac |
4969 | - done |
4970 | - obj_suffix="`echo $object | sed 's/^.*\././'`" |
4971 | - touch "$tmpdepfile" |
4972 | - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" |
4973 | - rm -f "$depfile" |
4974 | - cat < "$tmpdepfile" > "$depfile" |
4975 | - sed '1,2d' "$tmpdepfile" | tr ' ' ' |
4976 | -' | \ |
4977 | -## Some versions of the HPUX 10.20 sed can't process this invocation |
4978 | -## correctly. Breaking it into two sed invocations is a workaround. |
4979 | - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
4980 | - rm -f "$tmpdepfile" "$tmpdepfile".bak |
4981 | - ;; |
4982 | - |
4983 | -cpp) |
4984 | - # Important note: in order to support this mode, a compiler *must* |
4985 | - # always write the preprocessed file to stdout. |
4986 | - "$@" || exit $? |
4987 | - |
4988 | - # Remove the call to Libtool. |
4989 | - if test "$libtool" = yes; then |
4990 | - while test $1 != '--mode=compile'; do |
4991 | - shift |
4992 | - done |
4993 | - shift |
4994 | - fi |
4995 | - |
4996 | - # Remove `-o $object'. |
4997 | - IFS=" " |
4998 | - for arg |
4999 | - do |
5000 | - case $arg in |
The diff has been truncated for viewing.
Merge from drizzle sysbench "fork". Changes mainly consist of
-adding drizzle drivers
-updating the oltp lua scripts to work against drizzle
-fix compile time warnings
-updates to autoconf