Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
+ configurable and makeable nginx_http_js_module packed as the real n…
Browse files Browse the repository at this point in the history
…ginx module
  • Loading branch information
peter-leonov committed Dec 3, 2008
0 parents commit a5e1317
Show file tree
Hide file tree
Showing 3 changed files with 993 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ngx_addon_name=ngx_http_js_module
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_js_module.c"

echo "checking for JavaScript"
NGX_JS="js"
NGX_JS_VER=`$NGX_JS -v 2>&1 | grep '^JavaScript-C' 2>&1 | sed -e 's/^JavaScript-C \(.*\)/\1/'`

if test -n "$NGX_JS_VER"; then
echo " + JavaScript version: $NGX_JS_VER"

if [ "`echo 'let a; print("OK")' | $NGX_JS -version 170 2>&1`" != OK ]; then
echo
echo "$0: error: JavaScript 1.7.0 or higher is required"
echo

exit 1;
fi

CFLAGS="-I $ngx_addon_dir $CFLAGS"

# CORE_LINK="$CORE_LINK -ljs"
CORE_LIBS="$CORE_LIBS -ljs"
else
echo
echo "$0: error: JavaScript 1.7.0 or higher is required, none was founded"
echo

exit 1;
fi
Loading

0 comments on commit a5e1317

Please sign in to comment.