summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2017-12-16 15:09:57 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2017-12-16 15:09:57 +0100
commit5c3643fb701cc380ceb02116526ef4f5885295d0 (patch)
tree49443347b753b9205beca7e371cfa0e4b8a5836c
parent8c2b4061d16756ee2ed37f08db063b8215656943 (diff)
downloadscreen-5c3643fb701cc380ceb02116526ef4f5885295d0.tar.gz
fix: configure option "--disable-use-locale" is not working
Bug: 52663
-rw-r--r--src/acconfig.h2
-rw-r--r--src/configure.ac6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/acconfig.h b/src/acconfig.h
index 4e5cda0..6ff2d32 100644
--- a/src/acconfig.h
+++ b/src/acconfig.h
@@ -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
diff --git a/src/configure.ac b/src/configure.ac
index 34f9735..d1bc42c 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -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