summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-06-27 10:55:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-06-27 10:55:10 -0700
commit0197d1dc1c43b808bfbe641ef702b10128fbdc9d (patch)
tree596ff259d99d8afca2ae324ba3aff2632fc0c197 /configure
parent432dac666c1b87bfee9a6eeefbb05908d465d420 (diff)
downloadtxr-0197d1dc1c43b808bfbe641ef702b10128fbdc9d.tar.gz
txr-0197d1dc1c43b808bfbe641ef702b10128fbdc9d.tar.bz2
txr-0197d1dc1c43b808bfbe641ef702b10128fbdc9d.zip
New function strsignal.
* configure: detect strsignal, producing HAVE_STRSIGNAL symbol in config.h. * sysif.c (strsignal_wrap): New function. (sysif_init): Register strsignal intrinsic. * txr.1: Documented.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 7ea5bea0..c2c599f5 100755
--- a/configure
+++ b/configure
@@ -2397,6 +2397,25 @@ else
printf "no\n"
fi
+printf "Checking for strsignal ... "
+
+cat > conftest.c <<!
+#include <string.h>
+#include <signal.h>
+
+int main(void)
+{
+ const char *s = strsignal(SIGABRT);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_STRSIGNAL 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
printf "Checking for setitimer/getitimer ... "
cat > conftest.c <<!