2005-04-13 15:49:56 -04:00
|
|
|
AC_PREREQ(2.53)
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
# clutter package version number, (as distinct from shared library version)
|
|
|
|
# An odd micro number indicates in-progress development, (eg. from CVS)
|
|
|
|
# An even micro number indicates a released version.
|
|
|
|
m4_define(clutter_version_major, 0)
|
2006-06-22 11:01:22 -04:00
|
|
|
m4_define(clutter_version_minor, 1)
|
2006-07-06 14:55:46 -04:00
|
|
|
m4_define(clutter_version_micro, 1)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
|
|
|
AC_INIT([clutter],
|
|
|
|
clutter_version_major.clutter_version_minor.clutter_version_micro,
|
2006-06-22 11:01:22 -04:00
|
|
|
[http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter])
|
2006-05-29 04:59:36 -04:00
|
|
|
AC_CONFIG_SRCDIR([clutter/clutter.h])
|
2005-04-13 15:49:56 -04:00
|
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
AM_INIT_AUTOMAKE([1.7])
|
|
|
|
|
|
|
|
CLUTTER_MAJORMINOR=clutter_version_major.clutter_version_minor
|
|
|
|
AC_SUBST(CLUTTER_MAJORMINOR)
|
|
|
|
|
|
|
|
# CURRENT, REVISION, AGE
|
|
|
|
# - library source changed -> increment REVISION
|
|
|
|
# - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
|
|
|
|
# - interfaces added -> increment AGE
|
|
|
|
# - interfaces removed -> AGE = 0
|
2006-07-06 14:55:46 -04:00
|
|
|
CLUTTER_LT_CURRENT=1
|
2006-05-29 04:59:36 -04:00
|
|
|
CLUTTER_LT_REV=0
|
2006-07-06 14:55:46 -04:00
|
|
|
CLUTTER_LT_AGE=1
|
2006-05-29 04:59:36 -04:00
|
|
|
CLUTTER_LT_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE"
|
|
|
|
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
|
|
|
|
|
|
|
|
AC_SUBST(CLUTTER_LT_VERSION)
|
|
|
|
AC_SUBST(CLUTTER_LT_LDFLAGS)
|
|
|
|
|
|
|
|
dnl ========================================================================
|
|
|
|
|
2005-04-13 15:49:56 -04:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2006-06-23 05:20:04 -04:00
|
|
|
AC_DISABLE_STATIC
|
2005-04-13 15:49:56 -04:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
|
|
|
|
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
dnl ========================================================================
|
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
PKG_CHECK_MODULES(X11, x11)
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
# FIXME: Needed ?
|
|
|
|
AC_MSG_CHECKING([for XTHREADS in Xlib])
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
AC_RUN_IFELSE(
|
2005-04-13 15:49:56 -04:00
|
|
|
[AC_LANG_PROGRAM([[#include <X11/Xlib.h>]],
|
|
|
|
[[return XInitThreads() == 0 ? 0 : 1;]])],
|
|
|
|
[xthreads=no],
|
|
|
|
[xthreads=yes],
|
|
|
|
[xthreads=yes])
|
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
AC_MSG_RESULT($xthreads)
|
|
|
|
|
|
|
|
if test "x$xthreads" = "xyes"
|
|
|
|
then
|
|
|
|
X11_LIBS="$X11_LIBS -lpthread"
|
|
|
|
AC_DEFINE([XTHREADS], [], [1])
|
|
|
|
fi
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-14 09:04:26 -04:00
|
|
|
AC_CHECK_HEADERS([GL/gl.h GL/glx.h],,
|
|
|
|
[AC_MSG_ERROR([Unable to locate required GL headers])])
|
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
AC_CHECK_LIB(GL, glXCreateContext, HAVE_LIBGL=yes, HAVE_LIBGL=no)
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
if test "x$HAVE_LIBGL" = "xno"; then
|
|
|
|
AC_MSG_ERROR(libGL not found);
|
2005-04-13 15:49:56 -04:00
|
|
|
else
|
2006-06-06 16:40:40 -04:00
|
|
|
GLX_LIBS="$X11_LIBS -lGL"
|
2005-04-13 15:49:56 -04:00
|
|
|
fi
|
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
GLX_CFLAGS="$X11_CFLAGS"
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
dnl ========================================================================
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-08 18:19:32 -04:00
|
|
|
pkg_modules="pangoft2 glib-2.0 >= 2.8 gthread-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0"
|
2006-06-06 16:40:40 -04:00
|
|
|
PKG_CHECK_MODULES(CLUTTER_DEPS, [$pkg_modules])
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
dnl ========================================================================
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
GST_MAJORMINOR=0.10
|
2005-04-22 14:03:55 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
pkg_modules="gstreamer-$GST_MAJORMINOR gstreamer-plugins-base-$GST_MAJORMINOR"
|
|
|
|
PKG_CHECK_MODULES(GST, [$pkg_modules])
|
2005-04-22 14:03:55 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_MAJORMINOR -lgstvideo-$GST_MAJORMINOR -lgstaudio-$GST_MAJORMINOR"
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
dnl ========================================================================
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
AC_ARG_ENABLE(gtk,
|
|
|
|
[AC_HELP_STRING([--enable-gtk], [Buld Gtk+ Clutter widget])],enable_gtk="$enableval",enable_gtk=no)
|
|
|
|
|
|
|
|
if test "x$enable_gtk" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES(GTK, [gtk+-2.0])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_GTK, test x$enable_gtk = xyes)
|
2006-06-06 14:19:11 -04:00
|
|
|
|
|
|
|
dnl ========================================================================
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
GCC_FLAGS="-g -Wall"
|
2005-04-13 15:49:56 -04:00
|
|
|
fi
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
dnl ========================================================================
|
|
|
|
|
|
|
|
GTK_DOC_CHECK([1.0])
|
|
|
|
|
|
|
|
dnl ========================================================================
|
|
|
|
|
2005-04-13 15:49:56 -04:00
|
|
|
AC_SUBST(GCC_FLAGS)
|
|
|
|
AC_SUBST(GST_CFLAGS)
|
|
|
|
AC_SUBST(GST_LIBS)
|
2006-06-06 14:19:11 -04:00
|
|
|
AC_SUBST(GTK_CFLAGS)
|
|
|
|
AC_SUBST(GTK_LIBS)
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-06-06 16:40:40 -04:00
|
|
|
CLUTTER_CFLAGS="$GLX_CLAGS $CLUTTER_DEPS_CFLAGS"
|
|
|
|
CLUTTER_LIBS="$GLX_LIBS $CLUTTER_DEPS_LIBS"
|
2005-04-13 15:49:56 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
AC_SUBST(CLUTTER_CFLAGS)
|
|
|
|
AC_SUBST(CLUTTER_LIBS)
|
2005-04-13 15:49:56 -04:00
|
|
|
|
|
|
|
AC_OUTPUT([Makefile
|
|
|
|
clutter/Makefile
|
2006-06-06 14:19:11 -04:00
|
|
|
gtk/Makefile
|
2006-06-08 18:19:32 -04:00
|
|
|
gtk/gtk-clutter.pc
|
2005-04-13 15:49:56 -04:00
|
|
|
examples/Makefile
|
2006-05-29 04:59:36 -04:00
|
|
|
doc/Makefile
|
|
|
|
doc/reference/Makefile
|
2006-06-21 18:34:25 -04:00
|
|
|
doc/reference/version.xml
|
2006-05-29 04:59:36 -04:00
|
|
|
clutter.pc
|
2005-04-13 15:49:56 -04:00
|
|
|
])
|
2006-06-06 16:40:40 -04:00
|
|
|
|
|
|
|
dnl ========================================================================
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo " Clutter $VERSION"
|
|
|
|
echo " ==================="
|
|
|
|
echo ""
|
|
|
|
echo " prefix: ${prefix}"
|
|
|
|
echo ""
|
|
|
|
echo " GTK+ Widget: ${enable_gtk}"
|
|
|
|
echo " Documentation: ${enable_gtk_doc}"
|
2006-06-08 18:19:32 -04:00
|
|
|
echo ""
|