* Copyright (c) 1995-2001, Index Data
* See the file LICENSE for details.
*
- * $Id: admin.c,v 1.11 2001-11-13 23:00:42 adam Exp $
+ * $Id: admin.c,v 1.12 2002-01-17 21:04:43 adam Exp $
*/
#include <stdio.h>
#include <time.h>
#include <assert.h>
-#ifdef WIN32
-
-#else
+#if HAVE_FNMATCH_H
#include <dirent.h>
#include <fnmatch.h>
#include <sys/stat.h>
N.B. That in this case, the import may contain instructions to delete records as well as new or updates
to existing records */
-#ifdef WIN32
-int cmd_adm_import(char *arg)
-{
- printf ("not available on WIN32\n");
- return 0;
-}
-
-#else
-
+#if HAVE_FNMATCH_H
int cmd_adm_import(char *arg)
{
char type_str[20], dir_str[1024], pattern_str[1024];
closedir(dir);
return 2;
}
+#else
+int cmd_adm_import(char *arg)
+{
+ printf ("not available on WIN32\n");
+ return 0;
+}
#endif
int cmd_adm_import2(char* arg)
dnl YAZ Toolkit, Index Data 1994-2001
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.58 2002-01-11 20:26:11 adam Exp $
+dnl $Id: configure.in,v 1.59 2002-01-17 21:04:43 adam Exp $
AC_INIT(include/yaz/yaz-version.h)
AM_INIT_AUTOMAKE(yaz, 1.8.5)
dnl
fi
dnl
dnl ------ Headers
+AC_CHECK_HEADERS(fnmatch.h)
AC_STDC_HEADERS
if test "$ac_cv_header_stdc" = "no"; then
AC_MSG_WARN(Your system doesn't seem to support ANSI C)