Ben Elliston
1e826a0344
* config.guess: Replace large 'set_cc_for_build' shell variable,
...
that is executed via eval, with a POSIX shell function.
* Makefile (shellcheck): Ignore SC2039 diagnostics ("In POSIX sh,
RANDOM is undefined") and SC2172 ("Trapping signals by number is
not well defined. Prefer signal names").
2018-07-12 07:56:15 +10:00
Ben Elliston
ba47464ef7
* config.guess (set_cc_for_build): Suppress possible mkdir output.
2018-07-06 22:45:59 +10:00
Sevan Janiyan
0388bdcb11
* config.guess (*:Minix:*:*): Accept any machine.
...
* testsuite/config-guess.data: Add a test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-06-26 11:54:17 +10:00
Ben Elliston
382847f038
* config.guess (set_cc_for_build): Guard against $CC_FOR_BUILD,
...
$HOST_CC and $CC being undefined by using ${var-} style expansion.
(*:NetBSD:*:*): Likewise for $abi.
* testsuite/config-guess.sh: Run config.guess under `sh -eu'.
2018-05-19 18:58:37 +10:00
Paul Eggert
614ae20b93
* config.guess: Use before-save-hook not write-file-functions.
...
* config.sub: Ditto.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-03-08 11:29:55 +11:00
Ben Elliston
6b2374c795
Fix config.guess timestamp.
2018-03-01 07:09:48 +11:00
Ben Elliston
8d4e4ce15b
Revert for now:
...
2018-02-24 James Clarke <jrtc27@jrtc27.com>
* config.guess (x86_64:Linux:*:*): Detect x32 ABI.
2018-03-01 07:08:40 +11:00
James Clarke
bd9626458c
* config.guess (x86_64:Linux:*:*): Detect x32 ABI.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-02-24 12:34:33 +11:00
Henri Menke
3d00f60242
* config.guess: Try to detect musl libc on GNU/Linux systems using
...
ldd --version.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-01-26 14:04:08 +11:00
Ben Elliston
827c77253b
* config.guess: Use double quotes on any remaining unquoted
...
variables to prevent globbing and word splitting.
2018-01-16 18:09:53 +11:00
Ben Elliston
9ca5f17e49
* config.guess: Change most ${foo} expansions to "$foo" to:
...
(1) double quote to prevent globbing and word splitting; and
(2) remove extraneous braces.
2018-01-16 12:06:26 +11:00
Ben Elliston
68b4eebf4d
* config.guess: Quote $dummy.c, $dummy.o and $dummy to prevent
...
globbing and word splitting in the filename.
2018-01-16 11:32:22 +11:00
Randall S. Becker
a69a8a3d51
* config.guess (NSV-*:NONSTOP_KERNEL:*:*): New.
...
* config.sub (nsv-tandem): New.
* testsuite/config-guess.data: Add a test case.
* testsuite/config-sub.data: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-01-11 10:00:52 +11:00
Ben Elliston
6fc06f163a
* config.guess: Update copyright years.
...
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2018-01-01 17:10:32 +11:00
Henry Bent
c9092d0534
* config.guess (mips:OSF1:*:*): Recognise.
...
* testsuite/config-guess.data: Add a test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-12-17 14:03:06 +11:00
Ben Elliston
64198f12d8
Thanks to Urs Janßen.
...
* config.guess (mips:*:*:UMIPS | mips:*:*:RISCos): Fix typo.
2017-11-07 19:41:08 +11:00
Ben Elliston
3e66531146
Reported by Nelson H. F. Beebe:
...
* config.guess (*:MidnightBSD:*:*): Recognise.
* testsuite/config-guess.data: Add a test case.
2017-11-07 14:14:17 +11:00
Ben Elliston
ef95b1db9b
Also revert -- these parens were there for a reason. :-(
...
* config.guess: Remove unnecessary parentheses inside `..`
command substitutions to improve clarity.
2017-11-05 11:33:30 +11:00
Ben Elliston
76d2f0e6f6
Revert -- it's too soon to make this change.
...
* config.guess: Replace old-style `..` command substitution with
the more modern $(..) form.
* config.sub: Likewise.
2017-11-04 11:04:43 +11:00
Ben Elliston
cf2650fa94
* config.guess: Improve usage text.
...
* config.sub: Likewise.
2017-11-04 09:22:08 +11:00
Ben Elliston
a1aab4fe31
* config.guess: Replace old-style ..
command substitution with
...
the more modern $(..) form.
* config.sub: Likewise.
2017-11-03 22:21:08 +11:00
Ben Elliston
e37d556198
* config.guess: Remove unnecessary parentheses inside ..
command
...
substitutions to improve clarity.
2017-11-03 21:09:41 +11:00
Ben Elliston
ddf1db93f3
* config.guess (i*86:SYSTEM_V:4.*:*): Remove pattern as this is
...
already matched by i*86:*:4.*:*.
2017-11-01 10:15:08 +11:00
Ben Elliston
e1e709f4a9
* config.guess (romp-ibm:4.4BSD:*): Correct pattern so that it
...
does not match romp-ibm:BSD:* in the immediately following case.
2017-11-01 10:06:21 +11:00
Ben Elliston
57406ae8e6
* config.guess (mips:*:*:UMIPS | mips:*:*:RISCos): Use explicit
...
escaping for \n.
2017-11-01 10:03:09 +11:00
Ben Elliston
4e9ab51a54
* config.guess: Whitespace fixes.
...
* config.sub: Ditto.
2017-11-01 09:31:38 +11:00
Ben Elliston
c003e5cb94
* config.guess: Output a note that a C compiler may be needed when
...
guessing fails on MIPS GNU/Linux systems.
2017-09-26 12:16:43 +10:00
Ben Elliston
c346c22106
* config.guess (Local variables): Use 'write-file-functions
...
instead of the deprecated 'write-file-hook (as of Emacs 22.1).
* config.sub: Likewise.
2017-09-26 11:38:13 +10:00
Paul Eggert
0710b02a4a
Prefer https: to http: for gnu.org
...
In Gnulib, Emacs, etc. we are changing ftp: and http: URLs to
use https:, to help defend against man-in-the-middle attacks.
Propagate these changes upstream to the config scripts.
* config.guess, config.sub: Use https: URLs in diagnostics
and in comments.
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-09-17 08:25:26 +10:00
Ben Elliston
554e3feb15
* config.sub (maybe_os): Remove -windowsnt*.
...
* config.guess (Alpha\ *:Windows_NT*:*): Remove obsolete case.
(21064:Windows_NT:50:3): Likewise.
(i*:windows32*:*): Likewise.
([345]86:Windows_95:*, [345]86:Windows_98:*): Likewise.
([345]86:Windows_NT:*): Likewise.
(8664:Windows_NT:*): Likewise.
(i*:Windows_NT*:* | Pentium*:Windows_NT*:*): Likewise.
(p*:CYGWIN*:*): Likewise.
* testsuite/config-guess.data: Remove relevant test cases.
2017-09-12 11:52:17 +10:00
Ian Douglas Scott
636f39d3a3
* config.guess (*:Redox:*:*): New.
...
* testsuite/config-guess.data: Add a test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-08-08 18:54:55 +10:00
Ben Elliston
81497f5aaf
* config.guess: Improve "outdated script" message.
2017-07-19 11:50:48 +10:00
Mojca Miklavec
7d3d27baf8
* config.guess (*:Darwin:*:*): Set UNAME_PROCESSOR to powerpc when
...
__POWERPC__ is defined (e.g. when building with gcc -arch ppc).
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-05-27 21:26:27 +10:00
Ben Elliston
281c61b32f
* config.guess (NSR-*:NONSTOP_KERNEL:*:*): Match suffix with *.
...
(NEO-*:NONSTOP_KERNEL:*:*): Likewise.
* testsuite/config-guess.data: Add test cases.
2017-05-11 20:36:27 +10:00
Ben Elliston
53c0fcc404
Reported by Hugues Lefebvre <hugues.lefebvre@lusis.fr>.
...
* config.guess (NSX-*:NONSTOP_KERNEL:*:*): Some L-SERIES systems
now have more than one letter in the suffix, so match with *.
* testsuite/config-guess.data: Add a test case.
2017-05-11 09:50:56 +10:00
Gerald Pfeifer
00666e7b39
* config.guess (*:FreeBSD:*:*): Refactor CPU handling.
...
Canonicalize i386-*-freebsd* to i586-*-freebsd*.
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-03-05 08:29:01 +11:00
Ben Elliston
2fbde7c1b5
Reported by Hugues Lefebvre <hugues.lefebvre@lusis.fr>.
...
* config.guess (NSX-?:NONSTOP_KERNEL:*:*): New.
* config.sub (nsx-tandem): New.
* testsuite/config-guess.data: Add a test case.
* testsuite/config-sub.data: Likewise.
2017-02-07 05:55:13 +11:00
Ben Elliston
6a82322dd0
* config.guess: Update copyright years.
...
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2016-12-31 23:04:57 +11:00
Ben Elliston
084a407660
* config.guess (mips64el:Linux:*:*): New.
...
* testsuite/config-guess.data: Add a test case.
2016-10-03 12:48:54 +11:00
David Abdurachmanov
9152ce4032
* config.guess (riscv32:Linux:*:*, riscv64:Linux:*:*): New.
...
* testsuite/config-guess.data: Add riscv32, riscv64.
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-09-11 09:59:56 +10:00
Ben Elliston
dafd8e767e
* config.guess: Improve help when a system is not recognised.
2016-05-15 19:19:18 +10:00
Nick Hudson
81063d2a4a
* config.guess (*:NetBSD:*:*): Always use "netbsdelf" for earm.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-05-13 21:57:53 +10:00
Ben Elliston
706fbe57e3
Silence warning SC2021 from shellcheck.
...
* config.guess (*:GNU/*:*:*): Use [:upper:] and [:lower:] classes
instead of [A-Z] and [a-z]. Putting [] around character ranges in
tr is a mistake anyway, as it includes square brackets in the
translation.
2016-04-02 13:19:03 +11:00
Ben Elliston
ff434509fc
Silence warning SC2116 from shellcheck.
...
* config.guess (i*86:skyos:*:*): Fix misplaced backquote.
2016-04-02 13:17:45 +11:00
Ben Elliston
1f226b04f1
Silence warning SC1007 from shellcheck.
...
* config.guess: Explicitly set CCOPTS to "" not the empty string.
2016-04-02 12:59:20 +11:00
Luis Kornblueh
081b46702f
* config.guess (SX-ACE:SUPER-UX:*:*): New.
...
* testsuite/config-guess.data: Add a test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-24 19:40:55 +11:00
Ben Elliston
bb8fb40295
* config.guess: Simplify shell code by removing quotes around
...
fixed strings that contain no expansions.
2016-02-11 22:44:49 +11:00
Urs Janßen
01874d586c
* config.guess (*:LibertyBSD:*:*): Fix sed expression.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-11 14:26:32 +11:00
Riley Baird
6686d2dbf9
* config.guess (*:LibertyBSD:*:*): New.
...
* config.sub (-libertybsd*): Likewise.
* testsuite/config-sub.data: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-03 21:58:35 +11:00
Ben Elliston
8f57293617
* config.guess: Update copyright years.
...
* config.sub: Likewise.
2015-12-31 22:20:17 +11:00