Cleaning styles.
[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         test/Makefile
35         doc/Makefile
36         doc/local.ent
37         doc/common/Makefile
38         doc/common/print.dsl
39
40 ])
41
42 AC_OUTPUT
43
44
45 echo \
46 "------------------------------------------------------------------------
47
48   Package:                    ${PACKAGE}
49   Version:                    ${VERSION}
50   Source code location:       ${srcdir}
51   C Preprocessor:             ${CPP}
52   C Preprocessor flags:       ${CPPFLAGS}
53   C Compiler:                 ${CC}
54   C Compiler flags:           ${CFLAGS}
55   Linker flags:               ${LDFLAGS}
56   Linked libs:                ${LIBS}
57   Host System Type:           ${host}
58   Install path:               ${prefix}
59   Automake:                   ${AUTOMAKE}
60   Archiver:                   ${AR}
61   Ranlib:                     ${RANLIB}
62   YAZ Version:                ${YAZVERSION}
63   YAZ Include:                ${YAZINC}
64   YAZ La Lib:                 ${YAZLALIB}
65   YAZ Lib:                    ${YAZLIB}
66   ICU Version:                ${ICU_VERSION}
67   ICU Include:                ${ICU_CPPFLAGS}
68   ICU Lib:                    ${ICU_LIBS}
69   Bugreport:                  ${PACKAGE_BUGREPORT}
70
71 ------------------------------------------------------------------------"
72
73 dnl Local Variables:
74 dnl mode:shell-script
75 dnl sh-indentation:2
76 dnl sh-basic-offset: 4
77 dnl End: