Add AC_C_INLINE
[pazpar2-moved-to-github.git] / configure.ac
1 ## -*- Autoconf -*-
2 ## This file is part of Pazpar2.
3 ## Process this file with autoconf to produce a configure script.
4
5 # Autoconf and automake setup
6 AC_PREREQ(2.60)
7 AC_INIT([pazpar2],[1.2.0],[pazpar2-help@indexdata.dk])
8
9 AC_CONFIG_HEADERS(src/config.h)
10
11 AC_CONFIG_SRCDIR([configure.ac]) 
12 AC_CONFIG_AUX_DIR([config])
13 AC_CANONICAL_SYSTEM
14
15 AM_INIT_AUTOMAKE([1.9])
16
17 AC_PROG_CC
18 AC_PROG_RANLIB
19
20 AC_LANG(C)
21
22 AC_C_INLINE
23
24 YAZ_INIT([static icu threads],[3.0.46])
25 if test -z "$YAZLIB"; then
26         AC_MSG_ERROR([YAZ development libraries missing])
27 fi
28 YAZ_DOC
29
30 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h glob.h])
31 AC_CHECK_FUNCS([getaddrinfo])
32
33 if test -d ${srcdir}/.git; then
34         sha=`git show --pretty=format:%H|head -1`
35 else
36         sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
37 fi
38 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
39
40 AC_CONFIG_FILES([
41         Doxyfile
42         Makefile
43         src/Makefile
44         test/Makefile
45         js/Makefile
46         doc/Makefile
47         doc/local.ent
48         doc/common/Makefile
49         doc/common/print.dsl
50         win/version.nsi
51 ])
52
53 AC_OUTPUT
54
55
56 echo \
57 "------------------------------------------------------------------------
58
59   Package:                    ${PACKAGE}
60   Version:                    ${VERSION}
61   Source code location:       ${srcdir}
62   C Preprocessor:             ${CPP}
63   C Preprocessor flags:       ${CPPFLAGS}
64   C Compiler:                 ${CC}
65   C Compiler flags:           ${CFLAGS}
66   Linker flags:               ${LDFLAGS}
67   Linked libs:                ${LIBS}
68   Host System Type:           ${host}
69   Install path:               ${prefix}
70   Automake:                   ${AUTOMAKE}
71   Archiver:                   ${AR}
72   Ranlib:                     ${RANLIB}
73   YAZ Version:                ${YAZVERSION}
74   YAZ Include:                ${YAZINC}
75   YAZ La Lib:                 ${YAZLALIB}
76   YAZ Lib:                    ${YAZLIB}
77   Bugreport:                  ${PACKAGE_BUGREPORT}
78
79 ------------------------------------------------------------------------"
80
81 dnl Local Variables:
82 dnl mode:shell-script
83 dnl sh-indentation:2
84 dnl sh-basic-offset: 4
85 dnl End: