configure.ac 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-devel, 20110519, 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. # Libtool configuration
  11. #
  12. # On FreeBSD (and probably some others), clang++ does not meet an autoconf
  13. # assumption in identifying libtool configuration regarding shared library:
  14. # the configure script will execute "$CC -shared $CFLAGS/$CXXFLAGS -v" and
  15. # expect the output contains -Lxxx or -Ryyy. This is the case for g++, but
  16. # not for clang++, and, as a result, it will cause various errors in linking
  17. # programs or running them with a shared object (such as some of our python
  18. # scripts).
  19. # To work around this problem we define a temporary variable
  20. # "CXX_LIBTOOL_LDFLAGS". It's expected to be defined as, e.g, "-L/usr/lib"
  21. # to temporarily fake the output so that it will be compatible with that of
  22. # g++.
  23. CFLAGS_SAVED=$CFLAGS
  24. CXXFLAGS_SAVED=$CXXFLAGS
  25. CFLAGS="$CFLAGS $CXX_LIBTOOL_LDFLAGS"
  26. CXXFLAGS="$CXXFLAGS $CXX_LIBTOOL_LDFLAGS"
  27. AC_PROG_LIBTOOL
  28. CFLAGS=$CFLAGS_SAVED
  29. CXXFLAGS=$CXXFLAGS_SAVED
  30. # Use C++ language
  31. AC_LANG([C++])
  32. # Identify the compiler: this check must be after AC_PROG_CXX and AC_LANG.
  33. AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
  34. AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
  35. AC_CHECK_DECL([__clang__], [CLANGPP="yes"], [CLANGPP="no"])
  36. AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
  37. # Linker options
  38. # check -R rather than gcc specific -rpath to be as portable as possible.
  39. AC_MSG_CHECKING([whether -R flag is available in linker])
  40. LDFLAGS_SAVED="$LDFLAGS"
  41. LDFLAGS="$LDFLAGS -R/usr/lib"
  42. AC_TRY_LINK([],[],
  43. [ AC_MSG_RESULT(yes)
  44. rpath_available=yes
  45. ],[ AC_MSG_RESULT(no)
  46. rpath_available=no
  47. ])
  48. LDFLAGS=$LDFLAGS_SAVED
  49. # allow building programs with static link. we need to make it selective
  50. # because loadable modules cannot be statically linked.
  51. AC_ARG_ENABLE([static-link],
  52. AC_HELP_STRING([--enable-static-link],
  53. [build programs with static link [[default=no]]]),
  54. [enable_static_link=yes], [enable_static_link=no])
  55. AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
  56. # Check validity about some libtool options
  57. if test $enable_static_link = yes -a $enable_static = no; then
  58. AC_MSG_ERROR([--enable-static-link requires --enable-static])
  59. fi
  60. if test $enable_shared = no; then
  61. AC_MSG_ERROR([BIND 10 requires shared libraries to be built])
  62. fi
  63. AC_ARG_ENABLE(boost-threads,
  64. AC_HELP_STRING([--enable-boost-threads],
  65. [use boost threads. Currently this only means using its locks instead of dummy locks, in the cache and NSAS]),
  66. use_boost_threads=$enableval, use_boost_threads=no)
  67. # allow configuring without setproctitle.
  68. AC_ARG_ENABLE(setproctitle-check,
  69. AC_HELP_STRING([--disable-setproctitle-check],
  70. [do not check for python setproctitle module (used to give nice names to python processes)]),
  71. setproctitle_check=$enableval, setproctitle_check=yes)
  72. # OS dependent configuration
  73. SET_ENV_LIBRARY_PATH=no
  74. ENV_LIBRARY_PATH=LD_LIBRARY_PATH
  75. case "$host" in
  76. *-solaris*)
  77. # Solaris requires special definitions to get some standard libraries
  78. # (e.g. getopt(3)) available with common used header files.
  79. CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
  80. ;;
  81. *-apple-darwin*)
  82. # libtool doesn't work perfectly with Darwin: libtool embeds the
  83. # final install path in dynamic libraries and our loadable python
  84. # modules always refer to that path even if it's loaded within the
  85. # source tree. This prevents pre-install tests from working.
  86. # To work around this problem we explicitly specify paths to dynamic
  87. # libraries when we use them in the source tree.
  88. SET_ENV_LIBRARY_PATH=yes
  89. ENV_LIBRARY_PATH=DYLD_LIBRARY_PATH
  90. ;;
  91. esac
  92. AM_CONDITIONAL(SET_ENV_LIBRARY_PATH, test $SET_ENV_LIBRARY_PATH = yes)
  93. AC_SUBST(SET_ENV_LIBRARY_PATH)
  94. AC_SUBST(ENV_LIBRARY_PATH)
  95. m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
  96. AC_ARG_WITH([pythonpath],
  97. AC_HELP_STRING([--with-pythonpath=PATH],
  98. [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
  99. [python_path="$withval"], [python_path="auto"])
  100. if test "$python_path" = auto; then
  101. AM_PATH_PYTHON([3.1])
  102. else
  103. # Older versions of automake can't handle python3 well. This is an
  104. # in-house workaround for them.
  105. PYTHON=$python_path
  106. AC_SUBST(PYTHON)
  107. PYTHON_PREFIX='${prefix}'
  108. AC_SUBST(PYTHON_PREFIX)
  109. PYTHON_EXEC_PREFIX='$(exec_prefix)'
  110. AC_SUBST(PYTHON_EXEC_PREFIX)
  111. PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
  112. if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
  113. AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
  114. fi
  115. AC_SUBST(PYTHON_VERSION)
  116. PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
  117. AC_SUBST(PYTHON_PLATFORM)
  118. pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  119. AC_SUBST(pythondir)
  120. pkgpythondir='${pythondir}/'$PACKAGE
  121. AC_SUBST(pkgpythondir)
  122. pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  123. AC_SUBST(pyexecdir)
  124. pkgpyexecdir='${pyexecdir}/'$PACKAGE
  125. AC_SUBST(pkgpyexecdir)
  126. fi
  127. # We need to store the default pyexecdir in a separate variable so that
  128. # we can specify in Makefile.am the install directory of various BIND 10
  129. # python scripts and loadable modules; in Makefile.am we cannot replace
  130. # $(pyexecdir) using itself, e.g, this doesn't work:
  131. # pyexecdir = $(pyexecdir)/isc/some_module
  132. # The separate variable makes this setup possible as follows:
  133. # pyexecdir = $(PYTHON_SITEPKG_DIR)/isc/some_module
  134. PYTHON_SITEPKG_DIR=${pyexecdir}
  135. AC_SUBST(PYTHON_SITEPKG_DIR)
  136. # Check for python development environments
  137. if test -x ${PYTHON}-config; then
  138. PYTHON_INCLUDES=`${PYTHON}-config --includes`
  139. for flag in `${PYTHON}-config --ldflags`; do
  140. # add any '-L..." flags to PYTHON_LDFLAGS
  141. flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
  142. if test "X${flag}" != X; then
  143. PYTHON_LDFLAGS="$PYTHON_LDFLAGS ${flag}"
  144. fi
  145. done
  146. # on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L
  147. # option while having the library under a non trivial directory.
  148. # as a workaround we try the "lib" sub directory under the common
  149. # prefix for this python.
  150. if test -z "${PYTHON_LDFLAGS}"; then
  151. PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
  152. fi
  153. else
  154. if test "X$PYTHON_INCLUDES" = X -o "X$PYTHON_LDFLAGS" = X; then
  155. 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.])
  156. fi
  157. fi
  158. # Some OSes including NetBSD don't install libpython.so in a well known path.
  159. # To avoid requiring dynamic library path with our python wrapper loadable
  160. # modules, we embed the path to the modules when possible. We do this even
  161. # when the path is known in the common operational environment (e.g. when
  162. # it's stored in a common "hint" file) for simplicity.
  163. if test $rpath_available = yes; then
  164. python_rpath=
  165. for flag in ${PYTHON_LDFLAGS}; do
  166. python_rpath="${python_rpath} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  167. done
  168. PYTHON_LDFLAGS="${PYTHON_LDFLAGS} ${python_rpath}"
  169. fi
  170. AC_SUBST(PYTHON_INCLUDES)
  171. AC_SUBST(PYTHON_LDFLAGS)
  172. CPPFLAGS_SAVED="$CPPFLAGS"
  173. CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
  174. AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
  175. CPPFLAGS="$CPPFLAGS_SAVED"
  176. # Check for python library. Needed for Python-wrapper libraries.
  177. LDFLAGS_SAVED="$LDFLAGS"
  178. LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
  179. python_bin="python${PYTHON_VERSION}"
  180. AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
  181. if test $python_lib != "no"; then
  182. PYTHON_LIB="-l$python_lib"
  183. fi
  184. AC_SUBST(PYTHON_LIB)
  185. LDFLAGS=$LDFLAGS_SAVED
  186. # Check for the setproctitle module
  187. if test "$setproctitle_check" = "yes" ; then
  188. AC_MSG_CHECKING(for setproctitle module)
  189. if "$PYTHON" -c 'import setproctitle' 2>/dev/null ; then
  190. AC_MSG_RESULT(ok)
  191. else
  192. AC_MSG_RESULT(missing)
  193. AC_MSG_WARN([Missing setproctitle python module.
  194. Use --disable-setproctitle-check to skip this check.
  195. In this case we will continue, but naming of python processes will not work.])
  196. fi
  197. fi
  198. # TODO: check for _sqlite3.py module
  199. # Compiler dependent settings: define some mandatory CXXFLAGS here.
  200. # We also use a separate variable B10_CXXFLAGS. This will (and should) be
  201. # used as the default value for each specific AM_CXXFLAGS:
  202. # AM_CXXFLAGS = $(B10_CXXFLAGS)
  203. # AM_CXXFLAGS += ... # add module specific flags
  204. # We need this so that we can disable some specific compiler warnings per
  205. # module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
  206. # gcc's -Wno-XXX option must be specified after -Wall or -Wextra, we cannot
  207. # specify the default warning flags in CXXFLAGS and let specific modules
  208. # "override" the default.
  209. # This may be used to try linker flags.
  210. AC_DEFUN([BIND10_CXX_TRY_FLAG], [
  211. AC_MSG_CHECKING([whether $CXX supports $1])
  212. bind10_save_CXXFLAGS="$CXXFLAGS"
  213. CXXFLAGS="$CXXFLAGS $1"
  214. AC_LINK_IFELSE([int main(void){ return 0;} ],
  215. [bind10_cxx_flag=yes], [bind10_cxx_flag=no])
  216. CXXFLAGS="$bind10_save_CXXFLAGS"
  217. if test "x$bind10_cxx_flag" = "xyes"; then
  218. ifelse([$2], , :, [$2])
  219. else
  220. ifelse([$3], , :, [$3])
  221. fi
  222. AC_MSG_RESULT([$bind10_cxx_flag])
  223. ])
  224. werror_ok=0
  225. # SunStudio compiler requires special compiler options for boost
  226. # (http://blogs.sun.com/sga/entry/boost_mini_howto)
  227. if test "$SUNCXX" = "yes"; then
  228. CXXFLAGS="$CXXFLAGS -library=stlport4 -features=tmplife -features=tmplrefstatic"
  229. MULTITHREADING_FLAG="-mt"
  230. fi
  231. BIND10_CXX_TRY_FLAG(-Wno-missing-field-initializers,
  232. [WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG="-Wno-missing-field-initializers"])
  233. AC_SUBST(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
  234. # gcc specific settings:
  235. if test "X$GXX" = "Xyes"; then
  236. B10_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
  237. case "$host" in
  238. *-solaris*)
  239. MULTITHREADING_FLAG=-pthreads
  240. ;;
  241. *)
  242. MULTITHREADING_FLAG=-pthread
  243. ;;
  244. esac
  245. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  246. # the use of anonymous name spaces even if they're closed in a single
  247. # translation unit. For these versions we have to disable -Werror.
  248. CXXFLAGS_SAVED="$CXXFLAGS"
  249. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  250. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  251. AC_TRY_COMPILE([namespace { class Foo {}; }
  252. namespace isc {class Bar {Foo foo_;};} ],,
  253. [AC_MSG_RESULT(no)
  254. werror_ok=1
  255. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  256. [AC_MSG_RESULT(yes)])
  257. CXXFLAGS="$CXXFLAGS_SAVED"
  258. # Python 3.2 has an unused parameter in one of its headers. This
  259. # has been reported, but not fixed as of yet, so we check if we need
  260. # to set -Wno-unused-parameter.
  261. if test $werror_ok = 1; then
  262. CPPFLAGS_SAVED="$CPPFLAGS"
  263. CPPFLAGS=${PYTHON_INCLUDES}
  264. CXXFLAGS_SAVED="$CXXFLAGS"
  265. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  266. AC_MSG_CHECKING([whether we need -Wno-unused-parameter for python])
  267. AC_TRY_COMPILE(
  268. [#include <Python.h>],
  269. [],
  270. [AC_MSG_RESULT(no)],
  271. [
  272. CXXFLAGS="$CXXFLAGS -Wno-unused-parameter"
  273. AC_TRY_COMPILE([#include <Python.h>],
  274. [],
  275. [AC_MSG_RESULT(yes)
  276. PYTHON_CXXFLAGS="${PYTHON_CXXFLAGS} -Wno-unused-parameter"
  277. AC_SUBST(PYTHON_CXXFLAGS)
  278. ],
  279. [AC_MSG_ERROR([Can't compile against Python.h])]
  280. )
  281. ]
  282. )
  283. CXXFLAGS="$CXXFLAGS_SAVED"
  284. CPPFLAGS="$CPPFLAGS_SAVED"
  285. fi
  286. fi dnl GXX = yes
  287. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  288. # produce PIC unless we disable shared libraries. need this for python bindings.
  289. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  290. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  291. fi
  292. AC_SUBST(B10_CXXFLAGS)
  293. # Checks for libraries.
  294. AC_SEARCH_LIBS(inet_pton, [nsl])
  295. AC_SEARCH_LIBS(recvfrom, [socket])
  296. AC_SEARCH_LIBS(nanosleep, [rt])
  297. # Checks for header files.
  298. # Checks for typedefs, structures, and compiler characteristics.
  299. AC_HEADER_STDBOOL
  300. AC_TYPE_SIZE_T
  301. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  302. AC_TRY_COMPILE([
  303. #include <sys/types.h>
  304. #include <sys/socket.h>],
  305. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  306. [AC_MSG_RESULT(yes)
  307. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  308. AC_MSG_RESULT(no))
  309. AC_ARG_WITH(pycoverage,
  310. [ --with-pycoverage[=PROGRAM] enable python code coverage using the specified coverage], pycoverage="$withval", pycoverage="no")
  311. if test "$pycoverage" = "no" ; then
  312. # just run the tests normally with python
  313. PYCOVERAGE_RUN="${PYTHON}"
  314. USE_PYCOVERAGE="no"
  315. elif test "$pycoverage" = "yes" ; then
  316. PYCOVERAGE="coverage"
  317. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  318. USE_PYCOVERAGE="yes"
  319. else
  320. PYCOVERAGE="$pycoverage"
  321. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  322. USE_PYCOVERAGE="yes"
  323. fi
  324. AM_CONDITIONAL(ENABLE_PYTHON_COVERAGE, test x$USE_PYCOVERAGE != xno)
  325. AC_SUBST(PYCOVERAGE)
  326. AC_SUBST(PYCOVERAGE_RUN)
  327. AC_SUBST(USE_PYCOVERAGE)
  328. AC_ARG_WITH(lcov,
  329. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  330. AC_ARG_WITH(gtest,
  331. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  332. gtest_path="$withval", gtest_path="no")
  333. USE_LCOV="no"
  334. if test "$lcov" != "no"; then
  335. # force gtest if not set
  336. if test "$gtest_path" = "no"; then
  337. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  338. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  339. gtest_path="yes"
  340. fi
  341. if test "$lcov" != "yes"; then
  342. LCOV=$lcov
  343. else
  344. AC_PATH_PROG([LCOV], [lcov])
  345. fi
  346. if test -x "${LCOV}"; then
  347. USE_LCOV="yes"
  348. else
  349. AC_MSG_ERROR([Cannot find lcov.])
  350. fi
  351. # is genhtml always in the same directory?
  352. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  353. if test ! -x $GENHTML; then
  354. AC_MSG_ERROR([genhtml not found, needed for lcov])
  355. fi
  356. # GCC specific?
  357. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  358. LIBS=" $LIBS -lgcov"
  359. AC_SUBST(CPPFLAGS)
  360. AC_SUBST(LIBS)
  361. AC_SUBST(LCOV)
  362. AC_SUBST(GENHTML)
  363. fi
  364. AC_SUBST(USE_LCOV)
  365. # Check for Botan
  366. botan_path="yes"
  367. AC_ARG_WITH([botan],
  368. AC_HELP_STRING([--with-botan=PATH],
  369. [specify exact directory of Botan library]),
  370. [botan_path="$withval"])
  371. if test "${botan_path}" == "no" ; then
  372. AC_MSG_ERROR([Need botan for libcryptolink])
  373. fi
  374. if test "${botan_path}" != "yes" ; then
  375. if test -x "${botan_path}/bin/botan-config" ; then
  376. BOTAN_CONFIG="${botan_path}/bin/botan-config"
  377. else
  378. AC_MSG_ERROR([${botan_path}/bin/botan-config not found])
  379. fi
  380. else
  381. AC_PATH_PROG([BOTAN_CONFIG], [botan-config])
  382. fi
  383. if test -x "${BOTAN_CONFIG}" ; then
  384. BOTAN_LDFLAGS=`${BOTAN_CONFIG} --libs`
  385. # We expect botan-config --libs to contain -L<path_to_libbotan>, but
  386. # this is not always the case. As a heuristics workaround we add
  387. # -L`botan-config --prefix/lib` in this case. Same for BOTAN_INCLUDES
  388. # (but using include instead of lib) below.
  389. echo ${BOTAN_LDFLAGS} | grep -- -L > /dev/null || \
  390. BOTAN_LDFLAGS="-L`${BOTAN_CONFIG} --prefix`/lib ${BOTAN_LDFLAGS}"
  391. BOTAN_INCLUDES=`${BOTAN_CONFIG} --cflags`
  392. echo ${BOTAN_INCLUDES} | grep -- -I > /dev/null || \
  393. BOTAN_INCLUDES="-I`${BOTAN_CONFIG} --prefix`/include ${BOTAN_INCLUDES}"
  394. # See python_rpath for some info on why we do this
  395. if test $rpath_available = yes; then
  396. BOTAN_RPATH=
  397. for flag in ${BOTAN_LDFLAGS}; do
  398. BOTAN_RPATH="${BOTAN_RPATH} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  399. done
  400. AC_SUBST(BOTAN_RPATH)
  401. # According to the libtool manual, it should be sufficient if we
  402. # specify the "-R libdir" in our wrapper library of botan (no other
  403. # programs will need libbotan directly); "libdir" should be added to
  404. # the program's binary image. But we've seen in our build environments
  405. # that (some versions of?) libtool doesn't propagate -R as documented,
  406. # and it caused a linker error at run time. To work around this, we
  407. # also add the rpath to the global LDFLAGS.
  408. LDFLAGS="$BOTAN_RPATH $LDFLAGS"
  409. fi
  410. AC_SUBST(BOTAN_LDFLAGS)
  411. AC_SUBST(BOTAN_INCLUDES)
  412. fi
  413. CPPFLAGS_SAVED=$CPPFLAGS
  414. CPPFLAGS="$BOTAN_INCLUDES $CPPFLAGS"
  415. LDFLAGS_SAVED="$LDFLAGS"
  416. LDFLAGS="$BOTAN_LDFLAGS $LDFLAGS"
  417. AC_CHECK_HEADERS([botan/botan.h],,AC_MSG_ERROR([Missing required header files.]))
  418. AC_LINK_IFELSE(
  419. [AC_LANG_PROGRAM([#include <botan/botan.h>
  420. #include <botan/hash.h>
  421. ],
  422. [using namespace Botan;
  423. LibraryInitializer::initialize();
  424. HashFunction *h = get_hash("MD5");
  425. ])],
  426. [AC_MSG_RESULT([checking for Botan library... yes])],
  427. [AC_MSG_RESULT([checking for Botan library... no])
  428. AC_MSG_ERROR([Needs Botan library 1.8 or higher])]
  429. )
  430. CPPFLAGS=$CPPFLAGS_SAVED
  431. LDFLAGS=$LDFLAGS_SAVED
  432. # Check for log4cplus
  433. log4cplus_path="yes"
  434. AC_ARG_WITH([log4cplus],
  435. AC_HELP_STRING([--with-log4cplus=PATH],
  436. [specify exact directory of log4cplus library and headers]),
  437. [log4cplus_path="$withval"])
  438. if test "${log4cplus_path}" == "no" ; then
  439. AC_MSG_ERROR([Need log4cplus])
  440. elif test "${log4cplus_path}" != "yes" ; then
  441. LOG4CPLUS_INCLUDES="-I${log4cplus_path}/include"
  442. LOG4CPLUS_LDFLAGS="-L${log4cplus_path}/lib"
  443. else
  444. # If not specified, try some common paths.
  445. log4cplusdirs="/usr/local /usr/pkg /opt /opt/local"
  446. for d in $log4cplusdirs
  447. do
  448. if test -f $d/include/log4cplus/logger.h; then
  449. LOG4CPLUS_INCLUDES="-I$d/include"
  450. LOG4CPLUS_LDFLAGS="-L$d/lib"
  451. break
  452. fi
  453. done
  454. fi
  455. LOG4CPLUS_LDFLAGS="$LOG4CPLUS_LDFLAGS -llog4cplus $MULTITHREADING_FLAG"
  456. AC_SUBST(LOG4CPLUS_LDFLAGS)
  457. AC_SUBST(LOG4CPLUS_INCLUDES)
  458. CPPFLAGS_SAVED=$CPPFLAGS
  459. CPPFLAGS="$LOG4CPLUS_INCLUDES $CPPFLAGS"
  460. LDFLAGS_SAVED="$LDFLAGS"
  461. LDFLAGS="$LOG4CPLUS_LDFLAGS $LDFLAGS"
  462. AC_CHECK_HEADERS([log4cplus/logger.h],,AC_MSG_ERROR([Missing required header files.]))
  463. AC_LINK_IFELSE(
  464. [AC_LANG_PROGRAM([#include <log4cplus/logger.h>
  465. ],
  466. [using namespace log4cplus;
  467. Logger logger = Logger::getInstance("main");
  468. ])],
  469. [AC_MSG_RESULT([checking for log4cplus library... yes])],
  470. [AC_MSG_RESULT([checking for log4cplus library... no])
  471. AC_MSG_ERROR([Needs log4cplus library])]
  472. )
  473. CPPFLAGS=$CPPFLAGS_SAVED
  474. LDFLAGS=$LDFLAGS_SAVED
  475. #
  476. # Configure Boost header path
  477. #
  478. # If explicitly specified, use it.
  479. AC_ARG_WITH([boost-include],
  480. AC_HELP_STRING([--with-boost-include=PATH],
  481. [specify exact directory for Boost headers]),
  482. [boost_include_path="$withval"])
  483. # If not specified, try some common paths.
  484. if test -z "$with_boost_include"; then
  485. boostdirs="/usr/local /usr/pkg /opt /opt/local"
  486. for d in $boostdirs
  487. do
  488. if test -f $d/include/boost/shared_ptr.hpp; then
  489. boost_include_path=$d/include
  490. break
  491. fi
  492. done
  493. fi
  494. CPPFLAGS_SAVES="$CPPFLAGS"
  495. if test "${boost_include_path}" ; then
  496. BOOST_INCLUDES="-I${boost_include_path}"
  497. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  498. fi
  499. AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp boost/interprocess/sync/interprocess_upgradable_mutex.hpp boost/date_time/posix_time/posix_time_types.hpp boost/bind.hpp boost/function.hpp],,
  500. AC_MSG_ERROR([Missing required header files.]))
  501. CPPFLAGS="$CPPFLAGS_SAVES"
  502. AC_SUBST(BOOST_INCLUDES)
  503. if test "${use_boost_threads}" = "yes" ; then
  504. AC_DEFINE([USE_BOOST_THREADS], [], [Use boost threads])
  505. # Using boost::mutex can result in requiring libboost_thread with older
  506. # versions of Boost. We'd like to avoid relying on a compiled Boost library
  507. # whenever possible, so we need to check for it step by step.
  508. #
  509. # NOTE: another fix of this problem is to simply require newer versions of
  510. # boost. If we choose that solution we should simplify the following tricky
  511. # checks accordingly and all Makefile.am's that refer to NEED_LIBBOOST_THREAD.
  512. AC_MSG_CHECKING(for boost::mutex)
  513. CPPFLAGS_SAVES="$CPPFLAGS"
  514. LIBS_SAVES="$LIBS"
  515. CPPFLAGS="$BOOST_INCLUDES $CPPFLAGS $MULTITHREADING_FLAG"
  516. need_libboost_thread=0
  517. need_sunpro_workaround=0
  518. AC_TRY_LINK([
  519. #include <boost/thread.hpp>
  520. ],[
  521. boost::mutex m;
  522. ],
  523. [ AC_MSG_RESULT(yes (without libboost_thread)) ],
  524. # there is one specific problem with SunStudio 5.10
  525. # where including boost/thread causes a compilation failure
  526. # There is a workaround in boost but it checks the version not being 5.10
  527. # This will probably be fixed in the future, in which case this
  528. # is only a temporary workaround
  529. [ AC_TRY_LINK([
  530. #if defined(__SUNPRO_CC) && __SUNPRO_CC == 0x5100
  531. #undef __SUNPRO_CC
  532. #define __SUNPRO_CC 0x5090
  533. #endif
  534. #include <boost/thread.hpp>
  535. ],[
  536. boost::mutex m;
  537. ],
  538. [ AC_MSG_RESULT(yes (with SUNOS workaround))
  539. need_sunpro_workaround=1 ],
  540. [ LIBS=" $LIBS -lboost_thread"
  541. AC_TRY_LINK([
  542. #include <boost/thread.hpp>
  543. ],[
  544. boost::mutex m;
  545. ],
  546. [ AC_MSG_RESULT(yes (with libboost_thread))
  547. need_libboost_thread=1 ],
  548. [ AC_MSG_RESULT(no)
  549. AC_MSG_ERROR([boost::mutex cannot be linked in this build environment.
  550. Perhaps you are using an older version of Boost that requires libboost_thread for the mutex support, which does not appear to be available.
  551. You may want to check the availability of the library or to upgrade Boost.])
  552. ])])])
  553. CPPFLAGS="$CPPFLAGS_SAVES"
  554. LIBS="$LIBS_SAVES"
  555. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test $need_libboost_thread = 1)
  556. if test $need_sunpro_workaround = 1; then
  557. AC_DEFINE([NEED_SUNPRO_WORKAROUND], [], [Need boost sunstudio workaround])
  558. fi
  559. else
  560. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test "${use_boost_threads}" = "yes")
  561. fi
  562. #
  563. # Check availability of gtest, which will be used for unit tests.
  564. #
  565. if test "$gtest_path" != "no"
  566. then
  567. if test "$gtest_path" != "yes"; then
  568. GTEST_PATHS=$gtest_path
  569. if test -x "${gtest_path}/bin/gtest-config" ; then
  570. GTEST_CONFIG="${gtest_path}/bin/gtest-config"
  571. fi
  572. else
  573. AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
  574. fi
  575. if test -x "${GTEST_CONFIG}" ; then :
  576. # using cppflags instead of cxxflags
  577. GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
  578. GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
  579. GTEST_LDADD=`${GTEST_CONFIG} --libs`
  580. GTEST_FOUND="true"
  581. else
  582. AC_MSG_WARN([Unable to locate Google Test gtest-config.])
  583. if test -z "${GTEST_PATHS}" ; then
  584. GTEST_PATHS="/usr /usr/local"
  585. fi
  586. GTEST_FOUND="false"
  587. fi
  588. if test "${GTEST_FOUND}" != "true"; then
  589. GTEST_FOUND="false"
  590. for dir in $GTEST_PATHS; do
  591. if test -f "$dir/include/gtest/gtest.h"; then
  592. GTEST_INCLUDES="-I$dir/include"
  593. GTEST_LDFLAGS="-L$dir/lib"
  594. GTEST_LDADD="-lgtest"
  595. GTEST_FOUND="true"
  596. break
  597. fi
  598. done
  599. fi
  600. if test "${GTEST_FOUND}" != "true"; then
  601. AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
  602. fi
  603. else
  604. GTEST_INCLUDES=
  605. GTEST_LDFLAGS=
  606. GTEST_LDADD=
  607. fi
  608. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  609. AC_SUBST(GTEST_INCLUDES)
  610. AC_SUBST(GTEST_LDFLAGS)
  611. AC_SUBST(GTEST_LDADD)
  612. dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
  613. AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
  614. if test "x$HAVE_PKG_CONFIG" = "xno" ; then
  615. AC_MSG_ERROR(Please install pkg-config)
  616. fi
  617. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
  618. # I can't get some of the #include <asio.hpp> right without this
  619. # TODO: find the real cause of asio/boost wanting pthreads
  620. # (this currently only occurs for src/lib/cc/session_unittests)
  621. PTHREAD_LDFLAGS=
  622. AC_CHECK_LIB(pthread, pthread_create,[ PTHREAD_LDFLAGS=-lpthread ], [])
  623. AC_SUBST(PTHREAD_LDFLAGS)
  624. AC_SUBST(MULTITHREADING_FLAG)
  625. #
  626. # ASIO: we extensively use it as the C++ event management module.
  627. #
  628. # Use local ASIO headers from ext
  629. #
  630. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/asio"
  631. #
  632. # Use our 'coroutine' header from ext
  633. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/coroutine"
  634. #
  635. # Disable threads: Currently we don't use them.
  636. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
  637. #
  638. # kqueue portability: ASIO uses kqueue by default if it's available (it's
  639. # generally available in BSD variants). Unfortunately, some public
  640. # implementation of kqueue forces a conversion from a pointer to an integer,
  641. # which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast
  642. # (and ASIO doesn't use it anyway) is used. This will cause build error for
  643. # some of our C++ files including ASIO header files. The following check
  644. # detects such cases and tells ASIO not to use kqueue if so.
  645. AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no)
  646. if test "X$ac_cv_have_kqueue" = "Xyes"; then
  647. AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++])
  648. AC_TRY_COMPILE([
  649. #include <sys/types.h>
  650. #include <sys/param.h>
  651. #include <sys/event.h>],
  652. [char* udata;
  653. EV_SET(NULL, 0, 0, 0, 0, 0, udata);],
  654. [AC_MSG_RESULT(yes)],
  655. [AC_MSG_RESULT([no, disable kqueue for ASIO])
  656. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1"
  657. ])
  658. fi
  659. # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
  660. # the case with Solaris). Unfortunately its /dev/poll specific code would
  661. # trigger the gcc's "missing-field-initializers" warning, which would
  662. # subsequently make the build fail with -Werror. Further, older versions of
  663. # gcc don't provide an option to selectively suppress this warning.
  664. # So, for the moment, we simply disable the use of /dev/poll. Unless we
  665. # implement recursive DNS server with randomized ports, we don't need the
  666. # scalability that /dev/poll can provide, so this decision wouldn't affect
  667. # run time performance. Hopefully we can find a better solution or the ASIO
  668. # code will be updated by the time we really need it.
  669. AC_CHECK_HEADERS(sys/devpoll.h, ac_cv_have_devpoll=yes, ac_cv_have_devpoll=no)
  670. if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then
  671. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1"
  672. fi
  673. #
  674. # Perl is optional; it is used only by some of the system test scripts.
  675. #
  676. AC_PATH_PROGS(PERL, perl5 perl)
  677. AC_SUBST(PERL)
  678. AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
  679. [regenerate man pages [default=no]])], enable_man=yes, enable_man=no)
  680. AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
  681. AC_ARG_ENABLE(install-configurations,
  682. [AC_HELP_STRING([--disable-install-configurations],
  683. [do not install configuration])], install_configurations=$enableval, install_configurations=yes)
  684. AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
  685. AC_CONFIG_FILES([Makefile
  686. doc/Makefile
  687. doc/guide/Makefile
  688. src/Makefile
  689. src/bin/Makefile
  690. src/bin/bind10/Makefile
  691. src/bin/bind10/tests/Makefile
  692. src/bin/cmdctl/Makefile
  693. src/bin/cmdctl/tests/Makefile
  694. src/bin/bindctl/Makefile
  695. src/bin/bindctl/tests/Makefile
  696. src/bin/cfgmgr/Makefile
  697. src/bin/cfgmgr/plugins/Makefile
  698. src/bin/cfgmgr/plugins/tests/Makefile
  699. src/bin/cfgmgr/tests/Makefile
  700. src/bin/host/Makefile
  701. src/bin/loadzone/Makefile
  702. src/bin/loadzone/tests/correct/Makefile
  703. src/bin/loadzone/tests/error/Makefile
  704. src/bin/msgq/Makefile
  705. src/bin/msgq/tests/Makefile
  706. src/bin/auth/Makefile
  707. src/bin/auth/tests/Makefile
  708. src/bin/auth/benchmarks/Makefile
  709. src/bin/dhcp6/Makefile
  710. src/bin/dhcp6/tests/Makefile
  711. src/bin/resolver/Makefile
  712. src/bin/resolver/tests/Makefile
  713. src/bin/sockcreator/Makefile
  714. src/bin/sockcreator/tests/Makefile
  715. src/bin/xfrin/Makefile
  716. src/bin/xfrin/tests/Makefile
  717. src/bin/xfrout/Makefile
  718. src/bin/xfrout/tests/Makefile
  719. src/bin/zonemgr/Makefile
  720. src/bin/zonemgr/tests/Makefile
  721. src/bin/stats/Makefile
  722. src/bin/stats/tests/Makefile
  723. src/bin/stats/tests/isc/Makefile
  724. src/bin/stats/tests/isc/cc/Makefile
  725. src/bin/stats/tests/isc/config/Makefile
  726. src/bin/stats/tests/isc/util/Makefile
  727. src/bin/stats/tests/isc/log/Makefile
  728. src/bin/stats/tests/testdata/Makefile
  729. src/bin/stats/tests/http/Makefile
  730. src/bin/usermgr/Makefile
  731. src/bin/tests/Makefile
  732. src/lib/Makefile
  733. src/lib/asiolink/Makefile
  734. src/lib/asiolink/tests/Makefile
  735. src/lib/asiodns/Makefile
  736. src/lib/asiodns/tests/Makefile
  737. src/lib/bench/Makefile
  738. src/lib/bench/example/Makefile
  739. src/lib/bench/tests/Makefile
  740. src/lib/cc/Makefile
  741. src/lib/cc/tests/Makefile
  742. src/lib/python/Makefile
  743. src/lib/python/isc/Makefile
  744. src/lib/python/isc/acl/Makefile
  745. src/lib/python/isc/acl/tests/Makefile
  746. src/lib/python/isc/util/Makefile
  747. src/lib/python/isc/util/tests/Makefile
  748. src/lib/python/isc/datasrc/Makefile
  749. src/lib/python/isc/datasrc/tests/Makefile
  750. src/lib/python/isc/cc/Makefile
  751. src/lib/python/isc/cc/tests/Makefile
  752. src/lib/python/isc/config/Makefile
  753. src/lib/python/isc/config/tests/Makefile
  754. src/lib/python/isc/log/Makefile
  755. src/lib/python/isc/log/tests/Makefile
  756. src/lib/python/isc/net/Makefile
  757. src/lib/python/isc/net/tests/Makefile
  758. src/lib/python/isc/notify/Makefile
  759. src/lib/python/isc/notify/tests/Makefile
  760. src/lib/python/isc/testutils/Makefile
  761. src/lib/config/Makefile
  762. src/lib/config/tests/Makefile
  763. src/lib/config/tests/testdata/Makefile
  764. src/lib/cryptolink/Makefile
  765. src/lib/cryptolink/tests/Makefile
  766. src/lib/dns/Makefile
  767. src/lib/dns/tests/Makefile
  768. src/lib/dns/tests/testdata/Makefile
  769. src/lib/dns/python/Makefile
  770. src/lib/dns/python/tests/Makefile
  771. src/lib/dns/benchmarks/Makefile
  772. src/lib/exceptions/Makefile
  773. src/lib/exceptions/tests/Makefile
  774. src/lib/datasrc/Makefile
  775. src/lib/datasrc/tests/Makefile
  776. src/lib/xfr/Makefile
  777. src/lib/log/Makefile
  778. src/lib/log/compiler/Makefile
  779. src/lib/log/tests/Makefile
  780. src/lib/resolve/Makefile
  781. src/lib/resolve/tests/Makefile
  782. src/lib/testutils/Makefile
  783. src/lib/testutils/testdata/Makefile
  784. src/lib/nsas/Makefile
  785. src/lib/nsas/tests/Makefile
  786. src/lib/cache/Makefile
  787. src/lib/cache/tests/Makefile
  788. src/lib/server_common/Makefile
  789. src/lib/server_common/tests/Makefile
  790. src/lib/util/Makefile
  791. src/lib/util/io/Makefile
  792. src/lib/util/unittests/Makefile
  793. src/lib/util/pyunittests/Makefile
  794. src/lib/util/tests/Makefile
  795. src/lib/acl/Makefile
  796. src/lib/acl/tests/Makefile
  797. tests/Makefile
  798. tests/system/Makefile
  799. tests/tools/Makefile
  800. tests/tools/badpacket/Makefile
  801. tests/tools/badpacket/tests/Makefile
  802. ])
  803. AC_OUTPUT([doc/version.ent
  804. src/bin/cfgmgr/b10-cfgmgr.py
  805. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  806. src/bin/cmdctl/cmdctl.py
  807. src/bin/cmdctl/run_b10-cmdctl.sh
  808. src/bin/cmdctl/tests/cmdctl_test
  809. src/bin/cmdctl/cmdctl.spec.pre
  810. src/bin/xfrin/tests/xfrin_test
  811. src/bin/xfrin/xfrin.py
  812. src/bin/xfrin/run_b10-xfrin.sh
  813. src/bin/xfrout/xfrout.py
  814. src/bin/xfrout/xfrout.spec.pre
  815. src/bin/xfrout/tests/xfrout_test
  816. src/bin/xfrout/tests/xfrout_test.py
  817. src/bin/xfrout/run_b10-xfrout.sh
  818. src/bin/resolver/resolver.spec.pre
  819. src/bin/resolver/spec_config.h.pre
  820. src/bin/zonemgr/zonemgr.py
  821. src/bin/zonemgr/zonemgr.spec.pre
  822. src/bin/zonemgr/tests/zonemgr_test
  823. src/bin/zonemgr/run_b10-zonemgr.sh
  824. src/bin/stats/stats.py
  825. src/bin/stats/stats_httpd.py
  826. src/bin/bind10/bind10.py
  827. src/bin/bind10/run_bind10.sh
  828. src/bin/bind10/tests/bind10_test.py
  829. src/bin/bindctl/run_bindctl.sh
  830. src/bin/bindctl/bindctl_main.py
  831. src/bin/bindctl/tests/bindctl_test
  832. src/bin/loadzone/run_loadzone.sh
  833. src/bin/loadzone/tests/correct/correct_test.sh
  834. src/bin/loadzone/tests/error/error_test.sh
  835. src/bin/loadzone/b10-loadzone.py
  836. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  837. src/bin/usermgr/b10-cmdctl-usermgr.py
  838. src/bin/msgq/msgq.py
  839. src/bin/msgq/tests/msgq_test
  840. src/bin/msgq/run_msgq.sh
  841. src/bin/auth/auth.spec.pre
  842. src/bin/auth/spec_config.h.pre
  843. src/bin/dhcp6/spec_config.h.pre
  844. src/bin/tests/process_rename_test.py
  845. src/lib/config/tests/data_def_unittests_config.h
  846. src/lib/python/isc/config/tests/config_test
  847. src/lib/python/isc/cc/tests/cc_test
  848. src/lib/python/isc/notify/tests/notify_out_test
  849. src/lib/python/isc/log/tests/log_console.py
  850. src/lib/dns/gen-rdatacode.py
  851. src/lib/python/bind10_config.py
  852. src/lib/dns/tests/testdata/gen-wiredata.py
  853. src/lib/cc/session_config.h.pre
  854. src/lib/cc/tests/session_unittests_config.h
  855. src/lib/log/tests/console_test.sh
  856. src/lib/log/tests/destination_test.sh
  857. src/lib/log/tests/init_logger_test.sh
  858. src/lib/log/tests/local_file_test.sh
  859. src/lib/log/tests/severity_test.sh
  860. src/lib/log/tests/tempdir.h
  861. src/lib/util/python/mkpywrapper.py
  862. src/lib/server_common/tests/data_path.h
  863. tests/system/conf.sh
  864. tests/system/glue/setup.sh
  865. tests/system/glue/nsx1/b10-config.db
  866. tests/system/bindctl/nsx1/b10-config.db.template
  867. ], [
  868. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  869. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  870. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  871. chmod +x src/bin/zonemgr/run_b10-zonemgr.sh
  872. chmod +x src/bin/bind10/run_bind10.sh
  873. chmod +x src/bin/cmdctl/tests/cmdctl_test
  874. chmod +x src/bin/xfrin/tests/xfrin_test
  875. chmod +x src/bin/xfrout/tests/xfrout_test
  876. chmod +x src/bin/zonemgr/tests/zonemgr_test
  877. chmod +x src/bin/bindctl/tests/bindctl_test
  878. chmod +x src/bin/bindctl/run_bindctl.sh
  879. chmod +x src/bin/loadzone/run_loadzone.sh
  880. chmod +x src/bin/loadzone/tests/correct/correct_test.sh
  881. chmod +x src/bin/loadzone/tests/error/error_test.sh
  882. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  883. chmod +x src/bin/msgq/run_msgq.sh
  884. chmod +x src/bin/msgq/tests/msgq_test
  885. chmod +x src/lib/dns/gen-rdatacode.py
  886. chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
  887. chmod +x src/lib/log/tests/console_test.sh
  888. chmod +x src/lib/log/tests/destination_test.sh
  889. chmod +x src/lib/log/tests/init_logger_test.sh
  890. chmod +x src/lib/log/tests/local_file_test.sh
  891. chmod +x src/lib/log/tests/severity_test.sh
  892. chmod +x src/lib/util/python/mkpywrapper.py
  893. chmod +x src/lib/python/isc/log/tests/log_console.py
  894. chmod +x tests/system/conf.sh
  895. ])
  896. AC_OUTPUT
  897. dnl Print the results
  898. dnl
  899. cat > config.report << END
  900. BIND 10 source configure results:
  901. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  902. Package:
  903. Name: $PACKAGE_NAME
  904. Version: $PACKAGE_VERSION
  905. C++ Compiler: $CXX
  906. Flags:
  907. DEFS: $DEFS
  908. CPPFLAGS: $CPPFLAGS
  909. CXXFLAGS: $CXXFLAGS
  910. LDFLAGS: $LDFLAGS
  911. B10_CXXFLAGS: $B10_CXXFLAGS
  912. dnl includes too
  913. Python: ${PYTHON_INCLUDES}
  914. ${PYTHON_CXXFLAGS}
  915. ${PYTHON_LDFLAGS}
  916. ${PYTHON_LIB}
  917. Boost: ${BOOST_INCLUDES}
  918. Botan: ${BOTAN_INCLUDES}
  919. ${BOTAN_LDFLAGS}
  920. Log4cplus: ${LOG4CPLUS_INCLUDES}
  921. ${LOG4CPLUS_LDFLAGS}
  922. SQLite: $SQLITE_CFLAGS
  923. $SQLITE_LIBS
  924. Features:
  925. $enable_features
  926. Developer:
  927. Google Tests: $gtest_path
  928. C++ Code Coverage: $USE_LCOV
  929. Python Code Coverage: $USE_PYCOVERAGE
  930. Generate Manuals: $enable_man
  931. END
  932. cat config.report
  933. cat <<EOF
  934. Now you can type "make" to build BIND 10
  935. EOF