2 ## Process this file with autoconf to produce a configure script.
5 AC_INIT(yp2, 0.0.1, marc@indexdata.dk)
6 AM_CONFIG_HEADER(src/config.hpp)
9 AC_CONFIG_SRCDIR(configure.ac)
10 AC_CONFIG_AUX_DIR(config)
12 AC_PREFIX_DEFAULT(`pwd`)
17 # Checks for programs.
25 # Use C++ compilers only for tests
28 # Checks for libraries.
29 ##AC_CHECK_LIB(ibrary, main)
30 AC_CHECK_LIB(boost_thread, main)
33 YAZPP_INIT(threads,1.0)
34 if test -z "$YAZPPLIB"; then
35 AC_MSG_ERROR([YAZ++ development libraries missing])
43 AC_ARG_WITH(xslt,[[ --with-xslt[=PREFIX] use libxslt in PREFIX]],xsltdir=$withval)
44 if test "$xsltdir" = "yes" -o "$xsltdir" = "default"; then
45 for d in /usr /usr/local; do
46 if test -x $d/bin/xslt-config; then
51 if test "$xsltdir" != "no"; then
52 AC_MSG_CHECKING(for libXSLT)
53 if test -x $xsltdir/bin/xslt-config; then
54 XSLT_LIBS=`$xsltdir/bin/xslt-config --libs`
55 XSLT_CFLAGS=`$xsltdir/bin/xslt-config --cflags`
56 XSLT_VER=`$xsltdir/bin/xslt-config --version`
57 AC_MSG_RESULT($XSLT_VER)
58 AC_DEFINE([HAVE_XSLT],[1],
59 [Define to 1 if you have libxslt installed])
61 AC_MSG_RESULT(Not found)
62 if test "$xsltdir" = "default"; then
63 AC_MSG_WARN([Libxslt development libraries not found.])
65 AC_MSG_ERROR([libxslt development libraries not found.]) fi
70 # Checks for header files.
75 AC_CHECK_HEADERS(boost/thread/mutex.hpp)
79 # Checks for typedefs, structures, and compiler characteristics.
81 ##AC_CHECK_SIZEOF(int)
82 ##AC_CHECK_SIZEOF(long int)
85 # Checks for library functions.
99 "------------------------------------------------------------------------
102 Source code location: ${srcdir}
103 CPP Preprocessor flags: ${CPPFLAGS}
105 CXX Compiler flags: ${CXXFLAGS}
106 Linker flags: ${LDFLAGS}
108 Host System Type: ${host}
109 Install path: ${prefix}
111 ------------------------------------------------------------------------"