configure.ac 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-devel, 20100602, bind10-dev@isc.org)
  5. AC_CONFIG_SRCDIR(README)
  6. AM_INIT_AUTOMAKE
  7. AC_CONFIG_HEADERS([config.h])
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_LIBTOOL
  11. AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
  12. # Use C++ language
  13. AC_LANG_CPLUSPLUS
  14. # OS dependent compiler flags
  15. case "$host" in
  16. *-solaris*)
  17. CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
  18. ;;
  19. esac
  20. m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
  21. AC_ARG_WITH([pythonpath],
  22. AC_HELP_STRING([--with-pythonpath=PATH],
  23. [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
  24. [python_path="$withval"], [python_path="auto"])
  25. if test "$python_path" = auto; then
  26. AM_PATH_PYTHON([3.1])
  27. else
  28. # Older versions of automake can't handle python3 well. This is an
  29. # in-house workaround for them.
  30. PYTHON=$python_path
  31. AC_SUBST(PYTHON)
  32. PYTHON_PREFIX='${prefix}'
  33. AC_SUBST(PYTHON_PREFIX)
  34. PYTHON_EXEC_PREFIX='$(exec_prefix)'
  35. AC_SUBST(PYTHON_EXEC_PREFIX)
  36. PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
  37. if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
  38. AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
  39. fi
  40. AC_SUBST(PYTHON_VERSION)
  41. PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
  42. AC_SUBST(PYTHON_PLATFORM)
  43. pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  44. AC_SUBST(pythondir)
  45. pkgpythondir='${pythondir}/'$PACKAGE
  46. AC_SUBST(pkgpythondir)
  47. pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  48. AC_SUBST(pyexecdir)
  49. pkgpyexecdir='${pyexecdir}/'$PACKAGE
  50. AC_SUBST(pkgpyexecdir)
  51. fi
  52. # Check for python development environments
  53. if test -x ${PYTHON}-config; then
  54. PYTHON_INCLUDES=`${PYTHON}-config --includes`
  55. for flag in `${PYTHON}-config --ldflags`; do
  56. # add any '-L..." flags to PYTHON_LDFLAGS
  57. flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
  58. if test "X${flag}" != X; then
  59. PYTHON_LDFLAGS="$PYTHON_LDFLAGS ${flag}"
  60. fi
  61. done
  62. # on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L
  63. # option while having the library under a non trivial directory.
  64. # as a workaround we try the "lib" sub directory under the common
  65. # prefix for this python.
  66. if test -z "${PYTHON_LDFLAGS}"; then
  67. PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
  68. fi
  69. else
  70. if test "X$PYTHON_INCLUDES" = X -o "X$PYTHON_LDFLAGS" = X; then
  71. AC_MSG_WARN([${PYTHON}-config does not exist or is not executable, so we could not detect python development environment. Your system may require an additional package (e.g. "python3-dev"). Alternatively, if you are sure you have python headers and libraries, define PYTHON_INCLUDES and PYTHON_LDFLAGS and run this script.])
  72. fi
  73. fi
  74. AC_SUBST(PYTHON_INCLUDES)
  75. AC_SUBST(PYTHON_LDFLAGS)
  76. # Check for python library (not absolutely mandatory, but needed for
  77. # Boost.Python when we use it. See below.)
  78. LDFLAGS_SAVED="$LDFLAGS"
  79. LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
  80. python_bin="python${PYTHON_VERSION}"
  81. AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
  82. if test $python_lib != "no"; then
  83. PYTHON_LIB="-l$python_lib"
  84. fi
  85. AC_SUBST(PYTHON_LIB)
  86. # TODO: check for _sqlite3.py module
  87. #
  88. # B10_CXXFLAGS is the default C++ compiler flags. This will (and should) be
  89. # used as the default value for each specifc AM_CXXFLAGS:
  90. # AM_CXXFLAGS = $(B10_CXXFLAGS)
  91. # AM_CXXFLAGS += ... # add module specific flags
  92. # We need this so that we can disable some specific compiler warnings per
  93. # module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
  94. # gcc's -Wno-XXX option must be specified after -Wall or -Wextra, we cannot
  95. # specify the default warning flags in CXXFLAGS and let specific modules
  96. # "override" the default.
  97. #
  98. B10_CXXFLAGS=-g
  99. werror_ok=0
  100. if test "X$GXX" = "Xyes"; then
  101. B10_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
  102. UNUSED_PARAM_ATTRIBUTE='__attribute__((unused))'
  103. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  104. # the use of anonymous name spaces even if they're closed in a single
  105. # translation unit. For these versions we have to disable -Werror.
  106. CXXFLAGS_SAVED="$CXXFLAGS"
  107. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  108. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  109. AC_TRY_COMPILE([namespace { class Foo {}; }
  110. namespace isc {class Bar {Foo foo_;};} ],,
  111. [AC_MSG_RESULT(no)
  112. werror_ok=1
  113. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  114. [AC_MSG_RESULT(yes)])
  115. CXXFLAGS="$CXXFLAGS_SAVED"
  116. fi dnl GXX = yes
  117. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  118. AC_DEFINE_UNQUOTED(UNUSED_PARAM, $UNUSED_PARAM_ATTRIBUTE, Define to compiler keyword indicating a function argument is intentionally unused)
  119. # produce PIC unless we disable shared libraries. need this for python bindings.
  120. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  121. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  122. fi
  123. AC_SUBST(B10_CXXFLAGS)
  124. # Checks for libraries.
  125. AC_SEARCH_LIBS(inet_pton, [nsl])
  126. AC_SEARCH_LIBS(recvfrom, [socket])
  127. # Checks for header files.
  128. # Checks for typedefs, structures, and compiler characteristics.
  129. AC_HEADER_STDBOOL
  130. AC_TYPE_SIZE_T
  131. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  132. AC_TRY_COMPILE([
  133. #include <sys/types.h>
  134. #include <sys/socket.h>],
  135. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  136. [AC_MSG_RESULT(yes)
  137. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  138. AC_MSG_RESULT(no))
  139. AC_ARG_WITH(lcov,
  140. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  141. AC_ARG_WITH(gtest,
  142. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  143. gtest_path="$withval", gtest_path="no")
  144. USE_LCOV="no"
  145. if test "$lcov" != "no"; then
  146. # force gtest if not set
  147. if test "$gtest_path" = "no"; then
  148. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  149. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  150. gtest_path="yes"
  151. fi
  152. if test "$lcov" != "yes"; then
  153. LCOV=$lcov
  154. else
  155. AC_PATH_PROG([LCOV], [lcov])
  156. fi
  157. if test -x "${LCOV}"; then
  158. USE_LCOV="yes"
  159. else
  160. AC_MSG_ERROR([Cannot find lcov.])
  161. fi
  162. # is genhtml always in the same directory?
  163. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  164. if test ! -x $GENHTML; then
  165. AC_MSG_ERROR([genhtml not found, needed for lcov])
  166. fi
  167. # GCC specific?
  168. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  169. LIBS=" $LIBS -lgcov"
  170. AC_SUBST(CPPFLAGS)
  171. AC_SUBST(LIBS)
  172. AC_SUBST(LCOV)
  173. AC_SUBST(GENHTML)
  174. fi
  175. AC_SUBST(USE_LCOV)
  176. AC_ARG_WITH([boost-include],
  177. AC_HELP_STRING([--with-boost-include=PATH],
  178. [specify exact directory for Boost headers]),
  179. [boost_include_path="$withval"])
  180. if test "${boost_include_path}" ; then
  181. BOOST_INCLUDES="-I${boost_include_path}"
  182. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  183. fi
  184. AC_SUBST(BOOST_INCLUDES)
  185. AC_ARG_WITH([boost-lib],
  186. AC_HELP_STRING([--with-boost-lib=PATH],
  187. [specify exact directory for Boost libraries]),
  188. [if test "$withval" != "yes" -a "$withval" != "no"; then
  189. BOOST_LDFLAGS="-L$withval"
  190. fi])
  191. AC_SUBST(BOOST_LDFLAGS)
  192. # Check availability of the Boost Python library
  193. AC_MSG_CHECKING([for boost::python library])
  194. AC_ARG_WITH([boost-python],
  195. AC_HELP_STRING([--with-boost-python],
  196. [specify whether to use the boost python library]),
  197. [with_boost_python="$withval"], [with_boost_python="auto"])
  198. if test "$with_boost_python" != "no"; then
  199. if test "$with_boost_python" != "auto" -a "X$PYTHON_LIB" = X; then
  200. AC_MSG_ERROR([Boost.Python requested but python library is not available])
  201. fi
  202. LDFLAGS_SAVED="$LDFLAGS"
  203. LIBS_SAVED="$LIBS"
  204. CPPFLAGS_SAVED="$CPPFLAGS"
  205. CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
  206. for BOOST_TRY_LIB in boost_python boost_python-mt; do
  207. LDFLAGS="$LDFLAGS_SAVED ${BOOST_LDFLAGS} ${PYTHON_LDFLAGS}"
  208. LIBS="$LIBS_SAVED -l${BOOST_TRY_LIB} ${PYTHON_LIB}"
  209. AC_TRY_LINK([#include <boost/python/module.hpp>
  210. using namespace boost::python;
  211. BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }],
  212. [ return 0; ],
  213. [ AC_MSG_RESULT(yes)
  214. BOOST_PYTHON_LIB="-l${BOOST_TRY_LIB}"
  215. ],[])
  216. if test "X${BOOST_PYTHON_LIB}" != X; then
  217. break
  218. fi
  219. done
  220. LDFLAGS="$LDFLAGS_SAVED"
  221. CPPFLAGS="$CPPFLAGS_SAVED"
  222. LIBS="$LIBS_SAVED"
  223. fi
  224. if test "X${BOOST_PYTHON_LIB}" = X; then
  225. AC_MSG_RESULT(no)
  226. if test "$with_boost_python" = "yes"; then
  227. AC_MSG_ERROR([boost python library is requested but not found])
  228. fi
  229. else
  230. AC_DEFINE(HAVE_BOOST_PYTHON, 1, Define to 1 if boost python library is available)
  231. fi
  232. AM_CONDITIONAL(HAVE_BOOST_PYTHON, test "X${BOOST_PYTHON_LIB}" != X)
  233. AC_SUBST(BOOST_PYTHON_LIB)
  234. #
  235. # Check availability of gtest, which will be used for unit tests.
  236. #
  237. if test "$gtest_path" != "no"
  238. then
  239. if test "$gtest_path" != "yes"; then
  240. GTEST_PATHS=$gtest_path
  241. if test -x "${gtest_path}/bin/gtest-config" ; then
  242. GTEST_CONFIG="${gtest_path}/bin/gtest-config"
  243. fi
  244. else
  245. AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
  246. fi
  247. if test -x "${GTEST_CONFIG}" ; then :
  248. # using cppflags instead of cxxflags
  249. GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
  250. GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
  251. GTEST_LDADD=`${GTEST_CONFIG} --libs`
  252. GTEST_FOUND="true"
  253. else
  254. AC_MSG_WARN([Unable to locate Google Test gtest-config.])
  255. if test -z "${GTEST_PATHS}" ; then
  256. GTEST_PATHS="/usr /usr/local"
  257. fi
  258. GTEST_FOUND="false"
  259. fi
  260. if test "${GTEST_FOUND}" != "true"; then
  261. GTEST_FOUND="false"
  262. for dir in $GTEST_PATHS; do
  263. if test -f "$dir/include/gtest/gtest.h"; then
  264. GTEST_INCLUDES="-I$dir/include"
  265. GTEST_LDFLAGS="-L$dir/lib"
  266. GTEST_LDADD="-lgtest"
  267. GTEST_FOUND="true"
  268. break
  269. fi
  270. done
  271. fi
  272. if test "${GTEST_FOUND}" != "true"; then
  273. AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
  274. fi
  275. else
  276. GTEST_INCLUDES=
  277. GTEST_LDFLAGS=
  278. GTEST_LDADD=
  279. fi
  280. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  281. AC_SUBST(GTEST_INCLUDES)
  282. AC_SUBST(GTEST_LDFLAGS)
  283. AC_SUBST(GTEST_LDADD)
  284. dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
  285. AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
  286. if test "x$HAVE_PKG_CONFIG" = "xno" ; then
  287. AC_MSG_ERROR(Please install pkg-config)
  288. fi
  289. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
  290. # I can't get some of the #include <asio.hpp> right without this
  291. # TODO: find the real cause of asio/boost wanting pthreads
  292. # (this currently only occurs for src/lib/cc/session_unittests)
  293. PTHREAD_LDFLAGS=
  294. AC_CHECK_LIB(pthread, pthread_create,[ PTHREAD_LDFLAGS=-lpthread ], [])
  295. AC_SUBST(PTHREAD_LDFLAGS)
  296. #
  297. # ASIO: we extensively use it as the C++ event management module.
  298. #
  299. # Use local ASIO headers from ext
  300. #
  301. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/asio"
  302. #
  303. # kqueue portability: ASIO uses kqueue by default if it's available (it's
  304. # generally available in BSD variants). Unfortunately, some public
  305. # implementation of kqueue forces a conversion from a pointer to an integer,
  306. # which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast
  307. # (and ASIO doesn't use it anyway) is used. This will cause build error for
  308. # some of our C++ files including ASIO header files. The following check
  309. # detects such cases and tells ASIO not to use kqueue if so.
  310. AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no)
  311. if test "X$ac_cv_have_kqueue" = "Xyes"; then
  312. AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++])
  313. AC_TRY_COMPILE([
  314. #include <sys/types.h>
  315. #include <sys/param.h>
  316. #include <sys/event.h>],
  317. [char* udata;
  318. EV_SET(NULL, 0, 0, 0, 0, 0, udata);],
  319. [AC_MSG_RESULT(yes)],
  320. [AC_MSG_RESULT([no, disable kqueue for ASIO])
  321. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1"
  322. ])
  323. fi
  324. # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
  325. # the case with Solaris). Unfortunately its /dev/poll specific code would
  326. # trigger the gcc's "missing-field-initializers" warning, which would
  327. # subsequently make the build fail with -Werror. Further, older versions of
  328. # gcc don't provide an option to selectively suppress this warning.
  329. # So, for the moment, we simply disable the use of /dev/poll. Unless we
  330. # implement recursive DNS server with randomized ports, we don't need the
  331. # scalability that /dev/poll can provide, so this decision wouldn't affect
  332. # run time performance. Hpefully we can find a better solution or the ASIO
  333. # code will be updated by the time we really need it.
  334. AC_CHECK_HEADERS(sys/devpoll.h, ac_cv_have_devpoll=yes, ac_cv_have_devpoll=no)
  335. if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then
  336. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1"
  337. fi
  338. # Check for headers from required devel kits.
  339. AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp],,
  340. AC_MSG_ERROR([Missing required header files.]))
  341. AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
  342. [regenerate man pages [default=no]])] ,enable_man=yes, enable_man=no)
  343. AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
  344. AC_ARG_ENABLE(install-configurations,
  345. [AC_HELP_STRING([--disable-install-configurations],
  346. [do not install configuration])], install_configurations=$enableval, install_configurations=yes)
  347. AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
  348. AC_CONFIG_FILES([Makefile
  349. src/Makefile
  350. src/bin/Makefile
  351. src/bin/bind10/Makefile
  352. src/bin/bind10/tests/Makefile
  353. src/bin/cmdctl/Makefile
  354. src/bin/cmdctl/tests/Makefile
  355. src/bin/bindctl/Makefile
  356. src/bin/bindctl/tests/Makefile
  357. src/bin/cfgmgr/Makefile
  358. src/bin/cfgmgr/tests/Makefile
  359. src/bin/host/Makefile
  360. src/bin/loadzone/Makefile
  361. src/bin/msgq/Makefile
  362. src/bin/msgq/tests/Makefile
  363. src/bin/auth/Makefile
  364. src/bin/auth/tests/Makefile
  365. src/bin/xfrin/Makefile
  366. src/bin/xfrin/tests/Makefile
  367. src/bin/xfrout/Makefile
  368. src/bin/xfrout/tests/Makefile
  369. src/bin/usermgr/Makefile
  370. src/lib/Makefile
  371. src/lib/cc/Makefile
  372. src/lib/python/Makefile
  373. src/lib/python/isc/Makefile
  374. src/lib/python/isc/datasrc/Makefile
  375. src/lib/python/isc/cc/Makefile
  376. src/lib/python/isc/cc/tests/Makefile
  377. src/lib/python/isc/config/Makefile
  378. src/lib/python/isc/config/tests/Makefile
  379. src/lib/config/Makefile
  380. src/lib/config/tests/Makefile
  381. src/lib/dns/Makefile
  382. src/lib/dns/tests/Makefile
  383. src/lib/exceptions/Makefile
  384. src/lib/datasrc/Makefile
  385. src/lib/datasrc/tests/Makefile
  386. src/lib/xfr/Makefile
  387. ])
  388. AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py
  389. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  390. src/bin/cmdctl/cmdctl.py
  391. src/bin/cmdctl/run_b10-cmdctl.sh
  392. src/bin/cmdctl/tests/cmdctl_test
  393. src/bin/xfrin/tests/xfrin_test
  394. src/bin/xfrin/xfrin.py
  395. src/bin/xfrin/xfrin.spec.pre
  396. src/bin/xfrin/run_b10-xfrin.sh
  397. src/bin/xfrout/xfrout.py
  398. src/bin/xfrout/xfrout.spec.pre
  399. src/bin/xfrout/tests/xfrout_test
  400. src/bin/xfrout/run_b10-xfrout.sh
  401. src/bin/bind10/bind10.py
  402. src/bin/bind10/tests/bind10_test
  403. src/bin/bind10/run_bind10.sh
  404. src/bin/bindctl/run_bindctl.sh
  405. src/bin/bindctl/bindctl-source.py
  406. src/bin/bindctl/tests/bindctl_test
  407. src/bin/loadzone/run_loadzone.sh
  408. src/bin/loadzone/b10-loadzone.py
  409. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  410. src/bin/usermgr/b10-cmdctl-usermgr.py
  411. src/bin/msgq/msgq.py
  412. src/bin/msgq/tests/msgq_test
  413. src/bin/msgq/run_msgq.sh
  414. src/bin/auth/auth.spec.pre
  415. src/bin/auth/spec_config.h.pre
  416. src/lib/config/tests/data_def_unittests_config.h
  417. src/lib/python/isc/config/tests/config_test
  418. src/lib/python/isc/cc/tests/cc_test
  419. src/lib/dns/gen-rdatacode.py
  420. src/lib/python/bind10_config.py
  421. src/lib/dns/tests/testdata/gen-wiredata.py
  422. src/lib/cc/session_config.h.pre
  423. ], [
  424. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  425. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  426. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  427. chmod +x src/bin/bind10/run_bind10.sh
  428. chmod +x src/bin/cmdctl/tests/cmdctl_test
  429. chmod +x src/bin/xfrin/tests/xfrin_test
  430. chmod +x src/bin/xfrout/tests/xfrout_test
  431. chmod +x src/bin/bindctl/tests/bindctl_test
  432. chmod +x src/bin/bindctl/run_bindctl.sh
  433. chmod +x src/bin/loadzone/run_loadzone.sh
  434. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  435. chmod +x src/bin/msgq/run_msgq.sh
  436. chmod +x src/bin/msgq/tests/msgq_test
  437. chmod +x src/lib/dns/gen-rdatacode.py
  438. chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
  439. ])
  440. AC_OUTPUT
  441. dnl Print the results
  442. dnl
  443. cat > config.report << END
  444. BIND 10 source configure results:
  445. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  446. Package:
  447. Name: $PACKAGE_NAME
  448. Version: $PACKAGE_VERSION
  449. Flags:
  450. DEFS: $DEFS
  451. CPPFLAGS: $CPPFLAGS
  452. CFLAGS: $CFLAGS
  453. CXXFLAGS: $CXXFLAGS
  454. B10_CXXFLAGS: $B10_CXXFLAGS
  455. dnl includes too
  456. Boost Python: $BOOST_PYTHON_LIB
  457. SQLite: $SQLITE_CFLAGS
  458. $SQLITE_LIBS
  459. Features:
  460. $enable_features
  461. Developer:
  462. Google Tests: $gtest_path
  463. Code Coverage: $USE_LCOV
  464. Generate Manuals: $enable_man
  465. END
  466. cat config.report
  467. cat <<EOF
  468. Now you can type "make" to build BIND 10
  469. EOF