OSSP CVS Repository

ossp - Check-in [5464]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5464
Date: 2006-Jul-22 18:16:23 (local)
2006-Jul-22 16:16:23 (UTC)
User:rse
Branch:
Comment: add support for building with particular feature sets
Tickets:
Inspections:
Files:
ossp-pkg/js/configure.ac      1.5 -> 1.6     17 inserted, 0 deleted

ossp-pkg/js/configure.ac 1.5 -> 1.6

--- configure.ac 2006/07/22 15:40:04     1.5
+++ configure.ac 2006/07/22 16:16:23     1.6
@@ -47,6 +47,23 @@
 
 CPPFLAGS="$CPPFLAGS -DOSSP"
 
+dnl #   configure option --with-version
+AC_ARG_WITH([version],
+    AC_HELP_STRING([--with-version], [build the run-time engine with JavaScript features only. Available versions are: ECMA-3, JS-1.5, JS-1.6 (default)]),
+    [ac_cv_with_version=$withval], [ac_cv_with_version=no])
+AC_CACHE_CHECK([whether to build the run-time engine with JavaScript features only],
+    [ac_cv_with_version], [ac_cv_with_version=no])
+case "$ac_cv_with_version" in
+    dnl JS-1.0 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=100" ;;
+    dnl JS-1.1 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=110" ;;
+    dnl JS-1.2 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=120" ;;
+    dnl JS-1.3 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=130" ;;
+    dnl JS-1.4 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=140" ;;
+    ECMA-3 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=148" ;;
+    JS-1.5 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=150" ;;
+    JS-1.6 ) CPPFLAGS="$CPPFLAGS -DJS_VERSION=160" ;;
+esac
+
 CLI_CPPFLAGS=""
 CLI_CFLAGS=""
 CLI_LDFLAGS=""

CVSTrac 2.0.1