Skip to content

Commit

Permalink
* revert accident commit in r955, r956. sorry.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.csie.net/chewing/libchewing/tags/0.3.1@957 ac1be623-90ea-0310-9410-ba68b2efa777
  • Loading branch information
kcwu committed Oct 26, 2008
1 parent 6cdde82 commit 77770f4
Show file tree
Hide file tree
Showing 21 changed files with 2,561 additions and 2,810 deletions.
4 changes: 2 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ What's New in libchewing 0.3.0
IM support.
. OXIM input method suite from OpenDesktop/OSSI provides
Chewing support as its default input method.
. New Win32-Chewing subproject to provide efficient input
mthod solution on Microsoft Windows platforms.

What's New in libchewing 0.2.7
----------------------------------------------------------
Expand Down Expand Up @@ -98,6 +96,7 @@ What's New in libchewing 0.2.5

What's New in libchewing 0.2.4
----------------------------------------------------------

* Merge from SpaceChewing:
. Dvorak Hsu keyboard layout.
. Hanin style support.
Expand All @@ -112,6 +111,7 @@ What's New in libchewing 0.2.4

What's New in libchewing 0.2.3
----------------------------------------------------------

* Fix candidate phrase choice bug.
* Built-in debugging routines.
* Test suite & sample implementation.
Expand Down
1 change: 1 addition & 0 deletions chewing.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
datarootdir=@datarootdir@
datadir=@datadir@/chewing
sysconfdir=@sysconfdir@

Expand Down
85 changes: 32 additions & 53 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([memchr memmove memset mkdir strchr strstr])

# optional modules
CHECK_REQUIRED_VERSION=0.9.4

# Checks for check unit test framework
PKG_CHECK_MODULES(CHECK, check >= 0.9.4, enable_check=yes, enble_check=no)
AM_CONDITIONAL(ENABLE_UNIT_TEST, test $enable_check = "yes")
Expand Down Expand Up @@ -129,63 +126,45 @@ if test -z "$NCURSESW_LIBS"; then
fi
AC_SUBST(NCURSESW_CFLAGS)
AC_SUBST(NCURSESW_LIBS)
AM_CONDITIONAL(ENABLE_TEXT_UI, test x$enable_ncursesw = "xyes")
AM_CONDITIONAL(ENABLE_TEXT_UI, test $enable_ncursesw = "yes")

# Options

dnl Debugging switch
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Turn on debugging support @<:@default=no@:>@])],
[case "${enableval}" in
yes)
LIBDEBUG="true"
;;
*)
;;
esac],
[LIBDEBUG="false"])

if test x$LIBDEBUG = x"true"; then
AC_DEFINE(ENABLE_DEBUG, 1,
[Define to 1 if you want native library runtime debugging code enabled])
CFLAGS="$CFLAGS -g"
fi
AC_SUBST(LIBDEBUG)

dnl Adds -fvisibility=hidden to CFLAGS if running with gcc 4 or greater.
AC_MSG_CHECKING([whether the compiler supports GCC Visibility])
dnl Check for gcc4 or greater
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
void
#if defined(__GNUC__) && (__GNUC__ >= 4)
foo () {};
#endif
]], [[]])],[
has_visibility=yes
CFLAGS="$CFLAGS -fvisibility=hidden"
],[
has_visibility=no
])
AC_MSG_RESULT($has_visibility)

dnl binary form of chewing data
AC_ARG_ENABLE([binary-data],
[AS_HELP_STRING([--enable-binary-data],
[Experimental use of binary data @<:@default=yes@:>@])],
[AS_HELP_STRING(--enable-debug,Turn on debugging support)],
[case "${enableval}" in
yes)
LIBDEBUG="true"
AC_DEFINE(ENABLE_DEBUG, 1,
[Define to 1 if you want native library runtime debugging code enabled])
CFLAGS="$CFLAGS -g"
;;
no)
binary_data="no"
LIBDEBUG="false"
;;
*)
binary_data="yes"
AC_MSG_ERROR(bad value ${enableval} for --enable-debug)
;;
esac],binary_data="yes")
if test x$binary_data = "xyes"; then
AC_DEFINE(USE_BINARY_DATA, 1, [Experimental use of binary data])
fi
AC_SUBST(ENABLE_BINARY_DATA)
AM_CONDITIONAL(ENABLE_BINARY_DATA, test x$binary_data = "xyes")
esac],
[LIBDEBUG="false"])
AC_SUBST(LIBDEBUG)

#AC_ARG_ENABLE([binary-data],
# [AS_HELP_STRING(--enable-binary-data,Experimental use of binary data)],
# [case "${enableval}" in
# yes)
# ENABLE_BINARY_DATA="true"
# AC_DEFINE(USE_BINARY_DATA, 1, [Experimental use of binary data])
# ;;
# no)
# ENABLE_BINARY_DATA="false"
# ;;
# *)
# AC_MSG_ERROR(bad value ${enableval} for --enable-binary-data)
# ;;
# esac],
# [ENABLE_BINARY_DATA="false"])
#AC_SUBST(ENABLE_BINARY_DATA)
#AM_CONDITIONAL(ENABLE_BINARY_DATA, test $ENABLE_BINARY_DATA = "true")

# Platform-dependent
dnl What kind of system are we using?
Expand Down Expand Up @@ -231,7 +210,7 @@ Build options:
Version $PACKAGE_VERSION
Install prefix $prefix
Enable debug $LIBDEBUG
Enable binary data $binary_data
dnl Enable binary data $ENABLE_BINARY_DATA
Build Unit Test $enable_check
Build TextUI sample $enable_ncursesw
])
Loading

0 comments on commit 77770f4

Please sign in to comment.