Version 1.2.7
[yazpp-moved-to-github.git] / configure.ac
1 dnl This file is part of yazpp
2 dnl Copyright (C) 1998-2011 Index Data
3 AC_PREREQ(2.60)
4 AC_INIT([yazpp],[1.2.7],[adam@indexdata.dk])
5 AC_CONFIG_HEADERS([include/config.h])
6 AC_CONFIG_SRCDIR(configure.ac)
7 AC_CONFIG_AUX_DIR([config])
8 AM_INIT_AUTOMAKE([1.9])
9
10 AC_PROG_CC
11 AC_PROG_CPP
12 AC_PROG_CXX
13 AC_HEADER_STDC
14 AM_PROG_LIBTOOL
15
16 YAZ_INIT([threads],[4.2.8])
17 if test -z "$YAZLIB"; then
18         AC_MSG_ERROR([YAZ development libraries missing])
19 fi
20 YAZ_DOC
21 AC_CHECK_HEADERS([unistd.h sys/stat.h sys/time.h sys/types.h fcntl.h])
22
23 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
24 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
25
26 AC_OUTPUT([
27         Doxyfile
28         Makefile
29         src/Makefile
30         include/Makefile
31         include/yazpp/Makefile
32         zlint/Makefile
33         yazpp-config
34         zoom/Makefile
35         doc/Makefile
36         doc/local.ent
37         doc/common/Makefile
38         doc/common/print.dsl
39 ],[sed s%echo_source=yes%echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])
40
41
42 echo \
43 "------------------------------------------------------------------------
44
45   YAZPP Package:              ${PACKAGE}
46   YAZPP Version:              ${VERSION}
47   Source code location:       ${srcdir}
48   CPP Preprocessor:           ${CPP}
49   CPP Preprocessor flags:     ${CPPFLAGS}
50   CXX Compiler:               ${CXX}
51   CXX Compiler flags:         ${CXXFLAGS}
52   Linker flags:               ${LDFLAGS}
53   Linked libs:                ${LIBS}
54   Host System Type:           ${host}
55   Install path:               ${prefix}
56   Automake:                   ${AUTOMAKE}
57   Archiver:                   ${AR}
58   Ranlib:                     ${RANLIB}
59   YAZ Version:                ${YAZVERSION}
60   YAZ Include:                ${YAZINC}
61   YAZ La Lib:                 ${YAZLALIB}
62   YAZ Lib:                    ${YAZLIB}
63   Bugreport:                  ${PACKAGE_BUGREPORT}
64
65 ------------------------------------------------------------------------"