configure.ac 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-examples, 20120817, 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_LANG([C++])
  11. # Checks for BIND 10 headers and libraries
  12. AX_ISC_BIND10
  13. # We use -R, -rpath etc so the resulting program will be more likekly to
  14. # "just work" by default. Embedding a specific library path is a controversial
  15. # practice, though; if you don't like it you can remove the following setting.
  16. if test "x$BIND10_RPATH" != "x"; then
  17. LDFLAGS="$LDFLAGS $BIND10_RPATH"
  18. fi
  19. # For the example host program, we require some socket API library
  20. # and the BIND 10 DNS library.
  21. # In practice, these are specific to Solaris, but wouldn't do any harm for
  22. # others except for the checking overhead.
  23. AC_SEARCH_LIBS(inet_pton, [nsl])
  24. AC_SEARCH_LIBS(recvfrom, [socket])
  25. if test "x$BIND10_DNS_LIB" = "x"; then
  26. AC_MSG_ERROR([unable to find BIND 10 DNS library needed to build 'host'])
  27. fi
  28. # Checks for typedefs, structures, and compiler characteristics.
  29. AC_HEADER_STDBOOL
  30. AC_CONFIG_FILES([Makefile
  31. host/Makefile])
  32. AC_OUTPUT