if PDU_Assoc::sessionNotify returns 0; the accept will fail neatly
[yazpp-moved-to-github.git] / configure.ac
1 dnl YAZ++ Toolkit, Index Data 1994-2006
2 dnl See the file LICENSE for details.
3 dnl $Id: configure.ac,v 1.2 2006-03-29 13:14:13 adam Exp $
4 AC_PREREQ(2.59)
5 AC_INIT([yazpp],[1.0.0],[adam@indexdata.dk])
6 AC_CONFIG_SRCDIR(configure.ac)
7 AC_CONFIG_AUX_DIR([config])
8 AM_INIT_AUTOMAKE([1.8])
9
10 AC_PROG_CC
11 AC_PROG_CPP
12 AC_PROG_CXX
13 AC_HEADER_STDC
14 AM_DISABLE_SHARED
15 AM_PROG_LIBTOOL
16
17 YAZ_INIT(threads,2.1.11)
18 if test -z "$YAZLIB"; then
19         AC_MSG_ERROR([YAZ development libraries missing])
20 fi
21 YAZ_DOC
22 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/time.h sys/types.h)
23
24 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
25 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
26
27 AC_SUBST(YAZPP_SRC_ROOT)
28 AC_SUBST(YAZPP_BUILD_ROOT)
29 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
30 YAZPP_BUILD_ROOT=`pwd`
31
32 AC_OUTPUT([
33         Makefile
34         src/Makefile
35         include/Makefile
36         include/yazpp/Makefile
37         zlint/Makefile
38         yazpp-config
39         zoom/Makefile
40         doc/Makefile
41         doc/yazpp.xml
42         doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
43         doc/tkl.xsl
44 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])