# Autoconf and automake setup
AC_PREREQ([2.60])
-AC_INIT([metaproxy],[1.0.14],[metaproxy-help@indexdata.dk])
+AC_INIT([metaproxy],[1.2.6],[metaproxy-help@indexdata.dk])
AC_CONFIG_HEADERS([src/config.hpp])
AC_CHECK_FUNCS([localtime_r])
## YAZPP checks
-YAZPP_INIT([threads],[1.1.1])
+YAZPP_INIT([threads],[1.2.3])
if test -z "$YAZPPLIB"; then
AC_MSG_ERROR([YAZ++ development libraries missing])
fi
AC_CHECK_HEADERS([sys/select.h sys/socket.h])
+if test -d ${srcdir}/.git; then
+ SHA1=`git show --pretty=format:%H|head -1`
+else
+ SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
+fi
+AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
+
AC_CONFIG_FILES([
+ metaproxy-config
Doxyfile
Makefile
+ include/Makefile include/metaproxy/Makefile
src/Makefile
- src/Jamfile
xml/Makefile
xml/schema/Makefile
xml/xslt/Makefile
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