Using yaz_poll instead of select.
[yazpp-moved-to-github.git] / configure.ac
1 dnl YAZ++ Toolkit, Index Data 1994-2007
2 dnl See the file LICENSE for details.
3 dnl $Id: configure.ac,v 1.18 2007-11-09 21:49:15 adam Exp $
4 AC_PREREQ(2.59)
5 AC_INIT([yazpp],[1.0.3],[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_PROG_LIBTOOL
15
16 YAZ_INIT([threads],[3.0.15])
17 if test -z "$YAZLIB"; then
18         AC_MSG_ERROR([YAZ development libraries missing])
19 fi
20 YAZ_DOC
21 AC_CHECK_HEADERS([unistd.h sys/stat.h sys/time.h sys/types.h])
22
23 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
24 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
25
26 AC_SUBST(YAZPP_SRC_ROOT)
27 AC_SUBST(YAZPP_BUILD_ROOT)
28 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
29 YAZPP_BUILD_ROOT=`pwd`
30
31 AC_OUTPUT([
32         Doxyfile
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/local.ent
42         doc/common/Makefile
43         doc/common/print.dsl
44 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])
45
46
47 echo \
48 "------------------------------------------------------------------------
49
50   YAZPP Package:              ${PACKAGE}
51   YAZPP Version:              ${VERSION}
52   Source code location:       ${srcdir}
53   CPP Preprocessor:           ${CPP}
54   CPP Preprocessor flags:     ${CPPFLAGS}
55   CXX Compiler:               ${CXX}
56   CXX Compiler flags:         ${CXXFLAGS}
57   Linker flags:               ${LDFLAGS}
58   Linked libs:                ${LIBS}
59   Host System Type:           ${host}
60   Install path:               ${prefix}
61   Automake:                   ${AUTOMAKE}
62   Archiver:                   ${AR}
63   Ranlib:                     ${RANLIB}
64   YAZ Version:                ${YAZVERSION}
65   YAZ Include:                ${YAZINC}
66   YAZ La Lib:                 ${YAZLALIB}
67   YAZ Lib:                    ${YAZLIB}
68   Bugreport:                  ${PACKAGE_BUGREPORT}
69
70 ------------------------------------------------------------------------"