configure.ac 857 Bytes
Newer Older
Kan-Ru Chen's avatar
Kan-Ru Chen committed
1 2 3
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)

Kan-Ru Chen's avatar
Kan-Ru Chen committed
4
AC_INIT([uim-chewing], [0.1.0])
Kan-Ru Chen's avatar
Kan-Ru Chen committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
AM_INIT_AUTOMAKE(1.8.3)
AC_CONFIG_HEADER([config.h])

AC_PROG_CC
AC_PROG_LIBTOOL
AC_PATH_PROG(RSVG, rsvg)

AM_MAINTAINER_MODE

PKG_CHECK_MODULES(CHEWING, [chewing >= 0.3.2])
CHEWING_DATADIR=`$PKG_CONFIG chewing --variable=datadir`
AC_DEFINE_UNQUOTED(CHEWING_DATADIR, "$CHEWING_DATADIR", [Chewing data dir])

PKG_CHECK_MODULES(UIM, [uim >= 1.5.0])
UIM_LIBDIR=`$PKG_CONFIG uim --variable=libdir`
UIM_SCMDIR=`$PKG_CONFIG uim --variable=uim_scmdir`
uim_pixmapsdir=`$PKG_CONFIG uim --variable=uim_datadir`/pixmaps

AC_SUBST(CHEWING_DATADIR)
AC_SUBST(UIM_LIBDIR)
AC_SUBST(UIM_SCMDIR)
AC_SUBST(uim_pixmapsdir)


AC_CONFIG_FILES([Makefile
                 scm/Makefile
                 src/Makefile
                 pixmaps/Makefile
		 ])
AC_OUTPUT