summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-04-20 21:35:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-04-20 21:35:21 -0700
commitede052ddd4c753c9d09863b541ad7e2379b41899 (patch)
treee746210389594b15278445cb7846a9a963b56659 /configure
parent95e3dbd17b7620d885a3fe92c6d3d6ae4e6fb570 (diff)
downloadtxr-ede052ddd4c753c9d09863b541ad7e2379b41899.tar.gz
txr-ede052ddd4c753c9d09863b541ad7e2379b41899.tar.bz2
txr-ede052ddd4c753c9d09863b541ad7e2379b41899.zip
Integrating fnmatch.
* configure: new test for fnmatch, introducing HAVE_FNMATCH configure variable into config/config.h. * sysif.c (fnmatch_wrap): New function. (sysif_init): Register intrinsic variables fnm-pathname, fnm-noescape, fnm-period, fnm-leading-dir, fnm-casefold and fnm-extmatch. Register intrinsic function fnmatch. * txr.1: Documented.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index 4293fb21..b098c717 100755
--- a/configure
+++ b/configure
@@ -2135,6 +2135,26 @@ else
printf "no\n"
fi
+printf "Checking for fnmatch ... "
+
+cat > conftest.c <<!
+#include <fnmatch.h>
+
+int main(int argc, char *argv[])
+{
+ int res = fnmatch("*.txr", "foo.txr", FNM_PATHNAME);
+ return 0;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_FNMATCH 1\n" >> $config_h
+ have_ftw=y
+else
+ printf "no\n"
+fi
+
printf "Checking for windres ... "
if output=$(windres -V 2> /dev/null) ; then