configure.ac 581 B

1234567891011121314151617181920212223242526
  1. AC_INIT([conwrap], [1.0], [markus-hennecke@markus-hennecke.de])
  2. AM_INIT_AUTOMAKE([-Wall -Werror foreign])
  3. AC_PROG_CC
  4. AC_PROG_INSTALL
  5. # Checks for libraries.
  6. AC_SEARCH_LIBS([strlcpy], [bsd], [], [
  7. AC_MSG_ERROR([unable to find strlcpy function])
  8. ])
  9. bsdstrl_h_found="no"
  10. AC_CHECK_HEADERS([bsd/string.h], [bsdstrl_h_found="yes"])
  11. AC_CONFIG_HEADERS([config.h])
  12. AC_CONFIG_FILES([
  13. Makefile
  14. src/Makefile
  15. ])
  16. if test x"$bsdstrl_h_found" = x"yes"
  17. then
  18. AC_DEFINE([USE_BSD_H], 1,
  19. [Define to 1 if you need to include <bsd/string.h> to get the `strlcpy()' function.])
  20. fi
  21. AC_OUTPUT