Make Pazpar2 configure prefer static YAZ - when locally built
[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],[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_CONFIG_FILES([
28         Doxyfile
29         Makefile
30         src/Makefile
31         doc/Makefile
32         doc/local.ent
33         doc/common/Makefile
34         doc/common/print.dsl
35
36 ])
37
38 AC_OUTPUT
39
40
41 echo \
42 "------------------------------------------------------------------------
43
44   Package:                    ${PACKAGE}
45   Version:                    ${VERSION}
46   Source code location:       ${srcdir}
47   C Preprocessor:             ${CPP}
48   C Preprocessor flags:       ${CPPFLAGS}
49   C Compiler:                 ${CC}
50   C Compiler flags:           ${CFLAGS}
51   Linker flags:               ${LDFLAGS}
52   Linked libs:                ${LIBS}
53   Host System Type:           ${host}
54   Install path:               ${prefix}
55   Automake:                   ${AUTOMAKE}
56   Archiver:                   ${AR}
57   Ranlib:                     ${RANLIB}
58   YAZ Version:                ${YAZVERSION}
59   YAZ Include:                ${YAZINC}
60   YAZ La Lib:                 ${YAZLALIB}
61   YAZ Lib:                    ${YAZLIB}
62   Bugreport:                  ${PACKAGE_BUGREPORT}
63
64 ------------------------------------------------------------------------"
65
66 dnl Local Variables:
67 dnl mode:shell-script
68 dnl sh-indentation:2
69 dnl sh-basic-offset: 4
70 dnl End: