summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-16 21:34:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-16 21:34:19 -0700
commite0fa761ad7a76f760fb358f5d5855bdd55eef13c (patch)
tree5d4c615ed10e235b4776a56f6f55d71bbeeb67dd /configure
parent83aea1f74dd3de219de053d9162f8b217b0530ca (diff)
downloadtxr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.tar.gz
txr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.tar.bz2
txr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.zip
Add exec and pipe functions.
* configure: Check for pipe. * sysif.c (exec_wrap, pipe_wrap): New static functions. (sysif_init): Register exec and pipe intrinsics. * txr.1: Documented exec and pipe. * tl.vim, txr.vim: Regenerated.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 992f014b..ef86a423 100755
--- a/configure
+++ b/configure
@@ -1889,6 +1889,25 @@ else
printf "no\n"
fi
+printf "Checking for pipe ... "
+cat > conftest.c <<!
+#include <unistd.h>
+
+int main(void)
+{
+ int p[2];
+ int r = pipe(p);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_PIPE 1\n" >> $config_h
+else
+ printf "no\n"
+fi
+
+
printf "Checking for _wspawnlp ... "
cat > conftest.c <<!