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.7],[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.2.0])
26 if test -z "$YAZLIB"; then
27 AC_MSG_ERROR([YAZ development libraries missing])
31 AC_SEARCH_LIBS([log],[m])
32 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
34 AC_CHECK_FUNC([connect])
35 if test "$ac_cv_func_connect" = "no"; then
36 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
38 if test "$checkBoth" = "1"; then
40 LIBS="$LIBS -lsocket -lnsl"
41 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
43 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
44 AC_CHECK_FUNCS([getaddrinfo mallinfo])
46 if test -d ${srcdir}/.git; then
47 sha=`git show --pretty=format:%H|head -1`
49 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
51 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
70 "------------------------------------------------------------------------
74 Source code location: ${srcdir}
75 C Preprocessor: ${CPP}
76 C Preprocessor flags: ${CPPFLAGS}
78 C Compiler flags: ${CFLAGS}
79 Linker flags: ${LDFLAGS}
81 Host System Type: ${host}
82 Install path: ${prefix}
83 YAZ Version: ${YAZVERSION}
84 YAZ Include: ${YAZINC}
86 Bugreport: ${PACKAGE_BUGREPORT}
88 ------------------------------------------------------------------------"
93 dnl sh-basic-offset: 4