summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-21 09:58:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-21 09:58:53 -0700
commitb963e5050aaa83ac59c323a2a0382aa6637f1338 (patch)
tree6b5ff4b1c10dc54057aab817dfe631b52a40f3fe /configure
parent60782a5351d2306ac69f700bfb5ab458648190d7 (diff)
downloadtxr-b963e5050aaa83ac59c323a2a0382aa6637f1338.tar.gz
txr-b963e5050aaa83ac59c323a2a0382aa6637f1338.tar.bz2
txr-b963e5050aaa83ac59c323a2a0382aa6637f1338.zip
Adding realpath function.
* configure: New test for realpath. * sysif.c (realpath_wrap): New static function. (sysif_init): Registered realpath intrinsic. * txr.1: Documented.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 8c1b5c67..3eb16e7d 100755
--- a/configure
+++ b/configure
@@ -2863,6 +2863,24 @@ else
printf "no\n"
fi
+printf "Checking for realpath ... "
+cat > conftest.c <<!
+#include <stdlib.h>
+
+int main(void)
+{
+ char *rp = realpath("/var/lib", 0);
+ return 0;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_REALPATH 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
#
# Dependent variables
#