X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=configure.ac;h=578ee1ff510f21b71e6edd859ba7e4e7776c1b4a;hp=66f41b0a71ce33fd9c21b7103254daa820461294;hb=4b7c2f0df1625768a1e88e575144f2744e9825d5;hpb=1f8fbdc72892099fcc9dbca53d098e1e4693837b diff --git a/configure.ac b/configure.ac index 66f41b0..578ee1f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,8 @@ -dnl Zebra, Index Data ApS, 1995-2008 -dnl $Id: configure.ac,v 1.76 2008-02-01 10:00:23 marc Exp $ +dnl This file is part of the Zebra server. +dnl Copyright (C) 1994-2009 Index Data dnl AC_PREREQ(2.60) -AC_INIT([idzebra],[2.0.26],[zebra-help@indexdata.dk]) +AC_INIT([idzebra],[2.0.44],[zebra-help@indexdata.dk]) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE([1.9]) @@ -34,7 +34,7 @@ if test "$ac_cv_lib_crypt_crypt" = "yes"; then fi dnl dnl ------ YAZ -YAZ_INIT([server icu],[3.0.17]) +YAZ_INIT([server icu],[3.0.47]) if test "$YAZVERSION" = "NONE"; then AC_MSG_ERROR([YAZ development libraries required]) fi @@ -174,6 +174,11 @@ else fi fi dnl +dnl ------- zlib +AC_CHECK_LIB([z],[compress2]) +if test "$ac_cv_lib_z_compress2" = "yes"; then + AC_CHECK_HEADERS([zlib.h]) +fi dnl ------ -lm AC_CHECK_LIB(m,sqrt) dnl ------ -ldl @@ -288,13 +293,28 @@ ZEBRA_MODULE(safari,shared,[ --enable-mod-safari Safari filter (DBC)]) dnl ------ ANSI C Header files AC_STDC_HEADERS if test "$ac_cv_header_stdc" = "no"; then - AC_MSG_WARN(Your system doesn't seem to support ANSI C) + AC_MSG_WARN([Your system does not seem to support ANSI C]) fi AC_SUBST(IDZEBRA_SRC_ROOT) AC_SUBST(IDZEBRA_BUILD_ROOT) IDZEBRA_SRC_ROOT=`cd ${srcdir}; pwd` IDZEBRA_BUILD_ROOT=`pwd` +dnl +dnl ------ versioning +dnl +WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; printf("%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4);}'` +AC_SUBST([WIN_FILEVERSION]) +VERSION_HEX=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { printf("%x", ($1 * 256 + $2) * 256 + $3);}'` +AC_SUBST([VERSION_HEX]) +if test -d ${srcdir}/.git; then + VERSION_SHA1=`git show --pretty=format:%H|head -1` +else + VERSION_SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'` +fi +AC_SUBST([VERSION_SHA1]) +dnl dnl ------ Create Makefiles +dnl AC_OUTPUT([ Makefile util/Makefile @@ -318,9 +338,9 @@ AC_OUTPUT([ test/xpath/Makefile test/rusmarc/Makefile test/cddb/Makefile test/malxml/Makefile test/mbox/Makefile - test/config/Makefile test/sort2/Makefile + test/config/Makefile test/xelm/Makefile - test/dmoz/Makefile test/sort/Makefile test/zsh/Makefile + test/dmoz/Makefile test/zsh/Makefile test/marcxml/Makefile test/charmap/Makefile test/codec/Makefile test/espec/Makefile test/filters/Makefile @@ -333,6 +353,8 @@ AC_OUTPUT([ idzebra.spec idzebra-config-2.0 Doxyfile + win/version.nsi + include/idzebra/version.h ],[sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0]) echo \