summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-23 22:06:52 -0800
committerKaz Kyheku <kaz@kylheku.com>2020-01-23 22:06:52 -0800
commit208319c21734bbb829fd6b8e2bc9da819b454bad (patch)
tree52b37dfbf2ab6ab24fc5758ae6ca75b663112f93 /configure
parente2b37f659246bf9c5ba2ed9561772f8b56a36256 (diff)
downloadtxr-208319c21734bbb829fd6b8e2bc9da819b454bad.tar.gz
txr-208319c21734bbb829fd6b8e2bc9da819b454bad.tar.bz2
txr-208319c21734bbb829fd6b8e2bc9da819b454bad.zip
New function: mkfifo.
* configure: detect mkfifo. (sysif_init): Register mkfifo intrinsic. * txr.1: Documented.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index c3b84a64..69a69e57 100755
--- a/configure
+++ b/configure
@@ -2386,6 +2386,27 @@ else
printf "no\n"
fi
+printf "Checking for mkfifo ... "
+
+cat > conftest.c <<!
+#include "config.h"
+#if HAVE_SYS_STAT
+#include <sys/stat.h>
+#endif
+
+int main(void)
+{
+ int e = mkfifo("a", 0);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_MKFIFO 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
printf "Checking for chmod/fchmod ... "
cat > conftest.c <<!
#include <sys/stat.h>