configure.ac 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. AC_PREREQ(2.59)
  2. AC_INIT(luksmeta, 9)
  3. AC_CANONICAL_SYSTEM
  4. AC_PROG_CC_C99
  5. AM_INIT_AUTOMAKE([subdir-objects foreign no-dist-gzip dist-bzip2 parallel-tests])
  6. AM_SILENT_RULES([yes])
  7. AM_PROG_CC_C_O
  8. LT_INIT([disable-static])
  9. PKG_PROG_PKG_CONFIG([0.25])
  10. PKG_CHECK_MODULES([cryptsetup], [libcryptsetup >= 1.5.1])
  11. LUKSMETA_CFLAGS="\
  12. -Wall \
  13. -Wextra \
  14. -Werror \
  15. -Wstrict-aliasing \
  16. -Wchar-subscripts \
  17. -Wformat-security \
  18. -Wmissing-declarations \
  19. -Wmissing-prototypes \
  20. -Wnested-externs \
  21. -Wpointer-arith \
  22. -Wshadow \
  23. -Wsign-compare \
  24. -Wstrict-prototypes \
  25. -Wtype-limits \
  26. -Wunused-function \
  27. -Wno-missing-field-initializers \
  28. -Wno-unused-parameter \
  29. "
  30. AC_SUBST([LUKSMETA_CFLAGS])
  31. AC_CHECK_PROGS(A2X, [a2x])
  32. if test "x$A2X" = "x"; then
  33. AC_MSG_WARN([asciidoc / a2x not found -- man pages will not be generated and installed!])
  34. fi
  35. AM_CONDITIONAL(HAVE_A2X, [test -n "$A2X"])
  36. AC_CONFIG_FILES([luksmeta.pc Makefile])
  37. AC_OUTPUT