zeek/auxil/zeekjs/configure.plugin
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

31 lines
525 B
Bash

#!/bin/sh
#
# Hooks to add custom options to the configure script.
#
plugin_usage()
{
: # Do nothing
cat <<EOF
--with-nodejs=DIR Path to Node.js installation directory.
EOF
}
plugin_option()
{
case "$1" in
--with-nodejs=*)
append_cache_entry NODEJS_ROOT_DIR PATH $optarg
return 0
;;
# --with-foo=*)
# append_cache_entry FOO_DIR PATH $optarg
# return 0
# ;;
*)
return 1;
;;
esac
}