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