From 90e9e6fef1834961771facd460e7be9387362a2a Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 20 Mar 2008 22:24:28 +0000 Subject: [PATCH] Re-enable univerchardet (for now), also make it use STL rather than stdio (which isn't complete) Originally committed to SVN as r2085. --- aegisub/Makefile.am | 2 +- configure.in | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aegisub/Makefile.am b/aegisub/Makefile.am index 85b51b8b3..de71908bd 100644 --- a/aegisub/Makefile.am +++ b/aegisub/Makefile.am @@ -100,7 +100,7 @@ endif if HAVE_UNIVCHARDET noinst_LIBRARIES += libmisc_universalchardet.a libmisc_universalchardet_a_SOURCES = charset_detect.cpp text_file_reader.cpp -libmisc_universalchardet_a_CPPFLAGS = -D_X86_ -DTEXT_READER_USE_STDIO +libmisc_universalchardet_a_CPPFLAGS = -D_X86_ aegisub_LDADD += libmisc_universalchardet.a ../universalchardet/libuniversalchardet.a else UNIVCHARSET = charset_detect.cpp text_file_reader.cpp diff --git a/configure.in b/configure.in index dd2beec1c..bef7361f5 100644 --- a/configure.in +++ b/configure.in @@ -319,8 +319,8 @@ fi ###################### ## universalchardetect ###################### -AC_ARG_ENABLE(univchardet, [ --enable-univchardet enable universalchardet support.], univchardet_disabled="(disabled)") -if test "$with_univchardet" = "yes"; then +AC_ARG_ENABLE(univchardet, [ --disable-univchardet diable universalchardet support.], univchardet_disabled="(disabled)") +if test "$enable_univchardet" != "no"; then with_univchardet="yes" AC_DEFINE(WITH_UNIVCHARDET, 1, [Enable universalchardet support]) else @@ -688,5 +688,5 @@ Subtitle Providers: Misc Packages: hunspell: $with_hunspell $hunspell_disabled - universalchardet: $with_univchardet $univchardet_disabled (broken) + universalchardet: $with_univchardet $univchardet_disabled ]);