configure.ac 18 KB

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