Version 1.3.0
[metaproxy-moved-to-github.git] / configure.ac
index cecd492..163dbb9 100644 (file)
@@ -3,7 +3,7 @@
 
 # Autoconf and automake setup
 AC_PREREQ([2.60])
-AC_INIT([metaproxy],[1.1.5],[metaproxy-help@indexdata.dk])
+AC_INIT([metaproxy],[1.3.0],[metaproxy-help@indexdata.dk])
 
 AC_CONFIG_HEADERS([src/config.hpp])
 
@@ -36,20 +36,37 @@ AC_CHECK_LIB([m],[main])
 AC_CHECK_FUNCS([localtime_r])
 
 ## YAZPP checks
-YAZPP_INIT([threads],[1.2.2])
+YAZPP_INIT([threads],[1.2.6])
 if test -z "$YAZPPLIB"; then
     AC_MSG_ERROR([YAZ++ development libraries missing])
 fi
 YAZ_DOC
 CPPFLAGS="$YAZPPINC $CPPFLAGS"
 
-ID_BOOST([thread test],[1.33])
+ID_BOOST([thread test regex],[1.33])
 if test -z "${BOOST_THREAD_LIB}"; then
     AC_MSG_ERROR([Boost thread development libraries required])
 fi
 if test -z "${BOOST_TEST_LIB}"; then
     AC_MSG_ERROR([Boost unit test framework libraries required])
 fi
+if test -z "${BOOST_REGEX_LIB}"; then
+    AC_MSG_ERROR([Boost regex development libraries required])
+fi
+
+xml_avail=false
+xslt_avail=false
+YAZ_LIBXML2([xml_avail=true])
+if $xml_avail; then
+    YAZ_LIBXSLT([xslt_avail=true])
+else
+    AC_MSG_ERROR([Libxml2 development files not found])
+fi
+if $xslt_avail; then
+    :
+else
+    AC_MSG_ERROR([Libxslt development files not found])
+fi
 
 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
 
@@ -61,6 +78,7 @@ fi
 AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
 
 AC_CONFIG_FILES([
+       metaproxy-config
         Doxyfile
        Makefile
        include/Makefile include/metaproxy/Makefile
@@ -73,6 +91,9 @@ AC_CONFIG_FILES([
         doc/common/Makefile
        doc/common/print.dsl
        etc/Makefile
+],[
+        sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config
+
 ])
 
 AC_OUTPUT