Skip to content

Commit 1236a81

Browse files
committed
1 parent b323ebf commit 1236a81

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

config/config.guess

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /bin/sh
22
# Attempt to guess a canonical system name.
3-
# Copyright 1992-2023 Free Software Foundation, Inc.
3+
# Copyright 1992-2024 Free Software Foundation, Inc.
44

55
# shellcheck disable=SC2006,SC2268 # see below for rationale
66

7-
timestamp='2023-08-22'
7+
timestamp='2024-07-27'
88

99
# This file is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ version="\
6060
GNU config.guess ($timestamp)
6161
6262
Originally written by Per Bothner.
63-
Copyright 1992-2023 Free Software Foundation, Inc.
63+
Copyright 1992-2024 Free Software Foundation, Inc.
6464
6565
This is free software; see the source for copying conditions. There is NO
6666
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,7 +123,7 @@ set_cc_for_build() {
123123
dummy=$tmp/dummy
124124
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
125125
,,) echo "int x;" > "$dummy.c"
126-
for driver in cc gcc c89 c99 ; do
126+
for driver in cc gcc c17 c99 c89 ; do
127127
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
128128
CC_FOR_BUILD=$driver
129129
break
@@ -165,6 +165,8 @@ Linux|GNU|GNU/*)
165165
LIBC=dietlibc
166166
#elif defined(__GLIBC__)
167167
LIBC=gnu
168+
#elif defined(__LLVM_LIBC__)
169+
LIBC=llvm
168170
#else
169171
#include <stdarg.h>
170172
/* First heuristic to detect musl libc. */
@@ -632,7 +634,8 @@ EOF
632634
sed 's/^ //' << EOF > "$dummy.c"
633635
#include <sys/systemcfg.h>
634636
635-
main()
637+
int
638+
main ()
636639
{
637640
if (!__power_pc())
638641
exit(1);
@@ -716,7 +719,8 @@ EOF
716719
#include <stdlib.h>
717720
#include <unistd.h>
718721
719-
int main ()
722+
int
723+
main ()
720724
{
721725
#if defined(_SC_KERNEL_BITS)
722726
long bits = sysconf(_SC_KERNEL_BITS);
@@ -1593,6 +1597,9 @@ EOF
15931597
*:Unleashed:*:*)
15941598
GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
15951599
;;
1600+
*:Ironclad:*:*)
1601+
GUESS=$UNAME_MACHINE-unknown-ironclad
1602+
;;
15961603
esac
15971604

15981605
# Do we have a guess based on uname results?
@@ -1616,6 +1623,7 @@ cat > "$dummy.c" <<EOF
16161623
#endif
16171624
#endif
16181625
#endif
1626+
int
16191627
main ()
16201628
{
16211629
#if defined (sony)

0 commit comments

Comments
 (0)