2 AM_INIT_AUTOMAKE("yaz++",0.7.8)
11 YAZ_INIT(threads,2.0.10)
13 AC_CHECK_FUNCS(setrlimit getrlimit)
19 AC_ARG_WITH(xslt, [ --with-xslt[=PREFIX] use libxslt in PREFIX],[xsltdir=$withval])
20 if test "$xsltdir" = "yes"; then
21 for d in /usr /usr/local; do
22 if test -x $d/bin/xslt-config; then
27 if test "$xsltdir" != "no"; then
28 AC_MSG_CHECKING(for libXSLT)
29 if test -x $xsltdir/bin/xslt-config; then
30 XSLT_LIBS=`$xsltdir/bin/xslt-config --libs`
31 LIBS="$XSLT_LIBS $LIBS"
32 XSLT_CFLAGS=`$xsltdir/bin/xslt-config --cflags`
33 XSLT_VER=`$xsltdir/bin/xslt-config --version`
34 AC_MSG_RESULT($XSLT_VER)
37 AC_MSG_RESULT(Not found)
44 AC_ARG_WITH(dtd, [ --with-dtd[=DIR] use docbookx.dtd in DIR],
46 if test -f "$withval/docbookx.dtd"; then
50 AC_MSG_CHECKING(for docbookx.dtd)
51 for d in /usr/share/sgml/docbook/dtd/xml/4.1.2 \
52 /usr/share/sgml/docbook/xml-dtd-4.1.2* \
53 /usr/share/sgml/docbook/xml-dtd-4.1 \
54 /usr/share/sgml/docbook/dtd/xml/4.0 \
55 /usr/lib/sgml/dtd/docbook-xml
57 if test -f $d/docbookx.dtd; then
63 if test -z "$DTD_DIR"; then
64 AC_MSG_RESULT(Not found)
68 AC_ARG_WITH(dsssl,[ --with-dsssl[=DIR] use DSSSL in DIR/{html,print}/docbook.dsl],
70 if test -f "$withval/html/docbook.dsl"; then
74 AC_MSG_CHECKING(for docbook.dsl)
75 for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
76 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
77 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
79 if test -f $d/html/docbook.dsl; then
85 if test -z "$DSSSL_DIR"; then
86 AC_MSG_RESULT(Not found)
91 AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
92 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
94 AC_SUBST(YAZPP_SRC_ROOT)
95 AC_SUBST(YAZPP_BUILD_ROOT)
96 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
97 YAZPP_BUILD_ROOT=`pwd`
103 include/yaz++/Makefile
108 doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
111 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])