configure.ac 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028
  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. # In Solaris, IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT need -Wno-missing-braces
  241. B10_CXXFLAGS="$B10_CXXFLAGS -Wno-missing-braces"
  242. ;;
  243. *)
  244. MULTITHREADING_FLAG=-pthread
  245. ;;
  246. esac
  247. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  248. # the use of anonymous name spaces even if they're closed in a single
  249. # translation unit. For these versions we have to disable -Werror.
  250. CXXFLAGS_SAVED="$CXXFLAGS"
  251. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  252. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  253. AC_TRY_COMPILE([namespace { class Foo {}; }
  254. namespace isc {class Bar {Foo foo_;};} ],,
  255. [AC_MSG_RESULT(no)
  256. werror_ok=1
  257. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  258. [AC_MSG_RESULT(yes)])
  259. CXXFLAGS="$CXXFLAGS_SAVED"
  260. # Python 3.2 has an unused parameter in one of its headers. This
  261. # has been reported, but not fixed as of yet, so we check if we need
  262. # to set -Wno-unused-parameter.
  263. if test $werror_ok = 1; then
  264. CPPFLAGS_SAVED="$CPPFLAGS"
  265. CPPFLAGS=${PYTHON_INCLUDES}
  266. CXXFLAGS_SAVED="$CXXFLAGS"
  267. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  268. AC_MSG_CHECKING([whether we need -Wno-unused-parameter for python])
  269. AC_TRY_COMPILE(
  270. [#include <Python.h>],
  271. [],
  272. [AC_MSG_RESULT(no)],
  273. [
  274. CXXFLAGS="$CXXFLAGS -Wno-unused-parameter"
  275. AC_TRY_COMPILE([#include <Python.h>],
  276. [],
  277. [AC_MSG_RESULT(yes)
  278. PYTHON_CXXFLAGS="${PYTHON_CXXFLAGS} -Wno-unused-parameter"
  279. AC_SUBST(PYTHON_CXXFLAGS)
  280. ],
  281. [AC_MSG_ERROR([Can't compile against Python.h])]
  282. )
  283. ]
  284. )
  285. CXXFLAGS="$CXXFLAGS_SAVED"
  286. CPPFLAGS="$CPPFLAGS_SAVED"
  287. fi
  288. fi dnl GXX = yes
  289. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  290. # produce PIC unless we disable shared libraries. need this for python bindings.
  291. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  292. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  293. fi
  294. AC_SUBST(B10_CXXFLAGS)
  295. # Checks for libraries.
  296. AC_SEARCH_LIBS(inet_pton, [nsl])
  297. AC_SEARCH_LIBS(recvfrom, [socket])
  298. AC_SEARCH_LIBS(nanosleep, [rt])
  299. # Checks for header files.
  300. # Checks for typedefs, structures, and compiler characteristics.
  301. AC_HEADER_STDBOOL
  302. AC_TYPE_SIZE_T
  303. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  304. AC_TRY_COMPILE([
  305. #include <sys/types.h>
  306. #include <sys/socket.h>],
  307. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  308. [AC_MSG_RESULT(yes)
  309. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  310. AC_MSG_RESULT(no))
  311. AC_ARG_WITH(pycoverage,
  312. [ --with-pycoverage[=PROGRAM] enable python code coverage using the specified coverage], pycoverage="$withval", pycoverage="no")
  313. if test "$pycoverage" = "no" ; then
  314. # just run the tests normally with python
  315. PYCOVERAGE_RUN="${PYTHON}"
  316. USE_PYCOVERAGE="no"
  317. elif test "$pycoverage" = "yes" ; then
  318. PYCOVERAGE="coverage"
  319. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  320. USE_PYCOVERAGE="yes"
  321. else
  322. PYCOVERAGE="$pycoverage"
  323. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  324. USE_PYCOVERAGE="yes"
  325. fi
  326. AM_CONDITIONAL(ENABLE_PYTHON_COVERAGE, test x$USE_PYCOVERAGE != xno)
  327. AC_SUBST(PYCOVERAGE)
  328. AC_SUBST(PYCOVERAGE_RUN)
  329. AC_SUBST(USE_PYCOVERAGE)
  330. AC_ARG_WITH(lcov,
  331. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  332. AC_ARG_WITH(gtest,
  333. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  334. gtest_path="$withval", gtest_path="no")
  335. USE_LCOV="no"
  336. if test "$lcov" != "no"; then
  337. # force gtest if not set
  338. if test "$gtest_path" = "no"; then
  339. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  340. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  341. gtest_path="yes"
  342. fi
  343. if test "$lcov" != "yes"; then
  344. LCOV=$lcov
  345. else
  346. AC_PATH_PROG([LCOV], [lcov])
  347. fi
  348. if test -x "${LCOV}"; then
  349. USE_LCOV="yes"
  350. else
  351. AC_MSG_ERROR([Cannot find lcov.])
  352. fi
  353. # is genhtml always in the same directory?
  354. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  355. if test ! -x $GENHTML; then
  356. AC_MSG_ERROR([genhtml not found, needed for lcov])
  357. fi
  358. # GCC specific?
  359. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  360. LIBS=" $LIBS -lgcov"
  361. AC_SUBST(CPPFLAGS)
  362. AC_SUBST(LIBS)
  363. AC_SUBST(LCOV)
  364. AC_SUBST(GENHTML)
  365. fi
  366. AC_SUBST(USE_LCOV)
  367. # Check for Botan
  368. botan_path="yes"
  369. AC_ARG_WITH([botan],
  370. AC_HELP_STRING([--with-botan=PATH],
  371. [specify exact directory of Botan library]),
  372. [botan_path="$withval"])
  373. if test "${botan_path}" == "no" ; then
  374. AC_MSG_ERROR([Need botan for libcryptolink])
  375. fi
  376. if test "${botan_path}" != "yes" ; then
  377. if test -x "${botan_path}/bin/botan-config" ; then
  378. BOTAN_CONFIG="${botan_path}/bin/botan-config"
  379. else
  380. AC_MSG_ERROR([${botan_path}/bin/botan-config not found])
  381. fi
  382. else
  383. AC_PATH_PROG([BOTAN_CONFIG], [botan-config])
  384. fi
  385. if test -x "${BOTAN_CONFIG}" ; then
  386. BOTAN_LDFLAGS=`${BOTAN_CONFIG} --libs`
  387. # We expect botan-config --libs to contain -L<path_to_libbotan>, but
  388. # this is not always the case. As a heuristics workaround we add
  389. # -L`botan-config --prefix/lib` in this case. Same for BOTAN_INCLUDES
  390. # (but using include instead of lib) below.
  391. echo ${BOTAN_LDFLAGS} | grep -- -L > /dev/null || \
  392. BOTAN_LDFLAGS="-L`${BOTAN_CONFIG} --prefix`/lib ${BOTAN_LDFLAGS}"
  393. BOTAN_INCLUDES=`${BOTAN_CONFIG} --cflags`
  394. echo ${BOTAN_INCLUDES} | grep -- -I > /dev/null || \
  395. BOTAN_INCLUDES="-I`${BOTAN_CONFIG} --prefix`/include ${BOTAN_INCLUDES}"
  396. # See python_rpath for some info on why we do this
  397. if test $rpath_available = yes; then
  398. BOTAN_RPATH=
  399. for flag in ${BOTAN_LDFLAGS}; do
  400. BOTAN_RPATH="${BOTAN_RPATH} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  401. done
  402. AC_SUBST(BOTAN_RPATH)
  403. # According to the libtool manual, it should be sufficient if we
  404. # specify the "-R libdir" in our wrapper library of botan (no other
  405. # programs will need libbotan directly); "libdir" should be added to
  406. # the program's binary image. But we've seen in our build environments
  407. # that (some versions of?) libtool doesn't propagate -R as documented,
  408. # and it caused a linker error at run time. To work around this, we
  409. # also add the rpath to the global LDFLAGS.
  410. LDFLAGS="$BOTAN_RPATH $LDFLAGS"
  411. fi
  412. AC_SUBST(BOTAN_LDFLAGS)
  413. AC_SUBST(BOTAN_INCLUDES)
  414. fi
  415. CPPFLAGS_SAVED=$CPPFLAGS
  416. CPPFLAGS="$BOTAN_INCLUDES $CPPFLAGS"
  417. LDFLAGS_SAVED="$LDFLAGS"
  418. LDFLAGS="$BOTAN_LDFLAGS $LDFLAGS"
  419. AC_CHECK_HEADERS([botan/botan.h],,AC_MSG_ERROR([Missing required header files.]))
  420. AC_LINK_IFELSE(
  421. [AC_LANG_PROGRAM([#include <botan/botan.h>
  422. #include <botan/hash.h>
  423. ],
  424. [using namespace Botan;
  425. LibraryInitializer::initialize();
  426. HashFunction *h = get_hash("MD5");
  427. ])],
  428. [AC_MSG_RESULT([checking for Botan library... yes])],
  429. [AC_MSG_RESULT([checking for Botan library... no])
  430. AC_MSG_ERROR([Needs Botan library 1.8 or higher])]
  431. )
  432. CPPFLAGS=$CPPFLAGS_SAVED
  433. LDFLAGS=$LDFLAGS_SAVED
  434. # Check for log4cplus
  435. log4cplus_path="yes"
  436. AC_ARG_WITH([log4cplus],
  437. AC_HELP_STRING([--with-log4cplus=PATH],
  438. [specify exact directory of log4cplus library and headers]),
  439. [log4cplus_path="$withval"])
  440. if test "${log4cplus_path}" == "no" ; then
  441. AC_MSG_ERROR([Need log4cplus])
  442. elif test "${log4cplus_path}" != "yes" ; then
  443. LOG4CPLUS_INCLUDES="-I${log4cplus_path}/include"
  444. LOG4CPLUS_LDFLAGS="-L${log4cplus_path}/lib"
  445. else
  446. # If not specified, try some common paths.
  447. log4cplusdirs="/usr/local /usr/pkg /opt /opt/local"
  448. for d in $log4cplusdirs
  449. do
  450. if test -f $d/include/log4cplus/logger.h; then
  451. LOG4CPLUS_INCLUDES="-I$d/include"
  452. LOG4CPLUS_LDFLAGS="-L$d/lib"
  453. break
  454. fi
  455. done
  456. fi
  457. LOG4CPLUS_LDFLAGS="$LOG4CPLUS_LDFLAGS -llog4cplus $MULTITHREADING_FLAG"
  458. AC_SUBST(LOG4CPLUS_LDFLAGS)
  459. AC_SUBST(LOG4CPLUS_INCLUDES)
  460. CPPFLAGS_SAVED=$CPPFLAGS
  461. CPPFLAGS="$LOG4CPLUS_INCLUDES $CPPFLAGS"
  462. LDFLAGS_SAVED="$LDFLAGS"
  463. LDFLAGS="$LOG4CPLUS_LDFLAGS $LDFLAGS"
  464. AC_CHECK_HEADERS([log4cplus/logger.h],,AC_MSG_ERROR([Missing required header files.]))
  465. AC_LINK_IFELSE(
  466. [AC_LANG_PROGRAM([#include <log4cplus/logger.h>
  467. ],
  468. [using namespace log4cplus;
  469. Logger logger = Logger::getInstance("main");
  470. ])],
  471. [AC_MSG_RESULT([checking for log4cplus library... yes])],
  472. [AC_MSG_RESULT([checking for log4cplus library... no])
  473. AC_MSG_ERROR([Needs log4cplus library])]
  474. )
  475. CPPFLAGS=$CPPFLAGS_SAVED
  476. LDFLAGS=$LDFLAGS_SAVED
  477. #
  478. # Configure Boost header path
  479. #
  480. # If explicitly specified, use it.
  481. AC_ARG_WITH([boost-include],
  482. AC_HELP_STRING([--with-boost-include=PATH],
  483. [specify exact directory for Boost headers]),
  484. [boost_include_path="$withval"])
  485. # If not specified, try some common paths.
  486. if test -z "$with_boost_include"; then
  487. boostdirs="/usr/local /usr/pkg /opt /opt/local"
  488. for d in $boostdirs
  489. do
  490. if test -f $d/include/boost/shared_ptr.hpp; then
  491. boost_include_path=$d/include
  492. break
  493. fi
  494. done
  495. fi
  496. CPPFLAGS_SAVES="$CPPFLAGS"
  497. if test "${boost_include_path}" ; then
  498. BOOST_INCLUDES="-I${boost_include_path}"
  499. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  500. fi
  501. 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],,
  502. AC_MSG_ERROR([Missing required header files.]))
  503. CPPFLAGS="$CPPFLAGS_SAVES"
  504. AC_SUBST(BOOST_INCLUDES)
  505. if test "${use_boost_threads}" = "yes" ; then
  506. AC_DEFINE([USE_BOOST_THREADS], [], [Use boost threads])
  507. # Using boost::mutex can result in requiring libboost_thread with older
  508. # versions of Boost. We'd like to avoid relying on a compiled Boost library
  509. # whenever possible, so we need to check for it step by step.
  510. #
  511. # NOTE: another fix of this problem is to simply require newer versions of
  512. # boost. If we choose that solution we should simplify the following tricky
  513. # checks accordingly and all Makefile.am's that refer to NEED_LIBBOOST_THREAD.
  514. AC_MSG_CHECKING(for boost::mutex)
  515. CPPFLAGS_SAVES="$CPPFLAGS"
  516. LIBS_SAVES="$LIBS"
  517. CPPFLAGS="$BOOST_INCLUDES $CPPFLAGS $MULTITHREADING_FLAG"
  518. need_libboost_thread=0
  519. need_sunpro_workaround=0
  520. AC_TRY_LINK([
  521. #include <boost/thread.hpp>
  522. ],[
  523. boost::mutex m;
  524. ],
  525. [ AC_MSG_RESULT(yes (without libboost_thread)) ],
  526. # there is one specific problem with SunStudio 5.10
  527. # where including boost/thread causes a compilation failure
  528. # There is a workaround in boost but it checks the version not being 5.10
  529. # This will probably be fixed in the future, in which case this
  530. # is only a temporary workaround
  531. [ AC_TRY_LINK([
  532. #if defined(__SUNPRO_CC) && __SUNPRO_CC == 0x5100
  533. #undef __SUNPRO_CC
  534. #define __SUNPRO_CC 0x5090
  535. #endif
  536. #include <boost/thread.hpp>
  537. ],[
  538. boost::mutex m;
  539. ],
  540. [ AC_MSG_RESULT(yes (with SUNOS workaround))
  541. need_sunpro_workaround=1 ],
  542. [ LIBS=" $LIBS -lboost_thread"
  543. AC_TRY_LINK([
  544. #include <boost/thread.hpp>
  545. ],[
  546. boost::mutex m;
  547. ],
  548. [ AC_MSG_RESULT(yes (with libboost_thread))
  549. need_libboost_thread=1 ],
  550. [ AC_MSG_RESULT(no)
  551. AC_MSG_ERROR([boost::mutex cannot be linked in this build environment.
  552. Perhaps you are using an older version of Boost that requires libboost_thread for the mutex support, which does not appear to be available.
  553. You may want to check the availability of the library or to upgrade Boost.])
  554. ])])])
  555. CPPFLAGS="$CPPFLAGS_SAVES"
  556. LIBS="$LIBS_SAVES"
  557. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test $need_libboost_thread = 1)
  558. if test $need_sunpro_workaround = 1; then
  559. AC_DEFINE([NEED_SUNPRO_WORKAROUND], [], [Need boost sunstudio workaround])
  560. fi
  561. else
  562. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test "${use_boost_threads}" = "yes")
  563. fi
  564. #
  565. # Check availability of gtest, which will be used for unit tests.
  566. #
  567. if test "$gtest_path" != "no"
  568. then
  569. if test "$gtest_path" != "yes"; then
  570. GTEST_PATHS=$gtest_path
  571. if test -x "${gtest_path}/bin/gtest-config" ; then
  572. GTEST_CONFIG="${gtest_path}/bin/gtest-config"
  573. fi
  574. else
  575. AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
  576. fi
  577. if test -x "${GTEST_CONFIG}" ; then :
  578. # using cppflags instead of cxxflags
  579. GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
  580. GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
  581. GTEST_LDADD=`${GTEST_CONFIG} --libs`
  582. GTEST_FOUND="true"
  583. else
  584. AC_MSG_WARN([Unable to locate Google Test gtest-config.])
  585. if test -z "${GTEST_PATHS}" ; then
  586. GTEST_PATHS="/usr /usr/local"
  587. fi
  588. GTEST_FOUND="false"
  589. fi
  590. if test "${GTEST_FOUND}" != "true"; then
  591. GTEST_FOUND="false"
  592. for dir in $GTEST_PATHS; do
  593. if test -f "$dir/include/gtest/gtest.h"; then
  594. GTEST_INCLUDES="-I$dir/include"
  595. GTEST_LDFLAGS="-L$dir/lib"
  596. GTEST_LDADD="-lgtest"
  597. GTEST_FOUND="true"
  598. break
  599. fi
  600. done
  601. fi
  602. if test "${GTEST_FOUND}" != "true"; then
  603. AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
  604. fi
  605. else
  606. GTEST_INCLUDES=
  607. GTEST_LDFLAGS=
  608. GTEST_LDADD=
  609. fi
  610. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  611. AC_SUBST(GTEST_INCLUDES)
  612. AC_SUBST(GTEST_LDFLAGS)
  613. AC_SUBST(GTEST_LDADD)
  614. dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
  615. AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
  616. if test "x$HAVE_PKG_CONFIG" = "xno" ; then
  617. AC_MSG_ERROR(Please install pkg-config)
  618. fi
  619. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
  620. # I can't get some of the #include <asio.hpp> right without this
  621. # TODO: find the real cause of asio/boost wanting pthreads
  622. # (this currently only occurs for src/lib/cc/session_unittests)
  623. PTHREAD_LDFLAGS=
  624. AC_CHECK_LIB(pthread, pthread_create,[ PTHREAD_LDFLAGS=-lpthread ], [])
  625. AC_SUBST(PTHREAD_LDFLAGS)
  626. AC_SUBST(MULTITHREADING_FLAG)
  627. #
  628. # ASIO: we extensively use it as the C++ event management module.
  629. #
  630. # Use local ASIO headers from ext
  631. #
  632. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/asio"
  633. #
  634. # Use our 'coroutine' header from ext
  635. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/coroutine"
  636. #
  637. # Disable threads: Currently we don't use them.
  638. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
  639. #
  640. # kqueue portability: ASIO uses kqueue by default if it's available (it's
  641. # generally available in BSD variants). Unfortunately, some public
  642. # implementation of kqueue forces a conversion from a pointer to an integer,
  643. # which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast
  644. # (and ASIO doesn't use it anyway) is used. This will cause build error for
  645. # some of our C++ files including ASIO header files. The following check
  646. # detects such cases and tells ASIO not to use kqueue if so.
  647. AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no)
  648. if test "X$ac_cv_have_kqueue" = "Xyes"; then
  649. AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++])
  650. AC_TRY_COMPILE([
  651. #include <sys/types.h>
  652. #include <sys/param.h>
  653. #include <sys/event.h>],
  654. [char* udata;
  655. EV_SET(NULL, 0, 0, 0, 0, 0, udata);],
  656. [AC_MSG_RESULT(yes)],
  657. [AC_MSG_RESULT([no, disable kqueue for ASIO])
  658. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1"
  659. ])
  660. fi
  661. # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
  662. # the case with Solaris). Unfortunately its /dev/poll specific code would
  663. # trigger the gcc's "missing-field-initializers" warning, which would
  664. # subsequently make the build fail with -Werror. Further, older versions of
  665. # gcc don't provide an option to selectively suppress this warning.
  666. # So, for the moment, we simply disable the use of /dev/poll. Unless we
  667. # implement recursive DNS server with randomized ports, we don't need the
  668. # scalability that /dev/poll can provide, so this decision wouldn't affect
  669. # run time performance. Hopefully we can find a better solution or the ASIO
  670. # code will be updated by the time we really need it.
  671. AC_CHECK_HEADERS(sys/devpoll.h, ac_cv_have_devpoll=yes, ac_cv_have_devpoll=no)
  672. if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then
  673. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1"
  674. fi
  675. #
  676. # Perl is optional; it is used only by some of the system test scripts.
  677. #
  678. AC_PATH_PROGS(PERL, perl5 perl)
  679. AC_SUBST(PERL)
  680. AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
  681. [regenerate man pages [default=no]])], enable_man=yes, enable_man=no)
  682. AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
  683. AC_ARG_ENABLE(install-configurations,
  684. [AC_HELP_STRING([--disable-install-configurations],
  685. [do not install configuration])], install_configurations=$enableval, install_configurations=yes)
  686. AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
  687. AC_CONFIG_FILES([Makefile
  688. doc/Makefile
  689. doc/guide/Makefile
  690. src/Makefile
  691. src/bin/Makefile
  692. src/bin/bind10/Makefile
  693. src/bin/bind10/tests/Makefile
  694. src/bin/cmdctl/Makefile
  695. src/bin/cmdctl/tests/Makefile
  696. src/bin/bindctl/Makefile
  697. src/bin/bindctl/tests/Makefile
  698. src/bin/cfgmgr/Makefile
  699. src/bin/cfgmgr/plugins/Makefile
  700. src/bin/cfgmgr/plugins/tests/Makefile
  701. src/bin/cfgmgr/tests/Makefile
  702. src/bin/host/Makefile
  703. src/bin/loadzone/Makefile
  704. src/bin/loadzone/tests/correct/Makefile
  705. src/bin/loadzone/tests/error/Makefile
  706. src/bin/msgq/Makefile
  707. src/bin/msgq/tests/Makefile
  708. src/bin/auth/Makefile
  709. src/bin/auth/tests/Makefile
  710. src/bin/auth/benchmarks/Makefile
  711. src/bin/dhcp6/Makefile
  712. src/bin/dhcp6/tests/Makefile
  713. src/bin/resolver/Makefile
  714. src/bin/resolver/tests/Makefile
  715. src/bin/sockcreator/Makefile
  716. src/bin/sockcreator/tests/Makefile
  717. src/bin/xfrin/Makefile
  718. src/bin/xfrin/tests/Makefile
  719. src/bin/xfrout/Makefile
  720. src/bin/xfrout/tests/Makefile
  721. src/bin/zonemgr/Makefile
  722. src/bin/zonemgr/tests/Makefile
  723. src/bin/stats/Makefile
  724. src/bin/stats/tests/Makefile
  725. src/bin/stats/tests/isc/Makefile
  726. src/bin/stats/tests/isc/cc/Makefile
  727. src/bin/stats/tests/isc/config/Makefile
  728. src/bin/stats/tests/isc/util/Makefile
  729. src/bin/stats/tests/isc/log/Makefile
  730. src/bin/stats/tests/testdata/Makefile
  731. src/bin/stats/tests/http/Makefile
  732. src/bin/usermgr/Makefile
  733. src/bin/tests/Makefile
  734. src/lib/Makefile
  735. src/lib/asiolink/Makefile
  736. src/lib/asiolink/tests/Makefile
  737. src/lib/asiodns/Makefile
  738. src/lib/asiodns/tests/Makefile
  739. src/lib/bench/Makefile
  740. src/lib/bench/example/Makefile
  741. src/lib/bench/tests/Makefile
  742. src/lib/cc/Makefile
  743. src/lib/cc/tests/Makefile
  744. src/lib/python/Makefile
  745. src/lib/python/isc/Makefile
  746. src/lib/python/isc/acl/Makefile
  747. src/lib/python/isc/acl/tests/Makefile
  748. src/lib/python/isc/util/Makefile
  749. src/lib/python/isc/util/tests/Makefile
  750. src/lib/python/isc/datasrc/Makefile
  751. src/lib/python/isc/datasrc/tests/Makefile
  752. src/lib/python/isc/cc/Makefile
  753. src/lib/python/isc/cc/tests/Makefile
  754. src/lib/python/isc/config/Makefile
  755. src/lib/python/isc/config/tests/Makefile
  756. src/lib/python/isc/log/Makefile
  757. src/lib/python/isc/log/tests/Makefile
  758. src/lib/python/isc/net/Makefile
  759. src/lib/python/isc/net/tests/Makefile
  760. src/lib/python/isc/notify/Makefile
  761. src/lib/python/isc/notify/tests/Makefile
  762. src/lib/python/isc/testutils/Makefile
  763. src/lib/config/Makefile
  764. src/lib/config/tests/Makefile
  765. src/lib/config/tests/testdata/Makefile
  766. src/lib/cryptolink/Makefile
  767. src/lib/cryptolink/tests/Makefile
  768. src/lib/dns/Makefile
  769. src/lib/dns/tests/Makefile
  770. src/lib/dns/tests/testdata/Makefile
  771. src/lib/dns/python/Makefile
  772. src/lib/dns/python/tests/Makefile
  773. src/lib/dns/benchmarks/Makefile
  774. src/lib/exceptions/Makefile
  775. src/lib/exceptions/tests/Makefile
  776. src/lib/datasrc/Makefile
  777. src/lib/datasrc/tests/Makefile
  778. src/lib/xfr/Makefile
  779. src/lib/log/Makefile
  780. src/lib/log/compiler/Makefile
  781. src/lib/log/tests/Makefile
  782. src/lib/resolve/Makefile
  783. src/lib/resolve/tests/Makefile
  784. src/lib/testutils/Makefile
  785. src/lib/testutils/testdata/Makefile
  786. src/lib/nsas/Makefile
  787. src/lib/nsas/tests/Makefile
  788. src/lib/cache/Makefile
  789. src/lib/cache/tests/Makefile
  790. src/lib/server_common/Makefile
  791. src/lib/server_common/tests/Makefile
  792. src/lib/util/Makefile
  793. src/lib/util/io/Makefile
  794. src/lib/util/unittests/Makefile
  795. src/lib/util/pyunittests/Makefile
  796. src/lib/util/tests/Makefile
  797. src/lib/acl/Makefile
  798. src/lib/acl/tests/Makefile
  799. tests/Makefile
  800. tests/system/Makefile
  801. tests/tools/Makefile
  802. tests/tools/badpacket/Makefile
  803. tests/tools/badpacket/tests/Makefile
  804. ])
  805. AC_OUTPUT([doc/version.ent
  806. src/bin/cfgmgr/b10-cfgmgr.py
  807. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  808. src/bin/cmdctl/cmdctl.py
  809. src/bin/cmdctl/run_b10-cmdctl.sh
  810. src/bin/cmdctl/tests/cmdctl_test
  811. src/bin/cmdctl/cmdctl.spec.pre
  812. src/bin/xfrin/tests/xfrin_test
  813. src/bin/xfrin/xfrin.py
  814. src/bin/xfrin/run_b10-xfrin.sh
  815. src/bin/xfrout/xfrout.py
  816. src/bin/xfrout/xfrout.spec.pre
  817. src/bin/xfrout/tests/xfrout_test
  818. src/bin/xfrout/tests/xfrout_test.py
  819. src/bin/xfrout/run_b10-xfrout.sh
  820. src/bin/resolver/resolver.spec.pre
  821. src/bin/resolver/spec_config.h.pre
  822. src/bin/zonemgr/zonemgr.py
  823. src/bin/zonemgr/zonemgr.spec.pre
  824. src/bin/zonemgr/tests/zonemgr_test
  825. src/bin/zonemgr/run_b10-zonemgr.sh
  826. src/bin/stats/stats.py
  827. src/bin/stats/stats_httpd.py
  828. src/bin/bind10/bind10.py
  829. src/bin/bind10/run_bind10.sh
  830. src/bin/bind10/tests/bind10_test.py
  831. src/bin/bindctl/run_bindctl.sh
  832. src/bin/bindctl/bindctl_main.py
  833. src/bin/bindctl/tests/bindctl_test
  834. src/bin/loadzone/run_loadzone.sh
  835. src/bin/loadzone/tests/correct/correct_test.sh
  836. src/bin/loadzone/tests/error/error_test.sh
  837. src/bin/loadzone/b10-loadzone.py
  838. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  839. src/bin/usermgr/b10-cmdctl-usermgr.py
  840. src/bin/msgq/msgq.py
  841. src/bin/msgq/tests/msgq_test
  842. src/bin/msgq/run_msgq.sh
  843. src/bin/auth/auth.spec.pre
  844. src/bin/auth/spec_config.h.pre
  845. src/bin/dhcp6/spec_config.h.pre
  846. src/bin/tests/process_rename_test.py
  847. src/lib/config/tests/data_def_unittests_config.h
  848. src/lib/python/isc/config/tests/config_test
  849. src/lib/python/isc/cc/tests/cc_test
  850. src/lib/python/isc/notify/tests/notify_out_test
  851. src/lib/python/isc/log/tests/log_console.py
  852. src/lib/dns/gen-rdatacode.py
  853. src/lib/python/bind10_config.py
  854. src/lib/dns/tests/testdata/gen-wiredata.py
  855. src/lib/cc/session_config.h.pre
  856. src/lib/cc/tests/session_unittests_config.h
  857. src/lib/log/tests/console_test.sh
  858. src/lib/log/tests/destination_test.sh
  859. src/lib/log/tests/init_logger_test.sh
  860. src/lib/log/tests/local_file_test.sh
  861. src/lib/log/tests/severity_test.sh
  862. src/lib/log/tests/tempdir.h
  863. src/lib/util/python/mkpywrapper.py
  864. src/lib/server_common/tests/data_path.h
  865. tests/system/conf.sh
  866. tests/system/glue/setup.sh
  867. tests/system/glue/nsx1/b10-config.db
  868. tests/system/bindctl/nsx1/b10-config.db.template
  869. ], [
  870. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  871. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  872. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  873. chmod +x src/bin/zonemgr/run_b10-zonemgr.sh
  874. chmod +x src/bin/bind10/run_bind10.sh
  875. chmod +x src/bin/cmdctl/tests/cmdctl_test
  876. chmod +x src/bin/xfrin/tests/xfrin_test
  877. chmod +x src/bin/xfrout/tests/xfrout_test
  878. chmod +x src/bin/zonemgr/tests/zonemgr_test
  879. chmod +x src/bin/bindctl/tests/bindctl_test
  880. chmod +x src/bin/bindctl/run_bindctl.sh
  881. chmod +x src/bin/loadzone/run_loadzone.sh
  882. chmod +x src/bin/loadzone/tests/correct/correct_test.sh
  883. chmod +x src/bin/loadzone/tests/error/error_test.sh
  884. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  885. chmod +x src/bin/msgq/run_msgq.sh
  886. chmod +x src/bin/msgq/tests/msgq_test
  887. chmod +x src/lib/dns/gen-rdatacode.py
  888. chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
  889. chmod +x src/lib/log/tests/console_test.sh
  890. chmod +x src/lib/log/tests/destination_test.sh
  891. chmod +x src/lib/log/tests/init_logger_test.sh
  892. chmod +x src/lib/log/tests/local_file_test.sh
  893. chmod +x src/lib/log/tests/severity_test.sh
  894. chmod +x src/lib/util/python/mkpywrapper.py
  895. chmod +x src/lib/python/isc/log/tests/log_console.py
  896. chmod +x tests/system/conf.sh
  897. ])
  898. AC_OUTPUT
  899. dnl Print the results
  900. dnl
  901. cat > config.report << END
  902. BIND 10 source configure results:
  903. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  904. Package:
  905. Name: $PACKAGE_NAME
  906. Version: $PACKAGE_VERSION
  907. C++ Compiler: $CXX
  908. Flags:
  909. DEFS: $DEFS
  910. CPPFLAGS: $CPPFLAGS
  911. CXXFLAGS: $CXXFLAGS
  912. LDFLAGS: $LDFLAGS
  913. B10_CXXFLAGS: $B10_CXXFLAGS
  914. dnl includes too
  915. Python: ${PYTHON_INCLUDES}
  916. ${PYTHON_CXXFLAGS}
  917. ${PYTHON_LDFLAGS}
  918. ${PYTHON_LIB}
  919. Boost: ${BOOST_INCLUDES}
  920. Botan: ${BOTAN_INCLUDES}
  921. ${BOTAN_LDFLAGS}
  922. Log4cplus: ${LOG4CPLUS_INCLUDES}
  923. ${LOG4CPLUS_LDFLAGS}
  924. SQLite: $SQLITE_CFLAGS
  925. $SQLITE_LIBS
  926. Features:
  927. $enable_features
  928. Developer:
  929. Google Tests: $gtest_path
  930. C++ Code Coverage: $USE_LCOV
  931. Python Code Coverage: $USE_PYCOVERAGE
  932. Generate Manuals: $enable_man
  933. END
  934. cat config.report
  935. cat <<EOF
  936. Now you can type "make" to build BIND 10
  937. EOF