fi
YAZ_DOC
+AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
AC_CHECK_FUNCS([getaddrinfo])
AC_CHECK_ICU([3.6],[ICU_CPPFLAGS="$ICU_CPPFLAGS -D HAVE_ICU=1"])
AC_CONFIG_FILES([
util.c util.h zeerex.c zeerex.h database.c database.h \
settings.h settings.c sel_thread.c sel_thread.h getaddrinfo.c \
charsets.c charsets.h \
- client.c client.h connection.c connection.h host.h parameters.h
+ client.c client.h connection.c connection.h host.h parameters.h \
+ dirent.c direntz.h
pazpar2_SOURCES = pazpar2.c
pazpar2_LDADD = libpazpar2.a $(YAZLIB) $(ICU_LIBS)
\brief Z39.50 client
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <yaz/oid_db.h>
#include <yaz/diagbib1.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#define USE_TIMING 0
#if USE_TIMING
#include <yaz/timing.h>
\brief Z39.50 connection (low-level client)
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <yaz/log.h>
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxslt/xslt.h>
-/* $Id: dirent.c,v 1.10 2007-01-15 15:10:26 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
+/* This file is part of Pazpar2.
+ Copyright (C) 2006-2008 Index Data
-This file is part of the Zebra server.
-
-Zebra is free software; you can redistribute it and/or modify it under
+Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
-Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
*/
+/* almost identical to dirent.c of Zebra. */
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <ctype.h>
#include <assert.h>
* Based on revision YAZ' server/eventl.c 1.29.
*/
-#include <stdio.h>
-#include <assert.h>
-
#if HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdio.h>
+#include <assert.h>
+
#ifdef WIN32
#include <winsock.h>
#else
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#ifdef WIN32
#include <winsock.h>
#endif
#include <sys/types.h>
-#if HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
#include <yaz/snprintf.h>
#if HAVE_UNISTD_H
#include <assert.h>
#include <string.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
*/
-/*
- * $Id: http_command.c,v 1.66 2007-10-28 18:55:26 adam Exp $
- */
-
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <sys/types.h>
-#if HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/time.h>
#endif
#include <yaz/snprintf.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <yaz/yaz-util.h>
#include "util.h"
\brief high-level logic; mostly user sessions and settings
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <yaz/oid_db.h>
#include <yaz/snprintf.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#define USE_TIMING 0
#if USE_TIMING
#include <yaz/timing.h>
\brief char and string normalization for 7bit ascii only
*/
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#if HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+
#include "normalize7bit.h"
#include <config.h>
#endif
-
#include <signal.h>
#include <assert.h>
*/
-/* $Id: config.c,v 1.42 2007-10-31 05:29:08 quinn Exp $ */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <string.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <yaz/yaz-util.h>
#include <yaz/nmem.h>
#include <yaz/snprintf.h>
*/
-/* $Id: record.c,v 1.10 2007-06-13 21:29:04 adam Exp $ */
-
-
#include <string.h>
#include <yaz/yaz-util.h>
*/
-#include <ctype.h>
-#include <math.h>
-#include <stdlib.h>
-
#if HAVE_CONFIG_H
#include <config.h>
#endif
+#include <ctype.h>
+#include <math.h>
+#include <stdlib.h>
+
#include "relevance.h"
#include "pazpar2.h"
*/
-
// This module implements a generic system of settings
// (attribute-value) that can be associated with search targets. The
// system supports both default values, per-target overrides, and
// per-user settings.
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <yaz/yaz-util.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include "termlists.h"
// Discussion:
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdlib.h>
#if HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdlib.h>
#include <yaz/yaz-util.h>
void die(char *string, char *add)