AC_PREREQ(2.59)
-AC_INIT(seed, 0.8)
+AC_INIT(seed, 2.31.1.1)
AM_INIT_AUTOMAKE([1.7 -Wno-portability])
AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_MACRO_DIR([m4])
-
AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
+# Use AM_SILENT_RULES if present
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
changequote(,)dnl
ensureflag() {
flag="$1"; shift
changequote([,])dnl
-
dnl =====================Internationalization==================================
GETTEXT_PACKAGE=seed
AC_SUBST(GETTEXT_PACKAGE)
AC_SUBST(FFI_LDFLAGS)
AC_SUBST(FFI_CFLAGS)
-dnl =======================WebKit ContextGroup=================================
-case "$host_os" in
- darwin*)
- ;;
- *)
- save_LIBS=$LIBS
- LIBS=`pkg-config --libs webkit-1.0`
- AC_CHECK_LIB(webkit-1.0, JSContextGroupCreate,,
- AC_MSG_ERROR([The installed version of WebKit is too old. Seed requires WebKit SVN revision 35442 or greater.]))
- LIBS=$save_LIBS
- ;;
-esac
+dnl ==============================WebKit=======================================
+save_LIBS=$LIBS
+LIBS=`pkg-config --libs webkit-1.0`
+AC_CHECK_LIB(webkit-1.0, JSContextGroupCreate,,
+ AC_MSG_ERROR([The installed version of WebKit is too old. Seed requires WebKit SVN revision 35442 or greater.]))
+LIBS=$save_LIBS
+
+PKG_CHECK_MODULES(WEBKIT, webkit-1.0)
+AC_SUBST(WEBKIT_CFLAGS)
+AC_SUBST(WEBKIT_LDFLAGS)
dnl =========================Introspection=====================================
PKG_CHECK_MODULES(GOBJECT_INTROSPECTION, gobject-introspection-1.0 >= 0.6.3)
AM_CONDITIONAL(BUILD_CANVAS_MODULE, test "x$want_canvas_module" = "xyes")
AC_SUBST(BUILD_CANVAS_MODULE)
-
-
dnl ==== readline ====
AC_ARG_ENABLE(readline-module,
AC_HELP_STRING([--enable-readline-module],
AC_SUBST(DBUSGLIB_LDFLAGS)
fi
+
+
dnl ==== os ====
AC_ARG_ENABLE(os-module,
AC_HELP_STRING([--enable-os-module],
AM_CONDITIONAL(BUILD_OS_MODULE, test "x$want_os_module" = "xyes")
AC_SUBST(BUILD_OS_MODULE)
-dnl ==== os ====
-AC_ARG_ENABLE(os-module,
- AC_HELP_STRING([--enable-os-module],
- [enable the os Seed module. [default=yes]]),
- [want_os_module=$enableval],[want_os_module="yes"])
+dnl ==== ffi ====
+AC_ARG_ENABLE(ffi-module,
+ AC_HELP_STRING([--enable-ffi-module],
+ [enable the ffi Seed module. [default=yes]]),
+ [want_ffi_module=$enableval],[want_ffi_module="yes"])
-AM_CONDITIONAL(BUILD_OS_MODULE, test "x$want_os_module" = "xyes")
-AC_SUBST(BUILD_OS_MODULE)
+AM_CONDITIONAL(BUILD_FFI_MODULE, test "x$want_ffi_module" = "xyes")
+AC_SUBST(BUILD_FFI_MODULE)
dnl ==== libxml ====
AC_ARG_ENABLE(libxml-module,
[want_mpfr_module=$enableval],[want_mpfr_module="yes"])
if test x"$want_mpfr_module" == x"yes" ; then
- AC_MSG_CHECKING(for mpfr.h)
-
AC_TRY_CPP([#include <mpfr.h>], have_mpfr_h=yes, have_mpfr_h=no)
if test x"$have_mpfr_h" = x"yes"; then
save_LIBS=$LIBS
fi
MPFR_CFLAGS=
-
- AC_MSG_RESULT([$have_mpfr_h])
-
fi
AM_CONDITIONAL(BUILD_MPFR_MODULE, test "x$want_mpfr_module" = "xyes")
AC_SUBST(BUILD_MPFR_MODULE)
-dnl =========================turtle example====================================
-AC_ARG_ENABLE(turtle-example,
- AC_HELP_STRING([--enable-turtle-example],
- [enable the turtle graphics example. [default=yes]]),
- [want_turtle_example=$enableval],[want_turtle_example="yes"])
-
-if test x"$want_turtle_example" == x"yes" ; then
- PKG_CHECK_MODULES(GTK, gtk+-2.0)
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
-fi
-
-AM_CONDITIONAL(BUILD_TURTLE_EXAMPLE, test "x$want_turtle_example" = "xyes")
-AC_SUBST(BUILD_TURTLE_EXAMPLE)
-
-dnl =========================Install Examples==================================
-AC_ARG_ENABLE(examples,
- AC_HELP_STRING([--enable-examples],
- [install JavaScript examples. [default=yes]]),
- [enable_examples=$enableval],[enable_examples="yes"])
-AM_CONDITIONAL(BUILD_SEED_EXAMPLES, test "x$enable_examples" = "xyes")
-AC_SUBST(BUILD_SEED_EXAMPLES)
-
dnl ===========================Profiling=======================================
AC_ARG_ENABLE(profile,
AC_HELP_STRING([--enable-profile],
if test "x$enable_profile" = "xyes"; then
SEED_PROFILE_CFLAGS="-fprofile-arcs -ftest-coverage"
SEED_PROFILE_LIBS="-lgcov"
- CFLAGS="-O0"
[need_debug="yes"]
fi
if test "x$enable_debug" = "xyes"; then
SEED_DEBUG_CFLAGS="-DSEED_ENABLE_DEBUG -g"
- CFLAGS="-O0"
+ CFLAGS="-O0 -Wall"
else
SEED_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
+ CFLAGS="-Wall"
if test "x$need_debug" = "xyes"; then
AC_MSG_ERROR([debug must be enabled in order to enable profiling.])
AC_SUBST(SEED_DEBUG_CFLAGS)
-dnl ===========================Darwin Build====================================
-SEED_OSX_CFLAGS=
-SEED_OSX_LDFLAGS=
-
-case "$host_os" in
- darwin*)
- SEED_OSX_CFLAGS="-F/Applications/WebKit.app/Contents/Frameworks/10.5 -framework JavaScriptCore"
- SEED_OSX_LDFLAGS="-F/Applications/WebKit.app/Contents/Frameworks/10.5 -framework JavaScriptCore"
- ;;
- *)
- PKG_CHECK_MODULES(WEBKIT, webkit-1.0)
- AC_SUBST(WEBKIT_CFLAGS)
- AC_SUBST(WEBKIT_LDFLAGS)
- ;;
-
-
-esac
-AC_SUBST(SEED_OSX_CFLAGS)
-AC_SUBST(SEED_OSX_LDFLAGS)
-
AC_CHECK_HEADERS(pty.h)
dnl =============================gtk-doc=======================================
GTK_DOC_CHECK(1.9)
dnl =============================Output========================================
-SHAVE_INIT([scripts],[enable])
AC_CONFIG_FILES([
seed.pc
Makefile
+doc/index.html
doc/conventions.html
doc/runtime.html
doc/tutorial-standalone/tutorial.html
doc/mapping/mapping.html
-scripts/shave
-scripts/shave-libtool
-
libseed/Makefile
po/Makefile.in
src/Makefile
-extensions/Seed.js
extensions/Makefile
tests/Makefile
tests/javascript/Makefile
tests/c/Makefile
doc/Makefile
doc/modules/Makefile
+doc/modules/version.xml
doc/tutorial-standalone/Makefile
doc/reference/Makefile
+doc/reference/version.xml
doc/mapping/Makefile
-examples/Makefile
-examples/clutter-pad/Makefile
-examples/clutter-pad/examples/Makefile
-examples/clutter-shader/Makefile
-examples/clutter-transitions/Makefile
-examples/glib/Makefile
-examples/browser/Makefile
-examples/turtle/Makefile
-examples/opengl/Makefile
-examples/twitter/Makefile
-examples/pong/Makefile
-examples/dbus/Makefile
-examples/xml/Makefile
modules/Makefile
modules/example/Makefile
modules/sqlite/Makefile
modules/canvas/Makefile
modules/readline/Makefile
-modules/Multiprocessing/Makefile
+modules/multiprocessing/Makefile
modules/sandbox/Makefile
modules/os/Makefile
modules/dbus/Makefile
modules/gtkbuilder/Makefile
modules/gettext/Makefile
modules/mpfr/Makefile
+modules/ffi/Makefile
libseed/seed-path.h
])
Installation:
Prefix.....................$prefix
- Install examples...........$enable_examples
Modules:
Canvas.....................$want_canvas_module
gtkbuilder.................$want_gtkbuilder_module
gettext....................$want_gettext_module
mpfr.......................$want_mpfr_module
-
-Examples:
- Turtle.....................$want_turtle_example
+ ffi........................$want_ffi_module
"
if test "x$want_readline_module" != "xyes"; then