2 ## Process this file with autoconf to produce a configure script.
4 # Autoconf and automake setup
6 AC_INIT([metaproxy],[1.0.13],[metaproxy-help@indexdata.dk])
8 AC_CONFIG_HEADERS(src/config.hpp)
10 AC_CONFIG_SRCDIR([configure.ac])
11 AC_CONFIG_AUX_DIR([config])
13 ##AC_PREFIX_DEFAULT(`pwd`/install)
15 AM_INIT_AUTOMAKE([1.9])
17 # Checks for programs.
26 # Default language to use for tests (some tests may switch to C++)
29 if test "$enable_shared" = "yes"; then
30 AC_DEFINE([HAVE_DL_SUPPORT],[1],
31 [Define to 1 if you have shared module support])
34 # Checks for libraries.
35 AC_CHECK_LIB(dl,dlopen)
39 YAZPP_INIT([threads],[1.1.0])
40 if test -z "$YAZPPLIB"; then
41 AC_MSG_ERROR([YAZ++ development libraries missing])
44 CPPFLAGS="$YAZPPINC $CPPFLAGS"
46 # check for Boost C++ development libs and headers
49 if test "$ax_cv_boost_base" = "no"; then
50 AC_MSG_ERROR([install libboost-dev or similar])
52 if test "$ax_cv_boost_date_time" = "no"; then
53 AC_MSG_ERROR([install libboost-date-time-dev or similar])
55 if test "$ax_cv_boost_thread" = "no"; then
56 AC_MSG_ERROR([install libboost-thread-dev or similar])
58 if test "$ax_cv_boost_unit_test_framework" = "no"; then
59 AC_MSG_ERROR([install libboost-test-dev or similar])
64 # Checks for header files.
68 AC_CHECK_HEADERS(sys/select.h sys/socket.h)
70 # Checks for typedefs, structures, and compiler characteristics.
72 ##AC_CHECK_SIZEOF(int)
73 ##AC_CHECK_SIZEOF(long int)
75 # Checks for library functions.
99 "------------------------------------------------------------------------
103 Source code location: ${srcdir}
104 CPP Preprocessor: ${CPP}
105 CPP Preprocessor flags: ${CPPFLAGS}
107 CXX Compiler flags: ${CXXFLAGS}
108 Linker flags: ${LDFLAGS}
110 Host System Type: ${host}
111 Install path: ${prefix}
112 Automake: ${AUTOMAKE}
115 Boost Version: ${BOOST_VERSION}
116 Boost Include: ${BOOST_CPPFLAGS}
117 Boost linker flags: ${BOOST_LDFLAGS}
118 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_PROGRAM_OPTIONS_LIB} ${BOOST_THREAD_LIB}
119 YAZPP Version: ${YAZPPVERSION}
120 YAZPP Include: ${YAZPPINC}
121 YAZPP La Lib: ${YAZPPLALIB}
122 YAZPP Lib: ${YAZPPLIB}
123 Bugreport: ${PACKAGE_BUGREPORT}
125 ------------------------------------------------------------------------"
127 dnl mode:shell-script
128 dnl sh-indentation: 2
129 dnl sh-basic-offset: 4