From 01dda37f969b6acff069d6617979a2fd0aee32c7 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 2 Feb 2020 12:06:42 +0100 Subject: [PATCH] allow disabling UNICODE by --disable-utf8, which sets the pre-processor flag EXT_ASC --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 215ac59aa..9aaf51cc2 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,10 @@ AC_ARG_WITH([tcl], AC_ARG_WITH([ngshared], [AS_HELP_STRING([--with-ngshared], [Compiles ngspice as shared library (dll)])]) +# --disable-utf8: don't use utf-8 and tchar for string representation, UNICODE support disabled +AC_ARG_ENABLE([utf8], + [AS_HELP_STRING([--disable-utf8], [Don't use utf-8 or tchar (default is UNICODE support with utf-8)])]) + # old options, not maintained, may even not work at all # --enable-ansi: try to force --ansi option to the compiler @@ -971,6 +975,10 @@ if test "x$enable_smltmsdebug" = xyes; then AC_DEFINE([D_DBG_SMALLTIMES], [], [Define if we want debug distortion analysis (SMALLTIMES)]) AC_MSG_RESULT([WARNING: Distortion analysis debug *D_DBG_SMALLTIMES* is enabled]) fi +if test "x$enable_utf8" = xno; then + AC_DEFINE([EXT_ASC], [], [Define if you want to disable UNICODE support]) + AC_MSG_RESULT([WARNING: UNICOPDE support is disabled, extended ascii is enabled instead]) +fi AC_PROG_YACC AC_PATH_PROG([BISON], [bison])