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.

44 lines
1.3 KiB

  1. From 5c3643fb701cc380ceb02116526ef4f5885295d0 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <amade@asmblr.net>
  3. Date: Sat, 16 Dec 2017 15:09:57 +0100
  4. Subject: [PATCH] fix: configure option "--disable-use-locale" is not working
  5. Bug: 52663
  6. ---
  7. acconfig.h | 2 +-
  8. configure.ac | 6 +++++-
  9. 2 files changed, 6 insertions(+), 2 deletions(-)
  10. diff --git a/src/acconfig.h b/src/acconfig.h
  11. index 4e5cda0..6ff2d32 100644
  12. --- a/acconfig.h
  13. +++ b/acconfig.h
  14. @@ -274,7 +274,7 @@
  15. * Define USE_LOCALE if you want screen to use the locale names
  16. * for the name of the month and day of the week.
  17. */
  18. -#define USE_LOCALE
  19. +#undef USE_LOCALE
  20. /*
  21. * Define USE_PAM if your system supports PAM (Pluggable Authentication
  22. diff --git a/src/configure.ac b/src/configure.ac
  23. index 34f9735..d1bc42c 100644
  24. --- a/configure.ac
  25. +++ b/configure.ac
  26. @@ -1246,7 +1246,11 @@ if test "$enable_pam" = "yes"; then
  27. AC_MSG_RESULT(no);LIBS="$oldlibs")
  28. fi
  29. -AC_ARG_ENABLE(use_locale, [ --enable-use-locale use localized month/day names])
  30. +AC_ARG_ENABLE(use-locale,
  31. + [ --enable-use-locale use localized month/day names (default: yes)],
  32. + [],
  33. + [enable_use_locale=yes]
  34. +)
  35. if test "$enable_use_locale" = "yes"; then
  36. AC_DEFINE(USE_LOCALE)
  37. fi
  38. --
  39. 2.17.1