2 ## Process this file with autoconf to produce a configure script.
4 # Autoconf and automake setup
6 AC_INIT([metaproxy],[1.3.15],[metaproxy-help@indexdata.dk])
8 AC_CONFIG_HEADERS([src/config.hpp])
10 AC_CONFIG_SRCDIR([configure.ac])
11 AC_CONFIG_AUX_DIR([config])
14 AM_INIT_AUTOMAKE([1.9])
24 # Default language to use for tests (some tests may switch to C++)
27 if test "$enable_shared" = "yes"; then
28 AC_DEFINE([HAVE_DL_SUPPORT],[1],
29 [Define to 1 if you have shared module support])
32 # Checks for libraries.
33 AC_CHECK_LIB([dl],[dlopen])
34 AC_CHECK_LIB([m],[main])
36 AC_CHECK_FUNCS([localtime_r])
39 YAZPP_INIT([threads],[1.2.7])
40 if test -z "$YAZPPLIB"; then
41 AC_MSG_ERROR([YAZ++ development libraries missing])
43 CPPFLAGS="$YAZPPINC $CPPFLAGS"
44 AC_MSG_CHECKING([if YAZ is version 4.2.14 or later])
46 [AC_LANG_PROGRAM([[#include <yaz/yaz-version.h>]],
48 #if YAZ_VERSIONL < 0x4020e
52 [AC_MSG_RESULT([yes])],
54 AC_MSG_ERROR([newer version of YAZ required])]
58 ID_BOOST([thread test regex],[1.33])
59 if test -z "${BOOST_THREAD_LIB}"; then
60 AC_MSG_ERROR([Boost thread development libraries required])
62 if test -z "${BOOST_TEST_LIB}"; then
63 AC_MSG_ERROR([Boost unit test framework libraries required])
65 if test -z "${BOOST_REGEX_LIB}"; then
66 AC_MSG_ERROR([Boost regex development libraries required])
71 YAZ_LIBXML2([xml_avail=true])
73 YAZ_LIBXSLT([xslt_avail=true])
75 AC_MSG_ERROR([Libxml2 development files not found])
80 AC_MSG_ERROR([Libxslt development files not found])
83 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
85 if test -d ${srcdir}/.git; then
86 SHA1=`git show --pretty=format:%H|head -1`
88 SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
90 AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
96 include/Makefile include/metaproxy/Makefile
107 sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config
112 "------------------------------------------------------------------------
116 Source code location: ${srcdir}
117 CPP Preprocessor: ${CPP}
118 CPP Preprocessor flags: ${CPPFLAGS}
120 CXX Compiler flags: ${CXXFLAGS}
121 Linker flags: ${LDFLAGS}
123 Host System Type: ${host}
124 Install path: ${prefix}
125 Automake: ${AUTOMAKE}
128 Boost Version: ${BOOST_VERSION}
129 Boost Include: ${BOOST_CPPFLAGS}
130 Boost linker flags: ${BOOST_LDFLAGS}
131 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}
132 YAZPP Version: ${YAZPPVERSION}
133 YAZPP Include: ${YAZPPINC}
134 YAZPP La Lib: ${YAZPPLALIB}
135 YAZPP Lib: ${YAZPPLIB}
136 Bugreport: ${PACKAGE_BUGREPORT}
138 ------------------------------------------------------------------------"
140 dnl mode:shell-script
141 dnl sh-indentation: 2
142 dnl sh-basic-offset: 4