rework config.m4
[m6w6/ext-psi] / config.psi_glob.m4
diff --git a/config.psi_glob.m4 b/config.psi_glob.m4
new file mode 100644 (file)
index 0000000..26896e3
--- /dev/null
@@ -0,0 +1,27 @@
+AC_DEFUN(PSI_CHECK_GLOB, [
+    AC_CHECK_HEADERS(glob.h)
+    PSI_STRUCT(glob_t, [
+        size_t gl_pathc,
+        int gl_matchc,
+        size_t gl_offs,
+        int gl_flags,
+        char **gl_pathv])
+    PSI_DECL(int, glob, [(char *path, int flags, void *err, glob_t *buf)])
+    PSI_DECL(void, globfree, [(glob_t *buf)])
+    PSI_CONST(GLOB_APPEND, int)
+    PSI_CONST(GLOB_BRACE, int)
+    PSI_CONST(GLOB_DOOFFS, int)
+    PSI_CONST(GLOB_ERR, int)
+    PSI_CONST(GLOB_MARK, int)
+    PSI_CONST(GLOB_NOCHECK, int)
+    PSI_CONST(GLOB_NOESCAPE, int)
+    PSI_CONST(GLOB_NOMAGIC, int)
+    PSI_CONST(GLOB_NOSORT, int)
+    PSI_CONST(GLOB_ONLYDIR, int)
+    PSI_CONST(GLOB_PERIOD, int)
+    PSI_CONST(GLOB_TILDE, int)
+    PSI_CONST(GLOB_TILDE_CHECK, int)
+    PSI_CONST(GLOB_ABORTED, int)
+    PSI_CONST(GLOB_NOMATCH, int)
+    PSI_CONST(GLOB_NOSPACE, int)
+])