A PAM module that protects sensitive data and provides a panic function for emergency situations. Authentication through passwords or removable media.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. AC_INIT(
  2. [pam_panic],
  3. [0.3.4],
  4. [https://github.com/pampanic/pam_panic/issues],
  5. [pam_panic])
  6. AC_CONFIG_AUX_DIR([build-aux])
  7. AM_INIT_AUTOMAKE([-Wall subdir-objects])
  8. AC_PREREQ([2.69])
  9. AC_CONFIG_MACRO_DIR([m4])
  10. AC_CONFIG_HEADER([src/config.h])
  11. AC_CANONICAL_HOST
  12. AC_SUBST(PACKAGE)
  13. AC_SUBST(VERSION)
  14. AC_USE_SYSTEM_EXTENSIONS
  15. AC_PROG_LN_S
  16. AC_PROG_MKDIR_P
  17. AC_PROG_CC
  18. CFLAGS+=" -std=gnu11"
  19. AM_PROG_AR
  20. AM_GNU_GETTEXT_VERSION(0.18.3)
  21. AM_GNU_GETTEXT([external])
  22. AC_PATH_PROG([PO4A],po4a)
  23. if test -z "$PO4A" ; then
  24. AC_MSG_ERROR([Please install po4a before building pam_panic.])
  25. fi
  26. AC_DEFINE_UNQUOTED([PO4A], "$PO4A",
  27. [path to po4a])
  28. AC_PATH_PROG([DIALOG],dialog)
  29. if test -z "$DIALOG" ; then
  30. AC_MSG_ERROR([Please install dialog. Needed by pam_panic_config])
  31. fi
  32. AC_PATH_PROG([REBOOT], [reboot])
  33. AC_DEFINE_UNQUOTED([REBOOT], "$REBOOT",
  34. [path to the reboot command])
  35. AC_PATH_PROG([POWEROFF], [poweroff])
  36. AC_DEFINE_UNQUOTED([POWEROFF], "$POWEROFF",
  37. [path to the poweroff command])
  38. AC_PATH_PROG([CRYPTSETUP], [cryptsetup])
  39. AC_DEFINE_UNQUOTED([CRYPTSETUP], "$CRYPTSETUP",
  40. [path to the cryptsetup command])
  41. AC_PATH_PROG([FIND], [find])
  42. AC_DEFINE_UNQUOTED([FIND], "$FIND",
  43. [path to the find command])
  44. AC_ARG_ENABLE(securedir,
  45. AS_HELP_STRING([--enable-securedir=DIR],
  46. [path to location of PAMs @<:@default=LIBDIR/security@:>@]),
  47. SECUREDIR=$enableval, SECUREDIR=$libdir/security)
  48. AC_SUBST(SECUREDIR)
  49. AC_ARG_ENABLE(ppassfile,
  50. AS_HELP_STRING([--enable-ppassfile=FILE],
  51. [path to file to be used for storing passwords @<:@default=/var/lib/pam_panic/auth@:>@]),
  52. PPASSFILE=$enableval, PPASSFILE=/var/lib/pam_panic/auth)
  53. AC_DEFINE_UNQUOTED([PPASSFILE], "$PPASSFILE",
  54. [path to file to be used for storing passwords])
  55. AC_SUBST(PPASSFILE)
  56. LT_INIT([disable-static])
  57. AC_ENABLE_STATIC([no])
  58. AC_ENABLE_SHARED([yes])
  59. AC_CONFIG_FILES([
  60. Makefile
  61. po/Makefile.in
  62. po4a/Makefile
  63. src/pam_panic/Makefile
  64. src/pam_panic/man/Makefile
  65. src/pam_panic_pw/Makefile
  66. src/pam_panic_pw/man/Makefile
  67. src/pam_panic_config/Makefile
  68. src/pam_panic_config/applications/Makefile
  69. src/pam_panic_config/icons/48x48/Makefile
  70. src/pam_panic_config/icons/64x64/Makefile
  71. src/pam_panic_config/icons/scalable/Makefile
  72. test/Makefile
  73. ])
  74. AC_OUTPUT