added autoconf checks on ICU internationalization libs and established first test...
[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],[0.1],[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],[2.1.50])
22 if test -z "$YAZLIB"; then
23         AC_MSG_ERROR([YAZ development libraries missing])
24 fi
25 YAZ_DOC
26
27 AC_CHECK_ICU(3.6, [], 
28     AC_MSG_WARN([For ICU internationalizing support please install libicu36-dev or similar]))
29
30 AC_CONFIG_FILES([
31         Doxyfile
32         Makefile
33         src/Makefile
34         doc/Makefile
35         doc/local.ent
36         doc/common/Makefile
37         doc/common/print.dsl
38
39 ])
40
41 AC_OUTPUT
42
43
44 echo \
45 "------------------------------------------------------------------------
46
47   Package:                    ${PACKAGE}
48   Version:                    ${VERSION}
49   Source code location:       ${srcdir}
50   C Preprocessor:             ${CPP}
51   C Preprocessor flags:       ${CPPFLAGS}
52   C Compiler:                 ${CC}
53   C Compiler flags:           ${CFLAGS}
54   Linker flags:               ${LDFLAGS}
55   Linked libs:                ${LIBS}
56   Host System Type:           ${host}
57   Install path:               ${prefix}
58   Automake:                   ${AUTOMAKE}
59   Archiver:                   ${AR}
60   Ranlib:                     ${RANLIB}
61   YAZ Version:                ${YAZVERSION}
62   YAZ Include:                ${YAZINC}
63   YAZ La Lib:                 ${YAZLALIB}
64   YAZ Lib:                    ${YAZLIB}
65   ICU Version:                ${ICU_VERSION}
66   ICU Include:                ${ICU_CPPFLAGS}
67   ICU Lib:                    ${ICU_LIBS}
68   Bugreport:                  ${PACKAGE_BUGREPORT}
69
70 ------------------------------------------------------------------------"
71
72 dnl Local Variables:
73 dnl mode:shell-script
74 dnl sh-indentation:2
75 dnl sh-basic-offset: 4
76 dnl End: