configure.ac 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.64])
  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 CppUnit, which will be used for unit tests.
  19. #
  20. AC_ARG_WITH(cppunit,
  21. [ --with-cppunit=PATH specify a path to CppUnit header files (PATH/include) and library (PATH/lib)],
  22. cppunit_path="$withval", cppunit_path="no")
  23. if test "$cppunit_path" != "no"
  24. then
  25. CPPUNIT_INCLUDES="-I${cppunit_path}/include"
  26. CPPUNIT_LDFLAGS="-L${cppunit_path}/lib"
  27. CPPUNIT_LDADD="-lcppunit"
  28. else
  29. CPPUNIT_INCLUDES=
  30. CPPUNIT_LDFLAGS=
  31. CPPUNIT_LDADD=
  32. fi
  33. AM_CONDITIONAL(HAVE_CPPUNIT, test $cppunit_path != "no")
  34. AC_SUBST(CPPUNIT_INCLUDES)
  35. AC_SUBST(CPPUNIT_LDFLAGS)
  36. AC_SUBST(CPPUNIT_LDADD)
  37. # Checks for library functions.
  38. AC_CONFIG_FILES([Makefile
  39. src/Makefile
  40. src/lib/Makefile
  41. src/lib/dns/Makefile
  42. src/lib/dns/cpp/Makefile])
  43. AC_OUTPUT