2 ## This file is part of Pazpar2.
3 ## Copyright (C) 2006-2011 Index Data
4 ## Process this file with autoconf to produce a configure script.
6 # Autoconf and automake setup
8 AC_INIT([pazpar2],[1.5.6],[pazpar2-help@indexdata.dk])
10 AC_CONFIG_HEADERS(src/config.h)
12 AC_CONFIG_SRCDIR([configure.ac])
13 AC_CONFIG_AUX_DIR([config])
16 AM_INIT_AUTOMAKE([1.9])
25 YAZ_INIT([static icu],[4.1.0])
26 if test -z "$YAZLIB"; then
27 AC_MSG_ERROR([YAZ development libraries missing])
31 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
33 AC_CHECK_FUNC([connect])
34 if test "$ac_cv_func_connect" = "no"; then
35 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
37 if test "$checkBoth" = "1"; then
39 LIBS="$LIBS -lsocket -lnsl"
40 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
42 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
43 AC_CHECK_FUNCS([getaddrinfo])
45 AC_CHECK_FUNCS([mallinfo])
47 if test -d ${srcdir}/.git; then
48 sha=`git show --pretty=format:%H|head -1`
50 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
52 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
71 "------------------------------------------------------------------------
75 Source code location: ${srcdir}
76 C Preprocessor: ${CPP}
77 C Preprocessor flags: ${CPPFLAGS}
79 C Compiler flags: ${CFLAGS}
80 Linker flags: ${LDFLAGS}
82 Host System Type: ${host}
83 Install path: ${prefix}
87 YAZ Version: ${YAZVERSION}
88 YAZ Include: ${YAZINC}
89 YAZ La Lib: ${YAZLALIB}
91 Bugreport: ${PACKAGE_BUGREPORT}
93 ------------------------------------------------------------------------"
98 dnl sh-basic-offset: 4