-AM_CFLAGS = @GTK2_CFLAGS@ @M17NLIB_CFLAGS@
-AM_CPPFLAGS = -DGETTEXTDIR=\"@GETTEXTDIR@\"
+AM_CPPFLAGS = \
+ @GTK2_CFLAGS@ \
+ @M17NLIB_CFLAGS@ \
+ @SCIM_GTKUTILS_CFLAGS@ \
+ @SCIM_CFLAGS@ \
+ -DGETTEXTDIR=\"@GETTEXTDIR@\"
lib_LTLIBRARIES = libm17n-im-config.la
include_HEADERS=m17n-im-config.h
if ENABLE_PROG
+
bin_PROGRAMS = m17n-im-config
m17n_im_config_SOURCES = m17n-im-config.h main.c
m17n_im_config_LDADD = @GTK2_LIBS@ ${top_builddir}/src/libm17n-im-config.la
+
+endif
+
+if ENABLE_SCIM_SETUP
+
+setupmoduledir = @SCIM_MODULEDIR@/SetupUI
+setupmodule_LTLIBRARIES = scim-m17n-setup.la
+
+scim_m17n_setup_la_SOURCES = scim-m17n-setup.cpp
+scim_m17n_setup_la_LDFLAGS = -avoid-version \
+ -rpath $(setupmoduledir) \
+ -module \
+ @SCIM_GTKUTILS_LIBS@ \
+ @SCIM_LIBS@ \
+ @M17NLIB_LIBS@ \
+ libm17n-im-config.la
+
endif