ADFGVX encryption tool.
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.
 
 
 
 

69 lines
1.9 KiB

  1. dnl Configure template for the adfgvx package
  2. AC_INIT([adfgvx], [0.2.2], [dgouttegattat@incenp.org])
  3. AC_CONFIG_SRCDIR([configure.ac])
  4. AC_CONFIG_AUX_DIR([config])
  5. AC_CONFIG_HEADERS([config.h])
  6. AC_CONFIG_LIBOBJ_DIR([lib])
  7. AC_USE_SYSTEM_EXTENSIONS
  8. AM_INIT_AUTOMAKE([foreign])
  9. dnl Check for development tools (compilers & Co.)
  10. AC_PROG_CC
  11. AC_PROG_RANLIB
  12. AC_PROG_INSTALL
  13. dnl #I18N support
  14. AM_GNU_GETTEXT_VERSION([0.17])
  15. AM_GNU_GETTEXT([external])
  16. dnl Options
  17. AC_ARG_ENABLE([default-keyfile],
  18. [AS_HELP_STRING([--enable-default-keyfile],
  19. [Enable use of a default keyfile @<:@default=yes@:>@])],
  20. [],
  21. [enable_default_keyfile=yes])
  22. if test "x$enable_default_keyfile" = xyes ; then
  23. enable_default_keyfile=default.key
  24. fi
  25. if test "x$enable_default_keyfile" != xno ; then
  26. AC_DEFINE_UNQUOTED([DEFAULT_KEYFILE], ["$enable_default_keyfile"],
  27. [Default key filename.])
  28. fi
  29. dnl Check for BSD-style error reporting functions
  30. AC_CHECK_HEADERS([err.h], [], [AC_CONFIG_LINKS([err.h:lib/err.compat.h])])
  31. AC_REPLACE_FUNCS([err asprintf])
  32. dnl Check for a mean to store program name
  33. AC_CHECK_DECLS([program_invocation_short_name], [],
  34. [AC_CHECK_FUNCS([getprogname setprogname], [],
  35. [AC_LIBOBJ([progname])])],
  36. [#include <errno.h>
  37. ])
  38. AH_BOTTOM([#include <compat.h>
  39. ])
  40. dnl Output files
  41. AC_CONFIG_FILES([Makefile adfgvx.1 lib/Makefile src/Makefile
  42. po/Makefile.in])
  43. AC_OUTPUT
  44. dnl Summary
  45. echo "
  46. ${PACKAGE_NAME} version ${PACKAGE_VERSION}
  47. Configuration complete
  48. Prefix: '${prefix}'
  49. Compiler: '${CC} ${CFLAGS} ${CPPFLAGS}'
  50. Default keyfile: '${enable_default_keyfile}'
  51. Now type 'make @<:@<target>@:>@'
  52. where the optional <target> is:
  53. all - build all binaries
  54. install - install everything
  55. -------------------------------------------"