2009-10-16 06:20:23 +00:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2009-11-05 14:05:26 +00:00
|
|
|
AC_PREREQ([2.59])
|
2010-03-19 02:15:46 +00:00
|
|
|
AC_INIT(bind10-devel, 20100318, bind10-bugs@isc.org)
|
2009-10-16 06:20:23 +00:00
|
|
|
AC_CONFIG_SRCDIR(README)
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_CC
|
2010-01-26 22:15:42 +00:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2010-03-08 07:58:25 +00:00
|
|
|
# Use C++ language
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
2009-12-03 08:21:01 +00:00
|
|
|
m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
|
2010-03-14 20:45:07 +00:00
|
|
|
AC_ARG_WITH([pythonpath],
|
|
|
|
AC_HELP_STRING([--with-pythonpath=PATH],
|
2010-03-17 23:40:59 +00:00
|
|
|
[specify an absolute path to python executable when automatic version check (incorrectly) fails]),
|
2010-03-14 20:45:07 +00:00
|
|
|
[python_path="$withval"], [python_path="auto"])
|
|
|
|
if test "$python_path" = auto; then
|
|
|
|
AM_PATH_PYTHON([3.1])
|
|
|
|
else
|
2010-03-21 02:36:03 +00:00
|
|
|
# Older versions of automake can't handle python3 well. This is an
|
|
|
|
# in-house workaround for them.
|
2010-03-14 20:45:07 +00:00
|
|
|
PYTHON=$python_path
|
|
|
|
AC_SUBST(PYTHON)
|
2010-03-17 23:16:56 +00:00
|
|
|
PYTHON_PREFIX='${prefix}'
|
|
|
|
AC_SUBST(PYTHON_PREFIX)
|
|
|
|
PYTHON_EXEC_PREFIX='$(exec_prefix)'
|
|
|
|
AC_SUBST(PYTHON_EXEC_PREFIX)
|
2010-03-21 02:36:03 +00:00
|
|
|
PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
|
|
|
|
if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
|
|
|
|
AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
|
|
|
|
fi
|
2010-03-17 23:40:59 +00:00
|
|
|
AC_SUBST(PYTHON_VERSION)
|
|
|
|
PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
|
2010-03-17 23:16:56 +00:00
|
|
|
AC_SUBST(PYTHON_PLATFORM)
|
2010-03-21 02:36:03 +00:00
|
|
|
pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
|
2010-03-17 23:16:56 +00:00
|
|
|
AC_SUBST(pythondir)
|
2010-03-19 02:15:46 +00:00
|
|
|
pkgpythondir='${pythondir}/'$PACKAGE
|
2010-03-17 23:16:56 +00:00
|
|
|
AC_SUBST(pkgpythondir)
|
2010-03-21 02:36:03 +00:00
|
|
|
pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
|
2010-03-17 23:16:56 +00:00
|
|
|
AC_SUBST(pyexecdir)
|
2010-03-19 02:15:46 +00:00
|
|
|
pkgpyexecdir='${pyexecdir}/'$PACKAGE
|
2010-03-17 23:16:56 +00:00
|
|
|
AC_SUBST(pkgpyexecdir)
|
2010-03-14 20:45:07 +00:00
|
|
|
fi
|
2009-12-03 08:21:01 +00:00
|
|
|
|
2010-03-20 22:50:15 +00:00
|
|
|
PYTHON_INCLUDES=`${PYTHON}-config --includes`
|
|
|
|
AC_SUBST(PYTHON_INCLUDES)
|
|
|
|
for flag in `${PYTHON}-config --ldflags`; do
|
|
|
|
PYTHON_LDFLAGS="$PYTHON_LDFLAGS `echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`"
|
|
|
|
done
|
|
|
|
AC_SUBST(PYTHON_LDFLAGS)
|
|
|
|
|
|
|
|
# Check for python library (not absolutely mandatory, but needed for
|
|
|
|
# Boost.Python when we use it. See below.)
|
|
|
|
LDFLAGS_SAVED="$LDFLAGS"
|
|
|
|
LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
|
|
|
|
python_bin="python${PYTHON_VERSION}"
|
|
|
|
AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
|
|
|
|
if test $python_lib != "no"; then
|
|
|
|
PYTHON_LIB="-l$python_lib"
|
|
|
|
fi
|
|
|
|
AC_SUBST(PYTHON_LIB)
|
|
|
|
|
2010-03-10 00:20:35 +00:00
|
|
|
# TODO: check for _sqlite3.py module
|
|
|
|
|
2010-01-26 22:15:42 +00:00
|
|
|
# default compiler warning settings
|
|
|
|
if test "X$GCC" = "Xyes"; then
|
2010-03-10 23:48:50 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS -g -Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
|
2010-03-10 23:59:29 +00:00
|
|
|
UNUSED_PARAM_ATTRIBUTE='__attribute__((unused))'
|
2010-03-12 20:26:53 +00:00
|
|
|
|
|
|
|
# Certain versions of gcc (g++) have a bug that incorrectly warns about
|
|
|
|
# the use of anonymous name spaces even if they're closed in a single
|
|
|
|
# translation unit. For these versions we have to disable -Werror.
|
|
|
|
werror_ok=0
|
|
|
|
CXXFLAGS_SAVED="$CXXFLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Werror"
|
|
|
|
AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
|
|
|
|
AC_TRY_COMPILE([namespace { class Foo {}; }
|
|
|
|
namespace isc {class Bar {Foo foo_;};} ],,
|
|
|
|
[AC_MSG_RESULT(no)
|
|
|
|
werror_ok=1],
|
|
|
|
[AC_MSG_RESULT(yes)])
|
|
|
|
CXXFLAGS="$CXXFLAGS_SAVED"
|
2010-01-26 22:15:42 +00:00
|
|
|
fi
|
2010-03-10 23:59:29 +00:00
|
|
|
AC_DEFINE_UNQUOTED(UNUSED_PARAM, $UNUSED_PARAM_ATTRIBUTE, Define to compiler keyword indicating a function argument is intentionally unused)
|
2010-03-12 20:26:53 +00:00
|
|
|
AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
|
2010-01-26 22:15:42 +00:00
|
|
|
|
|
|
|
# produce PIC unless we disable shared libraries. need this for python bindings.
|
|
|
|
if test $enable_shared != "no" -a "X$GCC" = "Xyes"; then
|
|
|
|
CXXFLAGS="$CXXFLAGS -fPIC"
|
|
|
|
fi
|
|
|
|
|
2009-10-16 06:20:23 +00:00
|
|
|
# Checks for libraries.
|
|
|
|
|
2010-02-10 19:11:57 +00:00
|
|
|
AC_SEARCH_LIBS(inet_pton, [nsl])
|
|
|
|
AC_SEARCH_LIBS(recvfrom, [socket])
|
|
|
|
|
2009-10-16 06:20:23 +00:00
|
|
|
# Checks for header files.
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
2009-10-30 17:47:35 +00:00
|
|
|
AC_MSG_CHECKING(for sa_len in struct sockaddr)
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>],
|
|
|
|
[struct sockaddr sa; sa.sa_len = 0; return (0);],
|
|
|
|
[AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_SIN_LEN, 1, Define to 1 if sockaddr_in has a sin_len member)],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
|
2009-12-29 16:07:20 +00:00
|
|
|
AC_ARG_WITH(lcov,
|
2009-12-31 18:13:15 +00:00
|
|
|
[ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
|
2009-12-29 16:07:20 +00:00
|
|
|
|
2009-10-27 00:09:38 +00:00
|
|
|
AC_ARG_WITH(gtest,
|
2009-12-29 14:03:40 +00:00
|
|
|
[ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
|
2009-10-27 00:09:38 +00:00
|
|
|
gtest_path="$withval", gtest_path="no")
|
2009-12-29 16:07:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
USE_LCOV="no"
|
|
|
|
if test "$lcov" != "no"; then
|
|
|
|
# force gtest if not set
|
|
|
|
if test "$gtest_path" = "no"; then
|
2010-01-26 19:41:22 +00:00
|
|
|
# AC_MSG_ERROR("lcov needs gtest for test coverage report")
|
|
|
|
AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
|
2009-12-29 16:07:20 +00:00
|
|
|
gtest_path="yes"
|
|
|
|
fi
|
|
|
|
if test "$lcov" != "yes"; then
|
2010-01-26 19:41:22 +00:00
|
|
|
LCOV=$lcov
|
2009-12-29 16:07:20 +00:00
|
|
|
else
|
2010-01-26 19:41:22 +00:00
|
|
|
AC_PATH_PROG([LCOV], [lcov])
|
2009-12-29 16:07:20 +00:00
|
|
|
fi
|
2010-01-26 19:41:22 +00:00
|
|
|
if test -x "${LCOV}"; then
|
|
|
|
USE_LCOV="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR([Cannot find lcov.])
|
2009-12-29 16:07:20 +00:00
|
|
|
fi
|
|
|
|
# is genhtml always in the same directory?
|
|
|
|
GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
|
|
|
|
if test ! -x $GENHTML; then
|
|
|
|
AC_MSG_ERROR([genhtml not found, needed for lcov])
|
|
|
|
fi
|
2009-12-31 18:13:15 +00:00
|
|
|
# GCC specific?
|
2010-01-26 19:41:22 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
|
2009-12-31 18:13:15 +00:00
|
|
|
LIBS=" $LIBS -lgcov"
|
2009-12-29 16:07:20 +00:00
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LIBS)
|
|
|
|
AC_SUBST(LCOV)
|
|
|
|
AC_SUBST(GENHTML)
|
|
|
|
fi
|
|
|
|
AC_SUBST(USE_LCOV)
|
|
|
|
|
2010-03-18 01:56:04 +00:00
|
|
|
AC_ARG_WITH([boost-include],
|
|
|
|
AC_HELP_STRING([--with-boost-include=PATH],
|
|
|
|
[specify exact directory for Boost headers]),
|
|
|
|
[boost_include_path="$withval"])
|
|
|
|
if test "${boost_include_path}" ; then
|
2010-03-20 22:50:15 +00:00
|
|
|
BOOST_INCLUDES="-I${boost_include_path}"
|
|
|
|
CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
|
2010-03-18 01:56:04 +00:00
|
|
|
fi
|
2010-03-20 22:50:15 +00:00
|
|
|
AC_SUBST(BOOST_INCLUDES)
|
2010-03-18 01:56:04 +00:00
|
|
|
|
2010-03-20 22:50:15 +00:00
|
|
|
AC_ARG_WITH([boost-lib],
|
|
|
|
AC_HELP_STRING([--with-boost-lib=PATH],
|
|
|
|
[specify exact directory for Boost libraries]),
|
2010-03-24 22:43:26 +00:00
|
|
|
[if test "$withval" != "yes" -a "$withval" != "no"; then
|
|
|
|
BOOST_LDFLAGS="-L$withval"
|
|
|
|
fi])
|
2010-03-20 22:50:15 +00:00
|
|
|
AC_SUBST(BOOST_LDFLAGS)
|
2010-03-08 07:58:25 +00:00
|
|
|
|
2010-03-20 22:50:15 +00:00
|
|
|
# Check availability of the Boost System library
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for boost::system library])
|
|
|
|
AC_ARG_WITH([boost-system],
|
|
|
|
AC_HELP_STRING([--with-boost-system],
|
|
|
|
[specify whether to use the boost system library]),
|
|
|
|
[with_boost_system="$withval"], [with_boost_system="auto"])
|
|
|
|
|
|
|
|
if test "$with_boost_system" != "no"; then
|
2010-03-09 23:57:44 +00:00
|
|
|
LDFLAGS_SAVED="$LDFLAGS"
|
|
|
|
LIBS_SAVED="$LIBS"
|
|
|
|
CPPFLAGS_SAVED="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS -Iext"
|
|
|
|
|
|
|
|
for BOOST_TRY_LIB in boost_system boost_system-mt; do
|
|
|
|
LDFLAGS="$LDFLAGS_SAVED ${BOOST_LDFLAGS}"
|
|
|
|
LIBS="$LIBS_SAVED -l${BOOST_TRY_LIB}"
|
|
|
|
AC_TRY_LINK([#include <boost/system/error_code.hpp>],
|
|
|
|
[ boost::system::error_code error_code;
|
|
|
|
std::string message(error_code.message());
|
|
|
|
return 0; ],
|
|
|
|
[ AC_MSG_RESULT(yes)
|
|
|
|
BOOST_SYSTEM_LIB="-l${BOOST_TRY_LIB}"
|
|
|
|
],[])
|
|
|
|
if test "X${BOOST_SYSTEM_LIB}" != X; then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
LDFLAGS="$LDFLAGS_SAVED"
|
|
|
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
|
|
|
LIBS="$LIBS_SAVED"
|
|
|
|
fi
|
2010-03-08 07:58:25 +00:00
|
|
|
|
|
|
|
if test "X${BOOST_SYSTEM_LIB}" = X; then
|
2010-03-09 23:57:44 +00:00
|
|
|
AC_MSG_RESULT(no)
|
2010-03-20 22:50:15 +00:00
|
|
|
if test "$with_boost_system" = "yes"; then
|
|
|
|
AC_MSG_ERROR([boost system library is requested but not found])
|
|
|
|
fi
|
2010-03-09 04:42:29 +00:00
|
|
|
else
|
2010-03-20 22:50:15 +00:00
|
|
|
AC_DEFINE(HAVE_BOOST_SYSTEM, 1, Define to 1 if boost system library is available)
|
2010-03-08 07:58:25 +00:00
|
|
|
fi
|
|
|
|
|
2010-03-20 22:50:15 +00:00
|
|
|
AM_CONDITIONAL(HAVE_BOOST_SYSTEM, test "X${BOOST_SYSTEM_LIB}" != X)
|
2010-03-08 07:58:25 +00:00
|
|
|
AC_SUBST(BOOST_SYSTEM_LIB)
|
|
|
|
|
2010-03-20 22:50:15 +00:00
|
|
|
# Check availability of the Boost Python library
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for boost::python library])
|
|
|
|
AC_ARG_WITH([boost-python],
|
|
|
|
AC_HELP_STRING([--with-boost-python],
|
|
|
|
[specify whether to use the boost python library]),
|
|
|
|
[with_boost_python="$withval"], [with_boost_python="auto"])
|
|
|
|
if test "$with_boost_python" != "no"; then
|
|
|
|
if test "$with_boost_python" != "auto" -a "X$PYTHON_LIB" = X; then
|
|
|
|
AC_MSG_ERROR([Boost.Python requested but python library is not available])
|
|
|
|
fi
|
|
|
|
LDFLAGS_SAVED="$LDFLAGS"
|
|
|
|
LIBS_SAVED="$LIBS"
|
|
|
|
CPPFLAGS_SAVED="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
|
|
|
|
|
|
|
|
for BOOST_TRY_LIB in boost_python boost_python-mt; do
|
|
|
|
LDFLAGS="$LDFLAGS_SAVED ${BOOST_LDFLAGS} ${PYTHON_LDFLAGS}"
|
|
|
|
LIBS="$LIBS_SAVED -l${BOOST_TRY_LIB} ${PYTHON_LIB}"
|
|
|
|
AC_TRY_LINK([#include <boost/python/module.hpp>
|
|
|
|
using namespace boost::python;
|
|
|
|
BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }],
|
|
|
|
[ return 0; ],
|
|
|
|
[ AC_MSG_RESULT(yes)
|
|
|
|
BOOST_PYTHON_LIB="-l${BOOST_TRY_LIB}"
|
|
|
|
],[])
|
|
|
|
if test "X${BOOST_PYTHON_LIB}" != X; then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
LDFLAGS="$LDFLAGS_SAVED"
|
|
|
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
|
|
|
LIBS="$LIBS_SAVED"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "X${BOOST_PYTHON_LIB}" = X; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
if test "$with_boost_python" = "yes"; then
|
|
|
|
AC_MSG_ERROR([boost python library is requested but not found])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_DEFINE(HAVE_BOOST_PYTHON, 1, Define to 1 if boost python library is available)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_BOOST_PYTHON, test "X${BOOST_PYTHON_LIB}" != X)
|
|
|
|
AC_SUBST(BOOST_PYTHON_LIB)
|
|
|
|
|
2009-12-29 16:07:20 +00:00
|
|
|
#
|
2010-01-26 19:41:22 +00:00
|
|
|
# Check availability of gtest, which will be used for unit tests.
|
2009-12-29 16:07:20 +00:00
|
|
|
#
|
2009-10-27 00:09:38 +00:00
|
|
|
if test "$gtest_path" != "no"
|
2009-10-17 00:14:33 +00:00
|
|
|
then
|
2009-12-29 14:03:40 +00:00
|
|
|
if test "$gtest_path" != "yes"; then
|
|
|
|
GTEST_PATHS=$gtest_path
|
2010-01-26 19:41:22 +00:00
|
|
|
if test -x "${gtest_path}/bin/gtest-config" ; then
|
|
|
|
GTEST_CONFIG="${gtest_path}/bin/gtest-config"
|
|
|
|
fi
|
2009-12-29 14:03:40 +00:00
|
|
|
else
|
2010-01-26 19:41:22 +00:00
|
|
|
AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
|
2009-12-29 14:03:40 +00:00
|
|
|
fi
|
2010-01-26 19:41:22 +00:00
|
|
|
if test -x "${GTEST_CONFIG}" ; then :
|
|
|
|
# using cppflags instead of cxxflags
|
|
|
|
GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
|
|
|
|
GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
|
|
|
|
GTEST_LDADD=`${GTEST_CONFIG} --libs`
|
|
|
|
GTEST_FOUND="true"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([Unable to locate Google Test gtest-config.])
|
|
|
|
if test -z "${GTEST_PATHS}" ; then
|
|
|
|
GTEST_PATHS="/usr /usr/local"
|
2009-12-29 14:03:40 +00:00
|
|
|
fi
|
2010-01-26 19:41:22 +00:00
|
|
|
GTEST_FOUND="false"
|
|
|
|
fi
|
|
|
|
if test "${GTEST_FOUND}" != "true"; then
|
|
|
|
GTEST_FOUND="false"
|
|
|
|
for dir in $GTEST_PATHS; do
|
|
|
|
if test -f "$dir/include/gtest/gtest.h"; then
|
|
|
|
GTEST_INCLUDES="-I$dir/include"
|
|
|
|
GTEST_LDFLAGS="-L$dir/lib"
|
|
|
|
GTEST_LDADD="-lgtest"
|
|
|
|
GTEST_FOUND="true"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
if test "${GTEST_FOUND}" != "true"; then
|
2009-12-29 14:03:40 +00:00
|
|
|
AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
|
|
|
|
fi
|
2009-10-17 00:14:33 +00:00
|
|
|
else
|
2009-10-27 00:09:38 +00:00
|
|
|
GTEST_INCLUDES=
|
|
|
|
GTEST_LDFLAGS=
|
|
|
|
GTEST_LDADD=
|
2009-10-17 00:14:33 +00:00
|
|
|
fi
|
2009-10-27 00:09:38 +00:00
|
|
|
AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
|
|
|
|
AC_SUBST(GTEST_INCLUDES)
|
|
|
|
AC_SUBST(GTEST_LDFLAGS)
|
|
|
|
AC_SUBST(GTEST_LDADD)
|
2009-10-17 00:14:33 +00:00
|
|
|
|
2010-03-05 18:41:03 +00:00
|
|
|
PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9)
|
2010-02-26 06:32:44 +00:00
|
|
|
|
2010-03-18 01:56:04 +00:00
|
|
|
# Check for headers from required devel kits.
|
|
|
|
# boost/shared_ptr.hpp is in ext in svn but not in tarball.
|
2010-03-20 22:50:15 +00:00
|
|
|
CPPFLAGS_SAVED=$CPPFLAGS
|
|
|
|
if test "X$BOOST_INCLUDES" = "X"; then
|
|
|
|
# abs_top_srcdir not defined yet
|
|
|
|
# so this is only useful to check. We'll replace it after the check.
|
|
|
|
CPPFLAGS="$CPPFLAGS -Iext"
|
|
|
|
fi
|
2010-03-19 11:39:08 +00:00
|
|
|
AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp],,
|
2010-03-18 01:56:04 +00:00
|
|
|
AC_MSG_ERROR([Missing required header files.]))
|
2010-03-20 22:50:15 +00:00
|
|
|
CPPFLAGS=$CPPFLAGS_SAVED
|
|
|
|
if test "X$BOOST_INCLUDES" = "X"; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext"
|
|
|
|
fi
|
2010-03-18 01:56:04 +00:00
|
|
|
|
2010-03-18 12:52:31 +00:00
|
|
|
AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
|
|
|
|
[regenerate man pages [default=no]])] ,enable_man=yes, enable_man=no)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
|
2009-10-16 06:20:23 +00:00
|
|
|
|
2010-03-19 14:06:09 +00:00
|
|
|
AC_ARG_ENABLE(install-configurations,
|
|
|
|
[AC_HELP_STRING([--disable-install-configurations],
|
|
|
|
[do not install configuration])], install_configurations=$enableval, install_configurations=yes)
|
2010-03-19 04:47:16 +00:00
|
|
|
|
2010-03-19 14:06:09 +00:00
|
|
|
AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
|
2010-03-19 04:47:16 +00:00
|
|
|
|
2009-10-16 06:20:23 +00:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
src/Makefile
|
2009-10-28 23:46:32 +00:00
|
|
|
src/bin/Makefile
|
2009-12-15 18:14:20 +00:00
|
|
|
src/bin/bind10/Makefile
|
2010-01-28 21:36:25 +00:00
|
|
|
src/bin/cmdctl/Makefile
|
2010-01-20 17:46:09 +00:00
|
|
|
src/bin/bindctl/Makefile
|
2010-01-28 21:20:05 +00:00
|
|
|
src/bin/cfgmgr/Makefile
|
2009-10-29 21:49:27 +00:00
|
|
|
src/bin/host/Makefile
|
2010-03-05 19:45:24 +00:00
|
|
|
src/bin/loadzone/Makefile
|
2009-12-15 18:14:20 +00:00
|
|
|
src/bin/msgq/Makefile
|
2010-01-30 07:39:38 +00:00
|
|
|
src/bin/auth/Makefile
|
2010-03-10 23:59:29 +00:00
|
|
|
src/bin/auth/tests/Makefile
|
2010-03-09 14:13:18 +00:00
|
|
|
src/bin/xfrin/Makefile
|
2010-03-23 08:41:24 +00:00
|
|
|
src/bin/xfrout/Makefile
|
2010-03-10 08:48:08 +00:00
|
|
|
src/bin/usermgr/Makefile
|
2009-10-16 06:20:23 +00:00
|
|
|
src/lib/Makefile
|
2009-10-30 17:28:17 +00:00
|
|
|
src/lib/cc/Makefile
|
2010-03-05 04:31:28 +00:00
|
|
|
src/lib/python/Makefile
|
|
|
|
src/lib/python/isc/Makefile
|
2010-03-05 19:45:24 +00:00
|
|
|
src/lib/python/isc/auth/Makefile
|
2010-03-05 04:31:28 +00:00
|
|
|
src/lib/python/isc/cc/Makefile
|
|
|
|
src/lib/python/isc/config/Makefile
|
2010-01-26 21:33:45 +00:00
|
|
|
src/lib/config/Makefile
|
2010-03-12 12:32:09 +00:00
|
|
|
src/lib/config/tests/Makefile
|
2009-10-27 23:31:26 +00:00
|
|
|
src/lib/dns/Makefile
|
2010-03-05 04:31:28 +00:00
|
|
|
src/lib/dns/tests/Makefile
|
2010-02-05 11:09:38 +00:00
|
|
|
src/lib/exceptions/Makefile
|
2010-01-30 07:39:38 +00:00
|
|
|
src/lib/auth/Makefile
|
2010-03-11 00:14:33 +00:00
|
|
|
src/lib/auth/tests/Makefile
|
2010-03-23 08:41:24 +00:00
|
|
|
src/lib/xfr/Makefile
|
2009-10-27 23:31:26 +00:00
|
|
|
])
|
2010-01-29 01:41:02 +00:00
|
|
|
AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py
|
2010-02-25 08:20:48 +00:00
|
|
|
src/bin/cmdctl/cmdctl.py
|
2010-01-29 01:02:47 +00:00
|
|
|
src/bin/cmdctl/run_b10-cmdctl.sh
|
2010-03-25 11:18:34 +00:00
|
|
|
src/bin/cmdctl/tests/cmdctl_test
|
|
|
|
src/bin/xfrin/tests/xfrin_test
|
2010-03-09 14:13:18 +00:00
|
|
|
src/bin/xfrin/xfrin.py
|
2010-03-26 19:12:39 +00:00
|
|
|
src/bin/xfrin/xfrin.spec.pre
|
2010-03-09 14:13:18 +00:00
|
|
|
src/bin/xfrin/run_b10-xfrin.sh
|
2010-03-23 08:41:24 +00:00
|
|
|
src/bin/xfrout/xfrout.py
|
2010-03-26 19:12:39 +00:00
|
|
|
src/bin/xfrout/xfrout.spec.pre
|
2010-03-25 10:04:26 +00:00
|
|
|
src/bin/xfrout/tests/xfrout_test
|
2010-03-23 08:41:24 +00:00
|
|
|
src/bin/xfrout/run_b10-xfrout.sh
|
2010-01-29 00:30:15 +00:00
|
|
|
src/bin/bind10/bind10.py
|
2010-03-08 22:21:25 +00:00
|
|
|
src/bin/bind10/tests/bind10_test
|
2010-01-29 00:30:15 +00:00
|
|
|
src/bin/bind10/run_bind10.sh
|
2010-03-12 21:16:15 +00:00
|
|
|
src/bin/bindctl/run_bindctl.sh
|
2010-03-15 16:17:13 +00:00
|
|
|
src/bin/bindctl/bindctl-source.py
|
2010-03-25 11:18:34 +00:00
|
|
|
src/bin/bindctl/tests/bindctl_test
|
2010-03-12 21:16:15 +00:00
|
|
|
src/bin/loadzone/run_loadzone.sh
|
2010-03-05 19:45:24 +00:00
|
|
|
src/bin/loadzone/b10-loadzone.py
|
2010-03-10 08:48:08 +00:00
|
|
|
src/bin/usermgr/run_b10-cmdctl-usermgr.sh
|
|
|
|
src/bin/usermgr/b10-cmdctl-usermgr.py
|
2010-01-29 01:02:47 +00:00
|
|
|
src/bin/msgq/msgq.py
|
2010-01-26 21:33:45 +00:00
|
|
|
src/bin/msgq/msgq_test
|
2010-01-29 01:02:47 +00:00
|
|
|
src/bin/msgq/run_msgq.sh
|
2010-03-26 19:12:39 +00:00
|
|
|
src/bin/auth/auth.spec.pre
|
2010-03-09 23:27:09 +00:00
|
|
|
src/bin/auth/spec_config.h
|
2010-03-12 12:32:09 +00:00
|
|
|
src/lib/config/tests/data_def_unittests_config.h
|
|
|
|
src/lib/python/isc/config/tests/config_test
|
2010-03-17 16:00:15 +00:00
|
|
|
src/lib/python/isc/cc/tests/cc_test
|
2010-03-05 04:31:28 +00:00
|
|
|
src/lib/dns/gen-rdatacode.py
|
|
|
|
src/lib/dns/tests/testdata/gen-wiredata.py
|
2009-10-30 22:09:40 +00:00
|
|
|
], [
|
2010-01-29 01:02:47 +00:00
|
|
|
chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
|
2010-03-09 14:13:18 +00:00
|
|
|
chmod +x src/bin/xfrin/run_b10-xfrin.sh
|
2010-03-23 08:41:24 +00:00
|
|
|
chmod +x src/bin/xfrout/run_b10-xfrout.sh
|
2010-01-29 01:02:47 +00:00
|
|
|
chmod +x src/bin/bind10/run_bind10.sh
|
2010-03-25 11:18:34 +00:00
|
|
|
chmod +x src/bin/cmdctl/tests/cmdctl_test
|
|
|
|
chmod +x src/bin/xfrin/tests/xfrin_test
|
2010-03-25 10:04:26 +00:00
|
|
|
chmod +x src/bin/xfrout/tests/xfrout_test
|
2010-03-25 11:18:34 +00:00
|
|
|
chmod +x src/bin/bindctl/tests/bindctl_test
|
2010-03-12 21:16:15 +00:00
|
|
|
chmod +x src/bin/bindctl/run_bindctl.sh
|
|
|
|
chmod +x src/bin/loadzone/run_loadzone.sh
|
2010-03-10 08:48:08 +00:00
|
|
|
chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
|
2010-01-29 01:02:47 +00:00
|
|
|
chmod +x src/bin/msgq/run_msgq.sh
|
2009-12-03 08:56:12 +00:00
|
|
|
chmod +x src/bin/msgq/msgq_test
|
2010-03-12 17:16:02 +00:00
|
|
|
chmod +x src/lib/dns/gen-rdatacode.py
|
|
|
|
chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
|
2009-10-30 20:51:37 +00:00
|
|
|
])
|
2009-10-16 06:20:23 +00:00
|
|
|
AC_OUTPUT
|