configure.ac 22 KB

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