preparing release 1.0.5 with JS errors corrected
[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     AC_MSG_WARN([For ICU internationalizing support please install libicu36-dev or similar]))
30
31 dnl Breaks 'make dist'
32 dnl ln -sf ../../js/pz2.js www/example/pz2.js
33 dnl ln -sf ../../../js/pz2.js www/masterkey/js/pz2.js
34
35 AC_CONFIG_FILES([
36         Doxyfile
37         Makefile
38         src/Makefile
39         test/Makefile
40         js/Makefile
41         doc/Makefile
42         doc/local.ent
43         doc/common/Makefile
44         doc/common/print.dsl
45
46 ])
47
48 AC_OUTPUT
49
50
51 echo \
52 "------------------------------------------------------------------------
53
54   Package:                    ${PACKAGE}
55   Version:                    ${VERSION}
56   Source code location:       ${srcdir}
57   C Preprocessor:             ${CPP}
58   C Preprocessor flags:       ${CPPFLAGS}
59   C Compiler:                 ${CC}
60   C Compiler flags:           ${CFLAGS}
61   Linker flags:               ${LDFLAGS}
62   Linked libs:                ${LIBS}
63   Host System Type:           ${host}
64   Install path:               ${prefix}
65   Automake:                   ${AUTOMAKE}
66   Archiver:                   ${AR}
67   Ranlib:                     ${RANLIB}
68   YAZ Version:                ${YAZVERSION}
69   YAZ Include:                ${YAZINC}
70   YAZ La Lib:                 ${YAZLALIB}
71   YAZ Lib:                    ${YAZLIB}
72   ICU Version:                ${ICU_VERSION}
73   ICU Include:                ${ICU_CPPFLAGS}
74   ICU Lib:                    ${ICU_LIBS}
75   Bugreport:                  ${PACKAGE_BUGREPORT}
76
77 ------------------------------------------------------------------------"
78
79 dnl Local Variables:
80 dnl mode:shell-script
81 dnl sh-indentation:2
82 dnl sh-basic-offset: 4
83 dnl End: