Skip to content

Commit 80187bf

Browse files
committed
Update autoconf cross-compilation files.
1 parent 13fa763 commit 80187bf

File tree

2 files changed

+605
-190
lines changed

2 files changed

+605
-190
lines changed

config.guess

Lines changed: 19 additions & 8 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-2025 Free Software Foundation, Inc.
44

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

7-
timestamp='2023-08-22'
7+
timestamp='2025-07-10'
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-2025 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,12 @@ EOF
15931597
*:Unleashed:*:*)
15941598
GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
15951599
;;
1600+
x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
1601+
GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
1602+
;;
1603+
*:[Ii]ronclad:*:*)
1604+
GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
1605+
;;
15961606
esac
15971607

15981608
# Do we have a guess based on uname results?
@@ -1616,6 +1626,7 @@ cat > "$dummy.c" <<EOF
16161626
#endif
16171627
#endif
16181628
#endif
1629+
int
16191630
main ()
16201631
{
16211632
#if defined (sony)
@@ -1800,8 +1811,8 @@ fi
18001811
exit 1
18011812

18021813
# Local variables:
1803-
# eval: (add-hook 'before-save-hook 'time-stamp)
1814+
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
18041815
# time-stamp-start: "timestamp='"
1805-
# time-stamp-format: "%:y-%02m-%02d"
1816+
# time-stamp-format: "%Y-%02m-%02d"
18061817
# time-stamp-end: "'"
18071818
# End:

0 commit comments

Comments
 (0)