Proper m4 quoting.
[metaproxy-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.60])
6 AC_INIT([metaproxy],[1.0.13],[metaproxy-help@indexdata.dk])
7
8 AC_CONFIG_HEADERS([src/config.hpp])
9
10 AC_CONFIG_SRCDIR([configure.ac]) 
11 AC_CONFIG_AUX_DIR([config])
12 AC_CANONICAL_SYSTEM
13
14 AM_INIT_AUTOMAKE([1.9])
15
16 AC_PROG_CXX
17 AC_PROG_CXXCPP
18 AC_PROG_INSTALL
19 AC_PROG_LN_S
20 AC_PROG_MAKE_SET
21 AC_PROG_RANLIB
22 AM_PROG_LIBTOOL
23
24 # Default language to use for tests (some tests may switch to C++)
25 AC_LANG([C])
26
27 if test "$enable_shared" = "yes"; then
28     AC_DEFINE([HAVE_DL_SUPPORT],[1],
29         [Define to 1 if you have shared module support])
30 fi
31
32 # Checks for libraries.
33 AC_CHECK_LIB([dl],[dlopen])
34 AC_CHECK_LIB([m],[main])
35
36 AC_CHECK_FUNCS([localtime_r])
37
38 ## YAZPP checks
39 YAZPP_INIT([threads],[1.1.0])
40 if test -z "$YAZPPLIB"; then
41     AC_MSG_ERROR([YAZ++ development libraries missing])
42 fi
43 YAZ_DOC
44 CPPFLAGS="$YAZPPINC $CPPFLAGS"
45
46 ID_BOOST([thread test],[1.33])
47
48 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
49
50 AC_CONFIG_FILES([
51         Doxyfile
52         Makefile
53         src/Makefile
54         src/Jamfile
55         xml/Makefile
56         xml/schema/Makefile
57         xml/xslt/Makefile
58         doc/Makefile
59         doc/local.ent
60         doc/common/Makefile
61         doc/common/print.dsl
62         etc/Makefile
63 ])
64
65 AC_OUTPUT
66
67
68 # postamble
69
70
71 echo \
72 "------------------------------------------------------------------------
73
74   Package:                    ${PACKAGE}
75   Version:                    ${VERSION}
76   Source code location:       ${srcdir}
77   CPP Preprocessor:           ${CPP}
78   CPP Preprocessor flags:     ${CPPFLAGS}
79   CXX Compiler:               ${CXX}
80   CXX Compiler flags:         ${CXXFLAGS}
81   Linker flags:               ${LDFLAGS}
82   Linked libs:                ${LIBS}
83   Host System Type:           ${host}
84   Install path:               ${prefix}
85   Automake:                   ${AUTOMAKE}
86   Archiver:                   ${AR}
87   Ranlib:                     ${RANLIB}
88   Boost Version:              ${BOOST_VERSION}               
89   Boost Include:              ${BOOST_CPPFLAGS}               
90   Boost linker flags:         ${BOOST_LDFLAGS}               
91   Boost Libs:                 ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}               
92   YAZPP Version:              ${YAZPPVERSION}
93   YAZPP Include:              ${YAZPPINC}
94   YAZPP La Lib:               ${YAZPPLALIB}
95   YAZPP Lib:                  ${YAZPPLIB}
96   Bugreport:                  ${PACKAGE_BUGREPORT}
97
98 ------------------------------------------------------------------------"
99 dnl Local Variables:
100 dnl mode:shell-script
101 dnl sh-indentation: 2
102 dnl sh-basic-offset: 4
103 dnl End: