Towards formal release 1.0.5 (Debian 1.0.5-2).
[pazpar2-moved-to-github.git] / configure.ac
1 ## -*- Autoconf -*-
2 ## Process this file with autoconf to produce a configure script.
3
4 # Autoconf and automake setup
5 AC_PREREQ(2.59)
6 AC_INIT([pazpar2],[1.0.5],[pazpar2-help@indexdata.dk])
7
8 AC_CONFIG_HEADERS(src/cconfig.h)
9
10 AC_CONFIG_SRCDIR([configure.ac]) 
11 AC_CONFIG_AUX_DIR([config])
12 AC_CANONICAL_SYSTEM
13
14 AM_INIT_AUTOMAKE([1.8])
15
16 AC_PROG_CC
17 AC_PROG_RANLIB
18
19 AC_LANG(C)
20
21 YAZ_INIT([static threads],[3.0.4])
22 if test -z "$YAZLIB"; then
23         AC_MSG_ERROR([YAZ development libraries missing])
24 fi
25 YAZ_DOC
26
27 AC_CHECK_FUNCS([getaddrinfo])
28 AC_CHECK_ICU([3.6],[
29         ICU_CPPFLAGS="$ICU_CPPFLAGS -D HAVE_ICU=1"],[
30         AC_MSG_WARN([For ICU support please install libicu36-dev or similar])
31 ])
32 dnl Breaks 'make dist'
33 dnl ln -sf ../../js/pz2.js www/example/pz2.js
34 dnl ln -sf ../../../js/pz2.js www/masterkey/js/pz2.js
35
36 AC_CONFIG_FILES([
37         Doxyfile
38         Makefile
39         src/Makefile
40         test/Makefile
41         js/Makefile
42         doc/Makefile
43         doc/local.ent
44         doc/common/Makefile
45         doc/common/print.dsl
46
47 ])
48
49 AC_OUTPUT
50
51
52 echo \
53 "------------------------------------------------------------------------
54
55   Package:                    ${PACKAGE}
56   Version:                    ${VERSION}
57   Source code location:       ${srcdir}
58   C Preprocessor:             ${CPP}
59   C Preprocessor flags:       ${CPPFLAGS}
60   C Compiler:                 ${CC}
61   C Compiler flags:           ${CFLAGS}
62   Linker flags:               ${LDFLAGS}
63   Linked libs:                ${LIBS}
64   Host System Type:           ${host}
65   Install path:               ${prefix}
66   Automake:                   ${AUTOMAKE}
67   Archiver:                   ${AR}
68   Ranlib:                     ${RANLIB}
69   YAZ Version:                ${YAZVERSION}
70   YAZ Include:                ${YAZINC}
71   YAZ La Lib:                 ${YAZLALIB}
72   YAZ Lib:                    ${YAZLIB}
73   ICU Version:                ${ICU_VERSION}
74   ICU Include:                ${ICU_CPPFLAGS}
75   ICU Lib:                    ${ICU_LIBS}
76   Bugreport:                  ${PACKAGE_BUGREPORT}
77
78 ------------------------------------------------------------------------"
79
80 dnl Local Variables:
81 dnl mode:shell-script
82 dnl sh-indentation:2
83 dnl sh-basic-offset: 4
84 dnl End: