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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
# This file is part of Clutter-Gesture.
#
# Copyright 2009 (c) Intel Corp.
# Author: Long Bu (long.bu@intel.com)
#
# Clutter-Gesture is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License,
# or (at your option) any later version.
#
# Clutter-Gesture is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with ClutterGesture; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
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(cluttergesture_version_major, 0)
m4_define(cluttergesture_version_minor, 0)
m4_define(cluttergesture_version_micro, 2)
m4_define([cluttergesture_version],
[cluttergesture_version_major.cluttergesture_version_minor.cluttergesture_version_micro])
m4_define([cluttergesture_api_version],
[cluttergesture_version_major.cluttergesture_version_minor])
AC_INIT(cluttergesture, cluttergesture_version)
AM_INIT_AUTOMAKE(cluttergesture, cluttergesture_version)
AC_CONFIG_HEADERS(config.h)
# Check for programs
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_C_O
# enable pkg-config
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(CLUTTERGESTURE, glib-2.0
clutter-1.0 >= 1.0.0
gobject-2.0
glib-2.0)
CLUTTERGESTURE_CFLAGS="$CLUTTERGESTURE_CFLAGS -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter -Wno-error=deprecated-declarations -fPIC"
AC_CHECK_LIBM
#GTK_DOC_CHECK([1.9])
# i18n
ALL_LINGUAS="en_US"
AC_SUBST(ALL_LINGUAS)
AM_GLIB_GNU_GETTEXT
AC_DEFINE(GETTEXT_PACKAGE, ["cluttergesture"], [Package name for gettext])
AC_ARG_ENABLE([gesture-debug],
AC_HELP_STRING([--enable-gesture-debug],
[enable debug mode. This makes the application be verbose and
impact the performance]),
[AC_DEFINE(GESTURE_DEBUG, 1, [Enable Gesture Debug output])])
# Output files
AC_OUTPUT([
Makefile
clutter-gesture/Makefile
tests/Makefile
engine/Makefile
clutter-gesture.pc
])
# doc/Makefile
# doc/reference/Makefile
echo ""
echo " cluttergesture $VERSION"
echo " ====================="
#echo " Documentation: ${enable_gtk_doc}"
echo ""
echo " To build the project, run \"make\""
echo ""
|