aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-08-29 15:25:12 +1000
committerSteve Bennett <steveb@workware.net.au>2022-09-18 10:52:51 +1000
commit0545f4c08c65836104d0373879b5173d885ee9a4 (patch)
treec538b4bc9557a2b17e8a60daee98c2b4ac960b26 /auto.def
parent5dbb37089d94b61c34ee5b1da4747c365b5f5072 (diff)
downloadjimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.zip
jimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.tar.gz
jimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.tar.bz2
build: isinf and isnan are macros in C
So don't try to find them as functions Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def6
1 files changed, 5 insertions, 1 deletions
diff --git a/auto.def b/auto.def
index 96e2b97..f88976b 100644
--- a/auto.def
+++ b/auto.def
@@ -246,9 +246,13 @@ cc-check-functions ualarm lstat fork system select execvpe
cc-check-functions geteuid mkstemp realpath isatty
cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist isascii
cc-check-functions syslog opendir readlink sleep usleep pipe getaddrinfo utimes
-cc-check-functions shutdown socketpair isinf isnan link symlink fsync dup umask
+cc-check-functions shutdown socketpair link symlink fsync dup umask
cc-check-functions localtime gmtime strptime clock_gettime
+cc-with {-includes math.h} {
+ cc-check-decls isinf isnan
+}
+
if {[have-feature fork]} {
# Only use vfork if not deprecated
cc-with {-nooutput 1} {