1 2 3 4 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
AC_PREREQ(2.61)
# package version number (not shared library version)
# odd micro numbers indicate in-progress development
# even micro numbers indicate released versions
m4_define([clutter_imcontext_version_major], [0])
m4_define([clutter_imcontext_version_minor], [1])
m4_define([clutter_imcontext_version_micro], [4])
m4_define([clutter_imcontext_version],
[clutter_imcontext_version_major.clutter_imcontext_version_minor.clutter_imcontext_version_micro])
m4_define([clutter_imcontext_api_version],
[clutter_imcontext_version_major.clutter_imcontext_version_minor])
AC_INIT(clutter_imcontext, clutter_imcontext_version)
AM_INIT_AUTOMAKE(clutter_imcontext, clutter_imcontext_version)
AC_CONFIG_HEADERS(config.h)
CLUTTER_IMCONTEXT_API_VERSION=clutter_imcontext_api_version
AC_SUBST(CLUTTER_IMCONTEXT_API_VERSION)
# Check for programs
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_INSTALL
# enable pkg-config
PKG_PROG_PKG_CONFIG
# Check for function availability
# AC_CHECK_FUNCS([memset])
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
PKG_CHECK_MODULES(CLUTTER, glib-2.0
clutter-1.0 >= 1.0.0)
AC_SUBST(CLUTTER_CFLAGS)
AC_SUBST(CLUTTER_LIBS)
GTK_DOC_CHECK([1.9])
# Add --enable-debug arg
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging], ,
enable_debug=no)
if test "$enable_debug" = "yes"; then
AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility])
fi
# Output files
AC_OUTPUT([Makefile
clutter-imcontext/Makefile
clutter-imcontext/clutter-imcontext.pc
tools/Makefile
tests/Makefile
doc/Makefile
doc/reference/Makefile
doc/reference/version.xml
])
echo ""
echo " clutter-imcontext $VERSION"
echo " ====================="
echo " Documentation: ${enable_gtk_doc}"
echo ""
echo " To build the project, run \"make\""
echo ""
|