fix: configure option "--disable-use-locale" is not working

Bug: 52663
This commit is contained in:
Amadeusz Sławiński
2017-12-16 15:09:57 +01:00
parent 8c2b4061d1
commit 5c3643fb70
2 changed files with 6 additions and 2 deletions

View File

@@ -274,7 +274,7 @@
* Define USE_LOCALE if you want screen to use the locale names
* for the name of the month and day of the week.
*/
#define USE_LOCALE
#undef USE_LOCALE
/*
* Define USE_PAM if your system supports PAM (Pluggable Authentication

View File

@@ -1246,7 +1246,11 @@ if test "$enable_pam" = "yes"; then
AC_MSG_RESULT(no);LIBS="$oldlibs")
fi
AC_ARG_ENABLE(use_locale, [ --enable-use-locale use localized month/day names])
AC_ARG_ENABLE(use-locale,
[ --enable-use-locale use localized month/day names (default: yes)],
[],
[enable_use_locale=yes]
)
if test "$enable_use_locale" = "yes"; then
AC_DEFINE(USE_LOCALE)
fi