From b793f7527e1c83e1f78b3b3d3db39d6c00f3a669 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 28 May 2022 18:50:35 +0300 Subject: [PATCH 37/37] Add --with-localedir configure option See osdn #44525 Signed-off-by: Marko Lindqvist --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 49694670fa..91c2f89b55 100644 --- a/configure.ac +++ b/configure.ac @@ -842,8 +842,15 @@ dnl fi AC_DEFINE_UNQUOTED([FREECIV_STORAGE_DIR], ["$FREECIV_STORAGE_DIR"], [Location for freeciv to store its information]) +AC_ARG_WITH([localedir], + AS_HELP_STRING([--with-localedir], [directory where produced binaries will look locales from]), +[LOCALEDIR="${withval}"], +[LOCALEDIR=""]) + dnl note this has to match the path installed by translations/*/Makefile -if test x"$MINGW" != "xyes"; then +if test "x$LOCALEDIR" != "x" ; then + CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$LOCALEDIR\\\"\"" +elif test "x$MINGW" != "xyes"; then CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$localedir\\\"\"" else AC_DEFINE_UNQUOTED([LOCALEDIR], [".\\\\share\\\\locale"], [Locale directory (windows)]) -- 2.35.1