1 # Process this file with autoconf to produce a configure script
2 #AC_INIT(scim, 1.4.7, suzhe@tsinghua.org.cn)
3 AC_INIT(isf, 8.0.10, isf@samsung.com)
4 AC_CONFIG_SRCDIR([ism/src/scim.h])
6 ###########################################################
7 ## Some definitions of Version macros. ##
8 ###########################################################
15 ISF_VERSION=$ISF_MAJOR_VERSION.$ISF_MINOR_VERSION.$ISF_MICRO_VERSION
17 AC_SUBST(ISF_MAJOR_VERSION)
18 AC_SUBST(ISF_MINOR_VERSION)
19 AC_SUBST(ISF_MICRO_VERSION)
27 SCIM_VERSION=$SCIM_MAJOR_VERSION.$SCIM_MINOR_VERSION.$SCIM_MICRO_VERSION
29 AC_SUBST(SCIM_MAJOR_VERSION)
30 AC_SUBST(SCIM_MINOR_VERSION)
31 AC_SUBST(SCIM_MICRO_VERSION)
32 AC_SUBST(SCIM_VERSION)
34 # libtool versioning for SCIM
36 # increment if the interface has additions, changes, removals.
39 # increment any time the source changes; set to 0 if you increment CURRENT
42 # increment if any interfaces have been added; set to 0
43 # if any interfaces have been removed. removal has
44 # precedence over adding, so set to 0 if both happened.
47 AC_SUBST(SCIM_CURRENT)
48 AC_SUBST(SCIM_REVISION)
51 # Define a string for the earliest version that this release cannot
52 # coexist with. This is used for directory hierarchies.
57 # Define a string for the earliest version that this release has
58 # binary compatibility with. This is used for module locations.
60 SCIM_BINARY_VERSION=1.4.0
61 AC_SUBST(SCIM_BINARY_VERSION)
63 # Define a string for the name of ISF-CONTROL library.
65 ISF_CONTROL=isf-control
68 AC_DEFINE_UNQUOTED(SCIM_BINARY_VERSION, "$SCIM_BINARY_VERSION", [The binary version of SCIM library.])
69 AC_DEFINE_UNQUOTED(SCIM_VERSION, "$SCIM_VERSION", [The release version of SCIM library.])
70 AC_DEFINE_UNQUOTED(SCIM_MAJOR_VERSION, $SCIM_MAJOR_VERSION, [The Major version of SCIM library.])
71 AC_DEFINE_UNQUOTED(SCIM_MINOR_VERSION, $SCIM_MINOR_VERSION, [The Minor version of SCIM library.])
72 AC_DEFINE_UNQUOTED(SCIM_MICRO_VERSION, $SCIM_MICRO_VERSION, [The Micro version of SCIM library.])
75 AC_SUBST(GETTEXT_PACKAGE)
76 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext domain])
78 ###########################################################
79 ## Start Configuration. ##
80 ###########################################################
82 AC_USE_SYSTEM_EXTENSIONS
86 AM_CONFIG_HEADER([config.h])
92 ALL_LINGUAS="ar as az be_BY bg bn bn_BD ca cs da de el_GR en en_PH en_US es_ES es_MX es_US et eu fa fi fr fr_CA ga gl gu he hi hr hu hy id is it_IT ja_JP ka kk km kn ko_KR ky_KG lo lt lv mg mk ml mn_MN mr ms my_MM my_ZG nb ne nl or pa pl pl_SP pt_BR pt_PT ro ru_RU si sk sl sq sr sv sw ta te tg_TJ th tk_TM tl tr_TR uk ur uz vi xh zh_CN zh_HK zh_TW zh_TW zu"
99 AC_SUBST(LIBTOOL_DEPS)
101 # libtool option to control which symbols are exported
102 # right now, symbols starting with _ are not exported
103 # !!! DO NOT USE IT !!!
104 LIBTOOL_EXPORT_OPTIONS=''
105 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
107 # Checks for programs.
112 # Checks if doxygen is avaiable
115 if test "x$with_doxygen" != "xno"; then
116 AC_PATH_PROG(DOXYGEN, doxygen, no)
119 AM_CONDITIONAL(HAVE_DOXYGEN, test x$DOXYGEN != xno)
122 # Checks if graphviz is available
123 AC_CHECK_PROG(HAVE_GRAPHVIZ, dot, YES, NO)
124 AC_PATH_PROG(DOT, dot)
128 AC_PATH_PROG(PERL, perl)
132 #IT_PROG_INTLTOOL([0.33], [no-xml])
134 # Checks for libraries.
137 AC_CHECK_HEADERS([langinfo.h libintl.h string.h dirent.h hash_map ext/hash_map])
138 AC_CHECK_HEADERS([stdio.h ctype.h errno.h assert.h])
140 # Checks for typedefs, structures, and compiler characteristics.
145 if test x$ac_cv_type_size_t != xyes; then
146 AC_MSG_ERROR([No type size_t, but SCIM needs it!])
149 AC_CHECK_SIZEOF(char)
150 AC_CHECK_SIZEOF(unsigned short int)
151 AC_CHECK_SIZEOF(unsigned int)
152 AC_CHECK_SIZEOF(unsigned long int)
153 AC_CHECK_SIZEOF(unsigned long long int)
154 AC_CHECK_HEADERS([stdint.h],[has_stdint=yes],[has_stdint=no])
156 if test x$ac_cv_sizeof_unsigned_short_int = x2 && test x$ac_cv_sizeof_char = x1 ; then
161 *** sizeof (unsigned short int) == 2
162 *** sizeof (char) == 1
163 *** You might want to consider using the GNU C compiler.
167 if test x$ac_cv_sizeof_wchar_t = x0 ; then
169 *** SCIM requires a compiler that supports wchar_t,
170 *** You might want to consider using the GNU C compiler.
174 if test x$has_stdint = xyes; then
175 INCLUDE_STDINT="#include <stdint.h>"
180 INCLUDE_STDINT="//#include <stdint.h>"
181 UINT16="unsigned short int"
182 if test x$ac_cv_sizeof_unsigned_int = x4; then
183 UINT32="unsigned int"
185 if test x$ac_cv_sizeof_unsigned_long_int = x4; then
186 UINT32="unsigned long int"
188 AC_MSG_ERROR([*** No suitable integer type for uint32 found.])
191 if test x$ac_cv_sizeof_unsigned_long_long_int = x8; then
192 UINT64="unsigned long long int"
194 AC_MSG_ERROR([*** No suitable integer type for uint64 found.])
197 AC_SUBST(INCLUDE_STDINT)
202 # Checks for library functions.
204 AC_CHECK_FUNCS([gettimeofday memmove memset nl_langinfo setlocale daemon])
205 AC_CHECK_FUNCS([memcpy strcmp strchr strrchr])
206 AC_CHECK_FUNCS([opendir closedir readdir])
207 AC_CHECK_FUNCS([usleep nanosleep])
208 AC_CHECK_FUNCS([gethostbyname gethostbyname_r socket bind accept connect listen],
215 PKG_CHECK_MODULES(EINA, [eina])
218 PKG_CHECK_MODULES(ECORE, [ecore])
220 # Check ECORE_IPC library
221 PKG_CHECK_MODULES(ECORE_IPC, [ecore-ipc])
223 # Check ECORE INPUT library
224 PKG_CHECK_MODULES(ECORE_INPUT, [ecore-input])
226 # Check ECORE EVAS library
227 PKG_CHECK_MODULES(ECORE_EVAS, [ecore-evas])
230 PKG_CHECK_MODULES(ECORE_IMF, [ecore-imf],
231 [ISF_HAS_ECORE_IMF=yes],
232 [ISF_HAS_ECORE_IMF=no])
234 if test "$ISF_HAS_ECORE_IMF" = "yes"; then
235 EFL_LIBDIR=`$PKG_CONFIG --variable=libdir ecore-imf`
236 ECORE_IMF_MODULE_ARCH=`$PKG_CONFIG --variable=module_arch ecore`
237 if test -z "$EFL_LIBDIR)"; then
240 EFL_IM_MODULEDIR=$EFL_LIBDIR/ecore_imf/modules/isf/$ECORE_IMF_MODULE_ARCH
241 WAYLAND_IM_MODULEDIR=$EFL_LIBDIR/ecore_imf/modules/wayland/$ECORE_IMF_MODULE_ARCH
243 AC_SUBST(EFL_IM_MODULEDIR)
244 AC_SUBST(WAYLAND_IM_MODULEDIR)
248 PKG_CHECK_MODULES(EVAS, [evas])
250 # Check XKBCOMMON library
251 PKG_CHECK_MODULES(XKBCOMMON, [xkbcommon])
253 # Check ECORE WAYLAND library
254 PKG_CHECK_MODULES(ECORE_WL, [ecore-wl2],
255 [ISF_HAS_ECOREWL=yes],
256 [ISF_HAS_ECOREWL=no])
258 if test "$ISF_HAS_ECOREWL" = "yes"; then
259 AC_DEFINE(HAVE_ECOREWL,1,[Have ecore-wl2 functions.])
262 # Check WAYLAND TEXT INPUT library
263 PKG_CHECK_MODULES(WL_TEXT_INPUT, [text-client])
265 # Check WAYLAND INPUT METHOD library
266 PKG_CHECK_MODULES(WL_INPUT_METHOD, [input-method-client])
269 PKG_CHECK_MODULES(EDJE, [edje])
271 # Check ELEMENTARY library
272 PKG_CHECK_MODULES(ELEMENTARY, [elementary],
276 # Check EFL extension library
277 PKG_CHECK_MODULES(EFL_EXTENSION, [efl-extension])
280 PKG_CHECK_MODULES(GLIB, [glib-2.0])
283 PKG_CHECK_MODULES(GIO, [gio-2.0])
285 # Check tzplatform-config library
286 PKG_CHECK_MODULES(TZPLATFORM_CONFIG, [libtzplatform-config])
288 # Check service application library
289 PKG_CHECK_MODULES(SERVICE_APPLICATION, [capi-appfw-service-application])
292 PKG_CHECK_MODULES(DLOG, [dlog >= 0])
294 # Check notification library
295 PKG_CHECK_MODULES(NOTIFICATION, [notification],
296 [ISF_HAS_NOTIFICATION=yes],
297 [ISF_HAS_NOTIFICATION=no])
299 # Check system info library
300 PKG_CHECK_MODULES(SYSTEM_INFO, [capi-system-info])
302 # Check cynara liblaries
303 PKG_CHECK_MODULES(CYNARA, [cynara-client, cynara-creds-socket, cynara-session])
305 # Check vconf library
306 PKG_CHECK_MODULES(VCONF, [vconf],
310 # Check feedback library
311 PKG_CHECK_MODULES(FEEDBACK, [feedback],
312 [ISF_HAS_FEEDBACK=yes],
313 [ISF_HAS_FEEDBACK=no])
315 # Check package manager
316 PKG_CHECK_MODULES(PACKAGE_MANAGER, [capi-appfw-package-manager])
319 PKG_CHECK_MODULES(AUL, [aul])
322 PKG_CHECK_MODULES(APP_CONTROL, [capi-appfw-app-control])
324 # Check app common library
325 PKG_CHECK_MODULES(APP_COMMON, [capi-appfw-app-common])
327 # Check libwebsockets
328 PKG_CHECK_MODULES(LIBWEBSOCKETS, [libwebsockets],
329 [ISF_HAS_LIBWEBSOCKETS=yes],
330 [ISF_HAS_LIBWEBSOCKETS=no])
332 # Check core package manager
333 PKG_CHECK_MODULES(PKGMGR_INFO, [pkgmgr-info],
334 [ISF_HAS_PKGMGR_INFO=yes],
335 [ISF_HAS_PKGMGR_INFO=no])
337 PKG_CHECK_MODULES(SQLITE3, [sqlite3])
339 # Ignore checked modules if --disable option is added
340 AC_ARG_ENABLE(include-notification,
341 [ --disable-include-notification Do not include notification package],
342 enable_notification=no,
343 enable_notification=yes)
345 AC_ARG_ENABLE(include-libwebsocket,
346 [ --disable-include-libwebsocket Do not include libwebsocket package],
347 enable_libwebsocket=no,
348 enable_libwebsocket=yes)
350 # Check systemd library
351 PKG_CHECK_MODULES(SYSTEMD, [libsystemd],
352 [ISF_HAS_SYSTEMD=yes],
353 [ISF_HAS_SYSTEMD=no])
356 PKG_CHECK_MODULES(GMOCK, [gmock])
358 if test "$ISF_HAS_VCONF" = "yes"; then
359 AC_DEFINE(HAVE_VCONF,1,[Have VConf functions.])
362 if test "$ISF_HAS_FEEDBACK" = "yes"; then
363 AC_DEFINE(HAVE_FEEDBACK,1,[Have Feedback functions.])
366 if test "$ISF_HAS_NOTIFICATION" = "yes" && test "$enable_notification" = "yes"; then
367 AC_DEFINE(HAVE_NOTIFICATION,1,[Have Notification functions.])
370 if test "$enable_notification" = "no"; then
371 AC_MSG_NOTICE([Notification functions force-disabled.])
374 if test "$ISF_HAS_PKGMGR_INFO" = "yes"; then
375 AC_DEFINE(HAVE_PKGMGR_INFO,1,[Have Package manager functions.])
379 PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0],
384 if test "$SCIM_HAS_GTK2" = "yes"; then
385 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
388 AC_DEFINE(GDK_MULTIHEAD_SAFE,1,[Force use of GDK's multihead-safe APIs.])
390 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.5" ; then
393 AC_DEFINE(HAVE_GTK_DRAW_INSERTION_CURSOR,1,[Have gtk_draw_insertion_cursor ().])
395 GTK_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
396 GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
397 if test -z "$GTK_LIBDIR)"; then
400 GTK_IM_MODULEDIR=$GTK_LIBDIR/gtk-2.0/$GTK_BINARY_VERSION/immodules
402 AC_SUBST(GTK_IM_MODULEDIR)
403 AC_SUBST(GTK_VERSION)
404 AC_SUBST(GTK_BINARY_VERSION)
407 # Check if we have gthread
408 PKG_CHECK_MODULES(GTHREAD2,[gthread-2.0 >= 2.0.0],
409 [SCIM_HAS_GTHREAD2=yes],
410 [SCIM_HAS_GTHREAD2=no])
412 # Checks for X11 header files.
415 # Add -lX11 to X_LIBS
416 if test "$have_x" = "yes"; then
417 X_LIBS="$X_LIBS -lX11"
424 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
426 ###########################################################
427 ## Definiation of compile args. ##
428 ###########################################################
429 AC_ARG_WITH(gtk-im-module-dir,
430 AS_HELP_STRING([--with-gtk-im-module-dir=dir],
431 [Select gtk immodule dir]),
432 GTK_IM_MODULEDIR=$with_gtk_im_module_dir)
434 AC_ARG_WITH(efl-im-module-dir,
435 AS_HELP_STRING([--with-efl-im-module-dir=dir],
436 [Select efl immodule dir]),
437 EFL_IM_MODULEDIR=$with_efl_im_module_dir)
439 AC_ARG_WITH(wayland-im-module-dir,
440 AS_HELP_STRING([--with-wayland-im-module-dir=dir],
441 [Select wayland immodule dir]),
442 WAYLAND_IM_MODULEDIR=$with_wayland_im_module_dir)
444 AC_ARG_WITH(ro-app-dir,
445 AS_HELP_STRING([--with-ro-app-dir=dir],
446 [Select Read only application dir]),
447 RO_APP_DIR=$with_ro_app_dir)
449 AC_ARG_WITH(ro-packages-dir,
450 AS_HELP_STRING([--with-ro-app-dir=dir],
451 [Select Read only packages dir]),
452 RO_PACKAGES_DIR=$with_ro_packages_dir)
454 AC_ARG_ENABLE(ld-version-script,
455 [ --enable-ld-version-script Use ld version script to limit exported symbols],
456 enable_ld_version_script=yes,
457 enable_ld_version_script=no)
460 [ --enable-debug Turn on debugging],
465 [ --enable-x86 Build for x86 host],
469 AC_ARG_ENABLE(hash-map,
470 [ --enable-hash-map Use hast_map instead of std::map internally],
474 AC_ARG_ENABLE(config-simple,
475 [ --disable-config-simple Do not build Simple Config module],
476 enable_config_simple=no,
477 enable_config_simple=yes)
479 AC_ARG_ENABLE(config-socket,
480 [ --disable-config-socket Do not build Socket Config module],
481 enable_config_socket=no,
482 enable_config_socket=yes)
484 AC_ARG_ENABLE(frontend-x11,
485 [ --disable-frontend-x11 Do not build X11 FrontEnd module],
486 enable_frontend_x11=no,
487 enable_frontend_x11=yes)
489 AC_ARG_ENABLE(frontend-socket,
490 [ --disable-frontend-socket Do not build Socket FrontEnd module],
491 enable_frontend_socket=no,
492 enable_frontend_socket=yes)
494 AC_ARG_ENABLE(im-socket,
495 [ --disable-im-socket Do not build Socket IMEngine module],
497 enable_im_socket=yes)
499 AC_ARG_ENABLE(filter-sctc,
500 [ --disable-filter-sctc Do not build Simplified/Traditional Chinese conversion Filter module],
501 enable_filter_sctc=no,
502 enable_filter_sctc=yes)
504 AC_ARG_ENABLE(gtk2-immodule,
505 [ --disable-gtk2-immodule Do not build GTK2 IMModule],
506 enable_gtk2_immodule=no,
507 enable_gtk2_immodule=yes)
509 AC_ARG_ENABLE(efl-immodule,
510 [ --disable-efl-immodule Do not build EFL IMModule],
511 enable_efl_immodule=no,
512 enable_efl_immodule=yes)
514 AC_ARG_ENABLE(wayland-immodule,
515 [ --disable-wayland-immodule Do not build Wayland IMModule],
516 enable_wayland_immodule=no,
517 enable_wayland_immodule=yes)
519 AC_ARG_ENABLE(panel-efl,
520 [ --disable-panel-efl Do not build EFL Panel],
522 enable_panel_efl=check)
524 AC_ARG_ENABLE(open-input,
525 [ --disable-open-input Do not build Open Input],
526 enable_open_input=no,
527 enable_open_input=check)
529 AC_ARG_ENABLE(tray-icon,
530 [ --disable-tray-icon Do not build Tray Icon],
532 enable_tray_icon=yes)
534 AC_ARG_ENABLE(multiwindow-support,
535 [ --disable-multiwindow-support Do not build Multiwindow Support],
536 enable_multiwindow_support=no,
537 enable_multiwindow_support=yes)
539 AC_ARG_ENABLE(lazy-launch,
540 [ --enable-lazy-launch Launch ISF when focusing in entry],
541 enable_lazy_launch=yes,
542 enable_lazy_launch=no)
544 AC_ARG_ENABLE(ime-embed-app,
545 [ --disable-ime-embed-app Do not load IME in application when socket invalidate],
546 enable_ime_embed_app=no,
547 enable_ime_embed_app=yes)
549 AC_ARG_ENABLE(candidate-ui,
550 [ --disable-candidate-ui Do not build Candidate UI],
551 enable_candidate_ui=no,
552 enable_candidate_ui=check)
554 if test "$have_x" = "yes"; then
555 SCIM_BUILD_X11_UTILS=1
558 SCIM_BUILD_X11_UTILS=0
562 if test "$enable_hash_map" = "yes"; then
563 AC_DEFINE(ENABLE_HASH_MAP,1,[Use hash map instead of map in libscim])
566 if test "$enable_debug" = "yes"; then
567 AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility in libscim])
569 CXXFLAGS="$CXXFLAGS -g"
572 if test "$enable_x86" = "yes"; then
573 AC_DEFINE(ENABLE_X86_HOST,1,[Build for x86 host])
576 if test "$enable_tests" = "yes"; then
583 if test "$enable_config_simple" = "yes"; then
584 SCIM_BUILD_CONFIG_SIMPLE=1
586 SCIM_BUILD_CONFIG_SIMPLE=0
587 enable_config_simple=no
590 if test "$enable_config_socket" = "yes" -a "$socket_ok" = "yes"; then
591 SCIM_BUILD_CONFIG_SOCKET=1
593 SCIM_BUILD_CONFIG_SOCKET=0
594 enable_config_socket=no
597 if test "$enable_frontend_x11" = "yes" -a "$have_x" = "yes"; then
598 SCIM_BUILD_FRONTEND_X11=1
600 SCIM_BUILD_FRONTEND_X11=0
601 enable_frontend_x11=no
604 if test "$enable_frontend_socket" = "yes" -a "$socket_ok" = "yes"; then
605 SCIM_BUILD_FRONTEND_SOCKET=1
607 SCIM_BUILD_FRONTEND_SOCKET=0
608 enable_frontend_socket=no
611 if test "$enable_im_rawcode" = "yes"; then
612 SCIM_BUILD_IMENGINE_RAWCODE=1
614 SCIM_BUILD_IMENGINE_RAWCODE=0
618 if test "$enable_im_socket" = "yes" -a "$socket_ok" = "yes"; then
619 SCIM_BUILD_IMENGINE_SOCKET=1
621 SCIM_BUILD_IMENGINE_SOCKET=0
625 if test "$enable_filter_sctc" = "yes"; then
626 SCIM_BUILD_FILTER_SCTC=1
628 SCIM_BUILD_FILTER_SCTC=0
629 enable_filter_sctc=no
632 if test "$enable_gtk2_immodule" = "yes" -a "$SCIM_HAS_GTK2" = "yes"; then
633 SCIM_BUILD_GTK2_IMMODULE=1
635 SCIM_BUILD_GTK2_IMMODULE=0
636 enable_gtk2_immodule=no
639 if test "$SCIM_HAS_GTK2" = "yes"; then
641 SCIM_BUILD_GTK_UTILS=1
644 SCIM_BUILD_GTK_UTILS=0
647 if test "$enable_tray_icon" = "yes"; then
648 if test "$SCIM_HAS_GTK2_2" = "yes" -a "$no_x" != "yes"; then
650 AC_DEFINE(ENABLE_TRAY_ICON,1,[Enable the TrayIcon code.])
656 if test "$enable_multiwindow_support" = "yes"; then
657 enable_multiwindow_support=yes
658 AC_DEFINE(ENABLE_MULTIWINDOW_SUPPORT,1,[Enable the Multi Window code.])
660 enable_multiwindow_support=no
663 if test "$enable_efl_immodule" = "yes" -a "$ISF_HAS_ECORE_IMF" = "yes"; then
664 ISF_BUILD_EFL_IMMODULE=1
666 ISF_BUILD_EFL_IMMODULE=0
667 enable_efl_immodule=no
670 if test "$enable_wayland_immodule" = "yes" -a "$ISF_HAS_ECORE_IMF" = "yes"; then
671 ISF_BUILD_WAYLAND_IMMODULE=1
673 ISF_BUILD_WAYLAND_IMMODULE=0
674 enable_wayland_immodule=no
677 ISF_BUILD_PANEL_EFL=0
678 ISF_BUILD_CANDIDATE_UI=0
679 if test "$enable_panel_efl" != "no"; then
681 if test "$ISF_HAS_ELM" = "yes"; then
682 ISF_BUILD_PANEL_EFL=1
684 if test "$enable_candidate_ui" = "yes"; then
685 ISF_BUILD_CANDIDATE_UI=1
686 enable_candidate_ui=yes
688 enable_candidate_ui=no
691 enable_candidate_ui=no
694 enable_candidate_ui=no
697 ISF_BUILD_OPEN_INPUT=0
698 ISF_BUILD_REMOTE_INPUT=0
699 if test "$enable_remote_input" = "yes"; then
700 ISF_BUILD_REMOTE_INPUT=1
701 enable_remote_input=yes
702 AC_DEFINE(ENABLE_REMOTE_INPUT,1,[Enable remote input.])
703 if test "$enable_open_input" = "yes" && test "$ISF_HAS_LIBWEBSOCKETS" = "yes" && test "$enable_libwebsocket" = "yes"; then
704 ISF_BUILD_OPEN_INPUT=1
705 enable_open_input=yes
706 AC_DEFINE(ENABLE_OPEN_INPUT,1,[Enable open input.])
711 if test "$enable_libwebsocket" = "no"; then
712 AC_MSG_NOTICE([LIBWEBSOCKET forced disable.])
716 enable_remote_input=no
719 #if nothing needs libscim-gtkutils, just disable it
720 if test "$enable_panel_gtk" != "yes"; then
722 SCIM_BUILD_GTK_UTILS=0
725 if test "$enable_lazy_launch" = "yes"; then
726 AC_DEFINE(ENABLE_LAZY_LAUNCH,1,[Launch ISF when focusing in entry])
727 ISF_INSTALL_SYSTEMD_SCRIPT=0
729 ISF_INSTALL_SYSTEMD_SCRIPT=1
732 if test "$enable_ime_embed_app" = "yes"; then
733 AC_DEFINE(ENABLE_IME_EMBED_APP,1,[Load imengine in application side when socket invalidate])
736 AM_CONDITIONAL(SCIM_LD_VERSION_SCRIPT,
737 [test "$enable_ld_version_script" = "yes"])
739 AM_CONDITIONAL(SCIM_BUILD_TESTS,
740 [test "$enable_tests" = "yes"])
742 AM_CONDITIONAL(SCIM_BUILD_CONFIG_SIMPLE,
743 [test "$enable_config_simple" = "yes"])
745 AM_CONDITIONAL(SCIM_BUILD_CONFIG_SOCKET,
746 [test "$enable_config_socket" = "yes"])
748 AM_CONDITIONAL(SCIM_BUILD_FRONTEND_X11,
749 [test "$enable_frontend_x11" = "yes"])
751 AM_CONDITIONAL(SCIM_BUILD_FRONTEND_SOCKET,
752 [test "$enable_frontend_socket" = "yes"])
754 AM_CONDITIONAL(SCIM_BUILD_IMENGINE_SOCKET,
755 [test "$enable_im_socket" = "yes"])
757 AM_CONDITIONAL(SCIM_BUILD_IMENGINE_RAWCODE,
758 [test "$enable_im_rawcode" = "yes"])
760 AM_CONDITIONAL(SCIM_BUILD_GTK2_IMMODULE,
761 [test "$enable_gtk2_immodule" = "yes"])
763 AM_CONDITIONAL(SCIM_BUILD_FILTER_SCTC,
764 [test "$enable_filter_sctc" = "yes"])
766 AM_CONDITIONAL(SCIM_BUILD_GTK_UTILS,
767 [test "$enable_gtk_utils" = "yes"])
769 AM_CONDITIONAL(SCIM_BUILD_X11_UTILS,
770 [test "$enable_x11_utils" = "yes"])
772 AM_CONDITIONAL(SCIM_BUILD_TRAY_ICON,
773 [test "$enable_tray_icon" = "yes"])
775 AM_CONDITIONAL(ISF_BUILD_EFL_IMMODULE,
776 [test "$enable_efl_immodule" = "yes"])
778 AM_CONDITIONAL(ISF_BUILD_WAYLAND_IMMODULE,
779 [test "$enable_wayland_immodule" = "yes"])
781 AM_CONDITIONAL(ISF_BUILD_PANEL_EFL,
782 [test "$enable_panel_efl" = "yes"])
784 AM_CONDITIONAL(ISF_BUILD_REMOTE_INPUT,
785 [test "$enable_remote_input" = "yes"])
787 AM_CONDITIONAL(ISF_BUILD_OPEN_INPUT,
788 [test "$enable_open_input" = "yes"])
790 AM_CONDITIONAL(ISF_BUILD_DB_UTIL,
791 [test "$ISF_HAS_DB_UTIL" = "yes"])
793 AM_CONDITIONAL(ISF_INSTALL_SYSTEMD_SCRIPT,
794 [test "$enable_lazy_launch" = "no"])
796 AM_CONDITIONAL(ISF_BUILD_CANDIDATE_UI,
797 [test "$enable_candidate_ui" = "yes"])
799 AC_SUBST(SCIM_BUILD_TESTS)
800 AC_SUBST(SCIM_BUILD_CONFIG_SIMPLE)
801 AC_SUBST(SCIM_BUILD_CONFIG_SOCKET)
802 AC_SUBST(SCIM_BUILD_FRONTEND_X11)
803 AC_SUBST(SCIM_BUILD_FRONTEND_SOCKET)
804 AC_SUBST(SCIM_BUILD_IMENGINE_RAWCODE)
805 AC_SUBST(SCIM_BUILD_IMENGINE_TABLE)
806 AC_SUBST(SCIM_BUILD_IMENGINE_SOCKET)
807 AC_SUBST(SCIM_BUILD_FILTER_SCTC)
808 AC_SUBST(SCIM_BUILD_GTK2_IMMODULE)
809 AC_SUBST(SCIM_BUILD_SCIM_SETUP)
810 AC_SUBST(SCIM_BUILD_GTK_UTILS)
811 AC_SUBST(SCIM_BUILD_X11_UTILS)
812 AC_SUBST(ISF_BUILD_EFL_IMMODULE)
813 AC_SUBST(ISF_BUILD_PANEL_EFL)
814 AC_SUBST(ISF_BUILD_REMOTE_INPUT)
815 AC_SUBST(ISF_BUILD_OPEN_INPUT)
816 AC_SUBST(ISF_BUILD_DB_UTIL)
817 AC_SUBST(ISF_INSTALL_SYSTEMD_SCRIPT)
818 AC_SUBST(ISF_BUILD_KBD_MODE_CHANGER)
819 AC_SUBST(ISF_BUILD_CANDIDATE_UI)
821 ISF_BUILDING_DLL="-DISF_BUILDING_DLL"
822 AC_SUBST(ISF_BUILDING_DLL)
824 # Output All necessary Paths.
825 SCIM_BINDIR="$prefix/bin"
826 SCIM_DATADIR="$datadir/scim"
827 SCIM_SYSCONFDIR="$sysconfdir"
828 SCIM_ICONDIR="$datadir/scim/icons"
829 SCIM_MODULE_PATH="$libdir/scim$SCIM_EPOCH"
830 SCIM_LIBEXECDIR="$libdir/scim$SCIM_EPOCH"
831 SCIM_LOCALEDIR="/usr/share/locale"
832 SCIM_TEMPDIR="/run/.isf"
833 SCIM_LIBDIR="$libdir"
835 AC_SUBST(SCIM_BINDIR)
836 AC_SUBST(SCIM_DATADIR)
837 AC_SUBST(SCIM_SYSCONFDIR)
838 AC_SUBST(SCIM_ICONDIR)
839 AC_SUBST(SCIM_MODULE_PATH)
840 AC_SUBST(SCIM_LIBEXECDIR)
841 AC_SUBST(SCIM_LOCALEDIR)
842 AC_SUBST(SCIM_TEMPDIR)
843 AC_SUBST(SCIM_LIBDIR)
846 AC_SUBST(RO_PACKAGES_DIR)
848 ###########################################################
850 ###########################################################
852 AC_CONFIG_FILES([Makefile
858 ism/data/icons/Makefile
859 ism/data/pixmaps/Makefile
861 ism/modules/frontend/imdkit/Makefile
862 ism/modules/frontend/Makefile
863 ism/modules/imengine/Makefile
864 ism/modules/filter/Makefile
865 ism/modules/config/Makefile
866 ism/modules/panelagent/ecoresocket/Makefile
867 ism/modules/panelagent/wayland/Makefile
868 ism/modules/panelagent/socketconfigserver/Makefile
871 ism/extras/gtk2_immodule/Makefile
872 ism/extras/efl_immodule/Makefile
873 ism/extras/wayland_immodule/Makefile
874 ism/extras/efl_panel/Makefile
875 ism/extras/kbd_mode_changer/Makefile
876 ism/extras/pkgmgr_parser/Makefile
888 engine-loader/Makefile])
894 Install prefix $prefix
895 Build shared libs $enable_shared
896 Build static libs $enable_static
897 Enable debug $enable_debug
898 Build for x86 host $enable_x86
899 Enable ld version script $enable_ld_version_script
902 Simple config module $enable_config_simple
903 Socket config module $enable_config_socket
905 X11 FrontEnd module $enable_frontend_x11
906 Socket FrontEnd module $enable_frontend_socket
908 Socket IMEngine module $enable_im_socket
910 SCTC Filter module $enable_filter_sctc
912 GTK2 Utility Library $enable_gtk_utils
913 X11 Utility Library $enable_x11_utils
915 GTK2 IMModule $enable_gtk2_immodule
916 GTK2 IMModule dir $GTK_IM_MODULEDIR
918 EFL IMModule $enable_efl_immodule
919 EFL IMModule dir $EFL_IM_MODULEDIR
921 Wayland IMModule $enable_wayland_immodule
922 Wayland IMModule dir $WAYLAND_IM_MODULEDIR
924 EFL Panel GUI $enable_panel_efl
925 EFL Panel Candidate GUI $enable_candidate_ui
927 Enable TrayIcon $enable_tray_icon
928 Enable MultiWindow $enable_multiwindow_support
929 Enable LazyLaunch $enable_lazy_launch
930 Enable IME Embed $enable_ime_embed_app
931 Enable Remote Input $enable_remote_input
932 Enable OpenInput $enable_open_input