configure.ac 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.61])
  4. AC_INIT(bind, 10.0.0, bind10-bugs@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_CC
  11. AC_PROG_RANLIB
  12. # Checks for libraries.
  13. # Checks for header files.
  14. # Checks for typedefs, structures, and compiler characteristics.
  15. AC_HEADER_STDBOOL
  16. AC_TYPE_SIZE_T
  17. #
  18. # Check availablity of gtest, which might be used for unit tests.
  19. #
  20. AC_ARG_WITH(gtest,
  21. [ --with-gtest=PATH specify a path to Gtest header files (PATH/include) and library (PATH/lib)],
  22. gtest_path="$withval", gtest_path="no")
  23. if test "$gtest_path" != "no"
  24. then
  25. GTEST_INCLUDES="-I${gtest_path}/include"
  26. GTEST_LDFLAGS="-L${gtest_path}/lib"
  27. GTEST_LDADD="-lgtest"
  28. else
  29. GTEST_INCLUDES=
  30. GTEST_LDFLAGS=
  31. GTEST_LDADD=
  32. fi
  33. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  34. AC_SUBST(GTEST_INCLUDES)
  35. AC_SUBST(GTEST_LDFLAGS)
  36. AC_SUBST(GTEST_LDADD)
  37. # Checks for library functions.
  38. AC_CONFIG_FILES([Makefile
  39. src/Makefile
  40. src/bin/Makefile
  41. src/bin/host/Makefile
  42. src/bin/parkinglot/Makefile
  43. src/lib/Makefile
  44. src/lib/dns/Makefile
  45. ])
  46. AC_OUTPUT([src/bin/bind-cfgd/bind-cfgd])
  47. AC_OUTPUT