Index: ossp-pkg/js/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/js/configure.ac,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/js/configure.ac,v' 2>/dev/null --- 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=""