Use new debhelper
[yazproxy-moved-to-github.git] / configure.ac
1 dnl This file is part of YAZ proxy
2 dnl See the file LICENSE for details.
3 AC_PREREQ(2.60)
4 AC_INIT([yazproxy],
5 m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
6 [yaz-help@indexdata.dk])
7 AC_CONFIG_SRCDIR(configure.ac)
8 AC_CONFIG_AUX_DIR([config])
9 AM_INIT_AUTOMAKE([1.9])
10
11 AC_PROG_CC
12 AC_PROG_CPP
13 AC_PROG_CXX
14 AC_HEADER_STDC
15 AM_PROG_LIBTOOL
16
17 YAZPP_INIT([threads],[1.1.4])
18 if test -z "$YAZPPLIB"; then
19         AC_MSG_ERROR([YAZ++ development libraries missing])
20 fi
21 YAZ_DOC
22 USEMARCON_INIT
23
24 AC_CHECK_FUNCS(setrlimit getrlimit gettimeofday)
25 AC_CHECK_HEADERS(sys/resource.h sys/stat.h sys/time.h sys/types.h unistd.h)
26 AC_CHECK_LIB(dl,dlopen)
27 dnl
28 AC_SUBST(YAZPROXY_SRC_ROOT)
29 AC_SUBST(YAZPROXY_BUILD_ROOT)
30 YAZPROXY_SRC_ROOT=`cd ${srcdir}; pwd`
31 YAZPROXY_BUILD_ROOT=`pwd`
32 AC_OUTPUT([
33         Makefile
34         src/Makefile
35         include/Makefile
36         include/yazproxy/Makefile
37         doc/Makefile
38         doc/local.ent
39         doc/common/Makefile
40         doc/common/print.dsl
41         etc/Makefile
42 ])