From 27a53acf7190d20985a927f19fb5d0e90ad25e60 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 20 Jul 2005 14:06:53 +0000 Subject: Fixes - Added 'rcc-gtk-config' program to examples - Fixed problems in autoconf configuration - Fixed bug in rccLocaleGetCharset - Fixed visibility of all items in gtkui --- configure.in | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 5c0fb24..0699682 100644 --- a/configure.in +++ b/configure.in @@ -92,38 +92,30 @@ AC_CHECK_HEADER(dlfcn.h, [AC_CHECK_LIB(dl, dlopen, [ HAVE_DLOPEN=no ])]) -if test $enable_force_dynamic_engines = yes; then - RCD_LIBS="" - RCD_INCLUDES="" - HAVE_RCD=no - ENCA_LIBS="" - ENCA_INCLUDES="" - HAVE_ENCA=no -else +RCD_LIBS="" +RCD_INCLUDES="" +HAVE_RCD=no +ENCA_LIBS="" +ENCA_INCLUDES="" +HAVE_ENCA=no + +if test "x$enable_force_dynamic_engines" != "xyes"; then AC_CHECK_HEADER(librcd.h, [AC_CHECK_LIB(rcd, rcdGetRussianCharset, [ AC_DEFINE(HAVE_RCD,1,[Defines if libRCD is available]) RCD_LIBS="-lrcd" RCD_INCLUDES="" HAVE_RCD=yes -],[ - RCD_LIBS="" - RCD_INCLUDES="" - HAVE_RCD=no ])]) AC_CHECK_HEADER(enca.h, [AC_CHECK_LIB(enca, enca_analyse, [ AC_DEFINE(HAVE_ENCA,1,[Defines if enca is available]) ENCA_LIBS="-lenca" ENCA_INCLUDES="" HAVE_ENCA=yes -],[ - ENCA_LIBS="" - ENCA_INCLUDES="" - HAVE_ENCA=no ])]) fi -AM_CONDITIONAL(HAVE_RCD, [ test $HAVE_RCD = yes ]) -AM_CONDITIONAL(HAVE_ENCA, [ test $HAVE_ENCA = yes ]) +AM_CONDITIONAL(HAVE_RCD, [ test "x$HAVE_RCD" = "xyes" ]) +AM_CONDITIONAL(HAVE_ENCA, [ test "x$HAVE_ENCA" = "xyes" ]) AC_SUBST(RCD_LIBS) AC_SUBST(RCD_INCLUDES) @@ -131,17 +123,17 @@ AC_SUBST(ENCA_LIBS) AC_SUBST(ENCA_INCLUDES) USE_DLOPEN=no -if test $HAVE_DLOPEN = yes; then - if test $HAVE_ENCA = no; then +if test "x$HAVE_DLOPEN" = "xyes"; then + if test "x$HAVE_ENCA" = "xno"; then HAVE_ENCA=dynamic USE_DLOPEN=yes fi - if test $HAVE_RCD = no; then + if test "x$HAVE_RCD" = "xno"; then HAVE_RCD=dynamic USE_DLOPEN=yes fi - if test $USE_DLOPEN = no; then + if test "x$USE_DLOPEN" = "xno"; then DLOPEN_LIBS="" DLOPEN_INCLUDES="" fi -- cgit v1.2.3