aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/config.guess
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-09-24 21:24:17 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-09-24 21:24:17 +0300
commit251e47f4a1639244b8bfedd75ce6b4a26ec5949a (patch)
tree71c9f43bf43ab684b4d14f0379bcb9fc6f74b46a /build-aux/config.guess
parent55eee619ac637e29c0fe847cc89cda78cc18c28d (diff)
parentc32959290957c70cd6be333ec6c0b6f1bde4cd80 (diff)
downloadegawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.tar.gz
egawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.tar.bz2
egawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.zip
Merge branch 'master' into feature/iolint
Diffstat (limited to 'build-aux/config.guess')
-rwxr-xr-xbuild-aux/config.guess14
1 files changed, 6 insertions, 8 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 9aff91cf..8d70ec2b 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2020 Free Software Foundation, Inc.
-timestamp='2020-08-17'
+timestamp='2020-09-19'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -150,17 +150,15 @@ Linux|GNU|GNU/*)
#elif defined(__dietlibc__)
LIBC=dietlibc
#else
+ #include <stdarg.h>
+ #ifdef __DEFINED_va_list
+ LIBC=musl
+ #else
LIBC=gnu
#endif
+ #endif
EOF
eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
-
- # If ldd exists, use it to detect musl libc.
- if command -v ldd >/dev/null && \
- ldd --version 2>&1 | grep -q ^musl
- then
- LIBC=musl
- fi
;;
esac